/* Okaeri home page · "Genkan Pop" (docs/HOME_REDESIGN.md).
 * The page is one afternoon: bright paper at 15:40, gold around うんどう, dusk from "How it works" on.
 * Structure and craft follow RoleEdge's home page (badge, rising headline, two-tone headings, numbered eyebrows,
 * pinned chapters, pipeline, model card, compare, roadmap); the playfulness follows miko.ai (a big character cut-out,
 * blobs, cloud bands, bubbles, rounded cards). Colours extend the tablet's palette in style.css. */

:root {
  --paper: #fbf7f0;
  --paper-2: #f6efe3;
  --card: #fffdf9;
  --ink: #2b2620;
  --cocoa: #5b3a1e;
  --soft: #7a6e62;
  --muted: #6f665d;
  --line: #eadfcf;
  --sun: #ffc94a;
  --sun-deep: #f5b82e;
  --carrot: #e07a3f;
  --carrot-text: #a3501f;
  --comb: #e5484d;
  --peach: #ffe9dc;
  --sky: #bfe0ff;
  --sky-ink: #3d8bd9;
  --leaf: #cdebc4;
  --leaf-ink: #3e9b4f;
  --lilac: #e4ddff;
  --gold: #fff3d6;
  --dusk: #232742;
  --dusk-2: #2b3050;
  --dusk-card: #2f3456;
  --dusk-line: #41466b;
  --on-dusk: #fbf7f0;
  --dusk-soft: #9a8fb8;
  --dusk-muted: #b9b3d3;

  /* who decides (docs/architecture-map.html) */
  --code: #2a5b8e; --code-t: #e3edf8; --code-d: #88b7e7; --code-dt: #14253a;
  --model: #9c5a00; --model-t: #fff0d3; --model-d: #f2ad4a; --model-dt: #362710;
  --ours: #2d7649; --ours-t: #e1f2e7; --ours-d: #76c997; --ours-dt: #12291b;
  --alert: #b3261e; --alert-t: #fbe4e2; --alert-d: #f28b82; --alert-dt: #391613;

  --f-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", ui-rounded, system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --shadow: 0 10px 30px -12px rgb(91 58 30 / .28);
  --shadow-lift: 0 22px 44px -16px rgb(91 58 30 / .38);
  --shadow-dusk: 0 18px 40px -18px rgb(0 0 0 / .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--f-mono); font-size: .86em; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--sun) 55%, white); }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── buttons, chips, eyebrows ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 1.5em;
  border-radius: var(--r-pill); border: 2px solid transparent; text-decoration: none;
  font: 700 1rem/1 var(--f-display); letter-spacing: .01em; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease), background-color .2s;
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 -1px var(--sun-deep), var(--shadow); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px var(--sun-deep), var(--shadow-lift); }
.btn--sun:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px var(--sun-deep), var(--shadow); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--on-dusk { background: transparent; color: var(--on-dusk); border-color: color-mix(in oklab, var(--on-dusk) 55%, transparent); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .9375rem; box-shadow: 0 4px 0 -1px var(--sun-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  justify-self: start; width: fit-content;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: var(--card); border: 1.5px solid var(--line); font: 700 .875rem/1 var(--f-display); color: var(--cocoa);
}
.ey-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .75rem; }
.ey-t { font-family: var(--f-mono); font-size: .78rem; color: var(--carrot-text); padding-left: 6px; }
.eyebrow--dusk { background: var(--dusk-card); border-color: var(--dusk-line); color: var(--on-dusk); }
.eyebrow--dusk .ey-n { background: var(--sun); color: var(--ink); }

.sec { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.sec-head { max-width: 760px; display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2, .undou-text h2, .song-text h2, .cta h2 { font-weight: 700; font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); color: var(--cocoa); text-wrap: balance; }
.soft { color: var(--soft); }
.lead { font-size: clamp(1.0625rem, .35vw + 1rem, 1.3rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 36px; color: var(--muted); font-size: .9375rem; max-width: 70ch; }
.note .i { margin-top: .25em; color: var(--code); }
.kana { display: inline-block; font-weight: 900; font-size: 1.25em; line-height: 1; transform: translateY(.04em) rotate(-4deg); margin-right: .02em; }
.k1 { color: var(--carrot); } .k2 { color: var(--comb); } .k3 { color: var(--sky-ink); } .k4 { color: var(--leaf-ink); }

/* ── speech bubbles ─────────────────────────────────────────────────────── */
.bubble, .b {
  position: relative; display: grid; gap: 2px; width: fit-content; max-width: 100%;
  padding: 12px 18px; border-radius: 22px; background: #fff; border: 2px solid var(--ink);
  font: 700 1.05rem/1.4 var(--f-display); color: var(--ink); box-shadow: 0 6px 0 -2px rgb(43 38 32 / .12);
}
.bubble small, .b small { font: 400 .8125rem/1.35 var(--f-body); color: var(--muted); }
.b--kid { background: var(--sky); border-bottom-left-radius: 6px; }
.b--chick { margin-left: auto; border-bottom-right-radius: 6px; }
.b--xl { font-size: clamp(1.4rem, 2vw + .8rem, 2.2rem); padding: 18px 26px; }
.b--xl small { font-size: .95rem; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, color .4s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top[data-theme="dusk"] { background: color-mix(in oklab, var(--dusk) 86%, transparent); color: var(--on-dusk); border-bottom-color: var(--dusk-line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mini { width: 40px; height: 40px; flex: none; }
.mini svg { width: 100%; height: 100%; overflow: visible; }
.eye { fill: var(--ink); transition: transform .12s linear; }
.mini .eyes { transform-box: fill-box; transform-origin: center; transition: transform .07s linear; }
.mini.blink .eyes { transform: scaleY(.12); }
.mark-ja { font: 900 1.4rem/1 var(--f-display); letter-spacing: .02em; }
.mark-en { font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top[data-theme="dusk"] .mark-en { color: var(--dusk-muted); }
.top-nav { display: flex; gap: 4px; margin-inline: auto; }
.top-nav a { padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; font: 700 .9375rem/1 var(--f-display); color: inherit; opacity: .82; transition: background-color .2s, opacity .2s; }
.top-nav a:hover { opacity: 1; background: color-mix(in oklab, currentColor 9%, transparent); }
.top-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.top-nav + .top-end { margin-left: 0; }
.clock {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1.5px solid currentColor; font: 600 .875rem/1 var(--f-mono); opacity: .85;
}
#clock { display: inline-block; min-width: 5ch; }
#clock.flip { animation: flip .32s var(--ease); }
@keyframes flip { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-60%); opacity: 0; } 55% { transform: translateY(60%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px);
  background: radial-gradient(1100px 600px at 78% 30%, color-mix(in oklab, var(--sun) 26%, transparent), transparent 70%), var(--paper); }
.bg-kana {
  position: absolute; left: -2vw; bottom: -6vw; z-index: 0; pointer-events: none; user-select: none;
  font: 900 28vw/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px color-mix(in oklab, var(--carrot) 22%, transparent);
  white-space: nowrap; letter-spacing: -.02em;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 26px; justify-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none;
  background: var(--card); border: 1.5px solid var(--line); font: 700 .875rem/1 var(--f-display); color: var(--ink); box-shadow: 0 2px 0 var(--line);
}
.badge .sep { width: 1px; height: 14px; background: var(--line); }
.badge .i { width: 15px; height: 15px; color: var(--muted); transition: transform .2s; }
.badge:hover .i { transform: translateX(3px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px rgb(47 179 107 / .18); flex: none; }
.display { font-weight: 900; font-size: clamp(2.4rem, 3.5vw + 1rem, 4.6rem); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.display .soft { display: block; color: var(--soft); font-weight: 700; }
.ja-hi { position: relative; color: var(--carrot); white-space: nowrap; }
.ja-hi::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.06em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10c20-8 34 6 54-2s34 6 54-1 34 6 54-1 22 4 34 1' fill='none' stroke='%23ffc94a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}
.rot { display: inline-flex; overflow: hidden; vertical-align: bottom; transition: width .45s var(--ease); white-space: nowrap; }
.rot-w { display: inline-block; }
.rot-w.out { animation: rot-out .38s var(--ease) forwards; }
.rot-w.in { animation: rot-in .45s var(--ease); }
@keyframes rot-out { to { transform: translateY(-105%); opacity: 0; } }
@keyframes rot-in { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9375rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .i { color: var(--leaf-ink); }

/* split headline: words rise one by one */
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); }
.js [data-split].in .w { opacity: 1; transform: none; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.04; max-width: 600px; width: 100%; justify-self: center; }
.sun-blob { position: absolute; inset: 6% 0 4% 4%; background: var(--sun); clip-path: url(#blob-a); opacity: .9; animation: wobble 14s ease-in-out infinite alternate; }
@keyframes wobble { to { transform: rotate(6deg) scale(1.03); } }
.arch {
  position: absolute; left: 14%; right: 8%; top: 4%; bottom: 12%; overflow: hidden;
  border-radius: 999px 999px 36px 36px; border: 6px solid var(--card);
  background: url("/static/genkan.svg") center bottom / cover no-repeat, linear-gradient(#f3e6d4, #e9d6bd);
  box-shadow: 0 0 0 2px var(--ink), var(--shadow-lift);
}
.arch-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .5s; }
.arch.has-video .arch-video { opacity: 1; }
.arch-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease), transform .55s var(--ease); transform: scale(.98); }
.arch-scene.on { opacity: 1; transform: none; }
.arch.has-video .arch-scene[data-scene="home"] { opacity: 0; }
.arch-chick { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; }
.arch-scene.on .arch-chick { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-1.5%); } }
.arch-chick.fallback { height: 100%; width: 100%; left: 0; transform: none; object-fit: cover; animation: none !important; }
.sheet { position: absolute; left: 6%; bottom: 8%; width: 40%; border-radius: 8px; border: 4px solid #fff; transform: rotate(-8deg); box-shadow: var(--shadow); }
.score { position: absolute; right: 8%; top: 30%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); border: 3px solid var(--ink); font: 900 2rem/1 var(--f-display); transform: rotate(8deg); }
.score small { font-size: .9rem; margin-left: 2px; }
.count-pop { position: absolute; left: 50%; top: 18%; transform: translateX(-50%) rotate(-4deg); padding: 8px 18px; border-radius: var(--r-pill); background: var(--sun); border: 3px solid var(--ink); font: 900 1.4rem/1 var(--f-display); white-space: nowrap; }
.doors { position: absolute; inset: 0; display: flex; pointer-events: none; }
.door { flex: 1; background:
  linear-gradient(90deg, transparent 47%, rgb(91 58 30 / .35) 47% 53%, transparent 53%) 0 0 / 100% 100%,
  repeating-linear-gradient(0deg, transparent 0 22%, rgb(91 58 30 / .45) 22% calc(22% + 3px)),
  #f1e2c8;
  border: 3px solid #b9875b; transition: transform .8s var(--ease); }
.door--l { border-right-width: 2px; }
.door--r { border-left-width: 2px; }
.doors.open .door--l { transform: translateX(-102%); }
.doors.open .door--r { transform: translateX(102%); }
.no-js .doors, .reduce .doors { display: none; }
.hero-bubble { position: absolute; left: 0; top: 10%; z-index: 3; max-width: 62%; transform-origin: 90% 100%; animation: pop .5s var(--spring) both; animation-delay: .9s; }
.hero-bubble p { min-height: 1.4em; }
.hero-bubble::after { content: ""; position: absolute; right: 22px; bottom: -13px; width: 22px; height: 16px; background: inherit; border: inherit; border-top: 0; border-left: 0; transform: skewX(-35deg); border-bottom-right-radius: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  font-size: .8125rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; transition: opacity .3s;
}
.float b { display: block; font: 700 .875rem/1.25 var(--f-display); }
.float small { color: var(--muted); }
.float--a { right: -2%; top: 38%; }
.float--b { left: -2%; bottom: 20%; animation-delay: -3s; }
.float.swap { opacity: 0; }
.f-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--leaf); color: var(--ink); flex: none; }
.f-ic--tag { background: var(--lilac); font: 700 .8rem/1 var(--f-mono); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.scene-chips { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.scene-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--r-pill); background: transparent; font: 700 .8125rem/1 var(--f-display); cursor: pointer; color: var(--muted); }
.scene-chips button .dot { background: var(--line); box-shadow: none; }
.scene-chips button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.scene-chips button[aria-selected="true"] .dot { background: var(--sun); }

/* ── strip: marquee + numbers ───────────────────────────────────────────── */
.strip { border-block: 1.5px solid var(--line); background: var(--card); }
.marquee { overflow: hidden; border-bottom: 1.5px solid var(--line); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 48px; margin: 0; padding: 0 24px; list-style: none; }
.marquee li { white-space: nowrap; color: var(--muted); font: 500 1.05rem/1 var(--f-display); }
.marquee li b { color: var(--ink); font-weight: 900; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { display: grid; gap: 6px; padding: 34px 24px; border-left: 1.5px solid var(--line); align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font: 900 clamp(2.6rem, 3vw + 1rem, 3.8rem)/1 var(--f-display); color: var(--cocoa); font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; color: var(--ink); line-height: 1.35; }
.stat small { font: .75rem/1.3 var(--f-mono); color: var(--muted); }

/* ── 01 feelings ────────────────────────────────────────────────────────── */
.feel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.feel-preview { position: sticky; top: calc(var(--header) + 24px); margin: 0; display: grid; gap: 18px; padding: 22px; border-radius: var(--r-xl); background: var(--card); border: 2px solid var(--ink); box-shadow: 0 10px 0 -2px var(--ink); }
.feel-blob { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--peach); overflow: hidden; transition: background-color .35s; }
.feel-blob::before { content: ""; position: absolute; inset: 12%; background: color-mix(in oklab, white 55%, transparent); clip-path: url(#blob-b); }
.feel-blob img { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%); transition: opacity .25s, transform .35s var(--spring); }
.feel-blob img.swap { opacity: 0; transform: translateX(-50%) translateY(6%) scale(.96); }
.feel-preview figcaption { display: grid; gap: 8px; color: var(--muted); }
.feel-name { display: flex; align-items: center; gap: 10px; }
.feel-name b { font: 900 1.6rem/1 var(--f-display); color: var(--ink); text-transform: capitalize; }
.feel-name code, .sticker code { padding: 4px 9px; border-radius: 8px; background: var(--lilac); color: #3f2f86; font-weight: 600; }
.stickers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sticker {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: var(--r-lg);
  background: var(--card); border: 2px solid var(--line); cursor: pointer; text-align: center;
  transition: transform .25s var(--spring), border-color .2s, box-shadow .25s;
}
.sticker:hover, .sticker:focus-visible { transform: rotate(-3deg) translateY(-4px) scale(1.04); box-shadow: var(--shadow); }
.sticker:nth-child(even):hover, .sticker:nth-child(even):focus-visible { transform: rotate(3deg) translateY(-4px) scale(1.04); }
.sticker[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 6px 0 -1px var(--ink); }
.st-face { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--bg, var(--peach)); }
.st-face img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.sticker b { font: 700 .9375rem/1.1 var(--f-display); text-transform: capitalize; }
.st-note { display: grid; align-content: center; gap: 8px; padding: 16px; border-radius: var(--r-lg); border: 2px dashed var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.st-note b { font: 900 1rem/1.2 var(--f-display); color: var(--cocoa); }
.sticker code { font-size: .72rem; padding: 3px 7px; }

/* ── 02 the afternoon ───────────────────────────────────────────────────── */
.sec--gold { background: linear-gradient(var(--paper), var(--gold) 18%, var(--gold) 82%, var(--paper)); }
.aft { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.chapters { list-style: none; margin: 0; padding: 0; }
.ch { min-height: 72vh; display: grid; align-content: center; gap: 14px; padding: 24px 0 24px 28px; border-left: 3px solid var(--line); opacity: .38; transition: opacity .4s, border-color .4s; }
.ch.on { opacity: 1; border-color: var(--carrot); }
.ch-t { font: 600 .875rem/1 var(--f-mono); color: var(--carrot-text); }
.ch h3 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.3rem); font-weight: 900; color: var(--cocoa); }
.ch-en { font-size: .55em; font-weight: 700; color: var(--soft); white-space: nowrap; }
.ch p { color: var(--muted); max-width: 46ch; }
.rule-chip { display: inline-flex; align-items: flex-start; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 14px; background: var(--code-t); color: var(--code); font: 700 .8125rem/1.35 var(--f-display); }
.rule-chip .i { margin-top: .1em; }
.ch-visual { display: none; }
.pin { position: sticky; top: calc(var(--header) + 32px); height: min(640px, calc(100vh - var(--header) - 64px)); align-self: start; }
.tab-frame { position: absolute; inset: 0 12% 8% 0; padding: 16px; border-radius: 36px; background: var(--ink); box-shadow: var(--shadow-lift); }
.tab-cam { position: absolute; top: 50%; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: #5a524a; }
.tab-screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: url("/static/genkan.svg") center bottom / cover no-repeat, linear-gradient(#f3e6d4, #e9d6bd); }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.scene-chick { position: absolute; left: 50%; bottom: 0; height: 86%; width: auto; max-width: none; transform: translateX(-50%); }
.scene.on .scene-chick { animation: rise .6s var(--spring) both; }
@keyframes rise { from { transform: translateX(-50%) translateY(8%); } to { transform: translateX(-50%); } }
.scene-chick--close { height: 112%; bottom: -26%; }
.scene-chick--side { left: auto; right: -4%; height: 62%; transform: none; }
.scene.on .scene-chick--side { animation: none; }
.scene-coach { position: absolute; left: 4%; bottom: 0; height: 96%; width: auto; max-width: none; }
.scene-sheet { position: absolute; left: 6%; bottom: 6%; width: 34%; border: 4px solid #fff; border-radius: 6px; transform: rotate(-7deg); box-shadow: var(--shadow); }
.talk { position: absolute; left: 4%; right: 4%; top: 5%; display: grid; gap: 10px; }
.pin .talk { right: 24%; }
.pin .scene-chick { left: 40%; }
.pin .scene-chick--side { left: auto; right: 20%; }
.pin .scene-chick { height: 62%; }
.pin .scene-chick--close { height: 84%; bottom: -14%; }
.pin .scene-chick--side { height: 56%; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .3s; }
.scene-video.ready { opacity: 1; }
.talk--bottom { top: auto; bottom: 5%; }
.pin .talk--bottom { right: 30%; }
.ch-visual .scene-chick { height: 62%; }
.ch-visual .b--kid { display: none; }  /* the child's words are in the chapter text just above */
.ch-visual .talk:not(.talk--bottom) { top: 4%; }
.ch-visual .talk .b { max-width: 88%; }
.ch-visual .scene-chick--side { height: 52%; right: 0; }
.ch-visual .talk--bottom { bottom: 22%; }
.talk .b { font-size: clamp(.95rem, .6vw + .7rem, 1.1rem); max-width: 78%; }
.talk .b--big { font-size: 1.3rem; }
.scene.on .b { animation: pop .45s var(--spring) both; }
.scene.on .b + .b { animation-delay: .35s; }
.intercom { position: absolute; left: 6%; bottom: 8%; display: grid; gap: 10px; width: 46%; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.ic-screen { display: grid; place-items: center; gap: 2px; padding: 14px; border-radius: 14px; background: #2f3a4a; color: #fff; }
.ic-screen .i { width: 26px; height: 26px; color: var(--sun); animation: ring 1.2s ease-in-out infinite; }
.ic-screen b { font: 900 1.2rem/1 var(--f-display); }
.ic-screen small { color: #c9d3e0; font-size: .75rem; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } }
.ic-choice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); font: 700 1rem/1 var(--f-display); }
.ic-choice small { margin-left: auto; font: 400 .75rem/1 var(--f-body); color: var(--muted); }
.ic-choice--ok { border-color: var(--leaf-ink); background: var(--leaf); }
.frog { position: absolute; left: 6%; bottom: 8%; width: 30%; max-width: 150px; padding: 8px; background: #fff; border-radius: 10px; transform: rotate(-9deg); box-shadow: var(--shadow); }
.notes { position: absolute; right: 12%; top: 34%; display: flex; gap: 10px; pointer-events: none; }
.notes i { font: normal 900 2rem/1 var(--f-display); color: var(--carrot); animation: note 2.4s ease-in-out infinite; }
.notes i:nth-child(2) { animation-delay: -.8s; color: var(--sky-ink); }
.notes i:nth-child(3) { animation-delay: -1.6s; color: var(--comb); }
.notes i:nth-child(4) { animation-delay: -1.2s; color: var(--leaf-ink); }
@keyframes note { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .9; } 50% { transform: translateY(-14px) rotate(8deg); opacity: 1; } }

.ph-frame { position: absolute; right: 0; bottom: 0; width: 38%; min-width: 230px; aspect-ratio: 9 / 16.5; padding: 10px; border-radius: 34px; background: var(--ink); box-shadow: var(--shadow-lift); transform: rotate(3deg); }
.ph-notch { position: absolute; top: 16px; left: 50%; width: 32%; height: 18px; border-radius: var(--r-pill); background: #000; transform: translateX(-50%); z-index: 2; }
.ph-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--paper); padding: 46px 12px 12px; display: grid; align-content: start; gap: 10px; }
.ph-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.ph-head b { font: 900 1rem/1 var(--f-display); }
.ph-head small { color: var(--muted); font-size: .7rem; }
.ph-screen .note-card { display: none; }
.ph-screen .note-card.on { display: grid; animation: slide .5s var(--spring) both; }
.ph-screen .note-card.was { display: grid; opacity: .55; transform: scale(.97); }
@keyframes slide { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
.note-card {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); font-size: .8125rem; line-height: 1.4; box-shadow: 0 2px 0 var(--line);
}
.note-card b { font: 700 .875rem/1.3 var(--f-display); grid-column: 2; }
.note-card span:not(.nc-ic) { grid-column: 2; color: var(--muted); }
.note-card u { color: var(--carrot-text); }
.nc-ic { grid-row: span 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--paper-2); color: var(--cocoa); }
.nc-ic .i { width: 17px; height: 17px; }
.nc-ic--ok { background: var(--leaf); color: var(--ours); }
.nc-ic--alert { background: var(--alert-t); color: var(--alert); }
.note-card--alert { border-color: color-mix(in oklab, var(--alert) 40%, var(--line)); background: #fffaf9; }
.nc-call { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font: normal 700 .75rem/1 var(--f-display); }
.nc-call .i { width: 13px; height: 13px; }
.note-card--big { font-size: 1rem; padding: 20px; gap: 4px 14px; border-radius: 22px; box-shadow: var(--shadow); }
.note-card--big b { font-size: 1.1rem; }
.note-card--big .nc-ic { width: 44px; height: 44px; border-radius: 14px; }
.note-card--big .nc-ic .i { width: 22px; height: 22px; }

/* ── 03 うんどう ─────────────────────────────────────────────────────────── */
.undou { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.undou-text { display: grid; gap: 22px; }
.moves { display: flex; flex-wrap: wrap; gap: 10px; }
.move-chip { display: inline-grid; gap: 2px; padding: 10px 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); cursor: pointer; text-align: left; transition: transform .2s var(--spring), border-color .2s, background-color .2s; }
.move-chip b { font: 900 1.05rem/1.1 var(--f-display); }
.move-chip small { color: var(--muted); font-size: .75rem; }
.move-chip:hover { transform: translateY(-3px); }
.move-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--sun); }
.move-chip[aria-pressed="true"] small { color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: .9375rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--leaf-ink); margin-top: .25em; }
.coach-card { position: relative; }
.coach-stage {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-xl); overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 10px 0 -2px var(--ink);
  background:
    repeating-conic-gradient(from 0deg at 50% 118%, color-mix(in oklab, var(--sun) 50%, white) 0deg 9deg, var(--gold) 9deg 18deg);
}
.coach-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, rgb(91 58 30 / .14)); pointer-events: none; }
.coach-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.coach-poster { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%); transition: opacity .4s; }
.coach-stage.live .coach-poster { opacity: 0; }
.coach-go { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 2; }
.coach-go:hover { transform: translateX(-50%) translateY(-2px); }
.coach-stage.live .coach-go { display: none; }
.coach-load { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--card); border: 2px solid var(--ink); font: 700 .9rem/1 var(--f-display); }
.ring { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--carrot); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.coach-count { position: absolute; right: 6%; top: 6%; z-index: 2; font: 900 clamp(2.4rem, 4vw, 3.6rem)/1 var(--f-display); color: var(--ink); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--sun); }
.coach-count.pop { animation: count .35s var(--spring); }
@keyframes count { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.coach-say { position: absolute; left: 6%; top: 7%; z-index: 2; max-width: 60%; font: 700 1rem/1.35 var(--f-display); color: var(--cocoa); }
.coach-cheer { position: absolute; left: -9%; bottom: -6%; width: 30%; z-index: 3; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 18px rgb(91 58 30 / .22)); animation: hop 2.2s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.coach-bubble { position: absolute; left: 14%; bottom: 22%; z-index: 4; font-size: 1.3rem; }

/* ── 04 today's song ────────────────────────────────────────────────────── */
.sec--dusk-in { background: linear-gradient(var(--paper), #fbe9d6 60%, #f9dfc9); }
.song { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.song-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.song-blob { position: absolute; inset: 4%; background: var(--lilac); clip-path: url(#blob-b); animation: wobble 12s ease-in-out infinite alternate; }
.song-chick { position: absolute; left: 50%; bottom: 0; height: 96%; width: auto; max-width: none; transform: translateX(-50%); animation: sway 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: translateX(-50%) rotate(-2.5deg); } 50% { transform: translateX(-50%) rotate(2.5deg); } }
.notes--big { right: 2%; top: 8%; }
.notes--big i { font-size: 2.8rem; }
.song-text { display: grid; gap: 22px; }
.karaoke { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; padding: 22px; border-radius: var(--r-xl); background: var(--card); border: 2px solid var(--ink); box-shadow: 0 10px 0 -2px var(--ink); }
.kara-play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 -1px var(--sun-deep); transition: transform .2s var(--spring); }
.kara-play:hover { transform: scale(1.06); }
.kara-play .i { width: 26px; height: 26px; fill: currentColor; }
.kara-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kara-lines li { display: grid; padding: 6px 12px; border-radius: 14px; transition: background-color .3s, transform .3s var(--spring); }
.kara-lines span { font: 700 clamp(1.1rem, .8vw + .9rem, 1.4rem)/1.35 var(--f-display); color: var(--soft); transition: color .3s; }
.kara-lines small { color: var(--muted); font-size: .8125rem; }
.kara-lines li.on { background: var(--gold); transform: translateX(6px); }
.kara-lines li.on span { color: var(--ink); }
.kara-note { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; }

/* ── 05 safety ──────────────────────────────────────────────────────────── */
.safety { position: relative; background: var(--peach); padding: clamp(96px, 11vw, 150px) 0; overflow: clip; }
.cloud { position: absolute; left: 0; width: 100%; height: clamp(36px, 5vw, 72px); fill: var(--peach); }
.cloud--top { bottom: 100%; margin-bottom: -1px; }
.cloud--bottom { top: 100%; margin-top: -1px; fill: var(--peach); }
.safety { overflow-x: clip; overflow-y: visible; }  /* the clouds hang above and below; the peeking chick is cut at the page edge */
main > section, footer { overflow-x: clip; }
.safety + .sec { padding-top: clamp(120px, 13vw, 176px); }
.safety .sec-head { position: relative; z-index: 1; }
.pair { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 16px; align-items: center; max-width: 1000px; }
.pair-kid, .pair-gets { display: grid; gap: 14px; }
.pair-meta { font: 600 .8125rem/1 var(--f-mono); color: var(--carrot-text); }
.pair-say { color: var(--muted); font-size: .9375rem; max-width: 40ch; }
.pair-arrow { width: 100%; color: var(--carrot); }
.triad { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); max-width: 1000px; }
.t-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.t-card:hover { transform: translateY(-6px); }
.t-card h3 { font-size: 1.35rem; font-weight: 900; }
.t-card p { color: var(--muted); font-size: .9375rem; }
.t-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; transform: rotate(-6deg); border: 2px solid var(--ink); }
.t-ic .i { width: 26px; height: 26px; }
.t-ic--a { background: var(--sun); } .t-ic--b { background: var(--sky); } .t-ic--c { background: var(--leaf); }
.rule-chips { position: relative; z-index: 1; list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 1000px; }
.rule-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: #fff; font: 700 .875rem/1 var(--f-display); }
.rule-chips .i { color: var(--ours); }
.rules { position: relative; z-index: 1; margin-top: 24px; max-width: 1000px; }
.rules summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 700 1rem/1 var(--f-display); color: var(--carrot-text); padding: 10px 0; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary .i { transition: transform .25s var(--ease); }
.rules[open] summary .i { transform: rotate(90deg); }
.rules ol { list-style: none; margin: 12px 0 0; padding: 20px 24px; border-radius: var(--r-lg); background: #fff; columns: 2; column-gap: 40px; font-size: .9375rem; color: var(--muted); }
.rules li { break-inside: avoid; padding: 6px 0; }
.rules li b { display: inline-block; min-width: 2.6em; font-family: var(--f-mono); font-size: .8rem; color: var(--code); }
.peek { position: absolute; right: -4vw; bottom: 0; width: min(34vw, 520px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgb(91 58 30 / .25)); transform: translateX(30%); transition: transform 1s var(--spring); }
.peek.in { transform: translateX(0); }

/* ── dusk: how it works, compare, roadmap, closing, footer ─────────────── */
.dusk { background: var(--dusk); color: var(--on-dusk); }
.dusk .sec-head h2, .dusk h2 { color: var(--on-dusk); }
.dusk .soft { color: var(--dusk-soft); }
.dusk .lead { color: var(--dusk-muted); }
.dusk--2 { background: var(--dusk-2); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 22%, var(--sun) 50%, transparent 51%), radial-gradient(1px 1px at 64% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 74% 4%, var(--sun) 50%, transparent 51%);
  background-size: 100% 520px; background-repeat: repeat-y; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }
.dusk code { color: var(--sun); }

.flow { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--dusk-2); border: 1.5px solid var(--dusk-line); box-shadow: var(--shadow-dusk); }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.flow-tabs button { display: grid; gap: 2px; padding: 10px 16px; border-radius: 18px; border: 1.5px solid var(--dusk-line); background: var(--dusk); color: var(--on-dusk); cursor: pointer; text-align: left; }
.flow-tabs button span { font: 700 1rem/1.2 var(--f-display); }
.flow-tabs button small { color: var(--dusk-muted); font-size: .75rem; }
.flow-tabs button[aria-selected="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.flow-tabs button[aria-selected="true"] small { color: var(--ink); }
.lane { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 34px 18px; padding-top: 6px; }
.node {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 12px; border-radius: 18px;
  background: var(--dusk); border: 1.5px solid var(--dusk-line); font-size: .78rem; line-height: 1.3; color: var(--dusk-muted);
  transition: transform .3s var(--spring), box-shadow .3s, border-color .3s, background-color .3s, opacity .3s;
}
.node b { font: 700 .95rem/1.2 var(--f-display); color: var(--on-dusk); }
.node code { font-size: .7rem; color: var(--dusk-muted); }
.n-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 4px; }
.n-ic .i { width: 17px; height: 17px; }
.n-in .n-ic { background: var(--dusk-card); color: var(--on-dusk); }
.n-sp .n-ic { background: var(--lilac); color: #3f2f86; }
.n-code .n-ic { background: var(--code-dt); color: var(--code-d); }
.n-model .n-ic { background: var(--model-dt); color: var(--model-d); }
.n-ours .n-ic { background: var(--ours-dt); color: var(--ours-d); }
.n-alert .n-ic { background: var(--alert-dt); color: var(--alert-d); }
.n-code { border-color: color-mix(in oklab, var(--code-d) 40%, var(--dusk-line)); }
.n-model { border-color: color-mix(in oklab, var(--model-d) 40%, var(--dusk-line)); }
.n-ours { border-color: color-mix(in oklab, var(--ours-d) 40%, var(--dusk-line)); }
.n-alert { border-color: color-mix(in oklab, var(--alert-d) 50%, var(--dusk-line)); }
.node:not(.n-branch)::after { content: ""; position: absolute; top: 30px; left: 100%; width: 18px; height: 2px; background: var(--dusk-line); }
.node[data-n="out"]::after { display: none; }
.node.lit { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--sun), var(--shadow-dusk); border-color: var(--sun); }
.node.lit::after { background: var(--sun); }
.node.skip { opacity: .32; }
.node.skip::before { content: "skipped"; position: absolute; right: 8px; top: 8px; font: 600 .65rem/1 var(--f-mono); color: var(--dusk-muted); }
.n-branch { grid-row: 2; }
.node[data-n="alert"] { grid-column: 3; }
.node[data-n="tested"] { grid-column: 4; }
.n-branch::before { content: ""; position: absolute; left: 30px; bottom: 100%; width: 2px; height: 34px; background: var(--dusk-line); }
.node[data-n="tested"]::before { left: 30px; }
.node.skip::before { position: absolute; }
.n-branch.lit::before { background: var(--sun); }
.node[data-n="alert"].lit { box-shadow: 0 0 0 3px var(--alert-d), 0 0 32px rgb(242 139 130 / .45); border-color: var(--alert-d); animation: buzz .5s ease-in-out 3; }
.node[data-n="alert"].lit::before { background: var(--alert-d); }
@keyframes buzz { 25% { transform: translate(-3px, -4px) rotate(-1.5deg); } 75% { transform: translate(3px, -4px) rotate(1.5deg); } }
.flow-out { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 22px; background: var(--dusk); border: 1.5px solid var(--dusk-line); min-height: 104px; }
.flow-out img { width: 84px; height: 84px; object-fit: cover; object-position: top; border-radius: 20px; background: var(--peach); flex: none; }
.flow-out p { display: grid; gap: 4px; color: var(--dusk-muted); font-size: .9375rem; }
.flow-out b { font: 900 1.15rem/1.2 var(--f-display); color: var(--on-dusk); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8125rem; color: var(--dusk-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.sw--code { background: var(--code-d); } .sw--model { background: var(--model-d); } .sw--ours { background: var(--ours-d); } .sw--alert { background: var(--alert-d); } .sw--sp { background: var(--lilac); }

.flows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.f-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--dusk-2); border: 1.5px solid var(--dusk-line); overflow: hidden; }
.f-card h3 { font-size: 1.2rem; font-weight: 900; }
.f-card p { color: var(--dusk-muted); font-size: .875rem; }
.f-kana { position: absolute; right: -6px; top: -18px; font: 900 5.5rem/1 var(--f-display); color: color-mix(in oklab, var(--sun) 18%, transparent); pointer-events: none; }
.who { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem/1 var(--f-mono); color: var(--dusk-muted); margin-top: 4px; }
.who .sw { width: 10px; height: 10px; }

.deep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-top: 28px; }
.guard { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: #15182b; border: 1.5px solid var(--dusk-line); }
.guard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dusk-muted); font-size: .8rem; }
.tag { padding: 5px 10px; border-radius: var(--r-pill); font: 600 .72rem/1 var(--f-mono); }
.tag--ours { background: var(--ours-dt); color: var(--ours-d); border: 1px solid color-mix(in oklab, var(--ours-d) 35%, transparent); }
.guard-name { font-size: 1.5rem; font-weight: 600; color: var(--on-dusk); }
.guard p { color: var(--dusk-muted); font-size: .9rem; }
.guard-table, .built-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.guard-table caption { caption-side: bottom; text-align: left; padding-top: 10px; color: var(--dusk-muted); font-size: .75rem; }
.guard-table th, .guard-table td { padding: 10px 8px; border-bottom: 1px solid var(--dusk-line); text-align: right; font-weight: 400; color: var(--dusk-muted); }
.guard-table th[scope="row"], .guard-table thead th:first-child { text-align: left; }
.guard-table td b { font: 900 1.25rem/1 var(--f-display); color: var(--sun); }
.guard-table td { font: 700 1.1rem/1 var(--f-display); color: var(--on-dusk); }
.guard-why { font-size: .82rem !important; }
.try { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.try li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--dusk); border: 1px solid var(--dusk-line); font: 700 .95rem/1.3 var(--f-display); }
.try small { font: 600 .72rem/1 var(--f-mono); white-space: nowrap; }
.try .held { border-color: color-mix(in oklab, var(--alert-d) 45%, var(--dusk-line)); }
.try .held small { color: var(--alert-d); }
.try .passed small { color: var(--ours-d); }
.built { padding: 26px; border-radius: var(--r-lg); background: var(--dusk-2); border: 1.5px solid var(--dusk-line); }
.built h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; }
.built-table th, .built-table td { padding: 12px 10px; border-bottom: 1px solid var(--dusk-line); text-align: left; vertical-align: top; color: var(--dusk-muted); }
.built-table thead th { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.built-table th[scope="row"] { font: 700 .9rem/1.3 var(--f-display); color: var(--on-dusk); width: 70px; }
.built-table td b { display: block; color: var(--on-dusk); font-weight: 600; }
.built-table td small { display: block; font-size: .78rem; }
.built-table tbody tr:last-child > * { border-bottom: 0; }

.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1.5px solid var(--dusk-line); background: var(--dusk); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.cmp th, .cmp td { padding: 16px 14px; border-bottom: 1px solid var(--dusk-line); text-align: center; vertical-align: middle; }
.cmp thead th { font: 700 .875rem/1.2 var(--f-display); color: var(--dusk-muted); }
.cmp tbody th { text-align: left; font: 700 .95rem/1.3 var(--f-display); color: var(--on-dusk); }
.cmp tbody th small, .cmp td small { display: block; margin-top: 4px; font: 400 .75rem/1.3 var(--f-body); color: var(--dusk-muted); }
.cmp .us { background: color-mix(in oklab, var(--sun) 10%, var(--dusk)); }
.cmp thead .us { color: var(--on-dusk); }
.cmp-mark { display: inline-flex; align-items: center; gap: 8px; }
.cmp-mark svg { width: 28px; height: 28px; }
.cmp i { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.cmp i.y { background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2620' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cmp i.p { background: linear-gradient(90deg, var(--dusk-muted) 50%, transparent 50%); border: 1.5px solid var(--dusk-muted); }
.cmp i.n { width: 14px; height: 2px; border-radius: 2px; background: var(--dusk-line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.fine { margin-top: 14px; color: var(--dusk-muted); font-size: .8125rem; }

.road { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 34px; }
.road-line { position: absolute; left: 12px; right: 12px; top: 8px; height: 2px; background: var(--dusk-line); }
.road-line span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sun); transition: width 1.4s var(--ease); }
.road.in .road-line span { width: 33%; }
.road-col { position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--dusk-2); border: 1.5px solid var(--dusk-line); }
.road-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 900; margin-bottom: 14px; }
.road-col h3 small { margin-left: auto; font: 500 .75rem/1 var(--f-mono); color: var(--dusk-muted); }
.road-col .dot { position: absolute; top: -32px; left: 22px; width: 14px; height: 14px; background: var(--dusk); border: 2px solid var(--dusk-muted); box-shadow: none; }
.road-col--now .dot { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 5px rgb(255 201 74 / .2); }
.road-col h3 .dot { position: absolute; }
.road-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.road-col li { padding: 10px 0; border-top: 1px solid var(--dusk-line); color: var(--dusk-muted); font-size: .9rem; }
.road-col--now { border-color: color-mix(in oklab, var(--sun) 45%, var(--dusk-line)); }
.road-col--now li { color: var(--on-dusk); }

.cta { position: relative; overflow: clip; padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(800px 420px at 30% 70%, #3a3f6b, transparent 70%), var(--dusk); }
.cta-in { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cta-chick { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 0 40px rgb(255 201 74 / .35)); animation: bob2 3.4s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(-10px); } }
.cta-text { display: grid; gap: 20px; }
.cta-ja { font: 900 clamp(2.4rem, 4vw + 1rem, 4.6rem)/1 var(--f-display); color: var(--sun); transform: rotate(-3deg); transform-origin: left; }

.foot { padding: 56px 0 28px; border-top: 1px solid var(--dusk-line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--dusk-muted); font-size: .9rem; max-width: 46ch; }
.mark--dusk .mark-en { color: var(--dusk-muted); }
.mark--dusk .eye { fill: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dusk-muted); margin-bottom: 14px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols a, .foot-cols span { color: var(--on-dusk); text-decoration: none; font-size: .9375rem; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--dusk-line); }
.foot-fine p { color: var(--dusk-muted); font-size: .78rem; max-width: 90ch; }
.sleepy { position: relative; width: 52px; height: 52px; flex: none; }
.sleepy i { position: absolute; right: -10px; top: -6px; font: normal 900 .9rem/1 var(--f-display); color: var(--dusk-muted); animation: zz 3s ease-in-out infinite; }
.sleepy i + i { right: -20px; top: -18px; font-size: .7rem; animation-delay: -1.5s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -8px); } }

/* ── our own model ──────────────────────────────────────────────────────── */
.garvit-sec { padding: clamp(56px, 7vw, 96px) 0 0; }
.garvit {
  position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: #1e2136; color: var(--on-dusk);
  box-shadow: 0 14px 0 -4px var(--ink), var(--shadow-lift); overflow: hidden;
}
.garvit::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 201 74 / .22), transparent); pointer-events: none; }
.garvit-text { position: relative; display: grid; gap: 20px; align-content: center; }
.garvit-text h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 3rem); font-weight: 700; color: var(--on-dusk); }
.garvit-text .soft { display: block; color: var(--dusk-soft); }
.garvit-name { font-family: var(--f-mono); font-weight: 600; font-size: .9em; color: var(--sun); letter-spacing: -.02em; }
.garvit-text p { color: var(--dusk-muted); max-width: 58ch; }
.garvit-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.garvit-facts li { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: rgb(255 255 255 / .05); border: 1px solid var(--dusk-line); }
.garvit-facts b { font: 900 1.5rem/1 var(--f-display); color: var(--on-dusk); }
.garvit-facts span { font-size: .8rem; line-height: 1.35; color: var(--dusk-muted); }
.garvit-score { position: relative; align-self: center; display: grid; gap: 16px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: #15182b; border: 1.5px solid var(--dusk-line); }
.garvit-chick { position: absolute; right: 8px; top: -58px; width: 104px; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 18px rgb(0 0 0 / .35)); }
.garvit-shield { position: absolute; right: 104px; top: -16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--leaf); color: var(--ours); border: 2px solid var(--ink); transform: rotate(-10deg); }
.garvit-shield .i { width: 22px; height: 22px; }
.garvit-cap { min-height: 58px; padding-right: 150px; font: 600 .78rem/1.4 var(--f-mono); color: var(--dusk-muted); text-transform: uppercase; letter-spacing: .08em; }
.meter { display: grid; gap: 8px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter-head b { font: 700 .95rem/1.2 var(--f-display); }
.meter-head span { font: 600 .9rem/1 var(--f-mono); color: var(--dusk-muted); white-space: nowrap; }
.meter-head s { opacity: .7; }
.meter-head em { font: normal 900 1.5rem/1 var(--f-display); color: var(--sun); }
.bar { position: relative; height: 14px; border-radius: var(--r-pill); background: rgb(255 255 255 / .07); overflow: hidden; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; transition: width 1.2s var(--ease); }
.bar-before { background: var(--dusk-soft); opacity: .55; height: 5px !important; top: auto !important; bottom: 0 !important; z-index: 1; }
.bar-after { background: linear-gradient(90deg, var(--ours-d), var(--sun)); }
.bar--low .bar-after { background: linear-gradient(90deg, var(--sun), var(--ours-d)); }
.in .bar .bar-before { width: var(--v); transition-delay: .1s; }
.in .bar .bar-after { width: var(--v); transition-delay: .35s; }
.garvit-fine { font-size: .75rem; line-height: 1.5; color: var(--dusk-muted); }
.stat--ours b { color: var(--ours); }
.stat--ours b span { color: inherit; font: inherit; }
.hero-proof a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; }

/* ── the map of every call ──────────────────────────────────────────────── */
.map-head { display: grid; gap: 10px; margin: clamp(48px, 6vw, 72px) 0 24px; max-width: 760px; }
.map-head h3 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.2rem); font-weight: 700; color: var(--on-dusk); }
.map-head p { color: var(--dusk-muted); }
.map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr); gap: 0; align-items: center;
  padding: clamp(18px, 3vw, 32px); border-radius: var(--r-xl); background: var(--dusk-2); border: 1.5px solid var(--dusk-line); }
.map-col { position: relative; display: grid; gap: 10px; }
.map-col h4 { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dusk-muted); margin-bottom: 4px; }
.map-col--device { padding-right: 44px; }
.map-col--out { padding-left: 44px; }
.map-col--device::after, .map-col--out::before { content: ""; position: absolute; top: 30px; bottom: 26px; width: 2px; background: var(--dusk-line); }
.map-col--device::after { right: 18px; }
.map-col--out::before { left: 18px; }
.m-card { position: relative; display: grid; gap: 2px; padding: 11px 14px 11px 16px; border-radius: 16px; background: var(--dusk); border: 1.5px solid var(--dusk-line); font-size: .78rem; line-height: 1.35; color: var(--dusk-muted); }
.m-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--dusk-line)); }
.m-card b { font: 700 .92rem/1.25 var(--f-display); color: var(--on-dusk); }
.m-card code { color: var(--sun); font-size: .8em; }
.m-card small { font: 600 .7rem/1.2 var(--f-mono); color: var(--c, var(--dusk-muted)); }
.map-col--device .m-card::after, .map-col--out .m-card::after { content: ""; position: absolute; top: 50%; width: 26px; height: 2px; background: var(--dusk-line); }
.map-col--device .m-card::after { left: 100%; }
.map-col--out .m-card::after { right: 100%; }
.m-sp { --c: #c9b8ff; } .m-code { --c: var(--code-d); } .m-model { --c: var(--model-d); } .m-ours { --c: var(--ours-d); } .m-in { --c: var(--dusk-soft); } .m-out { --c: #8fd3e8; }
.m-ours { border-color: color-mix(in oklab, var(--ours-d) 45%, var(--dusk-line)); box-shadow: 0 0 0 3px rgb(118 201 151 / .12); }
.map-core { position: relative; display: grid; gap: 14px; justify-items: center; }
.map-core::before, .map-core::after { content: ""; position: absolute; top: 40%; width: 26px; height: 2px; background: var(--sun); }
.map-core::before { right: 100%; }
.map-core::after { left: 100%; }
.core { display: grid; gap: 6px; justify-items: center; text-align: center; width: 100%; padding: 22px 16px; border-radius: 24px; background: var(--sun); color: var(--ink); box-shadow: 0 8px 0 -2px #c9921f, var(--shadow-dusk); }
.core-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--sun); }
.core b { font: 900 1.2rem/1.1 var(--f-display); }
.core > span { font: 600 .75rem/1 var(--f-mono); }
.core ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.core li { padding: 4px 9px; border-radius: var(--r-pill); background: rgb(43 38 32 / .1); font: 700 .72rem/1.2 var(--f-display); }
.core-phone { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--dusk); border: 1.5px solid color-mix(in oklab, var(--alert-d) 50%, var(--dusk-line)); font-size: .75rem; color: var(--dusk-muted); }
.core-phone .i { color: var(--alert-d); }
.core-phone b { display: block; font: 700 .85rem/1.2 var(--f-display); color: var(--on-dusk); }
.map-col--out .m-card::after { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .map.in .map-col--out .m-card::after { background: linear-gradient(90deg, var(--dusk-line) 0 40%, var(--sun) 40% 60%, var(--dusk-line) 60%) 0 0 / 300% 100%; animation: flowdot 2.4s linear infinite; }
  .map.in .map-col--out .m-card:nth-of-type(2)::after { animation-delay: -.4s; } .map.in .map-col--out .m-card:nth-of-type(3)::after { animation-delay: -.8s; }
  .map.in .map-col--out .m-card:nth-of-type(4)::after { animation-delay: -1.2s; } .map.in .map-col--out .m-card:nth-of-type(5)::after { animation-delay: -1.6s; }
  .map.in .map-col--out .m-card:nth-of-type(6)::after { animation-delay: -2s; }
}
@keyframes flowdot { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (max-width: 1080px) {
  .garvit { grid-template-columns: 1fr; }
  .garvit-score { margin-top: 40px; }
  .map { grid-template-columns: 1fr; gap: 26px; }
  .map-col--device, .map-col--out { padding: 0; }
  .map-col--device::after, .map-col--out::before, .m-card::after, .map-core::before, .map-core::after { display: none; }
  .map-core { order: -1; }
}
@media (max-width: 600px) {
  .garvit { padding: 22px 18px; }
  .garvit-facts { grid-template-columns: 1fr; }
  .garvit-chick { width: 92px; top: -52px; }
  .garvit-shield { right: 74px; }
  .garvit-cap { padding-right: 110px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── how it works: five plain steps ─────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; counter-reset: none; }
.step { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 16px 16px; border-radius: 22px; background: var(--dusk); border: 2px solid var(--dusk-line); color: var(--dusk-muted); transition: transform .3s var(--spring), box-shadow .3s, border-color .3s, opacity .3s; }
.step b { font: 900 1.25rem/1.1 var(--f-display); color: var(--on-dusk); }
.s-say { font-size: .9rem; line-height: 1.45; color: #d6d1ea; }
.s-who { margin-top: 4px; font: 600 .72rem/1.3 var(--f-mono); color: var(--c, var(--dusk-muted)); }
.s-num { position: absolute; right: 14px; top: 12px; font: 900 1.6rem/1 var(--f-display); color: color-mix(in oklab, var(--c, #fff) 55%, transparent); }
.s-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in oklab, var(--c, #fff) 18%, transparent); color: var(--c, var(--on-dusk)); margin-bottom: 4px; }
.s-ic .i { width: 19px; height: 19px; }
.s-sp { --c: #c9b8ff; } .s-code { --c: var(--code-d); } .s-model { --c: var(--model-d); } .s-ours { --c: var(--ours-d); } .s-alert { --c: var(--alert-d); }
.step:not(.step--side):not(:nth-child(5))::after { content: ""; position: absolute; left: 100%; top: 36px; width: 14px; height: 2px; background: var(--dusk-line); }
.step.lit { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 30%, transparent), var(--shadow-dusk); }
.step.lit::after { background: var(--sun); }
.step.skip { opacity: .3; }
.step.skip .s-num::after { content: " skipped"; font: 600 .65rem/1 var(--f-mono); color: var(--dusk-muted); vertical-align: middle; }
.step--side { grid-row: 2; padding: 14px 16px; border-style: dashed; }
.step--side b { font-size: 1.05rem; }
.step[data-n="alert"] { grid-column: 2; }
.step[data-n="tested"] { grid-column: 3; }
.step--side::before { content: ""; position: absolute; left: 34px; bottom: 100%; width: 2px; height: 18px; background: var(--dusk-line); }
.step--side.lit::before { background: var(--c); }
.step[data-n="alert"].lit { animation: buzz .5s ease-in-out 3; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step--side, .step[data-n="alert"], .step[data-n="tested"] { grid-row: auto; grid-column: auto; }
  .step::after, .step--side::before { display: none; }
}
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ── the model card on Hugging Face ─────────────────────────────────────── */
.hf { margin: 28px 0 0; display: grid; gap: 14px; }
.hf-frame { border-radius: 22px; overflow: hidden; background: #fff; border: 2px solid var(--ink); box-shadow: 0 10px 0 -2px var(--ink), var(--shadow-lift); }
.hf-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1.5px solid var(--line); }
.hf-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.hf-bar i:nth-child(1) { background: #f28b82; } .hf-bar i:nth-child(2) { background: var(--sun); } .hf-bar i:nth-child(3) { background: #8fd19e; }
.hf-bar span { margin-left: 10px; padding: 4px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font: 500 .78rem/1.2 var(--f-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-frame a { display: block; }
.hf-frame img { width: 100%; height: auto; }
.hf figcaption { color: var(--muted); font-size: .9375rem; max-width: 70ch; }
.hf figcaption b { color: var(--ink); }

/* ── the facts strip ────────────────────────────────────────────────────── */
.stats-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 28px; }
.stats-head p { color: var(--muted); font-size: 1rem; }
.stats-head b { font-family: var(--f-display); color: var(--cocoa); }
.stat small a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 2px; }
.stat small a:hover { color: var(--carrot-text); }
.stat > span { font-weight: 500; }
.stat b span { font: inherit; color: inherit; }
.ticks a { color: inherit; text-underline-offset: 2px; }

/* ── our own model, at the end of the evening ───────────────────────────── */
.garvit-sec.dusk { padding: clamp(80px, 10vw, 136px) 0; }
.garvit-sec.dusk .garvit { background: var(--dusk-2); border: 1.5px solid var(--dusk-line); box-shadow: 0 14px 0 -4px #15182b, var(--shadow-dusk); }
.garvit-sec.dusk .hf-frame { border-color: var(--dusk-line); box-shadow: 0 10px 0 -2px #15182b, var(--shadow-dusk); }
.garvit-sec.dusk .hf figcaption { color: var(--dusk-muted); }
.garvit-sec.dusk .hf figcaption b { color: var(--on-dusk); }

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

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .lane { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .node[data-n="alert"], .node[data-n="tested"] { grid-row: auto; grid-column: auto; }
  .n-branch::before, .node::after { display: none; }
  .flows { grid-template-columns: repeat(2, 1fr); }
  .deep { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header: 60px; }
  .hero-in, .feel, .aft, .undou, .song, .cta-in, .foot-in { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 460px; }
  .feel-preview { position: relative; top: 0; grid-template-columns: 140px 1fr; align-items: center; padding: 14px; }
  .pin { display: none; }
  .ch { min-height: 0; opacity: 1; padding: 22px 0 22px 20px; border-color: var(--carrot); }
  .ch-visual { display: block; position: relative; height: 380px; margin-top: 8px; }
  .ch-visual .tab-screen { position: absolute; inset: 0; border-radius: 26px; border: 8px solid var(--ink); }
  .ch-visual .scene { opacity: 1; visibility: visible; }
  .ch-visual .note-card { position: absolute; right: -4px; bottom: -14px; width: min(280px, 78%); transform: rotate(2deg); box-shadow: var(--shadow-lift); }
  .pair { grid-template-columns: 1fr; }
  .pair-arrow { width: 90px; transform: rotate(90deg); margin: -10px auto; }
  .triad { grid-template-columns: 1fr; }
  .rules ol { columns: 1; }
  .peek { width: 40vw; right: -8vw; bottom: -6px; top: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1.5px solid var(--line); }
  .song-art { max-width: 360px; }
  .road { grid-template-columns: 1fr; padding-top: 0; }
  .road-line, .road-col .dot { display: none; }
  .cta-chick { max-width: 260px; }
  .foot-fine { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  .clock { display: none; }
  .badge { font-size: .75rem; gap: 7px; padding: 7px 11px; white-space: nowrap; }
  .mark-en { display: none; }
  .hero-stage { aspect-ratio: 1 / 1.12; }
  .float { font-size: .72rem; padding: 8px 10px 8px 8px; }
  .float b { font-size: .78rem; }
  .f-ic { width: 30px; height: 30px; }
  .float--a { right: 0; top: 44%; }
  .float--b { left: 0; bottom: 16%; }
  .hero-bubble { max-width: 74%; font-size: .95rem; top: 4%; }
  .scene-chips button { padding: 7px 10px; font-size: .75rem; }
  .scene-chips button .dot { display: none; }
  .stickers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .sticker { padding: 8px 6px 10px; border-radius: 20px; }
  .sticker code { display: none; }
  .feel-preview { grid-template-columns: 110px 1fr; }
  .feel-name b { font-size: 1.25rem; }
  .lane { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flows { grid-template-columns: 1fr; }
  .stat { padding: 22px 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .karaoke { grid-template-columns: 1fr; }
  .coach-cheer { width: 34%; left: -4%; }
  .coach-bubble { font-size: 1.05rem; left: 18%; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .ch-visual { height: 320px; }
  .intercom { width: 50%; padding: 8px; gap: 6px; border-radius: 16px; }
  .ic-screen { padding: 6px; }
  .ic-choice { padding: 6px 8px; font-size: .85rem; }
  .ic-choice small { display: none; }
  .talk .b { max-width: 92%; }
  .try li { flex-wrap: wrap; gap: 4px; }
  .built-table thead { display: none; }
  .built-table tr { display: grid; grid-template-columns: 64px 1fr; border-bottom: 1px solid var(--dusk-line); padding: 10px 0; }
  .built-table th, .built-table td { border: 0; padding: 2px 6px; }
  .built-table td:last-child { grid-column: 2; font-size: .8rem; }
  .built-table td:last-child::before { content: "If missing: "; color: var(--dusk-soft); }
  .built-table tbody tr:last-child { border-bottom: 0; }
}

/* ── reduced motion: every part at its final state ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1 !important; transform: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
  .peek { transform: none; }
  .doors { display: none; }
}
