/* LoneForge / site.css
   Single committed dark theme (the ops-console world). Every color is painted
   explicitly from the tokens below; nothing is inherited from the host. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"),
       url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;

  /* ground + surfaces (all biased toward the accent hue) */
  --bg: #080c14;
  --bg-2: #0a1019;
  --surface: #0e1624;
  --surface-2: #121c2d;
  --line: #1a2536;
  --line-2: #263449;

  /* ink */
  --ink: #e9eff8;
  --ink-2: #b9c4d6;
  --muted: #7f8ca2;
  --faint: #748198;

  /* signal */
  --accent: #5b9dff;
  --accent-2: #9cc3ff;
  --accent-ink: #061021;
  --ember: #ff8a3d;
  --ok: #3fd39b;

  /* type */
  --font-display: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.6vw, 5.4rem);

  /* layout */
  --max: 1220px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 6px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(91, 157, 255, 0.35); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transform: translateY(-200%); transition: transform 0.2s; }
.skip-link:focus { transform: translateY(0); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-stretch: 112%;
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}
h1.display { font-size: var(--step-4); }
h2.display { font-size: var(--step-3); letter-spacing: -0.022em; line-height: 1.04; }
h3.display { font-size: var(--step-2); font-variation-settings: "wdth" 108; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.12; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.8; }

.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.prose { max-width: 62ch; color: var(--ink-2); text-wrap: pretty; }
.prose + .prose { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .display { max-width: 20ch; }
.section-head .lede { max-width: 52ch; }
.split { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(91, 157, 255, 0.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--accent); box-shadow: none; }
.btn.small { padding: 9px 14px; min-height: 38px; font-size: 0.86rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.92), rgba(8, 12, 20, 0.72));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(8, 12, 20, 0.86); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-word { font-family: var(--font-display); font-variation-settings: "wdth" 118; font-stretch: 118%; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-word em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-size: 0.9rem; color: var(--ink-2); border-radius: 4px; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav a.btn, .nav a.btn:hover { color: var(--btn-ink); }

.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--accent); opacity: 0.9; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 6px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out), top 0.3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 800px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(8, 12, 20, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease-out); }
  html.js .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
  html:not(.js) .header { position: relative; height: auto; }
  html:not(.js) .header .wrap { flex-direction: column; align-items: flex-start; padding-block: 14px; }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; gap: 2px 14px; }
  html:not(.js) .nav .btn { margin: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-canvas-wrap { position: absolute; inset: 0; z-index: -1; }
.hero-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas-wrap::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(8, 12, 20, 0.9) 22%, rgba(8, 12, 20, 0.35) 48%, rgba(8, 12, 20, 0) 70%),
  linear-gradient(180deg, rgba(8, 12, 20, 0.6) 0%, rgba(8, 12, 20, 0) 24%, rgba(8, 12, 20, 0) 70%, var(--bg) 100%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.hero-copy { display: grid; gap: 26px; max-width: 640px; }
.hero-copy .display { max-width: 12ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-visual { display: grid; gap: 8px; justify-self: end; align-self: end; }
.motion-toggle { justify-self: end; min-height: 44px; padding: 8px 0; color: var(--ink-2); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 4px; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
.hero-readout { display: grid; gap: 6px; justify-self: end; align-self: end; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 12, 20, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-width: 250px; }
.hero-readout .row { display: flex; justify-content: space-between; gap: 18px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-readout .row b { font-weight: 500; color: var(--ink-2); }
.hero-readout .state { color: var(--ok); }
.hero-readout .state[data-state="ASSEMBLING"] { color: var(--accent); }
.hero-readout .state[data-state="RECOVERING"] { color: var(--ember); }
.hero-readout .bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.hero-readout .bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 0.25s linear; }
@media (max-width: 880px) {
  .hero { padding-top: calc(var(--header-h) + 16px); padding-bottom: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { display: none; }
  .hero-copy .display { order: -1; max-width: 18ch; font-size: clamp(2rem, 7.8vw, 3.4rem); }
  .hero-visual { order: -2; justify-self: stretch; width: 100%; padding-top: clamp(230px, 37svh, 320px); }
  .hero-canvas-wrap { top: var(--header-h); bottom: auto; height: clamp(230px, 37svh, 320px); }
  .hero-canvas-wrap::after { background: linear-gradient(180deg, transparent 75%, var(--bg) 100%); }
  .hero-readout { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-self: stretch; min-width: 0; width: 100%; padding: 12px; }
  .hero-readout .row { flex-direction: column; gap: 4px; font-size: 0.65rem; }
  .hero-readout .bar { grid-column: 1 / -1; }
  .hero-visual .motion-toggle { justify-self: end; }
}

/* ---------- signals (why) ---------- */
.signals { display: grid; gap: 0; border-top: 1px solid var(--line); }
.signal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.signal q { font-family: var(--font-display); font-variation-settings: "wdth" 106; font-stretch: 106%; font-weight: 560; font-size: var(--step-1); letter-spacing: -0.01em; color: var(--ink); quotes: "\201C" "\201D"; line-height: 1.2; }
.signal p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 640px) { .signal { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pillar { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: clamp(24px, 3vw, 36px); background: var(--surface); min-height: 100%; transition: background 0.3s; }
.pillar:hover { background: var(--surface-2); }
.pillar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pillar-head .display { max-width: 14ch; }
.pillar-glyph { flex: none; width: 96px; height: 64px; color: var(--accent); opacity: 0.9; }
.pillar p { color: var(--ink-2); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-2); padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8, 12, 20, 0.35); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.aside-hw { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 28px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-2); max-width: 780px; }
.aside-hw svg { width: 28px; height: 28px; color: var(--ember); margin-top: 2px; }
.aside-hw strong { color: var(--ink); }

/* pillar glyph animations */
.glyph-ai rect { transform-origin: center; animation: token 2.8s var(--ease-in-out) infinite; }
.glyph-ai rect:nth-child(2) { animation-delay: 0.2s; } .glyph-ai rect:nth-child(3) { animation-delay: 0.4s; } .glyph-ai rect:nth-child(4) { animation-delay: 0.6s; } .glyph-ai rect:nth-child(5) { animation-delay: 0.8s; } .glyph-ai rect:nth-child(6) { animation-delay: 1.0s; } .glyph-ai rect:nth-child(7) { animation-delay: 1.2s; } .glyph-ai rect:nth-child(8) { animation-delay: 1.4s; }
@keyframes token { 0%, 20% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } 60%, 100% { opacity: 0.25; transform: translateY(0); } }
.glyph-it rect { animation: uptime 4s linear infinite; }
.glyph-it rect:nth-child(odd) { animation-duration: 5.2s; } .glyph-it rect:nth-child(3n) { animation-delay: -1.4s; } .glyph-it rect:nth-child(4n) { animation-delay: -2.6s; }
@keyframes uptime { 0%, 88%, 100% { opacity: 0.85; } 92% { opacity: 0.25; } }
.glyph-ops line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: drain 3.6s var(--ease-in-out) infinite; }
.glyph-ops line:nth-child(2) { animation-delay: 0.5s; } .glyph-ops line:nth-child(3) { animation-delay: 1s; } .glyph-ops line:nth-child(4) { animation-delay: 1.5s; } .glyph-ops line:nth-child(5) { animation-delay: 2s; }
@keyframes drain { 0% { stroke-dashoffset: 60; opacity: 0.3; } 35% { stroke-dashoffset: 0; opacity: 1; } 70%, 100% { stroke-dashoffset: -60; opacity: 0.3; } }
.glyph-consult .path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: route 4.2s var(--ease-in-out) infinite; }
.glyph-consult .dim { opacity: 0.3; }
@keyframes route { 0% { stroke-dashoffset: 140; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -140; } }

/* ---------- process ---------- */
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 27px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--progress, 0)); background: var(--accent); transition: height 0.15s linear; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px 24px; padding: 30px 0; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); transition: border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.step.is-reached .step-num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 157, 255, 0.12); }
.step-body { display: grid; gap: 10px; padding-top: 12px; }
.step-body p { color: var(--ink-2); max-width: 52ch; }
.step-meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- proof console ---------- */
.console { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console-bar .dots { display: inline-flex; gap: 6px; }
.console-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.console-row { display: grid; grid-template-columns: 22px minmax(0, 1.05fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px 22px; align-items: start; padding: 22px 18px; border-bottom: 1px solid var(--line); transition: background 0.25s; }
.console-row:last-child { border-bottom: 0; }
.console-row:hover { background: var(--surface-2); }
.led { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 211, 155, 0.15), 0 0 12px rgba(63, 211, 155, 0.5); }
.led.dev { background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15), 0 0 12px rgba(255, 138, 61, 0.5); animation: led 2.4s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.console-name { display: grid; gap: 6px; }
.console-name strong { font-family: var(--font-display); font-variation-settings: "wdth" 106; font-stretch: 106%; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; color: var(--ink); }
.console-name .status { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console-desc { color: var(--ink-2); max-width: 54ch; }
.console-stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.console-stack .mono { color: var(--faint); line-height: 1.5; }
.console-stack a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.console-stack a:hover { border-bottom-color: var(--accent); }
@media (max-width: 800px) {
  .console-row { grid-template-columns: 22px minmax(0, 1fr); }
  .console-desc, .console-stack { grid-column: 2; }
}

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { padding: 28px 26px 30px 0; border-bottom: 1px solid var(--line); padding-left: 26px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.principle h3 { font-family: var(--font-display); font-variation-settings: "wdth" 108; font-stretch: 108%; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.principle p { color: var(--ink-2); font-size: 0.97rem; }
.principle .idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--faint); }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(900px 400px at 15% 50%, rgba(91, 157, 255, 0.14), transparent 60%), var(--bg-2); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.cta-band .display { max-width: 14ch; }
.cta-band .actions { display: grid; gap: 14px; justify-items: start; }
.cta-band .actions .mono a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.cta-band .actions .mono a:hover { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { padding: 48px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.footer-brand { display: grid; gap: 14px; }
.footer-brand .brand-word { color: var(--ink-2); }
.footer-services { display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.footer-services li + li::before { content: "·"; margin: 0 10px; color: var(--line-2); }
.footer-links { display: grid; gap: 8px; text-align: right; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--faint); }
@media (max-width: 640px) { .footer .wrap { grid-template-columns: 1fr; } .footer-links { text-align: left; } }

/* ---------- contact ---------- */
.contact-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(40px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 88px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.field label .opt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field-label, .choice-field legend { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.choice-field { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.choice-field legend { padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; line-height: 1.5; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.18); background: var(--surface-2); }
.field textarea { min-height: 160px; resize: vertical; }
.field textarea.compact { min-height: 112px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--ember); }
.field.is-invalid .chips span { border-color: var(--ember); }
.field .error { display: none; font-size: 0.84rem; color: var(--ember); }
.field.is-invalid .error { display: block; }
.field-help { font-size: 0.82rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 0.9rem; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chips span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background 0.2s, box-shadow 0.2s; }
.chips input:checked + span { border-color: var(--accent); color: var(--ink); background: rgba(91, 157, 255, 0.1); }
.chips input:checked + span::before { background: var(--accent); box-shadow: 0 0 8px rgba(91, 157, 255, 0.7); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .mono { max-width: 40ch; line-height: 1.5; }
.form-status { display: none; gap: 5px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
.form-status.is-visible { display: block; }
.form-status.ok { border-color: rgba(63, 211, 155, 0.5); background: rgba(63, 211, 155, 0.07); color: var(--ink); }
.form-status.err { border-color: rgba(255, 138, 61, 0.5); background: rgba(255, 138, 61, 0.07); color: var(--ink); }
.form-status small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); overflow-wrap: anywhere; }
.form-status a, .form-privacy a, .form-fallback a { color: var(--accent-2); border-bottom: 1px solid var(--line-2); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot { display: grid; align-items: center; min-height: 65px; padding: 10px; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 0.82rem; }
.turnstile-slot[data-state="verified"]::after { content: "Verification complete"; justify-self: start; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ok); }
.turnstile-field.is-invalid .turnstile-slot { border-color: var(--ember); }
.challenge-retry { width: max-content; color: var(--accent-2); font-size: 0.82rem; border-bottom: 1px solid var(--line-2); }
.challenge-retry:hover { color: var(--ink); border-bottom-color: var(--accent); }
.form-privacy, .form-fallback { max-width: 64ch; color: var(--muted); font-size: 0.82rem; }
.form-fallback { color: var(--ink-2); }

.next { display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); position: sticky; top: calc(var(--header-h) + 24px); }
.next ol { display: grid; gap: 16px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: var(--ink-2); font-size: 0.95rem; }
.next li::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--accent); padding-top: 4px; }
.next li strong { color: var(--ink); font-weight: 600; }
.next .alt { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.next .alt a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.next .alt a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- reveal (JS-enhanced; everything is visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 20px; padding-top: var(--header-h); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .glyph-ai rect, .glyph-it rect, .glyph-ops line, .glyph-consult .path, .led.dev { animation: none; }
  .glyph-ops line { stroke-dashoffset: 0; } .glyph-consult .path { stroke-dashoffset: 0; }
  .btn, .btn svg, .nav a::after { transition: none; }
}

/* ---------- system high contrast ---------- */
@media (forced-colors: active) {
  .hero-canvas-wrap { display: none; }
  .btn, .btn.ghost, .pillar, .console, .principle, .next, .turnstile-slot, .form-status { border: 1px solid ButtonText; forced-color-adjust: auto; }
  .chips label { display: inline-flex; align-items: center; gap: 7px; }
  .chips input { position: static; width: 1rem; height: 1rem; opacity: 1; accent-color: Highlight; }
  .chips span, .chips input:checked + span { border: 1px solid ButtonText; background: Canvas; color: CanvasText; }
  .chips span::before { display: none; }
  .field.is-invalid input, .field.is-invalid textarea, .field.is-invalid .chips span, .turnstile-field.is-invalid .turnstile-slot { border-color: Highlight; }
  .progress, .steps::after { background: Highlight; }
  .led, .led.dev { background: Highlight; box-shadow: none; }
}

.direct-contact { display: grid; gap: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.direct-contact .eyebrow { margin: 0; }
.direct-contact h2.display { font-size: var(--step-2); }
.direct-contact-actions { display: grid; justify-items: start; gap: 14px; padding-block: 6px 24px; border-bottom: 1px solid var(--line-2); }
.direct-contact-address { color: var(--accent-2); font-size: var(--step-1); overflow-wrap: anywhere; }
.direct-contact-address a { border-bottom: 1px solid var(--line-2); }
.direct-contact-details { display: grid; gap: 16px; }
.direct-contact-details h3 { font-size: 1rem; }
.direct-contact-details ul { display: grid; gap: 16px; color: var(--ink-2); }
.direct-contact-details strong { color: var(--ink); font-weight: 500; }
