/* Twinflower · twinflowersystems.com
   Pearl, chrome, liquid glass. Green + petal pink. Big type, few words. */

:root {
  --bg: #f3f6f4;
  --ink: #0c1d18;
  --ink-2: #44574f;
  --ink-3: #7d8f88;
  --line: rgba(12, 29, 24, .10);
  --green: #157352;
  --green-2: #2f9a6d;
  --pink: #d98bc4;
  --pink-ink: #a84a8c;
  --chrome: linear-gradient(180deg, #ffffff 0%, #eef2f0 38%, #c3cdc8 52%, #e6ece9 70%, #ffffff 100%);
  --r-lg: 30px;
  --r-md: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(255,255,255,.3) inset,
            0 0 0 1px rgba(255,255,255,.55) inset, 0 24px 60px -24px rgba(16, 64, 46, .28),
            0 4px 14px -6px rgba(16, 64, 46, .12);
  --f-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-tech: "Michroma", "Inter Tight", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--f-display);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); font-size: .8em; letter-spacing: -.01em; }
.dim { color: var(--ink-3); }
.it { font-style: italic; font-weight: 300; }
.defs { position: absolute; width: 0; height: 0; }
::selection { background: #f2b5d9; color: var(--ink); }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle at 40% 40%, #cfeeb4, transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 4vmax; background: radial-gradient(circle, #f6c4e2, transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 18vmax; bottom: -22vmax; background: radial-gradient(circle, #b9e2cf, transparent 64%); animation: drift3 30s ease-in-out infinite alternate; }
.b4 { width: 30vmax; height: 30vmax; right: 8vmax; bottom: 6vmax; background: radial-gradient(circle, #e2cdf3, transparent 62%); animation: drift1 36s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vmax, 10vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(6vmax, -8vmax) scale(1.1); } }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21,115,82,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(21,115,82,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.sparkles { position: absolute; inset: 0; }
.spark { position: absolute; width: var(--s, 14px); height: var(--s, 14px); animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); opacity: 0; }
.spark::before {
  content: ""; position: absolute; inset: 0; background: var(--c, #fff);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
}
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }

/* ---------- liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgba(255,255,255,.62), rgba(255,255,255,.22) 60%, rgba(255,255,255,.38));
  -webkit-backdrop-filter: blur(16px) saturate(175%); backdrop-filter: blur(16px) saturate(175%);
  box-shadow: var(--shadow); border-radius: var(--r-lg);
}
.glass > .lg-fx {
  position: absolute; inset: 0; border-radius: inherit; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); filter: url(#lg-distort);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.55), transparent 40%), linear-gradient(180deg, rgba(255,255,255,.55), transparent 22%);
  mix-blend-mode: soft-light; opacity: .9;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(242,181,217,.45) 30%, rgba(255,255,255,.1) 50%, rgba(160,220,190,.5) 80%, rgba(255,255,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass.pill { border-radius: 999px; }
.glass.round { border-radius: 50%; }
.panel { padding: clamp(20px, 2.6vw, 32px); }

/* ---------- buttons ---------- */
.btn {
  --h: 50px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 15.5px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .2s; white-space: nowrap;
}
.btn.small { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn:active { transform: scale(.97); }
.btn-chrome { background: var(--chrome); color: var(--ink); box-shadow: 0 1px 0 #fff inset, 0 -2px 4px rgba(0,0,0,.08) inset, 0 0 0 1px rgba(12,29,24,.14), 0 8px 22px -10px rgba(12,29,24,.4); }
.btn-chrome:hover { transform: translateY(-2px); }
.btn-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.35));
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.7) inset, 0 0 0 1px rgba(12,29,24,.08), 0 10px 26px -12px rgba(16,64,46,.35);
}
.btn-glass:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 8px; }
.btn-ghost:hover { color: var(--green); }
.play-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--green); position: relative; box-shadow: 0 0 0 4px rgba(21,115,82,.15); }
.play-ico::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav-inner { pointer-events: auto; display: flex; align-items: center; gap: 18px; padding: 7px 7px 7px 18px; width: min(100%, 860px); transition: width .6s var(--ease); }
.nav.compact .nav-inner { width: min(100%, 680px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: auto; transition: transform .8s var(--ease); }
.brand-word { width: 112px; height: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: background .25s, color .25s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: 0 0 0 1px rgba(12,29,24,.06); }
.status { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--f-mono); color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf7d; box-shadow: 0 0 0 3px rgba(47,191,125,.18), 0 0 8px #2fbf7d; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.04em; }
.display { font-size: clamp(48px, 8vw, 116px); line-height: .92; letter-spacing: -.055em; }
.display .line { display: block; }
h2 { font-size: clamp(40px, 6vw, 84px); line-height: .95; }
h3 { font-size: 22px; letter-spacing: -.03em; }
.lede { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-2); margin: 28px 0 34px; letter-spacing: -.01em; }
.scr { color: var(--green-2); font-family: var(--f-mono); font-weight: 400; }

.section { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

[data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 120px var(--gutter) 80px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; position: relative;
}
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; perspective: 1000px; }
.orb { position: absolute; inset: 12%; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.9), rgba(255,255,255,.25) 40%, rgba(214,240,226,.25) 70%, rgba(242,181,217,.35)); }
.ring-orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(21,115,82,.22); animation: spin 60s linear infinite; }
.ring-orbit span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); top: -5px; left: calc(50% - 5px); box-shadow: 0 0 0 4px rgba(21,115,82,.15); }
.ring-orbit span + span { background: var(--pink); top: auto; bottom: -5px; box-shadow: 0 0 0 4px rgba(217,139,196,.2); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mark { position: absolute; left: 50%; top: 50%; width: 92%; transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); filter: drop-shadow(0 30px 40px rgba(21,115,82,.25)); transition: transform .5s var(--ease); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.chip { position: absolute; padding: 11px 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px; animation: float 8s ease-in-out infinite; }
.chip small { font: 400 9.5px/1.2 var(--f-tech); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chip b { font: 500 22px/1.1 var(--f-display); letter-spacing: -.03em; }
.c1 { left: -4%; top: 14%; animation-delay: -2s; }
.c2 { right: -2%; top: 44%; animation-delay: -4s; }
.c3 { left: 10%; bottom: 6%; animation-delay: -6s; }
.c3 b { color: var(--green); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(12,29,24,.25); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- mic drop ---------- */
.drop { position: relative; height: 380vh; }
.drop-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 100%; place-items: center; overflow: hidden; }
.drop-frame { grid-area: 1 / 1; width: 100%; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(40px) scale(.96); filter: blur(10px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); pointer-events: none; }
.drop-frame.on { opacity: 1; transform: none; filter: none; }
.drop-frame.past { opacity: 0; transform: translateY(-40px) scale(1.02); filter: blur(10px); }
.drop-label { color: var(--ink-3); margin: 0 0 10px; font-size: 14px; }
.drop-big { margin: 0; font: 400 clamp(64px, 16vw, 280px)/.9 var(--f-display); letter-spacing: -.07em; white-space: nowrap; }
.drop-big em { font-style: normal; font-size: .3em; letter-spacing: -.02em; color: var(--ink-3); margin-left: .1em; }
.drop-big.them { color: #b9c4bf; position: relative; display: inline-block; }
.drop-big.them::after { content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: .06em; background: var(--pink); border-radius: 99px; transform: scaleX(var(--strike, 0)); transform-origin: left; }
.drop-big.us { color: var(--green); }
.drop-sub { font-size: clamp(18px, 2vw, 24px); color: var(--ink-2); margin: 18px 0 0; letter-spacing: -.01em; }
.drop-dots { position: absolute; right: var(--gutter); top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.drop-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(12,29,24,.15); transition: background .3s, transform .3s; }
.drop-dots i.on { background: var(--green); transform: scale(1.5); }

/* ---------- finding ---------- */
.finding { position: relative; height: 280vh; }
.finding-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(24px, 5vw, 80px); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 90px var(--gutter) 40px; }
.steps { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; gap: 2px; }
.steps li { position: relative; padding: 10px 0 10px 44px; color: rgba(12,29,24,.25); font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.02em; transition: color .5s, transform .5s var(--ease); }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 15px; font: 400 10px/1 var(--f-tech); }
.steps li.on { color: var(--ink); transform: translateX(8px); }
.steps li.on::before { color: var(--green); }
.fine-link { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.fine-link:hover { color: var(--green); }
.finding-stage { padding: 16px; width: 100%; }
#scene { width: 100%; height: auto; display: block; overflow: visible; }
.ring-line { fill: none; stroke: rgba(21,115,82,.35); stroke-width: 1.5; }
.tick { stroke: rgba(21,115,82,.45); stroke-width: 2; stroke-linecap: round; }
.tick.major { stroke: rgba(21,115,82,.7); stroke-width: 2.5; }
.tick.hit { stroke: #d65fae; stroke-width: 4; }
.tick-lbl { font: 400 11px var(--f-mono); fill: var(--ink-3); text-anchor: middle; dominant-baseline: middle; }
.tick-lbl.hit { fill: #b5408d; font-weight: 500; }
.ct { font: 600 15px var(--f-display); text-anchor: middle; fill: #5a1f4a; }
.ct.light { fill: #fff; } .ct.dark { fill: var(--green); font-size: 14px; }
.ct-sub { font: 400 11px var(--f-mono); text-anchor: middle; fill: var(--ink-3); }
.out-path { fill: none; stroke: #d65fae; stroke-width: 2; stroke-dasharray: 5 6; }
.out-box { fill: rgba(255,255,255,.92); stroke: rgba(21,115,82,.35); }
.out-a { font: 600 18px var(--f-display); text-anchor: middle; fill: var(--ink); }
.out-b { font: 400 11px var(--f-mono); text-anchor: middle; fill: var(--green); }
.scene-cap { font-size: 12px; text-anchor: middle; fill: var(--ink-3); }
.progress { height: 3px; border-radius: 3px; background: rgba(12,29,24,.08); margin: 4px 8px 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--pink)); }

/* ---------- film ---------- */
.film-head { margin-bottom: clamp(36px, 5vw, 60px); }
.film-head .dim { font-weight: 300; }
.player { max-width: 1100px; margin: 0 auto; padding: 12px; border-radius: 34px; }
.player-bezel { border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #fdfefe, #e6ecea); box-shadow: 0 0 0 1px rgba(12,29,24,.1), 0 1px 0 #fff inset; }
.player-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: var(--ink-3); background: var(--chrome); border-bottom: 1px solid rgba(12,29,24,.08); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c3cdc8 70%); box-shadow: 0 0 0 1px rgba(12,29,24,.15); }
.lights i:first-child { background: radial-gradient(circle at 35% 30%, #fff, #f2a2cf 65%); }
.lights i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #fff, #c9ec9d 65%); }
.rec { color: #b5408d; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #f6f8f7; }
.screen video { width: 100%; height: 100%; display: block; object-fit: contain; background: #f6f8f7; }
.big-play { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); border: 0; cursor: pointer; transition: transform .5s var(--ease), opacity .4s; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.07); }
.big-play .tri { position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -9px; border-left: 30px solid var(--green); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.player.playing .big-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(180deg, #f7faf9, #e4ebe8); border-top: 1px solid rgba(255,255,255,.9); }
.ctl { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--chrome); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(12,29,24,.12), 0 3px 8px -4px rgba(12,29,24,.3); position: relative; flex: none; }
.ctl:active { transform: scale(.94); }
.i-play::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.playing .i-play::before, .playing .i-play::after { content: ""; position: absolute; top: 12px; width: 4px; height: 12px; background: var(--ink); border: 0; border-radius: 1px; }
.playing .i-play::before { left: 13px; } .playing .i-play::after { left: 19px; }
.i-vol::before { content: ""; position: absolute; left: 10px; top: 14px; width: 5px; height: 8px; background: var(--ink); border-radius: 1px; }
.i-vol::after { content: ""; position: absolute; left: 13px; top: 10px; border-right: 9px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.muted-on .i-vol { opacity: .35; }
.i-fs::before { content: ""; position: absolute; inset: 11px; border: 2px solid var(--ink); border-radius: 3px; clip-path: polygon(0 0, 40% 0, 40% 100%, 0 100%, 0 0, 100% 0, 100% 40%, 0 40%, 0 60%, 100% 60%, 100% 100%, 60% 100%, 60% 0, 100% 0); }
.time { color: var(--ink-2); min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.scrub { position: relative; flex: 1; height: 10px; border-radius: 6px; background: rgba(12,29,24,.08); box-shadow: 0 1px 2px rgba(12,29,24,.12) inset; cursor: pointer; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #157352, #2f9a6d 70%, var(--pink)); }
.scrub-knob { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 0 1px rgba(12,29,24,.2), 0 2px 6px rgba(12,29,24,.3); }

/* toy */
.toy { max-width: 1100px; margin: 18px auto 0; border-radius: var(--r-md); }
.toy-body { display: grid; grid-template-columns: 1.25fr 1fr .75fr; gap: 16px; align-items: stretch; }
.toy-col { display: flex; flex-direction: column; gap: 12px; }
.tag { display: inline-flex; align-self: flex-start; padding: 5px 11px; border-radius: 999px; font: 400 9.5px/1.2 var(--f-tech); letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.18); color: #fff; }
.tag-green { background: rgba(21,115,82,.1); color: var(--green); }
.nibbles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.nibbles button, .seg button { border: 0; cursor: pointer; border-radius: 10px; padding: 8px 0; font: 500 13px var(--f-mono); background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(12,29,24,.08), 0 1px 0 #fff inset; transition: background .2s, transform .2s, color .2s; }
.nibbles button:hover, .seg button:hover { transform: translateY(-1px); }
.nibbles button.on, .seg button.on { background: var(--green); color: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 8px 12px; font-size: 12px; }
.cipher, .result { padding: 16px; border-radius: 18px; }
.cipher { background: linear-gradient(160deg, rgba(42,132,96,.92), rgba(110,80,130,.85)); color: #e8fff2; }
.cipher code { word-break: break-all; line-height: 1.6; font-size: 12.5px; opacity: .92; }
.result { background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(21,115,82,.15); }
.res { display: flex; align-items: baseline; gap: 12px; margin-top: auto; }
.res span { color: var(--ink-3); font-size: 14px; }
.res b { font: 400 52px/1 var(--f-display); letter-spacing: -.05em; color: var(--green); }
.match { font: 500 12px var(--f-mono); color: var(--green); opacity: 0; transition: opacity .3s; }
.match.show { opacity: 1; }

/* ---------- record (horizontal climb) ---------- */
.record { position: relative; height: 420vh; }
.record-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.record-head { padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.record-head h2 { font-size: clamp(96px, 17vw, 260px); letter-spacing: -.07em; font-weight: 400; line-height: .85; font-variant-numeric: tabular-nums; }
.record-head p { margin: 14px 0 0 6px; }
.climb-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; z-index: 0; }
#climbArea { fill: url(#none); fill: rgba(47,154,109,.08); }
#climbLine { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.record-track { display: flex; gap: 16px; padding: 46px var(--gutter) 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2)); will-change: transform; position: relative; z-index: 1; width: max-content; }
.log {
  position: relative; flex: none; width: 260px; padding: 20px 20px 18px; border-radius: 20px;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.9) inset, 0 0 0 1px rgba(12,29,24,.06), 0 16px 40px -24px rgba(16,64,46,.4);
  transition: transform .5s var(--ease);
}
.log:hover { transform: translateY(-6px); }
.log time { font: 400 11px var(--f-mono); color: var(--ink-3); }
.log b { display: block; font: 500 34px/1.05 var(--f-display); letter-spacing: -.05em; margin: 8px 0 8px; }
.log p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.log .id { display: inline-block; margin-top: 14px; font: 400 10.5px var(--f-mono); color: var(--green); background: rgba(21,115,82,.08); padding: 4px 8px; border-radius: 6px; }
.log.dead b { font-size: 22px; letter-spacing: -.03em; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(217,139,196,.7); text-decoration-thickness: 2px; }
.log.dead { background: rgba(255,255,255,.4); }
.stamp { position: absolute; right: 14px; top: 14px; font: 400 10px/1 var(--f-tech); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); border: 1.5px solid currentColor; padding: 6px 8px; border-radius: 6px; transform: rotate(8deg); opacity: .8; }
.log.hi { background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(211,240,182,.6)); }
.log.hi b { color: var(--green); font-size: 44px; }
.log.ev b { font-size: 24px; letter-spacing: -.03em; }
.log.ev { background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(242,181,217,.3)); }
.log.end { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: 300px; }
.log.end b { font-size: 34px; }

/* ---------- research ---------- */
.research-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.research-head p { max-width: 24em; margin: 0; font-size: 17px; }
.shelf { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature { position: relative; border: 0; background: none; padding: 0; cursor: pointer; aspect-ratio: 1 / 1.1; width: 100%; max-width: 520px; }
.sheet { position: absolute; width: 66%; left: 17%; top: 4%; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(12,29,24,.05), 0 30px 60px -30px rgba(16,64,46,.45), 0 0 0 1px rgba(12,29,24,.06); transition: transform .9s var(--ease); }
.sheet img { width: 100%; }
.s1 { transform: rotate(-2deg); z-index: 3; }
.s2 { transform: rotate(4deg) translate(6%, 2%); z-index: 2; }
.s3 { transform: rotate(-7deg) translate(-8%, 3%); z-index: 1; }
.feature:hover .s1 { transform: rotate(-1deg) translateY(-3%); }
.feature:hover .s2 { transform: rotate(9deg) translate(26%, 4%); }
.feature:hover .s3 { transform: rotate(-12deg) translate(-26%, 6%); }
.feature-cap { position: absolute; left: 6%; bottom: 0; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255,255,255,.9) inset, 0 10px 30px -14px rgba(16,64,46,.4); text-align: left; }
.feature-cap b { font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.feature-cap .mono { color: var(--ink-3); }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs li { border-bottom: 1px solid var(--line); }
.docs button, .docs a { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: baseline; width: 100%; padding: 20px 4px; border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none; transition: padding .4s var(--ease), color .2s; }
.docs button:hover, .docs a:hover { padding-left: 14px; color: var(--green); }
.d-type { color: var(--pink-ink); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.d-title { font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.02em; line-height: 1.25; }
.d-meta { color: var(--ink-3); }
.peek { position: fixed; z-index: 60; left: 0; top: 0; width: 200px; pointer-events: none; opacity: 0; transform: translate(-50%, -110%) rotate(-3deg) scale(.9); transition: opacity .25s, transform .35s var(--ease); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(16,64,46,.45), 0 0 0 1px rgba(12,29,24,.08); background: #fff; }
.peek.on { opacity: 1; transform: translate(-50%, -110%) rotate(-3deg) scale(1); }
@media (hover: none) { .peek { display: none; } }

.figs { margin-top: clamp(70px, 9vw, 120px); }
.figs-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.figs-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 24px; cursor: grab; scrollbar-width: none; }
.figs-track::-webkit-scrollbar { display: none; }
.figs-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.figs-track figure { flex: none; width: min(360px, 78vw); margin: 0; scroll-snap-align: start; cursor: pointer; }
.figs-track img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(12,29,24,.07), 0 20px 40px -26px rgba(16,64,46,.45); transition: transform .6s var(--ease); user-select: none; }
.figs-track figure:hover img { transform: translateY(-6px) rotate(-.6deg); }
.figs-track figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.figs-track figcaption b { font: 400 10px var(--f-tech); letter-spacing: .1em; color: var(--green); margin-right: 8px; }
.fineprint { color: var(--ink-3); font-size: 11.5px; line-height: 1.7; margin: 30px 0 0; max-width: 70em; }

/* ---------- pilot ---------- */
.pilot { text-align: center; }
.pilot-mark { width: 110px; margin: 0 auto 30px; }
.pilot h2 { font-size: clamp(52px, 9vw, 132px); line-height: .9; letter-spacing: -.06em; }
.pilot .it { color: var(--green); }
.mail { max-width: 100%; display: inline-flex; gap: 12px; align-items: center; margin-top: 44px; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.02em; text-decoration: none; padding: 16px 28px; border-radius: 999px; background: var(--chrome); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(12,29,24,.12), 0 18px 40px -18px rgba(12,29,24,.45); transition: transform .4s var(--ease); }
.mail span { transition: transform .4s var(--ease); }
.mail:hover { transform: translateY(-3px); }
.mail:hover span { transform: translateX(6px); }

/* ---------- footer ---------- */
.foot { padding: 40px var(--gutter) 30px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; position: relative; }
.foot-plant { position: absolute; right: var(--gutter); top: -190px; width: 150px; margin: 0; transform: rotate(4deg); z-index: 1; }
.foot-plant img { border-radius: 4px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(12,29,24,.06), 0 24px 40px -20px rgba(16,64,46,.5); aspect-ratio: 4/5; object-fit: cover; }
.foot-plant figcaption { font-size: 10px; color: var(--ink-3); margin-top: 14px; }
.foot-word { font: 400 clamp(36px, 12.5vw, 200px)/.9 var(--f-tech); letter-spacing: -.04em; text-align: center; user-select: none; background: linear-gradient(180deg, rgba(12,29,24,.12), rgba(12,29,24,.02)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; }
.foot-word span { display: inline-block; }
.foot-word span.cx { color: var(--green); -webkit-text-fill-color: var(--green); opacity: .55; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.foot-row a { text-decoration: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.modal-scrim { position: absolute; inset: 0; background: rgba(233,239,236,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal-win { position: relative; width: min(980px, 100%); height: min(88vh, 1100px); display: flex; flex-direction: column; padding: 10px; border-radius: 28px; transform: scale(.94) translateY(20px); transition: transform .5s var(--ease); }
.modal.open .modal-win { transform: none; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 10px 10px; position: relative; z-index: 3; }
.modal-bar .lights i:first-child { cursor: pointer; }
.modal-actions { display: flex; gap: 4px; }
#modalTitle { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modalFrame { flex: 1; width: 100%; border: 0; border-radius: 18px; background: #fff; position: relative; z-index: 3; box-shadow: 0 0 0 1px rgba(12,29,24,.08); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .toy-body { grid-template-columns: 1fr 1fr; }
  .toy-body .toy-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 6px; }
  .hero-art { max-width: 400px; order: -1; }
  .scroll-hint { display: none; }
  .drop { height: 320vh; }
  .drop-dots { right: 10px; }
  .finding { height: 240vh; }
  .finding-sticky { grid-template-columns: 1fr; align-content: center; gap: 8px; padding-top: 80px; }
  .finding-copy h2 { font-size: 36px; }
  .steps { margin: 12px 0 0; }
  .steps li { display: none; padding-left: 36px; transform: none !important; }
  .steps li.on { display: block; }
  .fine-link { display: none; }
  .finding-stage { max-width: 440px; justify-self: center; padding: 8px; }
  .record { height: 520vh; }
  .log { width: 230px; }
  .shelf { grid-template-columns: 1fr; }
  .feature { max-width: 380px; margin: 0 auto; }
  .foot-plant { position: static; transform: rotate(-3deg); margin: 0 auto 30px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .status { display: none; }
  .nav-inner { padding-left: 14px; gap: 10px; }
  .brand-word { width: 96px; }
  .toy-body { grid-template-columns: 1fr; }
  .controls { gap: 8px; padding: 8px 10px; }
  .controls .time:first-of-type, #fsBtn { display: none; }
  .chip b { font-size: 17px; } .chip { padding: 8px 12px; }
  .c1 { left: 0; } .c2 { right: 0; }
  .big-play { width: 80px; height: 80px; }
  .big-play .tri { border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; margin: -13px 0 0 -7px; }
  .player { padding: 6px; border-radius: 24px; }
  .player-bezel { border-radius: 18px; }
  .docs button, .docs a { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .d-type { grid-column: 1 / -1; }
  .mail { font-size: 16px; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* results table */
.table-wrap { min-width: 0; }
.results { width: 100%; border-collapse: collapse; font-size: 15px; }
.results th { text-align: left; font: 400 10px var(--f-tech); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 12px 0; border-bottom: 1px solid var(--line); }
.results td { padding: 16px 10px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.results td:nth-child(2), .results td:nth-child(3) { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.results td:nth-child(3) { text-decoration: line-through; text-decoration-color: rgba(217,139,196,.7); }
.results td:last-child { white-space: nowrap; color: var(--green); }
.results td:last-child b { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.res-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
@media (max-width: 620px) {
  .results thead { display: none; }
  .results tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .results td { border: 0; padding: 0; }
  .results td:first-child { grid-column: 1 / -1; }
}

/* ---------- living gradient (WebGL) ---------- */
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s var(--ease); }
.sky-on #sky { opacity: 1; }
.sky-on .blob { display: none; }
.grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

