/* SkipWatch: black and white, katakana rain, the launch film's type. No colour, on purpose. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Kana"; src: url("/fonts/BIZUDGothic-HalfwidthKana.woff2") format("woff2"); font-display: swap; unicode-range: U+FF61-FF9F; }

:root {
  --bg: oklch(0.11 0 0);
  --bg-2: oklch(0.15 0 0);
  --line: oklch(0.26 0 0);
  --mute: oklch(0.62 0 0);
  --fg: oklch(0.96 0 0);
  --hi: oklch(0.36 0 0);
  --sans: "Geist", "Kana", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", "Kana", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 clamp(16px, 1.05vw + 12px, 19px)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-2); padding: 0.08em 0.35em; border-radius: 3px; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.kana { font-family: "Kana", var(--mono); }
.dim { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-size: 13px; letter-spacing: 0.04em; color: var(--mute); margin: 0 0 18px; }
.h2 { font: 650 clamp(32px, 4.6vw, 64px)/1.02 var(--sans); letter-spacing: -0.035em; margin: 0 0 24px; text-wrap: balance; }
.body { color: var(--mute); max-width: 46ch; margin: 0 0 20px; }
.source { font-size: 13px; color: var(--mute); max-width: 52ch; line-height: 1.6; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gut); font-size: 14px;
  background: linear-gradient(to bottom, oklch(0.11 0 0 / 0.92), oklch(0.11 0 0 / 0));
  transition: background 0.4s var(--ease);
}
.bar.is-solid { background: oklch(0.11 0 0 / 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar__mark { font-weight: 650; text-decoration: none; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: baseline; }
.bar__mark .kana { color: var(--mute); font-size: 13px; }
.bar__nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.bar__nav a { text-decoration: none; color: var(--mute); transition: color 0.2s; }
.bar__nav a:hover { color: var(--fg); }
.bar__nav .bar__gh { color: var(--fg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.bar__nav .bar__gh:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 640px) { .bar__nav a:not(.bar__gh) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; isolation: isolate; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* soft vignette so copy reads over the rain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 52%, oklch(0.11 0 0 / 0.9) 30%, oklch(0.11 0 0 / 0) 100%);
}
.hero__inner { width: 100%; min-width: 0; max-width: 980px; padding: 96px var(--gut) 88px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wordmark {
  font-family: var(--mono); font-variant-ligatures: none; white-space: pre; line-height: 1.02;
  font-size: clamp(13px, 4.6vw, 38px); letter-spacing: 0; margin: 0 0 clamp(20px, 3vw, 34px);
  user-select: none;
}
.wordmark .ch { display: inline-block; width: 1ch; text-align: center; transition: color 0.3s; }
.wordmark .ch.k { font-family: "Kana", var(--mono); color: var(--mute); }
.wordmark .ch.lock { color: var(--fg); text-shadow: 0 0 18px oklch(1 0 0 / 0.35); }
.hero__tag { font-size: clamp(14px, 1.4vw, 18px); color: var(--fg); min-height: 1.6em; margin: 0 0 clamp(28px, 4.5vh, 48px); }
.caret { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.18em; background: var(--fg); margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__title { font: 700 clamp(38px, 6vw, 86px)/0.95 var(--sans); letter-spacing: -0.045em; margin: 0 0 26px; text-wrap: balance; }
.hero__title-b { color: var(--fg); background: linear-gradient(var(--fg), var(--fg)) left 92% / 0 0.08em no-repeat; animation: underline 1.2s var(--ease) 2.6s forwards; }
@keyframes underline { to { background-size: 100% 0.08em; } }
.hero__lede { max-width: 44ch; color: var(--mute); margin: 0 0 32px; font-size: clamp(17px, 1.3vw, 21px); text-wrap: pretty; }
.hero__fine { font-size: 14px; color: var(--mute); margin: 18px 0 0; }
.hero__down {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 12px var(--mono); color: var(--mute); text-decoration: none;
}
.hero__down .kana { font-size: 18px; color: var(--fg); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* staged hero entrance after the wordmark locks */
.hero__title, .hero__lede, .install, .hero__fine { opacity: 0; transform: translateY(14px); }
.is-ready .hero__title, .is-ready .hero__lede, .is-ready .hero .install, .is-ready .hero__fine {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-ready .hero__lede { transition-delay: 0.12s; }
.is-ready .hero .install { transition-delay: 0.24s; }
.is-ready .hero__fine { transition-delay: 0.36s; }

/* ---------- install block ---------- */
.install { width: 100%; max-width: 620px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: oklch(0.08 0 0 / 0.85); backdrop-filter: blur(4px); }
.install--end { opacity: 1; transform: none; }
.install__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--mute); }
.install__lines { margin: 0; padding: 16px 18px 18px; font: 400 clamp(13px, 1.25vw, 16px)/1.85 var(--mono); font-variant-ligatures: none; overflow-x: auto; }
.install__lines .p { color: var(--mute); margin-right: 6px; }
.copy { font: 500 12px var(--mono); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.copy:hover, .copy.is-done { background: var(--fg); color: var(--bg); }

/* ---------- why ---------- */
.why { padding: clamp(96px, 16vh, 180px) 0 clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); }
.why__h { font: 600 clamp(28px, 4.2vw, 58px)/1.08 var(--sans); letter-spacing: -0.03em; margin: 0; max-width: 22ch; text-wrap: balance; }
.why__h em { font-style: normal; color: var(--mute); }
.why__p { margin: clamp(28px, 4vw, 44px) 0 0 auto; max-width: 38ch; color: var(--mute); font-size: clamp(17px, 1.3vw, 21px); }
@media (max-width: 760px) { .why__p { margin-left: 0; } }

/* ---------- decode ---------- */
.decode { padding: clamp(80px, 12vh, 140px) 0; }
.decode__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.decode__side { position: sticky; top: 110px; }
@media (max-width: 900px) { .decode__grid { grid-template-columns: minmax(0, 1fr); } .decode__side { position: static; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.step { counter-increment: s; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px 22px 64px; background: var(--bg-2); }
.step::before { content: counter(s); position: absolute; left: 22px; top: 24px; font: 600 15px var(--mono); color: var(--mute); }
.step__text { margin: 0 0 14px; font-weight: 500; }
.step__code { margin: 0 0 14px; padding: 14px 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 13px/1.6 var(--mono); overflow-x: auto; font-variant-ligatures: none; }
.step__quote { margin: 0 0 14px; padding-left: 14px; border-left: 2px solid var(--fg); color: var(--fg); font-style: italic; }
.step__exp { margin: 0 0 14px; color: var(--mute); font-size: 0.92em; }
.tag { display: inline-block; font: 600 13px var(--mono); padding: 4px 9px; border-radius: 4px; background: var(--fg); color: var(--bg); }
.tag--inferred { background: transparent; color: var(--fg); border: 1px dashed var(--fg); }
/* decode state: glyphs scrambled until the step scrolls in */
.step [data-glyph] { color: var(--mute); font-family: "Kana", var(--mono); }

/* ---------- tags ---------- */
.tags { padding: 0 0 clamp(80px, 12vh, 140px); }
.taglist { margin: 0; border-top: 1px solid var(--line); }
.taglist__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 96px); align-items: baseline; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding 0.5s var(--ease); }
.taglist__row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.taglist { position: relative; z-index: 0; }
.taglist__row:hover::before { transform: scaleY(1); }
.taglist__row:hover dt, .taglist__row:hover dd { color: var(--bg); }
.taglist dt { font-size: clamp(22px, 3.2vw, 44px); letter-spacing: -0.03em; font-weight: 500; transition: color 0.3s; }
.taglist dd { margin: 0; color: var(--mute); transition: color 0.3s; max-width: 42ch; }
@media (max-width: 700px) { .taglist__row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- pipeline ---------- */
.pipe { padding: clamp(80px, 12vh, 140px) 0; background: var(--fg); color: var(--bg); }
.pipe .eyebrow { color: oklch(0.42 0 0); }
.rail { list-style: none; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-top: 2px solid var(--bg); position: relative; }
.rail::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: var(--p, 0%); background: var(--bg); box-shadow: 0 0 0 1px var(--bg); }
.rail li { position: relative; padding: 22px 14px 0 0; display: flex; flex-direction: column; gap: 6px; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.rail li.on { opacity: 1; }
.rail li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--fg); border: 2px solid var(--bg); border-radius: 50%; transition: background 0.3s; }
.rail li.on::before { background: var(--bg); }
.rail__n { font-size: 12px; }
.rail b { font-size: clamp(15px, 1.2vw, 18px); font-weight: 650; letter-spacing: -0.01em; }
.rail span:last-child { font-size: 13px; line-height: 1.45; color: oklch(0.35 0 0); }
.pipe__note { margin: clamp(40px, 6vw, 72px) 0 0; font-size: clamp(18px, 1.6vw, 24px); max-width: 44ch; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 1000px) {
  .rail { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--bg); padding-left: 0; }
  .rail::before { display: none; }
  .rail li { padding: 0 0 26px 28px; }
  .rail li::before { top: 4px; left: -7px; }
}

/* ---------- review terminal ---------- */
.review { padding: clamp(80px, 12vh, 140px) 0; }
.review__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 1000px) { .review__grid { grid-template-columns: minmax(0, 1fr); } }
.term { border: 1px solid var(--line); border-radius: 12px; background: oklch(0.07 0 0); overflow: hidden; box-shadow: 0 40px 120px -40px oklch(1 0 0 / 0.08); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--hi); }
.term__bar span { margin-left: auto; font-size: 12px; color: var(--mute); }
.term__body { margin: 0; padding: 20px 22px; font-size: clamp(11.5px, 0.95vw, 14px); line-height: 1.7; white-space: pre-wrap; word-break: break-word; min-height: 420px; }
.term__body mark { background: var(--hi); color: var(--fg); padding: 0 2px; }
.caret--term { width: 0.55em; height: 1em; }
.term__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 22px; }
.term__opts button { font: 500 13px var(--mono); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.term__opts button:hover { border-color: var(--fg); }
.term__opts button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.term__opts button[data-answer="yes"] { border-color: var(--fg); }

/* ---------- guardrails ---------- */
.guard { padding: clamp(80px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.guard__h { font-size: clamp(36px, 6.4vw, 92px); max-width: 16ch; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.guard__list { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 72px); }
.guard__list li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--mute); }
.guard__list b { color: var(--fg); font-weight: 600; display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .guard__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sources ---------- */
.sources { padding: clamp(64px, 10vh, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.marquee { margin: 0; font: 700 clamp(36px, 7vw, 110px)/1.05 var(--sans); letter-spacing: -0.045em; display: flex; flex-wrap: wrap; gap: 0 0.28em; align-items: baseline; }
.marquee i { font-style: normal; font-family: "Kana", var(--mono); color: var(--mute); font-weight: 400; font-size: 0.5em; }
.marquee .ghost { color: transparent; -webkit-text-stroke: 1.5px var(--mute); }
.sources__fine { margin: 32px 0 0; max-width: 70ch; font-size: 13px; color: var(--mute); line-height: 1.7; }

/* ---------- film ---------- */
.film { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.film__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.film__head .h2 { margin: 0; }
.film__frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.film__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ---------- privacy ---------- */
.priv { padding: clamp(80px, 12vh, 140px) 0; background: var(--fg); color: var(--bg); }
.priv__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.priv__big { margin: 0; font: 700 clamp(40px, 6.6vw, 96px)/0.98 var(--sans); letter-spacing: -0.045em; }
.priv__body p { margin: 0 0 16px; color: oklch(0.32 0 0); }
.priv__body .dim { color: oklch(0.45 0 0); font-size: 13px; }
@media (max-width: 860px) { .priv__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- commands ---------- */
.cmds { padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px); }
.cmdlist { margin: 0; border-top: 1px solid var(--line); }
.cmdlist div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(13px, 1.1vw, 16px); }
.cmdlist dt { color: var(--fg); }
.cmdlist dd { margin: 0; color: var(--mute); }
@media (max-width: 700px) { .cmdlist div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq ---------- */
.faq { padding: clamp(64px, 10vh, 120px) 0 clamp(80px, 12vh, 140px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 550; font-size: clamp(17px, 1.3vw, 20px); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 22px var(--mono); color: var(--mute); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--mute); max-width: 60ch; }

/* ---------- end card ---------- */
.end { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.end::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 50% 50%, oklch(0.11 0 0 / 0.94) 35%, oklch(0.11 0 0 / 0) 100%); }
.end__inner { padding: 120px var(--gut); display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.end__tag { margin: 0 0 48px; font: 700 clamp(36px, 6.4vw, 96px)/0.98 var(--sans); letter-spacing: -0.045em; }
.end__gh { margin-top: 28px; font: 500 15px var(--sans); color: var(--mute); }
.end__gh:hover { color: var(--fg); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--mute); }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__title, .hero__lede, .install, .hero__fine, [data-reveal] { opacity: 1; transform: none; }
  .hero__title-b { background-size: 100% 0.08em; }
}
@media (max-width: 520px) { .step { padding: 22px 16px 18px 44px; } .step::before { left: 16px; top: 22px; } }
