/* Thinkforce v2. One page, motion-led. UI chrome is flat (no shadows, no glow); 3D scenes carry the light. */

@font-face { font-family: 'bornaregular'; src: url('../fonts/borna-regular-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'bornamedium'; src: url('../fonts/borna-medium-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'bornasemibold'; src: url('../fonts/borna-semibold-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --navy: #0A102D;
  --navy-2: #151C44;
  --unlock: #9BAAF6;
  --s50: #C4CCF5;
  --s30: #D9DFFC;
  --s15: #F0F2FE;
  --sub: #62698A;
  --neutral: #FFFEF6;
  --green: #ADFF00;
  --blush: #BC3901;
  --sky: #E9F2FF;
  --cream: #FFF9E9;
  --mint: #F8FFFC;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --f: 'bornaregular', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-med: 'bornamedium', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-semi: 'bornasemibold', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: 24px;
  --r-frame: 36px;
  --dots: radial-gradient(circle, rgba(155, 170, 246, 0.6) 0 1.1px, rgba(155, 170, 246, 0) 1.7px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--sky);
}
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* The ThinkForce gradient, fixed behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 8%, var(--sky) 0%, rgba(233, 242, 255, 0) 70%),
    radial-gradient(55% 60% at 88% 30%, var(--cream) 0%, rgba(255, 249, 233, 0) 72%),
    radial-gradient(70% 70% at 50% 100%, var(--mint) 0%, rgba(248, 255, 252, 0) 70%),
    linear-gradient(120deg, var(--sky) 0%, var(--cream) 52%, var(--mint) 100%);
}

img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--neutral);
  font-family: var(--f-med);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[data-nav="dark"] :focus-visible, .on-dark :focus-visible { outline-color: var(--neutral); }

/* ---------- Type voice: one bold display face ---------- */
.hero-title,
.ch-title,
.j-title,
.final-title {
  font-family: var(--f-semi);
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.86;
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: var(--neutral);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-med);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  will-change: transform;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { --bg: var(--navy-2); }
.btn-in { display: inline-flex; align-items: center; gap: 10px; pointer-events: none; }
.btn--lg { height: 60px; padding: 0 28px 0 22px; font-size: 18px; }
.btn--nav { height: 44px; padding: 0 20px 0 16px; }
.ic-dl { width: 20px; height: 20px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-arrow, .ic-tray { transform-box: fill-box; }
.btn:hover .ic-arrow { animation: tf-drop 0.75s var(--ease) both; }
.btn:hover .ic-tray { animation: tf-tray 0.75s var(--ease) both; }
@keyframes tf-drop {
  0% { transform: translateY(0); opacity: 1; }
  38% { transform: translateY(7px); opacity: 0; }
  39% { transform: translateY(-9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes tf-tray {
  0%, 22% { transform: translateY(0); }
  34% { transform: translateY(1.6px); }
  60%, 100% { transform: translateY(0); }
}
.on-dark .btn, .nav.is-dark .btn { --bg: var(--neutral); --fg: var(--navy); }
.on-dark .btn:hover, .nav.is-dark .btn:hover { --bg: var(--s30); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px calc(var(--gut) + 16px) 0;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  text-decoration: none;
  color: var(--navy);
  transition: color 0.35s ease;
}
.nav-mark { width: 30px; height: 29px; }
.nav-word { font-family: var(--f-semi); font-size: 23px; letter-spacing: -0.02em; line-height: 1; transform: translateY(-1px); }
.nav.is-dark .nav-logo { color: var(--neutral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(var(--gut) + 16px);
  min-height: 100svh;
  padding: 88px var(--gut) var(--gut);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 4vh, 48px) 8px 8px 16px;
}
.hero-title {
  font-size: clamp(52px, 10.4vw, 172px);
  margin-left: -0.04em;
}
.hero-title .ln { display: block; white-space: nowrap; }
.hero-lede {
  max-width: 25ch;
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.4;
  color: var(--navy);
}
.hero-cta { align-self: flex-start; margin-top: 28px; }
.hero-frame {
  position: relative;
  min-height: 460px;
  border-radius: var(--r-frame);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-frame.is-fallback .hero-fallback { opacity: 1; }
.hero-frame.is-fallback .hero-canvas { display: none; }

/* Line reveal: lines rise in from below their own mask. */
.js .rv-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .rv-in { display: block; will-change: transform; }

/* ---------- Journey (base; motion in journey.js) ---------- */
.journey { position: relative; }
.j-pin { position: relative; height: 100svh; overflow: hidden; }
.j-track { position: absolute; inset: 0; display: flex; width: 400%; will-change: transform; }
.j-screen { position: relative; flex: 0 0 25%; height: 100%; padding: 12px; }
.j-panel { position: absolute; inset: 12px 6px; border-radius: var(--r-frame); background: var(--neutral); border: 1px solid var(--s30); }
.j-screen[data-screen="2"] .j-panel,
.j-screen[data-screen="3"] .j-panel { background: var(--s15); }
.j-screen[data-screen="4"] .j-panel { background: var(--navy); border-color: var(--navy); }
.j-title {
  position: absolute;
  left: 56px; top: 104px;
  max-width: 11ch;
  font-size: clamp(44px, 6.4vw, 104px);
}
.j-screen[data-screen="4"] .j-title { color: var(--neutral); }
.j-stage { position: absolute; inset: 0; pointer-events: none; }
.j-progress {
  position: absolute;
  left: 50%; bottom: 30px;
  display: flex; gap: 6px;
  transform: translateX(-50%);
}
.j-progress i { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--s30); }

/* ---------- Chapters (base) ---------- */
.ch { position: relative; padding: 18vh var(--gut); }
.ch-title { font-size: clamp(44px, 7.4vw, 120px); max-width: 14ch; }
.ch-line { margin-top: 28px; max-width: 30ch; font-size: clamp(18px, 1.45vw, 21px); color: var(--sub); }
.ch-copy { padding-left: 16px; }
.ch1-visual, .final-frame { position: relative; }
.ch1-visual canvas, .final-frame canvas { width: 100%; height: 100%; }
.ch-night { color: var(--neutral); }
.ch-night .ch-title { color: var(--neutral); }

/* ---------- Final ---------- */
.final { position: relative; padding: 12vh var(--gut) 10vh; }
.final-frame { height: 70vh; border-radius: var(--r-frame); background: var(--navy); overflow: hidden; }
.final-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; padding: 64px 16px 0; }
.final-title { font-size: clamp(48px, 8.4vw, 136px); max-width: 12ch; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 40px calc(var(--gut) + 16px) 48px;
  font-size: 14px;
  color: var(--sub);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; color: var(--navy); }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --gut: 12px; --r-frame: 28px; }
  .nav { padding: 14px 20px 0; }
  .nav-word { font-size: 21px; }
  .btn--nav { height: 40px; padding: 0 16px 0 13px; font-size: 15px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: 76px; min-height: 100svh; }
  .hero-copy { padding: 12px 8px 4px; }
  .hero-title { font-size: clamp(44px, 16.2vw, 88px); }
  .hero-lede { margin-top: 0; padding-top: 18px; font-size: 17px; max-width: 30ch; }
  .hero-cta { margin-top: 18px; }
  .btn--lg { height: 54px; font-size: 17px; }
  .hero-frame { min-height: 340px; }
  .j-title { left: 28px; top: 84px; }
  .ch { padding: 14vh var(--gut); }
  .ch-copy { padding-left: 8px; }
}

/* =========================================================
   Journey stage
   ========================================================= */
.j-title { font-size: clamp(40px, 5.7vw, 94px); max-width: 13ch; z-index: 2; }
.j-screen[data-screen="2"] .j-panel,
.j-screen[data-screen="3"] .j-panel { background-color: var(--s15); background-image: var(--dots); background-size: 26px 26px; background-position: 13px 13px; }
.j-progress { z-index: 5; }
.j-progress i { transition: width 0.5s var(--ease), background-color 0.4s ease; }
.j-progress i.is-on { width: 52px; background: var(--navy); }
.journey.is-s4 .j-progress i { background: #2A3362; }
.journey.is-s4 .j-progress i.is-on { background: var(--neutral); }
.j-stage { z-index: 3; }
.j-stage > * { position: absolute; left: 0; top: 0; }

/* Prompt bar */
.jp {
  --pfs: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 22px 34px;
  border-radius: 30px;
  background: var(--neutral);
  border: 1px solid var(--s50);
  transform-origin: 50% 50%;
}
.jp-field { position: relative; flex: 1; min-width: 0; min-height: calc(var(--pfs) * 1.25); font-family: var(--f-med); font-size: var(--pfs); line-height: 1.25; letter-spacing: -0.02em; color: var(--navy); }
.jp-typed { white-space: pre-wrap; }
.jp-caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 2px; vertical-align: -0.14em; border-radius: 2px; background: var(--unlock); animation: jp-blink 1s steps(1) infinite; }
@keyframes jp-blink { 50% { opacity: 0; } }
.jp-measure { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.jp-send { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--s30); color: var(--neutral); transition: background-color 0.3s ease; }
.jp-send svg { width: 26px; height: 26px; }
.jp-send.is-ready { background: var(--navy); }

/* Tokens: words that fly and become board pieces */
.jt { pointer-events: none; }
.jt-bg { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 14px; background: var(--neutral); border: 1px solid var(--s50); will-change: transform; }
.jt-bg.is-j { border-radius: 50%; }
.jt-w { position: absolute; left: 0; top: 0; font-family: var(--f-med); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; transform-origin: 50% 50%; will-change: transform; }

/* Board */
.jb { transform-origin: 0 0; }
.jb-lines { position: absolute; left: 0; top: 0; overflow: visible; }
.jl { fill: none; stroke: var(--navy); stroke-width: 1.2; }
.jpulse { fill: var(--unlock); stroke: var(--navy); stroke-width: 1; opacity: 0; }
.jj { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--unlock); border: 1px solid var(--navy); }
.jj::before, .jj::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: var(--navy); border-radius: 1px; }
.jj::after { transform: rotate(90deg); }

.jc {
  position: absolute;
  border-radius: 14px;
  background: var(--neutral);
  border: 1px solid var(--s50);
  color: var(--navy);
  transform-origin: 0 0;
  will-change: transform;
  transition: border-color 0.3s ease;
}
.jc.is-active { border-color: var(--navy); }
.jc-in { padding: 13px 15px 15px; }
.jc-head { display: flex; align-items: center; justify-content: space-between; }
.jc-k { font-size: 11.5px; line-height: 15px; color: var(--sub); }
.jc-more { width: 17px; height: 17px; }
.jc-title { margin-top: 3px; min-height: 40px; font-family: var(--f-med); font-size: 15.5px; line-height: 20px; letter-spacing: -0.01em; }
.jc-status { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--sub); }
.jc-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--s30); }
.jc-spin { display: none; flex: none; width: 10px; height: 10px; border: 1.6px solid var(--s30); border-top-color: var(--navy); border-radius: 50%; animation: jc-spin 0.8s linear infinite; }
[data-s="wait"] > .jc-dot { background: var(--s50); }
[data-s="done"] > .jc-dot { background: var(--navy); }
[data-s="work"] > .jc-dot { display: none; }
[data-s="work"] > .jc-spin { display: block; }
.jc-st { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@keyframes jc-spin { to { transform: rotate(360deg); } }
.jc-agent, .jc-refs { opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: 0 50%; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.jc.has-agent .jc-agent, .jc.has-ref .jc-refs { opacity: 1; transform: none; }
.jc-agent { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.jc-refs { margin-top: 10px; }
.jc-file { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; line-height: 15px; color: var(--sub); }
.jc-file svg { width: 11px; height: 13px; flex: none; }
.chip { display: inline-grid; place-items: center; flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--cb); color: var(--cf); font-family: var(--f-med); font-size: 8.5px; letter-spacing: 0.02em; line-height: 1; }

.jc-trig .jc-in { padding: 14px 16px; }
.jc-tv { margin-top: 10px; font-family: var(--f-med); font-size: 15.5px; line-height: 21px; }
.jc-goal { background: var(--navy); border-color: var(--navy); color: var(--neutral); }
.jc-goal .jc-in { padding: 14px 16px; }
.jc-gk { font-size: 11.5px; line-height: 15px; color: var(--green); }
.jc-gt { margin-top: 6px; font-family: var(--f-med); font-size: 15.5px; line-height: 20px; }
.jc-gd { margin-top: 12px; }
.jc-gl { margin-top: 5px; font-size: 12px; line-height: 17px; color: var(--s30); }
.jc-gf { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; line-height: 16px; color: var(--unlock); }
.jc-gf i { width: 6px; height: 6px; border-radius: 50%; background: var(--s30); transition: background-color 0.3s ease; }
.jc-goal.is-done .jc-gf i { background: var(--green); }

.is-compact .jc-agent, .is-compact .jc-refs, .is-compact .jc-gd, .is-compact .jc-gl, .is-compact .jc-more { display: none; }
.is-compact .jc-in { padding: 10px 12px 11px; }
.is-compact .jc-title { min-height: 0; font-size: 14px; line-height: 18px; }
.is-compact .jc-tv { margin-top: 4px; font-size: 14px; line-height: 18px; }
.is-compact .jc-trig .jc-in, .is-compact .jc-goal .jc-in { padding: 10px 12px 11px; }
.is-compact .jc-gf { margin-top: 6px; }

/* Caption: who is doing what, right now */
.jcap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px 0 10px;
  border-radius: 999px;
  background: var(--neutral);
  border: 1px solid var(--s50);
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.jcap.is-on { opacity: 1; transform: translate(-50%, 0); }
.jcap .chip { width: 24px; height: 24px; font-size: 9px; }
.jcap.is-swap .jcap-t { animation: jcap-in 0.45s var(--ease); }
@keyframes jcap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Game */
.jg { border-radius: 22px; background: var(--navy); border: 1px solid #2A3362; overflow: hidden; pointer-events: auto; }
.jg-canvas { position: absolute; inset: 0; cursor: none; touch-action: pan-y; }
.jg-canvas:focus-visible { outline: 2px solid var(--neutral); outline-offset: -4px; border-radius: 22px; }
.jg-play {
  position: absolute;
  left: 50%; top: 42%;
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 24px 0 18px;
  border: 0; border-radius: 999px;
  background: var(--neutral); color: var(--navy);
  font: 400 17px/1 var(--f-med);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), background-color 0.2s ease;
}
.jg-play svg { width: 16px; height: 16px; }
.jg-play:hover { background: var(--s30); }
.jg-play:active { transform: translate(-50%, -50%) scale(0.97); }
.jg-play:focus-visible { outline-color: var(--neutral); }
.jg.is-playing .jg-play { opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }
.jg-score { position: absolute; right: 18px; top: 14px; display: flex; align-items: center; gap: 8px; color: var(--neutral); font: 400 22px/1 var(--f-med); font-variant-numeric: tabular-nums; }
.jg-score svg { width: 14px; height: 18px; }

/* Reduced motion: four stacked screens */
.journey.is-static .j-pin { height: auto; overflow: visible; }
.journey.is-static .j-track { position: relative; flex-direction: column; width: 100%; transform: none !important; }
.journey.is-static .j-screen { flex: none; height: max(760px, 100svh); }
.journey.is-static > .j-pin > .j-stage, .journey.is-static .j-progress { display: none; }
.j-stage--static { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.j-stage--static > * { position: absolute; left: 0; top: 0; }
@media (max-width: 760px) {
  .jp { padding: 16px 14px 16px 20px; border-radius: 22px; gap: 12px; }
  .jp-send { width: 44px; height: 44px; }
  .jcap { font-size: 13px; height: 36px; }
  .jg-score { font-size: 19px; }
}
.jc { z-index: 2; }
.jc-goal { z-index: 1; }
.jj { z-index: 3; }

/* =========================================================
   Chapters
   ========================================================= */
.ch-title { font-size: clamp(40px, 5.5vw, 92px); max-width: 13ch; }
.ch-line { color: var(--navy); opacity: 0.78; }
.jc-head .jc-more { width: 17px; height: 17px; }

/* 1. Start */
.ch-start { height: 100svh; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; }
.ch-start .ch-copy { padding-left: 16px; }
.ch1-visual { height: min(84svh, 760px); }
.ch1-visual canvas { position: absolute; inset: 0; }

/* 2. Night */
.ch-night { height: 100svh; padding: 0; overflow: hidden; }
.night-sky { position: absolute; inset: 0; background: var(--navy); overflow: hidden; will-change: transform; }
.night-sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.n-moon { position: absolute; right: 12vw; top: 14vh; width: 46px; height: 46px; will-change: transform; }
.night-inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 0 48px; padding: 120px calc(var(--gut) + 16px) 56px; }
.night-copy { grid-column: 1; grid-row: 1; align-self: center; }
.night-copy .ch-line { color: var(--s30); opacity: 1; }
.off-pill { margin-top: 28px; }
.off-pill { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px 0 13px; border-radius: 999px; background: #141B42; border: 1px solid #2A3362; color: var(--s30); font-size: 14px; white-space: nowrap; }
.off-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sub); }
.night-visual { display: contents; }
.n-clock { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.n-clock svg { width: clamp(200px, 25vw, 340px); height: auto; }
.n-time { font: 400 20px/1 var(--f-med); color: var(--s30); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.n-flow { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 0; }
.n-card { width: 210px; padding: 13px 15px 15px; border-radius: 14px; background: #121942; border: 1px solid #2A3362; color: var(--neutral); transition: border-color 0.3s ease; }
.n-card.is-active { border-color: var(--unlock); }
.n-card .jc-k { color: #8C93B8; }
.n-card .jc-more circle:first-child { fill: #2A3362; }
.n-title { margin-top: 3px; font: 400 15.5px/20px var(--f-med); }
.n-card .jc-status { color: #A8AFD3; }
.n-card [data-s="done"] > .jc-dot { background: var(--green); }
.n-card .jc-dot { background: #2A3362; }
.n-card .jc-spin { border-color: #2A3362; border-top-color: var(--neutral); }
.n-link { position: relative; width: 52px; height: 1.2px; background: #2A3362; transition: background-color 0.4s ease; }
.n-link.is-ran { background: var(--unlock); }
.n-junc { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--unlock); border: 1px solid var(--navy); }
.n-junc::before, .n-junc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.4px; margin: -0.7px 0 0 -4px; background: var(--navy); }
.n-junc::after { transform: rotate(90deg); }

/* 3. Agents */
.ch-agents { padding: 16vh var(--gut) 18vh; overflow-x: clip; }
.ch-agents .ch-copy { padding-left: 16px; }
.agents-visual { margin-top: 8vh; perspective: 1400px; }
.ag-stage { display: flex; justify-content: center; gap: 22px; transform: rotateX(16deg) rotateY(-14deg); transform-style: preserve-3d; }
.ag-card { width: 248px; min-height: 250px; padding: 15px 17px 18px; border-radius: 16px; background: var(--neutral); border: 1px solid var(--s50); transform: translateY(calc(var(--i) * 26px)); transform-style: preserve-3d; }
.ag-title { margin-top: 4px; min-height: 44px; font: 400 17px/22px var(--f-med); letter-spacing: -0.01em; }
.ag-k { margin-top: 14px; font-size: 11.5px; line-height: 15px; color: var(--sub); }
.ag-slot { margin-top: 7px; display: flex; flex-direction: column; gap: 7px; min-height: 34px; padding: 6px; border-radius: 12px; background: var(--s15); }
.ag-av { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; will-change: transform; }
.chip--lg { width: 34px; height: 34px; font-size: 12px; }
.ag-file { will-change: transform; }
.file { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border-radius: 9px; background: var(--neutral); border: 1px solid var(--s30); font-size: 13px; color: var(--navy); white-space: nowrap; }
.file svg { width: 12px; height: 14px; }

/* 4. Change */
.ch-change { height: 100svh; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.ch-change .ch-copy { padding-right: 24px; }
.change-visual { display: flex; justify-content: center; perspective: 1600px; }
.cg-row { display: flex; align-items: center; }
.cg-card { width: 196px; height: 196px; padding: 15px 17px; border-radius: 16px; background: var(--neutral); border: 1px solid var(--s50); color: var(--navy); transition: opacity 0.5s ease, border-color 0.3s ease; }
.cg-title { margin-top: 4px; font: 400 17px/22px var(--f-med); }
.cg-row .jc-status { margin-top: 10px; font-size: 13px; }
.cg-row.is-focus .cg-side { opacity: 0.5; }
.cg-link { position: relative; width: 36px; height: 1.2px; background: var(--navy); }
.cg-flip { position: relative; width: 262px; height: 230px; transform-style: preserve-3d; will-change: transform; }
.cg-flip .cg-card { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cg-front.is-active { border-color: var(--navy); }
.cg-front .cg-title { font-size: 19px; line-height: 24px; }
.cg-back { transform: rotateY(180deg); }
.cg-bk { font: 400 15px/20px var(--f-med); margin-bottom: 14px; }
.cg-box { margin-top: 7px; min-height: 104px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--s50); background: #FFFFFA; font-size: 16px; line-height: 23px; }
.cg-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--unlock); animation: jp-blink 1s steps(1) infinite; }

@media (max-width: 1100px) {
  .ag-card { width: 200px; }
  .cg-card { width: 180px; }
  .cg-flip { width: 220px; }
}
@media (max-width: 760px) {
  .ch-start { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; padding-top: 92px; padding-bottom: 12px; }
  .ch1-visual { height: auto; min-height: 0; }
  .night-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: 84px 20px 22px; }
  .night-copy .ch-line { margin-top: 14px; font-size: 16px; }
  .off-pill { margin-top: 14px; height: 32px; font-size: 13px; }
  .n-clock { grid-column: 1; grid-row: 2; margin-top: 12px; gap: 8px; }
  .n-clock svg { width: min(34vw, 22svh); }
  .n-time { font-size: 16px; }
  .n-flow { grid-row: 3; flex-direction: column; justify-content: flex-end; }
  .n-card { width: 100%; max-width: 330px; padding: 7px 12px 8px; }
  .n-card .jc-head { display: none; }
  .n-title { font-size: 14px; line-height: 18px; }
  .n-card .jc-status { margin-top: 2px; }
  .n-link { width: 1.2px; height: 12px; }
  .n-junc { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .ag-stage { flex-wrap: wrap; gap: 12px; transform: none; }
  .ag-card { width: calc(50% - 6px); min-height: 0; padding: 12px; transform: none; }
  .ag-title { font-size: 15px; line-height: 19px; min-height: 38px; }
  .ch-change { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; padding-top: 80px; }
  .change-visual { order: 2; }
  .cg-side { display: none; }
  .cg-link { display: none; }
  .cg-flip { width: min(320px, 86vw); height: 220px; }
}

/* Final */
.final { padding: 14vh var(--gut) 4vh; }
.final-frame { height: clamp(280px, calc(100svh - 510px), 600px); }
.final-frame canvas { position: absolute; inset: 0; }
.final-copy { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 32px 48px; padding: 40px 16px 28px; }
.final-title { font-size: clamp(48px, 7.6vw, 128px); max-width: 14ch; }
.final-copy .btn { margin-bottom: 0.5vw; }
.foot { border-top: 1px solid var(--s30); margin: 0 calc(var(--gut) + 16px); padding-left: 0; padding-right: 0; }
@media (max-width: 760px) {
  .final { padding-top: 10vh; }
  .final-frame { height: clamp(240px, calc(100svh - 570px), 500px); }
  .final-copy { flex-direction: column; align-items: flex-start; padding-top: 36px; }
}
