@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --obsidian: #080807;
  --obsidian-soft: #11100e;
  --ivory: #e9e1d2;
  --ivory-bright: #f4eee3;
  --ink: #11100e;
  --gold: #c95f37;
  --gold-bright: #e9e1d2;
  --lime: #c8ff37;
  --violet: #502c52;
  --rust: #c95f37;
  --aubergine: #502c52;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --muted-dark: #8f897e;
  --muted-light: #6d675e;
  --line-dark: rgba(233, 225, 210, 0.16);
  --line-light: rgba(17, 16, 14, 0.2);
  --scroll-progress: 0;
}

* { box-sizing: border-box; }
html { background: var(--obsidian); color-scheme: dark; scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background: var(--obsidian);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.dialog-open { overflow: hidden; }
button, select, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { color: var(--obsidian); background: var(--lime); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--obsidian);
  background: var(--lime);
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.grain {
  display: none;
}
.scroll-meter {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .04);
}
.scroll-meter span {
  display: block;
  width: calc(var(--scroll-progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--lime));
  box-shadow: 0 0 16px rgba(200, 255, 55, .55);
}

.site-loader {
  position: fixed;
  z-index: 900;
  inset: 0;
  padding: 28px 2.8vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ivory);
  background: #080807;
  opacity: 1;
  visibility: visible;
  transition: opacity .32s .03s ease, visibility .32s .03s;
  animation: loaderFailsafe .01s 4s forwards;
}
.site-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background: linear-gradient(rgba(233,225,210,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(233,225,210,.025) 1px, transparent 1px), radial-gradient(circle at 50% 46%, rgba(142,101,255,.16), transparent 26%);
  background-size: 72px 72px, 72px 72px, auto;
}
.visual-ready .site-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.visual-ready .loader-trace { animation: none; }
.loader-head, .loader-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font: 8px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.loader-head b { color: var(--lime); font-size: 10px; font-weight: 400; }
.loader-center { position: relative; z-index: 1; align-self: center; justify-self: center; text-align: center; }
.loader-infinity { width: min(34vw, 330px); margin: 0 auto 25px; overflow: visible; }
.loader-infinity path { fill: none; stroke-linecap: round; }
.loader-infinity .loader-base { stroke: rgba(233,225,210,.14); stroke-width: .55; }
.loader-infinity .loader-trace { stroke: var(--lime); stroke-width: .8; stroke-dasharray: 20 80; filter: drop-shadow(0 0 9px rgba(200,255,55,.5)); animation: loaderTrace 1.25s linear infinite; }
.loader-center strong { display: block; color: var(--ivory-bright); font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.025em; }
.loader-foot { gap: 24px; color: rgba(233,225,210,.52); }
.loader-foot > i { width: min(38vw, 440px); height: 1px; overflow: hidden; background: rgba(233,225,210,.13); }
.loader-foot > i b { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--lime)); box-shadow: 0 0 12px rgba(200,255,55,.55); transition: width .32s ease; }
@keyframes loaderTrace { to { stroke-dashoffset: -100; } }
@keyframes loaderFailsafe { to { visibility: hidden; pointer-events: none; } }

.field-shell {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 44%, rgba(91, 57, 25, .15), transparent 33%),
    radial-gradient(circle at 78% 35%, rgba(73, 45, 124, .12), transparent 31%),
    var(--obsidian);
}
.field-shell.field-sleeping { visibility: hidden; }
.field-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(233, 225, 210, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 225, 210, .025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 68% 50%, black, transparent 64%);
}
#intelligence-field {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
}
.field-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .72;
  transition: opacity .9s ease;
  background:
    radial-gradient(circle at 72% 42%, rgba(210, 245, 255, .88) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 54%, rgba(200, 255, 55, .8) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 29%, rgba(142, 101, 255, .9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58% 23%, rgba(231, 201, 142, .8) 0 1px, transparent 2px),
    radial-gradient(ellipse at 72% 48%, rgba(105, 70, 208, .3), transparent 12%),
    radial-gradient(ellipse at 72% 48%, rgba(48, 219, 196, .13), transparent 26%);
}
.field-fallback::before {
  content: "";
  position: absolute;
  right: -24vw;
  top: 7%;
  width: 132vw;
  aspect-ratio: 2.1;
  border-radius: 50%;
  opacity: .72;
  transform: rotate(-12deg);
  background:
    radial-gradient(ellipse at center, rgba(244, 238, 227, .92) 0 1px, rgba(200, 255, 55, .23) 2px, transparent 11%),
    conic-gradient(from 14deg at 50% 50%, transparent, rgba(142,101,255,.19) 8%, transparent 17%, rgba(25,193,187,.12) 29%, transparent 41%, rgba(142,101,255,.17) 56%, transparent 72%),
    radial-gradient(ellipse at center, rgba(142, 101, 255, .28), rgba(25, 193, 187, .07) 34%, transparent 68%);
  box-shadow: 0 0 90px rgba(84, 64, 178, .13);
}
.field-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image: radial-gradient(circle, rgba(233, 225, 210, .86) 0 1px, transparent 1.2px);
  background-size: 83px 79px;
  background-position: 13px 27px;
  mask-image: linear-gradient(90deg, transparent 12%, black 53%, black);
}
.field-shell.field-live #intelligence-field,
.field-shell.field-rendered #intelligence-field { opacity: .18; }
.field-shell[data-stage="1"].field-rendered #intelligence-field { opacity: .24; }
.field-shell[data-stage="2"].field-rendered #intelligence-field { opacity: 0; }
.field-shell[data-stage="3"].field-rendered #intelligence-field,
.field-shell[data-stage="4"].field-rendered #intelligence-field { opacity: .16; }
.field-shell.field-rendered .field-fallback { opacity: 0; }
.field-shell.field-static #intelligence-field { display: none; }
.field-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  transform: scale(.97) translate3d(0, 16px, 0);
  transition: opacity .75s ease, transform 1.15s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.field-media img, .field-media svg { display: block; }
.field-media-cosmos img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; filter: saturate(.92) contrast(1.06) brightness(.82); }
.field-media-cosmos::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 62% 52%, transparent 0 14%, rgba(8,8,7,.1) 42%, rgba(8,8,7,.32) 78%); }
.field-media-atom svg, .field-media-network svg, .field-media-chip svg { position: absolute; right: 3vw; top: 50%; width: min(61vw, 900px); max-height: 82vh; transform: translateY(-50%); overflow: visible; }
.field-media-brain img { position: absolute; right: -1.5vw; top: 50%; width: min(73vw, 1220px); height: auto; transform: translateY(-50%); filter: saturate(.94) contrast(1.05) brightness(1.04); }
.field-shell[data-stage="0"] .field-media-cosmos,
.field-shell[data-stage="1"] .field-media-atom,
.field-shell[data-stage="2"] .field-media-brain,
.field-shell[data-stage="3"] .field-media-network,
.field-shell[data-stage="4"] .field-media-chip { opacity: 1; transform: none; }
.atom-orbit { fill: none; stroke: rgba(231,201,142,.72); stroke-width: 2.2; filter: url(#atom-glow); }
.atom-orbit circle { fill: #c8ff37; stroke: none; }
.atom-orbit-b { stroke: rgba(142,101,255,.84); }
.atom-orbit-c { stroke: rgba(244,238,227,.64); }
.atom-halo { opacity: .86; }
.atom-nucleus circle:nth-child(odd) { fill: #e7c98e; }
.atom-nucleus circle:nth-child(even) { fill: #8e65ff; }
.field-shell[data-stage="1"] .atom-halo { animation: atomPulse 3.6s ease-in-out infinite; }
.network-edges line { stroke: rgba(98,232,209,.28); stroke-width: 1; }
.network-nodes circle { fill: #f4eee3; stroke: rgba(142,101,255,.72); stroke-width: 7; paint-order: stroke; }
.network-nodes circle:nth-child(5n) { fill: #c8ff37; stroke: rgba(200,255,55,.22); }
.field-shell[data-stage="3"] .network-nodes circle { animation: nodeSignal 2.8s ease-in-out infinite; animation-delay: calc(var(--node-index, 0) * -65ms); }
.chip-traces { fill: none; stroke: rgba(98,232,209,.52); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-pads { fill: #c8ff37; filter: url(#chip-glow); }
.chip-frame { fill: rgba(15,14,18,.88); stroke: rgba(231,201,142,.55); stroke-width: 2; }
.chip-core { fill: rgba(142,101,255,.28); stroke: #c8ff37; stroke-width: 2; }
.chip-mark { fill: none; stroke: rgba(244,238,227,.84); stroke-width: 8; stroke-linecap: round; }
.field-shell[data-stage="4"] .chip-traces { stroke-dasharray: 8 10; animation: circuitFlow 2.4s linear infinite; }
@keyframes atomPulse { 50% { opacity: .6; transform: scale(1.08); transform-origin: center; } }
@keyframes nodeSignal { 50% { opacity: .44; } }
@keyframes circuitFlow { to { stroke-dashoffset: -36; } }
.field-vignette {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,7,.86) 0%, rgba(8,8,7,.46) 34%, rgba(8,8,7,.07) 62%, rgba(8,8,7,.14) 100%), linear-gradient(180deg, rgba(8,8,7,.18), transparent 34%, rgba(8,8,7,.24));
}
.field-caption {
  position: absolute;
  z-index: 4;
  right: 2.8vw;
  bottom: 24px;
  display: flex;
  gap: 34px;
  color: rgba(233, 225, 210, .5);
  font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .17em;
}
.field-caption span:first-child { color: var(--gold-bright); }
.scale-rail {
  position: absolute;
  right: 2.8vw;
  top: 50%;
  z-index: 4;
  width: 112px;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
  transform: translateY(-50%);
}
.scale-step {
  position: relative;
  padding-left: 39px;
  color: rgba(233, 225, 210, .28);
  font: 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .35s ease;
}
.scale-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 1px;
  background: rgba(233, 225, 210, .2);
  transform-origin: right;
  transition: width .35s ease, background .35s ease, box-shadow .35s ease;
}
.scale-step span { margin-right: 6px; color: rgba(233, 225, 210, .18); }
.scale-step.is-active { color: var(--ivory); }
.scale-step.is-active::before { width: 34px; background: var(--lime); box-shadow: 0 0 12px rgba(200, 255, 55, .5); }
.scale-step.is-active span { color: var(--lime); }

.site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  padding: 18px 2.8vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(8, 8, 7, .94), rgba(8, 8, 7, .56) 62%, transparent);
}
.monogram {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 12px 6px 0;
}
.brand-name { display: grid; gap: 3px; }
.brand-name b { color: var(--ivory-bright); font-size: 10px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
.brand-name small {
  color: rgba(233, 225, 210, .64);
  font-size: 7px;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); }
.desktop-nav a, .header-cta {
  position: relative;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid rgba(233, 225, 210, .52);
}
.header-cta b { color: var(--lime); font-size: 15px; transition: transform .3s ease; }
.header-cta:hover b { transform: translate(4px, -4px); }
.menu-toggle, .mobile-menu { display: none; }

main { position: relative; z-index: 1; }
.hero {
  position: relative;
  min-height: 100svh;
  padding: 135px 2.8vw 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 2.8vw;
  right: 2.8vw;
  bottom: 0;
  height: 1px;
  background: var(--line-dark);
}
.hero-rail {
  display: flex;
  justify-content: space-between;
  color: rgba(233, 225, 210, .6);
  font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-rail span:first-child { display: flex; align-items: center; gap: 9px; color: var(--ivory); }
.hero-rail i, .contact-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
}
.hero-copy { position: relative; z-index: 2; width: min(1380px, 94vw); margin-top: auto; }
.hero-kicker {
  margin-bottom: 28px;
  color: var(--gold-bright);
  font: 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-kicker span { margin: 0 9px; color: var(--lime); }
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7.7vw, 9.2rem);
  font-weight: 650;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; opacity: 0; transform: translateY(115%) rotate(1.5deg); }
.visual-ready .hero-line > span { animation: heroReveal 1.25s cubic-bezier(.16,1,.3,1) both; }
.visual-ready .hero-line:nth-child(2) > span { animation-delay: .08s; }
.visual-ready .hero-line:nth-child(3) > span { animation-delay: .16s; }
.visual-ready .hero-line:nth-child(4) > span { animation-delay: .24s; }
.hero-serif {
  margin-left: 8vw;
  color: var(--ivory-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: -.06em;
}
.hero-accent { color: var(--lime); white-space: nowrap; }
.gravity-line {
  margin: clamp(22px, 3vh, 38px) 0 0;
  color: rgba(233, 225, 210, .72);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  letter-spacing: -.02em;
}
.gravity-line::before { content: "//"; margin-right: 12px; color: var(--lime); font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.gravity-line em { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-size: 1.08em; font-weight: 400; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(115%) rotate(1.5deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
.hero-enter { opacity: 0; transform: translateY(18px); }
.visual-ready .hero-enter { animation: softIn 1s .38s cubic-bezier(.16,1,.3,1) both; }
@keyframes softIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: 5vh;
  display: grid;
  grid-template-columns: minmax(280px, 470px) 1fr;
  align-items: end;
  gap: 5vw;
}
.hero-foot > p {
  margin: 0;
  color: rgba(233, 225, 210, .72);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.hero-actions { display: flex; align-items: center; gap: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid transparent;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.button span { margin-left: 28px; font-size: 15px; }
.button-primary { color: var(--obsidian); background: var(--lime); }
.button-primary:hover { color: var(--ivory); background: var(--violet); transform: translateY(-2px); }
.button-ghost { color: var(--ivory); border-color: var(--line-dark); background: rgba(255,255,255,.03); }
.button-ghost:hover { color: var(--obsidian); background: var(--gold-bright); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.text-link span { color: var(--gold-bright); transition: transform .25s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-orbit-label {
  position: absolute;
  z-index: 2;
  right: 2.8vw;
  top: 48%;
  color: rgba(233, 225, 210, .38);
  font: 8px/1 ui-monospace, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: none;
}

.signal-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--obsidian);
  background: var(--gold);
}
.marquee-track {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 16px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.marquee-track i { font-style: normal; font-size: 9px; }

.eyebrow {
  display: block;
  color: var(--gold-bright);
  font: 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.transformation {
  position: relative;
  min-height: 540vh;
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(8,8,7,.92), rgba(8,8,7,.58) 18%, rgba(8,8,7,.5) 85%, var(--obsidian));
}
.transformation-intro {
  min-height: 88vh;
  padding: 17vh 2.8vw 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.transformation-intro h2 {
  max-width: 1050px;
  margin: 34px 0;
  font-size: clamp(3.2rem, 6.8vw, 8.2rem);
  font-weight: 550;
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.transformation-intro h2 em,
.section-top h2 em,
.lab-copy h2 em,
.about-statement h2 em,
.contact-section h2 em {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}
.transformation-intro > p {
  max-width: 510px;
  margin: 0 0 0 52vw;
  color: rgba(233, 225, 210, .6);
  font-size: 1.08rem;
  line-height: 1.55;
}
.chapters { position: relative; }
.chapter {
  position: relative;
  min-height: 105vh;
  padding: 10vh 2.8vw;
  display: grid;
  grid-template-columns: 10vw minmax(280px, 480px) 1fr;
  align-items: center;
}
.chapter::before {
  content: "";
  position: absolute;
  left: 2.8vw;
  right: 2.8vw;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-dark), transparent 62%);
}
.chapter-number {
  align-self: start;
  padding-top: 4px;
  color: rgba(233, 225, 210, .26);
  font: 3.2rem/.8 Georgia, serif;
  letter-spacing: -.08em;
}
.chapter-copy { grid-column: 2; }
.chapter-label {
  display: block;
  margin-bottom: 24px;
  color: var(--lime);
  font: 9px/1.2 ui-monospace, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.chapter h3 {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 4.7vw, 5.8rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}
.chapter p { margin: 0; color: rgba(233, 225, 210, .62); font-size: 1.02rem; line-height: 1.58; }
.chapter ul {
  margin: 34px 0 0;
  padding: 18px 0 0;
  display: flex;
  gap: 9px;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.chapter li {
  padding: 7px 9px;
  border: 1px solid var(--line-dark);
  color: rgba(233, 225, 210, .72);
  font: 8px/1 ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gravity-manifesto {
  position: relative;
  z-index: 4;
  min-height: 88vh;
  padding: 16vh 2.8vw 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 78% 40%, rgba(142, 101, 255, .16), transparent 30%),
    radial-gradient(circle at 65% 52%, rgba(200, 255, 55, .07), transparent 24%),
    var(--obsidian);
}
.gravity-manifesto > p {
  max-width: 1260px;
  margin: 40px 0 9vh;
  font-size: clamp(4.3rem, 9vw, 11rem);
  font-weight: 570;
  line-height: .82;
  letter-spacing: -.078em;
  text-transform: uppercase;
}
.gravity-manifesto > p em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-transform: none; }
.manifesto-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.manifesto-foot span { padding: 19px 0; border-right: 1px solid var(--line-dark); color: rgba(233, 225, 210, .5); font: 8px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.manifesto-foot span:not(:first-child) { padding-left: 20px; }
.manifesto-foot span:last-child { border-right: 0; }

.light-section { color: var(--ink); background: var(--ivory); }
.work-section { position: relative; z-index: 4; padding: 145px 2.8vw 120px; }
.section-top {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 7vw;
  margin-bottom: 100px;
}
.section-top .eyebrow, .evidence-head .eyebrow { color: #70562d; }
.section-top h2 {
  margin: 28px 0 0;
  font-size: clamp(4rem, 7.8vw, 9.2rem);
  font-weight: 600;
  line-height: .83;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.section-top h2 em { color: #5b3cb7; }
.section-intro > p { max-width: 500px; margin: 0; font-size: 1.06rem; line-height: 1.55; }
.evidence-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  color: var(--muted-light);
  font: 9px/1.5 ui-monospace, monospace !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.evidence-note span { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #5b3cb7; }
.work-toolbar {
  margin-bottom: 32px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.filter-set { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted-light);
  background: transparent;
  font: 9px/1 ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter span { margin-left: 4px; opacity: .6; }
.filter:hover, .filter.is-active { color: var(--ivory); background: var(--ink); }
.toolbar-hint { color: var(--muted-light); font: 8px/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.project-card { min-width: 0; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.project-card:nth-child(even) { border-right: 0; }
.project-card[hidden] { display: none; }
.project-card > a {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 25px 24px 30px;
  display: flex;
  flex-direction: column;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.project-card > a:hover .project-art { transform: scale(.985); }
.project-card > a:hover .card-copy b { transform: translate(3px, -3px); }
.project-card > a:hover h3 { color: #5b3cb7; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font: 8px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.maturity { padding: 7px 9px; border: 1px solid currentColor; font: 8px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.maturity.in-progress { color: #7654cf; }
.maturity.private { color: #6b655d; }
.maturity.anonymized { color: #8d4b31; }
.maturity.public { color: #3f6c2b; }
.maturity.verified { color: #3c625c; }
.project-art {
  position: relative;
  min-height: clamp(330px, 39vw, 560px);
  margin-bottom: 32px;
  overflow: hidden;
  color: var(--ivory);
  background: var(--obsidian-soft);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
  isolation: isolate;
}
.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.art-label {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 18px;
  padding: 7px 9px;
  border: 1px solid rgba(233,225,210,.22);
  color: rgba(233,225,210,.65);
  background: rgba(8,8,7,.48);
  font: 7px/1 ui-monospace, monospace;
  letter-spacing: .14em;
}
.card-copy h3 { margin: 0; font-size: clamp(2.7rem, 4.4vw, 5.4rem); font-weight: 580; line-height: .86; letter-spacing: -.07em; transition: color .3s ease; }
.card-copy > p { max-width: 570px; margin: 24px 0 34px; color: #4f4a43; font-size: 1rem; line-height: 1.55; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-light); color: #625c54; font: 8px/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.card-foot b { color: #5b3cb7; font-weight: 500; transition: transform .25s ease; }

.art-workspine { background: radial-gradient(circle at 50% 46%, #362453, #12100f 52%); }
.memory-spine { position: absolute; left: 50%; top: 8%; bottom: 10%; width: 1px; background: linear-gradient(var(--violet), var(--gold), var(--lime)); box-shadow: 0 0 25px rgba(142,101,255,.8); }
.art-workspine > i {
  position: absolute; z-index: 2; left: 50%; width: 16px; height: 16px; border: 1px solid var(--gold); border-radius: 50%; background: #14110f; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(205,169,104,.08), 0 0 32px rgba(205,169,104,.4);
}
.art-workspine > i::after { content: ""; position: absolute; top: 50%; width: clamp(70px, 12vw, 190px); height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.art-workspine > i:nth-of-type(1) { top: 18%; }
.art-workspine > i:nth-of-type(2) { top: 34%; }
.art-workspine > i:nth-of-type(3) { top: 50%; }
.art-workspine > i:nth-of-type(4) { top: 66%; }
.art-workspine > i:nth-of-type(5) { top: 82%; }
.art-workspine > i:nth-of-type(odd)::after { right: 19px; }
.art-workspine > i:nth-of-type(even)::after { left: 19px; transform: rotate(180deg); }
.art-workspine::after { content: "WORK / MEMORY"; position: absolute; right: 20px; top: 20px; color: rgba(233,225,210,.28); font: 8px ui-monospace, monospace; letter-spacing: .16em; }

.art-manhaj { background: radial-gradient(circle at 50% 50%, rgba(200,255,55,.13), transparent 35%), #11100e; }
.cockpit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(233,225,210,.36); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-a { width: 68%; aspect-ratio: 1; border-color: rgba(200,255,55,.5); }
.ring-a::before, .ring-b::before, .ring-c::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.ring-b { width: 48%; aspect-ratio: 1; transform: translate(-50%,-50%) rotate(50deg); border-style: dashed; }
.ring-b::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.ring-c { width: 28%; aspect-ratio: 1; transform: translate(-50%,-50%) rotate(-30deg); }
.ring-c::before { background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.cockpit-core { position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); transform: translate(-50%,-50%) rotate(45deg); color: var(--gold-bright); background: #17130f; box-shadow: 0 0 60px rgba(205,169,104,.18); font: 1.4rem Georgia, serif; }
.cockpit-core::first-letter { transform: rotate(-45deg); }

.art-enterprise { padding: 12% 10%; display: flex; flex-direction: column; justify-content: center; perspective: 900px; background: #0d0d0c; }
.os-layer {
  position: relative; width: 72%; height: 18%; margin: -2% auto; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(233,225,210,.24);
  transform: rotateX(62deg) rotateZ(-18deg); background: rgba(24,21,18,.88); box-shadow: 0 18px 40px rgba(0,0,0,.34);
}
.os-layer:nth-child(1) { border-color: rgba(200,255,55,.5); }
.os-layer:nth-child(2) { width: 79%; border-color: rgba(205,169,104,.55); }
.os-layer:nth-child(3) { width: 86%; border-color: rgba(142,101,255,.55); }
.os-layer:nth-child(4) { width: 93%; }
.os-layer span { color: rgba(233,225,210,.48); font: 7px ui-monospace, monospace; letter-spacing: .2em; }

.art-errorlens { min-height: clamp(330px, 32vw, 460px); background: radial-gradient(circle at 52% 48%, rgba(142,101,255,.12), transparent 36%), #0f0e0d; }
.art-errorlens svg { position: absolute; inset: 12% 5% 18%; width: 90%; height: 70%; overflow: visible; }
.art-errorlens path { fill: none; stroke: rgba(233,225,210,.24); stroke-width: 2; stroke-dasharray: .012 .018; }
.art-errorlens circle { fill: #11100e; stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(205,169,104,.8)); }
.art-errorlens circle:nth-of-type(3) { stroke: var(--rust); }
.art-errorlens circle:last-of-type { fill: var(--lime); stroke: var(--lime); }
.recovery-pulse { position: absolute; left: 92%; top: 50%; width: 12px; height: 12px; border: 1px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 6px rgba(200,255,55,.08); }

.art-migration { display: grid; grid-template-columns: 1fr auto 1fr; place-items: center; gap: 5%; padding: 10%; background: #11100e; }
.migration-source, .migration-target { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(233,225,210,.28); }
.migration-source { border-radius: 50%; }
.migration-source span, .migration-target span { font: 11px ui-monospace, monospace; letter-spacing: .14em; }
.migration-source i { position: absolute; width: 11px; height: 11px; border: 1px solid var(--gold); border-radius: 50%; }
.migration-source i:nth-of-type(1) { top: 15%; right: 14%; }
.migration-source i:nth-of-type(2) { bottom: 11%; left: 27%; }
.migration-source i:nth-of-type(3) { top: 48%; left: -6px; }
.migration-target { border-color: var(--lime); box-shadow: inset 0 0 42px rgba(200,255,55,.05); }
.migration-target::before, .migration-target::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(200,255,55,.22); }
.migration-target::after { inset: 27%; }
.migration-arrow { color: var(--gold-bright); font: clamp(.8rem, 1.4vw, 1.1rem) ui-monospace, monospace; letter-spacing: .1em; white-space: nowrap; }

.art-onboarding { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 8%; padding: 8%; background: linear-gradient(135deg, #12100f, #171326); }
.checkpoint { position: relative; z-index: 2; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(233,225,210,.28); transform: rotate(45deg); }
.checkpoint::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(38% + 1px); height: 1px; background: linear-gradient(90deg, var(--gold), rgba(205,169,104,.15)); }
.checkpoint:last-of-type::after { display: none; }
.checkpoint b, .checkpoint span { transform: rotate(-45deg); }
.checkpoint b { color: var(--lime); font: 8px ui-monospace, monospace; }
.checkpoint span { color: rgba(233,225,210,.62); font: 6px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.c3 { border-color: var(--gold); box-shadow: 0 0 34px rgba(205,169,104,.12); }
.project-wide { grid-column: 1 / 3; border-right: 0; }
.project-wide .project-art { min-height: 430px; }
.project-wide .card-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: start; }
.project-wide .card-copy h3 { grid-column: 1; grid-row: 1 / 3; }
.project-wide .card-copy > p { grid-column: 2; margin-top: 0; }
.project-wide .card-foot { grid-column: 2; }

.github-proof { margin-top: 105px; padding-top: 55px; border-top: 1px solid var(--line-light); }
.github-proof-head { margin-bottom: 52px; display: grid; grid-template-columns: 1.18fr .82fr; gap: 28px 7vw; align-items: end; }
.github-proof-head > span { grid-column: 1 / 3; color: #70562d; font: 8px ui-monospace, monospace; letter-spacing: .15em; text-transform: uppercase; }
.github-proof-head h3 { margin: 0; font-size: clamp(2.8rem, 5vw, 6rem); font-weight: 550; line-height: .9; letter-spacing: -.06em; }
.github-proof-head h3 em { color: #5b3cb7; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.github-proof-head p { max-width: 520px; margin: 0 0 26px; color: var(--muted-light); font-size: .95rem; line-height: 1.55; }
.dark-link { color: var(--ink); border-color: var(--line-light); }
.dark-link span { color: #5b3cb7; }
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); perspective: 1100px; }
.repo-card { --tilt-x: 0deg; --tilt-y: 0deg; --card-x: 50%; --card-y: 50%; position: relative; min-height: 390px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .18s ease, color .3s ease, background .3s ease; }
.repo-card::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(280px circle at var(--card-x) var(--card-y), rgba(142,101,255,.2), transparent 68%); transition: opacity .25s ease; }
.repo-card:hover { color: var(--ivory); background: #11100e; }
.repo-card:hover::before { opacity: 1; }
.repo-card > * { position: relative; z-index: 1; transform: translateZ(16px); }
.repo-card > div { display: flex; justify-content: space-between; color: #70562d; font: 7px ui-monospace, monospace; letter-spacing: .12em; }
.repo-card > div i { padding: 4px 6px; border: 1px solid rgba(17,16,14,.22); color: #3d6d14; font-style: normal; }
.repo-card:hover > div { color: var(--gold-bright); }
.repo-card:hover > div i { color: var(--lime); border-color: rgba(200,255,55,.32); }
.repo-card h4 { margin: 64px 0 20px; font-size: clamp(2rem, 3.1vw, 4rem); font-weight: 570; line-height: .88; letter-spacing: -.06em; }
.repo-card p { margin: 0 0 24px; color: var(--muted-light); font-size: .88rem; line-height: 1.54; }
.repo-card:hover p { color: rgba(233,225,210,.63); }
.repo-card ul { margin: auto 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; list-style: none; }
.repo-card li { padding: 6px 8px; border: 1px solid var(--line-light); color: var(--muted-light); font: 7px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.repo-card:hover li { color: rgba(233,225,210,.58); border-color: var(--line-dark); }
.repo-card > b { padding-top: 15px; border-top: 1px solid var(--line-light); color: #5b3cb7; font: 500 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.repo-card:hover > b { color: var(--lime); border-color: var(--line-dark); }
.proof-conversion { padding: 34px 0; display: grid; grid-template-columns: 118px minmax(280px, 660px) auto; align-items: center; justify-content: space-between; gap: clamp(24px, 3vw, 58px); border-bottom: 1px solid var(--line-light); }
.proof-conversion > img { width: 118px; height: 148px; object-fit: cover; border: 1px solid var(--line-light); filter: saturate(.82) contrast(1.03); }
.proof-conversion > div { max-width: 660px; }
.proof-conversion > div span { color: #70562d; font: 8px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.proof-conversion p { margin: 10px 0 0; color: var(--muted-light); font-size: 1rem; line-height: 1.5; }
.button-proof { flex: 0 0 auto; color: var(--ivory); border-color: var(--ink); background: var(--ink); }
.button-proof:hover { color: var(--obsidian); border-color: var(--violet); background: var(--violet); }
.github-proof.is-visible .repo-card { animation: repoArrive .7s cubic-bezier(.16,1,.3,1) both; }
.github-proof.is-visible .repo-card:nth-child(2) { animation-delay: .06s; }
.github-proof.is-visible .repo-card:nth-child(3) { animation-delay: .12s; }
.github-proof.is-visible .repo-card:nth-child(4) { animation-delay: .18s; }
.github-proof.is-visible .repo-card:nth-child(5) { animation-delay: .24s; }
.github-proof.is-visible .repo-card:nth-child(6) { animation-delay: .30s; }
@keyframes repoArrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); } }

.lab-section {
  position: relative;
  z-index: 4;
  min-height: 105vh;
  padding: 145px 2.8vw;
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(620px, 1.28fr);
  align-items: center;
  gap: 7vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 48%, rgba(142,101,255,.14), transparent 28%),
    linear-gradient(135deg, #090908, #11100e);
}
.lab-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(233,225,210,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(233,225,210,.04) 1px, transparent 1px); background-size: 64px 64px; }
.lab-copy, .lab-console { position: relative; z-index: 2; }
.lab-copy h2 {
  margin: 28px 0 36px;
  font-size: clamp(3.6rem, 6.3vw, 7.6rem);
  font-weight: 570;
  line-height: .88;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.lab-copy > p { max-width: 510px; margin: 0; color: rgba(233,225,210,.63); font-size: 1.04rem; line-height: 1.58; }
.lab-principles { margin: 38px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.lab-principles span { padding: 14px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); color: rgba(233,225,210,.64); font: 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.lab-principles b { margin-right: 8px; color: var(--lime); font-weight: 400; }
.text-link.inverse { color: var(--ivory); }
.lab-console { border: 1px solid rgba(233,225,210,.2); background: #0a0909; box-shadow: 0 36px 80px rgba(0,0,0,.3); }
.console-top { height: 48px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-dark); color: rgba(233,225,210,.47); font: 7px ui-monospace, monospace; letter-spacing: .14em; }
.console-top > div { display: flex; gap: 6px; }
.console-top > div i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(233,225,210,.28); }
.console-status { justify-self: end; display: flex; align-items: center; gap: 7px; color: var(--lime); }
.console-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.console-controls { padding: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-dark); }
.console-controls label { color: rgba(233,225,210,.48); font: 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.console-controls select {
  width: 100%;
  padding: 11px 34px 11px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ivory);
  background: #11100e;
  font: 9px ui-monospace, monospace;
  letter-spacing: .08em;
}
.console-controls button { padding: 12px 14px; border: 0; color: var(--obsidian); background: var(--lime); font: 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.console-controls button:disabled { opacity: .65; cursor: wait; }
.console-controls button span { margin-left: 10px; }
.pipeline { padding: 38px 22px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.pipeline > i { width: 18px; height: 1px; background: rgba(233,225,210,.18); }
.pipeline-node { min-width: 0; aspect-ratio: 1; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(233,225,210,.16); background: #11100e; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.pipeline-node > span { color: rgba(233,225,210,.28); font: 7px ui-monospace, monospace; }
.pipeline-node b { overflow: hidden; color: rgba(233,225,210,.65); font: 7px ui-monospace, monospace; letter-spacing: .08em; }
.pipeline-node small { color: rgba(233,225,210,.3); font: 6px ui-monospace, monospace; text-transform: uppercase; }
.pipeline-node.is-complete { border-color: rgba(200,255,55,.62); background: rgba(200,255,55,.055); transform: translateY(-3px); }
.pipeline-node.is-complete small { color: var(--lime); }
.pipeline-node.is-warning { border-color: var(--gold); background: rgba(205,169,104,.08); transform: translateY(-3px); }
.pipeline-node.is-warning small { color: var(--gold-bright); }
.event-console { border-top: 1px solid var(--line-dark); }
.event-head { padding: 11px 16px; display: flex; justify-content: space-between; color: rgba(233,225,210,.34); font: 7px ui-monospace, monospace; letter-spacing: .11em; }
#event-log { min-height: 220px; max-height: 260px; margin: 0; padding: 4px 16px 18px; list-style: none; overflow: auto; border-top: 1px solid rgba(233,225,210,.07); }
#event-log li { padding: 10px 0; display: grid; grid-template-columns: 72px 1fr; gap: 12px; border-bottom: 1px solid rgba(233,225,210,.06); color: rgba(233,225,210,.65); font: 8px/1.45 ui-monospace, monospace; }
#event-log time { color: rgba(233,225,210,.28); }
#event-log li.complete span::before { content: "✓"; margin-right: 8px; color: var(--lime); }
#event-log li.warning span::before { content: "!"; margin-right: 8px; color: var(--gold-bright); }

.evidence-section { position: relative; z-index: 4; padding: 120px 2.8vw 140px; }
.evidence-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.evidence-head p { max-width: 390px; margin: 0; color: var(--muted-light); }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.evidence-grid article { min-height: 390px; padding: 28px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.evidence-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.5rem, 7vw, 8rem); font-weight: 400; line-height: .9; letter-spacing: -.08em; color: #5b3cb7; }
.evidence-grid h3 { margin: 18px 0; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; }
.evidence-grid p { margin: 0; color: var(--muted-light); font-size: .92rem; line-height: 1.55; }
.evidence-grid article > span { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-light); color: #70562d; font: 7px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }

.about-section {
  position: relative;
  z-index: 4;
  padding: 145px 2.8vw 120px;
  background:
    radial-gradient(circle at 14% 70%, rgba(142,101,255,.12), transparent 24%),
    #0a0908;
}
.portrait-layout {
  padding-bottom: 105px;
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(480px, 1.12fr);
  gap: clamp(55px, 8vw, 150px);
  border-bottom: 1px solid var(--line-dark);
}
.portrait-stage { position: sticky; top: 124px; align-self: start; }
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 225, 210, .22);
  background:
    radial-gradient(circle at 50% 40%, rgba(200, 255, 55, .13), transparent 17%),
    radial-gradient(circle at 48% 44%, rgba(142, 101, 255, .28), transparent 40%),
    linear-gradient(155deg, #141210, #090908 70%);
  isolation: isolate;
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background-image: linear-gradient(rgba(233, 225, 210, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 225, 210, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black, transparent 75%);
}
.portrait-frame::after {
  content: "LIVE PROFILE / GITHUB";
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 18px;
  color: rgba(233, 225, 210, .34);
  font: 7px ui-monospace, monospace;
  letter-spacing: .16em;
}
.portrait-frame > span { color: rgba(233, 225, 210, .92); font: 600 clamp(7rem, 14vw, 13rem)/1 "Helvetica Neue", sans-serif; letter-spacing: -.1em; }
.portrait-frame > small { position: absolute; z-index: 3; left: 20px; bottom: 20px; color: rgba(244, 238, 227, .72); font: 7px/1.5 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 12px #000; }
.portrait-frame img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); transform: scale(1.03); transition: transform .18s ease-out, filter .35s ease; }
.portrait-frame::before { z-index: 2; mix-blend-mode: screen; }
.portrait-frame:hover img { filter: saturate(.95) contrast(1.04); }
.portrait-orbit { position: absolute; z-index: 2; left: 50%; top: 50%; border: 1px solid rgba(231, 201, 142, .42); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit-portrait-a { width: 72%; aspect-ratio: 1; }
.orbit-portrait-b { width: 94%; aspect-ratio: 1; border-color: rgba(142, 101, 255, .25); transform: translate(-50%, -50%) rotate(24deg) scaleY(.62); }
.portrait-caption { padding: 15px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); color: rgba(233, 225, 210, .44); font: 7px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.portrait-caption span:first-child { color: var(--ivory); }
.portrait-socials { display: flex; justify-content: flex-end; gap: 20px; padding-top: 13px; color: rgba(233,225,210,.58); font: 7px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.portrait-socials a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.portrait-socials a:hover { color: var(--lime); border-color: var(--lime); }
.about-statement { padding-bottom: 0; border-bottom: 0; }
.about-statement h2 {
  margin: 30px 0 0;
  font-size: clamp(3.8rem, 7vw, 8.2rem);
  font-weight: 570;
  line-height: .82;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.about-lead { margin: 55px 0 22px; color: var(--ivory) !important; font-size: clamp(1.2rem, 1.7vw, 1.55rem) !important; line-height: 1.45 !important; letter-spacing: -.025em; }
.about-statement > p:not(.about-lead) { max-width: 690px; margin: 0; color: rgba(233, 225, 210, .58); font-size: 1rem; line-height: 1.6; }
.solo-note { margin-top: 38px; padding: 20px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.solo-note > span { color: var(--lime); font: 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.solo-note p { margin: 0; color: rgba(233, 225, 210, .5); font-size: .9rem; line-height: 1.5; }
.about-statement .button { margin-top: 34px; }
.about-grid { padding-top: 90px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.about-intro { align-self: start; position: sticky; top: 135px; }
.about-intro > p { max-width: 520px; margin: 0 0 22px; color: rgba(233,225,210,.68); font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; letter-spacing: -.025em; }
.about-intro .button { margin-top: 26px; }
.career-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.about-section > .career-timeline { margin-top: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line-dark); }
.about-section > .career-timeline li { min-height: 310px; padding: 26px 22px; display: flex; flex-direction: column; gap: 0; border-right: 1px solid var(--line-dark); }
.about-section > .career-timeline li > span { margin-bottom: auto; }
.about-section > .career-timeline h3 { margin: 55px 0 18px; }
.career-timeline li { padding: 28px 0 36px; display: grid; grid-template-columns: 90px 1fr; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.career-timeline li > span { color: var(--lime); font: 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.career-timeline h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.6vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.career-timeline p { max-width: 560px; margin: 0; color: rgba(233,225,210,.52); font-size: .95rem; line-height: 1.55; }
.tool-constellation { margin: 100px 0 0; padding: 28px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.tool-constellation li { padding: 10px 13px; border: 1px solid var(--line-dark); color: rgba(233,225,210,.61); font: 8px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.tool-constellation li:hover { color: var(--obsidian); border-color: var(--gold-bright); background: var(--gold-bright); transform: translateY(-3px); }

.notes-section { position: relative; z-index: 4; padding: 140px 2.8vw; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.notes-grid article { min-height: 500px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); transition: background .3s ease; }
.notes-grid article:hover { background: var(--ivory-bright); }
.notes-grid article > span { color: #70562d; font: 8px ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.notes-grid h3 { margin: auto 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 3.5vw, 4.2rem); font-weight: 400; line-height: .96; letter-spacing: -.05em; }
.notes-grid p { min-height: 70px; margin: 0 0 28px; color: var(--muted-light); font-size: .94rem; line-height: 1.55; }
.notes-grid button { width: 100%; padding: 14px; border: 1px solid var(--line-light); color: var(--muted-light); background: transparent; font: 8px ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }

.contact-section {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  padding: 135px 2.8vw 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(205,169,104,.17), transparent 26%),
    radial-gradient(circle at 88% 55%, rgba(142,101,255,.13), transparent 24%),
    var(--obsidian);
}
.contact-section::before {
  content: "";
  position: absolute;
  right: 8vw;
  top: 12%;
  width: 32vw;
  aspect-ratio: 1;
  border: 1px solid rgba(233,225,210,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(233,225,210,.018), 0 0 0 16vw rgba(233,225,210,.012);
}
.contact-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.contact-meta > span:last-child { display: flex; align-items: center; gap: 10px; color: rgba(233,225,210,.5); font: 8px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.contact-section h2 {
  position: relative;
  z-index: 2;
  margin: 10vh 0 40px;
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 570;
  line-height: .72;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.contact-section h2 em { color: var(--lime); }
.contact-lead { position: relative; z-index: 2; max-width: 620px; margin: 0 0 60px; color: rgba(233,225,210,.62); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; }
.contact-options { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.contact-options > a { padding: 26px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-dark); font-size: clamp(1.7rem, 3.2vw, 3.6rem); line-height: 1; letter-spacing: -.05em; transition: color .25s ease; }
.contact-options > a:first-child { padding-right: 28px; border-right: 1px solid var(--line-dark); }
.contact-options > a:last-child { padding-left: 28px; }
.contact-options small { display: block; margin-bottom: 10px; color: rgba(233,225,210,.38); font: 8px ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.contact-options b { color: var(--gold-bright); font-size: 2rem; font-weight: 400; transition: transform .3s ease; }
.contact-options a:hover { color: var(--lime); }
.contact-options a:hover b { transform: translate(6px, -6px); }
.contact-section > footer {
  position: absolute;
  left: 2.8vw;
  right: 2.8vw;
  bottom: 26px;
  z-index: 2;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  color: rgba(233,225,210,.48);
  font: 8px ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-section footer > div { display: flex; gap: 24px; }
.contact-section footer > div:first-child b { color: var(--ivory); font-weight: 500; }
.contact-section footer > div:nth-child(2) a:hover { color: var(--lime); }
.contact-section footer > div:last-child { justify-self: end; }

.case-dialog {
  width: min(1100px, calc(100vw - 40px));
  max-width: 1100px;
  height: min(90vh, 940px);
  max-height: 940px;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(233,225,210,.2);
  border-radius: 0;
  color: var(--ivory);
  background: #0d0c0b;
  box-shadow: 0 70px 150px rgba(0,0,0,.75);
}
.case-dialog::backdrop { background: rgba(5,5,4,.9); }
.dialog-close { position: fixed; z-index: 5; top: calc(5vh + 17px); right: max(30px, calc((100vw - min(1100px, 100vw - 40px)) / 2 + 18px)); padding: 9px 11px; border: 1px solid var(--line-dark); color: var(--ivory); background: #13110f; font: 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.dialog-close span { margin-left: 8px; color: var(--lime); font-size: 14px; }
.dialog-scroll { height: 100%; overflow-y: auto; }
.dialog-scroll > header { min-height: 520px; padding: 46px 54px; display: flex; flex-direction: column; justify-content: end; border-bottom: 1px solid var(--line-dark); background: radial-gradient(circle at 78% 30%, rgba(142,101,255,.18), transparent 31%), radial-gradient(circle at 62% 58%, rgba(205,169,104,.1), transparent 28%); }
.dialog-scroll > header > div { margin-bottom: auto; display: flex; justify-content: space-between; align-items: center; color: rgba(233,225,210,.45); font: 8px ui-monospace, monospace; letter-spacing: .12em; }
.dialog-scroll h2 { margin: 0; font-size: clamp(4rem, 8vw, 8rem); font-weight: 580; line-height: .82; letter-spacing: -.08em; }
.dialog-scroll header > p { max-width: 730px; margin: 28px 0 0; color: rgba(233,225,210,.64); font-size: 1.2rem; line-height: 1.5; }
.dialog-body { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-body section { min-height: 320px; padding: 42px 52px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.dialog-body section:nth-child(even) { border-right: 0; }
.dialog-label { display: block; margin-bottom: 28px; color: var(--gold-bright); font: 8px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.dialog-body p { margin: 0; color: rgba(233,225,210,.65); font-size: 1rem; line-height: 1.6; }
.architecture-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.architecture-chain span { padding: 9px 10px; border: 1px solid var(--line-dark); color: rgba(233,225,210,.68); font: 8px ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.architecture-chain span b { margin-right: 7px; color: var(--lime); font-weight: 400; }
.architecture-chain > i { color: rgba(233,225,210,.2); font-style: normal; }
.dialog-body ol { margin: 0; padding: 0; list-style: none; counter-reset: decisions; }
.dialog-body li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line-dark); color: rgba(233,225,210,.63); font-size: .92rem; line-height: 1.45; counter-increment: decisions; }
.dialog-body li::before { content: "0" counter(decisions); position: absolute; left: 0; top: 15px; color: var(--lime); font: 7px ui-monospace, monospace; }
.dialog-footer { padding: 30px 52px; display: flex; justify-content: space-between; align-items: center; }
.dialog-footer > div { display: flex; gap: 7px; flex-wrap: wrap; }
.dialog-footer > div span { padding: 7px 9px; border: 1px solid var(--line-dark); color: rgba(233,225,210,.52); font: 7px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.dialog-footer > a { display: flex; gap: 18px; align-items: center; color: var(--lime); font: 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.noscript { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; padding: 15px; color: var(--obsidian); background: var(--gold-bright); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Interaction is local to the section under the pointer. No page-wide animation loop. */
.interactive-zone { --pointer-x: 50%; --pointer-y: 50%; }
.section-glow { position: absolute; z-index: 0; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(380px circle at var(--pointer-x) var(--pointer-y), rgba(142,101,255,.13), transparent 72%); transition: opacity .35s ease; }
.light-section .section-glow { background: radial-gradient(360px circle at var(--pointer-x) var(--pointer-y), rgba(91,60,183,.1), transparent 72%); }
.interactive-zone.has-pointer > .section-glow { opacity: 1; }
.project-card > a { --tilt-x: 0deg; --tilt-y: 0deg; --card-x: 50%; --card-y: 50%; transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .18s ease; }
.project-card > a::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none; background: radial-gradient(330px circle at var(--card-x) var(--card-y), rgba(142,101,255,.12), transparent 70%); transition: opacity .25s ease; }
.project-card > a:hover::before { opacity: 1; }
.project-card > a > * { position: relative; z-index: 1; }
.lab-console::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 1px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 18px rgba(200,255,55,.42); }
.lab-section.section-active .lab-console::after { opacity: .42; animation: consoleScan 6s ease-in-out infinite; }
.about-section.section-active .orbit-portrait-a { animation: portraitOrbitA 15s linear infinite; }
.about-section.section-active .orbit-portrait-b { animation: portraitOrbitB 19s linear infinite reverse; }
.contact-section.section-active::before { animation: contactBreath 9s ease-in-out infinite; }
@keyframes consoleScan { 0%, 100% { transform: translateY(48px); } 50% { transform: translateY(520px); } }
@keyframes portraitOrbitA { to { transform: translate(-50%, -50%) rotate(342deg); } }
@keyframes portraitOrbitB { to { transform: translate(-50%, -50%) rotate(384deg) scaleY(.62); } }
@keyframes contactBreath { 50% { transform: scale(1.07); opacity: .68; } }

@media (hover: hover) and (pointer: fine) {
  .interactive-zone :is(h2, h3, h4) { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .13em; transition: text-decoration-color .3s ease; }
  .interactive-zone :is(h2, h3, h4):hover { text-decoration-color: currentColor; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .header-cta { margin-right: 70px; }
  .menu-toggle {
    position: absolute;
    z-index: 66;
    right: 2.8vw;
    top: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: block;
    border: 1px solid var(--line-dark);
    color: transparent;
    background: rgba(8,8,7,.68);
    cursor: pointer;
  }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ivory); transition: transform .3s ease, top .3s ease; }
  .menu-toggle i:nth-of-type(1) { top: 14px; }
  .menu-toggle i:nth-of-type(2) { top: 22px; }
  .menu-open .menu-toggle i:nth-of-type(1) { top: 18px; transform: rotate(45deg); }
  .menu-open .menu-toggle i:nth-of-type(2) { top: 18px; transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    z-index: 65;
    inset: 0;
    padding: 130px 5vw 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(8,8,7,.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-menu a { padding: 20px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); font-size: clamp(2.4rem, 8vw, 5rem); line-height: .9; letter-spacing: -.06em; }
  .mobile-menu a span { color: var(--lime); font: 8px ui-monospace, monospace; letter-spacing: .1em; }
  .hero-copy { width: 86vw; }
  .transformation-intro > p { margin-left: 45vw; }
  .lab-section { grid-template-columns: 1fr; align-items: start; }
  .lab-copy { max-width: 760px; }
  .lab-console { width: 100%; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .repo-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait-layout { grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: 5vw; }
  .about-section > .career-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-loader { padding: 20px 18px; }
  .loader-infinity { width: min(64vw, 280px); }
  .loader-head, .loader-foot { font-size: 7px; }
  .loader-foot { display: grid; }
  .loader-foot > i { width: 100%; }
  .grain { opacity: .025; }
  .site-header { height: 76px; padding: 14px 18px; }
  .brand-name { display: none; }
  .header-cta { display: none; }
  .menu-toggle { right: 18px; top: 19px; }
  .field-shell::before { background-size: 54px 54px; }
  .field-vignette { background: linear-gradient(90deg, rgba(8,8,7,.68), rgba(8,8,7,.08) 90%), linear-gradient(180deg, rgba(8,8,7,.22), rgba(8,8,7,.8) 68%, var(--obsidian)); }
  .field-media-cosmos img { object-position: 62% 44%; }
  .field-media-atom svg, .field-media-network svg, .field-media-chip svg { right: -21vw; top: 34%; width: 122vw; max-height: 58vh; }
  .field-media-brain img { right: -34vw; top: 34%; width: 142vw; }
  .field-caption { right: 18px; bottom: 14px; gap: 15px; font-size: 7px; }
  .field-caption span:last-child { display: none; }
  .scale-rail { display: none; }
  .field-fallback::before { right: -52vw; top: 17%; width: 145vw; }
  .hero { min-height: 100svh; padding: 105px 18px 28px; }
  .hero-rail span:last-child { display: none; }
  .hero-copy { width: 100%; margin-top: auto; }
  .hero-kicker { margin-bottom: 18px; font-size: 8px; }
  .hero h1 { font-size: clamp(3.65rem, 17vw, 6.5rem); line-height: .78; }
  .hero-serif { margin-left: 4vw; }
  .hero-accent { font-size: .79em; white-space: normal; }
  .gravity-line { margin-top: 22px; font-size: .95rem; }
  .hero-foot { margin-top: 6vh; grid-template-columns: 1fr; gap: 24px; }
  .hero-foot > p { max-width: 92%; font-size: .94rem; }
  .hero-actions { justify-content: space-between; gap: 18px; }
  .button { min-width: 0; padding: 14px 15px; }
  .button span { margin-left: 16px; }
  .text-link { font-size: 8px; }
  .hero-orbit-label { display: none; }
  .marquee-track { padding: 13px 0; gap: 25px; font-size: 9px; }
  .transformation { min-height: auto; background: linear-gradient(180deg, rgba(8,8,7,.9), rgba(8,8,7,.68) 80%, var(--obsidian)); }
  .transformation-intro { min-height: 90vh; padding: 15vh 18px 12vh; justify-content: flex-end; }
  .transformation-intro h2 { margin: 25px 0; font-size: clamp(3rem, 13vw, 5.8rem); }
  .transformation-intro > p { margin: 0; max-width: 92%; font-size: .95rem; }
  .chapter { min-height: 92vh; padding: 45vh 18px 12vh; display: block; }
  .chapter::before { left: 18px; right: 18px; }
  .chapter-number { position: absolute; left: 18px; top: 17px; font-size: 2.2rem; }
  .chapter-copy { position: relative; z-index: 2; padding: 24px 20px; background: rgba(8,8,7,.86); border: 1px solid var(--line-dark); }
  .chapter h3 { font-size: clamp(2.4rem, 10vw, 4.2rem); }
  .chapter p { font-size: .92rem; }
  .chapter ul { flex-wrap: wrap; }
  .gravity-manifesto { min-height: 82vh; padding: 14vh 18px 8vh; }
  .gravity-manifesto > p { margin: 30px 0 8vh; font-size: clamp(3.8rem, 16vw, 6.6rem); }
  .manifesto-foot { grid-template-columns: 1fr; }
  .manifesto-foot span, .manifesto-foot span:not(:first-child) { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .work-section, .notes-section { padding: 100px 18px 90px; }
  .section-top { grid-template-columns: 1fr; gap: 35px; margin-bottom: 60px; }
  .section-top h2 { font-size: clamp(2.8rem, 12vw, 5.4rem); }
  .work-toolbar { align-items: flex-start; gap: 14px; }
  .filter-set { gap: 4px; }
  .filter { padding: 8px; }
  .toolbar-hint { display: none; }
  .project-grid { display: block; border-left: 1px solid var(--line-light); }
  .project-card, .project-card:nth-child(even) { border-right: 1px solid var(--line-light); }
  .project-card > a { padding: 18px 15px 24px; }
  .card-head { gap: 9px; }
  .project-art { min-height: 85vw; margin-bottom: 26px; }
  .card-copy h3 { font-size: clamp(2.8rem, 13vw, 4.7rem); }
  .project-wide { grid-column: auto; }
  .project-wide .project-art { min-height: 76vw; }
  .project-wide .card-copy { display: block; }
  .project-wide .card-copy > p { margin-top: 24px; }
  .art-migration { gap: 3%; padding: 7%; }
  .art-onboarding { gap: 5%; padding: 5%; }
  .checkpoint { transform: rotate(0); }
  .checkpoint b, .checkpoint span { transform: rotate(0); }
  .checkpoint span { font-size: 5px; }
  .github-proof { margin-top: 75px; padding-top: 42px; }
  .github-proof-head { grid-template-columns: 1fr; gap: 24px; }
  .github-proof-head > span { grid-column: auto; }
  .github-proof-head h3 { font-size: clamp(2.8rem, 12vw, 5.2rem); }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-card { min-height: 340px; padding: 20px; transform: none !important; }
  .repo-card h4 { margin-top: 52px; font-size: clamp(2.7rem, 13vw, 4.8rem); }
  .proof-conversion { grid-template-columns: 1fr; align-items: start; padding: 30px 0; }
  .proof-conversion > img { width: 100%; height: min(86vw, 430px); object-position: center 35%; }
  .button-proof { width: 100%; justify-content: space-between; }
  .lab-section { width: 100%; padding: 105px 18px; grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .lab-copy, .lab-console { min-width: 0; max-width: 100%; }
  .lab-copy h2 { font-size: clamp(3.5rem, 14vw, 6rem); }
  .console-top { grid-template-columns: 1fr 1fr; }
  .console-top > span:nth-child(2) { display: none; }
  .console-controls { grid-template-columns: 1fr; }
  .pipeline { padding: 25px 15px; display: flex; overflow-x: auto; }
  .pipeline-node { flex: 0 0 86px; }
  .pipeline > i { flex: 0 0 14px; }
  .event-head span:last-child { display: none; }
  .evidence-section { padding: 90px 18px; }
  .evidence-head { display: block; }
  .evidence-head p { margin-top: 20px; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence-grid article { min-height: 310px; padding: 20px 16px; }
  .evidence-grid strong { font-size: clamp(3.6rem, 17vw, 6rem); }
  .evidence-grid h3 { font-size: .9rem; }
  .evidence-grid p { font-size: .8rem; }
  .about-section { padding: 105px 18px 90px; }
  .portrait-layout { padding-bottom: 65px; grid-template-columns: 1fr; gap: 58px; }
  .portrait-stage { position: static; }
  .portrait-frame { aspect-ratio: 4 / 4.8; }
  .portrait-socials { justify-content: flex-start; }
  .about-statement h2 { font-size: clamp(3.6rem, 15vw, 6.3rem); }
  .about-lead { margin-top: 38px; font-size: 1.08rem !important; }
  .solo-note { grid-template-columns: 1fr; gap: 10px; }
  .about-section > .career-timeline { margin-top: 58px; grid-template-columns: 1fr; }
  .about-section > .career-timeline li { min-height: 265px; }
  .about-grid { padding-top: 55px; grid-template-columns: 1fr; gap: 60px; }
  .about-intro { position: static; }
  .about-intro > p { font-size: 1.05rem; }
  .career-timeline li { grid-template-columns: 74px 1fr; gap: 14px; }
  .tool-constellation { margin-top: 65px; }
  .notes-grid { grid-template-columns: 1fr; }
  .notes-grid article { min-height: 410px; }
  .contact-section { min-height: 100svh; padding: 105px 18px 145px; }
  .contact-meta > span:last-child { display: none; }
  .contact-section h2 { margin: 10vh 0 35px; font-size: clamp(4.4rem, 20vw, 8rem); }
  .contact-lead { font-size: 1rem; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-options > a:first-child { padding-right: 0; border-right: 0; }
  .contact-options > a:last-child { padding-left: 0; }
  .contact-options > a { padding: 21px 0; }
  .contact-section > footer { left: 18px; right: 18px; bottom: 20px; grid-template-columns: 1fr auto; gap: 16px; }
  .contact-section footer > div:first-child { grid-column: 1 / 3; }
  .contact-section footer > div:last-child span { display: none; }
  .case-dialog { width: calc(100vw - 20px); height: calc(100vh - 20px); max-height: none; }
  .dialog-close { top: 22px; right: 22px; }
  .dialog-scroll > header { min-height: 430px; padding: 70px 24px 34px; }
  .dialog-scroll h2 { font-size: clamp(3.4rem, 16vw, 6rem); }
  .dialog-scroll header > p { font-size: 1rem; }
  .dialog-body { display: block; }
  .dialog-body section { min-height: auto; padding: 34px 24px; border-right: 0; }
  .dialog-footer { padding: 28px 24px; display: block; }
  .dialog-footer > a { margin-top: 25px; }
}

@media (max-width: 430px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: clamp(3.15rem, 14.5vw, 4.8rem); }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-grid article { min-height: 270px; }
  .card-head > span:first-child { max-width: 42%; line-height: 1.35; }
  .maturity { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
  #intelligence-field { display: none; }
  .field-fallback { opacity: .9; }
}



/* Retained fallback rules for legacy source routes; the live homepage now uses
   the scroll-driven Decision Engine instead of the retired Journey renderer. */
.field-media { display: none !important; }
.field-shell.field-rendered #intelligence-field { opacity: .62; }
.field-shell[data-stage="0"].field-rendered #intelligence-field { opacity: .68; }
.field-shell[data-stage="1"].field-rendered #intelligence-field { opacity: .72; }
.field-shell[data-stage="2"].field-rendered #intelligence-field { opacity: .7; }
.field-shell[data-stage="3"].field-rendered #intelligence-field { opacity: .66; }
.field-shell[data-stage="4"].field-rendered #intelligence-field { opacity: .68; }
.field-shell.field-rendered .field-fallback { opacity: .06; }

/* AB ARTWORK SYSTEM / 2026-07-22
   Official AB Axis identity, responsive Decision Field and production artwork. */
.ab-axis {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: opacity .2s ease;
}
.monogram:hover .ab-axis {
  opacity: .82;
}

.field-shell::before {
  opacity: .62;
  background-image: url("/art/backgrounds/field-grid.svg");
  background-size: 240px 240px;
  mask-image: linear-gradient(to bottom, black 0 82%, transparent);
}
.field-shell.field-rendered #intelligence-field,
.field-shell[data-stage="0"].field-rendered #intelligence-field,
.field-shell[data-stage="1"].field-rendered #intelligence-field,
.field-shell[data-stage="2"].field-rendered #intelligence-field,
.field-shell[data-stage="3"].field-rendered #intelligence-field,
.field-shell[data-stage="4"].field-rendered #intelligence-field { opacity: .18; }
.field-shell.field-rendered .field-fallback { opacity: .04; }

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  background: var(--obsidian);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, .32) 0, rgba(8, 8, 7, .08) 52%, rgba(8, 8, 7, .1) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, .22), transparent 28%, rgba(8, 8, 7, .38));
}
.hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero-rail { position: relative; z-index: 2; }

.chapter-art {
  position: relative;
  z-index: 1;
  grid-column: 3;
  justify-self: end;
  width: min(59vw, 980px);
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(244, 238, 227, .16);
  background: var(--obsidian-soft);
  box-shadow: 0 42px 90px rgba(0, 0, 0, .34);
}
.chapter-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 238, 227, .06);
  pointer-events: none;
}
.chapter-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter-copy { position: relative; z-index: 2; }

.signal-route-divider {
  position: relative;
  z-index: 4;
  height: clamp(92px, 11vw, 180px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  background: var(--obsidian);
}
.signal-route-divider img { width: 100%; height: 100%; object-fit: cover; }

.light-section {
  background-color: var(--ivory);
  background-image: url("/art/backgrounds/paper-grain.svg");
  background-size: 256px 256px;
}
.project-art-image {
  min-height: 0 !important;
  aspect-ratio: 8 / 5;
  display: block;
  background: var(--obsidian-soft);
}
.project-art-image::before { content: none; }
.project-art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1), filter .35s ease;
}
.project-card > a:hover .project-art-image img { transform: scale(1.018); }
.project-wide .project-art-image { min-height: 0 !important; }

.portrait-frame::before { content: none; }
.portrait-frame > .portrait-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.07);
  transform: scale(1.03);
}
.portrait-frame > .portrait-axis-frame,
.portrait-frame:hover > .portrait-axis-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: none;
  transform: none;
}

.notes-grid article { min-height: 680px; }
.note-cover {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 8 / 5;
  margin-bottom: 24px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--obsidian-soft);
}
.note-cover img { width: 100%; height: 100%; object-fit: cover; }

.hero-serif,
.gravity-line em,
.transformation-intro h2 em,
.section-top h2 em,
.gravity-manifesto > p em,
.lab-copy h2 em,
.about-statement h2 em,
.contact-section h2 em,
.github-proof-head h3 em,
.notes-grid h3,
.evidence-grid strong,
.chapter-number { font-family: var(--font-serif); }
.loader-head,
.loader-foot,
.hero-rail,
.hero-kicker,
.gravity-line::before,
.eyebrow,
.chapter-label,
.chapter li,
.card-head,
.maturity,
.card-foot,
.notes-grid article > span,
.notes-grid button,
.brand-name small,
.desktop-nav a,
.header-cta { font-family: var(--font-mono); }
.section-top h2 em,
.project-card > a:hover h3,
.card-foot b,
.github-proof-head h3 em,
.dark-link span,
.evidence-grid strong { color: var(--aubergine); }
.section-top .eyebrow,
.evidence-head .eyebrow,
.github-proof-head > span,
.notes-grid article > span { color: var(--rust); }

@media (max-width: 760px) {
  .ab-axis { width: 42px; height: 42px; }
  .hero-art img { object-position: 70% center; }
  .hero-art::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 7, .24), rgba(8, 8, 7, .04)),
      linear-gradient(180deg, rgba(8, 8, 7, .16), transparent 32%, rgba(8, 8, 7, .78) 82%, var(--obsidian));
  }
  .hero-line > span,
  .visual-ready .hero-line > span,
  .hero-enter,
  .visual-ready .hero-enter {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .hero-actions :is(.button, .text-link) { min-height: 44px; }
  .chapter { padding-top: 48vh; }
  .chapter-art {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    width: auto;
    height: min(42vh, 470px);
    aspect-ratio: 4 / 5;
    box-shadow: 0 28px 65px rgba(0, 0, 0, .3);
  }
  .chapter-art img { object-position: center; }
  .notes-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card > a:hover .project-art-image img,
  .monogram:hover .ab-axis { transform: none; }
}

/* AB DECISION ENGINE / 2026-07-23
   One reusable operating object replaces the competing five-image journey.
   The DOM is the artwork: scroll changes its state without loading video or 3D. */
.loader-axis-frame {
  width: 104px;
  height: 104px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 238, 227, .14);
  background: rgba(244, 238, 227, .025);
}
.loader-axis { width: 72px; height: 72px; }

.decision-engine-section {
  min-height: 0;
  overflow: clip;
  background:
    radial-gradient(circle at 72% 35%, rgba(80, 44, 82, .2), transparent 31%),
    radial-gradient(circle at 61% 68%, rgba(200, 255, 55, .055), transparent 26%),
    var(--obsidian);
}
.decision-engine-section .transformation-intro { min-height: 92svh; }
.decision-engine-section .transformation-intro > p { color: rgba(244, 238, 227, .68); }

.decision-engine-story {
  position: relative;
  min-height: 0;
  padding: 0 2.8vw 8svh;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(560px, 1.28fr);
  column-gap: clamp(48px, 7vw, 132px);
  align-items: start;
}
.decision-engine-sticky {
  position: sticky;
  z-index: 3;
  top: 0;
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: start;
  height: 100svh;
  display: grid;
  place-items: center;
}

.engine-stage {
  --engine-expansion: 1;
  --engine-label-opacity: 1;
  --engine-input-x: 5%;
  --engine-input-y: 68%;
  --engine-input-opacity: 1;
  --engine-impact-opacity: 0;
  --engine-impact-scale: .25;
  --engine-gate-turn: 0deg;
  --engine-output-x: 50%;
  --engine-output-y: 51%;
  --engine-output-opacity: 0;
  --engine-output-scale: .35;
  position: relative;
  isolation: isolate;
  width: min(50vw, 760px);
  aspect-ratio: 1;
  perspective: 1400px;
  transform-style: preserve-3d;
  border: 1px solid rgba(244, 238, 227, .12);
  background:
    radial-gradient(circle at 50% 49%, rgba(200, 255, 55, .07), transparent 25%),
    linear-gradient(145deg, rgba(244, 238, 227, .028), rgba(244, 238, 227, 0));
  box-shadow: 0 48px 110px rgba(0, 0, 0, .28);
}
.engine-stage::before,
.engine-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.engine-stage::before {
  inset: 7%;
  border: 1px solid rgba(244, 238, 227, .055);
}
.engine-stage::after {
  inset: 23%;
  border: 1px solid rgba(200, 255, 55, .09);
  transform: rotate(45deg);
}
.engine-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .52;
  background-image:
    linear-gradient(rgba(244, 238, 227, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 227, .035) 1px, transparent 1px);
  background-size: 7.5% 7.5%;
  mask-image: radial-gradient(circle, black 25%, transparent 76%);
}

.engine-signal-field { position: absolute; inset: 0; z-index: 1; opacity: calc(1 - var(--engine-expansion)); }
.engine-signal-field i {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ivory-bright);
  box-shadow: 0 0 0 7px rgba(244, 238, 227, .035);
  animation: engineSignalFloat 3s calc(var(--delay) * -1s) ease-in-out infinite;
}
.engine-signal-field i:nth-child(3n) { background: var(--lime); }
@keyframes engineSignalFloat { 50% { transform: translateY(-9px); opacity: .48; } }

.engine-tethers {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: calc(var(--engine-expansion) * .74);
}
.engine-tethers path {
  fill: none;
  stroke: rgba(244, 238, 227, .2);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}

.engine-object {
  position: absolute;
  z-index: 4;
  inset: 0;
  transform-style: preserve-3d;
}
.engine-chassis,
.engine-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
}
.engine-chassis {
  width: 44%;
  border-radius: 13%;
  transform: translate(-50%, -50%) scale(.84);
}
.engine-chassis-back {
  z-index: 0;
  border: 1px solid rgba(244, 238, 227, .2);
  background: #11100e;
  box-shadow: 0 34px 62px rgba(0, 0, 0, .4);
}
.engine-chassis-front {
  z-index: 12;
  border: 1px solid rgba(244, 238, 227, .28);
  background: linear-gradient(145deg, rgba(244, 238, 227, .055), rgba(244, 238, 227, 0));
  pointer-events: none;
}
.engine-chassis-front span {
  position: absolute;
  width: 16%;
  height: 16%;
  border-color: var(--lime);
  border-style: solid;
  opacity: .78;
}
.engine-chassis-front span:nth-child(1) { left: 8%; top: 8%; border-width: 1px 0 0 1px; }
.engine-chassis-front span:nth-child(2) { right: 8%; top: 8%; border-width: 1px 1px 0 0; }
.engine-chassis-front span:nth-child(3) { left: 8%; bottom: 8%; border-width: 0 0 1px 1px; }
.engine-chassis-front span:nth-child(4) { right: 8%; bottom: 8%; border-width: 0 1px 1px 0; }
.engine-spine {
  position: absolute;
  z-index: 13;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 34%;
  background: rgba(244, 238, 227, .48);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.engine-spine::before,
.engine-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7600%;
  height: 1px;
  background: rgba(244, 238, 227, .13);
  transform: translateX(-50%);
}
.engine-spine::before { top: 20%; }
.engine-spine::after { bottom: 20%; }
.engine-spine b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(200, 255, 55, .42);
  transform: translate(-50%, -50%);
}

.engine-layer {
  z-index: 3;
  width: 45%;
  overflow: hidden;
  border: 1px solid rgba(17, 16, 14, .3);
  border-radius: 13%;
  color: var(--ink);
  background: linear-gradient(145deg, #f5eee4, #d7ccbd);
  box-shadow: 0 24px 45px rgba(0, 0, 0, .28);
  will-change: transform;
}
.engine-layer.is-active {
  z-index: 10;
  border-color: var(--lime);
  box-shadow: 0 28px 54px rgba(0, 0, 0, .34), 0 0 0 2px rgba(200, 255, 55, .2);
}
.engine-layer-name {
  position: absolute;
  z-index: 8;
  left: 10%;
  bottom: 8%;
  opacity: var(--engine-label-opacity);
  color: rgba(17, 16, 14, .66);
  font: 600 clamp(6px, .65vw, 9px)/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.engine-layer-signal { transform: translate(-50%, -50%) translate3d(-67%, -67%, 18px) rotate(-6deg) scale(.58); border-radius: 50%; }
.engine-layer-context { transform: translate(-50%, -50%) translate3d(61%, -61%, 12px) rotate(5deg) scale(.58); }
.engine-layer-decision { transform: translate(-50%, -50%) translate3d(-73%, 0, 20px) rotate(-6deg) scale(.58); color: var(--ivory-bright); background: linear-gradient(145deg, #25231f, #0b0b0a); }
.engine-layer-boundary { transform: translate(-50%, -50%) translate3d(70%, 1%, 16px) rotate(6deg) scale(.58); }
.engine-layer-action { transform: translate(-50%, -50%) translate3d(-57%, 66%, 10px) rotate(-5deg) scale(.58); }
.engine-layer-evidence { transform: translate(-50%, -50%) translate3d(59%, 67%, 8px) rotate(5deg) scale(.58); padding: 14% 13%; }
.engine-layer-decision .engine-layer-name { color: rgba(244, 238, 227, .68); }

.signal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(17, 16, 14, .24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.signal-ring-a { width: 32%; height: 32%; }
.signal-ring-b { width: 58%; height: 58%; }
.signal-ring-c { width: 83%; height: 83%; }
.signal-core { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; border-radius: 50%; background: var(--lime); transform: translate(-50%, -50%); box-shadow: 0 0 0 9px rgba(200, 255, 55, .14); }

.context-card { position: absolute; left: 17%; right: 17%; height: 17%; border: 1px solid rgba(17, 16, 14, .22); background: rgba(244, 238, 227, .68); box-shadow: 7px 9px 0 rgba(17, 16, 14, .06); }
.context-card-a { top: 18%; transform: rotate(-4deg); }
.context-card-b { top: 39%; transform: rotate(3deg); }
.context-card-c { top: 60%; transform: rotate(-1deg); }

.engine-layer-decision svg,
.engine-layer-action svg { position: absolute; inset: 17%; width: 66%; height: 66%; overflow: visible; }
.engine-layer-decision path { fill: none; stroke: rgba(244, 238, 227, .54); stroke-width: 3; }
.engine-layer-decision circle { fill: var(--ivory-bright); stroke: var(--lime); stroke-width: 2; }
.engine-layer-action path { fill: none; stroke: var(--ink); stroke-width: 5; }
.engine-layer-action circle { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }

.boundary-rail { position: absolute; left: 14%; right: 14%; height: 2px; background: rgba(17, 16, 14, .24); }
.boundary-rail-a { top: 38%; }
.boundary-rail-b { top: 61%; }
.boundary-gate { position: absolute; left: 50%; top: 30%; width: 3px; height: 42%; background: var(--rust); transform: translateX(-50%) rotate(var(--engine-gate-turn)); transform-origin: 50% 82%; }
.boundary-node { position: absolute; left: 50%; top: 61%; width: 8%; height: 8%; border-radius: 50%; background: var(--rust); transform: translate(-50%, -50%); }
.boundary-status { position: absolute; top: 12%; left: 12%; color: var(--rust); font: 600 clamp(6px, .62vw, 9px)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.is-gate-passed .boundary-gate,
.is-gate-passed .boundary-node { background: var(--lime); }
.is-gate-passed .boundary-status { color: #577400; }

.ledger-line { display: block; height: 1px; margin-bottom: 14%; background: rgba(17, 16, 14, .24); }
.ledger-seal { position: absolute; right: 12%; bottom: 13%; width: 18%; height: 18%; border: 2px solid var(--lime); border-radius: 50%; }

.engine-impact {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid var(--lime);
  border-radius: 50%;
  opacity: var(--engine-impact-opacity);
  transform: translate(-50%, -50%) scale(var(--engine-impact-scale));
}
.engine-input {
  position: absolute;
  z-index: 18;
  left: var(--engine-input-x);
  top: var(--engine-input-y);
  width: 5.5%;
  aspect-ratio: 1;
  opacity: var(--engine-input-opacity);
  border: 1px solid rgba(244, 238, 227, .55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.engine-input span { position: absolute; inset: 29%; border-radius: 50%; background: var(--lime); }
.engine-output {
  position: absolute;
  z-index: 21;
  left: var(--engine-output-x);
  top: var(--engine-output-y);
  min-width: 24%;
  padding: 2.4% 3%;
  display: flex;
  align-items: center;
  gap: 9%;
  opacity: var(--engine-output-opacity);
  color: var(--ink);
  border: 1px solid rgba(17, 16, 14, .3);
  background: var(--ivory-bright);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%) scale(var(--engine-output-scale));
}
.engine-output i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.engine-output span { white-space: nowrap; font: 600 clamp(6px, .68vw, 10px)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.engine-readout {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 5.5%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(244, 238, 227, .62);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: .16em;
}
.engine-readout > span { min-width: 104px; }
.engine-readout > i { flex: 1; height: 1px; overflow: hidden; background: rgba(244, 238, 227, .14); }
.engine-readout > i b { display: block; width: 0; height: 100%; background: var(--lime); }
.engine-rail {
  position: absolute;
  right: 1.7%;
  top: 50%;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  transform: translateY(-50%);
}
.engine-rail li {
  color: rgba(244, 238, 227, .25);
  font: 500 7px/1 var(--font-mono);
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}
.engine-rail li span { margin-right: 7px; }
.engine-rail li.is-active { color: var(--ivory-bright); }
.engine-rail li.is-active span { color: var(--lime); }

.engine-step {
  grid-column: 1;
  min-height: 92svh;
  padding: 14svh 0;
  display: grid;
  grid-template-columns: clamp(52px, 5vw, 80px) minmax(0, 1fr);
  align-items: center;
  opacity: 1;
  transition: opacity .32s ease;
}
.js .engine-step { opacity: .3; }
.js .engine-step.is-active,
.js .engine-static .engine-step { opacity: 1; }
.engine-step::before { left: 0; right: 0; }
.engine-step .chapter-number { grid-column: 1; color: rgba(244, 238, 227, .18); }
.engine-step.is-active .chapter-number { color: var(--lime); }
.engine-step .chapter-copy { grid-column: 2; }
.engine-step h3 { font-size: clamp(2.65rem, 4.1vw, 5.4rem); }
.engine-step p { color: rgba(244, 238, 227, .66); }

.engine-static .decision-engine-sticky { position: relative; height: 100svh; }
.engine-static .engine-step { min-height: 68svh; opacity: 1; }
.engine-static .engine-layer { transition: none; }

@media (max-width: 980px) {
  .decision-engine-story { grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); column-gap: 28px; }
  .engine-stage { width: min(52vw, 680px); max-width: 100%; }
  .engine-rail { display: none; }
}

@media (max-width: 900px) {
  .section-top { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 760px) {
  .decision-engine-section .transformation-intro { min-height: 82svh; }
  .decision-engine-section .transformation-intro > p { margin-left: 0; max-width: 92%; }
  .decision-engine-story { display: block; padding: 0 18px 8svh; }
  .decision-engine-sticky {
    top: 66px;
    height: 57svh;
    margin: 0 -18px;
    background: linear-gradient(180deg, var(--obsidian) 0 84%, transparent);
  }
  .engine-stage { width: min(96vw, 590px); max-height: 54svh; }
  .engine-readout { left: 7%; right: 7%; bottom: 4%; }
  .engine-step {
    position: relative;
    z-index: 5;
    min-height: 80svh;
    padding: 32svh 0 7svh;
    display: flex;
    align-items: flex-end;
    opacity: .46;
  }
  .engine-step::before { top: auto; bottom: 0; }
  .engine-step .chapter-number { position: absolute; left: 0; top: 30svh; font-size: 2.1rem; }
  .engine-step .chapter-copy {
    width: 100%;
    padding: 24px 20px;
    border: 1px solid rgba(244, 238, 227, .16);
    background: rgba(8, 8, 7, .9);
    backdrop-filter: blur(12px);
  }
  .engine-step h3 { font-size: clamp(2.35rem, 11vw, 4.1rem); }
  .engine-static .decision-engine-sticky { top: auto; height: auto; padding: 8svh 0 4svh; }
  .engine-static .engine-step { min-height: auto; padding: 5svh 0; opacity: 1; }
  .engine-static .engine-step .chapter-number { top: 5svh; }
}

@media (prefers-reduced-motion: reduce) {
  .engine-signal-field i { animation: none; }
  .decision-engine-sticky { position: relative; top: auto; height: auto; min-height: 78svh; }
  .engine-step { min-height: auto; padding: 8svh 0; opacity: 1; }
}

/* DECISION ENGINE CINEMA / V2
   One pinned mechanism, one continuous timeline, one visible outcome. */
.decision-cinema {
  --cinema-dark-opacity: 0;
  position: relative;
  z-index: 5;
  height: 520svh;
  overflow: clip;
  color: var(--ink);
  background: var(--ivory-bright);
}
.cinema-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}
.cinema-grid,
.cinema-wash { position: absolute; inset: 0; pointer-events: none; }
.cinema-grid {
  z-index: 0;
  opacity: .82;
  background-image:
    linear-gradient(rgba(17, 16, 14, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 14, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 12% 90%, transparent);
}
.cinema-wash {
  z-index: 1;
  opacity: var(--cinema-dark-opacity);
  background:
    radial-gradient(circle at 67% 48%, rgba(80, 44, 82, .28), transparent 28%),
    var(--obsidian);
  will-change: opacity;
}
.cinema-copy-rail {
  position: absolute;
  z-index: 12;
  left: 2.8vw;
  top: 116px;
  bottom: 52px;
  width: min(36vw, 660px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: color .22s ease;
}
.cinema-dark .cinema-copy-rail { color: var(--ivory-bright); }
.cinema-kicker,
.cinema-copy > span,
.cinema-progress,
.cinema-chrome,
.cinema-callout {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.cinema-kicker {
  margin: 0;
  color: rgba(17, 16, 14, .56);
  font-size: 8px;
}
.cinema-dark .cinema-kicker { color: rgba(244, 238, 227, .58); }
.cinema-copy-stack { position: relative; flex: 1; min-height: 0; }
.cinema-copy {
  --cinema-copy-opacity: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--cinema-copy-opacity);
  transform: translateY(calc((1 - var(--cinema-copy-opacity)) * 16px));
  pointer-events: none;
  will-change: transform, opacity;
}
.cinema-copy:first-child { --cinema-copy-opacity: 1; }
.cinema-copy.is-current { pointer-events: auto; }
.cinema-copy > span {
  display: block;
  margin-bottom: 22px;
  color: rgba(17, 16, 14, .56);
  font-size: 8px;
}
.cinema-dark .cinema-copy > span { color: rgba(244, 238, 227, .58); }
.cinema-copy h2,
.cinema-copy h3 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3.4rem, 5vw, 6.6rem);
  font-weight: 690;
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.cinema-copy em {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.045em;
}
.cinema-copy p {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(17, 16, 14, .64);
  font-size: clamp(.96rem, 1.15vw, 1.16rem);
  line-height: 1.55;
}
.cinema-dark .cinema-copy p { color: rgba(244, 238, 227, .68); }
.cinema-copy-final .button { align-self: flex-start; margin-top: 30px; }
.cinema-copy-final .button b { margin-left: 32px; }
.cinema-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(17, 16, 14, .54);
  font-size: 7px;
}
.cinema-dark .cinema-progress { color: rgba(244, 238, 227, .56); }
.cinema-progress > span { min-width: 112px; }
.cinema-progress > i { flex: 1; height: 1px; overflow: hidden; background: currentColor; opacity: .44; }
.cinema-progress > i b { display: block; width: 100%; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }

.cinema-visual {
  position: absolute;
  z-index: 8;
  left: 37vw;
  right: 2.8vw;
  top: 82px;
  bottom: 42px;
  overflow: hidden;
}
.cinema-stage {
  --cinema-field-opacity: 1;
  --cinema-tether-opacity: 0;
  --cinema-input-x: 7%;
  --cinema-input-y: 67%;
  --cinema-input-opacity: 1;
  --cinema-input-scale: 1;
  --cinema-impact-opacity: 0;
  --cinema-impact-scale: .2;
  --cinema-gate-turn: 0deg;
  --cinema-output-x: 50%;
  --cinema-output-y: 51%;
  --cinema-output-opacity: 0;
  --cinema-output-scale: .3;
  --cinema-return-progress: 0;
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1700px;
  transform-style: preserve-3d;
}
.cinema-frame {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(17, 16, 14, .15);
  transition: border-color .22s ease;
}
.cinema-frame::before,
.cinema-frame::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  height: 1px;
  background: currentColor;
  opacity: .1;
}
.cinema-frame::before { top: 12%; }
.cinema-frame::after { bottom: 12%; }
.cinema-dark .cinema-frame { border-color: rgba(244, 238, 227, .16); color: var(--ivory-bright); }
.cinema-signal-field { position: absolute; inset: 0; opacity: var(--cinema-field-opacity); }
.cinema-signal-field i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(calc(.7 + var(--d) * .6));
  box-shadow: 0 0 0 9px rgba(200, 255, 55, .1);
  transition: background .22s ease;
}
.cinema-dark .cinema-signal-field i { background: var(--ivory-bright); }
.cinema-tethers {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--cinema-tether-opacity);
}
.cinema-tethers path { fill: none; stroke: rgba(17, 16, 14, .25); stroke-width: 1.2; stroke-dasharray: 4 8; }
.cinema-dark .cinema-tethers path { stroke: rgba(244, 238, 227, .26); }
.cinema-camera {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 51%;
  width: min(47vw, 720px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}
.cinema-engine { position: absolute; inset: 0; transform-style: preserve-3d; }
.cinema-chassis,
.cinema-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
}
.cinema-chassis { border-radius: 15%; transform: translate(-50%, -50%); }
.cinema-chassis-back {
  background: linear-gradient(145deg, #ded4c5, #f8f2e9 54%, #cfc4b4);
  border: 2px solid rgba(17, 16, 14, .32);
  box-shadow: 0 38px 46px rgba(0, 0, 0, .24), inset 0 0 0 20px rgba(17, 16, 14, .045);
  transform: translate(-50%, -50%) translateZ(-118px);
}
.cinema-chassis-front {
  z-index: 18;
  border: 16px solid var(--ink);
  box-shadow: inset 0 0 0 2px rgba(244, 238, 227, .18), 0 15px 28px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%) translateZ(122px);
}
.cinema-chassis-front span { position: absolute; width: 34px; height: 34px; border: 3px solid var(--lime); }
.cinema-chassis-front span:nth-child(1) { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.cinema-chassis-front span:nth-child(2) { right: -5px; top: -5px; border-left: 0; border-bottom: 0; }
.cinema-chassis-front span:nth-child(3) { left: -5px; bottom: -5px; border-right: 0; border-top: 0; }
.cinema-chassis-front span:nth-child(4) { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.cinema-spine {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 48%;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(244, 238, 227, .18), 0 15px 22px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%) translateZ(-72px);
}
.cinema-spine i,
.cinema-spine b { position: absolute; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.cinema-spine i { width: 44px; height: 44px; background: var(--ivory-bright); border: 5px solid var(--ink); box-shadow: inset 0 0 0 7px var(--lime); }
.cinema-spine i:first-child { top: 11%; }
.cinema-spine i:nth-child(2) { top: 89%; }
.cinema-spine b { top: 50%; width: 58px; height: 58px; background: var(--ink); box-shadow: inset 0 0 0 15px var(--lime); }
.cinema-layer {
  width: 54%;
  overflow: hidden;
  border: 2px solid rgba(17, 16, 14, .32);
  border-radius: 14%;
  background: linear-gradient(145deg, #f8f2e8, #d8cebe);
  box-shadow: 0 24px 36px rgba(0, 0, 0, .24);
  will-change: transform;
}
.cinema-layer-evidence { padding: 9% 10%; }
.cinema-ledger-line { display: block; height: 6px; margin-bottom: 13%; border-radius: 5px; background: rgba(17, 16, 14, .22); box-shadow: 0 18px 0 rgba(17, 16, 14, .1); }
.cinema-ledger-seal { position: absolute; right: 12%; bottom: 11%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 9px var(--lime); }
.cinema-layer-action svg,
.cinema-layer-decision svg { position: absolute; inset: 13%; width: 74%; height: 74%; overflow: visible; }
.cinema-layer-action path { fill: none; stroke: var(--ink); stroke-width: 5; }
.cinema-layer-action circle { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.cinema-layer-decision { background: linear-gradient(145deg, #24231f, #0b0b0a); border-color: rgba(244, 238, 227, .2); }
.cinema-layer-decision path { fill: none; stroke: rgba(244, 238, 227, .5); stroke-width: 3; }
.cinema-layer-decision circle { fill: var(--ivory-bright); stroke: var(--lime); stroke-width: 2; }
.cinema-rail { position: absolute; left: 13%; right: 13%; height: 9px; border-radius: 6px; background: var(--ink); }
.cinema-rail-a { top: 34%; }
.cinema-rail-b { bottom: 34%; }
.cinema-gate { position: absolute; left: 50%; top: 18%; width: 14px; height: 64%; border: 3px solid var(--ink); border-radius: 8px; background: var(--rust); transform: translateX(-50%) rotate(var(--cinema-gate-turn)); transform-origin: 50% 80%; }
.cinema-gate-node { position: absolute; left: 50%; bottom: 27%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 8px var(--rust); transform: translate(-50%, 50%); }
.cinema-layer-boundary strong { position: absolute; left: 7%; bottom: 6%; padding: 6px 7px; border-radius: 4px; color: var(--rust); background: var(--ink); font: 600 7px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.cinema-gate-passed .cinema-gate { background: var(--lime); }
.cinema-gate-passed .cinema-gate-node { box-shadow: inset 0 0 0 8px var(--lime); }
.cinema-gate-passed .cinema-layer-boundary strong { color: var(--lime); }
.cinema-context-card { position: absolute; left: 17%; right: 17%; height: 48%; border: 2px solid rgba(17, 16, 14, .3); border-radius: 16px 16px 8px 8px; background: var(--ivory-bright); box-shadow: 0 13px 16px rgba(0, 0, 0, .1); }
.cinema-card-a { top: 23%; transform: translateY(28px); }
.cinema-card-b { top: 23%; transform: translateY(14px); }
.cinema-card-c { top: 23%; }
.cinema-layer-signal { border-radius: 50%; box-shadow: 0 25px 35px rgba(0, 0, 0, .2), inset 0 0 0 20px rgba(17, 16, 14, .035); }
.cinema-signal-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.cinema-ring-a { width: 82%; height: 82%; border: 22px solid var(--lime); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink); }
.cinema-ring-b { width: 47%; height: 47%; border: 2px solid rgba(17, 16, 14, .38); }
.cinema-ring-c { width: 25%; height: 25%; border: 2px solid rgba(17, 16, 14, .28); }
.cinema-signal-core { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 10px var(--lime); transform: translate(-50%, -50%); }

.cinema-input {
  position: absolute;
  z-index: 15;
  left: var(--cinema-input-x);
  top: var(--cinema-input-y);
  width: 42px;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  opacity: var(--cinema-input-opacity);
  background: var(--lime);
  transform: translate(-50%, -50%) scale(var(--cinema-input-scale));
}
.cinema-input span { position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); }
.cinema-impact { position: absolute; z-index: 14; left: 50%; top: 51%; width: 190px; aspect-ratio: 1; border: 3px solid var(--lime); border-radius: 50%; opacity: var(--cinema-impact-opacity); transform: translate(-50%, -50%) scale(var(--cinema-impact-scale)); box-shadow: 0 0 40px rgba(200, 255, 55, .2); }
.cinema-output {
  position: absolute;
  z-index: 20;
  left: var(--cinema-output-x);
  top: var(--cinema-output-y);
  min-width: 230px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 7px solid var(--lime);
  border-radius: 8px;
  opacity: var(--cinema-output-opacity);
  color: var(--ivory-bright);
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%) scale(var(--cinema-output-scale));
}
.cinema-output i { width: 26px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 8px var(--ink), 0 0 0 2px var(--lime); }
.cinema-output span { font: 600 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cinema-return { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cinema-return path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--cinema-return-progress)); opacity: var(--cinema-return-progress); filter: drop-shadow(0 0 6px rgba(200, 255, 55, .46)); }

.cinema-callout {
  position: absolute;
  z-index: 18;
  width: 178px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 8px;
  row-gap: 2px;
  border-top: 1px solid rgba(17, 16, 14, .22);
  opacity: 0;
  color: var(--ink);
  background: rgba(244, 238, 227, .88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}
.cinema-dark .cinema-callout { border-color: rgba(244, 238, 227, .2); color: var(--ivory-bright); background: rgba(8, 8, 7, .86); }
.cinema-callout span { grid-row: 1 / 3; color: var(--lime); font-size: 9px; }
.cinema-callout b { font: 650 15px/1 var(--font-sans); letter-spacing: 0; text-transform: none; }
.cinema-callout small { color: rgba(17, 16, 14, .58); font-size: 6px; }
.cinema-dark .cinema-callout small { color: rgba(244, 238, 227, .58); }
.cinema-callout-signal { left: 5%; top: 12%; }
.cinema-callout-context { right: 5%; top: 13%; }
.cinema-callout-decision { left: 3%; top: 46%; }
.cinema-callout-boundary { right: 3%; top: 46%; }
.cinema-callout-action { left: 5%; bottom: 12%; }
.cinema-callout-evidence { right: 5%; bottom: 12%; }
.cinema-chrome { position: absolute; z-index: 14; right: 4.4vw; bottom: 20px; display: flex; gap: 24px; color: rgba(17, 16, 14, .54); font-size: 7px; }
.cinema-chrome b { color: var(--ink); }
.cinema-dark .cinema-chrome { color: rgba(244, 238, 227, .52); }
.cinema-dark .cinema-chrome b { color: var(--ivory-bright); }

.cinema-static { height: auto; min-height: 100svh; }
.cinema-static .cinema-sticky { position: relative; }

/* Published research remains calm after the cinematic chapter. */
.research-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.notes-grid.research-grid article {
  min-height: 430px;
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 36px;
}
.research-grid .research-card-featured { grid-column: 1 / -1; min-height: 560px; background: var(--ink); color: var(--ivory-bright); }
.research-grid .research-card:not(.research-card-featured) { grid-column: 1 / -1; }
.research-meta { display: flex; justify-content: space-between; gap: 18px; color: rgba(17, 16, 14, .58); font: 500 8px/1.4 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.research-card-featured .research-meta { color: rgba(244, 238, 227, .56); }
.research-card-copy { align-self: end; }
.research-card-copy small { display: block; margin-bottom: 18px; color: var(--rust); font: 500 8px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.research-card-featured .research-card-copy small { color: var(--lime); }
.notes-grid.research-grid h3 { max-width: 1120px; margin: 0 0 24px; font-family: var(--font-sans); font-size: clamp(2.5rem, 5vw, 6.4rem); font-weight: 680; line-height: .88; letter-spacing: -.07em; }
.research-grid .research-card:not(.research-card-featured) h3 { font-size: clamp(2.2rem, 3.5vw, 4.4rem); }
.notes-grid.research-grid p { min-height: 0; max-width: 760px; margin: 0; color: rgba(17, 16, 14, .64); font-size: 1rem; line-height: 1.55; }
.research-card-featured p { color: rgba(244, 238, 227, .68) !important; }
.research-link { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid currentColor; color: inherit; font: 600 8px/1 var(--font-mono); letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.research-link span { color: var(--lime); }
.research-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }

@media (max-width: 1100px) {
  .cinema-copy-rail { width: 38vw; }
  .cinema-visual { left: 39vw; right: 1.8vw; }
  .cinema-copy h2, .cinema-copy h3 { font-size: clamp(3.1rem, 5.2vw, 5.6rem); }
  .cinema-camera { width: min(54vw, 660px); }
  .cinema-callout { width: 150px; }
}

@media (max-width: 900px) {
  .decision-cinema { height: 470svh; }
  .cinema-sticky { min-height: 640px; }
  .cinema-grid { background-size: 42px 42px; }
  .cinema-visual { left: 0; right: 0; top: 66px; bottom: auto; height: 55svh; min-height: 330px; }
  .cinema-stage { overflow: hidden; }
  .cinema-camera { top: 49%; width: min(88vw, 390px); }
  .cinema-copy-rail { left: 18px; right: 18px; top: auto; bottom: 20px; width: auto; height: 34svh; min-height: 230px; }
  .cinema-kicker { margin-bottom: 7px; font-size: 7px; }
  .cinema-copy > span { margin-bottom: 10px; font-size: 7px; }
  .cinema-copy h2, .cinema-copy h3 { max-width: 96%; font-size: clamp(2.45rem, 10.6vw, 3.65rem); line-height: .88; }
  .cinema-copy h2 br, .cinema-copy h3 br { display: none; }
  .cinema-copy p { max-width: 98%; margin-top: 12px; font-size: .86rem; line-height: 1.38; }
  .cinema-copy-final .button { margin-top: 14px; min-height: 42px; padding: 12px 15px; font-size: 8px; }
  .cinema-progress { gap: 10px; font-size: 6px; }
  .cinema-progress > span { min-width: 88px; }
  .cinema-chassis-front { border-width: 10px; }
  .cinema-spine { width: 11px; }
  .cinema-spine i { width: 30px; height: 30px; border-width: 3px; box-shadow: inset 0 0 0 5px var(--lime); }
  .cinema-spine b { width: 40px; height: 40px; box-shadow: inset 0 0 0 10px var(--lime); }
  .cinema-ring-a { border-width: 14px; }
  .cinema-signal-core { box-shadow: inset 0 0 0 6px var(--lime); }
  .cinema-chassis-back { transform: translate(-50%, -50%) translateZ(-88px); }
  .cinema-chassis-front { transform: translate(-50%, -50%) translateZ(92px); }
  .cinema-callout { display: none; }
  .cinema-impact { width: 110px; }
  .cinema-input { width: 30px; border-width: 3px; }
  .cinema-input span { inset: 8px; }
  .cinema-output { min-width: 160px; padding: 13px 14px; transform: translate(-72%, -50%) scale(var(--cinema-output-scale)); }
  .cinema-output i { width: 20px; }
  .cinema-output span { font-size: 7px; }
  .cinema-chrome { top: 76px; right: 18px; bottom: auto; font-size: 6px; }
  .cinema-chrome span { display: none; }
  .research-grid { grid-template-columns: 1fr; }
  .research-grid .research-card-featured { grid-column: auto; min-height: 510px; }
  .notes-grid.research-grid article { min-height: 380px; }
  .notes-grid.research-grid h3, .research-grid .research-card:not(.research-card-featured) h3 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .research-meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .decision-cinema { height: auto; min-height: 100svh; }
  .cinema-sticky { position: relative; }
  .cinema-signal-field { display: none; }
  .cinema-copy { transition: none; }
}

/* Interactive targets stay usable without changing the editorial scale. */
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.text-link { min-height: 44px; padding-block: 11px; }
.portrait-socials a,
.contact-section footer a { display: inline-flex; align-items: center; min-height: 44px; }


.route-page {
  padding-top: 8rem;
  background: #080807;
  color: #f4eee3;
}

.route-page > .route-intro {
  min-height: 58vh;
  display: grid;
  align-content: end;
  gap: 1.5rem;
  padding: clamp(8rem, 16vw, 13rem) clamp(1.25rem, 6vw, 7rem) clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 78% 20%, rgba(80, 44, 82, .2), transparent 33rem),
    radial-gradient(circle at 18% 80%, rgba(200, 255, 55, .08), transparent 28rem),
    url("/art/backgrounds/field-grid.svg"),
    #080807;
}

.route-intro h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.route-intro > p {
  max-width: 52rem;
  margin: 0;
  color: rgba(244, 238, 227, .7);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.content-shell {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem);
  background: #f4eee3 url("/art/backgrounds/paper-grain.svg");
  background-size: auto, 256px 256px;
  color: #171612;
}

.content-shell a:not(.button) {
  color: inherit;
}

.content-lead {
  max-width: 58rem;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: rgba(23, 22, 18, .15);
  border: 1px solid rgba(23, 22, 18, .15);
}

.content-grid article {
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: #f4eee3;
}

.system-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 0 2rem;
  border: 1px solid rgba(23, 22, 18, .2);
  object-fit: cover;
  object-position: top;
}

.content-grid article > span,
.article-meta {
  font: 600 .72rem/1.4 var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .58;
}

.content-grid h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.content-grid p {
  color: rgba(23, 22, 18, .72);
  line-height: 1.65;
}

.prose-page,
.article-body,
.case-page {
  display: grid;
  min-width: 0;
  gap: 3rem;
}

.prose-page > section,
.article-body > section,
.case-page > section,
.article-body > h2,
.article-body > h3,
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > aside,
.prose-page > aside,
.case-page > aside {
  width: min(100%, 58rem);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.case-system-art {
  width: min(100%, 58rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 22, 18, .2);
  background: #11100e;
}

.case-system-art picture,
.case-system-art img {
  display: block;
  width: 100%;
}

.case-system-art img {
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.case-system-art figcaption {
  padding: .8rem 1rem;
  color: rgba(244, 238, 227, .72);
  font: 500 .76rem/1.5 var(--font-mono);
}

.prose-page h2,
.article-body h2,
.case-page h2,
.answer-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.prose-page p,
.prose-page li,
.article-body p,
.article-body li,
.case-page p,
.case-page li {
  font-size: 1.06rem;
  line-height: 1.78;
}

.answer-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(23, 22, 18, .2);
  background: rgba(200, 255, 55, .16);
}

.compact-prose {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.faq-section {
  width: min(100%, 58rem);
  margin: 3rem auto 0;
}

.faq-section > h2 {
  margin-bottom: 2rem;
}

.faq-item {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(23, 22, 18, .18);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(23, 22, 18, .18);
}

.faq-item h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.faq-item p {
  margin: 0;
}

.comparison-table-wrap {
  width: min(100%, 58rem);
  max-width: 100%;
  min-width: 0;
  margin: 2rem auto;
  overflow-x: auto;
  border: 1px solid rgba(23, 22, 18, .2);
}

.comparison-table-wrap table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  color: inherit;
  background: rgba(244, 238, 227, .72);
}

.comparison-table-wrap caption {
  padding: 1rem;
  text-align: left;
  font: 600 .76rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-table-wrap :is(th, td) {
  padding: .9rem 1rem;
  border-top: 1px solid rgba(23, 22, 18, .16);
  border-right: 1px solid rgba(23, 22, 18, .12);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.comparison-table-wrap tr > :last-child {
  border-right: 0;
}

.comparison-table-wrap thead th {
  color: #f4eee3;
  background: #321b34;
  border-color: rgba(244, 238, 227, .18);
}

.comparison-table-wrap tbody th {
  width: 18%;
  font-weight: 700;
}

.guide-toc {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(23, 22, 18, .2);
}

.guide-toc strong {
  font: 600 .76rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-toc ol {
  columns: 2;
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.guide-toc li {
  break-inside: avoid;
  margin: .45rem 1.5rem .45rem 0;
}

.source-note {
  padding-left: 1rem;
  border-left: 3px solid #502c52;
}

.architecture-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(23, 22, 18, .18);
}

.architecture-list li {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: #f4eee3;
}

.architecture-list b {
  font: 600 .72rem var(--font-mono);
  color: var(--aubergine);
}

.route-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem clamp(1.25rem, 6vw, 7rem);
  border-top: 1px solid rgba(244, 238, 227, .12);
  background: #080807;
}

.route-footer > div,
.route-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.route-footer > div {
  flex-direction: column;
  gap: .35rem;
}

.route-footer span,
.route-footer a {
  color: rgba(244, 238, 227, .62);
  font-size: .83rem;
}

.route-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.research-hub .research-hub-featured {
  border-color: #11100e;
  color: #f4eee3;
  background: #11100e;
}

.research-hub-featured .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.75rem;
  color: rgba(244, 238, 227, .58);
}

.research-hub-featured h2 {
  max-width: 68rem;
  margin: 2.6rem 0 1.5rem;
  font-size: clamp(2.8rem, 5.6vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.research-hub-featured h2 a { color: inherit; text-decoration: none; }
.research-hub-featured > p { max-width: 52rem; color: rgba(244, 238, 227, .7); }
.research-hub-featured .button { margin-top: 1.6rem; }
.research-hub-grid { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .route-page { padding-top: 5rem; }
  .content-grid { grid-template-columns: 1fr; }
  .architecture-list { grid-template-columns: 1fr; }
  .architecture-list li { min-height: 6rem; }
  .route-footer { flex-direction: column; }
  .guide-toc ol { columns: 1; }
}


:root {
  --theme-browser: #080807;
  --theme-control-bg: rgba(17, 16, 14, .8);
  --theme-control-fg: #f4eee3;
  --theme-control-line: rgba(233, 225, 210, .34);
  --theme-focus: #c8ff37;
}

html[data-theme="light"] {
  --theme-browser: #f4eee3;
  --theme-control-bg: rgba(255, 252, 246, .9);
  --theme-control-fg: #171612;
  --theme-control-line: rgba(23, 22, 18, .28);
  --theme-focus: #502c52;
  background: #f4eee3;
  color-scheme: light;
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-tools .header-cta { justify-self: auto; }

.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--theme-control-line);
  border-radius: 50%;
  color: var(--theme-control-fg);
  background: var(--theme-control-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.theme-toggle:hover { border-color: currentColor; transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
.theme-icon { font: 700 18px/1 Georgia, serif; }
html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun { display: none; }

html[data-theme="light"] body {
  color: #171612;
  background: #f4eee3;
}

html[data-theme="light"] .site-header {
  color: #171612;
  background: linear-gradient(to bottom, rgba(244, 238, 227, .98), rgba(244, 238, 227, .8) 68%, transparent);
}

html[data-theme="light"] .brand-name b,
html[data-theme="light"] .desktop-nav a,
html[data-theme="light"] .header-cta { color: #171612; }
html[data-theme="light"] .brand-name small { color: rgba(23, 22, 18, .62); }
html[data-theme="light"] .ab-axis { padding: 5px; border-radius: 50%; background: #11100e; }
html[data-theme="light"] .header-cta { border-color: rgba(23, 22, 18, .42); }
html[data-theme="light"] .header-cta b { color: #502c52; }

html[data-theme="light"] .hero {
  color: #171612;
  background: #f4eee3;
}
html[data-theme="light"] .hero-art { background: #f4eee3; }
html[data-theme="light"] .hero-art img { opacity: .2; filter: grayscale(.25) sepia(.08) brightness(1.25) contrast(.72); }
html[data-theme="light"] .hero-art::after {
  background: linear-gradient(90deg, rgba(244,238,227,.96) 0%, rgba(244,238,227,.72) 48%, rgba(244,238,227,.42) 100%), linear-gradient(180deg, rgba(244,238,227,.3), transparent 46%, #f4eee3 98%);
}
html[data-theme="light"] .hero::after { background: rgba(23, 22, 18, .2); }
html[data-theme="light"] .hero :is(.hero-rail, .hero-kicker, .hero-foot > p, .hero-orbit-label) { color: rgba(23, 22, 18, .66); }
html[data-theme="light"] .gravity-line { color: rgba(23, 22, 18, .68); }
html[data-theme="light"] .gravity-line em { color: #502c52; }
html[data-theme="light"] .hero-rail span:first-child,
html[data-theme="light"] .hero-serif { color: #171612; }
html[data-theme="light"] .hero-accent,
html[data-theme="light"] .hero-kicker span { color: #502c52; }
html[data-theme="light"] .button-primary { color: #f4eee3; background: #502c52; }
html[data-theme="light"] .button-ghost { color: #171612; border-color: rgba(23, 22, 18, .28); background: rgba(255,255,255,.34); }

html[data-theme="light"] .route-page,
html[data-theme="light"] .route-intro,
html[data-theme="light"] .route-footer {
  color: #171612;
  background-color: #f4eee3;
}
html[data-theme="light"] .route-intro {
  background-image: radial-gradient(circle at 78% 20%, rgba(80,44,82,.12), transparent 33rem), radial-gradient(circle at 18% 80%, rgba(200,255,55,.16), transparent 28rem), url("/art/backgrounds/paper-grain.svg");
}
html[data-theme="light"] .route-intro > p,
html[data-theme="light"] .route-footer :is(span, a) { color: rgba(23, 22, 18, .66); }
html[data-theme="light"] .route-footer { border-color: rgba(23, 22, 18, .18); }

html[data-theme="dark"] .content-shell {
  color: #f4eee3;
  background: #0d0c0b url("/art/backgrounds/field-grid.svg");
}
html[data-theme="dark"] .content-grid { border-color: rgba(244,238,227,.15); background: rgba(244,238,227,.15); }
html[data-theme="dark"] .content-grid article,
html[data-theme="dark"] .architecture-list li { color: #f4eee3; background: #11100e; }
html[data-theme="dark"] .content-grid p { color: rgba(244,238,227,.7); }
html[data-theme="dark"] .answer-card { border-color: rgba(244,238,227,.2); background: rgba(200,255,55,.08); }
html[data-theme="dark"] .architecture-list { background: rgba(244,238,227,.16); }
html[data-theme="dark"] .architecture-list b { color: #c8ff37; }
html[data-theme="dark"] .case-system-art,
html[data-theme="dark"] .system-card-art { border-color: rgba(244,238,227,.18); }
html[data-theme="dark"] .faq-item { border-color: rgba(244,238,227,.18); }
html[data-theme="dark"] .comparison-table-wrap,
html[data-theme="dark"] .guide-toc { border-color: rgba(244,238,227,.2); }
html[data-theme="dark"] .comparison-table-wrap table { background: rgba(17,16,14,.86); }
html[data-theme="dark"] .comparison-table-wrap :is(th, td) { border-color: rgba(244,238,227,.15); }
html[data-theme="dark"] .comparison-table-wrap thead th { color: #171612; background: #c8ff37; }
html[data-theme="dark"] .source-note { border-color: #c8ff37; }

@media (max-width: 1100px) {
  .header-tools { margin-right: 70px; }
  .header-tools .header-cta { margin-right: 0; }
  html[data-theme="light"] .menu-toggle { border-color: rgba(23,22,18,.28); background: rgba(244,238,227,.9); }
  html[data-theme="light"] .menu-toggle i { background: #171612; }
  html[data-theme="light"] .mobile-menu { color: #171612; background: rgba(244,238,227,.98); }
  html[data-theme="light"] .mobile-menu a { border-color: rgba(23,22,18,.16); }
  html[data-theme="light"] .mobile-menu a span { color: #502c52; }
}

@media (max-width: 760px) {
  .header-tools { margin-right: 58px; }
  .theme-toggle { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
