/* =========================================================
   Draku — design tokens pulled straight from the mascot
   ========================================================= */
:root {
  /* Fur — the blacks */
  --fur-0: #050405;
  --fur-1: #080708;          /* outline / fur */
  --fur-2: #0f0d0e;
  --fur-3: #171415;
  --fur-4: #221e1f;
  /* Bone — the eye ring */
  --bone: #EAE6E6;
  --bone-2: #c9c3c2;
  /* Ash — the original backdrop, used as muted ink */
  --ash: #9D928F;
  --ash-2: #6f6765;
  --ash-3: #3a3435;
  /* Blood — wings & iris */
  --wing: #841E28;
  --wing-hi: #A42A36;
  --wing-glow: #C2414E;
  --wing-lo: #6C1620;
  --iris: #7A1D25;

  --line: rgba(234, 230, 230, .08);
  --line-2: rgba(234, 230, 230, .14);

  --f-sans: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fur-1);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--wing); color: var(--bone); }
:focus-visible { outline: 2px solid var(--wing-glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.muted { color: var(--ash); }
.center { text-align: center; }

/* Typography */
.label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wing-glow);
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 28px;
}
.h2 em, .hero__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--bone);
}
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; margin: 0 0 32px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ash); max-width: 640px; margin: 0 0 56px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 16px 16px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(8, 7, 8, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  max-width: 1240px; margin-inline: auto;
  transition: background .3s;
}
.nav.is-scrolled { background: rgba(8, 7, 8, .82); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.nav__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--ash); box-shadow: 0 0 0 1px var(--line-2); }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.9) translateY(9%); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ash); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--bone); background: rgba(234,230,230,.05); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.pill--ghost { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill--ghost:hover { background: rgba(234,230,230,.06); }
.pill--blood { background: var(--wing); color: var(--bone); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 30px -8px rgba(194,65,78,.6); }
.pill--blood:hover { background: var(--wing-hi); transform: translateY(-1px); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--bone); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 24px 160px; text-align: center; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(132,30,40,.45), transparent 70%),
    radial-gradient(40% 35% at 50% 30%, rgba(234,230,230,.04), transparent 70%),
    var(--fur-1);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grain {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

.hero__eyes { position: relative; z-index: 2; display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; margin-bottom: 44px; }
.eye { width: clamp(108px, 15vw, 196px); height: auto; overflow: visible; filter: drop-shadow(0 0 40px rgba(194,65,78,.35)) drop-shadow(0 24px 40px rgba(0,0,0,.8)); }
.eye__iris { transition: transform .25s var(--ease); transform-origin: 50px 50px; }
.eye__flame { transform-origin: 50% 90%; animation: flicker 1.6s ease-in-out infinite alternate; }
.eye__flame--b { animation-duration: 1.35s; animation-delay: -.4s; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(1.04, .94) skewX(-3deg); }
  60% { transform: scale(.97, 1.07) skewX(2deg); }
  100% { transform: scale(1.02, .98) skewX(-1deg); }
}
.eye__lid { transform-origin: 50px 0; transform: scaleY(0); }
.eye.is-blink .eye__lid { animation: blink .22s ease-in-out; }
@keyframes blink { 0%,100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
.eye.is-boot .eye__lid { animation: open 1.4s var(--ease) .2s both; }
@keyframes open { 0% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

.whiskers { position: absolute; top: 50%; width: clamp(28px, 4vw, 48px); fill: none; stroke: var(--bone); stroke-width: 1.4; stroke-linecap: round; opacity: .55; transform: translateY(-50%); }
.whiskers--l { right: 100%; margin-right: 4px; }
.whiskers--r { left: 100%; margin-left: 4px; }

.hero__copy { position: relative; z-index: 2; max-width: 920px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ash);
  background: rgba(234,230,230,.03); box-shadow: inset 0 0 0 1px var(--line);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wing-glow); box-shadow: 0 0 12px var(--wing-glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title { font-size: clamp(54px, 10vw, 148px); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin: 0 0 32px; }
.hero__title em { display: inline-block; background: linear-gradient(180deg, var(--bone) 30%, #d48a91 120%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lede { font-size: clamp(17px, 1.7vw, 21px); color: var(--ash); max-width: 640px; margin: 0 auto 12px; }
.hero__kicker { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 40px; color: var(--bone); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn--blood { background: var(--wing); color: var(--bone); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px -12px rgba(194,65,78,.7); }
.btn--blood:hover { background: var(--wing-hi); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px -12px rgba(194,65,78,.9); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); }
.btn--line:hover { background: rgba(234,230,230,.06); }
.btn--bone { background: var(--bone); color: var(--fur-1); }
.btn--bone:hover { transform: translateY(-2px); background: #fff; }
.hero__facts { list-style: none; padding: 0; margin: 56px 0 0; display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); flex-wrap: wrap; font-size: 14px; color: var(--ash); }
.hero__facts b { font-family: var(--f-serif); font-weight: 400; font-size: 30px; color: var(--bone); margin-right: 6px; vertical-align: -3px; }
.hero__scroll { position: absolute; bottom: 104px; left: 50%; z-index: 2; width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ash-2); transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--bone); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* scalloped bat-wing edges */
.wing-edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; z-index: 3; fill: var(--fur-0); }
.wing-edge--top { top: -1px; bottom: auto; fill: var(--fur-1); }

/* =========================================================
   MOMENT
   ========================================================= */
.moment { background: var(--fur-0); }
.filename {
  margin: 48px 0 24px; display: inline-flex; align-items: center; gap: 16px; max-width: 100%;
  padding: 18px 26px 18px 18px; border-radius: var(--r-m);
  background: var(--fur-2); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.8);
}
.filename__chip { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fur-4); color: var(--ash); transition: background .5s, color .5s; }
.filename.is-known .filename__chip { background: var(--wing); color: var(--bone); }
.filename__text { font-family: var(--f-mono); font-size: clamp(14px, 2vw, 22px); color: var(--bone); overflow-wrap: anywhere; }
.filename__caret { width: 2px; height: 26px; background: var(--wing-glow); animation: pulse 1s steps(1) infinite; }
.moment__note { color: var(--ash); max-width: 620px; font-size: 18px; margin: 0 0 80px; }
.moment__quote { border-left: 2px solid var(--wing); padding: 8px 0 8px 32px; margin: 0 0 120px; max-width: 900px; }
.moment__quote p { font-family: var(--f-serif); font-size: clamp(30px, 4vw, 52px); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.moment__quote em { color: var(--wing-glow); }

.ghosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ghost {
  position: relative; padding: 36px 32px 32px; border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(180deg, var(--fur-2), var(--fur-1)); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.ghost::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%; background: radial-gradient(closest-side, rgba(132,30,40,.35), transparent); opacity: 0; transition: opacity .5s; }
.ghost:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(194,65,78,.4); }
.ghost:hover::after { opacity: 1; }
.ghost__icon svg, .trio svg { width: 48px; height: 48px; fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.hl { stroke: var(--wing-glow) !important; fill: rgba(194,65,78,.15); }
.ghost h4 { font-size: 26px; margin: 0 0 10px; letter-spacing: -.02em; }
.ghost p { color: var(--ash); margin: 0 0 24px; position: relative; z-index: 1; }
.ghost__tag { position: relative; z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wing-glow); }
.moment__coda { text-align: center; color: var(--ash); max-width: 640px; margin: 64px auto 0; font-size: 18px; }

/* =========================================================
   IDEA
   ========================================================= */
.idea { background: var(--fur-1); }
.anatomy { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.anatomy__figure { margin: 0; }
.anatomy__tile { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 1; background: var(--ash); box-shadow: 0 0 0 1px var(--line-2), 0 60px 120px -40px rgba(132,30,40,.55); }
.anatomy__tile img { width: 100%; height: 100%; object-fit: cover; }
.anatomy__figure figcaption { margin-top: 16px; font-size: 14px; color: var(--ash); font-family: var(--f-mono); text-align: center; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 6px rgba(234,230,230,.25); transition: transform .3s var(--ease), background .3s; }
.spot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--bone); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.spot span { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--fur-1); color: var(--bone); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.spot:hover span, .spot.is-active span { opacity: 1; }
.spot.is-active { background: var(--wing-glow); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(194,65,78,.35); }
.spot.is-active::before { border-color: var(--wing-glow); }

.outcomes { display: grid; gap: 8px; }
.outcome {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left;
  padding: 18px 22px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s;
}
.outcome:hover { background: rgba(234,230,230,.03); }
.outcome__n { grid-row: span 2; font-family: var(--f-mono); font-size: 12px; color: var(--ash-2); padding-top: 9px; }
.outcome__t { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.outcome__d { color: var(--ash); font-size: 15px; }
.outcome.is-active { background: linear-gradient(90deg, rgba(132,30,40,.28), rgba(132,30,40,.06)); box-shadow: inset 0 0 0 1px rgba(194,65,78,.5); }
.outcome.is-active .outcome__n { color: var(--wing-glow); }
.ba { margin-top: 16px; display: grid; grid-template-columns: 1fr 40px 1fr; gap: 16px; align-items: center; padding: 24px; border-radius: var(--r-m); background: var(--fur-2); box-shadow: inset 0 0 0 1px var(--line); min-height: 150px; }
.ba__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash-2); }
.ba__v { margin: 8px 0 0; font-size: 15px; line-height: 1.45; transition: opacity .25s, transform .25s; }
.ba__v--before { color: var(--ash); font-family: var(--f-mono); font-size: 13px; }
.ba__v--after { color: var(--bone); font-weight: 500; }
.ba.is-swap .ba__v { opacity: 0; transform: translateY(6px); }
.ba__arrow { width: 40px; fill: none; stroke: var(--wing-glow); stroke-width: 1.6; }

.flow { margin-top: clamp(96px, 12vw, 160px); padding: 48px 32px 40px; border-radius: var(--r-l); background: radial-gradient(70% 90% at 50% 50%, rgba(132,30,40,.15), transparent), var(--fur-0); box-shadow: inset 0 0 0 1px var(--line); }
.flow__svg { width: 100%; height: auto; overflow: visible; }
.flow__path { fill: none; stroke: var(--ash-3); stroke-width: 1.5; }
.flow__pulse { fill: none; stroke: url(#beam); stroke: var(--wing-glow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 40 400; stroke-dashoffset: 440; animation: dash 3s linear infinite; filter: drop-shadow(0 0 6px var(--wing-glow)); }
.flow__pulse.d1, .flow__pulse.d2, .flow__pulse.d3, .flow__pulse.d4 { animation-delay: 1.1s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.flow__file { fill: var(--fur-3); stroke: var(--bone); stroke-width: 1.5; }
.flow__fold { fill: none; stroke: var(--bone); stroke-width: 1.5; }
.flow__ext { fill: var(--ash); font-family: var(--f-mono); font-size: 14px; }
.flow__cap { fill: var(--ash); font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.flow__out circle { fill: var(--wing-glow); }
.flow__out text { fill: var(--bone); font-family: var(--f-sans); font-size: 18px; font-weight: 500; }
.flow__line { text-align: center; max-width: 720px; margin: 32px auto 0; color: var(--ash); font-size: 18px; }
.flow__line em { font-family: var(--f-serif); color: var(--bone); font-size: 1.2em; }

/* =========================================================
   APP MOCK
   ========================================================= */
.screen { background: var(--fur-0); overflow: hidden; }
.screen::before { content: ""; position: absolute; left: 50%; top: 40%; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(132,30,40,.25), transparent); pointer-events: none; }
.app { position: relative; border-radius: 22px; background: rgba(15,13,14,.92); box-shadow: 0 0 0 1px var(--line-2), 0 80px 160px -60px rgba(0,0,0,1), 0 0 120px -40px rgba(194,65,78,.45); overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ash); }
.tl { width: 12px; height: 12px; border-radius: 50%; background: var(--fur-4); }
.tl:first-child { background: var(--wing); }
.app__title { margin-left: 12px; flex: 1; font-family: var(--f-mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__air { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(132,30,40,.25); color: var(--bone); font-size: 12px; }
.app__body { padding: clamp(20px, 4vw, 44px); }
.ask { display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 64px; border-radius: 16px; background: var(--fur-1); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ash); transition: box-shadow .25s; }
.ask:focus-within { box-shadow: inset 0 0 0 1.5px var(--wing-glow), 0 0 0 6px rgba(194,65,78,.12); }
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bone); font: 500 20px var(--f-sans); letter-spacing: -.01em; }
.ask input::placeholder { color: var(--ash-2); }
.ask kbd { font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ask__hints { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.ask__hints button { font-size: 13px; padding: 6px 12px; border-radius: 999px; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s; }
.ask__hints button:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--wing); }
.results { min-height: 0; }
.result { margin-top: 18px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 16px; background: var(--fur-2); box-shadow: inset 0 0 0 1px rgba(194,65,78,.35); animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.result__crop { height: 92px; border-radius: 10px; background: var(--bone); color: var(--fur-1); display: grid; place-content: center; text-align: center; font-family: var(--f-mono); font-size: 12px; line-height: 1.35; position: relative; overflow: hidden; }
.result__crop b { font-size: 14px; display: block; }
.result__crop::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--wing); border-radius: 6px; }
.result__name { font-family: var(--f-mono); font-size: 13px; color: var(--bone); word-break: break-word; }
.result__was { font-family: var(--f-mono); font-size: 12px; color: var(--ash-2); text-decoration: line-through; }
.result__meta { font-size: 13px; color: var(--ash); margin-top: 4px; }
.result--none { grid-template-columns: 1fr; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--fur-1); box-shadow: inset 0 0 0 1px var(--line); min-height: 300px; }
.card header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.card__num { font-family: var(--f-serif); font-size: 56px; line-height: .9; color: var(--bone); }
.card__what { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.card__list { list-style: none; margin: 0 0 auto; padding: 0; }
.card__list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ash); }
.card__list b { font-weight: 600; white-space: nowrap; }
.warn { color: var(--wing-glow); }
.card__list li.is-done b { color: var(--bone); }
.card__list li.is-done b::before { content: "✓ "; }
.card__btn { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; background: var(--bone); color: var(--fur-1); font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), background .2s; }
.card__btn:hover { transform: translateY(-1px); background: #fff; }
.card__btn.is-done { background: var(--wing); color: var(--bone); }
.shot { position: relative; margin-bottom: auto; padding: 12px; border-radius: 12px; background: var(--fur-3); font-size: 13px; }
.shot__tab { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ash); margin-bottom: 10px; }
.shot__tab span { width: 8px; height: 8px; border-radius: 50%; background: var(--ash-2); }
.shot__row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.shot__row small { color: var(--ash-2); }
.secret { font-family: var(--f-mono); border-radius: 4px; padding: 0 4px; transition: filter .6s, background .4s, box-shadow .4s; box-shadow: 0 0 0 1.5px var(--wing-glow), 0 0 16px rgba(194,65,78,.6); }
.shot__gps { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--wing-glow); padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(194,65,78,.5); transition: opacity .5s, transform .5s; }
.shot.is-safe .secret { filter: blur(5px); background: var(--ash-2); box-shadow: none; }
.shot.is-safe .shot__gps { opacity: .25; text-decoration: line-through; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: auto; }
.tiles span { aspect-ratio: 1.6; display: grid; place-items: center; border-radius: 8px; background: var(--fur-3); font-family: var(--f-mono); font-size: 11px; color: var(--ash); transition: transform .5s var(--ease), opacity .5s; }
.tiles.is-gone span { opacity: 0; transform: translateY(16px) scale(.6) rotate(8deg); }
.rest { display: flex; align-items: center; gap: 10px; margin-bottom: auto; padding: 16px; border-radius: 12px; background: rgba(132,30,40,.15); box-shadow: inset 0 0 0 1px rgba(194,65,78,.35); font-size: 14px; animation: rise .4s var(--ease); }
.rest[hidden] { display: none; }
.rest .link { margin-left: auto; color: var(--wing-glow); font-weight: 600; font-size: 14px; }
.app__foot { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--ash-2); font-family: var(--f-mono); }

/* =========================================================
   PROMISES
   ========================================================= */
.promises { background: var(--fur-1); }
.nos { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: n; }
.nos li { display: grid; grid-template-columns: auto 1fr minmax(260px, 1fr); gap: 0 24px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease); }
.nos li:last-child { border-bottom: 1px solid var(--line); }
.nos .no { font-family: var(--f-serif); font-style: italic; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; color: var(--wing-glow); }
.nos .what { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.nos p { margin: 0; color: var(--ash); font-size: 17px; }
.nos li:hover { padding-left: 16px; }
.nos li:hover .what { color: var(--bone); }

/* =========================================================
   DEMO PLAYER
   ========================================================= */
.demo { background: var(--fur-0); }
.player { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.stage { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); padding: 24px; min-height: 460px; background: radial-gradient(80% 70% at 50% 100%, rgba(132,30,40,.3), transparent), var(--fur-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.stage__status { display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--ash); }
.stage__air { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--wing); color: var(--bone); transition: box-shadow .4s; }
.stage__wifi { padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.stage__clock { margin-left: auto; color: var(--bone); }
.stage__screen { flex: 1; display: grid; place-items: center; text-align: center; padding: 32px 12px; }
.stage__on { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; max-width: 560px; margin: 0; line-height: 1.25; transition: opacity .3s, transform .3s; }
.stage__say { margin: 0 0 20px; font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.7vw, 22px); color: var(--ash); max-width: 620px; transition: opacity .3s; }
.stage.is-swap .stage__on, .stage.is-swap .stage__say { opacity: 0; transform: translateY(6px); }
.stage.is-reveal .stage__air { box-shadow: 0 0 0 6px rgba(194,65,78,.25), 0 0 40px var(--wing-glow); }
.stage.is-reveal .stage__on { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 4vw, 52px); }
.stage__ctrl { display: flex; align-items: center; gap: 16px; }
.play { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bone); color: var(--fur-1); transition: transform .2s var(--ease); }
.play:hover { transform: scale(1.06); }
.play .i-pause { display: none; }
.player.is-playing .play .i-play { display: none; }
.player.is-playing .play .i-pause { display: block; }
.track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--fur-4); cursor: pointer; }
.track__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--wing-glow); box-shadow: 0 0 12px var(--wing-glow); }
.track i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--ash-2); }
.dur { font-family: var(--f-mono); font-size: 12px; color: var(--ash); }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.beats li { display: flex; gap: 16px; align-items: baseline; padding: 16px 20px; border-radius: 14px; cursor: pointer; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.beats li:hover { color: var(--bone); }
.beats time { font-family: var(--f-mono); font-size: 12px; color: var(--ash-2); width: 34px; flex: none; }
.beats li.is-active { color: var(--bone); background: rgba(132,30,40,.2); box-shadow: inset 0 0 0 1px rgba(194,65,78,.5); }
.beats li.is-active time { color: var(--wing-glow); }
.beat--reveal span { font-family: var(--f-serif); font-style: italic; font-size: 19px; }

/* =========================================================
   OPEN
   ========================================================= */
.open { background: var(--fur-1); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.trio article { background: var(--fur-1); padding: 40px 32px; }
.trio h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.trio p { margin: 0; color: var(--ash); }
.terminal { margin-top: 32px; border-radius: var(--r-m); background: var(--fur-0); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--ash-2); }
.terminal__bar > span:not(.tl) { margin-left: 8px; }
.copy { margin-left: auto; font-family: var(--f-mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line-2); }
.copy:hover { color: var(--bone); }
pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--f-mono); font-size: 14px; line-height: 1.8; color: var(--bone); }
pre .c { color: var(--ash-2); } pre .p { color: var(--wing-glow); } pre .o { color: var(--ash); }
pre .k { color: var(--bone-2); } pre .s { color: #d98a92; } pre .n { color: var(--wing-glow); }

/* =========================================================
   HOOD
   ========================================================= */
.hood { background: var(--fur-0); }
.hood__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.engine { padding: 30px; border-radius: var(--r-m); background: var(--fur-2); box-shadow: inset 0 0 0 1px var(--line); }
.engine header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.engine__o { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips i { font-style: normal; font-family: var(--f-mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; color: var(--bone); background: rgba(132,30,40,.3); box-shadow: inset 0 0 0 1px rgba(194,65,78,.4); }
.engine p { margin: 0; color: var(--ash); font-size: 16px; }
.reading { margin-top: 16px; border-radius: var(--r-m); background: var(--fur-1); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.reading__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; }
.road { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.road::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--wing-glow), var(--ash-3) 40%, transparent); }
.road__step { position: relative; padding-top: 32px; }
.road__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--fur-0); box-shadow: inset 0 0 0 1.5px var(--ash-2); }
.road__step.is-now .road__dot { background: var(--wing-glow); box-shadow: 0 0 0 5px rgba(194,65,78,.2), 0 0 18px var(--wing-glow); }
.road b { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wing-glow); font-weight: 500; }
.road p { margin: 8px 0 0; font-size: 18px; color: var(--bone); max-width: 300px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--fur-0); padding-top: 0; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--bone), var(--bone)) center/100% 1.5px no-repeat, linear-gradient(var(--bone), var(--bone)) center/1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--wing-glow), var(--wing-glow)) center/100% 1.5px no-repeat, linear-gradient(var(--wing-glow), var(--wing-glow)) center/1.5px 100% no-repeat; }
.qa details p { margin: 0 0 28px; color: var(--ash); max-width: 680px; font-size: 17px; animation: rise .35s var(--ease); }

/* =========================================================
   FINAL
   ========================================================= */
.final { position: relative; padding: clamp(140px, 16vw, 220px) 0 clamp(100px, 12vw, 160px); background: radial-gradient(70% 70% at 30% 60%, rgba(132,30,40,.55), transparent 70%), linear-gradient(180deg, var(--wing-lo), var(--fur-1)); overflow: hidden; }
.final__inner { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.final__portrait { position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--ash); box-shadow: 0 0 0 10px rgba(8,7,8,.6), 0 0 0 11px rgba(234,230,230,.2), 0 60px 120px -30px rgba(0,0,0,.9); animation: hover 6s ease-in-out infinite; }
.final__portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hover { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.final__copy .hero__actions { justify-content: flex-start; }
.final__copy .lede { color: var(--bone-2); }
.final__os { margin: 24px 0 0; font-family: var(--f-mono); font-size: 12px; color: var(--ash); letter-spacing: .04em; }

.foot { background: var(--fur-1); border-top: 1px solid var(--line); padding: 40px 0; }
.foot__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__inner .nav__avatar { width: 28px; height: 28px; }
.foot__tag { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--bone); }
.foot__meta { margin: 0 0 0 auto; font-size: 13px; color: var(--ash-2); }
.foot__meta a { color: var(--ash); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--bone); color: var(--fur-1); font-weight: 600; font-size: 14px; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.is-open { border-radius: 24px; flex-wrap: wrap; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; order: 3; width: 100%; padding: 8px 0 4px; }
  .nav.is-open .nav__links a { font-size: 17px; padding: 12px 14px; }
}
@media (max-width: 900px) {
  .anatomy, .player, .final__inner { grid-template-columns: 1fr; }
  .anatomy__figure { max-width: 460px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .ghosts, .trio { grid-template-columns: 1fr; }
  .hood__grid { grid-template-columns: 1fr; }
  .nos li { grid-template-columns: auto 1fr; }
  .nos p { grid-column: 2; margin-top: 8px; }
  .final__portrait { max-width: 300px; margin-inline: auto; width: 100%; }
  .final__copy { text-align: center; }
  .final__copy .hero__actions { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .nav { inset: 10px 10px auto; }
  .pill--ghost span { display: none; }
  .pill--ghost { padding: 0 12px; }
  .hero { padding-top: 120px; }
  .whiskers { display: none; }
  .btn { width: 100%; justify-content: center; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); margin: -4px auto; }
  .result { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; }
  .road::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--wing-glow), var(--ash-3)); }
  .road__step { padding: 0 0 0 36px; }
  .foot__meta { margin-left: 0; }
  .flow { padding: 28px 12px; }
  .flow__out text { font-size: 22px; }
  .stage { min-height: 400px; }
  .hero__scroll { display: none; }
  .ask input { font-size: 17px; }
  .ask kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
