/* SIGIL landing page. Monsoon provides the utilities and components and derives
   the accent from --seed on <html>; this file adds the SIGIL design system
   (design/DESIGN-SYSTEM.md): the dark base, glass, light, the HUD type and the
   scroll scenes. */

/* ------------------------------------------------------------------ tokens */

html:root {
  /* Monsoon: dark mode always, neutral surfaces from SIGIL's base tokens.
     The accent (primary, ring) still comes from --seed. */
  --mode: 1;
  color-scheme: dark;
  --background: #070B15;
  --foreground: #E8EEF6;
  --surface: #0B1120;
  --surface-2: #10182B;
  --surface-3: #172238;
  --muted: #10182B;
  --muted-foreground: #A7B3C6;
  --border: rgba(186, 214, 255, 0.14);
  --font-sans: var(--ff-text);
  --font-mono: var(--ff-mono);

  /* Voodoo.js UI pieces (focus ring, tabs) follow the same light. */
  --v-primary: #5EF2DF;
  --v-text: #E8EEF6;
  --v-surface: #10182B;
  --v-border: rgba(186, 214, 255, 0.14);

  --void: #020409;
  --abyss: #04070E;
  --base: #070B15;
  --raised: #10182B;
  --l50: #EFFFFC;
  --l100: #CCFFF6;
  --l200: #98FBEA;
  --l300: #5EF2DF;
  --l400: #2FD9C8;
  --l500: #17B8AA;
  --l600: #0E968C;
  --l800: #0A5353;
  --l900: #083A3C;
  --l950: #042220;
  --t1: #E8EEF6;
  --t2: #A7B3C6;
  --t3: #7F8BA1;
  --warn: #FFC46B;
  --line-subtle: rgba(186, 214, 255, 0.08);
  --line: rgba(186, 214, 255, 0.14);
  --line-strong: rgba(186, 214, 255, 0.24);

  --ff-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --ff-text: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
}

html:root:lang(ja) {
  --ff-display: 'Sora', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --ff-text: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --ff-mono: 'DM Mono', 'Noto Sans JP', ui-monospace, monospace;
}

html:root:lang(zh) {
  --ff-display: 'Sora', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ff-text: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ff-mono: 'DM Mono', 'Noto Sans SC', ui-monospace, monospace;
}

/* ------------------------------------------------------------------ base */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--base);
  color: var(--t1);
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
:lang(ja) body, :lang(zh) body { line-height: 1.8; }
/* Japanese breaks lines between phrases, never inside a word */
:lang(ja) body { word-break: auto-phrase; line-break: strict; }
:lang(zh) body { line-break: strict; }

::selection { background: rgba(94, 242, 223, 0.28); color: var(--l50); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--l300); outline-offset: 3px; border-radius: 6px; }
[v-cloak] { display: none !important; }

glyph-fox { display: inline-flex; flex: none; color: inherit; }
.i14 { width: 14px; height: 14px; }
.i16 { width: 16px; height: 16px; }
.i18 { width: 18px; height: 18px; }
.i20 { width: 20px; height: 20px; }
.i24 { width: 24px; height: 24px; }
.i32 { width: 32px; height: 32px; }
.i96 { width: 96px; height: 96px; }

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

/* Vercel style rails: hairlines down both edges of the content, with a plus
   where each section starts. */
.ruled { position: relative; border-inline: 1px solid var(--line-subtle); padding-block: clamp(72px, 9vw, 128px); }
.ruled::before, .ruled::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat;
  pointer-events: none;
}
.ruled::before { left: -6px; }
.ruled::after { right: -6px; }
.chapter { position: relative; border-top: 1px solid var(--line-subtle); }
@media (max-width: 767.98px) {
  .ruled { border-inline: 0; }
  .ruled::before, .ruled::after { display: none; }
}

/* ------------------------------------------------------------------ type */

.kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l200);
}
.mono-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding-inline: 6px;
  border: 1px solid rgba(94, 242, 223, 0.28);
  border-radius: 6px;
  color: var(--l100);
  font-size: 11px;
  letter-spacing: 0.08em;
}
:lang(ja) .kicker, :lang(zh) .kicker { letter-spacing: 0.08em; }

.chapter-head { padding-top: clamp(96px, 12vw, 160px); }
.chapter-head > * { max-width: 920px; }
.ruled > .chapter-head, .chapter .chapter-head { padding-top: 0; }
.chapter-head-center { text-align: center; }
.chapter-head-center > * { margin-inline: auto; }
.chapter-title .l { display: block; }
.chapter-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--t1);
}
.chapter-title-xl { font-size: clamp(2.8rem, 1rem + 6vw, 6.6rem); }
.chapter-lead {
  max-width: 40em;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--t2);
  text-wrap: pretty;
}
:lang(ja) .chapter-title, :lang(zh) .chapter-title, :lang(ja) .hero-title, :lang(zh) .hero-title, :lang(ja) .beat-h, :lang(zh) .beat-h {
  letter-spacing: 0;
  line-height: 1.22;
  word-break: auto-phrase;
}
:lang(de) .chapter-title, :lang(de) .beat-h { hyphens: auto; }

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 12px;
  border: 1px solid rgba(94, 242, 223, 0.2);
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.7);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l100);
  white-space: nowrap;
}
.hud-chip glyph-fox { color: var(--l300); }
.hud-chip-sm { height: 26px; padding-inline: 10px; font-size: 10.5px; }
:lang(ja) .hud-chip, :lang(zh) .hud-chip { letter-spacing: 0.04em; }
.hud-line { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--t3); }
.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--l300);
  box-shadow: 0 0 0 4px rgba(94, 242, 223, 0.14), 0 0 14px rgba(47, 217, 200, 0.7);
}
.fine-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; max-width: 64em; font-size: 14px; color: var(--t3); }
.fine-note glyph-fox { margin-top: 3px; color: var(--l300); }

/* ------------------------------------------------------------------ buttons */

.btn { font-weight: 500; letter-spacing: -0.005em; }
.btn-primary {
  --btn-shadow: 0 0 0 1px rgba(94, 242, 223, 0.5), 0 8px 30px -8px rgba(47, 217, 200, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(94, 242, 223, 0.7), 0 10px 40px -6px rgba(47, 217, 200, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-quiet {
  --btn-fg: var(--t1);
  --btn-border: var(--line-strong);
  --btn-hover: rgba(255, 255, 255, 0.06);
  --btn-press: rgba(255, 255, 255, 0.1);
}
.btn-quiet glyph-fox { color: var(--l300); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  background: rgba(7, 11, 21, 0.72);
  border-bottom: 1px solid var(--line-subtle);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-top { background: rgba(7, 11, 21, 0); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-bar { height: 100%; max-width: 1320px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 4px; margin-left: -4px; border-radius: 10px; }
.brand img { width: 124px; height: auto; }
.site-nav { gap: 2px; margin-left: 24px; }
.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--t2);
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.site-nav a:hover { color: var(--t1); background: rgba(255, 255, 255, 0.05); }
.site-nav a.is-current { color: var(--l100); background: rgba(94, 242, 223, 0.08); }
.header-cta { margin-left: 4px; }

/* details based menus: they work without JavaScript */
.lang-menu, .navmenu { position: relative; }
.lang-menu > summary, .navmenu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker, .navmenu > summary::-webkit-details-marker { display: none; }
.lang-button { --btn-fg: var(--t2); gap: 6px; }
.lang-button:hover { --btn-fg: var(--t1); }
.lang-short { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; }
.lang-caret { opacity: 0.7; transition: transform 0.2s var(--ease); }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-menu:not([open]) > .lang-list, .navmenu:not([open]) > .navmenu-panel { display: none; }
.lang-list, .navmenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  min-width: 232px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 17, 32, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--t2);
  text-decoration: none;
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.05); color: var(--t1); }
.lang-list a[aria-current] { color: var(--l100); }
.lang-list glyph-fox { color: var(--l300); }
.navmenu-button { --btn-fg: var(--t1); }
.navmenu .navmenu-close, .navmenu[open] .navmenu-open { display: none; }
.navmenu[open] .navmenu-close { display: inline-flex; }
.navmenu-panel { position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px; min-width: 0; padding: 10px; display: grid; gap: 2px; }
.navmenu-panel a:not(.btn) { padding: 13px 14px; border-radius: 12px; font-size: 17px; color: var(--t1); text-decoration: none; }
.navmenu-panel a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); }
.navmenu-cta { margin-top: 8px; height: 48px; }

/* ------------------------------------------------------------------ hero */

.sg-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 5vh, 64px));
  text-align: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(186, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, rgba(186, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 72% 55% at 50% 22%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 55% at 50% 22%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  pointer-events: none;
}
.sg-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -18vh;
  width: min(1100px, 120vw);
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 217, 200, 0.14), rgba(14, 150, 140, 0.05) 55%, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.6);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l100);
}
:lang(ja) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0.06em; }
.hero-title {
  margin-top: 28px;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.9rem, 1.3rem + 6vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--t1);
}
.hero-title .l1, .hero-title .l2 { display: block; }
/* languages with longer taglines step the display size down so each line holds */
:lang(de) .hero-title, :lang(it) .hero-title, :lang(es) .hero-title { font-size: clamp(2.5rem, 1rem + 5.2vw, 6.4rem); }
.hero-title .l2 {
  padding-bottom: 0.08em;
  background: linear-gradient(100deg, var(--l50) 10%, var(--l200) 45%, var(--l400) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 36em;
  margin-top: 24px;
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--t2);
  text-wrap: balance;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--t3); text-align: center; }

.hero-stage {
  position: relative;
  z-index: 1;
  height: clamp(440px, 60vw, 900px);
  margin-top: clamp(-200px, -11vw, -56px);
}
.hero-art { position: absolute; inset: 0; container-type: size; }
.hero-stage::before, .hero-stage::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-stage::before { top: 0; height: 30%; background: linear-gradient(var(--base) 8%, rgba(7, 11, 21, 0.75) 45%, rgba(7, 11, 21, 0)); }
.hero-stage::after { bottom: 0; height: 28%; background: linear-gradient(rgba(7, 11, 21, 0), var(--base)); }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mono { font-family: var(--ff-mono); }
.hero-light { transform-origin: calc(50% - 78 * var(--s)) calc(50% - 90 * var(--s)); }
.hero-art { --s: max(100cqw / 1600, 100cqh / 1000); }
.hero-glow {
  position: absolute;
  left: calc(50% - 78 * var(--s));
  top: calc(50% - 90 * var(--s));
  width: calc(520 * var(--s));
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(94, 242, 223, 0.22), rgba(47, 217, 200, 0.08) 45%, transparent 72%);
  opacity: 0.8;
  pointer-events: none;
}
.hero-motes { position: absolute; left: calc(50% - 78 * var(--s)); top: calc(50% - 90 * var(--s)); width: 0; height: 0; pointer-events: none; }
.hero-motes i {
  --r: calc((150 + var(--m) * 26) * var(--s));
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  rotate: calc(var(--m) * 47deg);
}
.hero-motes i::after {
  content: '';
  position: absolute;
  left: var(--r);
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--l200);
  box-shadow: 0 0 10px 2px rgba(94, 242, 223, 0.55);
  opacity: calc(0.25 + 0.08 * var(--m));
}
.hero-chips {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(16px, 4vw, 48px);
  translate: -50% 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
}

/* parts that scale or move during the intro and the scenes turn around their own center */
.hl-point, .hl-burst, .hl-dot, .hl-label, .tr-core, .tr-lens, .tr-hud, .sp-core, .sp-point, .sp-orbit, .sp-cursor,
.sp-act, .sp-person, .sp-context, .mk-dot, .mk-core, .ch-request, .ch-done { transform-box: fill-box; transform-origin: center; }

/* first paint under motion: the light waits for the intro (site.js). If the
   script never runs, a CSS fallback shows the finished drawing after 4 s. */
.motion .hero-light .seg, .motion .hero-light .hl-end, .motion .hero-light .hl-point, .motion .hero-marks > * {
  animation: hero-fallback 0.8s ease 4s both;
}
.motion.hero-js .hero-light .seg, .motion.hero-js .hero-light .hl-end, .motion.hero-js .hero-light .hl-point, .motion.hero-js .hero-marks > * { animation: none; }
@keyframes hero-fallback { from { opacity: 0; } to { opacity: 1; } }
.motion .hero-glow { animation: breathe 5.2s var(--ease-breath) infinite; }
.motion .hero-motes i { animation: orbit calc(48s + var(--m) * 9s) linear infinite; }
.motion .hero-motes i:nth-child(even) { animation-direction: reverse; }
.motion .hero-scene .hl-track { transform-box: fill-box; transform-origin: center; animation: blink 2.6s var(--ease-breath) infinite; }
.sg-hero.is-off .hero-glow, .sg-hero.is-off .hero-motes i, .sg-hero.is-off .hl-track { animation-play-state: paused; }
@keyframes breathe { 0%, 100% { opacity: 0.68; scale: 0.985; } 50% { opacity: 1; scale: 1.015; } }
@keyframes orbit { to { rotate: calc(var(--m) * 47deg + 360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ------------------------------------------------------------------ scenes */

.scene { position: relative; border-top: 1px solid var(--line-subtle); }
.scene .chapter-head { padding-bottom: clamp(32px, 4vw, 56px); }
.scene-track { position: relative; }
.scene-pin {
  display: grid;
  gap: 40px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
}
.scene-copy { position: relative; }
.beats { display: grid; gap: 28px; }
.beat-k {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l200);
}
.beat-h {
  margin-top: 12px;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.beat-p { margin-top: 14px; max-width: 30em; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.18rem); color: var(--t2); text-wrap: pretty; }
@media (min-width: 900px) {
  .scene-pin { grid-template-columns: 5fr 7fr; align-items: center; }
  .scene-pin > .scene-copy { order: -1; }
  .scenes-on .scene-pin { grid-template-columns: minmax(320px, 4fr) 8fr; gap: 56px; }
  .scenes-on .scene-stage { aspect-ratio: var(--arn, 1.6); width: min(100%, calc((100svh - var(--header-h) - 72px) * var(--arn, 1.6))); justify-self: center; }
  .scenes-on .beat-h { font-size: clamp(2rem, 1rem + 2.2vw, 3.2rem); }
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050913;
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -50px rgba(47, 217, 200, 0.28), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  pointer-events: none;
  opacity: 0.6;
  background:
    linear-gradient(var(--l300), var(--l300)) top left / 16px 1px no-repeat,
    linear-gradient(var(--l300), var(--l300)) top left / 1px 16px no-repeat,
    linear-gradient(var(--l300), var(--l300)) top right / 16px 1px no-repeat,
    linear-gradient(var(--l300), var(--l300)) top right / 1px 16px no-repeat,
    linear-gradient(var(--l300), var(--l300)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--l300), var(--l300)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--l300), var(--l300)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--l300), var(--l300)) bottom right / 1px 16px no-repeat;
}
.frame > img { display: block; width: 100%; height: auto; }
.scene-stage { aspect-ratio: 16 / 10; margin: 0; container-type: size; }
.scene-stage > img, .scene-stage > .scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-svg .sf-sora { font-family: var(--ff-display); }
.scene-svg .sf-inter { font-family: var(--ff-text); }
.scene-svg .sf-mono { font-family: var(--ff-mono); }
.stage-chip {
  --s: max(100cqw / 1600, 100cqh / 1000);
  position: absolute;
  z-index: 2;
  left: calc(50% + (var(--x, 800) - 800) * var(--s));
  top: calc(50% + (var(--y, 500) - 500) * var(--s));
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(94, 242, 223, 0.32);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.86);
  box-shadow: 0 0 24px rgba(47, 217, 200, 0.18);
  font-family: var(--ff-mono);
  font-size: clamp(10px, 0.5rem + 0.35vw, 12.5px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l100);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
  pointer-events: none;
}
.stage-chip.is-on { opacity: 1; }
.stage-chip-end { translate: -100% -50%; }
.stage-ask { color: var(--warn); border-color: rgba(255, 196, 107, 0.4); box-shadow: 0 0 28px rgba(255, 196, 107, 0.16); text-transform: none; letter-spacing: 0.02em; }
.stage-ask glyph-fox { color: var(--warn); }
.still .stage-chip, .no-js .stage-chip { display: none; }
@media (max-width: 899.98px) {
  .stage-chip, .stage-chip-end { left: 50%; top: auto; bottom: 7%; translate: -50% 0; max-width: 88%; white-space: normal; text-align: center; }
}

/* pinned scenes, turned on by site.js when motion is allowed */
.scenes-on .scene-track { height: calc(var(--len, 3) * 100svh); }
.scenes-on .scene-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: 1440px;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 32px;
  align-content: center;
}
.scenes-on .scene-pin .beats { position: relative; display: block; min-height: 15em; }
.scenes-on .beat {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.55s var(--ease), translate 0.55s var(--ease);
  pointer-events: none;
}
.scenes-on .beat.is-active { opacity: 1; translate: 0 0; pointer-events: auto; }
.scenes-on .scene-copy::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 1px;
  height: 13em;
  background: linear-gradient(var(--l300), var(--l300)) top / 100% calc(var(--p, 0) * 100%) no-repeat, var(--line);
}
@media (max-width: 899.98px) {
  .scenes-on .scene-pin { grid-template-rows: auto 1fr; align-content: start; gap: 24px; padding-top: calc(var(--header-h) + 12px); }
  .scenes-on .scene-stage { aspect-ratio: auto; width: 100%; height: min(46svh, 104vw); }
  .scenes-on .scene-pin .beats { min-height: 13em; }
  .scenes-on .scene-copy::before { display: none; }
  .scenes-on .beat-h { font-size: clamp(1.7rem, 1rem + 4vw, 2.4rem); }
}

/* the sign: the luminous mark draws itself */
.scene-sign { border-top: 0; }
.scene-sign { --len: 4; }
#how { --len: 3; --arn: 1.25; }
#sphere { --len: 3; --arn: 1.25; }
#voice { --len: 3.2; --arn: 1.6; }
.sign-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; }
.sign-halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid var(--line-subtle);
  background: radial-gradient(closest-side, rgba(47, 217, 200, 0.12), transparent 70%);
}
.sign-halo::before, .sign-halo::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(94, 242, 223, 0.12);
}
.sign-halo::after { inset: 30%; border-style: solid; border-color: rgba(186, 214, 255, 0.06); }
.mark-svg { position: relative; width: 78%; height: auto; overflow: visible; }
.mk-turn { transform-box: view-box; transform-origin: 120px 120px; }
.scene-sign .scene-copy { padding-top: 12px; }
@media (min-width: 900px) {
  .scenes-on .scene-sign .scene-pin { grid-template-columns: 6fr 6fr; }
  .scenes-on .scene-sign .sign-stage { width: min(100%, 64svh); }
}
@media (max-width: 899.98px) {
  .scenes-on .scene-sign .sign-stage { width: min(78vw, 40svh); }
}

/* ------------------------------------------------------------------ pipeline */

.pipeline { margin-top: 8px; padding-bottom: clamp(72px, 9vw, 120px); }
.pipeline-k { margin-bottom: 14px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.pipeline-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pipeline-row li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--t2);
  background: linear-gradient(rgba(255, 255, 255, 0.02), transparent);
}
.pipeline-row li + li { border-left: 1px solid var(--line); }
.pipeline-row li + li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--l300);
  border-right: 1px solid var(--l300);
  rotate: 45deg;
  background: var(--base);
}
.pipeline-row glyph-fox { color: var(--l300); }
@media (max-width: 899.98px) {
  .pipeline-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-row li:nth-child(odd) { border-left: 0; }
  .pipeline-row li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pipeline-row li + li::before { display: none; }
}

/* ------------------------------------------------------------------ gestures */

.explorer { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 1024px) { .explorer { grid-template-columns: 7fr 5fr; align-items: start; } }
.explorer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line-subtle);
  gap: 1px;
}
/* the cells left over in the last row get a quiet hatch, as on a blueprint */
.explorer-grid::after {
  content: '';
  grid-column: span 2;
  background: repeating-linear-gradient(-45deg, rgba(186, 214, 255, 0.05) 0 1px, transparent 1px 9px), var(--base);
}
@media (max-width: 559.98px) {
  .explorer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .explorer-grid::after { grid-column: span 1; }
}
.g-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 116px;
  padding: 16px 14px 14px;
  background: var(--base);
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  color: var(--t2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.g-tile glyph-fox { color: var(--t1); transition: color 0.2s var(--ease), filter 0.2s var(--ease); }
.g-tile:hover { background: #0B1222; color: var(--t1); }
.g-tile[aria-selected='true'] {
  background: radial-gradient(120% 90% at 20% 0%, rgba(94, 242, 223, 0.14), transparent 60%), #0B1424;
  color: var(--l100);
  box-shadow: inset 0 0 0 1px rgba(94, 242, 223, 0.45);
}
.g-tile[aria-selected='true'] glyph-fox { color: var(--l300); filter: drop-shadow(0 0 8px rgba(47, 217, 200, 0.6)); }
.g-tile:focus-visible { outline-offset: -3px; }
.explorer-panels { position: relative; }
@media (min-width: 1024px) { .explorer-panels { position: sticky; top: calc(var(--header-h) + 24px); } }
.g-panel {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(47, 217, 200, 0.1), transparent 70%), linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--surface);
}
.g-panel + .g-panel { margin-top: 16px; }
.g-panel-art {
  display: grid;
  place-items: center;
  height: 180px;
  border: 1px solid var(--line-subtle);
  border-radius: 14px;
  background:
    linear-gradient(to right, rgba(186, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, rgba(186, 214, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #060A14;
  color: var(--l200);
}
.g-panel-art glyph-fox { filter: drop-shadow(0 0 16px rgba(47, 217, 200, 0.45)); }
.g-panel-k { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); }
.g-panel-title { margin-top: 8px; font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; }
.g-panel-dl { display: grid; gap: 16px; margin: 18px 0 20px; }
.g-panel-dl dt { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--l200); }
.g-panel-dl dd { margin-top: 4px; color: var(--t2); }
:lang(ja) .g-panel-k, :lang(zh) .g-panel-k, :lang(ja) .g-panel-dl dt, :lang(zh) .g-panel-dl dt, :lang(ja) .beat-k, :lang(zh) .beat-k { letter-spacing: 0.06em; }

/* ------------------------------------------------------------------ sphere details */

.trio { display: grid; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio-cell { padding: 28px 26px 30px; background: linear-gradient(rgba(255, 255, 255, 0.02), transparent); }
.trio-cell + .trio-cell { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .trio-cell + .trio-cell { border-top: 0; border-left: 1px solid var(--line); } }
.trio dt { display: flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; }
.trio dt glyph-fox { color: var(--l300); }
.trio dd { margin-top: 12px; color: var(--t2); }

.states {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(70% 90% at 15% 50%, rgba(47, 217, 200, 0.09), transparent 70%), var(--surface);
}
@media (min-width: 900px) { .states { grid-template-columns: 4fr 8fr; } }
.states-stage { display: grid; place-items: center; aspect-ratio: 1; max-width: 300px; width: 100%; margin-inline: auto; }
.state-mark { width: 100%; height: auto; overflow: visible; }
.sm-halo { fill: rgba(47, 217, 200, 0.06); stroke: rgba(186, 214, 255, 0.08); stroke-width: 0.08; }
.sm-arc { stroke: var(--l200); stroke-width: 1.6; filter: drop-shadow(0 0 0.6px var(--l300)) drop-shadow(0 0 1.6px rgba(47, 217, 200, 0.7)); }
.sm-point { fill: #fff; filter: drop-shadow(0 0 1px var(--l200)) drop-shadow(0 0 2.4px var(--l400)); }
.sm-arcs, .sm-arc, .sm-point { transform-box: view-box; }
.sm-arcs { transform-origin: 12px 12px; }
.sm-t { transform-origin: 12px 7.3px; }
.sm-b { transform-origin: 12px 16.7px; }
.sm-point { transform-origin: 12px 12px; }
.sm-arc, .sm-point, .sm-arcs { transition: transform 0.45s var(--ease), opacity 0.45s var(--ease); }
.state-mark.is-listening .sm-arc { transform: rotate(8deg); }
.motion .state-mark.is-idle .sm-arcs, .motion .state-mark:not([class*='is-']) .sm-arcs { animation: breathe 5.2s var(--ease-breath) infinite; }
.motion .state-mark.is-listening .sm-arcs { animation: voice 1.2s linear infinite; }
.motion .state-mark.is-thinking .sm-arcs { animation: spin 1.6s linear infinite; }
.motion .state-mark.is-done .sm-point { animation: flare 0.32s var(--ease) 1; }
.state-mark.is-thinking .sm-arc { stroke: var(--l300); }
@keyframes voice { 0%, 100% { scale: 1; } 18% { scale: 1.035; } 34% { scale: 0.99; } 52% { scale: 1.05; } 70% { scale: 1.005; } 86% { scale: 1.03; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes flare { 0% { scale: 1; } 45% { scale: 1.25; } 100% { scale: 1; } }
.states-switch { flex-wrap: wrap; margin-top: 4px; max-width: 100%; }
.states-switch .segmented-item { cursor: pointer; }
.states-text { min-height: 3.4em; margin-top: 20px; font-size: 1.12rem; color: var(--t1); }
.states .hud-line { margin-top: 12px; }

/* ------------------------------------------------------------------ figures */

.figure { margin: clamp(40px, 5vw, 64px) 0 0; }
.figure figcaption, .fig-row { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; font-size: 14px; color: var(--t3); }
.fig-k { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--l200); white-space: nowrap; }

/* ------------------------------------------------------------------ profiles */

.profiles { display: grid; gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 1024px) { .profiles { grid-template-columns: 6fr 5fr; } }
.profiles-tabs { border: 1px solid var(--line); border-radius: 20px; padding: 10px; background: var(--surface); }
.profiles .tabs { gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-subtle); }
.profiles .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
}
.profiles .tab[aria-selected='true'] { color: #032824; }
.profiles .tab:focus-visible { outline-offset: 2px; }
.p-panel { padding: 18px 12px 8px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 10px; font-family: var(--ff-mono); font-size: 12px; color: var(--t3); }
.p-meta-k { letter-spacing: 0.1em; text-transform: uppercase; color: var(--l200); }
.bindings { width: 100%; border-collapse: collapse; }
.bindings tr + tr > * { border-top: 1px solid var(--line-subtle); }
.bindings th, .bindings td { padding: 13px 8px; text-align: left; vertical-align: middle; font-size: 15px; }
.bindings th { font-weight: 500; color: var(--t1); }
.bindings th > * { vertical-align: middle; }
.bindings th glyph-fox { margin-right: 12px; color: var(--l300); }
.bindings td { color: var(--t2); }
.p-note { margin: 10px 8px 6px; font-size: 13.5px; color: var(--t3); }
.code-frame { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #0A0F1C; }
.code-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-subtle); background: #0D1424; }
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3550; }
.code-file { font-family: var(--ff-mono); font-size: 12px; color: var(--t3); }
.code-frame pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; font-family: var(--ff-mono); font-size: 12px; line-height: 1.75; color: #D4D4D4; tab-size: 2; }
.tk-k { color: #9CDCFE; }
.tk-s { color: #CE9178; }
.tk-p { color: #D4D4D4; }
.code-note { padding: 14px 18px 18px; border-top: 1px solid var(--line-subtle); font-size: 13.5px; color: var(--t3); }

/* ------------------------------------------------------------------ voice demo */

.voice-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .voice-grid { grid-template-columns: 7fr 5fr; } }
.demo, .rule { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); background: var(--surface); }
.demo { background: radial-gradient(80% 60% at 10% 0%, rgba(47, 217, 200, 0.09), transparent 70%), var(--surface); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.demo-title { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.015em; }
.demo-request { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 18, 34, 0.6); font-size: 1.05rem; color: var(--t1); }
.demo-request glyph-fox { margin-top: 2px; color: var(--l300); }
.chain { display: grid; gap: 0; margin-top: 22px; }
.chain-node {
  position: relative;
  display: grid;
  grid-template-columns: 40px 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--t3);
  transition: color 0.3s var(--ease);
}
.chain-node + .chain-node::before {
  content: '';
  position: absolute;
  left: 19.5px;
  top: -10px;
  height: 20px;
  width: 1px;
  background: var(--line);
}
.node-orb {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), rgba(10, 20, 38, 0.9) 70%);
  color: var(--t3);
  transition: all 0.35s var(--ease);
}
.node-num { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--t3); }
.node-label { font-size: 15.5px; }
.chain-node.is-active { color: var(--t1); }
.chain-node.is-active .node-orb { border-color: rgba(94, 242, 223, 0.6); color: var(--l200); box-shadow: 0 0 0 4px rgba(94, 242, 223, 0.08), 0 0 22px rgba(47, 217, 200, 0.4); }
.chain-node.is-done { color: var(--t2); }
.chain-node.is-done .node-orb { border-color: rgba(94, 242, 223, 0.4); color: var(--l300); }
.chain-node.is-done + .chain-node::before, .chain-node.is-active::before { background: var(--l400); }
.chain-node.is-wait { color: var(--warn); }
.chain-node.is-wait .node-orb { border-color: rgba(255, 196, 107, 0.7); color: var(--warn); box-shadow: 0 0 0 4px rgba(255, 196, 107, 0.08), 0 0 22px rgba(255, 196, 107, 0.3); }
.chain-node.is-skip { color: var(--t3); text-decoration: line-through; text-decoration-color: rgba(127, 139, 161, 0.6); }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; min-height: 48px; }
.demo-timer { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; }
.demo-timer svg { position: absolute; inset: 0; rotate: -90deg; }
.demo-timer circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.demo-timer .demo-timer-run { stroke: var(--warn); stroke-dasharray: 100 100; transition: stroke-dashoffset 1s linear; }
.demo-timer b { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; color: var(--warn); }
.demo-status { margin-top: 16px; min-height: 1.6em; font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--l100); }
.demo-note { margin-top: 10px; font-size: 13.5px; color: var(--t3); }
.rule { background: radial-gradient(90% 60% at 100% 0%, rgba(255, 196, 107, 0.06), transparent 70%), var(--surface); }
.rule-title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.rule-list { display: grid; gap: 16px; margin-top: 24px; }
.rule-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--t2); }
.rule-list glyph-fox { margin-top: 3px; color: var(--l300); }

/* ------------------------------------------------------------------ privacy */

.chapter-privacy { background: radial-gradient(60% 40% at 50% 0%, rgba(47, 217, 200, 0.07), transparent 70%); }
.facts { display: grid; margin-top: 20px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: 26px 24px 28px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
@media (min-width: 768px) {
  .fact { border-top: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .fact + .fact { border-left: 1px solid var(--line); }
  .fact:nth-child(n + 3) { border-top: 0; }
}
.fact glyph-fox { color: var(--l300); }
.fact h3 { margin-top: 18px; font-family: var(--ff-display); font-weight: 400; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.3; }
.fact p { margin-top: 10px; font-size: 15px; color: var(--t2); }
.tiers { display: grid; gap: 28px; margin-top: 20px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
@media (min-width: 1100px) { .tiers { grid-template-columns: 4fr 8fr; align-items: center; } }
.tiers-title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
.tiers-text { margin-top: 14px; color: var(--t2); }
.tiers-control { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; margin-top: 26px; }
.tiers-label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.tiers-value { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 300; color: var(--l100); font-variant-numeric: tabular-nums; }
.tiers-control .range { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.tiers-ticks { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: 11px; color: var(--t3); padding-inline: 2px; }
.tiers-budget { grid-column: 1 / -1; margin-top: 12px; font-size: 14px; color: var(--t2); }
.tiers-budget b { font-family: var(--ff-mono); font-weight: 500; color: var(--l100); }
.tiers-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tiers-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.tiers-table th, .tiers-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.tiers-table thead th { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); border-bottom: 1px solid var(--line); }
.tiers-table tbody tr + tr > * { border-top: 1px solid var(--line-subtle); }
.tiers-table tbody th { font-weight: 500; }
.tiers-table td { color: var(--t2); }
.tiers-table .num { font-family: var(--ff-mono); font-size: 13px; white-space: nowrap; }
.tier-name { display: block; color: var(--t1); }
.tier-from { display: block; margin-top: 2px; font-family: var(--ff-mono); font-size: 11.5px; font-weight: 400; color: var(--t3); }
.tier-pick { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(94, 242, 223, 0.12); font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--l200); white-space: nowrap; }
.tiers-table tr { transition: background-color 0.25s var(--ease); }
.tiers-table tr.is-on { background: linear-gradient(90deg, rgba(94, 242, 223, 0.1), rgba(94, 242, 223, 0.02)); }
.tiers-table tr.is-on .tier-name { color: var(--l100); }

/* ------------------------------------------------------------------ platforms */

.platforms { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platform { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(rgba(255, 255, 255, 0.025), transparent 40%), var(--surface); }
.platform-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--l200); }
.platform-k glyph-fox { color: var(--l300); }
.platform-title { margin-top: 18px; font-family: var(--ff-display); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.025em; }
.platform-text { margin-top: 14px; color: var(--t2); }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--t1); }
.ticks glyph-fox { margin-top: 3px; color: var(--l300); }
.platform-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.platform-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.platform-table th, .platform-table td { padding: 16px 20px; text-align: left; }
.platform-table thead th { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--t3); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.platform-table tbody tr + tr > * { border-top: 1px solid var(--line-subtle); }
.platform-table tbody th { font-weight: 500; color: var(--t1); }
.yes, .part, .no { display: inline-flex; align-items: center; gap: 10px; }
.yes::before, .part::before, .no::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; }
.yes { color: var(--t1); }
.yes::before { background: var(--l300); box-shadow: 0 0 10px rgba(47, 217, 200, 0.6); }
.part { color: var(--t2); }
.part::before { border: 1.5px solid var(--l300); }
.no { color: var(--t3); }
.no::before { border: 1.5px solid var(--t3); background: transparent; }

/* ------------------------------------------------------------------ follow */

.chapter-follow { overflow: hidden; }
.follow-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 140vw);
  height: 640px;
  translate: -50% -42%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 217, 200, 0.16), rgba(14, 150, 140, 0.05) 55%, transparent);
  pointer-events: none;
}
.follow-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.follow-hint { margin-top: 18px; font-size: 14px; color: var(--t3); }
.milestones { display: grid; margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .milestones { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.milestone { position: relative; padding: 24px 22px 26px; }
.milestone + .milestone { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .milestone + .milestone { border-top: 0; border-left: 1px solid var(--line); } }
.milestone::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: transparent; }
.milestone.is-done::before { background: var(--l300); box-shadow: 0 0 16px rgba(47, 217, 200, 0.8); }
.milestone.is-next::before { background: linear-gradient(90deg, var(--l300), transparent); }
.ms-k { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.milestone.is-done .ms-k, .milestone.is-next .ms-k { color: var(--l200); }
.milestone h3 { margin-top: 14px; font-family: var(--ff-display); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.01em; }
.milestone p { margin-top: 8px; font-size: 14px; color: var(--t2); }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line-subtle); }
.site-footer .ruled { padding-block: 64px 40px; }
.foot-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand img { width: 136px; height: auto; }
.foot-tagline { margin-top: 18px; font-family: var(--ff-display); font-weight: 300; font-size: 1.3rem; color: var(--t1); }
.foot-built { margin-top: 10px; font-size: 14px; color: var(--t3); }
.foot-built a { color: var(--l200); text-decoration: underline; text-decoration-color: rgba(152, 251, 234, 0.35); text-underline-offset: 3px; }
.foot-built a:hover { text-decoration-color: var(--l200); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-k { margin-bottom: 4px; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.foot-col a { font-size: 14.5px; color: var(--t2); text-decoration: none; }
.foot-col a:hover { color: var(--t1); }
.foot-name { font-size: 15px; color: var(--t1); }
.foot-social { display: inline-flex; align-items: center; gap: 10px; }
.foot-langs { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-subtle); }
.foot-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-lang-list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--t2); text-decoration: none; }
.foot-lang-list a:hover { color: var(--t1); border-color: var(--line-strong); }
.foot-lang-list a[aria-current] { color: var(--l100); border-color: rgba(94, 242, 223, 0.4); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-subtle); font-size: 13px; color: var(--t3); }
.foot-top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); text-decoration: none; }
.foot-top-link:hover { color: var(--t1); }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 639.98px) {
  body { font-size: 16px; }
  .hero-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-chips { gap: 6px; bottom: 10px; max-width: calc(100vw - 24px); }
  .hero-chips .hud-chip { height: 28px; padding-inline: 10px; font-size: 10px; letter-spacing: 0.06em; }
  .hero-stage { height: 420px; }
  .g-tile { min-height: 100px; padding: 12px 10px; font-size: 12px; }
  .follow-ctas { flex-direction: column; align-items: stretch; }
}

/* the two wide tables become stacked rows on phones */
@media (max-width: 639.98px) {
  .platform-table-wrap, .tiers-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .platform-table, .tiers-table { min-width: 0; }
  .platform-table thead, .tiers-table thead { display: none; }
  .platform-table, .platform-table tbody, .platform-table tr, .platform-table th, .platform-table td,
  .tiers-table, .tiers-table tbody, .tiers-table tr, .tiers-table th, .tiers-table td { display: block; }
  .platform-table tr, .tiers-table tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
  .platform-table tr + tr, .tiers-table tr + tr { margin-top: 10px; }
  .platform-table tbody tr + tr > *, .tiers-table tbody tr + tr > * { border-top: 0; }
  .platform-table th, .platform-table td, .tiers-table th, .tiers-table td { padding: 4px 0; }
  .platform-table th, .tiers-table th { margin-bottom: 6px; }
  .platform-table td, .tiers-table td { display: flex; gap: 12px; align-items: baseline; }
  .platform-table td::before, .tiers-table td::before {
    content: attr(data-label);
    flex: none;
    min-width: 84px;
    font-family: var(--ff-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--t3);
  }
}

/* ------------------------------------------------------------------ reduced motion */

@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-motes { display: none; }
}
