/* LFA Labs — "Mission Control" design system.
   Motion states only apply under html.motion (set by site.js when JS runs and the
   visitor has not asked for reduced motion), so content is always visible without JS. */

:root {
  --bg: #0f1f2e;
  --bg-deep: #0a1621;
  --panel: rgba(238, 231, 219, .03);
  --panel-strong: rgba(238, 231, 219, .055);
  --ink: #eee7db;
  --muted: #b4bdc3;
  --dim: #8d99a1;
  --stone: #d6c8b5;
  --accent: #c26640;
  --accent-hi: #e4865e;
  --accent-deep: #b0532e;
  --accent-deeper: #9a4524;
  --signal: #74e0c8;
  --line: rgba(238, 231, 219, .12);
  --line-strong: rgba(238, 231, 219, .22);
  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, Arial, sans-serif;
  --mono: 'Fira Code', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Blueprint grid + soft light, replacing the old texture image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(194, 102, 64, .14), transparent 70%),
    radial-gradient(50vw 60vh at -10% 110%, rgba(116, 224, 200, .05), transparent 70%),
    linear-gradient(rgba(238, 231, 219, .035) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, rgba(238, 231, 219, .035) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--bg);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, rgba(0, 0, 0, .55) 100%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, rgba(0, 0, 0, .55) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff5e9; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.wrap { width: min(var(--maxw), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 200; padding: 10px 14px; background: var(--accent-deep); color: #fff5e9; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; }
.display {
  font-size: clamp(48px, 6.3vw, 112px);
  line-height: .96;
  letter-spacing: -.045em;
}
.title-xl {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -.04em;
}
.title-l {
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.title-m {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.display em, .title-xl em, .title-l em, .title-m em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--muted); max-width: 40ch; }
.body-l { font-size: 18px; line-height: 1.75; color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(116, 224, 200, .6);
  animation: ping 2.4s var(--ease) infinite;
  flex: none;
}
.dot.alert { background: var(--accent-hi); box-shadow: 0 0 0 0 rgba(228, 134, 94, .6); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(116, 224, 200, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(116, 224, 200, 0); } }

/* Masked line reveal: <span class="line"><span>text</span></span> */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }

/* ---------- Buttons & links ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 26px;
  background: var(--accent-deep);
  color: #fff5e9;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--accent-deeper); border-color: var(--accent-deeper); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-strong); border-color: var(--ink); }
.btn-dark { background: var(--bg-deep); border-color: var(--bg-deep); color: var(--ink); }
.btn-dark:hover { background: #050c13; border-color: #050c13; }
.btn-arrow { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn-arrow::before, .btn-arrow::after {
  content: "→";
  position: absolute;
  inset: 0;
  line-height: 16px;
  text-align: center;
  transition: transform .5s var(--ease);
}
.btn-arrow::after { transform: translateX(-140%); }
.btn:hover .btn-arrow::before { transform: translateX(140%); }
.btn:hover .btn-arrow::after { transform: none; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 6px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.link:hover::after { transform: scaleX(0); transform-origin: right; animation: underline .9s var(--ease) .15s forwards; }
@keyframes underline { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 22, 33, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-bottom-color: transparent; transform: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: block;
  flex: none;
  width: 150px;
  height: 60px;
  font-size: 0;
  background: url('/assets/wordmark-stone-transparent.png') no-repeat -29.06px -91.86px / 192.16px auto;
}
.brand span { display: none; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  transition: color .25s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 14px; padding: 12px 20px; font-size: 14px; }
.nav-extra { display: none; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  z-index: 102;
}
.menu-toggle i { position: relative; width: 16px; height: 8px; }
.menu-toggle i::before, .menu-toggle i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle i::before { top: 0; }
.menu-toggle i::after { top: 6.5px; }
.menu-toggle[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 12vw, 184px); position: relative; }
.section-tight { padding-block: clamp(64px, 8vw, 120px); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / -1; justify-self: start; }
.rule { border-top: 1px solid var(--line); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px));
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 22, 33, .5);
  margin-bottom: clamp(28px, 4vh, 44px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-status b { color: var(--ink); font-weight: 400; }
.hero h1 { margin-bottom: clamp(28px, 4vh, 40px); }
.hero .lede { max-width: 46ch; margin-bottom: 40px; }
.hero-diagram {
  grid-column: 8 / -1;
  grid-row: 1;
  position: relative;
  aspect-ratio: 1122 / 960;
  margin-right: calc(var(--gutter) * -.5);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.hero-diagram .tilt { position: absolute; inset: 0; transition: transform 1.4s var(--ease); will-change: transform; }
.hero-diagram img, .hero-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { opacity: .9; -webkit-mask-image: radial-gradient(90% 80% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(90% 80% at 60% 45%, #000 30%, transparent 85%); }
.hero-diagram img { object-fit: cover; object-position: 50% 50%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .35)); }
.hero-diagram::before {
  content: "";
  position: absolute;
  inset: 18% 22%;
  background: radial-gradient(closest-side, rgba(194, 102, 64, .28), transparent);
  filter: blur(30px);
  z-index: -1;
}
.hub-pulse { stroke: var(--accent); stroke-width: 2.5; opacity: .15; animation: hub 5.5s ease-in-out infinite; }
@keyframes hub { 0%, 100% { opacity: .08; } 50% { opacity: .55; } }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-block: 28px 32px;
  color: var(--dim);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--accent-hi); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: rgba(10, 22, 33, .6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; }
html.motion .ticker-track { animation: marquee 48s linear infinite; }
html:not(.motion) .ticker-group { flex-wrap: wrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-item b { color: var(--ink); font-weight: 400; }
.ticker-item + .ticker-item::before { content: "/"; color: var(--accent); margin-right: 16px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (scroll-lit words) ---------- */
.statement-text {
  font-family: var(--display);
  font-size: clamp(30px, 3.9vw, 62px);
  line-height: 1.16;
  letter-spacing: -.03em;
  max-width: 22ch;
  max-width: 24ch;
}
.statement-text .w { transition: color .5s var(--ease); }
html.motion .statement-text .w { color: rgba(238, 231, 219, .2); }
html.motion .statement-text .w.lit { color: var(--ink); }
html.motion .statement-text .w.lit.hl { color: var(--accent); }
.statement-text .hl { color: var(--accent); }
.statement-meta { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; color: var(--muted); }
.statement-meta div { max-width: 30ch; }
.statement-meta b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--accent-hi); margin-bottom: 10px; }

/* ---------- Worlds (pinned horizontal) ---------- */
.worlds-pin { position: relative; }
.worlds-sticky { position: relative; }
.worlds-track { display: flex; flex-direction: column; gap: 24px; }
.world {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.world-media { position: absolute; inset: 0; z-index: -1; }
.world-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.world:hover .world-media img { transform: scale(1.02); }
.world-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 33, .25) 0%, rgba(10, 22, 33, .1) 30%, rgba(10, 22, 33, .92) 78%),
    linear-gradient(90deg, rgba(10, 22, 33, .55), transparent 60%);
}
.world-num { position: absolute; top: 28px; left: 32px; right: 32px; display: flex; justify-content: space-between; color: var(--stone); }
.world-body { padding: 36px 32px 34px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-items: end; }
.world-body h3 { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -.035em; }
.world-body p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.world-list { display: grid; gap: 10px; }
.world-list li { display: flex; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.world-list li::before { content: "+"; color: var(--accent-hi); font-family: var(--mono); }
.world .link { margin-top: 22px; }
.worlds-progress { display: none; }

@media (min-width: 960px) {
  html.motion .worlds-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  html.motion .worlds-track { flex-direction: row; gap: 2vw; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); will-change: transform; width: max-content; }
  html.motion .world { width: min(74vw, 1040px); height: min(70vh, 660px); min-height: 0; flex: none; }
  html.motion .worlds-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(var(--maxw), calc(100% - var(--gutter) * 2));
    margin: 32px auto 0;
    color: var(--dim);
  }
  html.motion .worlds-progress .bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
  html.motion .worlds-progress .bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
}

/* ---------- OREYE story ---------- */
.oreye-story { position: relative; background: linear-gradient(180deg, transparent, rgba(10, 22, 33, .85) 12%, rgba(10, 22, 33, .85) 88%, transparent); }
.story-pin { position: relative; }
.story-sticky { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.story-copy { grid-column: 1 / span 5; }
.story-copy h2 { margin-bottom: 24px; }
.story-copy > p { color: var(--muted); max-width: 42ch; margin-bottom: 40px; }
.story-steps { display: grid; gap: 0; margin-bottom: 40px; border-top: 1px solid var(--line); }
.story-step { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; transition: opacity .6s var(--ease); }
.story-step .mono { color: var(--accent-hi); grid-row: span 2; padding-top: 6px; }
.story-step h3 { font-size: 24px; letter-spacing: -.02em; }
.story-step p { color: var(--muted); font-size: 15px; }
.story-step .bar { grid-column: 2; height: 1px; background: var(--line); margin-top: 10px; overflow: hidden; display: none; }
.story-step .bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.story-console { grid-column: 6 / -1; padding-left: clamp(0px, 3vw, 48px); }
.story-caption { margin-top: 14px; color: var(--dim); font-size: 12px; }

@media (min-width: 960px) {
  html.motion .story-pin { height: 320vh; }
  html.motion .story-sticky { position: sticky; top: 0; height: 100vh; padding-top: var(--header-h); }
  html.motion .story-step { opacity: .38; }
  html.motion .story-step.is-active { opacity: 1; }
  html.motion .story-step.is-done { opacity: .62; }
  html.motion .story-step .bar { display: block; }
  html.motion .story-step p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s var(--ease); }
  html.motion .story-step.is-active p { max-height: 120px; opacity: 1; }
}

/* Console mock */
.console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1a26, #08121b);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.console-bar .lights { display: flex; gap: 6px; }
.console-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 231, 219, .14); }
.console-bar .title { color: var(--ink); }
.console-bar .rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.console-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.feed { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-right: 1px solid var(--line); background: #050b11; }
.feed img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: grayscale(.85) contrast(1.15) brightness(.75) sepia(.25) hue-rotate(160deg); }
.feed::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.feed-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.feed-hud .tl, .feed-hud .tr, .feed-hud .bl, .feed-hud .br { position: absolute; padding: 10px 12px; text-transform: uppercase; color: var(--stone); }
.feed-hud .tl { top: 0; left: 0; }
.feed-hud .tr { top: 0; right: 0; }
.feed-hud .bl { bottom: 0; left: 0; }
.feed-hud .br { bottom: 0; right: 0; }
.feed-hud .zone {
  position: absolute;
  left: 8%; top: 46%; width: 44%; height: 40%;
  border: 1px dashed rgba(228, 134, 94, .6);
  background: rgba(194, 102, 64, .08);
  clip-path: polygon(0 18%, 100% 0, 92% 100%, 6% 88%);
}
.bbox {
  position: absolute;
  left: 52%; top: 40%; width: 15%; height: 32%;
  border: 1.5px solid var(--accent-hi);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 24px rgba(228, 134, 94, .35);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.bbox::before, .bbox::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid var(--accent-hi); }
.bbox::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.bbox::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.bbox-label {
  position: absolute;
  left: -1.5px; bottom: calc(100% + 6px);
  padding: 4px 8px;
  background: var(--accent-hi);
  color: #0a1520;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 10px;
}
.feed-hud .scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(116, 224, 200, .1), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 100%; } }
.console-side { display: flex; flex-direction: column; min-width: 0; }
.panel { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel:last-child { border-bottom: 0; flex: 1; }
.panel h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; font-weight: 400; display: flex; justify-content: space-between; }
.alert-card {
  border: 1px solid rgba(228, 134, 94, .45);
  background: rgba(194, 102, 64, .1);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.alert-card .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; text-transform: uppercase; color: var(--accent-hi); }
.alert-card p { font-family: var(--body); font-size: 13px; letter-spacing: 0; line-height: 1.45; color: var(--ink); }
.alert-card .meta { margin-top: 10px; display: flex; justify-content: space-between; color: var(--dim); text-transform: uppercase; }
.escalate { margin-top: 10px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.escalate i { display: block; height: 100%; width: 100%; background: var(--accent-hi); transform-origin: left; transform: scaleX(.35); }
.log { display: grid; gap: 8px; }
.log li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--dim); }
.log span { color: var(--ink); text-transform: uppercase; overflow-wrap: anywhere; }
.log span.ok { color: var(--signal); }

html.motion .oreye-story[data-step="0"] .bbox,
html.motion .oreye-story[data-step="0"] .zone { opacity: 0; transform: scale(1.15); }
html.motion .oreye-story .alert-card { opacity: 0; transform: translateY(18px); }
html.motion .oreye-story[data-step="2"] .alert-card,
html.motion .oreye-story[data-step="3"] .alert-card { opacity: 1; transform: none; }
html.motion .oreye-story[data-step="2"] .escalate i { animation: esc 3s linear forwards; }
@keyframes esc { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
html.motion .oreye-story[data-step="3"] .escalate i { transform: scaleX(1); background: var(--signal); }
html.motion .oreye-story .log li { opacity: 0; transform: translateX(12px); }
html.motion .oreye-story[data-step="3"] .log li { opacity: 1; transform: none; }
html.motion .oreye-story[data-step="3"] .log li:nth-child(2) { transition-delay: .12s; }
html.motion .oreye-story[data-step="3"] .log li:nth-child(3) { transition-delay: .24s; }
html.motion .oreye-story[data-step="3"] .log li:nth-child(4) { transition-delay: .36s; }
.log-empty { color: var(--dim); display: none; }
html.motion .oreye-story:not([data-step="3"]) .log-empty { display: block; }
html.motion .oreye-story:not([data-step="3"]) .log { display: none; }
.alert-empty { color: var(--dim); display: none; }
html.motion .oreye-story[data-step="0"] .alert-empty,
html.motion .oreye-story[data-step="1"] .alert-empty { display: block; }
html.motion .oreye-story[data-step="0"] .alert-card,
html.motion .oreye-story[data-step="1"] .alert-card { display: none; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--accent); color: #0a1520; position: relative; overflow: hidden; }
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 21, 32, .07) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, rgba(10, 21, 32, .07) 1px, transparent 1px) 0 0 / 88px 88px;
  pointer-events: none;
}
.stats-band .wrap { position: relative; }
.stats-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.stats-head .eyebrow { color: #0a1520; }
.stats-head h2 { max-width: 16ch; }
.stats-head p { max-width: 44ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(10, 21, 32, .3); }
.stats > div { padding: 28px 24px 8px 0; border-right: 1px solid rgba(10, 21, 32, .2); }
.stats > div + div { padding-left: 24px; }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.stats-on-dark { color: var(--ink); }
.stats-on-dark.stats { border-top-color: var(--line); }
.stats-on-dark > div { border-right-color: var(--line); }
.stats-on-dark strong { color: var(--accent); }
.stats-on-dark span { color: var(--muted); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); padding-top: 56px; }
.process-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.process-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform-origin: left; transform: scaleX(var(--p, 1)); }
html.motion .process-line i { transform: scaleX(var(--p, 0)); }
.process-step { position: relative; }
.process-step::before {
  content: "";
  position: absolute;
  top: -61px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.process-step.is-lit::before, html:not(.motion) .process-step::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(194, 102, 64, .15); }
.process-step .mono { color: var(--accent-hi); display: block; margin-bottom: 22px; }
.process-step h3 { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 20px; }
.process-step p { color: var(--muted); max-width: 38ch; }

.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.standard { padding: 32px 28px; border: 1px solid var(--line); background: var(--panel); transition: border-color .4s, background-color .4s, transform .6s var(--ease); }
.standard:hover { border-color: var(--line-strong); background: var(--panel-strong); transform: translateY(-4px); }
.standard svg { width: 36px; height: 36px; margin-bottom: 28px; color: var(--accent-hi); }
.standard h3 { font-size: 22px; margin-bottom: 10px; }
.standard p { color: var(--muted); font-size: 15px; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.office { position: relative; padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.office + .office { border-left: 1px solid var(--line); }
.office::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at var(--cx, 80%) var(--cy, 30%), transparent 0 22px, rgba(238, 231, 219, .045) 22px 23px);
  -webkit-mask-image: radial-gradient(60% 70% at var(--cx, 80%) var(--cy, 30%), #000, transparent);
          mask-image: radial-gradient(60% 70% at var(--cx, 80%) var(--cy, 30%), #000, transparent);
}
.office-top { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); margin-bottom: clamp(48px, 7vw, 120px); }
.office h3 { font-size: clamp(44px, 5.4vw, 88px); line-height: .95; letter-spacing: -.045em; }
.office h3 small { display: block; font-size: .32em; letter-spacing: -.01em; color: var(--muted); margin-top: 14px; }
.office-clock { font-family: var(--mono); font-size: clamp(24px, 2.4vw, 36px); color: var(--accent); margin-top: 40px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.office p { color: var(--muted); max-width: 40ch; margin-top: 14px; }

/* ---------- CTA ---------- */
.cta-final { position: relative; text-align: left; overflow: hidden; }
.cta-final .title-xl { max-width: 13ch; margin-bottom: 48px; }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.cta-grid > :first-child { grid-column: 1 / span 8; }
.cta-grid > :last-child { grid-column: 9 / -1; }
.cta-grid p { color: var(--muted); margin-bottom: 32px; }
.cta-mail { display: inline-block; margin-top: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.cta-mail:hover { color: var(--accent-hi); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, transparent, rgba(10, 22, 33, .9)); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 20px; }
.footer-col { grid-column: span 2; }
.footer-col:last-child { grid-column: span 3; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 15px; transition: color .25s; }
.footer-col a:hover { color: var(--ink); }
.footer-col .clock { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-left: 6px; }
.footer-mark {
  margin-top: clamp(56px, 8vw, 120px);
  width: min(100%, 1100px);
  aspect-ratio: 176 / 70.4;
  background: url('/assets/wordmark-stone-transparent.png') no-repeat 68.9% 51% / 128.125% auto;
  opacity: .14;
  transition: opacity .8s var(--ease);
}
.site-footer:hover .footer-mark { opacity: .3; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-block: 24px 32px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-bottom .status { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(64px, 12vh, 140px)); padding-bottom: clamp(64px, 9vw, 128px); overflow: hidden; isolation: isolate; }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.page-hero-grid > :first-child { grid-column: 1 / span 8; }
.page-hero-grid > .page-hero-aside { grid-column: 9 / -1; }
.page-hero h1 { margin-bottom: 32px; }
.page-hero .lede { max-width: 52ch; }
.page-hero-visual { position: absolute; z-index: -1; right: calc(var(--gutter) * -1); top: 50%; width: min(760px, 62vw); aspect-ratio: 1; transform: translateY(-46%); pointer-events: none; }
.page-hero-visual canvas { width: 100%; height: 100%; }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.svc-index { grid-column: 1 / span 3; }
.svc-index-inner { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-index ol { counter-reset: svc; border-top: 1px solid var(--line); }
.svc-index li { counter-increment: svc; }
.svc-index ol a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  line-height: 1.45;
  transition: color .3s, padding-left .5s var(--ease);
}
.svc-index ol a::before { content: "0" counter(svc); font-family: var(--mono); font-size: 11px; padding-top: 2px; color: inherit; }
.svc-index ol a:hover { color: var(--ink); }
.svc-index ol a.is-active { color: var(--ink); padding-left: 8px; }
.svc-index ol a.is-active::before { color: var(--accent-hi); }
.svc-list { grid-column: 4 / -1; }
.svc { padding-bottom: clamp(72px, 9vw, 140px); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc + .svc { padding-top: clamp(24px, 3vw, 40px); }
.svc-media { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--bg-deep); margin-bottom: 44px; border: 1px solid var(--line); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media figcaption { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; background: rgba(10, 22, 33, .75); color: var(--stone); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 56px; margin-bottom: 40px; }
.svc-head h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.svc-tag { color: var(--stone); margin-top: 18px; display: block; }
.svc-head .body-l { margin: 0; }
.svc-head .link { margin-top: 20px; }
.svc-includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); margin-bottom: 32px; }
.svc-includes li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.svc-includes li::before { content: "+"; color: var(--accent-hi); font-family: var(--mono); }
.svc-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-notes > div { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.svc-notes h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 10px; }
.svc-notes p { color: var(--muted); font-size: 15px; }
.svc-includes-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; display: block; }

/* ---------- OREYE page extras ---------- */
.ethics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(116, 224, 200, .3);
  background: linear-gradient(90deg, rgba(116, 224, 200, .06), transparent 70%);
}
.ethics svg { width: 48px; height: 48px; color: var(--signal); }
.ethics p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.02em; max-width: 38ch; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; padding: 32px 28px 30px; border: 1px solid var(--line); background: var(--panel); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card .mono { color: var(--accent-hi); }
.card h3 { font-size: 28px; letter-spacing: -.025em; margin: 48px 0 10px; }
.card p { color: var(--muted); }
.card svg { position: absolute; right: -10px; top: -10px; width: 140px; height: 140px; color: rgba(238, 231, 219, .07); }
.layers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.layers span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.layers span i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------- How we work page ---------- */
.chapters { border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: clamp(56px, 7vw, 112px); border-bottom: 1px solid var(--line); align-items: start; }
.chapter-num { grid-column: 1 / span 3; font-family: var(--display); font-size: clamp(88px, 12vw, 200px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(194, 102, 64, .7); }
.chapter-body { grid-column: 5 / -1; }
.chapter-body .mono { color: var(--accent-hi); display: block; margin-bottom: 20px; }
.chapter-body h2 { margin-bottom: 24px; }
.chapter-body p { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 52ch; }

/* ---------- About page ---------- */
.about-statement { font-family: var(--display); font-size: clamp(26px, 3vw, 46px); line-height: 1.22; letter-spacing: -.025em; max-width: 30ch; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team-card { position: relative; padding: 36px 30px 32px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; transition: border-color .4s, background-color .4s; }
.team-card:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.team-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 48px; }
.team-initials { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border: 1px solid var(--accent); font-size: 0; transition: background-color .4s; }
.team-card:hover .team-initials { background: rgba(194, 102, 64, .12); }
.team-initials::before {
  content: "";
  display: block;
  width: var(--glyph-width);
  height: 32px;
  background: var(--accent);
  -webkit-mask-image: url("/assets/wordmark-stone-transparent.png");
          mask-image: url("/assets/wordmark-stone-transparent.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 249.333px 311.556px;
          mask-size: 249.333px 311.556px;
  -webkit-mask-position: var(--glyph-x) -118.889px;
          mask-position: var(--glyph-x) -118.889px;
}
.team-initial-l { --glyph-width: 19.556px; --glyph-x: -37.778px; }
.team-initial-f { --glyph-width: 19.556px; --glyph-x: -67.778px; }
.team-initial-a { --glyph-width: 30.667px; --glyph-x: -90.889px; }
.team-role { color: var(--dim); text-align: right; }
.team-card h3 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 16px; }
.team-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.team-card .more { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.team-card .more > div { min-height: 0; }
.team-card.is-open .more { grid-template-rows: 1fr; }
.team-card .more p { padding-top: 12px; }
.team-toggle { margin-top: auto; padding-top: 24px; align-self: flex-start; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 14px; display: inline-flex; gap: 10px; align-items: center; }
.team-toggle i { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.team-toggle i::before, .team-toggle i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.team-toggle i::after { transform: translate(-50%, -50%) rotate(90deg); }
.team-card.is-open .team-toggle i::after { transform: translate(-50%, -50%) rotate(0deg); }
html:not(.js) .team-card .more { grid-template-rows: 1fr; }
html:not(.js) .team-toggle { display: none; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.contact-aside { grid-column: 1 / span 4; display: grid; gap: 40px; align-content: start; }
.contact-aside h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: 12px; }
.contact-email { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.contact-email:hover { color: var(--accent-hi); }
.contact-office { display: grid; gap: 4px; color: var(--muted); }
.contact-office b { font-weight: 400; color: var(--ink); font-size: 18px; }
.contact-office .clock { font-family: var(--mono); font-size: 13px; color: var(--accent-hi); }
.contact-form { grid-column: 6 / -1; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.field { display: grid; gap: 10px; margin-bottom: 28px; }
.field label, .field legend { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 17px;
  color: var(--ink);
  transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b4bdc3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 28px; }
.field select option { background: var(--bg-deep); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-hi); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--accent-hi); }
.field [aria-invalid="true"] { border-bottom-color: #ff8a7a; }
.field .err { color: #ffb0a5; font-size: 13px; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
fieldset.field { border: 0; margin: 0 0 28px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg-deep); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.chip span:hover { border-color: var(--ink); color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; }
.form-note { color: var(--dim); font-size: 13px; max-width: 40ch; }
.form-done { display: none; padding: 28px; border: 1px solid rgba(116, 224, 200, .35); background: rgba(116, 224, 200, .06); }
.form-done h3 { font-size: 26px; margin-bottom: 8px; }
.form-done p { color: var(--muted); }
.contact-form.is-done form { display: none; }
.contact-form.is-done .form-done { display: block; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound .display { margin-bottom: 28px; }

/* ---------- Cursor glow (kept from v1) ---------- */
.lfa-cursor-glow { position: fixed; top: 0; left: 0; width: 64px; height: 64px; z-index: 1000; pointer-events: none; opacity: 0; transform: translate3d(-100px, -100px, 0); transition: opacity .12s ease; will-change: transform; }
.lfa-cursor-glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(194, 102, 64, .2) 0%, rgba(194, 102, 64, .09) 25%, rgba(194, 102, 64, .025) 50%, rgba(194, 102, 64, 0) 72%); transition: transform .18s ease; }
.lfa-cursor-glow.is-visible { opacity: 1; }
.lfa-cursor-glow.is-interactive::before { transform: scale(1.6); }
.lfa-cursor-glow.is-pressed::before { transform: scale(.85); }
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("/assets/cursor-modern-white-stable.png") 3 2, auto; }
  a, button, [role="button"], .chip span, label { cursor: url("/assets/cursor-modern-white-stable.png") 3 2, pointer; }
  input, textarea { cursor: text; }
}

/* ---------- Reveal system ---------- */
html.motion [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
html.motion [data-reveal="fade"] { transform: none; }
html.motion [data-reveal="clip"] { opacity: 1; transform: none; }
html.motion [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io), transform 1.8s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
html.motion [data-reveal="clip"] > img { transform: scale(1.2); }
html.motion [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
html.motion [data-reveal="clip"].is-in > img { transform: scale(1); }
html.motion [data-lines] .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0) * 1ms); }
html.motion [data-lines].is-in .line > span { transform: none; }

/* Hero load sequence */
html.motion .hero [data-load] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
html.motion.is-loaded .hero [data-load] { opacity: 1; transform: none; }
html.motion .hero-diagram[data-load] { transform: translate3d(0, 0, 0) scale(.94); }
html.motion.is-loaded .hero-diagram[data-load] { transform: none; }

/* ---------- Page transitions (cross-document View Transitions; ignored where unsupported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.site-header { view-transition-name: site-header; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav a:not(.btn) { padding: 10px 9px; }
  .site-nav a:not(.btn)::after { left: 9px; right: 9px; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-diagram { grid-column: 7 / -1; }
  .display { font-size: clamp(48px, 7vw, 88px); }
  .world-body { grid-template-columns: 1fr; }
  .svc-index { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:last-child { grid-column: span 4; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand { width: 125px; height: 50px; background-position: -24.2px -76.5px; background-size: 160.1px auto; }
  .menu-toggle { display: inline-flex; }
  .header-inner > .brand { position: relative; z-index: 102; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--bg-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
  .site-nav a:not(.btn) { font-family: var(--display); font-size: clamp(36px, 9vw, 56px); letter-spacing: -.03em; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(20px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav.is-open a { transform: none; opacity: 1; }
  .site-nav.is-open a:nth-child(2) { transition-delay: .04s; }
  .site-nav.is-open a:nth-child(3) { transition-delay: .08s; }
  .site-nav.is-open a:nth-child(4) { transition-delay: .12s; }
  .site-nav.is-open a:nth-child(5) { transition-delay: .16s; }
  .site-nav.is-open a:nth-child(6) { transition-delay: .2s; }
  .site-nav a[aria-current="page"] { color: var(--accent-hi); }
  .site-nav .btn { margin: 32px 0 0; align-self: flex-start; font-size: 16px; padding: 16px 24px; }
  .nav-extra { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 32px; color: var(--dim); }
  body.nav-open { overflow: hidden; }

  .hero { min-height: auto; padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy, .hero-diagram { grid-column: 1 / -1; grid-row: auto; }
  .hero-diagram { margin: 0 -8%; aspect-ratio: 1122 / 820; }
  .hero-foot { display: none; }

  .section-head { grid-template-columns: 1fr; }
  .section-head > :first-child, .section-head > :last-child:not(:first-child) { grid-column: 1; }

  .world { min-height: 520px; }
  .world-body { padding: 28px 22px; }
  .world-num { top: 22px; left: 22px; right: 22px; }

  .story-sticky { grid-template-columns: 1fr; gap: 48px; }
  .story-copy, .story-console { grid-column: 1; }
  .console-body { grid-template-columns: 1fr; }
  .feed { border-right: 0; border-bottom: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 24px 16px 20px 0; border-bottom: 1px solid rgba(10, 21, 32, .2); }
  .stats > div + div { padding-left: 0; }
  .stats > div:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stats-on-dark > div { border-bottom-color: var(--line); }

  .process { grid-template-columns: 1fr; gap: 48px; padding-top: 0; padding-left: 36px; }
  .process-line { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .process-line i { transform-origin: top; transform: scaleY(var(--p, 1)); }
  html.motion .process-line i { transform: scaleY(var(--p, 0)); }
  .process-step::before { top: 6px; left: -36px; }

  .standards, .cards-3, .team-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .office + .office { border-left: 0; border-top: 1px solid var(--line); }

  .cta-grid > :first-child, .cta-grid > :last-child { grid-column: 1 / -1; }

  .footer-col, .footer-col:last-child { grid-column: span 6; }
  .footer-col:last-child { grid-column: 1 / -1; }

  .page-hero-grid > :first-child, .page-hero-grid > .page-hero-aside { grid-column: 1 / -1; }
  .page-hero-visual { width: 110vw; right: -40vw; top: 18%; opacity: .55; }

  .svc-head { grid-template-columns: 1fr; }
  .svc-media { aspect-ratio: 16 / 9; }

  .chapter-num { grid-column: 1 / -1; font-size: 96px; }
  .chapter-body { grid-column: 1 / -1; }

  .contact-aside, .contact-form { grid-column: 1 / -1; }
  .contact-form { order: -1; }
  .ethics { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .svc-includes, .svc-notes, .field-row { grid-template-columns: 1fr; }
  .hero-status { font-size: 11px; letter-spacing: .08em; }
  .bbox-label { left: auto; right: -1.5px; }
  .footer-col, .footer-col:last-child { grid-column: 1 / -1; }
  .btn { padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .diagram-motion { display: none; }
  .lfa-cursor-glow { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (hover: none), (pointer: coarse) { .lfa-cursor-glow { display: none; } }
