/* =========================================================
   AI prepy — "Night Lab" (dark, default) + "Day Lab" (light)
   Instrument UI: volt (ready/correct), coral (errors caught).
   Theme contract: docs/design/theme-contract.md — <html data-theme>.
   Dark values live in :root; [data-theme="light"] overrides them.
   Rule: --volt is a FILL only (with --volt-ink text). Volt used as
   text/stroke/line/icon goes through --signal.
   ========================================================= */

@property --fw-p {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  /* logo (dark): open bowl on the ground, volt dot and "AI", coral "y" */
  --lg-counter: var(--bg);
  --lg-accent: var(--volt);
  --lg-coral: var(--coral);

  color-scheme: dark;

  /* rgb triplets for alpha mixes (theme-aware) */
  --bg-rgb: 8, 11, 16;
  --panel-rgb: 15, 21, 28;
  --ink-rgb: 196, 220, 240;   /* hairline / ink base on this ground */
  --volt-rgb: 207, 255, 58;   /* same in both themes: highlighter / wash fills */
  --signal-rgb: 207, 255, 58;
  --coral-rgb: 255, 91, 74;
  --shade-rgb: 0, 0, 0;
  --glow: 1;                  /* additive light: 1 on the night ground, 0 on paper (light swaps in strokes/shadows) */

  /* ground */
  --bg: #080b10;
  --bg-1: #0b0f15;
  --bg-2: #0e131a;
  --panel: #0f151c;
  --panel-2: #141b24;
  --line: rgba(196, 220, 240, 0.1);
  --line-2: rgba(196, 220, 240, 0.17);
  --line-3: rgba(196, 220, 240, 0.3);

  /* ink */
  --text: #eaf0f4;
  --text-2: #a7b2bd;
  --text-3: #808c98;
  --text-hi: #fff;

  /* signal */
  --volt: #cfff3a;
  --volt-ink: #0b0e05;
  --signal: #cfff3a;
  --volt-a08: rgba(207, 255, 58, 0.08);
  --volt-a14: rgba(207, 255, 58, 0.14);
  --volt-a28: rgba(207, 255, 58, 0.28);
  --volt-a50: rgba(207, 255, 58, 0.5);
  --coral: #ff5b4a;
  --coral-soft: #ff8576;
  --coral-text: var(--coral-soft);   /* coral as small text */
  --badge-ink: var(--volt-ink);       /* numerals on coral/volt mark badges */
  --coral-a12: rgba(255, 91, 74, 0.12);
  --coral-a24: rgba(255, 91, 74, 0.24);
  --coral-a45: rgba(255, 91, 74, 0.45);

  /* highlighter marks (ok / ready) */
  --hl: var(--volt-a14);
  --hl-edge: var(--volt-a50);
  --ul-h: 3px;     /* emphasis underline thickness (light: a highlighter band) */
  --ul-y: 100%;
  --fw-fill: rgba(207, 255, 58, 0.16);

  /* washes, overlays, textures */
  --wash-ghost: rgba(255, 255, 255, 0.02);
  --wash: rgba(255, 255, 255, 0.04);
  --wash-2: rgba(255, 255, 255, 0.07);
  --rim: rgba(255, 255, 255, 0.04);
  --rim-2: rgba(255, 255, 255, 0.015);
  --sheen: rgba(255, 255, 255, 0.55);
  --shimmer: rgba(255, 255, 255, 0.12);
  --scanline: rgba(255, 255, 255, 0.028);
  --scanline-soft: rgba(255, 255, 255, 0.022);
  --header-glass: rgba(8, 11, 16, 0.8);
  --focus-dim: rgba(8, 11, 16, 0.55);
  --pii-ink: #ffe1dc;
  --redact-1: rgba(196, 220, 240, 0.22);
  --redact-2: rgba(196, 220, 240, 0.12);

  /* component surfaces */
  --bubble-me: #e6ecf0;
  --bubble-me-ink: #0b0f14;
  --bubble-ai: rgba(20, 27, 36, 0.92);
  --chip-float: rgba(12, 16, 22, 0.85);
  --sheet-1: #131b24;
  --sheet-2: #0d1319;
  --wall-1: rgba(20, 27, 36, 0.5);
  --wall-2: rgba(11, 15, 21, 0.5);
  --cell: #0d1218;
  --cell-hi: #10161d;
  --case-1: #0f151c;
  --case-2: #0a0e13;
  --screen: #f2eee6;
  --dash-1: #0f151c;
  --dash-2: #0b1015;
  --pass-1: #111821;
  --pass-2: #0c1117;
  --mod-1: #10161d;
  --mod-2: #0c1116;
  --foot: #06080c;
  --shadow-soft: 0 1px 2px rgba(14, 24, 36, 0.06), 0 8px 24px rgba(14, 24, 36, 0.08);

  /* type */
  --f-sans: "Inter", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --f-disp: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1360px;
  --gut: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  interpolate-size: allow-keywords;
}

@media (max-width: 850px) {
  :root { --header-h: calc(60px + env(safe-area-inset-top, 0px)); }
}

/* ---------- light theme tokens ("Day Lab": cool paper, ink, volt as highlighter) ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  /* logo (light): HaL's refined logo colours */
  --lg-counter: #ffffff;
  --lg-accent: #507B0D;
  --lg-coral: #C2361C;

  --bg-rgb: 244, 246, 248;
  --panel-rgb: 255, 255, 255;
  --ink-rgb: 14, 24, 36;
  --signal-rgb: 74, 116, 0;
  --coral-rgb: 200, 52, 31;
  --shade-rgb: 14, 24, 36;
  --glow: 0;

  --bg: #f4f6f8;
  --bg-1: #eef1f4;
  --bg-2: #e8ecf0;
  --panel: #ffffff;
  --panel-2: #f3f5f8;
  --line: rgba(14, 24, 36, 0.1);
  --line-2: rgba(14, 24, 36, 0.16);
  --line-3: rgba(14, 24, 36, 0.28);

  --text: #0b1016;
  --text-2: #3b4652;
  --text-3: #5d6874;
  --text-hi: #000;

  --signal: #4a7400;
  --volt-a08: rgba(74, 116, 0, 0.08);
  --volt-a14: rgba(74, 116, 0, 0.14);
  --volt-a28: rgba(74, 116, 0, 0.28);
  --volt-a50: rgba(74, 116, 0, 0.5);
  --coral: #c8341f;
  --coral-soft: #e0533d;
  --coral-text: var(--coral);
  --badge-ink: #fff;
  --coral-a12: rgba(200, 52, 31, 0.12);
  --coral-a24: rgba(200, 52, 31, 0.24);
  --coral-a45: rgba(200, 52, 31, 0.45);

  --hl: rgba(207, 255, 58, 0.85);
  --hl-edge: rgba(74, 116, 0, 0.6);
  --ul-h: 0.42em;
  --ul-y: 92%;
  --fw-fill: rgba(207, 255, 58, 0.78);

  --wash-ghost: rgba(255, 255, 255, 0.72);
  --wash: rgba(14, 24, 36, 0.04);
  --wash-2: rgba(14, 24, 36, 0.06);
  --rim: rgba(255, 255, 255, 0.9);
  --rim-2: rgba(255, 255, 255, 0.6);
  --shimmer: rgba(255, 255, 255, 0.4);
  --scanline: transparent;
  --scanline-soft: transparent;
  --header-glass: rgba(244, 246, 248, 0.86);
  --focus-dim: rgba(14, 24, 36, 0.34);
  --pii-ink: #7d1d0f;
  --redact-1: rgba(14, 24, 36, 0.86);
  --redact-2: rgba(14, 24, 36, 0.7);

  --bubble-me: #0b1016;
  --bubble-me-ink: #f4f6f8;
  --bubble-ai: rgba(255, 255, 255, 0.96);
  --chip-float: rgba(255, 255, 255, 0.92);
  --sheet-1: #ffffff;
  --sheet-2: #f8fafb;
  --wall-1: rgba(255, 255, 255, 0.9);
  --wall-2: rgba(255, 255, 255, 0.62);
  --cell: #ffffff;
  --cell-hi: #f6faea;
  --case-1: #ffffff;
  --case-2: #eef1f4;
  --screen: #ffffff;
  --dash-1: #ffffff;
  --dash-2: #fbfcfd;
  --pass-1: #ffffff;
  --pass-2: #f7f9fa;
  --mod-1: #ffffff;
  --mod-2: #f9fafb;
  --foot: #e8ecf0;
}

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

html {
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss03";
}

html.menu-open, html.menu-open body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
mark { color: inherit; background: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--volt); color: var(--volt-ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 12px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: var(--r-s);
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ---------- iOS status-bar tint sampler ---------- */
.safari-chrome-sample {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 0;
  z-index: 2147483647;
  pointer-events: none;
  background-color: var(--bg);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    .safari-chrome-sample { height: 11px; }
    html[data-chrome-sample-refresh] .safari-chrome-sample { height: 12px; }
  }
}

/* ---------- atmosphere ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.scanlines,
.hero::after,
.dash::after,
.mon-scan {
  background-image: repeating-linear-gradient(to bottom, var(--scanline) 0 1px, transparent 1px 3px);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover .ic { transform: translateX(4px); }

.btn-volt {
  background: var(--volt);
  color: var(--volt-ink);
  box-shadow: 0 0 0 0 var(--volt-a28), 0 14px 40px -18px var(--volt-a50);
}
.btn-volt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, var(--sheen) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-volt:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--volt-a14), 0 22px 60px -18px var(--volt-a50); }
.btn-volt:hover::before { transform: translateX(120%); }
.btn-volt:active { transform: translateY(0); }

.btn-ghost {
  background: var(--wash-ghost);
  color: var(--text);
  border-color: var(--line-3);
}
.btn-ghost:hover { border-color: var(--volt-a50); background: var(--volt-a08); color: var(--text-hi); }

.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 16.5px; }
.btn-xl { --h: 64px; padding: 0 32px; font-size: 18px; border-radius: 14px; }

@media (pointer: coarse) { .btn-sm { --h: 44px; } }

.cta-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled {
  background-color: var(--header-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.hd-inner {
  height: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)) max(var(--gut), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.logo-lockup { width: 108px; height: auto; overflow: visible; }
.logo-ko {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}
.logo-ko::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 14px;
  margin-top: -7px;
  background: var(--line-2);
}

.hd-nav { margin-left: auto; }
.hd-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hd-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.hd-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--signal);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.hd-nav a:hover { color: var(--text); }
.hd-nav a[aria-current="true"] { color: var(--text); }
.hd-nav a[aria-current="true"]::after { transform: scale(1); }
.hd-cta { margin-left: 6px; }

.hd-menu {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.hd-menu span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.hd-menu span:first-child { top: 16px; }
.hd-menu span:last-child { top: 24px; right: 18px; }
.hd-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hd-menu[aria-expanded="true"] span:last-child { right: 12px; transform: translateY(-4px) rotate(-45deg); background: var(--signal); }

@media (max-width: 1080px) and (min-width: 851px) {
  .logo-ko { display: none; }
  .hd-nav a { font-size: 13.5px; }
}

@media (max-width: 850px) {
  .site-header,
  .site-header.is-scrolled {
    background-color: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom-color: var(--line);
  }
  .hd-inner { height: 60px; gap: 10px; }
  .logo-lockup { width: 95px; }
  .logo-ko { display: none; }
  .hd-nav { display: none; }
  .hd-cta { margin-left: auto; }
  .hd-menu { display: inline-block; }
}
@media (max-width: 400px) {
  .logo-lockup { width: 82px; }
  .hd-cta { padding: 0 12px; font-size: 13.5px; }
}

/* ---------- mobile menu ---------- */
.mnav { display: none; }
@media (max-width: 850px) {
  .mnav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 20px) max(var(--gut), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px));
    background-color: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }
  .mnav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(80% 50% at 100% 100%, var(--volt-a08), transparent 70%),
      repeating-linear-gradient(to bottom, var(--scanline-soft) 0 1px, transparent 1px 3px);
  }
  .mnav.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  .mnav nav, .mnav-foot { position: relative; }
  .mnav a:not(.btn) {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(28px, 8.4vw, 44px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-decoration: none;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s, color 0.2s;
  }
  .mnav li:nth-child(2) a { transition-delay: 0.04s; }
  .mnav li:nth-child(3) a { transition-delay: 0.08s; }
  .mnav li:nth-child(4) a { transition-delay: 0.12s; }
  .mnav li:nth-child(5) a { transition-delay: 0.16s; }
  .mnav.is-open a:not(.btn) { transform: none; opacity: 1; }
  .mnav a:not(.btn):active { color: var(--signal); }
  .mn-no { font-size: 12px; font-weight: 600; color: var(--signal); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
  .mnav-foot { margin-top: auto; padding-top: 32px; }
  .mnav-foot .btn { width: 100%; }
}

/* ---------- section scaffolding ---------- */
.sec {
  position: relative;
  padding-block: clamp(96px, 12vw, 176px);
  overflow-x: clip;
}
.sec-head { margin-bottom: clamp(44px, 6vw, 88px); }
.sec-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.sec-idx {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.sec-idx::after {
  content: "";
  flex: 0 1 220px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}
.sec-no {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--volt-a28);
  border-radius: 4px;
  color: var(--signal);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.sec-idx-sub { margin-bottom: 16px; }

.h-xl {
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.042em;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.h-lg {
  font-size: clamp(28px, 3.7vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.036em;
  font-weight: 780;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.sec-sub {
  margin-top: 24px;
  max-width: 38em;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
}

/* reveal (JS-gated, never hidden without JS or with reduced motion) */
html.js:not(.reduce) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.05s var(--ease-out);
}
html.js:not(.reduce) [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 128px;
  overflow: clip;
  background:
    radial-gradient(70% 60% at 78% 45%, rgba(var(--signal-rgb), 0.06), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(var(--coral-rgb), 0.05), transparent 70%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}

.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.hero.webgl-on .hero-canvas { opacity: 1; }

.stage-tag {
  position: absolute;
  right: max(var(--gut), env(safe-area-inset-right, 0px));
  top: calc(var(--header-h) + 18px);
  z-index: 4;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(var(--bg-rgb), 0.6);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.78) 30%, rgba(var(--bg-rgb), 0.2) 56%, transparent 70%),
    linear-gradient(to bottom, transparent 62%, var(--bg) 100%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: min(780px, 60%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(var(--panel-rgb), 0.7);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(var(--signal-rgb), var(--glow));
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(36px, 6.5vw, 104px);
  line-height: 1.03;
  letter-spacing: -0.048em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.kt { display: block; }
.kt-line { display: block; }
.kt em { font-style: normal; color: var(--signal); text-shadow: 0 0 40px rgba(var(--signal-rgb), calc(var(--glow) * 0.35)); }
.kt-w { display: inline-block; white-space: nowrap; }
.kt-c { display: inline-block; }
.kt-caret {
  display: inline-block;
  width: 0.09em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(var(--signal-rgb), calc(var(--glow) * 0.5));
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

html.js:not(.reduce) .kt { visibility: hidden; animation: failsafe 0s 2.6s forwards; }
html.js:not(.reduce) .kt.is-split { visibility: visible; animation: none; }
html.js:not(.reduce) .kt.is-split .kt-c {
  opacity: 0;
  transform: translateY(0.5em) rotate(6deg);
  filter: blur(10px);
  transition: opacity 0.7s var(--ease-out), transform 1.1s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: calc(var(--ci, 0) * 34ms + 140ms);
}
html.js:not(.reduce) .kt.is-in .kt-c { opacity: 1; transform: none; filter: none; }
@keyframes failsafe { to { visibility: visible; } }

.hero-en {
  margin-top: 22px;
  font-family: var(--f-disp);
  font-size: clamp(12.5px, 1.2vw, 17px);
  font-weight: 450;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.02em;
  color: var(--text-2);
  min-height: 1.6em;
}
.ty-c { display: inline; }
html.js:not(.reduce) [data-type]:not(.is-typing) { visibility: hidden; animation: failsafe 0s 2.6s forwards; }
html.js:not(.reduce) [data-type].is-typing .ty-c { opacity: 0; transition: opacity 0.01s; transition-delay: calc(var(--ti, 0) * 30ms + 1000ms); }
html.js:not(.reduce) [data-type].is-typing.is-in .ty-c { opacity: 1; }
.ty-caret {
  display: inline-block;
  width: 0.6em; height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--volt-a50);
  animation: caret 1.05s steps(1) infinite;
}

.hero-body {
  margin-top: 20px;
  max-width: 31em;
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--volt-a28);
  border-radius: 999px;
  background: var(--volt-a08);
  color: var(--signal);
  font-size: 13.5px;
  font-weight: 700;
}
.badge-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--signal);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 14px;
  margin-top: 22px;
}
.cta-stack { display: flex; flex-direction: column; }
.cta-stack .cta-note { padding-left: 4px; }

.hero-hud {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.hud-row { display: flex; align-items: center; gap: 18px; }
.hud-cue { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hud-cue i {
  position: relative;
  width: 1px; height: 28px;
  background: var(--line-2);
  overflow: hidden;
}
.hud-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 10px;
  background: var(--signal);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { from { transform: translateY(-10px); } to { transform: translateY(28px); } }
.hud-ruler {
  flex: 1;
  height: 8px;
  min-width: 0;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px) bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 120px) bottom / 100% 8px no-repeat;
  opacity: 0.8;
}
.hud-read { white-space: nowrap; color: var(--text-2); }

/* ---- hero CSS fallback (shown if WebGL is off; final state when motion is reduced) ---- */
.hero-fallback { position: absolute; inset: 0; }
html.js:not(.reduce) .hero-fallback { animation: fb-in 0.9s 3s both; }
@keyframes fb-in { from { opacity: 0; } to { opacity: 1; } }
html.js .hero.webgl-on .hero-fallback { opacity: 0; visibility: hidden; transition: opacity 0.8s, visibility 0s 0.8s; animation: none; }
html.js .hero.webgl-on .hero-fallback * { animation-play-state: paused; }

.fb-doc {
  position: absolute;
  right: max(var(--gut), 5vw);
  top: 50%;
  width: min(460px, 34vw);
  padding: 22px 26px 28px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--sheet-1) 0%, var(--sheet-2) 100%);
  box-shadow:
    0 50px 120px -40px rgba(var(--shade-rgb), 0.9),
    0 0 0 1px rgba(var(--signal-rgb), 0.05),
    0 0 90px -30px rgba(var(--signal-rgb), calc(var(--glow) * 0.18));
  transform: translateY(-48%) perspective(1400px) rotateY(-16deg) rotateX(5deg);
  overflow: hidden;
}
.fb-doc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
}
.fb-dot { width: 7px; height: 7px; background: var(--signal); box-shadow: 0 0 10px rgba(var(--signal-rgb), var(--glow)); }
.fb-doc-text { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.95; font-weight: 600; color: var(--text); }
.fb-doc .mk {
  padding: 2px 4px;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--hl);
  box-shadow: inset 0 0 0 1px var(--hl-edge), 0 0 24px -6px rgba(var(--signal-rgb), calc(var(--glow) * 0.5));
}
.fb-lines { display: grid; gap: 12px; margin-top: 22px; }
.fb-lines i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.fb-lines i:nth-child(1) { width: 92%; }
.fb-lines i:nth-child(2) { width: 76%; }
.fb-lines i:nth-child(3) { width: 84%; }
.fb-lines i:nth-child(4) { width: 52%; }
.fb-scan { display: none; }

.fb-float { position: absolute; inset: 0; }
.fb-bubble, .fb-chip {
  position: absolute;
  white-space: nowrap;
  font-weight: 600;
  will-change: transform;
}
.fb-bubble {
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 13.5px;
}
.fb-bubble.me { background: var(--bubble-me); color: var(--bubble-me-ink); border-bottom-right-radius: 4px; }
.fb-bubble.ai { background: var(--bubble-ai); color: var(--text); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.fb-chip {
  padding: 5px 10px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: var(--chip-float);
  color: var(--text-2);
  font-size: 12px;
}
.b1 { right: 30%; top: 22%; opacity: 0.9; }
.b2 { right: 5%;  top: 16%; opacity: 0.75; transform: scale(0.9); }
.b3 { right: 33%; bottom: 22%; opacity: 0.85; }
.b4 { right: 4%;  bottom: 13%; opacity: 0.7; transform: scale(0.88); }
.c1 { right: 44%; top: 38%; opacity: 0.55; }
.c2 { right: 2%;  top: 46%; opacity: 0.6; }
.c3 { right: 40%; bottom: 36%; opacity: 0.5; }
.c4 { right: 22%; top: 9%;  opacity: 0.55; }

html.js:not(.reduce) .fb-bubble, html.js:not(.reduce) .fb-chip { animation: bob 7s ease-in-out infinite; }
html.js:not(.reduce) .b2, html.js:not(.reduce) .c2 { animation-duration: 8.5s; animation-delay: -2s; }
html.js:not(.reduce) .b3, html.js:not(.reduce) .c3 { animation-duration: 9s; animation-delay: -4s; }
html.js:not(.reduce) .b4, html.js:not(.reduce) .c4 { animation-duration: 6.5s; animation-delay: -1s; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* animated marks + scan on the fallback doc (motion allowed only) */
html.js:not(.reduce) .fb-scan {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(var(--signal-rgb), 0) 80%, rgba(var(--signal-rgb), 0.16) 97%, rgba(var(--signal-rgb), 0.9) 99.4%, transparent 100%);
  animation: fb-scan 8s var(--ease-io) infinite;
}
@keyframes fb-scan {
  0% { transform: translateY(-100%); }
  10% { transform: translateY(-100%); }
  38% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
html.js:not(.reduce) .fb-doc .mk { animation: mk-cycle 8s linear infinite; }
html.js:not(.reduce) .fb-doc .m2 { animation-delay: 0.35s; }
html.js:not(.reduce) .fb-doc .m3 { animation-delay: 0.7s; }
@keyframes mk-cycle {
  0%, 16% { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
  19% { background: var(--coral-a45); box-shadow: inset 0 0 0 1px var(--coral), 0 0 30px -2px rgba(var(--coral-rgb), calc(var(--glow) * 0.45)); }
  40% { background: var(--coral-a24); box-shadow: inset 0 0 0 1px var(--coral), 0 0 20px -6px rgba(var(--coral-rgb), calc(var(--glow) * 0.45)); }
  46%, 88% { background: var(--hl); box-shadow: inset 0 0 0 1px var(--hl-edge), 0 0 24px -6px rgba(var(--signal-rgb), calc(var(--glow) * 0.5)); }
  100% { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
}

/* ---- hero responsive ---- */
@media (max-width: 1180px) and (min-width: 851px) {
  .hero-copy { max-width: 62%; }
  .fb-doc { width: min(400px, 36vw); right: 3vw; }
}

@media (max-width: 850px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 28px) 0 32px;
  }
  .hero-inner { order: 1; }
  .hero-copy { max-width: 100%; }
  .hero-title { font-size: clamp(34px, 9.6vw, 72px); margin-top: 20px; }
  .hero-stage {
    order: 2;
    position: relative;
    inset: auto;
    height: min(112vw, 560px);
    margin-top: 28px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  }
  .stage-tag { top: 14%; right: var(--gut); }
  /* the 3D sheet carries its own tag here; the overlay one would sit on top of it */
  .hero.webgl-on .stage-tag { display: none; }
  .hero-scrim { display: none; }
  .hero-hud { order: 3; position: relative; bottom: auto; margin-top: 4px; }
  .hud-ruler { display: none; }
  .hud-row { justify-content: space-between; }

  .fb-doc {
    right: auto;
    left: 50%;
    width: min(360px, 82vw);
    padding: 18px 20px 22px;
    transform: translate(-50%, -50%) perspective(1200px) rotateY(-8deg) rotateX(4deg);
  }
  .fb-doc-text { font-size: clamp(14.5px, 4vw, 17px); }
  .fb-bubble { font-size: 12.5px; padding: 8px 12px; }
  .b1 { right: auto; left: 4%; top: 6%; }
  .b2 { right: 3%; top: 15%; }
  .b3 { right: auto; left: 3%; bottom: 8%; }
  .b4 { right: 4%; bottom: 3%; }
  .c1 { right: auto; left: 8%; top: 24%; }
  .c2 { right: 6%; top: 28%; }
  .c3 { right: auto; left: 12%; bottom: 20%; }
  .c4 { right: 28%; top: 1%; }
}
@media (max-width: 420px) {
  .b2, .b4 { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* =========================================================
   WHY NOW
   ========================================================= */
.about {
  background:
    linear-gradient(to bottom, var(--bg), var(--bg-1) 40%, var(--bg));
}
.about { padding-top: clamp(80px, 9vw, 140px); }
.about .sec-head { margin-bottom: clamp(28px, 3.6vw, 56px); }
.about-grid { display: block; }
.about-copy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-copy .lead { grid-column: 1; }
.about-copy .redact { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.lead {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.lead + .lead { margin-top: 8px; }
.lead-dim { color: var(--text-2); }

.redact {
  display: grid;
  gap: 1px;
  margin-top: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: var(--line);
  overflow: hidden;
}
.redact-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
}
.redact dt { font-size: 13px; font-weight: 650; color: var(--text-2); }
.redact dd { display: flex; align-items: center; gap: 14px; min-width: 0; }
.redact-bar {
  flex: 1 1 auto;
  min-width: 40px;
  max-width: 180px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent, var(--shimmer), transparent) -100% 0 / 60% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--redact-1) 0 6px, var(--redact-2) 6px 8px);
}
html.js:not(.reduce) .redact-bar { animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { to { background-position: 220% 0, 0 0; } }
.redact-txt { font-size: 15px; font-weight: 700; color: var(--coral-text); white-space: nowrap; }

.wall {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--wall-1), var(--wall-2));
}
.wall::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  --c: var(--volt-a50);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat;
}
.wall-label { font-size: 13.5px; font-weight: 650; color: var(--text-2); margin-bottom: 20px; }
.wall-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.wall-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px) clamp(8px, 1.4vw, 20px) clamp(18px, 2.2vw, 30px) 0;
  background: var(--cell);
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color 0.3s, background-color 0.3s;
}
.wall-list [data-scramble] {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.wall-list [data-scramble].is-scrambling { color: transparent; }
.scr-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  pointer-events: none;
}
.wall-list li:hover { color: var(--signal); background: var(--cell-hi); }
.wall-no {
  flex: none;
  min-width: 2.2em;
  padding-left: clamp(8px, 1.4vw, 20px);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.wall-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-2);
}
.wall-note::before { content: ""; width: 6px; height: 6px; background: var(--text-3); }

.bridge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px clamp(18px, 2.4vw, 32px);
  align-items: start;
  margin-top: clamp(72px, 9vw, 128px);
  max-width: 1080px;
}
.bridge-mark {
  width: clamp(48px, 5vw, 72px);
  height: auto;
  color: var(--text);
  grid-row: span 2;
  filter: drop-shadow(0 0 18px rgba(var(--signal-rgb), calc(var(--glow) * 0.25)));
}
.bridge-line {
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.bridge-line strong { color: var(--signal); font-weight: inherit; }
.bridge-sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); max-width: 36em; }

@media (max-width: 1099px) {
  .about-copy { grid-template-columns: minmax(0, 1fr); }
  .about-copy .redact { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .wall-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-list li { font-size: clamp(20px, 2.8vw, 30px); }
  .wall-list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .wall { padding: 18px; }
  .wall-list { grid-template-columns: minmax(0, 1fr); }
  .wall-list li { font-size: clamp(22px, 6.6vw, 30px); padding-block: 16px; }
  .redact-row { grid-template-columns: 72px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .redact-bar { max-width: 90px; }
  .bridge { grid-template-columns: minmax(0, 1fr); }
  .bridge-mark { grid-row: auto; }
}

/* =========================================================
   METHOD — radar + 6 habits
   ========================================================= */
.method { background: var(--bg); }
.method::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 120px 100%;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(60% 50% at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 50% at 30% 40%, #000, transparent 75%);
}
.method .wrap { position: relative; }

.habits {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.radar-col { position: relative; }
@media (min-width: 851px) and (min-height: 640px) {
  .radar-col { position: sticky; top: calc(var(--header-h) + 5svh); }
}

.radar {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.radar-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar-sweep {
  position: absolute;
  inset: 13.2%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(var(--signal-rgb), 0.14) 358deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 18%, #000 30%, #000 98%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 18%, #000 30%, #000 98%, transparent 100%);
  opacity: 0;
  transition: opacity 1s;
}
.radar.is-in .radar-sweep { opacity: 1; }
html.js:not(.reduce) .radar-sweep { animation: spin 7s linear infinite; animation-play-state: paused; }
html.js:not(.reduce) .radar.is-live .radar-sweep { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.r-ticks { fill: none; stroke: var(--text-3); stroke-width: 8; stroke-dasharray: 0.4 4.6; opacity: 0.55; }
.r-ticks-major { fill: none; stroke: var(--text-2); stroke-width: 18; stroke-dasharray: 0.7 29.3; opacity: 0.7; }
.r-orbit { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 9; }
.r-hex { fill: none; stroke: var(--line-3); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.r-hex-1 { fill: rgba(var(--signal-rgb), 0.035); }
.r-hex-3 { stroke: rgba(var(--ink-rgb), 0.42); stroke-width: 2; }
.r-axes line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 4 6; }
.r-verts circle { fill: var(--bg); stroke: var(--text-2); stroke-width: 2; }
.r-core { fill: var(--signal); }
.r-active {
  transform: rotate(calc(var(--a, 0) * 60deg));
  transform-origin: 0 0;
  transition: transform 0.9s var(--ease-out);
}
.r-wedge { fill: rgba(var(--signal-rgb), 0.09); }
.r-needle { stroke: var(--signal); stroke-width: 2; }
.r-tip { fill: var(--signal); filter: drop-shadow(0 0 10px rgba(var(--signal-rgb), calc(var(--glow) * 0.9))); }
.r-tip-ring {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
}
html.js:not(.reduce) .r-tip-ring { animation: ring 2s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

/* draw-on (JS + motion only) */
html.js:not(.reduce) .radar .r-hex { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
html.js:not(.reduce) .radar .r-hex-2 { transition-delay: 0.2s; }
html.js:not(.reduce) .radar .r-hex-1 { transition-delay: 0.4s; }
html.js:not(.reduce) .radar.is-in .r-hex { stroke-dashoffset: 0; }
html.js:not(.reduce) .radar .r-ticks,
html.js:not(.reduce) .radar .r-ticks-major,
html.js:not(.reduce) .radar .r-axes,
html.js:not(.reduce) .radar .r-active,
html.js:not(.reduce) .radar .r-verts { opacity: 0; transition: opacity 1s 0.6s, transform 0.9s var(--ease-out); }
html.js:not(.reduce) .radar.is-in .r-ticks { opacity: 0.55; }
html.js:not(.reduce) .radar.is-in .r-ticks-major { opacity: 0.7; }
html.js:not(.reduce) .radar.is-in .r-axes,
html.js:not(.reduce) .radar.is-in .r-active,
html.js:not(.reduce) .radar.is-in .r-verts { opacity: 1; }

.radar-labels li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  transition: color 0.3s, background-color 0.3s;
}
.radar-labels b { font-size: 11px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.radar-labels li.is-on { color: var(--volt-ink); background: var(--volt); }
.radar-labels li.is-on b { color: var(--volt-ink); }

.radar-readout {
  position: absolute;
  left: 50%; bottom: -54px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-2);
}
.radar-readout b { color: var(--text); font-size: 15px; }

.habit-tag { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.habit-list { border-bottom: 1px solid var(--line); }
.habit {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 851px) and (min-height: 640px) {
  .habit { min-height: 32svh; align-content: center; }
}
.hx { grid-row: span 2; width: 40px; height: 40px; margin-top: 4px; overflow: visible; }
.hx polygon { fill: none; stroke: var(--line-3); stroke-width: 1.2; transition: stroke 0.3s; }
.hx-ax {
  stroke: var(--text-3);
  stroke-width: 2;
  transform: rotate(calc(var(--i) * 60deg));
  transform-origin: 0 0;
  transition: stroke 0.3s;
}
.habit-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.habit-name {
  grid-column: 2;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-2);
  transition: color 0.35s;
}
.habit-line {
  grid-column: 2;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-2);
}
.habit-ex {
  grid-column: 2;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-self: start;
  margin-top: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(var(--panel-rgb), 0.7);
  font-size: 14.5px;
  color: var(--text-2);
}
.habit-ex span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.habit.is-active .habit-name { color: var(--text); }
.habit.is-active .habit-no { color: var(--signal); }
.habit.is-active .hx polygon { stroke: var(--volt-a50); }
.habit.is-active .hx-ax { stroke: var(--signal); }
.habit.is-active .habit-ex { border-color: var(--volt-a28); }

/* US method */
.usm { margin-top: clamp(120px, 14vw, 200px); }
.usm-head { margin-bottom: clamp(28px, 4vw, 52px); }
.usm-list { border-bottom: 1px solid var(--line); }
.usm-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.3s;
}
.usm-row:hover { background: linear-gradient(90deg, rgba(var(--signal-rgb), 0.04), transparent 70%); }
.usm-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.usm-txt {
  font-size: clamp(21px, 2.7vw, 40px);
  font-weight: 760;
  letter-spacing: -0.032em;
  line-height: 1.3;
  color: var(--text-2);
}
.usm-txt b {
  color: var(--text);
  font-weight: inherit;
  background: linear-gradient(var(--volt), var(--volt)) 0 var(--ul-y) / 100% var(--ul-h) no-repeat;
  padding-bottom: 2px;
}
.strike { position: relative; color: var(--text-3); }
.strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 54%;
  height: 3px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(var(--coral-rgb), calc(var(--glow) * 0.45));
  transform-origin: left;
}
.usm-ok { width: 32px; height: 32px; color: var(--signal); justify-self: end; }
html.js:not(.reduce) .usm-row .usm-txt b { background-size: 0% var(--ul-h); transition: background-size 1s 0.35s var(--ease-out); }
html.js:not(.reduce) .usm-row.is-in .usm-txt b { background-size: 100% var(--ul-h); }
html.js:not(.reduce) .usm-row .strike::after { transform: scaleX(0); transition: transform 0.7s 0.25s var(--ease-out); }
html.js:not(.reduce) .usm-row.is-in .strike::after { transform: scaleX(1); }
html.js:not(.reduce) .usm-row .usm-ok { opacity: 0; transform: scale(0.6); transition: opacity 0.4s 0.9s, transform 0.6s 0.9s var(--ease-out); }
html.js:not(.reduce) .usm-row.is-in .usm-ok { opacity: 1; transform: none; }
.usm-src { margin-top: 26px; font-size: 14px; color: var(--text-2); max-width: 48em; }

@media (max-width: 850px) {
  .habits { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .radar { width: min(100%, 420px); }
  .radar-labels span { display: none; }
  .radar-labels li { font-size: 12px; padding: 3px 6px; }
  .radar-readout { bottom: -46px; }
}
@media (max-width: 559px) {
  .usm-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px 14px; }
  .usm-no { grid-column: 1 / -1; }
  .usm-ok { width: 26px; height: 26px; }
  .habit { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
  .hx { width: 32px; height: 32px; }
}

/* =========================================================
   FLOW — pinned story with live countdown
   ========================================================= */
.flow { padding-bottom: clamp(64px, 8vw, 120px); background: linear-gradient(to bottom, var(--bg), var(--bg-1)); }
.flow-head { margin-bottom: clamp(24px, 3vw, 40px); }
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 80px);
  align-items: center;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  grid-row: span 2;
  font-family: var(--f-disp);
  font-size: clamp(36px, 3.6vw, 60px);
  font-weight: 600;
  font-variation-settings: "wdth" 87.5;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text-3);
  transition: color 0.4s;
}
.step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-2);
  transition: color 0.4s;
}
.step-time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-2);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}
.step-desc { margin-top: 8px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); }
.step.is-active .step-no { color: var(--signal); text-shadow: 0 0 30px rgba(var(--signal-rgb), calc(var(--glow) * 0.35)); }
.step.is-active .step-title { color: var(--text); }
.step.is-active .step-time { border-color: var(--volt-a50); color: var(--signal); background: var(--volt-a08); }

/* monitor */
.monitor {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--case-1), var(--case-2));
  box-shadow: 0 60px 140px -50px rgba(var(--shade-rgb), 0.95), inset 0 1px 0 var(--rim);
}
.mon-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.mon-bar > :first-child { justify-self: start; }
.mon-rec { display: none; }
.mon-label { display: inline-flex; align-items: center; gap: 9px; }
.mon-label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(var(--coral-rgb), var(--glow));
}
html.js:not(.reduce) .mon-label::before { animation: caret 1.6s steps(1) infinite; }
.mon-timer {
  font-family: var(--f-disp);
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 600;
  font-variation-settings: "wdth" 87.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--signal);
  text-shadow: 0 0 24px rgba(var(--signal-rgb), calc(var(--glow) * 0.35));
}
.mon-step { justify-self: end; font-variant-numeric: tabular-nums; }
.mon-step b { color: var(--text); }
.mon-progress { height: 2px; margin: 0 2px 12px; background: var(--line); overflow: hidden; border-radius: 2px; }
.mon-progress span {
  display: block;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(var(--signal-rgb), var(--glow));
  transform: scaleX(0);
  transform-origin: left;
}

.mon-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--screen);
  aspect-ratio: 16 / 10;
}
.mon-strip { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mon-strip:focus-visible { outline-offset: -3px; }
.mon-shot {
  position: relative;
  width: 100%;
  transform-origin: 100% 55%;
  transition: transform 1.1s var(--ease-out);
}
.mon-shot img { width: 100%; height: auto; }
.mon-focus {
  position: absolute;
  left: 0.6%; top: 9.6%; width: 29.2%; height: 89.6%;
  border: 2px solid var(--signal);
  border-radius: 8px;
  box-shadow: 0 0 0 200vmax var(--focus-dim), 0 0 36px rgba(var(--signal-rgb), calc(var(--glow) * 0.45)), inset 0 0 24px rgba(var(--signal-rgb), calc(var(--glow) * 0.18));
  transition: left 0.9s var(--ease-out), top 0.9s var(--ease-out), width 0.9s var(--ease-out), height 0.9s var(--ease-out), opacity 0.5s;
  pointer-events: none;
}
.mon-focus-label {
  position: absolute;
  left: -2px; top: -2px;
  padding: 4px 9px;
  border-radius: 6px 0 6px 0;
  background: var(--volt);
  color: var(--volt-ink);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.monitor[data-step-now="1"] .mon-shot { transform: scale(1.1); }
.monitor[data-step-now="1"] .mon-focus { left: 30.4%; top: 9.6%; width: 69%; height: 89.6%; }
.monitor[data-step-now="2"] .mon-focus { opacity: 0; }

.mon-review {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0s 0.6s;
}
.monitor[data-step-now="2"] .mon-review { opacity: 1; visibility: visible; transition: opacity 0.6s; }
.rv-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.rv-pipe { display: grid; gap: 12px; min-width: min(360px, 100%); }
.rv-pipe li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(var(--panel-rgb), 0.92);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  color: var(--text);
}
.rv-pipe i {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--signal);
  background: radial-gradient(circle, var(--signal) 0 40%, transparent 42%);
}
.rv-pipe .rv-next { border-color: var(--volt-a50); box-shadow: 0 0 30px -8px rgba(var(--signal-rgb), calc(var(--glow) * 0.5)); }
.rv-pipe .rv-next i { background: none; border-style: dashed; }
html.js:not(.reduce) .rv-pipe .rv-next i { animation: spin 3s linear infinite; }
html.js:not(.reduce) .rv-pipe li { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
html.js:not(.reduce) .monitor[data-step-now="2"] .rv-pipe li { opacity: 1; transform: none; }
html.js:not(.reduce) .monitor[data-step-now="2"] .rv-pipe li:nth-child(2) { transition-delay: 0.15s; }
html.js:not(.reduce) .monitor[data-step-now="2"] .rv-pipe li:nth-child(3) { transition-delay: 0.3s; }

.mon-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}
.mon-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(var(--signal-rgb), 0.06) 85%, rgba(var(--signal-rgb), 0.22) 100%);
  transform: translateY(-100%);
}
html.js:not(.reduce) .mon-scan::after { animation: mon-scan 5s var(--ease-io) infinite; }
@keyframes mon-scan { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(340%); } }

.snap { display: none; }
.mon-hint { display: none; }
.mon-cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-left: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.cap-dot { width: 6px; height: 6px; background: var(--signal); }

/* pinned mode */
@media (min-width: 851px) and (min-height: 620px) {
  .flow-track { position: relative; height: 300svh; }
  .flow-sticky {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
  }
  .monitor {
    width: 100%;
    max-width: calc((100svh - var(--header-h) - 190px) * 1.6 + 26px);
    justify-self: end;
  }
}

/* stacked mode: phones, narrow or short screens */
@media (max-width: 850px), (max-height: 619px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .step .step-no { color: var(--signal); }
  .step .step-title { color: var(--text); }
}

@media (max-width: 850px) {
  .flow-grid > * { min-width: 0; }
  .monitor { padding: 10px; border-radius: 16px; }
  .mon-screen { aspect-ratio: auto; height: 420px; }
  .mon-strip {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-3) transparent;
  }
  .mon-shot {
    width: 700px;
    height: 420px;
    overflow: hidden;
    transform: none !important;
    scroll-snap-align: start;
  }
  .mon-shot img { width: 1000px; max-width: none; height: auto; margin-left: -300px; }
  .mon-focus, .mon-review { display: none; }
  .snap {
    display: block;
    position: absolute;
    top: 0;
    width: 1px; height: 1px;
    scroll-snap-align: start;
  }
  .snap-a { left: 360px; }
  .snap-b { left: 699px; }
  .mon-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-left: 4px;
    font-size: 13px;
    color: var(--text-2);
  }
  .mon-hint svg { width: 16px; height: 16px; color: var(--signal); }
  .mon-cap { margin-top: 8px; }
}

/* =========================================================
   REPORT — dark dashboard mock
   ========================================================= */
.report { background: var(--bg-1); }
.report::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 40% at 70% 30%, rgba(var(--coral-rgb), 0.06), transparent 70%), radial-gradient(40% 40% at 20% 80%, rgba(var(--signal-rgb), 0.05), transparent 70%);
}
.report .wrap { position: relative; }

.dash {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--dash-1), var(--dash-2));
  box-shadow: 0 80px 160px -60px rgba(var(--shade-rgb), 0.9), 0 0 0 1px var(--rim-2) inset;
  overflow: hidden;
}
.dash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.dash-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-mock {
  margin-left: auto;
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--volt-a28);
  border-radius: 4px;
  color: var(--signal);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pii-banner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--coral-a45);
  background: linear-gradient(90deg, rgba(var(--coral-rgb), 0.2), rgba(var(--coral-rgb), 0.08));
  color: var(--pii-ink);
  overflow: hidden;
}
.pii-stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(var(--coral-rgb), 0.13) 0 12px, transparent 12px 24px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
  mask-image: linear-gradient(90deg, #000, transparent 60%);
}
html.js:not(.reduce) .pii-stripes { animation: stripes 1.6s linear infinite; background-size: 34px 34px; }
@keyframes stripes { to { background-position: 34px 0; } }
.pii-ic { position: relative; width: 24px; height: 24px; color: var(--coral); flex: none; }
.pii-txt { position: relative; font-size: clamp(16px, 1.5vw, 20px); font-weight: 780; letter-spacing: -0.02em; }
.pii-hb {
  position: relative;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--coral-a45);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-text);
}
html.js:not(.reduce) .dash .pii-banner { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s 0.3s var(--ease-io); }
html.js:not(.reduce) .dash.is-in .pii-banner { clip-path: inset(0 0 0 0); }
html.js:not(.reduce) .dash.is-in .pii-ic { animation: blink2 0.5s 1.2s steps(2) 3; }
@keyframes blink2 { 50% { opacity: 0; } }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.tile {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--cell);
}
.t-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.t-label::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 12px; }

.tile-result { grid-column: 1 / span 4; }
.tile-draft { grid-column: 5 / span 8; grid-row: span 2; }
.tile-send { grid-column: 1 / span 4; }
.tile-legend { grid-column: 1 / span 5; }
.tile-habits { grid-column: 6 / span 7; }

.result-big {
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}
.result-big .hl { color: var(--signal); text-shadow: 0 0 40px rgba(var(--signal-rgb), calc(var(--glow) * 0.4)); }
.result-sub { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.result-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.rd-n {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
}
.rd.ok { border-color: var(--volt-a28); color: var(--signal); }
.rd.ok .rd-n { background: var(--volt); color: var(--volt-ink); }
.rd.miss .rd-n { border: 1.5px solid var(--coral); color: var(--coral-text); }

.draft {
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 2.05;
  letter-spacing: -0.015em;
  color: var(--text);
}
.mk {
  --mk-c: var(--coral);
  --mk-bg: var(--coral-a24);
  --mk-glow: var(--mk-c);
  position: relative;
  padding: 2px 5px;
  margin-inline: 1px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--mk-bg);
  box-shadow: inset 0 0 0 1px var(--mk-c), 0 0 22px -6px var(--mk-glow);
}
.mk-ok { --mk-c: var(--signal); --mk-bg: var(--hl); }
.draft .mk { white-space: nowrap; }
.mk-pii { --mk-bg: var(--coral-a12); box-shadow: inset 0 0 0 1px var(--mk-c), 0 0 22px -6px var(--mk-glow); outline: 1px dashed var(--coral-a45); outline-offset: 3px; }
.draft .mk::after {
  content: attr(data-n);
  position: absolute;
  top: -0.95em;
  right: -0.55em;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--mk-c);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
html.js:not(.reduce) .dash .draft .mk { background: transparent; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.5s, box-shadow 0.6s; }
html.js:not(.reduce) .dash .draft .mk::after { transform: scale(0); transition: transform 0.5s var(--ease-out); }
html.js:not(.reduce) .dash.is-in .draft .mk { background: var(--mk-bg); box-shadow: inset 0 0 0 1px var(--mk-c), 0 0 22px -6px var(--mk-glow); }
html.js:not(.reduce) .dash.is-in .draft .mk::after { transform: none; }
html.js:not(.reduce) .dash.is-in .draft .mk[data-n="1"], html.js:not(.reduce) .dash.is-in .draft .mk[data-n="1"]::after { transition-delay: 0.6s; }
html.js:not(.reduce) .dash.is-in .draft .mk[data-n="2"], html.js:not(.reduce) .dash.is-in .draft .mk[data-n="2"]::after { transition-delay: 0.9s; }
html.js:not(.reduce) .dash.is-in .draft .mk[data-n="3"], html.js:not(.reduce) .dash.is-in .draft .mk[data-n="3"]::after { transition-delay: 1.2s; }

.notes { margin-top: 26px; border-top: 1px solid var(--line); }
.note {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.note:last-child { border-bottom: 0; padding-bottom: 0; }
.note-n {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.note-ok .note-n { background: var(--volt); color: var(--volt-ink); }
.note-miss .note-n, .note-pii .note-n { border: 1.5px solid var(--coral); color: var(--coral-text); }
.note-q { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.5; }
.note-q b { font-weight: 750; }
.note-ok .note-q b { color: var(--signal); }
.note-miss .note-q b, .note-pii .note-q b { color: var(--coral-text); }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.st { font-size: 12.5px; font-weight: 700; }
.st-ok { color: var(--signal); }
.st-miss { color: var(--coral-text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip-me { border-color: var(--volt-a50); background: var(--volt-a08); color: var(--signal); }
.chip-ai { border-color: var(--line-3); background: var(--wash); color: var(--text); }
.chip-lost { border-color: var(--coral-a45); background: var(--coral-a12); color: var(--coral-text); }
.chip-pii { border-style: dashed; border-color: var(--coral-a45); color: var(--coral-text); }

.send-val { font-size: clamp(20px, 2vw, 28px); font-weight: 760; letter-spacing: -0.03em; }
.send-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}
.send-scale li {
  position: relative;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
}
.send-scale li.is-on { border-color: var(--line-3); background: var(--wash-2); color: var(--text); }
.send-scale li.is-on::before {
  content: "";
  position: absolute;
  left: 50%; top: -7px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom-color: var(--text);
  border-top: 0;
}

.legend { display: flex; flex-wrap: wrap; gap: 8px; }

.comments { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cm {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  background: var(--panel);
}
.cm p { grid-column: 1 / -1; font-size: 15.5px; color: var(--text); }
.cm-hb { font-size: 12px; font-weight: 650; color: var(--text-2); }
.cm-lbl {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.cm-good .cm-lbl { background: var(--volt); color: var(--volt-ink); }
.cm-next .cm-lbl { border: 1px solid var(--line-3); color: var(--text); }

.explain-wrap { margin-top: clamp(40px, 5vw, 72px); }
.explain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.explain li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.ex-no {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-bottom: 14px;
  border: 1px solid var(--line-3);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.explain h3 { font-size: clamp(18px, 1.5vw, 21px); font-weight: 760; letter-spacing: -0.02em; }
.explain p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.qnote {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 14px 20px 14px 16px;
  border: 1px solid var(--volt-a28);
  border-radius: 14px;
  background: var(--volt-a08);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 760;
  letter-spacing: -0.02em;
}
.qnote .ic { width: 24px; height: 24px; color: var(--signal); flex: none; }

@media (max-width: 1099px) {
  .tile-result { grid-column: 1 / span 6; }
  .tile-send { grid-column: 7 / span 6; }
  .tile-draft { grid-column: 1 / -1; grid-row: auto; order: 3; }
  .tile-legend { grid-column: 1 / -1; order: 4; }
  .tile-habits { grid-column: 1 / -1; order: 5; }
  .tile-result { order: 1; }
  .tile-send { order: 2; }
  .explain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tile-result, .tile-send { grid-column: 1 / -1; }
  .explain { grid-template-columns: minmax(0, 1fr); }
  .pii-hb { margin-left: 38px; }
  .dash-bar { padding: 12px 14px; }
  .dash-dots { display: none; }
}

/* =========================================================
   PILOT — mission pass
   ========================================================= */
.pilot { overflow: clip; background: var(--bg); }
.pilot-rings {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(1100px, 90vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.pilot-rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.pilot-rings i:nth-child(2) { inset: 14%; border-style: dashed; border-color: var(--line-2); }
.pilot-rings i:nth-child(3) {
  inset: 28%;
  border: 0;
  background: conic-gradient(from 0deg, var(--volt-a28) 0deg, transparent 60deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 97%, #000 98%, #000 100%);
  mask-image: radial-gradient(closest-side, transparent 97%, #000 98%, #000 100%);
}
html.js:not(.reduce) .pilot-rings i:nth-child(2) { animation: spin 80s linear infinite; }
html.js:not(.reduce) .pilot-rings i:nth-child(3) { animation: spin 9s linear infinite; }
.pilot .wrap { position: relative; }

.pass {
  --stub: clamp(260px, 28vw, 380px);
  position: relative;
  display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(var(--signal-rgb), 0.09), transparent 60%),
    linear-gradient(180deg, var(--pass-1), var(--pass-2));
  box-shadow: 0 80px 160px -60px rgba(var(--shade-rgb), 0.95);
}
.pass::before, .pass::after {
  content: "";
  position: absolute;
  left: calc(var(--stub) - 15px);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
}
.pass::before { top: -15px; clip-path: inset(50% 0 0 0); }
.pass::after { bottom: -15px; clip-path: inset(0 0 50% 0); }
.pass-stub {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px dashed var(--line-3);
}
.pass-k { font-size: 13px; font-weight: 650; color: var(--text-2); }
.pass-no {
  margin: 6px 0 18px;
  font-family: var(--f-disp);
  font-size: clamp(96px, 11vw, 176px);
  font-weight: 650;
  font-variation-settings: "wdth" 87.5;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--signal);
  text-shadow: 0 0 60px rgba(var(--signal-rgb), calc(var(--glow) * 0.3));
}
.pass-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pass-tags span {
  padding: 4px 11px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}
.pass-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--signal);
}
.pass-body { padding: clamp(26px, 3.4vw, 52px); min-width: 0; }
.pass-title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 780; letter-spacing: -0.03em; }
.pass-desc { margin-top: 12px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--text); line-height: 1.55; }
.pass-rows { margin-top: 28px; border-top: 1px solid var(--line); }
.pass-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pass-row dt { font-size: 13px; font-weight: 650; color: var(--text-2); padding-top: 2px; }
.pass-row dd { font-size: 16.5px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pass-hint {
  padding: 2px 9px;
  border: 1px solid var(--volt-a28);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--signal);
}
.pass-cta { margin-top: 32px; }

@media (max-width: 850px) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass::before, .pass::after { display: none; }
  .pass-stub { border-right: 0; border-bottom: 1px dashed var(--line-3); flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; }
  .pass-k { width: 100%; }
  .pass-no { margin: 0; font-size: clamp(80px, 24vw, 128px); }
  .pass-tags { margin-bottom: 8px; }
  .pass-live { width: 100%; margin-top: 8px; padding-top: 0; }
  .pass-cta { width: 100%; }
  .pilot-rings { right: -40vw; width: 120vw; top: 30%; }
}
@media (max-width: 480px) {
  .pass-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* =========================================================
   COMING NEXT
   ========================================================= */
.next { background: var(--bg-1); }
.next-note { font-size: 14px; color: var(--text-2); }
.mods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--mod-1), var(--mod-2));
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.mod:hover { border-color: var(--line-3); transform: translateY(-4px); }
.mod-wide { grid-column: span 2; }
.mod-st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
}
.mod-st i {
  width: 8px; height: 8px;
  border: 1.5px solid var(--text-3);
  border-radius: 2px;
}
html.js:not(.reduce) .mod-st i { animation: standby 2.4s ease-in-out infinite; }
@keyframes standby { 50% { border-color: var(--signal); box-shadow: 0 0 10px rgba(var(--signal-rgb), calc(var(--glow) * 0.5)); } }
.mod h3 { margin-top: auto; font-size: clamp(20px, 1.9vw, 28px); font-weight: 760; letter-spacing: -0.03em; line-height: 1.25; }
.mod p { font-size: 15px; color: var(--text-2); }
.mod-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

@media (max-width: 900px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-wide { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .mods { grid-template-columns: minmax(0, 1fr); }
  .mod { min-height: 0; }
}

/* =========================================================
   PRINCIPLES
   ========================================================= */
.trust { background: var(--bg); }
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.rule {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) clamp(8px, 2vw, 32px) clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.rule:nth-child(odd) { padding-right: clamp(20px, 3vw, 48px); }
.rule-ic {
  width: 44px; height: 44px;
  padding: 10px;
  border: 1px solid var(--volt-a28);
  border-radius: 10px;
  background: var(--volt-a08);
  color: var(--signal);
}
.rule p {
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.35;
  padding-top: 4px;
}
@media (max-width: 760px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .rule-ic { width: 40px; height: 40px; padding: 9px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--bg-1); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.faq-list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 740;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal); }
.qa-no { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; }
.qa-pm { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 8px; }
.qa-pm::before, .qa-pm::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.qa-pm::after { transform: rotate(90deg); }
.qa[open] .qa-pm { border-color: var(--volt-a50); color: var(--signal); }
.qa[open] .qa-pm::after { transform: rotate(0deg); }
.qa-a { padding: 0 40px 26px 60px; font-size: 16.5px; color: var(--text-2); line-height: 1.7; }
.qa::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

@media (max-width: 850px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq .sec-head { margin-bottom: 16px; }
  .qa summary { grid-template-columns: 36px minmax(0, 1fr) 28px; }
  .qa-a { padding: 0 0 24px 48px; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final {
  position: relative;
  isolation: isolate;
  padding-block: clamp(140px, 18vw, 260px);
  overflow: clip;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(var(--signal-rgb), 0.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.final-word {
  position: absolute;
  left: 50%; top: 50%;
  z-index: -1;
  display: flex;
  align-items: center;
  transform: translate(-50%, -54%);
  font-family: var(--f-disp);
  font-size: clamp(88px, 19vw, 380px);
  font-weight: 700;
  font-variation-settings: "wdth" 87.5;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.fw-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.22);
  background: linear-gradient(90deg, var(--fw-fill) 0 var(--fw-p), transparent var(--fw-p));
  -webkit-background-clip: text;
  background-clip: text;
  --fw-p: 100%;
}
html.js:not(.reduce) .final .fw-text { --fw-p: 0%; transition: --fw-p 2.4s var(--ease-io); }
html.js:not(.reduce) .final.is-in .fw-text { --fw-p: 100%; }
.fw-caret {
  width: 0.1em;
  height: 0.72em;
  margin-left: 0.04em;
  background: var(--signal);
  box-shadow: 0 0 40px rgba(var(--signal-rgb), calc(var(--glow) * 0.5));
  opacity: 0.85;
}
html.js:not(.reduce) .fw-caret { animation: caret 1.05s steps(1) infinite; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-title {
  font-size: clamp(30px, 4.8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(var(--bg-rgb), 0.9);
}
.final-cta { display: flex; flex-direction: column; align-items: center; margin-top: clamp(32px, 4vw, 48px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(56px, 6vw, 88px) 0 calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--foot);
}
.ft-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.logo-ft .logo-lockup { width: 130px; }
.logo-ft .logo-ko { display: inline; }
.ft-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ft-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
}
.ft-nav a:hover { color: var(--signal); }
.ft-notes { display: grid; gap: 8px; margin-top: 28px; }
.ft-notes li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.ft-notes li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; background: var(--text-3); }
.ft-copy { margin-top: 28px; font-size: 13px; color: var(--text-3); }

/* =========================================================
   THEME TOGGLE + per-theme assets
   ========================================================= */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  margin-left: -6px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--volt-a50); background: var(--volt-a08); color: var(--signal); }
.tt-ic { width: 20px; height: 20px; overflow: visible; }
.tt-sun, .tt-moon {
  transform-box: view-box;
  transform-origin: 12px 12px;
  transition: transform 0.55s var(--ease-out), opacity 0.25s;
}
.tt-moon { opacity: 0; transform: rotate(-70deg) scale(0.4); }
:root[data-theme="light"] .tt-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
:root[data-theme="light"] .tt-moon { opacity: 1; transform: none; }
@media (pointer: coarse) { .theme-toggle { width: 44px; height: 44px; } }
@media (max-width: 850px) { .theme-toggle { width: 44px; height: 44px; margin-left: 0; } }
@media (max-width: 400px) { .hd-inner { gap: 6px; } }

/* toggle swaps instantly: existing transitions are paused for one frame */
html.theme-swap *, html.theme-swap *::before, html.theme-swap *::after { transition: none !important; }

/* how-it-works screenshot: one capture per theme (no attribute = dark) */
.mon-img-light { display: none; }
:root[data-theme="light"] .mon-img-dark { display: none; }
:root[data-theme="light"] .mon-img-light { display: block; }

/* =========================================================
   LIGHT THEME — "Day Lab" treatments
   --glow is 0 here, so every additive halo collapses; each one
   that carried meaning is replaced below by an ink stroke, a
   volt highlighter fill (ink text on top) or a soft shadow.
   Tiny dot/caret halos collapse on purpose (solid --signal).
   ========================================================= */
:root[data-theme="light"] .grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* volt keys: ink edge + hard ink drop, like a physical key */
:root[data-theme="light"] .btn-volt {
  border-color: var(--text);
  box-shadow: 0 2px 0 0 var(--text), 0 14px 28px -18px rgba(var(--signal-rgb), 0.75);
}
:root[data-theme="light"] .btn-volt:hover { box-shadow: 0 4px 0 0 var(--text), 0 20px 36px -18px rgba(var(--signal-rgb), 0.65); }
:root[data-theme="light"] .btn-volt:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--text), 0 8px 18px -14px rgba(var(--signal-rgb), 0.6); }
:root[data-theme="light"] .btn-ghost { box-shadow: 0 1px 2px rgba(var(--shade-rgb), 0.06); }

/* hero: graph paper under the scene, a daylight volt wash behind the sheet */
:root[data-theme="light"] .hero {
  background:
    radial-gradient(60% 56% at 77% 46%, rgba(var(--volt-rgb), 0.3), transparent 70%),
    radial-gradient(44% 44% at 95% 96%, rgba(var(--coral-rgb), 0.07), transparent 70%),
    var(--bg);
}
:root[data-theme="light"] .hero-stage {
  background:
    linear-gradient(rgba(var(--ink-rgb), 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.06) 1px, transparent 1px) 0 0 / 56px 56px;
}
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .stage-tag { box-shadow: 0 1px 2px rgba(var(--shade-rgb), 0.06); }
:root[data-theme="light"] .kt em {
  color: var(--text);
  background: linear-gradient(var(--volt), var(--volt)) 0 88% / 100% 0.46em no-repeat;
}
html.js:not(.reduce)[data-theme="light"] .kt em { background-size: 0% 0.46em; }
html.js:not(.reduce)[data-theme="light"] .kt.is-in em { background-size: 100% 0.46em; transition: background-size 0.9s 1.15s var(--ease-out); }

/* CSS / no-WebGL hero: paper sheet with a lifted shadow */
:root[data-theme="light"] .fb-doc {
  box-shadow:
    0 1px 2px rgba(var(--shade-rgb), 0.06),
    0 44px 90px -36px rgba(var(--shade-rgb), 0.3);
}
:root[data-theme="light"] .fb-bubble,
:root[data-theme="light"] .fb-chip { box-shadow: var(--shadow-soft); }

/* about */
:root[data-theme="light"] .wall,
:root[data-theme="light"] .redact { box-shadow: var(--shadow-soft); }

/* method: radar reads like a plotted instrument on paper */
:root[data-theme="light"] .r-hex-1 { fill: rgba(var(--volt-rgb), 0.2); }
:root[data-theme="light"] .r-wedge { fill: rgba(var(--volt-rgb), 0.38); }
:root[data-theme="light"] .r-tip { fill: var(--volt); stroke: var(--signal); stroke-width: 3; }
:root[data-theme="light"] .radar-sweep { background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(var(--volt-rgb), 0.42) 358deg, transparent 360deg); }
:root[data-theme="light"] .habit.is-active .habit-ex { box-shadow: var(--shadow-soft); }

/* flow */
:root[data-theme="light"] .step-no { align-self: start; }
:root[data-theme="light"] .step.is-active .step-time { background: var(--panel); }
:root[data-theme="light"] .step.is-active .step-no { color: var(--text); background: linear-gradient(var(--volt), var(--volt)) 0 86% / 100% 0.34em no-repeat; }
@media (max-width: 850px), (max-height: 619px) {
  :root[data-theme="light"] .step .step-no { color: var(--text); background: linear-gradient(var(--volt), var(--volt)) 0 86% / 100% 0.34em no-repeat; }
}
:root[data-theme="light"] .monitor {
  box-shadow:
    0 1px 2px rgba(var(--shade-rgb), 0.06),
    0 56px 110px -54px rgba(var(--shade-rgb), 0.36),
    inset 0 1px 0 var(--rim);
}
:root[data-theme="light"] .mon-timer {
  padding: 4px 10px 5px;
  border-radius: 8px;
  background: var(--volt);
  color: var(--volt-ink);
  box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), 0.55);
}
:root[data-theme="light"] .mon-focus { box-shadow: 0 0 0 200vmax var(--focus-dim), 0 0 0 4px rgba(var(--volt-rgb), 0.8); }
:root[data-theme="light"] .mon-scan::after { background: linear-gradient(to bottom, transparent, rgba(var(--volt-rgb), 0.16) 88%, rgba(var(--signal-rgb), 0.7) 99%, transparent 100%); }
:root[data-theme="light"] .rv-pipe li { box-shadow: var(--shadow-soft); }

/* report */
:root[data-theme="light"] .dash {
  box-shadow:
    0 1px 2px rgba(var(--shade-rgb), 0.06),
    0 64px 120px -64px rgba(var(--shade-rgb), 0.32);
}
:root[data-theme="light"] .result-big .hl {
  color: var(--volt-ink);
  background: linear-gradient(var(--volt), var(--volt)) 0 74% / 100% 0.6em no-repeat;
}
:root[data-theme="light"] .mk { --mk-glow: transparent; }
:root[data-theme="light"] .draft .mk-ok::after { background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 0 0 1.5px var(--signal); }
:root[data-theme="light"] .rd.ok .rd-n,
:root[data-theme="light"] .note-ok .note-n,
:root[data-theme="light"] .cm-good .cm-lbl,
:root[data-theme="light"] .radar-labels li.is-on,
:root[data-theme="light"] .mon-focus-label { box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), 0.55); }
:root[data-theme="light"] .chip-lost { background: rgba(var(--coral-rgb), 0.07); }

/* pilot: the pass number is a printed volt sticker */
:root[data-theme="light"] .pass {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(var(--volt-rgb), 0.34), transparent 60%),
    linear-gradient(180deg, var(--pass-1), var(--pass-2));
  box-shadow:
    0 1px 2px rgba(var(--shade-rgb), 0.06),
    0 64px 120px -64px rgba(var(--shade-rgb), 0.32);
}
:root[data-theme="light"] .pass-no {
  color: var(--volt);
  -webkit-text-stroke: 3px var(--text);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--text);
}

/* next */
:root[data-theme="light"] .mod { box-shadow: 0 1px 2px rgba(var(--shade-rgb), 0.05); }
:root[data-theme="light"] .mod:hover { box-shadow: var(--shadow-soft); }

/* final: a highlighter sweeps across the outlined word */
:root[data-theme="light"] .final {
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(var(--volt-rgb), 0.2), transparent 70%),
    var(--bg);
}
:root[data-theme="light"] .fw-text {
  -webkit-text-stroke: 1.5px rgba(var(--ink-rgb), 0.24);
  background-size: 100% 0.4em;
  background-position: 0 66%;
  background-repeat: no-repeat;
}

/* =========================================================
   Reduced motion: everything static
   ========================================================= */
html.reduce, html.reduce body { scroll-behavior: auto; }
html.reduce *, html.reduce *::before, html.reduce *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-canvas { display: none; }
}
