/* ============================================================
   NLOS — about.nlos.ai
   Draft layer-model page. Flat, precise, calm.
   Tokens only from the locked NLOS brand system.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --deep: #0F1620;
  --field: #1A2433;
  --cyan: #4FD8F9;
  --blue: #2E6BFF;
  --mist: #E8EEF5;
  --slate: #8A96A8;
  --ink: #0B1018;

  --r-rec: #4FD8F9;
  --r-ops: #3DDC97;
  --r-mar: #A78BFA;
  --r-lrn: #F5C542;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --head-h: 70px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

:root, html[data-theme="dark"] {
  --bg: var(--deep);
  --surface: var(--field);
  --surface-quiet: #17202E;
  --raise: #1C2736;
  --text: var(--mist);
  --text-2: var(--slate);
  --text-3: #8490A2;
  --line: rgba(232, 238, 245, .12);
  --line-2: rgba(232, 238, 245, .22);
  --line-3: rgba(232, 238, 245, .06);
  --accent: var(--cyan);
  --link: var(--cyan);
  --focus: var(--cyan);
  --accent-text: var(--cyan);
  --on-accent: var(--ink);
  --chip-line: rgba(232, 238, 245, .17);
  --haze: rgba(79, 216, 249, .07);
  --mark-line: #465A82;
  color-scheme: dark;
  --shade: rgba(11, 16, 24, .55);
  --dot: rgba(232, 238, 245, .11);
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23E8EEF5' fill-opacity='0.11'/%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-quiet: #FFFFFF;
  --raise: #FFFFFF;
  --text: var(--ink);
  --text-2: #4E5B6E;            /* Slate/Ink mix, tuned for AA on light */
  --text-3: #66738A;
  --line: #E2E6EE;
  --line-2: #CBD3E0;
  --line-3: #EDF0F5;
  --accent: var(--blue);
  --link: var(--blue);
  --focus: var(--blue);
  --accent-text: color-mix(in oklab, var(--blue) 80%, #000);
  --on-accent: var(--ink);
  --chip-line: #D8DEE9;
  --haze: rgba(46, 107, 255, .05);
  --mark-line: #1A2433;
  color-scheme: light;
  --shade: rgba(11, 16, 24, .06);
  --dot: rgba(11, 16, 24, .10);
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='1' cy='1' r='1' fill='%230B1018' fill-opacity='0.1'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--cyan); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
html[data-theme="dark"] .band--interface:focus-visible { outline-color: #FFF; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transform: translateY(-160%);
  visibility: hidden;
  transition: transform .18s var(--ease);
}
.skip:focus, .skip:focus-visible { transform: none; visibility: visible; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head.is-scrolled { border-bottom-color: var(--line-2); }
.head {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__mark .mk-a { fill: var(--cyan); }
.brand__mark .mk-b { fill: none; stroke: var(--mark-line); stroke-width: 1.35; }
.brand__type { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand__word {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3em;
  line-height: 1.1;
  color: var(--text);
}
.brand__sub {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  line-height: 1.2;
}
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--text);
  transition: right .28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.subnav { display: none; border-top: 1px solid var(--line-3); }
.subnav__in {
  display: flex;
  gap: 22px;
  padding-block: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__in::-webkit-scrollbar { display: none; }
.subnav__in a {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  letter-spacing: .01em;
}
.subnav__in a:hover { color: var(--text); }

.head__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.pill__sq { width: 5px; height: 5px; background: var(--cyan); flex: none; }
html[data-theme="light"] .pill__sq { background: var(--blue); }

.theme {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme:hover { color: var(--text); border-color: var(--line-2); }
.theme svg { width: 16px; height: 16px; }
html[data-theme="dark"] .theme__sun { display: none; }
html[data-theme="dark"] .theme__moon { display: block; }
html[data-theme="light"] .theme__sun { display: block; }
html[data-theme="light"] .theme__moon { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88svh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vh, 104px) 0 clamp(86px, 12vh, 128px);
  overflow: hidden;
}
.hero__haze {
  position: absolute;
  right: -8%;
  top: 46%;
  width: min(760px, 74vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle at 50% 50%, var(--haze) 0%, transparent 62%);
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 30px; }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.85rem, 7.1vw, 6.1rem);
  line-height: .96;
  letter-spacing: -.042em;
  font-weight: 600;
  margin-left: -.03em;
}
.hero__sub {
  margin-top: clamp(26px, 3.4vw, 38px);
  max-width: 60ch;
  font-size: clamp(1rem, 1.22vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 46px); }

/* hero layer index */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hero__copy { max-width: 900px; }
.hero__index {
  padding: 0 0 8px 24px;
  border-left: 1px solid var(--line);
}
.hero__indexCap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.hstack { display: flex; flex-direction: column; gap: 13px; }
.hstack__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.hstack__row b {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text-3);
}
.hstack__bar {
  display: block;
  width: var(--bw);
  height: 5px;
  border: 1px solid var(--line-2);
  border-radius: 1px;
  justify-self: start;
}
.hstack__bar--on { background: var(--cyan); border-color: var(--cyan); }
html[data-theme="light"] .hstack__bar--on { background: var(--blue); border-color: var(--blue); }
.hstack__row em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .01em;
  color: var(--text-3);
  white-space: nowrap;
}
.hstack__row:first-child em { color: var(--text); }
.hero__indexNote {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cue {
  position: absolute;
  left: var(--gut);
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  z-index: 2;
}
.cue__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cue__line { display: block; width: 54px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.cue__line::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 18px; background: var(--text-2);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateX(-20px); }
  55%, 100% { transform: translateX(56px); }
}
.cue:hover { color: var(--text); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
html[data-theme="light"] .eyebrow { color: var(--accent-text); }
h2 {
  font-size: clamp(1.95rem, 3.9vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
.lede {
  font-size: clamp(.95rem, 1.1vw, 1.02rem);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 42ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--cyan); color: var(--ink); }
.btn--primary:hover { background: #6FE0FB; }
html[data-theme="light"] .btn--primary { background: var(--ink); color: #FFF; }
html[data-theme="light"] .btn--primary:hover { background: #1D2A3C; }
.btn--ghost { color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text-2); background: color-mix(in srgb, var(--text) 4%, transparent); }
.btn:active { transform: translateY(1px); }

/* ---------- sections ---------- */
.section {
  padding: clamp(76px, 9vw, 132px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.rule__n { color: var(--text-3); }
.rule__m { color: var(--text-3); }
.rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(44px, 5.4vw, 72px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head h2 { margin-top: 18px; max-width: 18ch; }
.sec-head .lede { padding-bottom: 6px; }

/* ---------- stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 26px;
}
.stack::before,
.stack::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.stack::before { left: 0; }
.stack::after { left: 9px; background: var(--line-3); }

.band {
  position: relative;
  display: block;
  width: calc(100% - var(--i) * var(--taper, 5.6%));
  margin-inline: auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  transition:
    opacity .32s var(--ease),
    transform .32s var(--ease),
    background-color .28s var(--ease),
    border-color .28s var(--ease);
  will-change: opacity, transform;
  -webkit-tap-highlight-color: transparent;
}
.band::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--line);
}
.band:hover { border-color: var(--line-2); }

.band__head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 20px 12px;
  min-height: 68px;
}
.band__idx {
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: var(--text-3);
  padding-left: 2px;
}
.band__name {
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.2;
}
.band__sign {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  color: var(--text-3);
  transition: transform .34s var(--ease), color .24s var(--ease);
}
.band__sign svg { width: 10px; height: 10px; }
.band[aria-expanded="true"] .band__sign { transform: rotate(45deg); color: var(--text-2); }

.band__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease);
}
.band__panelIn {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px 0 54px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease) .04s, transform .3s var(--ease) .04s;
}
.band[aria-expanded="true"] .band__panel { grid-template-rows: 1fr; }
.band[aria-expanded="true"] .band__panelIn { opacity: 1; transform: none; padding-bottom: 20px; }

.band__desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 54ch;
}
.band__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-2);
  white-space: nowrap;
}

/* interface band = lit */
.band--interface {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.band--interface .band__name { font-weight: 600; }
.band--interface .band__idx { color: rgba(11, 16, 24, .72); }
.band--interface .band__sign { color: rgba(11, 16, 24, .7); }
.band--interface .band__desc { color: rgba(11, 16, 24, .84); }
.band--interface .chip { border-color: rgba(11, 16, 24, .22); color: rgba(11, 16, 24, .82); }
.band--interface::before { background: var(--cyan); }
.band--interface:hover { background: #61DEFA; }
.band--interface[aria-expanded="true"] { border-color: var(--cyan); }

/* dimming + lift (driven by JS state so touch behaves the same) */
.stack.is-engaged .band:not(.is-open) { opacity: .45; }
.stack.is-engaged .band.is-open { opacity: 1; }
.band.is-open { transform: translateY(-3px); border-color: var(--line-2); }
.band--interface.is-open { border-color: var(--cyan); }

/* aside */
.aside {
  position: sticky;
  top: calc(var(--head-h) + 32px);
  padding-top: 4px;
}
.aside__fig {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.aside__line {
  margin-top: 22px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  font-weight: 500;
  max-width: 16ch;
}
.aside__cap { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); max-width: 24ch; }
.cap-tap { display: none; }
@media (hover: none), (max-width: 860px) {
  .cap-hover { display: none; }
  .cap-tap { display: inline; }
}
.gauge { margin-top: 30px; display: flex; flex-direction: column; gap: 7px; }
.gauge__row { display: flex; align-items: center; gap: 9px; }
.gauge__row span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--text-3);
  width: 14px;
}
.gauge__row i {
  display: block;
  height: 1px;
  background: var(--line-2);
  transition: background-color .3s var(--ease);
}
.gauge__row[data-g="5"] i { width: 72%; }
.gauge__row[data-g="4"] i { width: 77.6%; }
.gauge__row[data-g="3"] i { width: 83.2%; }
.gauge__row[data-g="2"] i { width: 88.8%; }
.gauge__row[data-g="1"] i { width: 94.4%; }
.gauge__row[data-g="0"] i { width: 100%; }
.gauge__row.is-lit i { background: var(--cyan); }
.gauge__row.is-lit span { color: var(--text); }

/* ---------- always on ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.tenet {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
}
.tenet__glyph {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  margin-bottom: 22px;
}
html[data-theme="light"] .tenet__glyph { background: var(--blue); }
.tenet h3 {
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  font-weight: 600;
  letter-spacing: -.016em;
  line-height: 1.28;
  max-width: 24ch;
}
.tenet p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 42ch;
}

/* ---------- modules ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.module { background: var(--bg); padding: 22px 20px 24px; }
.module__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.module__bar { width: 16px; height: 3px; background: var(--accent); flex: none; }
.module__head h3 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: .06em;
}
.module__tiles { display: flex; flex-direction: column; gap: 10px; }

.tile {
  display: block;
  width: 100%;
  text-align: left;
  transition: transform .26s var(--ease);
  border-radius: 6px;
}
.tile__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface);
  background-image: var(--dots);
  background-size: 12px 12px;
  background-position: 0 0;
  overflow: hidden;
  transition: border-color .26s var(--ease), background-color .26s var(--ease);
}
.tile__idx {
  position: absolute;
  top: 9px; left: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--text-3);
}
.tile__dur {
  position: absolute;
  top: 7px; right: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .04em;
  color: var(--text-2);
  background: var(--bg);
  line-height: 1.4;
}
.tile__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .26s var(--ease), color .26s var(--ease), transform .26s var(--ease);
}
.tile__play svg { width: 18px; height: 18px; margin-left: 1px; }
.tile__scan {
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 42%;
  background: var(--accent);
  opacity: 0;
  transform: skewX(-16deg);
  pointer-events: none;
}
.tile__title {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text);
  line-height: 1.35;
}
.tile:hover { transform: translateY(-3px); }
.tile:hover .tile__frame { border-color: var(--accent); }
.tile:hover .tile__play { border-color: var(--accent); color: var(--accent); }
.tile:hover .tile__scan { animation: sweep .72s var(--ease-io) 1; }
.tile:focus-visible .tile__frame { border-color: var(--accent); }
@keyframes sweep {
  0% { opacity: 0; left: -60%; }
  14% { opacity: .13; }
  100% { opacity: 0; left: 130%; }
}

/* ---------- trailer ---------- */
.stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  text-align: center;
  transition: border-color .3s var(--ease);
}
.stage:hover { border-color: var(--text-3); }
.stage__bg {
  position: absolute;
  inset: -4%;
  color: var(--text);
  opacity: .13;
}
.stage__bg svg { width: 100%; height: 100%; }
.stage__grid { opacity: .35; }
.stage__arcs { opacity: .9; }
.stage__dot { color: var(--cyan); }
html[data-theme="light"] .stage__bg { opacity: .2; }
.stage__meta {
  position: absolute;
  top: 18px; left: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stage__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(64px, 7vw, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  backdrop-filter: blur(3px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.stage__play svg { width: 26px; height: 26px; margin-left: 2px; }
.stage:hover .stage__play { transform: scale(1.06); border-color: var(--cyan); color: var(--cyan); }
html[data-theme="light"] .stage:hover .stage__play { border-color: var(--blue); color: var(--blue); }
.stage__cap {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-2);
  font-family: var(--mono);
}
.stage__marks {
  position: absolute;
  inset: clamp(30px, 4.4vw, 58px) clamp(12px, 2.2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}
.stage__marks::before,
.stage__marks::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--line-2);
}
.stage__marks::before { top: -1px; }
.stage__marks::after { bottom: -1px; }
.stage__tc {
  position: absolute;
  right: 20px; top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.stage__cap::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--text-3);
  margin-right: 8px;
  vertical-align: 2px;
}

/* ---------- next ---------- */
.section--next { padding-bottom: clamp(88px, 10vw, 150px); }
.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.next h2 { max-width: 12ch; }
.next p {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.66;
  color: var(--text-2);
  max-width: 56ch;
  padding-top: 8px;
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(34px, 4vw, 46px) 0 30px; }
.foot__top {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand--foot .brand__mark { width: 24px; height: 24px; }
.foot__line {
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: .005em;
  flex: 1 1 320px;
  min-width: 0;
}
.foot__site {
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot__site:hover { color: var(--text); border-color: var(--text); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-3);
  flex-wrap: wrap;
}
.foot__fine {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
}
.foot__fine--r { opacity: .75; }

/* ---------- modal ---------- */
.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.modal::backdrop { background: var(--shade); backdrop-filter: blur(6px); }
.modal__in { position: relative; padding: 28px 28px 26px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal__close:hover { color: var(--text); border-color: var(--line-2); }
.modal__close svg { width: 12px; height: 12px; }
.modal__kick {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.modal__title {
  margin-top: 14px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 600;
  padding-right: 30px;
}
.modal__body { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 42ch; }
.modal__foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; }
.modal[open] { animation: modal-in .22s var(--ease); }
html.is-locked, html.is-locked body { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- stack entrance ----------
   One named view timeline on the stack so bands build from the bottom
   up (01 first, 06 last), rising 18px. Falls back to fully visible
   where scroll-driven animation isn't supported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .stack {
      view-timeline-name: --nlos-stack;
      view-timeline-axis: block;
    }
    .js .band {
      animation: band-rise-y linear both;
      animation-timeline: --nlos-stack;
      animation-range: entry calc(4% + var(--i) * 4%) entry calc(34% + var(--i) * 4%);
    }
    .js .band__head,
    .js .band__panel {
      animation: band-rise-o linear both;
      animation-timeline: --nlos-stack;
      animation-range: entry calc(6% + var(--i) * 5%) entry calc(46% + var(--i) * 5%);
    }
  }
}
@keyframes band-rise-y {
  from { translate: 0 18px; }
  to { translate: 0 0; }
}
@keyframes band-rise-o {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- trailer drift ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage__bg {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes drift {
  from { transform: translateY(-16px) scale(1.02); }
  to { transform: translateY(16px) scale(1.02); }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .tenets { gap: 24px; }
  .subnav { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero__index { display: none; }
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .sec-head .lede { max-width: 58ch; padding-bottom: 0; }
  .next { grid-template-columns: 1fr; gap: 22px; }
  .next p { padding-top: 0; }
}

@media (max-width: 860px) {
  :root { --head-h: 62px; }
  .stack-grid { grid-template-columns: 1fr; gap: 34px; }
  .aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
    align-items: end;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
  }
  .aside__fig { grid-column: 1 / -1; border: 0; padding-bottom: 8px; }
  .aside__line { margin-top: 0; max-width: none; font-size: 1.1rem; }
  .aside__cap { margin-top: 0; max-width: 22ch; text-align: right; }
  .gauge { display: none; }
  .stack { padding-left: 20px; }
  .band::before { left: -20px; width: 13px; }
  .stack::after { left: 7px; }
  .hero { min-height: 0; padding-top: clamp(56px, 9vh, 84px); padding-bottom: clamp(78px, 11vh, 104px); }
  .cue { bottom: 22px; }
}

@media (max-width: 720px) {
  .tenets { grid-template-columns: 1fr; gap: 30px; }
  .tenet__glyph { margin-bottom: 16px; }
  .modules { grid-template-columns: 1fr; gap: 1px; }
  .module { padding: 20px 16px 22px; }
  .module__tiles { gap: 12px; }
  .tile__play { width: 36px; height: 36px; }
  .pill { display: none; }
  .foot__top { gap: 16px; }
  .foot__line { flex-basis: 100%; order: 3; }
  .foot__site { margin-left: auto; }
  .foot__bottom { flex-direction: column; gap: 6px; }
  .band__head { grid-template-columns: 28px minmax(0, 1fr) 18px; padding: 17px 16px 17px 8px; min-height: 62px; }
  .band__panelIn { padding-left: 36px; padding-right: 18px; }
  .band__desc { font-size: 13px; }
  .stack { padding-left: 0; gap: 7px; --taper: 2%; }
  .stack::before, .stack::after, .band::before { display: none; }
  .rule { font-size: 9px; letter-spacing: .1em; }
  .stage__meta { top: 14px; left: 14px; font-size: 8px; }
  .stage__cap { bottom: 14px; font-size: 10px; }
  .modal__in { padding: 24px 20px 22px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.62rem; letter-spacing: -.038em; }
  .hero__actions { gap: 10px; }
  .btn { height: 44px; padding: 0 18px; font-size: 13px; }
  .brand__sub { font-size: 7px; letter-spacing: .14em; }
  .brand__word { font-size: 14px; }
  .brand__mark { width: 23px; height: 23px; }
  .aside { display: block; }
  .aside__cap { text-align: left; margin-top: 8px; max-width: none; }
  .band__name { font-size: 1rem; }
  .foot__line { font-size: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .band { opacity: 1 !important; translate: 0 0 !important; transform: none !important; animation: none !important; }
  .band__head, .band__panel { opacity: 1 !important; animation: none !important; }
  .stage__bg { transform: none !important; }
  .tile:hover { transform: none; }
  .cue__line::after { animation: none !important; opacity: .5; width: 100%; }
}

/* ---------- print ---------- */
@media print {
  .site-head, .cue, .modal { display: none; }
  body { background: #FFF; color: #000; }
}


/* ---------- no-JS: all layers readable ---------- */
html:not(.js) .band__panel { grid-template-rows: 1fr; }
html:not(.js) .band__panelIn {
  opacity: 1; transform: none; padding-bottom: 20px;
}
html:not(.js) .band__sign,
html:not(.js) .theme { display: none; }
html:not(.js) .band { cursor: default; }
