/* ═══════════════════════════════════════════════════════════════════
   SCHOLAR STACK — marketing site stylesheet
   Tokens are mirrored 1:1 from the app's frontend/theme.js (the
   family's source of truth). The site is the instrument panel:
   a charcoal chassis, enamel navy plates with a lit top edge,
   steel bezels, and lamps that mean one thing each.
   Ice = the machine is alive.  Amber = it needs you.
   Dynamic pages (.warm) wear the sibling's cream and orange.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Instrument surface (theme.js · instrument, re-grounded in the brand navy) ── */
  --chassis:      #101F38;  /* deep navy — the graph paper it is ruled on */
  --chassis-deep: #0B162B;
  --enamel:       #1B2A4A;
  --enamel-lift:  #23365C;
  --steel:        #9AA3AE;
  --steel-lit:    #D8DEE6;
  --steel-dark:   #4A515B;
  --engrave:      #0E0F12;
  --readout:      #E8ECF1;
  --pass:         #52CC8F;
  --fail:         #FF7A7A;

  /* ── Lamps ── */
  --ice:        #7FE3E8;
  --ice-glow:   rgba(127, 227, 232, 0.45);
  --ice-soft:   rgba(127, 227, 232, 0.14);
  --amber:      #FF8A3D;
  --amber-glow: rgba(255, 138, 61, 0.40);

  /* ── Light-mode surface (theme.js · light) ── */
  --platinum:  #EDEFF2;
  --paper:     #FBFCFD;
  --ink:       #111827;
  --slate:     #555C69;
  --navy:      #0F2650;
  --navy-lift: #4A6AA6;
  --titanium:  #5A6775;

  /* ── Color Essence (theme.js · essence) ── */
  --summary:     #4B2A7F;  /* amethyst — synthesis & insight */
  --flashcards:  #1F4BA8;  /* sapphire — memory & focus   */
  --quiz:        #A2651B;  /* ochre    — achievement      */
  --oral:        #1E5A3F;  /* hunter   — dialogue         */

  /* ── Dynamic, the warm sibling (theme.js · dynamic) ── */
  --cream:       #FBF7EC;
  --cream-edge:  #E4DCC9;
  --dyn-orange:  #E8842B;
  --orange-lite: #F2A65A;
  --gold:        #C9A24A;
  --gold-deep:   #B8912F;
  --dyn-ink:     #2A1E08;
  --dyn-inksoft: #5A4A2A;

  /* ── Tier colors (theme.js · tiers) ── */
  --tier-study:   #4A90D9;
  --tier-scholar: #7B61FF;
  --tier-elite:   #8792A0;

  /* ── Typography ── */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, 'Roboto Mono', monospace;

  /* ── Rhythm ── */
  --maxw: 1160px;
  --gap: 24px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ─── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--sans);
  background-color: var(--chassis);
  color: #F2F5F9;
  line-height: 1.6;
  overflow-x: hidden;
  /* Deep navy, ruled like engineering graph paper: a fine grid of little
     squares and a fainter major grid, both barely above the ground, plus
     the enamel light washes for depth. */
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(35, 54, 92, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(74, 106, 166, 0.14), transparent 55%),
    linear-gradient(rgba(216, 222, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 222, 230, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(127, 227, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 227, 232, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ice); color: var(--navy); }

/* ─── Type scale ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }

.display em { font-style: italic; color: var(--steel-lit); }

.etch {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
}
.etch::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--steel-dark), transparent); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C7CFDA; max-width: 46ch; }
.muted { color: #B0B9C4; }

/* ─── Lamps ────────────────────────────────────────────────────── */
.lamp {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; flex: none;
}
.lamp.ice { background: var(--ice); box-shadow: 0 0 12px var(--ice-glow), 0 0 2px var(--ice); }
.lamp.amber { background: var(--amber); box-shadow: 0 0 12px var(--amber-glow), 0 0 2px var(--amber); }
.lamp.pulse { animation: lampPulse 2.6s infinite; }
@keyframes lampPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─── Layout ───────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .etch { margin-bottom: 18px; }
.section-head h2 { max-width: 24ch; }
.section-head .lede { margin-top: 16px; }

.grid { display: grid; gap: var(--gap); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.split { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.grid.split.rev { grid-template-columns: 0.95fr 1.05fr; }

/* ─── Machined plate (the card) ────────────────────────────────── */
.plate {
  position: relative;
  background: linear-gradient(180deg, var(--enamel-lift) 0%, var(--enamel) 38%, var(--enamel) 100%);
  border: 1px solid rgba(154, 163, 174, 0.28);
  border-top: 1px solid rgba(216, 222, 230, 0.55);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(216, 222, 230, 0.12);
  padding: clamp(22px, 3vw, 32px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.plate:hover, .plate.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(127, 227, 232, 0.25), inset 0 1px 0 rgba(216, 222, 230, 0.12);
}
.plate .etch { margin-bottom: 16px; }
.plate p { color: #C7CFDA; font-size: 0.95rem; margin-top: 10px; }
.plate h3 { color: var(--readout); }

/* essence accent bar on a plate */
.plate .bar { position: absolute; top: 0; left: 24px; right: auto; width: 44px; height: 2px; border-radius: 0 0 2px 2px; margin-top: -1px; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 14px 26px; border-radius: 11px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn.primary {           /* brandFill with a lit top edge */
  background: linear-gradient(180deg, #16367A 0%, var(--navy) 55%, #0B1D3E 100%);
  color: #fff;
  border-top-color: rgba(216, 222, 230, 0.35);
  box-shadow: 0 2px 10px rgba(2, 8, 20, 0.6), inset 0 1px 0 rgba(216, 222, 230, 0.22);
}
.btn.primary:hover { background: linear-gradient(180deg, #1C4294 0%, #12306B 55%, #0B1D3E 100%); }

.btn.ice {
  background: var(--ice); color: var(--navy);
  box-shadow: 0 0 24px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.ice:hover { background: #9BEBEF; }

.btn.ghost {
  background: transparent; color: var(--steel-lit);
  border-color: var(--steel-dark);
}
.btn.ghost:hover { border-color: var(--steel); background: rgba(154, 163, 174, 0.08); }

.btn.amber {
  background: linear-gradient(180deg, #FFA361 0%, var(--amber) 55%, #E06D1B 100%);
  color: #2A1505; border-top-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 26px var(--amber-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn.warm-primary {
  background: linear-gradient(180deg, #F29A4E 0%, var(--dyn-orange) 60%, #D2761F 100%);
  color: #FFF8EE; border-top-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(232, 132, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; border-radius: 9px; }

/* ─── Header ───────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 43, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(154, 163, 174, 0.18);
}
.nav-row {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px);
  display: flex; align-items: center; gap: 26px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: 8px; }
.brand img.mark { width: 30px; height: 30px; }
.brand .word { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; letter-spacing: 0.01em; color: var(--steel-lit); white-space: nowrap; }
.brand .word span { color: var(--ice); }

nav.main { display: flex; gap: 4px; margin-left: auto; align-items: center; }
nav.main a {
  font-size: 0.9rem; font-weight: 500; color: #B0B9C4;
  padding: 8px 13px; border-radius: 9px;
  transition: color .2s, background .2s;
}
nav.main a:hover { color: var(--steel-lit); background: rgba(154, 163, 174, 0.08); }
nav.main a.active { color: var(--navy); background: var(--ice); font-weight: 600; }
nav.main a.cta { margin-left: 10px; }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--steel-dark); border-radius: 8px; padding: 8px 11px; color: var(--steel-lit); font-size: 1rem; cursor: pointer; }

/* ─── Hero (home) ──────────────────────────────────────────────── */
.hero { padding: clamp(70px, 10vw, 130px) 0 clamp(56px, 8vw, 100px); }
.hero .knot { width: clamp(58px, 6vw, 78px); height: auto; margin-bottom: 30px; filter: drop-shadow(0 6px 24px rgba(127, 227, 232, 0.18)); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .strip {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 52px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.hero .strip span { display: inline-flex; align-items: center; gap: 9px; }

/* ─── Device frame ─────────────────────────────────────────────── */
.device {
  position: relative;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(145deg, #3A3F47 0%, #14161A 30%, #23262C 60%, #0C0D10 100%);
  border: 1px solid rgba(216, 222, 230, 0.22);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  width: min(320px, 78vw);
  margin: 0 auto;
}
.device img {
  border-radius: 42px; width: 100%;
  aspect-ratio: 1290 / 2796; object-fit: cover; object-position: top;
  background: var(--chassis-deep);
}
.device::after {           /* Dynamic Island */
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px;
  background: #05060A;
  box-shadow: inset 0 0 3px rgba(255,255,255,0.08);
}
.device.tilt { transform: rotate(2.2deg); transition: transform .5s var(--ease); }
.device.tilt:hover { transform: rotate(0deg) translateY(-6px); }
.device.warm-frame { box-shadow: 0 30px 60px rgba(58, 42, 8, 0.35), 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25); }

.device-pair { display: flex; gap: clamp(12px, 2vw, 22px); justify-content: center; align-items: flex-start; }
.device-pair .device { width: min(272px, 40vw); }
.device-pair .device:nth-child(1) { transform: rotate(-2deg) translateY(14px); }
.device-pair .device:nth-child(2) { transform: rotate(1.6deg); z-index: 2; }

/* ─── The system (process strip) ───────────────────────────────── */
.system { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-block: 1px solid rgba(154, 163, 174, 0.18); }
.stage { padding: 30px 22px 34px; position: relative; border-left: 1px solid rgba(154, 163, 174, 0.14); }
.stage:first-child { border-left: none; }
.stage .no { font-family: var(--mono); font-size: 0.68rem; color: var(--steel); letter-spacing: 0.2em; }
.stage .dot { width: 12px; height: 12px; border-radius: 50%; margin: 14px 0 12px; }
.stage h3 { font-size: 1.18rem; color: var(--readout); }
.stage p { font-size: 0.86rem; color: #97A1AF; margin-top: 8px; line-height: 1.55; }

/* ─── Product panels (home) ────────────────────────────────────── */
.product { border-radius: 22px; padding: clamp(30px, 4vw, 52px); position: relative; overflow: hidden; }
.product.fusion {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(127, 227, 232, 0.10), transparent 60%),
    linear-gradient(180deg, var(--enamel-lift), var(--enamel) 45%, #142138 100%);
  border: 1px solid rgba(154, 163, 174, 0.3);
  border-top: 1px solid rgba(216, 222, 230, 0.5);
}
.product.dynamic {
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(232, 132, 43, 0.14), transparent 62%),
    linear-gradient(180deg, #FFFDF7 0%, var(--cream) 55%, #F3ECDB 100%);
  border: 1px solid var(--cream-edge);
  border-top: 1px solid #FFFDF7;
  color: var(--dyn-ink);
}
.product .tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--steel-dark); border-radius: 999px; padding: 6px 12px;
  color: var(--steel);
}
.product.dynamic .tag { border-color: var(--gold-deep); color: var(--gold-deep); background: rgba(201, 162, 74, 0.08); }
.product h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 18px; }
.product.fusion h3, .product.fusion h3 em { color: var(--readout); }
.product.dynamic h3, .product.dynamic h3 em { color: var(--dyn-ink); }
.product p.desc { margin-top: 12px; font-size: 0.97rem; line-height: 1.65; max-width: 40ch; color: #C7CFDA; }
.product.dynamic p.desc { color: var(--dyn-inksoft); }
.product ul { list-style: none; margin: 22px 0 0; display: grid; gap: 10px; }
.product li { display: flex; gap: 11px; align-items: baseline; font-size: 0.93rem; color: #C7CFDA; }
.product.dynamic li { color: var(--dyn-ink); }
.product li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; flex: none; transform: translateY(-1px); }
.product.fusion li::before { background: var(--ice); box-shadow: 0 0 8px var(--ice-glow); }
.product.dynamic li::before { background: var(--dyn-orange); }
.product .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Comparison table ──────────────────────────────────────────── */
.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(154, 163, 174, 0.14); }
.cmp thead th {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); border-bottom: 1px solid rgba(154, 163, 174, 0.3);
  background: rgba(11, 22, 43, 0.5);
}
.cmp thead th:first-child { color: var(--readout); }
.cmp td:first-child { color: #DDE3EA; font-weight: 500; }
.cmp td { color: #97A1AF; text-align: center; }
.cmp td:first-child { text-align: left; }
.cmp .yes { color: var(--pass); font-weight: 700; }
.cmp .no0 { color: var(--steel-dark); }
.cmp tr:hover td { background: rgba(154, 163, 174, 0.05); }
.cmp .us-col { background: rgba(127, 227, 232, 0.05); }

/* ─── Pricing ──────────────────────────────────────────────────── */
.tier {
  border: 1px solid rgba(154, 163, 174, 0.25);
  border-top: 1px solid rgba(216, 222, 230, 0.4);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--enamel-lift), var(--enamel) 60%);
  padding: 28px 26px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier .tier-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.tier .price { font-family: var(--serif); font-size: 2.6rem; color: var(--readout); margin-top: 12px; }
.tier .price small { font-family: var(--sans); font-size: 0.85rem; color: #97A1AF; }
.tier ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 9px; font-size: 0.9rem; color: #C7CFDA; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: '—'; color: var(--steel); }
.tier .btn { margin-top: auto; }
.tier.hero-tier { border-color: rgba(127, 227, 232, 0.45); box-shadow: 0 0 34px rgba(127, 227, 232, 0.08); }
.tier .badge {
  position: absolute; top: -12px; left: 22px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ice); color: var(--navy); font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}

/* Dynamic (warm) pricing variant */
.warm .tier, .warm-tier {
  background: linear-gradient(180deg, #FFFDF7, var(--cream));
  border: 1px solid var(--cream-edge);
  color: var(--dyn-ink);
}
.warm .tier .price, .warm-tier .price { color: var(--dyn-ink); }
.warm .tier ul, .warm-tier ul { color: var(--dyn-inksoft); }
.warm-tier .tier-tag { color: var(--gold-deep); }
.warm-tier .badge { background: var(--dyn-orange); color: #FFF8EE; }

/* ─── Feature page system ──────────────────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); }
.page-hero .essence-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--steel-dark); border-radius: 999px; padding: 7px 13px; color: var(--steel);
  margin-bottom: 24px;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 18ch; }
.page-hero .lede { margin-top: 22px; }

.spec { display: grid; gap: var(--gap); }
.spec .plate h3 { margin-top: 4px; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: baseline; padding: 16px 20px; border: 1px solid rgba(154, 163, 174, 0.16); border-radius: var(--r-md); background: rgba(27, 42, 74, 0.35); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--mono); font-size: 0.75rem; color: var(--ice); letter-spacing: 0.1em;
  flex: none; padding-top: 2px;
}
.step div { font-size: 0.94rem; color: #C7CFDA; }
.step div strong { color: var(--readout); font-weight: 600; }

/* App-voice quote panel */
.quote {
  border-left: 3px solid var(--ice);
  background: linear-gradient(90deg, rgba(127, 227, 232, 0.07), transparent 65%);
  padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--readout);
}
.quote small { display: block; margin-top: 8px; font-family: var(--mono); font-style: normal; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }

/* ─── Next-page CTA band ───────────────────────────────────────── */
.band {
  border-top: 1px solid rgba(154, 163, 174, 0.2);
  border-bottom: 1px solid rgba(154, 163, 174, 0.2);
  background: linear-gradient(180deg, rgba(27, 42, 74, 0.5), rgba(11, 22, 43, 0.45));
  padding: clamp(48px, 7vw, 84px) 0;
}
.band .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 20ch; }
.band .note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-top: 12px; }

/* ─── Warm theme overrides (Dynamic family pages) ─────────────── */
body.warm {
  background: var(--cream);
  background-image:
    radial-gradient(1000px 500px at 90% -5%, rgba(232, 132, 43, 0.10), transparent 60%),
    radial-gradient(800px 460px at -5% 40%, rgba(201, 162, 74, 0.10), transparent 55%);
  color: var(--dyn-ink);
}
body.warm ::selection { background: var(--dyn-orange); color: #FFF8EE; }
body.warm h1, body.warm h2, body.warm h3 { color: var(--dyn-ink); }
body.warm .display em, body.warm h1 em, body.warm h2 em { color: var(--dyn-orange); }
body.warm .lede, body.warm p { color: var(--dyn-inksoft); }
body.warm .etch { color: var(--gold-deep); }
body.warm .etch::after { background: linear-gradient(90deg, var(--cream-edge), transparent); }
body.warm .plate {
  background: linear-gradient(180deg, #FFFDF7, var(--cream) 60%);
  border: 1px solid var(--cream-edge);
  border-top: 1px solid #FFFEFA;
  box-shadow: 0 4px 14px rgba(58, 42, 8, 0.10);
}
body.warm .plate h3, body.warm .plate p { color: var(--dyn-inksoft); }
body.warm .plate p { color: var(--dyn-inksoft); }
body.warm a.plate:hover { box-shadow: 0 14px 30px rgba(58, 42, 8, 0.16); }
body.warm .lamp.amber { box-shadow: 0 0 12px rgba(232, 132, 43, 0.5); }
body.warm header.site { background: rgba(251, 247, 236, 0.9); border-bottom-color: var(--cream-edge); }
body.warm nav.main a { color: var(--dyn-inksoft); }
body.warm nav.main a:hover { color: var(--dyn-ink); background: rgba(201, 162, 74, 0.12); }
body.warm nav.main a.active { color: #FFF8EE; background: var(--dyn-orange); }
body.warm .brand .word { color: var(--dyn-ink); }
body.warm .brand .word span { color: var(--dyn-orange); }
body.warm .step { background: #FFFDF7; border-color: var(--cream-edge); }
body.warm .step div { color: var(--dyn-inksoft); }
body.warm .step div strong { color: var(--dyn-ink); }
body.warm .step::before { color: var(--dyn-orange); }
body.warm .quote {
  border-left-color: var(--dyn-orange);
  background: linear-gradient(90deg, rgba(232, 132, 43, 0.08), transparent 65%);
  color: var(--dyn-ink);
}
body.warm .quote small { color: var(--gold-deep); }
body.warm .band { background: linear-gradient(180deg, #FFFDF7, var(--cream)); border-color: var(--cream-edge); }
body.warm .band .note { color: var(--gold-deep); }
body.warm .cmp thead th { color: var(--gold-deep); border-bottom-color: var(--cream-edge); background: rgba(228, 220, 201, 0.35); }
body.warm .cmp td { color: var(--dyn-inksoft); border-bottom-color: var(--cream-edge); }
body.warm .cmp td:first-child { color: var(--dyn-ink); }
body.warm .cmp .yes { color: #1D6B47; }
body.warm .cmp .no0 { color: #C4B896; }
body.warm .system { border-color: var(--cream-edge); }
body.warm .stage { border-left-color: var(--cream-edge); }
body.warm .stage h3 { color: var(--dyn-ink); }
body.warm .stage p { color: var(--dyn-inksoft); }
body.warm .device::after { display: none; } /* Dynamic screenshots include the full status bar */
body.warm .btn.ghost { color: var(--dyn-ink); border-color: var(--gold-deep); }
body.warm .btn.ghost:hover { background: rgba(201, 162, 74, 0.12); border-color: var(--dyn-orange); }
body.warm .essence-chip { border-color: var(--gold-deep); color: var(--gold-deep); }
body.warm .tier { background: linear-gradient(180deg, #FFFDF7, var(--cream)); border: 1px solid var(--cream-edge); border-top: 1px solid #FFFEFA; box-shadow: 0 4px 14px rgba(58, 42, 8, 0.10); }
body.warm .tier .tier-tag { color: var(--gold-deep); }
body.warm .tier .price { color: var(--dyn-ink); }
body.warm .tier ul { color: var(--dyn-inksoft); }
body.warm .tier li::before { color: var(--gold-deep); }
body.warm .tier .btn.primary { background: linear-gradient(180deg, #16367A 0%, var(--navy) 55%, #0B1D3E 100%); color: #fff; }

/* ─── FAQ (machined accordions) ────────────────────────────────── */
details.faq {
  border: 1px solid rgba(154, 163, 174, 0.2);
  border-radius: var(--r-md);
  background: rgba(27, 42, 74, 0.32);
  overflow: hidden;
}
details.faq summary {
  list-style: none; cursor: pointer;
  padding: 19px 22px;
  font-weight: 600; font-size: 0.98rem; color: var(--readout);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; font-family: var(--mono); color: var(--ice); font-size: 1.05rem;
  width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--steel-dark); border-radius: 8px;
}
details.faq[open] summary::after { content: '–'; background: var(--ice-soft); }
details.faq .body { padding: 0 22px 20px; color: #C7CFDA; font-size: 0.94rem; max-width: 72ch; }
body.warm details.faq { background: #FFFDF7; border-color: var(--cream-edge); }
body.warm details.faq summary { color: var(--dyn-ink); }
body.warm details.faq summary::after { color: var(--dyn-orange); border-color: var(--gold-deep); }
body.warm details.faq .body { color: var(--dyn-inksoft); }

/* ─── Footer ───────────────────────────────────────────────────── */
footer.site { border-top: 1px solid rgba(154, 163, 174, 0.16); background: var(--chassis-deep); padding: 64px 0 40px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
footer.site h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
footer.site ul { list-style: none; display: grid; gap: 9px; }
footer.site a { color: #97A1AF; font-size: 0.9rem; transition: color .2s; }
footer.site a:hover { color: var(--ice); }
footer.site .fineprint { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(154, 163, 174, 0.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.78rem; color: #6E7682; font-family: var(--mono); letter-spacing: 0.04em; }
footer.site .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
footer.site .brandline img { width: 34px; height: 34px; }
footer.site .brandline .word { font-family: var(--serif); font-size: 1.2rem; color: var(--steel-lit); }
footer.site .brandline .word span { color: var(--ice); }

/* ─── Motion ───────────────────────────────────────────────────
   Content is ALWAYS fully visible by default (crawlers, headless
   screenshots, no-JS, reduced motion). Motion only ever starts from a
   visible state: a subtle rise, never a fade from transparent. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp {
    from { transform: translateY(12px); }
    to { transform: none; }
  }
  .stag > * { animation: fadeUp .7s var(--ease) both; }
  .stag > *:nth-child(1) { animation-delay: 0.05s; }
  .stag > *:nth-child(2) { animation-delay: 0.12s; }
  .stag > *:nth-child(3) { animation-delay: 0.19s; }
  .stag > *:nth-child(4) { animation-delay: 0.26s; }
  .stag > *:nth-child(5) { animation-delay: 0.33s; }

  /* site.js adds .reveal-on to <html> only when motion is allowed. */
  .reveal-on .reveal { transition: transform .6s var(--ease); }
  .reveal-on .reveal:not(.in) { transform: translateY(14px); }
}
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Legal / prose plates ─────────────────────────────────────── */
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--readout); margin: 34px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: #C7CFDA; font-size: 1rem; margin-top: 12px; max-width: 72ch; }
.legal ul { margin: 12px 0 0 1.2em; display: grid; gap: 10px; color: #C7CFDA; font-size: 1rem; max-width: 72ch; }
.legal li::marker { color: var(--steel); }
.legal strong { color: var(--readout); font-weight: 600; }
.legal a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: 0.92em; }
.step.plain::before { display: none; }
span.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; text-align: center; }
details.faq .body p + p { margin-top: 10px; }
details.faq .body a { color: var(--ice); text-decoration: underline; }

/* ─── Office Hours (site chat, assets/js/sitechat.js) ──────────── */
.oh { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--sans); pointer-events: none; }
.oh > * { pointer-events: auto; }
.oh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice-glow); flex: none; }
.oh__launcher {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px;
  background: var(--enamel); color: var(--steel-lit); border: 1px solid rgba(154, 163, 174, 0.35);
  font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); cursor: pointer; transition: transform .14s ease, background .14s ease;
}
.oh__launcher:hover { background: var(--enamel-lift); transform: translateY(-1px); }
.oh__panel {
  width: min(380px, calc(100vw - 40px)); max-height: min(600px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--chassis-deep); color: var(--readout);
  border: 1px solid rgba(154, 163, 174, 0.3); border-radius: var(--r-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}
.oh__panel[hidden] { display: none; }
.oh__head { display: flex; align-items: center; gap: 10px; padding: 13px 14px 13px 16px; background: var(--enamel); border-bottom: 1px solid rgba(154, 163, 174, 0.2); }
.oh__title { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-lit); }
.oh__sub { font-size: 12px; color: var(--steel); }
.oh__close { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--steel); font-size: 20px; line-height: 1; cursor: pointer; }
.oh__close:hover { color: var(--readout); background: rgba(154, 163, 174, 0.12); }
.oh__body { flex: 1 1 auto; min-height: 180px; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.oh__line { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #D4DAE3; }
.oh__tag { display: inline-block; min-width: 3.2ch; margin-right: 8px; font: 700 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ice); vertical-align: 1px; }
.oh__line--you { color: #AEB7C3; }
.oh__line--you .oh__tag { color: var(--steel); }
.oh__cursor { display: inline-block; width: 8px; height: 14px; background: var(--ice); vertical-align: -2px; animation: oh-blink 1s steps(2, start) infinite; }
@keyframes oh-blink { to { visibility: hidden; } }
.oh__error { margin: 0; padding: 10px 12px; font-size: 13px; color: #FFD0D0; background: rgba(255, 122, 122, 0.1); border-left: 2px solid var(--fail); }
.oh__starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 12px; }
.oh__starter { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(154, 163, 174, 0.35); background: transparent; color: var(--steel-lit); font: 500 12px/1.2 var(--mono); cursor: pointer; text-align: left; }
.oh__starter:hover { border-color: var(--ice); color: var(--ice); }
.oh__form { display: flex; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid rgba(154, 163, 174, 0.18); }
.oh__input { flex: 1 1 auto; min-width: 0; padding: 11px 13px; border: 1px solid rgba(154, 163, 174, 0.35); border-radius: var(--r-sm); background: var(--chassis); color: var(--readout); font: 16px/1.4 var(--sans); }
.oh__input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.oh__send { width: 44px; border: 0; border-radius: var(--r-sm); background: var(--ice); color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; }
.oh__send:disabled { opacity: 0.4; cursor: default; }
.oh__fine { margin: 0; padding: 0 14px 12px; font-size: 11px; line-height: 1.5; color: var(--steel); }
body.warm .oh__launcher { background: #FFFDF7; color: var(--dyn-ink); border-color: var(--cream-edge); box-shadow: 0 6px 18px rgba(58, 42, 8, 0.18); }
body.warm .oh__dot { background: var(--dyn-orange); box-shadow: none; }
body.warm .oh__panel { background: var(--cream); color: var(--dyn-ink); border-color: var(--cream-edge); box-shadow: 0 24px 48px rgba(58, 42, 8, 0.2); }
body.warm .oh__head { background: #FFFDF7; border-bottom-color: var(--cream-edge); }
body.warm .oh__title, body.warm .oh__line { color: var(--dyn-ink); }
body.warm .oh__sub, body.warm .oh__fine, body.warm .oh__line--you, body.warm .oh__close { color: var(--dyn-inksoft); }
body.warm .oh__tag, body.warm .oh__cursor { color: var(--gold-deep); }
body.warm .oh__cursor { background: var(--dyn-orange); }
body.warm .oh__starter { color: var(--dyn-inksoft); border-color: var(--cream-edge); }
body.warm .oh__starter:hover { color: var(--dyn-orange); border-color: var(--dyn-orange); }
body.warm .oh__input { background: #FFFDF7; color: var(--dyn-ink); border-color: var(--cream-edge); }
body.warm .oh__input:focus { outline-color: var(--dyn-orange); }
body.warm .oh__send { background: var(--dyn-orange); color: #FFF8EE; }
body.warm .oh__form { border-top-color: var(--cream-edge); }
@media (max-width: 560px) {
  .oh { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .oh__launcher { align-self: flex-end; }
  .oh__panel { width: 100%; max-height: calc(100vh - 90px); }
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .grid.split, .grid.split.rev { grid-template-columns: 1fr; }
  .grid.split .device-col { order: 2; }
  .system { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(odd) { border-left: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.main {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(11, 22, 43, 0.98);
    border-bottom: 1px solid rgba(154, 163, 174, 0.18);
    padding: 10px 18px 18px;
    display: none;
  }
  body.warm nav.main { background: rgba(251, 247, 236, 0.98); }
  nav.main.open { display: flex; }
  nav.main a.cta { margin: 8px 0 0; }
  .burger { display: block; }
  .system { grid-template-columns: 1fr; }
  .stage { border-left: none; border-top: 1px solid rgba(154, 163, 174, 0.14); }
  .stage:first-child { border-top: none; }
  .grid.three { grid-template-columns: 1fr; }
  .device-pair { flex-direction: column; align-items: center; gap: 0; }
  .device-pair .device { width: min(300px, 74vw); }
  .device-pair .device:nth-child(2) { margin-top: -64px; }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   THE FLAGSHIP LAYER (2026-10-13) — monumental hero, the angle dial,
   manifesto, mastery loop, the senses, the physician band, and the
   Features index. Same tokens; nothing here redefines the chassis.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Monumental hero ─────────────────────────────────────────── */
.hero-epic { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-epic .eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice); }
.hero-epic .eyebrow .rule { flex: 0 0 48px; height: 1px; background: var(--ice); opacity: .6; }
.hero-epic h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.025em; margin-top: 26px; max-width: 13ch; text-wrap: balance; }
.hero-epic h1 em { font-style: italic; color: var(--ice); text-shadow: 0 0 40px rgba(127, 227, 232, 0.25); }
.hero-epic .thesis { margin-top: 30px; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.42rem); line-height: 1.55; color: #D3DAE3; max-width: 52ch; }
.hero-epic .thesis strong { color: var(--readout); font-weight: 600; }
.hero-epic .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-epic .grid.split { grid-template-columns: 1.15fr 0.85fr; }

/* The angle dial: one concept, five angles of examination, six senses. */
.dial { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .ring-slow { transform-origin: 260px 260px; }
.dial text { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .dial .ring-slow { animation: dialTurn 120s linear infinite; }
  .dial .ray { stroke-dasharray: 4 6; animation: rayFlow 3.2s linear infinite; }
  .dial .core-glow { animation: lampPulse 4s infinite; }
}
@keyframes dialTurn { to { transform: rotate(360deg); } }
@keyframes rayFlow { to { stroke-dashoffset: -40; } }

/* Credo strip under the hero */
.credo { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(154, 163, 174, 0.18); margin-top: clamp(48px, 6vw, 72px); }
.credo div { padding: 22px 22px 24px; border-left: 1px solid rgba(154, 163, 174, 0.14); }
.credo div:first-child { border-left: none; }
.credo b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--readout); line-height: 1; font-variant-numeric: tabular-nums; }
.credo span { display: block; margin-top: 10px; font-size: 0.86rem; color: #A9B3C0; line-height: 1.5; }

/* ─── Manifesto ───────────────────────────────────────────────── */
.manifesto { max-width: 820px; }
.manifesto h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; text-wrap: balance; }
.manifesto h2 em { color: var(--amber); font-style: italic; }
.manifesto p { margin-top: 22px; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: #C7CFDA; max-width: 60ch; }
.manifesto p.strike { font-family: var(--sans); font-size: 1rem; color: #8F99A6; }
.manifesto p.strike s { text-decoration-color: var(--fail); text-decoration-thickness: 2px; }
.manifesto .signoff { margin-top: 30px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); }

/* ─── The mastery loop (8 stages, 4 × 2) ──────────────────────── */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(154, 163, 174, 0.16); border: 1px solid rgba(154, 163, 174, 0.16); border-radius: var(--r-lg); overflow: hidden; }
.loop .st { background: rgba(16, 31, 56, 0.92); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.loop .st .no { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--steel); display: flex; align-items: center; gap: 10px; }
.loop .st .no i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.loop .st h3 { font-size: 1.3rem; color: var(--readout); }
.loop .st p { font-size: 0.9rem; color: #A9B3C0; line-height: 1.55; }
.loop .st a { margin-top: auto; padding-top: 6px; font-size: 0.82rem; color: var(--ice); }
.loop .st a:hover { text-decoration: underline; }
.loop-return { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.loop-return::before { content: '↺'; font-size: 1.1rem; color: var(--ice); letter-spacing: 0; }

/* ─── The senses ──────────────────────────────────────────────── */
.senses { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.sense { padding: 24px 24px 26px; border-radius: var(--r-lg); border: 1px solid rgba(154, 163, 174, 0.18); background: linear-gradient(180deg, rgba(35, 54, 92, 0.55), rgba(27, 42, 74, 0.25)); }
.sense .verb { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--ice); line-height: 1; }
.sense h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--readout); margin-top: 12px; }
.sense p { font-size: 0.9rem; color: #A9B3C0; margin-top: 6px; }

/* ─── Five angles (the ledger, drawn) ─────────────────────────── */
.angles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.angle { border-top: 2px solid var(--ice); padding: 16px 4px 0; }
.angle .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.angle h4 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--readout); margin-top: 6px; }
.angle p { font-size: 0.86rem; color: #A9B3C0; margin-top: 6px; line-height: 1.5; }
.angle:nth-child(2) { border-color: var(--tier-study); }
.angle:nth-child(3) { border-color: var(--tier-scholar); }
.angle:nth-child(4) { border-color: var(--amber); }
.angle:nth-child(5) { border-color: var(--pass); }

/* ─── The physician band ──────────────────────────────────────── */
.founder-band { border-block: 1px solid rgba(154, 163, 174, 0.18); background: linear-gradient(180deg, rgba(11, 22, 43, 0.6), rgba(16, 31, 56, 0.2)); }
.founder-band .inner { max-width: 820px; }
.founder-band blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.25; color: var(--readout); text-wrap: balance; }
.founder-band blockquote::before { content: '“'; display: block; font-size: 4rem; line-height: .6; color: var(--ice); margin-bottom: 10px; }
.founder-band p { margin-top: 20px; color: #C7CFDA; font-size: 1.05rem; line-height: 1.7; max-width: 64ch; }
.founder-band cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }

/* ─── Features index ──────────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.toc a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(154, 163, 174, 0.3); color: var(--steel-lit); }
.toc a:hover { border-color: var(--ice); color: var(--ice); }
.feat-stage { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(154, 163, 174, 0.16); scroll-margin-top: 90px; }
.feat-stage .side .no { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--steel); }
.feat-stage .side h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 10px; }
.feat-stage .side p { margin-top: 12px; color: #A9B3C0; font-size: 0.95rem; }
.feat-stage .side .device { width: 210px; margin-top: 26px; }
.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.feat { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid rgba(154, 163, 174, 0.16); background: rgba(27, 42, 74, 0.4); }
.feat h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--readout); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.feat h3 .pill { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); border: 1px solid rgba(127, 227, 232, 0.4); border-radius: 999px; padding: 2px 8px; font-weight: 500; }
.feat h3 .pill.amber { color: var(--amber); border-color: rgba(255, 138, 61, 0.45); }
.feat p { margin-top: 6px; font-size: 0.9rem; color: #A9B3C0; line-height: 1.55; }
.feat.wide { grid-column: 1 / -1; }
.fit { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 10px; }
.fit th, .fit td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(154, 163, 174, 0.14); }
.fit th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.fit td { color: #C7CFDA; }
.fit td:last-child { color: var(--ice); }
.tablewrap { overflow-x: auto; }

/* Header: highlight the page you are on */
nav.main a[aria-current="page"] { color: var(--ice); }

@media (max-width: 980px) {
  .hero-epic .grid.split { grid-template-columns: 1fr; }
  .dial { width: min(100%, 420px); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .credo { grid-template-columns: repeat(2, 1fr); }
  .credo div:nth-child(3) { border-left: none; }
  .credo div:nth-child(n+3) { border-top: 1px solid rgba(154, 163, 174, 0.14); }
  .angles { grid-template-columns: repeat(2, 1fr); }
  .feat-stage { grid-template-columns: 1fr; }
  .feat-stage .side .device { display: none; }
}
@media (max-width: 620px) {
  .loop, .senses, .feat-list { grid-template-columns: 1fr; }
  .angles { grid-template-columns: 1fr; }
  .credo { grid-template-columns: 1fr; }
  .credo div { border-left: none; border-top: 1px solid rgba(154, 163, 174, 0.14); }
  .credo div:first-child { border-top: none; }
}
@media (max-width: 980px) and (min-width: 621px) { .senses { grid-template-columns: repeat(2, 1fr); } }

/* ─── Exam day, rehearsed (pressure drills) ───────────────────── */
.drills { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.drill { position: relative; padding: 24px 22px 26px; border-radius: var(--r-lg); border: 1px solid rgba(255, 138, 61, 0.28); background: linear-gradient(180deg, rgba(255, 138, 61, 0.08), rgba(27, 42, 74, 0.35) 60%); }
.drill .clock { font-family: var(--mono); font-size: 1.9rem; color: var(--amber); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.drill .clock small { font-size: .7rem; letter-spacing: .18em; color: var(--steel); margin-left: 6px; text-transform: uppercase; }
.drill h3 { font-size: 1.15rem; color: var(--readout); margin-top: 14px; }
.drill p { font-size: .9rem; color: #A9B3C0; margin-top: 8px; line-height: 1.55; }
.cycle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-lit); }
.cycle span { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(154, 163, 174, 0.3); }
.cycle b { color: var(--ice); font-weight: 400; }
@media (max-width: 980px) { .drills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .drills { grid-template-columns: 1fr; } }

/* ─── Under the hood (three intelligences + the concept record) ─ */
.hood { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.hood .plate h3 { margin-top: 2px; }
.hood .plate ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: .9rem; color: #C7CFDA; }
.hood .plate li { display: flex; gap: 10px; align-items: baseline; }
.hood .plate li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--ice); flex: none; transform: translateY(-1px); }
.record { margin-top: 30px; border: 1px solid rgba(127, 227, 232, 0.3); border-radius: var(--r-lg); background: rgba(11, 22, 43, 0.65); padding: 22px 24px; font-family: var(--mono); font-size: .8rem; line-height: 1.9; color: #C7CFDA; overflow-x: auto; }
.record .k { color: var(--steel); }
.record .v { color: var(--ice); }
.record .a { color: var(--amber); }
.record .c { color: #6F7B8A; }
.warning-line { margin-top: 34px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--readout); max-width: 46ch; }
.warning-line em { color: var(--amber); }
@media (max-width: 980px) { .hood { grid-template-columns: 1fr; } }
