/* ──────────────────────────────────────────────────────────
   Lacrydia — site styles
   Tokens mirror the app (app/src/design/tokens.ts): near-black
   surfaces, a white accent, tight semibold type, round shapes.
   ────────────────────────────────────────────────────────── */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/Inter-var.woff2") format("woff2"); }

:root {
  --bg: #000;
  --surface: #0f0f10;
  --elev: #1a1a1b;
  --tx: #fff;
  --tx2: #9c9c9f;
  --tx3: #5e5e62;           /* decorative only (dots, rules, icons): 3.2:1 on black */
  --tx3t: #85858a;          /* the same grey for TEXT: >= 4.7:1 on every surface (WCAG AA) */
  --hi: #8e8e93;
  --line: rgba(255, 255, 255, 0.09);
  --overlay: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gut: clamp(20px, 4vw, 56px);
  --nav-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 400 16px/1.5 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; color: var(--hi); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
::selection { background: #fff; color: #000; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp { position: absolute; left: -9999px; }
.wrap { width: min(1240px, 100% - var(--gut) * 2); margin-inline: auto; }

.overline { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--tx2); }
.h-xl { font-size: clamp(38px, 6vw, 84px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.h-2xl { font-size: clamp(46px, 8.4vw, 124px); line-height: 0.94; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.sub { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; color: var(--tx2); max-width: 36em; text-wrap: pretty; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #000; font: 600 15px/1 var(--font); letter-spacing: -0.02em;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 40px -8px rgba(255, 255, 255, 0.35); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-ghost { background: var(--overlay); color: #fff; box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.04em; }
.brand .mk { display: block; height: 22px; width: 23px; }
.mark { display: block; width: 100%; height: 100%; overflow: visible; fill: #fff; }
.mark path { transition: transform 0.6s var(--ease) calc(var(--i, 0) * 30ms); }
.brand:hover .mark path { transform: translateX(30px); }
.nav-links { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--tx2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: var(--overlay); }

/* ── Entrance ── */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(0.25s + var(--i, 0) * 0.12s); }
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ──────────────────────── Hero ──────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 24px) var(--gut) 80px; }
.hero-world { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-lines path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; animation-delay: var(--ld, 0.6s); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hp-slot { position: absolute; left: 0; top: 0; }
.hp-px { will-change: transform; }
.hp-fl { animation: drift var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate; }
@keyframes drift { from { transform: translate3d(0, -7px, 0) rotate(-0.4deg); } to { transform: translate3d(0, 9px, 0) rotate(0.5deg); } }
/* rebuilt on resize: no replay */
.hero-world.static .hp-fl > .cl { animation: none; }
.hero-world.static .hero-lines path { animation: none; stroke-dashoffset: 0; }
@keyframes grow {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hp-fl > .cl { animation: grow 1.7s var(--ease) both; animation-delay: var(--gd, 0.3s); }

.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -18% -24%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 45%, transparent 100%); pointer-events: none; }
.hero h1 { font-size: clamp(42px, 7.4vw, 112px); line-height: 0.95; font-weight: 600; letter-spacing: -0.055em; text-wrap: balance; }
.lede { max-width: 31em; font-size: clamp(17px, 1.75vw, 21px); line-height: 1.45; color: var(--tx2); text-wrap: pretty; }
.lede strong { color: #fff; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); opacity: 0; animation: rise 1s var(--ease) 2s forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }

/* ──────────────── Photo clusters (a branch) ────────────────
   Sized by width only; every inner measure is in cqw so the same
   markup scales from a 90px hero speck to a 500px tree branch. */
.cl { position: absolute; left: 0; top: 0; width: var(--w, 160px); aspect-ratio: 1 / 0.82; container-type: inline-size; }
.cl .ph { position: absolute; overflow: hidden; background: #151516; border-radius: 12cqw; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4cqw 12cqw -3cqw rgba(0, 0, 0, 0.85); }
.cl .ph img { width: 100%; height: 100%; object-fit: cover; }
.cl .m { inset: 0; }
.cl .a { width: 44%; height: 52%; left: -18%; top: 54%; border-radius: 9cqw; }
.cl .b { width: 36%; height: 42%; right: -13%; top: -14%; border-radius: 8cqw; }
.cl .lab { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; pointer-events: none; }
.cl .lab b { display: block; font-size: clamp(12px, 8.5cqw, 22px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.cl .lab span { display: block; font-size: clamp(10.5px, 6.5cqw, 16px); color: var(--tx3t); font-weight: 500; margin-top: 2px; }
.cl .gal { position: absolute; left: 0; right: 0; top: -9%; height: 118%; display: flex; gap: 2.4cqw; opacity: 0; }
.cl .gal > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.4cqw; }
.cl .gal i { display: block; flex: var(--h, 1) 1 0; min-height: 0; overflow: hidden; border-radius: 3.6cqw; background: #151516; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 2cqw 6cqw -2cqw rgba(0, 0, 0, 0.75); opacity: 0; }
.cl .gal img { width: 100%; height: 100%; object-fit: cover; }

/* ──────────────────────── Statement ──────────────────────── */
.statement { padding: clamp(110px, 20vh, 240px) var(--gut); display: grid; place-items: center; }
.statement-text { max-width: 1060px; font-size: clamp(30px, 5.3vw, 76px); line-height: 1.06; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.statement-text .w { opacity: 0.16; }

/* ──────────────────────── The Tree (pinned) ──────────────────────── */
.tree { position: relative; height: 560svh; }
.tree-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(300px, 0.78fr) 1.6fr; gap: clamp(28px, 5vw, 84px); align-items: center; padding: calc(var(--nav-h) + 8px) var(--gut) 28px; }
.tree-text { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.steps { position: relative; display: grid; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); pointer-events: none; }
.step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step h2 { font-size: clamp(30px, 3.5vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; margin-bottom: 18px; text-wrap: balance; }
.step p { color: var(--tx2); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.55; max-width: 28em; }
.dots { display: flex; gap: 8px; }
.dots i { display: block; width: 7px; height: 7px; border-radius: 99px; background: var(--tx3); transition: width 0.5s var(--ease), background 0.4s; }
.dots i.on { width: 30px; background: #fff; }

.tree-stage { position: relative; height: min(100%, 760px); max-height: calc(100svh - var(--nav-h) - 44px); border-radius: 36px; overflow: hidden; background: radial-gradient(110% 80% at 50% 38%, #101012 0%, #050506 55%, #000 100%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 60px 160px -50px rgba(0, 0, 0, 0.95), 0 0 120px -60px rgba(255, 255, 255, 0.14); isolation: isolate; contain: layout paint style; }
/* Two dot grids at different depths: they drift at a fraction of the camera, so a flight through empty space still reads as motion. */
.tree-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(78% 72% at 50% 48%, #000 22%, transparent 100%); mask-image: radial-gradient(78% 72% at 50% 48%, #000 22%, transparent 100%); }
.tree-bg i { position: absolute; left: -128px; top: -128px; right: -128px; bottom: -128px; will-change: transform; }
.tree-bg .g1 { background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 0.9px, transparent 1.3px); background-size: 32px 32px; }
.tree-bg .g2 { background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1.5px, transparent 2.1px); background-size: 128px 128px; }
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-lines path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.62; }
.tree-lines path.halo { stroke-width: 7; opacity: 0.075; }
.tree-lines .hub { opacity: 0; }
.tree-lines .hub circle { fill: #fff; }
.tree-lines .hub circle:first-child { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.tree-nodes { position: absolute; inset: 0; contain: layout style; }
.tree-nodes .cl { will-change: transform, opacity; transform-origin: 50% 50%; }
.tree-nodes .cl .ph, .tree-nodes .cl .lab { will-change: opacity; }
.tree-nodes .cl .gal { will-change: opacity; }
.tree-nodes .cl .gal i { will-change: opacity, transform; }
.crumb { position: absolute; z-index: 5; left: 22px; top: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; padding: 9px 14px; border-radius: 999px; background: rgba(22, 22, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
.crumb span { color: var(--tx2); }
.crumb span.cur { color: #fff; animation: crumbIn 0.5s var(--ease) both; }
.crumb svg { width: 10px; height: 10px; stroke: var(--tx3); stroke-width: 2.4; }
@keyframes crumbIn { from { opacity: 0; transform: translateX(-6px); } }
.minimap { contain: strict; position: absolute; z-index: 5; right: 18px; bottom: 18px; width: 112px; height: 76px; border-radius: 16px; background: rgba(22, 22, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0, 0, 0, 0.8); overflow: hidden; }
.minimap i { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--tx2); }
.minimap i.root { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff; }
.minimap b { position: absolute; left: 0; top: 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, 0.1); min-width: 6px; min-height: 5px; }
.zoom { position: absolute; z-index: 5; left: 22px; bottom: 18px; min-width: 52px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx2); letter-spacing: 0.01em; padding: 8px 14px; border-radius: 999px; background: rgba(22, 22, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
.hint { position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--tx2); letter-spacing: 0.02em; padding: 8px 14px; border-radius: 999px; background: rgba(22, 22, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line); transition: opacity 0.5s; }
.hint span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: 0.35; } }
.hint.gone { opacity: 0; }
/* The finger: presses the branch the camera is about to fly into. Driven entirely by scroll (see render()). */
.tap { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.tap .dot { position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)); box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(0, 0, 0, 0.22), 0 12px 34px rgba(0, 0, 0, 0.6); will-change: transform; }
.tap .ring { position: absolute; left: -33px; top: -33px; width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.2); opacity: 0; will-change: transform, opacity; }

/* ──────────────────────── App / phones ──────────────────────── */
.app { padding: clamp(90px, 16vh, 190px) 0 clamp(70px, 12vh, 140px); position: relative; overflow: clip; }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(44px, 7vw, 90px); }
.section-head.center { align-items: center; text-align: center; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 56px); perspective: 1800px; }
.phone-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.slot-c { z-index: 2; }
.slot-c .phone { --k: 0.9; }
.phones { position: relative; }
.phones::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(980px, 110%); aspect-ratio: 1.2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 55%, transparent); pointer-events: none; }
.slot-l, .slot-r { margin-bottom: clamp(0px, 3vw, 44px); }
.phones.pre .slot-l { transform: translate(60%, 60px) rotate(0deg); opacity: 0; }
.phones.pre .slot-r { transform: translate(-60%, 60px); opacity: 0; }
.phones.pre .slot-c { transform: translateY(80px); opacity: 0; }
.cap { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx3t); }

.phone { --k: 0.74; position: relative; width: calc(410px * var(--k)); height: calc(864px * var(--k)); flex: none; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s linear; animation: bob 9s ease-in-out infinite alternate; }
.slot-l .phone { animation-delay: -3s; } .slot-r .phone { animation-delay: -6s; }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 6px; } }
/* titanium rim → black bezel → screen */
.phone::before { content: ""; position: absolute; inset: 0; border-radius: calc(68px * var(--k)); background: linear-gradient(135deg, #b9b9be 0%, #55555a 14%, #1d1d20 34%, #2b2b2e 52%, #1a1a1c 70%, #67676c 88%, #c4c4c9 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 70px 150px -30px rgba(255, 255, 255, 0.1), 0 60px 110px -20px rgba(0, 0, 0, 0.95); }
.phone .bz { position: absolute; inset: calc(4px * var(--k)); border-radius: calc(64px * var(--k)); background: #020203; box-shadow: inset 0 0 0 calc(1.5px * var(--k)) rgba(255, 255, 255, 0.07); }
.phone .bt { position: absolute; width: calc(5px * var(--k)); border-radius: calc(3px * var(--k)); background: linear-gradient(90deg, #3a3a3d, #8c8c91 55%, #4a4a4e); }
.phone .bt.a { left: calc(-3px * var(--k)); top: calc(128px * var(--k)); height: calc(38px * var(--k)); }
.phone .bt.v1 { left: calc(-3px * var(--k)); top: calc(196px * var(--k)); height: calc(68px * var(--k)); }
.phone .bt.v2 { left: calc(-3px * var(--k)); top: calc(282px * var(--k)); height: calc(68px * var(--k)); }
.phone .bt.p { right: calc(-3px * var(--k)); top: calc(232px * var(--k)); height: calc(104px * var(--k)); transform: scaleX(-1); }
.phone .scr { position: absolute; left: calc(10px * var(--k)); top: calc(10px * var(--k)); width: 390px; height: 844px; transform: scale(var(--k)); transform-origin: 0 0; border-radius: 58px; overflow: hidden; background: #000; color: #fff; font-family: var(--font); isolation: isolate; }
.phone .island { position: absolute; z-index: 40; left: 50%; top: 12px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; }
.phone .island i { position: absolute; right: 14px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3350 0%, #0b0d18 55%, #000 100%); box-shadow: 0 0 0 1.5px #08080a; }
.phone .sb { position: absolute; z-index: 35; left: 0; right: 0; top: 0; height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 8px 34px 0 50px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; background: linear-gradient(#000 10%, rgba(0, 0, 0, 0)); pointer-events: none; }
.phone .sb-r { display: flex; align-items: center; gap: 7px; }
.phone .hind { position: absolute; z-index: 40; left: 50%; bottom: 8px; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.phone .glare { position: absolute; inset: 0; z-index: 38; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.025) 24%, transparent 40%), radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }

/* live demos — run only while the phones are on screen */
.phones:not(.live) .scr * { animation-play-state: paused !important; }
.s-scroll { position: absolute; inset: 0; animation: feed 17s cubic-bezier(0.6, 0, 0.25, 1) infinite; }
@keyframes feed { 0%, 14% { transform: translateY(0); } 34%, 66% { transform: translateY(-528px); } 88%, 100% { transform: translateY(0); } }
.burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.burst .tap { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); opacity: 0; animation: tap 17s linear infinite; }
.burst .bh { position: absolute; width: 150px; height: 150px; fill: #fff; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.55)); opacity: 0; animation: heart 17s linear infinite; }
@keyframes tap { 0%, 41% { opacity: 0; transform: scale(0.5); } 43% { opacity: 1; transform: scale(0.9); } 47% { opacity: 0.9; transform: scale(0.8); } 50% { opacity: 1; transform: scale(0.9); } 56%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes heart { 0%, 49% { opacity: 0; transform: scale(0.2); } 52% { opacity: 1; transform: scale(1.3); } 54.5% { transform: scale(0.94); } 57% { transform: scale(1.06); } 63% { opacity: 1; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5) translateY(-34px); } }
.s-act { display: flex; align-items: center; gap: 18px; padding: 14px 4px 0; color: #fff; }
.s-act .ic { width: 28px; height: 28px; }
.s-act b { margin-left: auto; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx2); }
.s-act .lk .ic { animation: liked 17s linear infinite; }
@keyframes liked { 0%, 49% { fill: transparent; stroke: #fff; transform: scale(1); } 52% { fill: #fff; transform: scale(1.35); } 57%, 100% { fill: #fff; transform: scale(1); } 88%, 100% { fill: transparent; } }
.s-post2 { top: 1070px !important; }
.s-btn.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.is-tree .s-tree { transform-origin: 104px 262px; animation: treezoom 15s cubic-bezier(0.55, 0, 0.2, 1) infinite; }
@keyframes treezoom { 0%, 12% { transform: scale(1); } 38%, 62% { transform: scale(2.35); } 88%, 100% { transform: scale(1); } }
.is-tree .s-tree .cl .lab { transition: none; }
.s-plwrap { position: absolute; left: 0; right: 0; top: 232px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 8%); mask-image: linear-gradient(transparent, #000 8%); }
.s-plwrap .s-pl { top: 18px; animation: plscroll 20s cubic-bezier(0.5, 0, 0.5, 1) infinite alternate; }
@keyframes plscroll { from { transform: translateY(0); } to { transform: translateY(-520px); } }

/* screen parts */
.s-top { position: absolute; z-index: 5; left: 20px; right: 20px; top: 66px; display: flex; justify-content: space-between; align-items: center; }
.s-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.s-btn .ic { width: 21px; height: 21px; }
.s-btn.av { font-size: 18px; font-weight: 600; }
.s-btn em { position: absolute; top: -5px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #000; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.s-ico { display: flex; gap: 10px; }
.s-hey { position: absolute; top: 128px; left: 20px; font-size: 42px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; }
.s-stories { position: absolute; top: 196px; left: 0; right: 0; display: flex; gap: 14px; padding: 0 20px; }
.s-st { width: 78px; flex: none; text-align: center; font-size: 12px; color: var(--tx2); font-weight: 500; }
.s-st .ring { width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: #fff; margin-bottom: 8px; }
.s-st .ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #000; object-fit: cover; }
.s-st .ring.you { background: var(--elev); display: grid; place-items: center; font-size: 28px; font-weight: 600; color: #fff; position: relative; }
.s-st .ring.you b { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; border: 3px solid #000; display: grid; place-items: center; }
.s-st .ring.you b .ic { width: 12px; height: 12px; stroke-width: 3; }
.s-otd { position: absolute; top: 312px; left: 20px; right: 20px; height: 100px; border-radius: 28px; background: var(--elev); display: flex; align-items: center; gap: 18px; padding: 0 18px; }
.s-otd .th { display: flex; }
.s-otd .th img { width: 54px; height: 72px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 3px var(--elev); }
.s-otd .th img + img { margin-left: -16px; }
.s-otd small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.11em; color: var(--tx2); text-transform: uppercase; margin-bottom: 4px; }
.s-otd strong { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.s-chips { position: absolute; top: 436px; left: 20px; display: flex; gap: 10px; }
.s-chip { height: 46px; padding: 0 22px; border-radius: 23px; background: var(--elev); display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.s-chip.on { background: #fff; color: #000; }
.s-post { position: absolute; top: 504px; left: 20px; right: 20px; }
.s-post .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.s-post .who .s-btn { width: 44px; height: 44px; }
.s-post .who b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.s-post .who small { font-size: 14px; color: var(--tx2); }
.s-post .photo { height: 420px; border-radius: 30px; overflow: hidden; }
.s-post .photo img { width: 100%; height: 100%; object-fit: cover; }

.s-tabs { position: absolute; z-index: 36; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 10px; padding: 8px; border-radius: 40px; background: rgba(18, 18, 19, 0.86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.s-tabs span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--elev); color: var(--tx2); }
.s-tabs span .ic { width: 22px; height: 22px; }
.s-tabs span.on { background: #fff; color: #000; width: 68px; height: 68px; }
.s-tabs { align-items: center; }

.s-head { position: absolute; z-index: 5; left: 20px; right: 20px; top: 62px; }
.s-head .overline { display: block; margin-bottom: 4px; }
.s-head .h4 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; }
.s-head p { margin-top: 6px; color: var(--tx2); font-size: 15px; }
.s-pl { position: absolute; left: 14px; right: 14px; top: 190px; display: flex; gap: 10px; }
.s-pl > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.s-pl img { width: 100%; border-radius: 20px; object-fit: cover; }
.s-bar { position: absolute; z-index: 36; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; gap: 6px; padding: 7px; border-radius: 34px; background: rgba(18, 18, 19, 0.88); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.s-bar span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--tx2); }
.s-bar .ic { width: 22px; height: 22px; }
.s-bar span.dim { opacity: 0.4; }
.s-tree { position: absolute; inset: 0; }
.s-tree .cl { position: absolute; }
.s-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-tree svg path { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }

/* ──────────────────────── Features / bento ──────────────────────── */
.features { padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 14vh, 170px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 360px; transition: box-shadow 0.4s, background 0.4s; }
.card:hover { background: #121214; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.card h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; text-wrap: balance; }
.card p { color: var(--tx2); font-size: 15.5px; line-height: 1.5; max-width: 30em; }
.card-copy { position: relative; z-index: 2; }

.c-playlists { grid-column: span 4; }
.c-privacy { grid-column: span 2; }
.c-memories { grid-column: span 2; }
.c-explore { grid-column: span 4; flex-direction: row; align-items: stretch; gap: 28px; min-height: 420px; }
.c-explore .card-copy { flex: 0 0 min(38%, 300px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.c-explore .chips { margin-top: 0; }
.c-messages { grid-column: span 3; }
.c-fast { grid-column: span 3; }

.pl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); align-items: end; }
.pl { min-width: 0; transition: transform 0.6s var(--ease); }
.pl:hover { transform: translateY(-8px); }
.pl .cv { aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: grid; gap: 3px; background: #000; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); }
.pl .cv img { width: 100%; height: 100%; object-fit: cover; }
.pl .cv.g4 { grid-template: 1fr 1fr / 1fr 1fr; }
.pl .cv.g3 { grid-template: 1fr 1fr / 1fr 1fr; }
.pl .cv.g3 img:first-child { grid-row: span 2; }
.pl .cv.g2 { grid-template: 1fr 1fr / 1fr; }
.pl b { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }
.pl span { font-size: 12.5px; color: var(--tx3t); font-weight: 500; }

.priv { display: flex; flex-direction: column; gap: 8px; }
.priv li { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--elev); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; transition: transform 0.5s var(--ease), background 0.3s; }
.priv li:hover { transform: translateX(4px); background: #222224; }
.pv { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--tx2); }
.priv li[data-p="public"] .pv { background: #fff; color: #000; }
.priv li[data-p="friends"] .pv { background: rgba(255, 255, 255, 0.16); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--elev); font-size: 13px; font-weight: 600; color: var(--tx2); }
.chip.on { background: #fff; color: #000; }
.mason { flex: 1; min-width: 0; display: flex; gap: 10px; margin: -34px -34px -34px 0; padding-top: 34px; mask-image: linear-gradient(#000 82%, transparent); -webkit-mask-image: linear-gradient(#000 82%, transparent); }
.mason > div { flex: 1; display: flex; flex-direction: column; gap: 10px; transition: transform 0.9s var(--ease); }
.mason > div:nth-child(2) { margin-top: 0; }
.mason > div:nth-child(3) { margin-top: 36px; }
.c-explore:hover .mason > div:nth-child(odd) { transform: translateY(-14px); }
.c-explore:hover .mason > div:nth-child(even) { transform: translateY(14px); }
.mason .t { position: relative; border-radius: 20px; overflow: hidden; }
.mason img { width: 100%; height: 100%; object-fit: cover; }
.mason .tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mason .tag .ic { width: 12px; height: 12px; }

.c-memories { justify-content: flex-start; gap: 22px; }
.c-memories .card-copy { margin-top: auto; }
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
.stories .st { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--tx2); }
.stories .st i { display: block; width: 68px; height: 68px; border-radius: 50%; padding: 2.5px; background: #fff; transition: transform 0.5s var(--ease); }
.stories .st:hover i { transform: translateY(-5px) scale(1.07); }
.stories .st img { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--surface); object-fit: cover; }
.otd { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 22px; background: var(--elev); }
.otd-thumbs { display: flex; }
.otd-thumbs img { width: 46px; height: 60px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 3px var(--elev); }
.otd-thumbs img + img { margin-left: -14px; }
.otd .overline { display: block; font-size: 10.5px; margin-bottom: 3px; }
.otd strong { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; border-radius: 22px; padding: 11px 16px; font-size: 15px; line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.bub.them { align-self: flex-start; background: var(--elev); border-bottom-left-radius: 8px; }
.bub.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 8px; }
.bub img { width: 190px; height: 120px; object-fit: cover; border-radius: 14px; margin-bottom: 9px; }

.metrics { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.metrics div { padding-top: 14px; border-top: 1px solid var(--line); }
.metrics b { display: block; font-size: clamp(34px, 3.8vw, 54px); line-height: 1; font-weight: 600; letter-spacing: -0.05em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.metrics span { display: block; font-size: 13px; line-height: 1.35; color: var(--tx2); }

/* ──────────────────────── Photo wall ──────────────────────── */
.wall { position: relative; padding: 24px 0; display: grid; gap: 18px; overflow: hidden; }
.wall-row { display: flex; gap: 18px; width: max-content; animation: marquee 90s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 110s; }
.wall-row img { height: clamp(190px, 26vw, 340px); width: auto; aspect-ratio: var(--ar, 1); object-fit: cover; border-radius: 28px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wall-title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.1)); padding: 0 var(--gut); }
.wall-title h2 { text-shadow: 0 8px 60px #000; }

/* ──────────────────────── Join ──────────────────────── */
.join { position: relative; padding: clamp(110px, 20vh, 240px) 0 clamp(90px, 14vh, 170px); overflow: hidden; isolation: isolate; }
.join-glow { position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 55%, transparent 100%); }
.join-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.join-mark { display: block; height: 82px; width: 85px; filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.35)); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-12px); } }
.signup { display: flex; gap: 10px; width: min(560px, 100%); padding: 7px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); margin-top: 8px; transition: box-shadow 0.3s; }
.signup:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 80px -10px rgba(255, 255, 255, 0.2); }
.signup input[type="email"] { flex: 1; min-width: 0; height: 56px; padding: 0 12px 0 24px; border: 0; background: transparent; color: #fff; font: 500 16px var(--font); letter-spacing: -0.015em; }
.signup input::placeholder { color: var(--tx3t); opacity: 1; }
.signup input:focus { outline: none; }
.signup .btn-lg { height: 56px; }
.form-note { font-size: 14px; color: var(--tx3t); min-height: 21px; }
.form-note.ok { color: #fff; }
.form-note.err { color: #ff8a8a; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 6px 2px; }

/* ──────────────────────── Footer ──────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--tx3t); }
.footer p a { padding: 6px 3px; }
.footer p a:hover { color: var(--tx); }
.footer .brand { font-size: 16px; }
.footer .brand .mk { height: 18px; width: 19px; }

/* ──────────────────────── Responsive ──────────────────────── */
@media (max-width: 1100px) {
  .bento { grid-auto-flow: dense; }
  .phone { --k: 0.58; }
  .slot-c .phone { --k: 0.76; }
  .c-playlists, .c-explore { grid-column: span 6; }
  .c-privacy, .c-memories { grid-column: span 3; }
  .c-messages, .c-fast { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .tree-pin { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; padding-bottom: 20px; }
  .tree-stage { order: -1; max-height: none; height: 100%; border-radius: 28px; }
  .tree-text { max-width: none; gap: 14px; }
  .step h2 { font-size: clamp(25px, 7vw, 34px); margin-bottom: 10px; }
  .step p { font-size: 14.5px; line-height: 1.45; }
  .steps { min-height: 150px; }
  .minimap { width: 88px; height: 60px; right: 12px; bottom: 12px; }
  .hint { display: none; }
  .crumb { left: 14px; top: 14px; }
  .zoom { left: 14px; bottom: 12px; padding: 7px 12px; }
  .phones { gap: 0; }
  .phone { --k: 0.5; }
  .slot-c .phone { --k: 0.62; }
  .slot-l .phone, .slot-r .phone { --k: 0.44; }
  .phone-slot .cap { display: none; }
  .slot-l { margin-right: -34px; }
  .slot-r { margin-left: -34px; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .card, .c-playlists, .c-privacy, .c-explore, .c-memories, .c-messages, .c-fast { grid-column: auto; min-height: 0; }
  .c-explore { flex-direction: column; }
  .c-explore .card-copy { flex: none; }
  .mason { margin: 0 -22px -22px 0; height: 360px; padding-top: 0; }
  .pl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .metrics { grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
  .hero { padding-bottom: 60px; }
  .cta-row .btn-lg { height: 52px; padding: 0 24px; }
  .signup { flex-direction: column; border-radius: 28px; padding: 8px; }
  .signup input[type="email"] { flex: none; width: 100%; height: 54px; text-align: center; padding: 0 12px; }
  .signup .btn-lg { width: 100%; }
  .foot-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }
@media (max-width: 760px) and (max-height: 780px) {
  .hero-copy { gap: 15px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 16px; line-height: 1.4; }
  .cta-row { margin-top: 2px; gap: 10px; }
  .cta-row .btn-lg { height: 48px; }
}
@media (max-width: 520px) {
  .phone { --k: 0.4; }
  .slot-c .phone { --k: 0.5; }
  .slot-l .phone, .slot-r .phone { --k: 0.36; }
  .slot-l { margin-right: -28px; } .slot-r { margin-left: -28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wall-row { animation: none; }
}


/* ──────────────────────── Premium layer ──────────────────────── */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 99px; background: #fff; color: #000; font-weight: 600; font-size: 14px; transition: top 0.3s var(--ease); }
.skip:focus { top: 14px; }
.progress { position: fixed; z-index: 70; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.2), #fff); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@media (hover: none) { body::after { display: none; } }

/* intro: the slats of the L slide in from the bottom up, then the page opens */
.intro { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-mark { width: 96px; height: 92px; display: block; }
.intro-mark path { animation: slat 0.9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: none; }
@keyframes slat { from { transform: translateX(-170px); opacity: 0; } to { transform: none; opacity: 1; } }
.intro.done .intro-mark { transform: scale(1.35); transition: transform 0.7s var(--ease); }
.intro-on .rise, .intro-on .scroll-cue { animation-play-state: paused; }
.intro-on .hp-fl > .cl, .intro-on .hero-lines path { animation-play-state: paused; }

/* spotlight cards */
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.card::before { z-index: 1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.075), transparent 46%); }
.card::after { z-index: 3; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 62%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }

/* hero branches open a little when you hover them */
.hero .cl .ph { transition: transform 0.7s var(--ease), box-shadow 0.5s; }
.hero .cl:hover .m { transform: scale(1.05); }
.hero .cl:hover .a { transform: translate(-9%, 8%) rotate(-3deg); }
.hero .cl:hover .b { transform: translate(9%, -8%) rotate(3deg); }
.hero .cl { cursor: default; }

.btn { translate: var(--mtx, 0) var(--mty, 0); }
.nav-links a.active { color: #fff; background: var(--overlay); }

/* headings: slow blur-rise as they enter */
.js .h-xl, .js .h-2xl { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.js .h-xl.in, .js .h-2xl.in { opacity: 1; transform: none; filter: none; }
.js .wall-title .h-xl { transition-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) { .js .h-xl, .js .h-2xl { opacity: 1; transform: none; filter: none; } .intro { display: none; } body::after { display: none; } }


/* ── Coming soon ── */
.soon { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: #fff; }
.soon i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.store { display: flex; align-items: center; gap: 14px; min-width: 176px; padding: 13px 24px 13px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: default; transition: box-shadow 0.4s, transform 0.5s var(--ease); }
.store:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.store .ic { width: 28px; height: 28px; color: var(--tx2); stroke-width: 1.5; }
.store small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx3t); margin-bottom: 3px; }
.store b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

/* ── Legal pages (privacy, terms, support, delete-account). Additive: nothing above depends on these. ── */
.legal-page { background: var(--bg); }
.legal-bar { border-bottom: 1px solid var(--line); }
.legal-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 16px; }
.legal-bar .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.legal-bar .brand img { height: 22px; width: auto; }
.legal-bar nav { display: flex; gap: 6px 18px; font-size: 14px; color: var(--tx2); flex-wrap: wrap; justify-content: flex-end; }
.legal-bar nav a:hover, .legal-bar nav a[aria-current="page"] { color: var(--tx); }
.legal { width: min(720px, 100% - var(--gut) * 2); margin: 0 auto; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.legal h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.legal .meta { margin-top: 14px; color: var(--tx2); font-size: 14px; }
.legal h2 { margin-top: 44px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.legal h3 { margin-top: 24px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { color: #d6d6d8; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 1.25em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-top: 6px; padding-left: 4px; }
.legal li::marker { color: var(--tx3); }
.legal a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--tx3); text-underline-offset: 3px; }
.legal a:not(.btn):hover { text-decoration-color: #fff; }
.legal strong { color: #fff; font-weight: 600; }
.legal .lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--tx2); }
.legal .note { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal .note p { margin: 0; font-size: 15px; }
.legal .steps { counter-reset: s; list-style: none; padding: 0; }
.legal .steps li { counter-increment: s; position: relative; padding: 14px 0 14px 48px; margin: 0; border-top: 1px solid var(--line); }
.legal .steps li:last-child { border-bottom: 1px solid var(--line); }
.legal .steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--overlay); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.legal .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); color: #d6d6d8; }
.legal th { color: var(--tx2); font-weight: 500; width: 34%; }
.legal .todo { background: #fff3a8; color: #000; padding: 0 5px; border-radius: 4px; font-weight: 600; }
.legal-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--tx3t); }
.legal-foot nav { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.legal-foot nav a, .legal-bar nav a { padding: 6px 2px; }
.legal-foot a:hover { color: var(--tx); }
@media (max-width: 560px) { .legal-bar nav { display: none; } .legal th { width: 40%; } }

/* ──────────────────────── Waitlist form states, safe areas ──────────────────────── */
.signup:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px rgba(255, 138, 138, 0.8); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: progress; opacity: 0.72; transform: none; box-shadow: none; }
.nav { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
@media (forced-colors: active) { .signup { border: 1px solid CanvasText; } .btn { border: 1px solid ButtonText; } }
main[tabindex="-1"]:focus { outline: none; }
