/* ==========================================================================
   "CORPORATE ATHLETES" — BRAND SYSTEM — VOL. 01 — MMXXVI
   Design as documentation. Ink + Bone + one loud Hazard.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* base palette */
  --ink:        #0a0a0a;
  --ink-2:      #121110;
  --ink-3:      #1b1916;
  --bone:       #f6f3ed;
  --paper:      #efe9da;
  --ink-soft:   #2a2620;
  --mute:       #6b6358;
  --mute-d:     #938b7d;
  --hazard:     #fbe300;
  --gold:       #b8763e;
  --red:        #d3293a;

  /* theme variables — DARK is default */
  --bg:        var(--ink);
  --surface:   var(--ink-2);
  --surface-2: var(--ink-3);
  --fg:        var(--bone);
  --fg-mute:   var(--mute-d);
  --rule:      rgba(246,243,237,0.16);
  --rule-2:    rgba(246,243,237,0.40);

  --maxw: 1480px;
  --pad: clamp(1.15rem, 4vw, 4.5rem);
  --sect: clamp(5rem, 11vw, 11rem);

  --f-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--hazard); color: var(--ink); }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section {
  position: relative;
  padding-block: var(--sect);
  background: var(--bg); color: var(--fg);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

/* THEME FLIPS — swap the variable set, components follow automatically */
.flip {
  --bg: var(--bone); --surface: var(--paper); --surface-2: #e7e0cf;
  --fg: var(--ink); --fg-mute: var(--mute);
  --rule: rgba(10,10,10,0.18); --rule-2: rgba(10,10,10,0.46);
}
.flip-hazard {
  --bg: var(--hazard); --surface: #f4dd00; --surface-2: #f4dd00;
  --fg: var(--ink); --fg-mute: #5c5413;
  --rule: rgba(10,10,10,0.30); --rule-2: rgba(10,10,10,0.62);
}

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.colossal { font-size: clamp(3.4rem, 11.5vw, 12.5rem); }
.display-1 { font-size: clamp(2.8rem, 7.5vw, 7.5rem); }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 4.4rem); }
.display-3 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 0.95; }

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
.hz { color: var(--hazard); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--fg);
}
.flip .outline, .flip-hazard .outline { -webkit-text-stroke-color: var(--ink); }
.outline-hz { color: transparent; -webkit-text-stroke: 1.6px var(--hazard); }

.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  line-height: 1.55;
  color: var(--fg);
  max-width: 60ch;
  font-weight: 400;
}
.body-mute { color: var(--fg-mute); }

/* MONO — labels, eyebrows, archival numbering */
.mono {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 500;
}
.label {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-mute);
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.label--hz { color: var(--hazard); }
.label .tick { width: 1.6rem; height: 2px; background: currentColor; display: inline-block; }
.label .sq { width: 7px; height: 7px; background: var(--hazard); display: inline-block; }

/* ---------- SPEC BAR (archival metadata strip) ---------- */
.specbar {
  border-block: 1px solid var(--rule);
  display: flex; flex-wrap: wrap;
}
.specbar > * {
  font-family: var(--f-mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0.85rem 1.4rem;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}
.specbar > *:last-child { border-right: 0; }
.specbar .k-hz { color: var(--hazard); }
.specbar .grow { flex: 1; }

/* ---------- FIELD LINE (athletic divider) ---------- */
.tape {
  height: 34px;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(90deg, rgba(246,243,237,0.7) 0 2px, transparent 2px 56px),
    linear-gradient(rgba(246,243,237,0.7), rgba(246,243,237,0.7));
  background-size: 100% 14px, 100% 2.5px;
  background-position: center, center;
  background-repeat: repeat-x, no-repeat;
}
.tape--tall { height: clamp(2.6rem, 6vw, 4.5rem); }
.tape--anim { animation: none; }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-mono);
  font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.15rem 1.8rem;
  border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(3px,-3px); }
.btn--hazard { background: var(--hazard); border-color: var(--hazard); color: var(--ink); }
.btn--hazard:hover { background: transparent; color: var(--fg); }
.btn--solid { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--hazard); border-color: var(--hazard); color: var(--ink); }
.btn--frame:hover { background: var(--hazard); border-color: var(--hazard); color: var(--ink); }
.btn--lg { padding: 1.35rem 2.3rem; font-size: 0.8rem; }

/* ---------- NAV ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--hazard); z-index: 300;
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250;
  background: rgba(10,10,10,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.05rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 2.5rem; height: 2.5rem;
  background: var(--hazard); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-sans); font-weight: 900; font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.brand-txt {
  font-family: var(--f-sans); font-weight: 900;
  font-size: 0.92rem; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--bone);
}
.brand-txt sup { font-family: var(--f-mono); font-weight: 400; font-size: 0.5rem; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute-d);
  padding: 0.6rem 0.9rem;
  transition: color .2s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--bone); }
.nav-links a:not(.nav-cta).active { color: var(--hazard); }
.nav-cta {
  background: var(--hazard); color: var(--ink) !important;
  font-weight: 600;
  padding: 0.85rem 1.2rem !important;
  transition: background .25s var(--ease);
}
.nav-cta:hover { background: var(--bone); }
.nav-toggle { display: none; width: 2.6rem; height: 2.6rem; position: relative; }
.nav-toggle span {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 1.6rem; height: 2px; background: var(--bone); transition: .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0.85rem; }
.nav-toggle span:nth-child(2) { top: 1.27rem; }
.nav-toggle span:nth-child(3) { top: 1.69rem; }
.nav-toggle.open span:nth-child(1) { top: 1.27rem; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 1.27rem; transform: translateX(-50%) rotate(-45deg); }

/* ---------- PAGE WIPE / TRANSITION ---------- */
#loader { display: none; }
html.js #loader {
  display: flex; position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transform: translateY(0);
  transition: transform .62s var(--ease);
  will-change: transform;
}
/* athletic line — top + bottom edge of the curtain */
html.js #loader::before, html.js #loader::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px;
  background: var(--hazard);
}
html.js #loader::before { top: 0; }
html.js #loader::after  { bottom: 0; }
html.js #loader.reveal    { transform: translateY(100%); }
html.js #loader.cover-top { transition: none; transform: translateY(-100%); }
html.js #loader.cover     { transform: translateY(0); }
#loader .l-word {
  font-family: var(--f-sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.7rem, 5.5vw, 3.4rem); letter-spacing: -0.045em; color: var(--bone);
}
#loader .l-bar { width: min(58vw, 320px); height: 3px; background: rgba(246,243,237,0.13); overflow: hidden; }
#loader .l-bar i { display: block; height: 100%; width: 0%; background: var(--hazard); transition: width .5s var(--ease); }
#loader .l-meta { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.24em; color: var(--mute-d); text-transform: uppercase; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-ring, .cursor-dot { display: none; }
@media (pointer: fine) {
  html.js .cursor-ring, html.js .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 400;
    pointer-events: none; border-radius: 50%;
    mix-blend-mode: difference;
  }
  html.js .cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid var(--bone);
    margin: -19px 0 0 -19px;
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s var(--ease);
  }
  html.js .cursor-ring.hot {
    width: 60px; height: 60px; margin: -30px 0 0 -30px; background: var(--bone);
  }
  html.js .cursor-dot { width: 6px; height: 6px; background: var(--hazard); margin: -3px 0 0 -3px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 8.5rem; padding-bottom: 3rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 44% at 82% 14%, rgba(251,227,0,0.13), transparent 72%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 100%);
          mask-image: radial-gradient(75% 70% at 50% 42%, #000 25%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: 0.8rem; margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.hero-meta span {
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
}
.hero h1 { margin-bottom: 1.6rem; }
.hero-serif { display: block; margin: 0.1em 0; }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 2.4rem; align-items: flex-end;
  margin-top: clamp(2rem, 5vw, 3.6rem);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.scroll-cue {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute);
}
.scroll-cue .dn { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

/* registration crosshair */
.reg { position: absolute; width: 16px; height: 16px; z-index: 2; opacity: 0.6; }
.reg::before, .reg::after { content:""; position: absolute; background: var(--fg-mute); }
.reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.reg.tl { top: 6rem; left: var(--pad); }
.reg.tr { top: 6rem; right: var(--pad); }
.reg.bl { bottom: 1.4rem; left: var(--pad); }
.reg.br { bottom: 1.4rem; right: var(--pad); }

/* interior page hero */
.phero {
  position: relative; padding-top: 10rem; padding-bottom: 0;
  min-height: 88vh; overflow: hidden;
}
.phero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 88% 0%, rgba(251,227,0,0.12), transparent 70%);
}
.phero .wrap { position: relative; z-index: 2; }
.phero-doc {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: clamp(2rem,5vw,3.5rem);
}
.phero-doc span {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
}
.phero h1 { margin-bottom: 1.5rem; }
.phero .lead { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- SECTION HEAD ---------- */
.head { max-width: 64ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.head .label { margin-bottom: 1.5rem; }
.head h2 { margin-bottom: 1.4rem; }
.head--wide { max-width: none; }
.kicker {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem,1.7vw,1.6rem);
  color: var(--fg-mute); margin-bottom: 1.2rem; text-transform: none; line-height: 1.2;
}

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--rule); padding-block: 1.15rem; background: var(--bg); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: scroll-x 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--f-sans); font-weight: 900; font-size: clamp(1.6rem,3vw,2.6rem);
  text-transform: uppercase; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 2.2rem; padding-left: 2.2rem;
}
.marquee-item .star { color: var(--hazard); font-size: 0.5em; }
.marquee-item.is-out { color: transparent; -webkit-text-stroke: 1.4px var(--fg); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- LEDGER (compare) ---------- */
.ledger { border: 1px solid var(--rule-2); }
.ledger-row { display: grid; grid-template-columns: 5rem 1fr 1fr; border-bottom: 1px solid var(--rule); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row > div { padding: 1.2rem 1.5rem; }
.ledger-row > div:not(:last-child) { border-right: 1px solid var(--rule); }
.ledger-no { font-family: var(--f-mono); font-size: 0.72rem; color: var(--fg-mute); letter-spacing: 0.1em; }
.ledger-head > div { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; }
.ledger-head .h-old { color: var(--fg-mute); }
.ledger-head .h-new { color: var(--hazard); }
.ledger .old { color: var(--fg-mute); }
.ledger .old s { text-decoration-color: var(--rule-2); }
.ledger .new { font-weight: 600; }
.ledger-row { transition: background .2s var(--ease); }
.ledger-row:not(.ledger-head):hover { background: var(--surface); }

/* ---------- DOSSIER CARD ---------- */
.dcard {
  position: relative; background: var(--surface);
  border: 1px solid var(--rule); padding: 2rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.dcard:hover { border-color: var(--rule-2); transform: translateY(-6px); }
.dcard-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 1.6rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule);
}
.dcard-top .no { color: var(--hazard); }
.dcard h3 { margin-bottom: 0.7rem; }
.dcard p { color: var(--fg-mute); font-size: 0.96rem; }
.dcard .glyph {
  font-family: var(--f-sans); font-weight: 900; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.4px var(--rule-2);
  margin-bottom: 1rem; letter-spacing: -0.04em;
}
.dcard:hover .glyph { -webkit-text-stroke-color: var(--hazard); }

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: 1px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
/* hairline-joined grid */
.grid-rule {
  border: 1px solid var(--rule); background: var(--rule); gap: 1px;
}
.grid-rule > * { background: var(--bg); }

/* ---------- INDEX ROWS (big numbered layers) ---------- */
.irow {
  display: grid; grid-template-columns: clamp(5rem,12vw,12rem) 1fr auto;
  gap: clamp(1rem,3vw,3rem); align-items: center;
  padding: clamp(1.8rem,3.5vw,3rem) 0;
  border-top: 1px solid var(--rule);
}
.irow:last-child { border-bottom: 1px solid var(--rule); }
.irow-no {
  font-family: var(--f-sans); font-weight: 900;
  font-size: clamp(3rem,7vw,6.5rem); line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--rule-2);
  transition: -webkit-text-stroke-color .3s var(--ease);
}
.irow:hover .irow-no { -webkit-text-stroke-color: var(--hazard); }
.irow-body h3 { margin-bottom: 0.7rem; }
.irow-body p { color: var(--fg-mute); max-width: 56ch; }
.irow-link {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg);
  border: 1px solid var(--rule-2); padding: 0.85rem 1.1rem; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.irow-link:hover { background: var(--hazard); border-color: var(--hazard); color: var(--ink); }

/* ---------- COMPETENCY ROWS ---------- */
.crow {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.6rem;
  padding: 1.8rem 0; border-top: 1px solid var(--rule);
  transition: padding-left .3s var(--ease);
}
.crow:last-child { border-bottom: 1px solid var(--rule); }
.crow:hover { padding-left: 1rem; }
.crow-no { font-family: var(--f-mono); color: var(--hazard); font-size: 0.9rem; padding-top: 0.4rem; }
.crow h3 { font-size: clamp(1.5rem,3vw,2.5rem); margin-bottom: 0.5rem; }
.crow p { color: var(--fg-mute); font-size: 0.97rem; max-width: 68ch; }

/* ---------- STAT BAND ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--rule); }
.stats > div { padding: clamp(1.8rem,3vw,2.8rem) 1.5rem; border-right: 1px solid var(--rule); }
.stats > div:last-child { border-right: 0; }
.stats .s-no {
  font-family: var(--f-sans); font-weight: 900;
  font-size: clamp(2.6rem,5vw,4.6rem); line-height: 1; letter-spacing: -0.05em;
}
.stats .s-k { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-top: 0.7rem; }

/* ---------- PULL QUOTE ---------- */
.pullq {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem,5vw,4.6rem); line-height: 1.06; letter-spacing: -0.01em;
  text-transform: none;
}
.statement {
  font-family: var(--f-sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem,6vw,6rem); line-height: 0.92; letter-spacing: -0.04em;
}

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.split--center { align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--rule); padding: clamp(1.8rem,3.5vw,3rem); }

/* tick list */
.ticks { display: grid; gap: 1.05rem; }
.ticks li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  align-items: start; color: var(--fg-mute); font-size: 0.99rem;
}
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks li::before {
  content: "→"; color: var(--hazard); font-weight: 700; font-family: var(--f-mono);
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  border: 1px solid var(--rule-2); padding: 0.5rem 0.8rem;
}

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); }
.step { padding: 1.8rem 1.4rem 0 0; border-top: 2px solid var(--hazard); margin-right: 1.2rem; }
.step .s-n { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--hazard); }
.step h3 { font-size: 1.45rem; margin: 0.8rem 0 0.55rem; }
.step p { font-size: 0.92rem; color: var(--fg-mute); }

/* ---------- FOUNDER ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.founder-card { position: relative; background: var(--surface); border: 1px solid var(--rule); padding: clamp(2rem,4vw,3rem); }
.founder-tab {
  position: absolute; top: 0; right: 0;
  background: var(--hazard); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.55rem 0.95rem;
}
.founder-card .f-role { font-weight: 900; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.founder-card .f-name { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--hazard); margin: 0.4rem 0 1.4rem; }
.signoff { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem,2.4vw,2rem); margin-top: 1.6rem; }

/* ---------- BIG CTA ---------- */
.cta-block { text-align: center; }
.cta-block .label { justify-content: center; margin-bottom: 1.8rem; }
.cta-block h2 { font-size: clamp(2.6rem,8vw,8rem); margin-bottom: 1.6rem; }
.cta-block p { max-width: 52ch; margin: 0 auto 2.4rem; color: var(--fg-mute); font-size: 1.05rem; }
.flip-hazard .cta-block p { color: #5c5413; }

/* ---------- FORM ---------- */
.form-shell { display: grid; grid-template-columns: 0.82fr 1.18fr; border: 1px solid var(--rule); }
.form-aside { background: var(--surface); padding: clamp(2rem,4vw,3.2rem); border-right: 1px solid var(--rule); }
.form-aside h3 { font-size: 1.7rem; margin: 1.1rem 0 1.2rem; }
.form-main { padding: clamp(2rem,4vw,3.2rem); }
.field { margin-bottom: 1.5rem; }
.field label {
  display: block; font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 0.6rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--rule-2);
  color: var(--fg); font-family: var(--f-sans); font-size: 0.98rem;
  padding: 1rem; transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hazard); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); opacity: 0.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seg { display: flex; border: 1px solid var(--rule-2); }
.seg label {
  flex: 1; margin: 0; text-align: center; padding: 0.95rem 0.5rem; cursor: pointer;
  border-right: 1px solid var(--rule-2);
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--fg-mute); transition: background .18s var(--ease), color .18s var(--ease);
}
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.seg label:has(input:checked) { background: var(--hazard); color: var(--ink); }
.form-note { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--fg-mute); margin-top: 0.5rem; text-transform: uppercase; }
.form-error { color: var(--red); font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; margin-top: 0.4rem; display: none; text-transform: uppercase; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.form-success { display: none; border: 1px solid var(--hazard); padding: clamp(2.5rem,6vw,4.5rem); text-align: center; }
.form-success.show { display: block; }
.form-success .mark { width: 3.6rem; height: 3.6rem; background: var(--hazard); color: var(--ink); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 1.6rem; }
.form-success h3 { font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 1rem; }
.form-success p { color: var(--fg-mute); max-width: 46ch; margin: 0 auto; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--bone); border-top: 1px solid var(--rule); }
.footer-hero { padding-block: clamp(2.5rem,5vw,4rem) 0; overflow: hidden; }
.footer-word {
  font-family: var(--f-sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem,15vw,15rem); line-height: 0.82; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246,243,237,0.32);
  white-space: nowrap;
}
.footer-cols {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem;
  padding-block: 3rem; border-top: 1px solid var(--rule); margin-top: 2rem;
}
.footer-col h4 { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; color: var(--mute-d); margin-bottom: 1.3rem; }
.footer-col a, .footer-col p {
  display: block; color: var(--mute-d); font-size: 0.9rem; margin-bottom: 0.6rem;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--hazard); }
.footer-blurb { max-width: 32ch; }
.footer-serif { font-family: var(--f-serif); font-style: italic; color: var(--bone); font-size: 1.25rem; margin-bottom: 1rem; }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute-d);
}

/* ---------- REVEAL (progressive enhancement) ---------- */
.reveal { opacity: 1; }
html.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
.reveal.d5 { transition-delay: .45s; }

/* headline rise for big type (transform-based — safe with IntersectionObserver) */
html.js .clip {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1.05s var(--ease);
}
html.js .clip.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .clip { opacity: 1; transform: none; transition: none; }
  .marquee-track, .tape--anim, .scroll-cue .dn { animation: none; }
}

/* ---------- PARTICLE FIELD ---------- */
.pfield {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; display: block; pointer-events: none;
}
.formation-tag {
  position: absolute; left: calc(var(--pad) + 1.9rem); bottom: 1.2rem; z-index: 3;
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.63rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-mute);
  pointer-events: none;
}
.formation-tag b { color: var(--hazard); font-weight: 500; }
.formation-tag .fdot { width: 7px; height: 7px; background: var(--hazard); display: inline-block; }

/* ---------- AMBIENT GEOMETRY ---------- */
.ashape { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.ashape::before {
  content: ""; display: block; width: 100%; height: 100%;
  border: 1px solid var(--rule-2); animation: aspin 44s linear infinite;
}
.ashape--ring::before { border-radius: 50%; }
.ashape--sq::before { animation-duration: 60s; }
.ashape--rev::before { animation-direction: reverse; }
@keyframes aspin { to { transform: rotate(360deg); } }

/* ---------- A.I. COACH ---------- */
.coach {
  border: 1px solid var(--rule-2); background: var(--surface);
  display: flex; flex-direction: column; max-width: 960px;
}
.coach-bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 0.61rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fg-mute);
}
.coach-bar .cdot { width: 9px; height: 9px; border: 1px solid var(--rule-2); border-radius: 50%; }
.coach-bar .cdot.live { background: var(--hazard); border-color: var(--hazard); }
.coach-bar .ctitle { margin-left: 0.45rem; }
.coach-bar .cstat { margin-left: auto; color: var(--hazard); display: flex; align-items: center; gap: 0.45rem; }
.coach-bar .cstat::before {
  content: ""; width: 6px; height: 6px; background: var(--hazard);
  border-radius: 50%; animation: cpulse 1.7s infinite;
}
@keyframes cpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.coach-log {
  padding: 1.6rem 1.5rem; min-height: 250px; max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.35rem;
}
.coach-msg { display: flex; flex-direction: column; gap: 0.42rem; }
.coach-role { font-family: var(--f-mono); font-size: 0.59rem; letter-spacing: 0.2em; text-transform: uppercase; }
.coach-msg--you .coach-role { color: var(--hazard); }
.coach-msg--coach .coach-role { color: var(--fg-mute); }
.coach-text { font-size: 0.99rem; line-height: 1.62; color: var(--fg); max-width: 72ch; }
.coach-msg--you .coach-text { color: var(--fg-mute); }
.coach-cursor {
  display: inline-block; width: 8px; height: 1.05em; background: var(--hazard);
  vertical-align: -2px; margin-left: 1px; animation: cblink 0.9s steps(1) infinite;
}
@keyframes cblink { 50% { opacity: 0; } }
.coach-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.coach-tag {
  font-family: var(--f-mono); font-size: 0.57rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hazard);
  border: 1px solid var(--rule-2); padding: 0.32rem 0.55rem;
}
.coach-dots { display: inline-flex; gap: 4px; margin-left: 3px; }
.coach-dots i { width: 5px; height: 5px; background: var(--fg-mute); display: block; animation: cbob 1s infinite; }
.coach-dots i:nth-child(2) { animation-delay: 0.15s; }
.coach-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cbob { 0%,100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.coach-suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.5rem 1.3rem; }
.coach-suggest.used { display: none; }
.coach-chip {
  font-family: var(--f-mono); font-size: 0.63rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg-mute);
  border: 1px solid var(--rule-2); padding: 0.6rem 0.9rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.coach-chip:hover { border-color: var(--hazard); color: var(--hazard); }
.coach-input {
  display: flex; align-items: center; gap: 0.7rem;
  border-top: 1px solid var(--rule); padding-left: 1.2rem;
}
.coach-prompt { font-family: var(--f-mono); color: var(--hazard); font-size: 1rem; }
.coach-field {
  flex: 1; background: transparent; border: 0; color: var(--fg);
  font-family: var(--f-mono); font-size: 0.85rem; padding: 1.05rem 0;
}
.coach-field:focus { outline: none; }
.coach-field::placeholder { color: var(--fg-mute); }
.coach-send {
  align-self: stretch;
  font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.13em;
  text-transform: uppercase; font-weight: 600;
  background: var(--hazard); color: var(--ink); padding: 0 1.3rem;
  transition: background .2s var(--ease);
}
.coach-send:hover { background: var(--bone); }
@media (max-width: 620px) {
  .coach-log { padding: 1.2rem; max-height: 340px; }
  .coach-input { flex-wrap: wrap; padding: 0.5rem 0.5rem 0.5rem 1rem; }
  .coach-field { flex-basis: 100%; }
  .coach-send { width: 100%; padding: 0.95rem; }
  .formation-tag { display: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 1.5rem 0; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 240;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-family: var(--f-sans); font-weight: 900; font-size: 2rem; letter-spacing: -0.03em; padding: 0.6rem; }
  .nav-links a:not(.nav-cta) { text-transform: uppercase; }
  .nav-cta { margin-top: 1rem; font-family: var(--f-mono) !important; font-size: 0.8rem !important; }
  .split, .founder, .form-shell, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-aside { border-right: 0; border-bottom: 1px solid var(--rule); }
  .irow { grid-template-columns: 1fr; gap: 0.8rem; }
  .irow-no { font-size: 3.4rem; }
  .irow-link { justify-self: start; }
  .ledger-row { grid-template-columns: 3rem 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .specbar > * { padding: 0.7rem 1rem; font-size: 0.6rem; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row > div { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .ledger-row > div:last-child { border-bottom: 0; }
  .crow { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-meta { flex-direction: column; gap: 0.3rem; }
  .reg { display: none; }
}

/* ==========================================================================
   PRISM / GLASS SYSTEM — MMXXVI
   Translucent refractive panels, chromatic light, always-on shimmer.
   ========================================================================== */

/* ---- theme glass tokens ---- */
:root {
  --glass:        rgba(17, 16, 15, 0.55);
  --glass-edge:   rgba(246, 243, 237, 0.11);
  --glass-hi:     rgba(246, 243, 237, 0.07);
}
.flip {
  --glass:        rgba(247, 244, 237, 0.58);
  --glass-edge:   rgba(10, 10, 10, 0.13);
  --glass-hi:     rgba(255, 255, 255, 0.5);
}
.flip-hazard {
  --glass:        rgba(244, 221, 0, 0.6);
  --glass-edge:   rgba(10, 10, 10, 0.28);
  --glass-hi:     rgba(255, 255, 255, 0.32);
}

/* ---- prism atmosphere behind section content ---- */
.section { isolation: isolate; }
.section > .wrap { position: relative; z-index: 1; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 16% 20%, rgba(86,150,255,0.09), transparent 70%),
    radial-gradient(34% 46% at 84% 32%, rgba(255,70,170,0.07), transparent 70%),
    radial-gradient(42% 52% at 62% 90%, rgba(0,220,190,0.06), transparent 70%),
    radial-gradient(36% 46% at 28% 82%, rgba(251,227,0,0.05), transparent 72%);
  background-size: 200% 200%;
  animation: prism-drift 30s ease-in-out infinite alternate;
}
.flip::before { opacity: 0.55; }
@keyframes prism-drift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%; }
  100% { background-position: 100% 100%, 0% 100%, 25% 0%, 100% 10%; }
}

/* ---- glass panels ---- */
.dcard, .panel, .coach, .founder-card, .form-aside, .form-main, .code-item {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
          backdrop-filter: blur(14px) saturate(165%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 1.5px 0 0 rgba(108,170,255,0.07),
    inset -1.5px 0 0 rgba(255,96,176,0.07),
    0 22px 50px -26px rgba(0,0,0,0.75);
}
.form-shell {
  box-shadow:
    inset 1.5px 0 0 rgba(108,170,255,0.07),
    inset -1.5px 0 0 rgba(255,96,176,0.07),
    0 22px 50px -26px rgba(0,0,0,0.75);
}
.dcard:hover {
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 2px 0 0 rgba(108,170,255,0.16),
    inset -2px 0 0 rgba(255,96,176,0.16),
    0 26px 56px -24px rgba(0,0,0,0.8);
}

/* ---- always-on prismatic sheen ---- */
.dcard::after, .panel::after, .coach::after, .founder-card::after, .code-item::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(125deg,
    transparent 38%,
    rgba(255,255,255,0.05) 46%,
    rgba(120,200,255,0.07) 49%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,120,200,0.07) 51%,
    rgba(0,225,190,0.05) 54%,
    transparent 62%);
  background-size: 280% 280%;
  mix-blend-mode: screen;
  animation: prism-sheen 12s linear infinite;
}
@keyframes prism-sheen {
  0%   { background-position: 132% -32%; }
  100% { background-position: -32% 132%; }
}
.grid-rule > *:nth-child(2n)::after { animation-delay: -4.4s; }
.grid-rule > *:nth-child(3n)::after { animation-delay: -8.1s; }

/* ---- chromatic shimmer on display headings ---- */
h1.colossal, h1.display-1, h2.display-1, h2.display-2, .statement {
  animation: prism-text 7.5s ease-in-out infinite;
}
@keyframes prism-text {
  0%, 100% { text-shadow: -1px 0 rgba(46,202,255,0.26),  1px 0 rgba(255,74,172,0.22); }
  50%      { text-shadow: -2px 0 rgba(46,202,255,0.36),  2px 0 rgba(255,74,172,0.30); }
}
.outline, .outline-hz, .footer-word { text-shadow: none !important; }

/* ---- cursor-reactive prism light ---- */
#prism-cursor {
  position: fixed; top: 0; left: 0; width: 620px; height: 620px;
  margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; z-index: 70;
  background: radial-gradient(circle,
    rgba(92,162,255,0.11) 0%,
    rgba(255,84,182,0.075) 34%,
    rgba(0,228,192,0.05) 54%,
    transparent 72%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .6s ease; will-change: transform;
}

/* ---- glass nav edge ---- */
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(120,180,255,0.06), 0 14px 36px -26px rgba(0,0,0,0.9);
}

/* ---- responsive / motion fallbacks ---- */
@media (max-width: 720px) {
  .dcard, .panel, .coach, .founder-card, .form-aside, .form-main, .code-item {
    -webkit-backdrop-filter: blur(7px) saturate(140%);
            backdrop-filter: blur(7px) saturate(140%);
  }
  #prism-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .section::before,
  .dcard::after, .panel::after, .coach::after, .founder-card::after, .code-item::after,
  h1.colossal, h1.display-1, h2.display-1, h2.display-2, .statement {
    animation: none;
  }
}
