/* Magntc — magntc.com
   Tokens are the app's own (core/design token/Colors.kt and Theme.Palette): accent #FF5A5F with
   the #FF6C70 → #F04C55 CTA gradient, warm paper #F2EFEC, ink #121212, night #0B0B0D.
   Typeface: Inter — the app's own (Android bundles it to match iOS's SF Pro). The wordmark uses
   SF Pro Rounded where the platform has it, exactly as the app does.
   Scroll choreography: site.js writes one progress value per pinned scene and per element
   (--e entering, --o leaving, --r a range), and the CSS below turns those into motion. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/assets/fonts/InterDisplay-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F2EFEC; --surface: #FFFFFF; --ink: #121212; --ink-2: rgba(18,18,18,.66); --ink-3: rgba(18,18,18,.52);
  --hair: rgba(18,18,18,.10); --accent: #FF5A5F; --accent-top: #FF6C70; --accent-bottom: #F04C55;
  --accent-ink: #C6333D; --accent-wash: #FFE9E9; --glass-bg: rgba(255,255,255,.74); --app-bg: #F2EFEC;
  --verified: #0A84FF; --calm: #5E5CE6; --device: #1C1C1E;
  --shadow: 0 40px 90px -40px rgba(18,18,18,.35); --shadow-cta: 0 14px 30px -12px rgba(255,90,95,.6);
  --radius: 28px; --gutter: clamp(16px, 4vw, 48px); --nav-h: 68px;

  /* The café */
  --wall: #F6E7DD; --floor: #E9D2C2; --trim: #E2C3AE; --sky-top: #FFD3BC; --sky-bottom: #FFF1E6; --sun: #FFB088;
  --lamp: #3B2F2A; --glow: rgba(255,190,120,.24); --pot: #D9876A; --leaf: #6FAF8B; --leaf-2: #4F9473;
  --book: #C9A27E; --door: #E8CDB9; --glass: #FBEFE6; --chair: #D7B49A; --table: #8A5E46; --table-top: #A9765A;
  --cup: #FFFDFB; --cup-rim: #D4B29A; --him-shirt: #2F3A56; --him-collar: #F2EFEC; --him-skin: #A86B4A; --him-hair: #1F1A17;
  --her-dress: #FF5A5F; --her-skin: #C98B67; --her-hair: #2A1B14; --trunk: #8A5E46;
  /* Places */
  --p-restaurant: #F9E3D6; --p-floor: #E9C9B4; --p-sky: #DCEBFF; --p-lawn: #BFE3C6; --p-building: #FBF6F1;
  --p-column: #E2D6CA; --p-night: #1B1630; --p-stage: #3A3256; --p-crowd: #4A4266; --p-cabin: #EDEAF4;
  --p-window: #BFD8F6; --p-seat: #5C6E9A; --p-sea-sky: #D8F0FF; --p-hull: #FFFFFF; --p-deck: #F3F0EA;
  --p-sea: #7CC4E8; --p-sand: #F4DFB0;
}

/* Dark: the system's choice until the visitor makes their own with the switch in the nav.
   The same tokens twice, because CSS has no way to say "this media query, or this attribute". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0D; --surface: #17171A; --ink: #F5F5F7; --ink-2: rgba(245,245,247,.7); --ink-3: rgba(245,245,247,.52);
    --hair: rgba(245,245,247,.12); --accent: #FF7176; --accent-ink: #FF9A9E; --accent-wash: #3A2226;
    --glass-bg: rgba(23,23,26,.74); --app-bg: #0B0B0D; --device: #2C2C30; --shadow: 0 40px 90px -40px rgba(0,0,0,.8);
    --wall: #2B2125; --floor: #1E171A; --trim: #3B2E31; --sky-top: #2E2246; --sky-bottom: #6B3D4B; --sun: #FFC79A;
    --lamp: #E8D8CC; --glow: rgba(255,170,100,.16); --pot: #B5674F; --leaf: #4F8E6E; --leaf-2: #3B7459;
    --book: #7E6450; --door: #35292C; --glass: #3B2E31; --chair: #4A3A36; --table: #5A3E30; --table-top: #74503E;
    --cup: #EDE6E1; --him-collar: #1E171A;
    --p-restaurant: #2B2125; --p-floor: #1E171A; --p-sky: #1C2433; --p-lawn: #22382B; --p-building: #2C2A2E;
    --p-column: #3B383E; --p-cabin: #1F1D26; --p-window: #2C3F5A; --p-seat: #3B4766; --p-sea-sky: #142233;
    --p-hull: #E6E6EA; --p-deck: #C9C5BE; --p-sea: #24506A; --p-sand: #7A6A46;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0D; --surface: #17171A; --ink: #F5F5F7; --ink-2: rgba(245,245,247,.7); --ink-3: rgba(245,245,247,.52);
  --hair: rgba(245,245,247,.12); --accent: #FF7176; --accent-ink: #FF9A9E; --accent-wash: #3A2226;
  --glass-bg: rgba(23,23,26,.74); --app-bg: #0B0B0D; --device: #2C2C30; --shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  --wall: #2B2125; --floor: #1E171A; --trim: #3B2E31; --sky-top: #2E2246; --sky-bottom: #6B3D4B; --sun: #FFC79A;
  --lamp: #E8D8CC; --glow: rgba(255,170,100,.16); --pot: #B5674F; --leaf: #4F8E6E; --leaf-2: #3B7459;
  --book: #7E6450; --door: #35292C; --glass: #3B2E31; --chair: #4A3A36; --table: #5A3E30; --table-top: #74503E;
  --cup: #EDE6E1; --him-collar: #1E171A;
  --p-restaurant: #2B2125; --p-floor: #1E171A; --p-sky: #1C2433; --p-lawn: #22382B; --p-building: #2C2A2E;
  --p-column: #3B383E; --p-cabin: #1F1D26; --p-window: #2C3F5A; --p-seat: #3B4766; --p-sea-sky: #142233;
  --p-hull: #E6E6EA; --p-deck: #C9C5BE; --p-sea: #24506A; --p-sand: #7A6A46;
}
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.display, .section-title {
  font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  margin: 0; text-wrap: balance;
}
.display { font-size: clamp(44px, 8.2vw, 112px); }
.section-title { font-size: clamp(36px, 5.6vw, 76px); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lede { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.fineprint { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.wordmark { font-family: ui-rounded, "SF Pro Rounded", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: .09em; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; font: 600 16px/1 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, var(--accent-top), #FA575D 55%, var(--accent-bottom));
  box-shadow: var(--shadow-cta); transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(255,90,95,.7); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { color: var(--ink); background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--hair); backdrop-filter: blur(14px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.link-arrow { display: inline-flex; margin-top: 26px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link-arrow::after { content: "→"; margin-left: 8px; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter); transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: var(--glass-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .theme-switch { margin-left: auto; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 90px; position: relative; overflow: hidden;
}
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-mark { position: relative; width: clamp(120px, 15vw, 176px); aspect-ratio: 1; margin-bottom: 34px; }
.mark-anim { position: relative; z-index: 1; width: 100%; height: 100%; }
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 99; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s cubic-bezier(.65,0,.35,1) .2s forwards; }
.mark-dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .7s cubic-bezier(.34,1.56,.64,1) 1.35s forwards, breathe 4s ease-in-out 2.4s infinite; }
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 3.6s ease-out 2s infinite; }
.ripple:nth-child(2) { animation-delay: 3.2s; } .ripple:nth-child(3) { animation-delay: 4.4s; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: cue 1.8s ease-in-out infinite; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ripple { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* ── Pinned scenes ────────────────────────────────────────────────────────── */
.scene { position: relative; height: calc(var(--len, 4) * 100vh); height: calc(var(--len, 4) * 100svh); }
.sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: calc(var(--nav-h) + 18px) var(--gutter) 28px;
}
.scene-head { text-align: center; width: 100%; max-width: 1000px; }
.captions { position: relative; height: clamp(84px, 13vh, 150px); }
.caption {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(30px, 4.8vw, 64px); margin: 0; text-wrap: balance;
}
.stage {
  position: relative; margin: 14px auto 0; width: min(100%, 1180px, calc((100svh - var(--nav-h) - 230px) * 12 / 7));
  aspect-ratio: 12 / 7; border-radius: clamp(20px, 3vw, 36px); overflow: hidden; background: var(--wall);
  box-shadow: var(--shadow);
}
.stage > svg { width: 100%; height: 100%; }

/* Motion primitives. With no script everything simply shows, so the page reads without JS. */
.js .fx { opacity: calc(var(--e, 0) * (1 - var(--o, 0))); transform: translateY(calc((1 - var(--e, 0)) * 22px)); will-change: opacity, transform; }
.js .fx-pop { opacity: calc(var(--e, 0) * (1 - var(--o, 0))); transform: scale(calc(.6 + var(--e, 0) * .4)); transform-box: fill-box; transform-origin: center; }
.js .caption.fx { transform: translateY(calc((1 - var(--e, 0)) * 26px - var(--o, 0) * 18px)); }
.js .fx-card { opacity: calc(var(--e, 0) * (1 - var(--o, 0))); transform: translateY(calc((1 - var(--e, 0)) * 60%)); }
.js .fx-phone { transform: translateY(calc((1 - var(--e, 0)) * 120%)); }

/* Story 1 — the glance, the doubt, the exit */
.him, .him-head, .her, .her-arm { transform-box: view-box; }
.him { transform: translateX(calc(var(--r, 0) * 6px - var(--rb, 0) * 4px)); }
.him-head { transform-origin: 360px 352px; transform: rotate(calc(var(--r, 0) * 7deg - var(--rb, 0) * 15deg)) translateY(calc(var(--rb, 0) * 5px)); }
.js .her, .js .her-arm { opacity: calc(1 - var(--r, 0)); transform: translateX(calc(var(--r, 0) * 230px)); }
.js .glance { opacity: calc(var(--e, 0) * (1 - var(--o, 0))); }
.glance path { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.steam path { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; opacity: .5; animation: steam 3s ease-in-out infinite; }
.steam path:nth-child(even) { animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .55; } 100% { transform: translateY(-10px); opacity: 0; } }

.bubbles { position: absolute; left: 3%; top: 4%; width: 44%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bubble {
  position: relative; margin: 0; padding: 10px 16px; border-radius: 20px; background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(18,18,18,.35);
  font-size: clamp(12px, 1.5vw, 18px); font-weight: 500; line-height: 1.3;
}
.bubble-final { color: var(--accent-ink); font-weight: 600; }
.bubble:last-of-type::after { content: ""; position: absolute; left: 62%; bottom: -16px; width: 12px; height: 12px; border-radius: 50%; background: var(--glass-bg); }

/* Story 2 — open Magntc */
.stage-open { background: var(--wall); }
.rings circle { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rings.on circle { animation: ring 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
.rings.on circle:nth-child(2) { animation-delay: .85s; } .rings.on circle:nth-child(3) { animation-delay: 1.7s; }
@keyframes ring { 0% { transform: scale(.25); opacity: .95; } 100% { transform: scale(5.2); opacity: 0; } }
.her-phone-screen { fill: var(--trim); transition: fill .4s ease; }
.her-phone.on .her-phone-screen { fill: var(--accent); }

.phone {
  position: absolute; right: 1.5%; bottom: -3%; width: clamp(140px, 21%, 260px); aspect-ratio: 9 / 19.2; z-index: 2;
  padding: 7px; border-radius: 15% / 7.2%; background: var(--device); box-shadow: 0 50px 80px -30px rgba(0,0,0,.55);
}
.phone-screen { position: relative; height: 100%; border-radius: 12.5% / 6%; overflow: hidden; background: var(--app-bg); }
.app-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 11% 0 4%; font-size: clamp(9px, 1.05vw, 13px); font-weight: 600; }
.app-pulse { position: absolute; right: 9%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,90,95,.6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(255,90,95,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,95,0); } }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22% 7% 7%; }
.screen-search p { margin: 16px 0 0; font-size: clamp(9px, 1vw, 12px); color: var(--ink-2); }
.search-rings { position: relative; width: 56%; aspect-ratio: 1; }
.search-rings span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 2.4s ease-out infinite; }
.search-rings span:nth-child(2) { animation-delay: .8s; } .search-rings span:nth-child(3) { animation-delay: 1.6s; }
.search-rings i { position: absolute; inset: 38%; border-radius: 50%; background: var(--accent); }
.screen-card { justify-content: flex-start; padding-top: 20%; }
.pcard { position: relative; width: 100%; flex: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.pcard-photo, .pcard-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard-photo svg { object-fit: cover; }
.pcard-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30% 9% 8%; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.pcard-name { margin: 0; font-size: clamp(11px, 1.45vw, 18px); font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 5px; }
.verified { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--verified); }
.pcard-line, .pcard-tags { margin: 3px 0 0; font-size: clamp(7px, .85vw, 11px); opacity: .9; }
.pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: clamp(7px, .8vw, 10px); font-weight: 600; backdrop-filter: blur(6px); }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.pcard-actions { display: flex; gap: 10%; justify-content: center; padding-top: 6%; width: 100%; }
.act { display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); font-size: clamp(10px, 1.3vw, 17px); }
.act-pass { color: var(--ink-3); } .act-star { color: var(--calm); }
.act-like { color: var(--accent); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s; }
.act-like.on { background: var(--accent); color: #fff; transform: scale(1.18); }
.screen-match { background: linear-gradient(170deg, var(--accent-top), var(--accent-bottom)); color: #fff; text-align: center; padding: 18% 9% 12%; }
.match-mark { width: 62%; overflow: visible; }
.match-ring { fill: none; stroke: #fff; stroke-width: 99; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--e, 0) * 100); }
.match-dot-a, .match-dot-b { fill: #fff; transform-box: view-box; }
.match-dot-a { transform: translate(calc(var(--e, 0) * 91.5px), calc(var(--e, 0) * 22.5px)) scale(calc(1 + var(--e, 0) * .2)); transform-origin: 420px 660px; }
.match-dot-b { transform: translate(calc(var(--e, 0) * -92.5px), calc(var(--e, 0) * 22.5px)) scale(calc(1 + var(--e, 0) * .2)); transform-origin: 604px 660px; }
.match-title { margin: 12% 0 0; font-family: "Inter Display", "Inter", sans-serif; font-weight: 700; font-size: clamp(14px, 2vw, 26px); letter-spacing: -.02em; }
.match-sub { margin: 4% 0 10%; font-size: clamp(8px, .95vw, 12px); opacity: .92; }
.screen-match .btn { background: #fff; color: var(--accent-ink); box-shadow: none; min-height: 0; padding: 7% 14%; font-size: clamp(9px, 1vw, 13px); }
.js .hearts { transform-box: view-box; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { padding: clamp(90px, 14vh, 160px) var(--gutter); text-align: center; max-width: 1200px; margin: 0 auto; }
.steps-grid { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step { padding: 36px 28px 32px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--hair), var(--shadow); text-align: left; counter-increment: step; position: relative; }
.step::before { content: counter(step); position: absolute; top: 26px; right: 28px; font: 700 15px/1 "Inter Display", sans-serif; color: var(--ink-3); }
.step h3 { margin: 26px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); }
.step-art { position: relative; height: 96px; display: flex; align-items: center; }
.step-art img { border-radius: 18px; box-shadow: var(--shadow-cta); }
.step-rings span { position: absolute; left: 34px; top: 34px; width: 28px; height: 28px; margin: -0px; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2.6s ease-out infinite; }
.step-rings span:nth-child(2) { animation-delay: .86s; } .step-rings span:nth-child(3) { animation-delay: 1.72s; }
.step-rings i { position: absolute; left: 40px; top: 40px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.step-rings b { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: 0; animation: appear 2.6s ease-in-out infinite; }
.step-rings b:nth-of-type(1) { left: 120px; top: 22px; } .step-rings b:nth-of-type(2) { left: 150px; top: 62px; animation-delay: 1.1s; }
@keyframes appear { 0%, 25% { opacity: 0; transform: scale(.4); } 45%, 80% { opacity: .85; transform: scale(1); } 100% { opacity: 0; } }
.step-match i { position: absolute; top: 34px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); animation: meet 3s ease-in-out infinite; }
.step-match .mm-you { left: 20px; } .step-match .mm-them { left: 110px; background: var(--accent-top); animation-name: meet-b; }
@keyframes meet { 0%, 15% { transform: translateX(0); } 50%, 75% { transform: translateX(40px); } 100% { transform: translateX(0); } }
@keyframes meet-b { 0%, 15% { transform: translateX(0); } 50%, 75% { transform: translateX(-40px); } 100% { transform: translateX(0); } }

/* ── Anywhere: a horizontal track pinned to vertical scroll ──────────────── */
.scene-track { height: calc(100svh + var(--shift, 0) * 1px); }
.scene-track .sticky { align-items: stretch; justify-content: center; padding-left: 0; padding-right: 0; }
.track-head { padding: 0 var(--gutter); max-width: 1200px; width: 100%; margin: 0 auto 28px; }
.track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; transform: translate3d(calc(var(--p, 0) * var(--shift, 0) * -1px), 0, 0); will-change: transform; }
.place { position: relative; width: clamp(270px, 32vw, 400px); flex: none; padding: 14px 14px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--hair), var(--shadow); }
.place-art { width: 100%; border-radius: 18px; }
.place h3 { margin: 20px 10px 6px; font-size: 22px; letter-spacing: -.02em; }
.place p { margin: 0 10px; color: var(--ink-2); font-size: 16px; }
.badge { position: absolute; top: 26px; left: 26px; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.mini-rings circle { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; opacity: 0; }
.mini-rings circle:nth-child(2) { animation-delay: 1.4s; }
.track-fine { padding: 0 var(--gutter); max-width: 1200px; width: 100%; margin: 26px auto 0; }

/* ── No signal ────────────────────────────────────────────────────────────── */
.offline { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.offline-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; border-radius: 40px; background: radial-gradient(circle at 50% 60%, var(--accent-wash), transparent 70%); display: grid; place-items: center; }
.bars { position: absolute; top: 14%; display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.bars i { width: 9px; border-radius: 3px; background: var(--ink); height: calc(var(--h) * 1%); transition: height .6s ease, opacity .6s ease; }
.bars i:nth-child(1) { --h: 30; --i: 3; } .bars i:nth-child(2) { --h: 55; --i: 2; } .bars i:nth-child(3) { --h: 78; --i: 1; } .bars i:nth-child(4) { --h: 100; --i: 0; }
.offline-art.in .bars i { height: 12%; opacity: .25; transition-delay: calc(var(--i, 0) * .15s + .4s); }
.no-signal { position: absolute; top: 28%; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .6s 1.2s; }
.offline-art.in .no-signal { opacity: 1; }
.two-phones { display: flex; align-items: center; gap: 14px; margin-top: 50px; }
.mini-phone { position: relative; width: 66px; height: 132px; border-radius: 16px; background: var(--device); box-shadow: 0 18px 30px -16px rgba(0,0,0,.45); }
.mini-phone::after { content: ""; position: absolute; inset: 5px; border-radius: 12px; background: linear-gradient(170deg, var(--accent-top), var(--accent-bottom)); }
.mini-wave { display: flex; gap: 10px; }
.mini-wave i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: hop 1.6s ease-in-out infinite; }
.mini-wave i:nth-child(2) { animation-delay: .2s; } .mini-wave i:nth-child(3) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-10px); opacity: 1; } }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features { max-width: 1200px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.feature-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 var(--hair); transition: transform .3s ease, box-shadow .3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--hair), var(--shadow); }
.feature h3 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.ficon { display: block; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-wash) center / 28px no-repeat; }
.ficon-near     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23FF5A5F'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E"); }
.ficon-offline  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0M5.5 12a10 10 0 0 1 13 0M9 15.5a5 5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1.4' fill='%23FF5A5F'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.ficon-venue    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M14 14h3v3h-3zM18 18h3v3h-3z' fill='%23FF5A5F'/%3E%3C/svg%3E"); }
.ficon-consent  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M9 10.5l2 2 4-4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ficon-hide     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7c2.2 0 4 .8 5.6 1.9M22 12s-3.6 7-10 7c-2.2 0-4-.8-5.6-1.9'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.ficon-verified { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.6 2.2 3.4-.4.9 3.3 3 1.8-1.4 3.1 1.4 3.1-3 1.8-.9 3.3-3.4-.4L12 22l-2.6-2.2-3.4.4-.9-3.3-3-1.8L3.5 12 2.1 8.9l3-1.8.9-3.3 3.4.4z'/%3E%3Cpath d='M8.5 12l2.4 2.4 4.6-4.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ficon-report   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h11l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.ficon-date     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2.5M9 2h6'/%3E%3C/svg%3E"); }
.ficon-data     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A5F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }
.ficon-adult    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext x='12' y='16' text-anchor='middle' font-family='Arial' font-weight='700' font-size='10' fill='%23FF5A5F'%3E18%2B%3C/text%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23FF5A5F' stroke-width='2'/%3E%3C/svg%3E"); }

/* ── Safety ───────────────────────────────────────────────────────────────── */
.safety {
  margin: clamp(30px, 6vh, 60px) var(--gutter); border-radius: clamp(28px, 4vw, 48px); padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 90px);
  background: #0B0B0D; color: #F5F5F7; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(40px, 6vw, 90px); align-items: center;
  --ink-2: rgba(245,245,247,.72); --hair: rgba(245,245,247,.14);
}
.safety .eyebrow { color: #FF9A9E; }
.safety-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.safety-list li { padding-left: 28px; position: relative; color: var(--ink-2); }
.safety-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 4px rgba(255,90,95,.18); }
.safety-list strong { color: #F5F5F7; }
.safety .link-arrow { color: #FF9A9E; }
.hide-demo { justify-self: center; width: 100%; max-width: 420px; padding: 34px; border-radius: 36px; background: #17171A; box-shadow: inset 0 0 0 1px rgba(245,245,247,.08); text-align: center; }
.hide-radar { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hide-radar .hr { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #FF5A5F; opacity: 0; animation: ripple 2.8s ease-out infinite; }
.hide-radar .hr:nth-child(2) { animation-delay: .93s; } .hide-radar .hr:nth-child(3) { animation-delay: 1.86s; }
.hide-you { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 8px rgba(255,90,95,.2); transition: background .5s, box-shadow .5s; }
.hide-radar b { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #F5F5F7; transform: translate(var(--x), var(--y)); transition: opacity .5s, transform .6s ease; }
.hide-toggle { margin-top: 26px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 22px; border: 0; border-radius: 999px; background: #232327; color: #F5F5F7; font: 600 16px/1 "Inter", sans-serif; cursor: pointer; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #3A3A3F; transition: background .3s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.hide-status { margin: 16px 0 0; font-size: 14px; color: rgba(245,245,247,.6); }
.hide-demo[data-hidden="true"] .hr { animation: none; opacity: 0; }
.hide-demo[data-hidden="true"] .hide-you { background: #4A4A50; box-shadow: 0 0 0 8px rgba(255,255,255,.05); }
.hide-demo[data-hidden="true"] .hide-radar b { opacity: 0; transform: translate(calc(var(--x) * 1.6), calc(var(--y) * 1.6)); }
.hide-demo[data-hidden="true"] .switch { background: #FF5A5F; }
.hide-demo[data-hidden="true"] .switch span { transform: translateX(20px); }

/* ── Privacy ──────────────────────────────────────────────────────────────── */
.privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.privacy-art { order: 2; }
.map {
  position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; border-radius: 40px; overflow: hidden;
  background-color: var(--surface);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 44px 44px; box-shadow: var(--shadow);
}
.pin { position: absolute; left: 50%; top: 44%; width: 40px; height: 40px; margin: -40px 0 0 -20px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); transition: opacity 1s .6s, transform 1s .6s; }
.pin::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.soft { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; background: radial-gradient(circle, rgba(255,90,95,.32), transparent 66%); opacity: 0; transition: opacity 1.2s 1.2s, transform 1.6s 1.2s; }
.privacy-art.in .pin { opacity: 0; transform: rotate(-45deg) scale(.4) translate(10px, -10px); }
.privacy-art.in .soft { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── Get Magntc ───────────────────────────────────────────────────────────── */
.get { text-align: center; padding: clamp(100px, 16vh, 180px) var(--gutter); }
.get-mark { margin: 0 auto 40px; border-radius: 22px; box-shadow: var(--shadow-cta); }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 58px; padding: 8px 24px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 19px; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; opacity: .7; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hair); padding: 56px var(--gutter) 40px; max-width: 1280px; margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand p { margin: 12px 0 0; color: var(--ink-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); }
.footer-cols h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer-cols a { display: block; margin: 0 0 10px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer-cols a:hover { color: var(--ink); }
.footer-legal { margin: 44px 0 0; font-size: 13px; color: var(--ink-3); }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(3n+2) { --stagger: .08s; transition-delay: .08s; } .feature-grid .reveal:nth-child(3n) { --stagger: .16s; transition-delay: .16s; }
/* Cards that reveal and also tilt: the reveal keeps its stagger, the tilt never waits for it. */
.js .reveal.step, .js .reveal.feature {
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, rotate .55s cubic-bezier(.34,1.45,.64,1);
  transition-delay: var(--stagger, 0s), var(--stagger, 0s), 0s, 0s;
}
.js .reveal.step.tilting, .js .reveal.feature.tilting { transition-duration: .9s, .9s, .3s, .1s; transition-timing-function: cubic-bezier(.2,.7,.2,1), cubic-bezier(.2,.7,.2,1), ease, linear; }

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .stage { width: 100%; }
  /* Portrait stage: the café on top, both people and their rings in view, the phone beneath. */
  .stage-open { aspect-ratio: 3 / 4; background: var(--floor); }
  .stage-open .phone { right: auto; left: 50%; bottom: 2.5%; width: 40%; margin-left: -20%; }
  #story .stage { aspect-ratio: 3 / 4; background: var(--floor); }
  .bubbles { top: 64%; left: 6%; width: 88%; align-items: center; }
  .bubble:last-of-type::after { display: none; }
  .captions { height: 118px; }
  .place { width: 78vw; }
}

/* ── Reduced motion: the story as still frames, nothing moves ─────────────── */
/* ── Theme switch ─────────────────────────────────────────────────────────────
   After the Liquid Glass switch iOS has used since 26: a capsule track, a pill knob that swells
   into a clear glass lens while it is held, and a spring when it lands. Dark is "on". The track is
   a tiny sky — morning when light, night with stars when dark — so the switch says what it does
   without a label. site.js drives press, drag and the fade of the page itself. */
.theme-switch {
  --w: 64px; --h: 32px; --pad: 3px; --kw: 38px; --travel: calc(var(--w) - var(--kw) - 2 * var(--pad));
  position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; margin-right: -6px;
  border: 0; border-radius: 999px; background: none; cursor: pointer; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ts-track {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 1px 3px rgba(0,0,0,.18), 0 1px 0 var(--hair);
}
.ts-track::before, .ts-track::after { content: ""; position: absolute; inset: 0; transition: opacity .6s ease; }
.ts-track::before { background: linear-gradient(160deg, #BFE0FF 0%, #FFE3C9 100%); }
.ts-track::after { background: linear-gradient(160deg, #15142B 0%, #2D2452 100%); opacity: 0; }
.theme-switch[aria-checked="true"] .ts-track::after { opacity: 1; }
.ts-cloud {
  position: absolute; z-index: 1; right: 8px; top: 11px; width: 14px; height: 7px; border-radius: 7px;
  background: rgba(255,255,255,.95); box-shadow: 5px -3px 0 -1px rgba(255,255,255,.95);
  transition: opacity .4s ease, transform .6s cubic-bezier(.34,1.45,.64,1);
}
.theme-switch[aria-checked="true"] .ts-cloud { opacity: 0; transform: translateX(10px); }
.ts-stars i {
  position: absolute; z-index: 1; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  opacity: 0; transform: scale(.4); transition: opacity .5s ease .15s, transform .5s ease .15s;
}
.ts-stars i:nth-child(1) { left: 9px; top: 8px; } .ts-stars i:nth-child(2) { left: 17px; top: 19px; width: 3px; height: 3px; }
.ts-stars i:nth-child(3) { left: 24px; top: 10px; }
.theme-switch[aria-checked="true"] .ts-stars i { opacity: .95; transform: none; animation: twinkle 2.6s ease-in-out .6s infinite; }
.ts-stars i:nth-child(2) { animation-delay: 1.4s !important; } .ts-stars i:nth-child(3) { animation-delay: 2.1s !important; }
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }

.ts-knob {
  --kx: 0px;
  position: absolute; z-index: 2; top: var(--pad); left: var(--pad); width: var(--kw); height: calc(var(--h) - 2 * var(--pad));
  border-radius: 999px; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF, #F4F4F6);
  box-shadow: 0 2px 7px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.06), inset 0 1px 0 #fff;
  transform: translateX(var(--kx)) scale(var(--ks, 1), var(--ksy, 1));
  transition: transform .55s cubic-bezier(.34,1.42,.64,1), background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.theme-switch[aria-checked="true"] .ts-knob { --kx: var(--travel); background: linear-gradient(180deg, #F6F5FF, #E3E1F2); }
/* Held: the knob lifts off the track and turns into a lens you can see the sky through. */
.theme-switch.is-pressed .ts-knob {
  --ks: 1.24; --ksy: 1.14;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(1.5px) saturate(1.9) brightness(1.12); -webkit-backdrop-filter: blur(1.5px) saturate(1.9) brightness(1.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.7), inset 0 7px 10px rgba(255,255,255,.4), inset 0 -5px 9px rgba(255,255,255,.18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.theme-switch.is-dragging .ts-knob { transition: background .2s ease, box-shadow .2s ease; }
.ts-knob svg { position: absolute; width: 17px; height: 17px; transition: opacity .35s ease, transform .55s cubic-bezier(.34,1.45,.64,1); }
.ts-sun { color: #FF9F43; }
.ts-moon { color: #6E6BF0; opacity: 0; transform: rotate(-70deg) scale(.5); }
.theme-switch[aria-checked="true"] .ts-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
.theme-switch[aria-checked="true"] .ts-moon { opacity: 1; transform: none; }
.theme-switch.is-pressed .ts-knob svg { opacity: .35; }

/* Fallback fade for browsers that cannot animate the colour tokens themselves (site.js decides):
   every colour on the page eases to its new value instead. The switch keeps its own motion. */
html.theme-fading body, html.theme-fading body *:not(.theme-switch):not(.theme-switch *),
html.theme-fading body *:not(.theme-switch):not(.theme-switch *)::before,
html.theme-fading body *:not(.theme-switch):not(.theme-switch *)::after {
  transition-property: background-color, color, border-color, fill, stroke, stop-color, box-shadow, outline-color !important;
  transition-duration: var(--theme-fade, .9s) !important;
  transition-timing-function: var(--theme-ease, ease) !important;
  transition-delay: 0s !important;
}

/* ── Scroll progress ──────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-top), var(--accent-bottom));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

/* ── Magnet ───────────────────────────────────────────────────────────────────
   The mark and the calls to action lean toward the cursor. `translate` is its own property, so it
   adds to whatever transform the scroll choreography or the hover state is already using. */
[data-magnet] { transition: translate .45s cubic-bezier(.34,1.45,.64,1); }
.magnet-live [data-magnet] { transition: translate .12s linear; }

/* ── Cards that answer the cursor ─────────────────────────────────────────── */
.steps-grid, .feature-grid { perspective: 1000px; }
.step, .feature { isolation: isolate; transition: transform .3s ease, box-shadow .3s ease, rotate .5s cubic-bezier(.34,1.45,.64,1); }
.step.tilting, .feature.tilting { transition: transform .3s ease, box-shadow .3s ease, rotate .1s linear; }
.step::after, .feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%);
  transition: opacity .35s ease;
}
.feature { position: relative; }
.step.tilting::after, .feature.tilting::after { opacity: 1; }

/* ── Match, to try ────────────────────────────────────────────────────────── */
.step-match {
  width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.step-match:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 18px; }
.step-match i::after {
  content: "\2665"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; line-height: 1;
  opacity: 0; transform: scale(.3); transition: opacity .25s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.step-match.playing i { animation: none; transition: transform .7s cubic-bezier(.34,1.45,.64,1), box-shadow .35s ease; }
.step-match.liked-you .mm-you::after, .step-match.liked-them .mm-them::after { opacity: 1; transform: none; }
.step-match.liked-you .mm-you, .step-match.liked-them .mm-them { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent); }
.step-match.matched .mm-you { transform: translateX(31px) scale(1.08); }
.step-match.matched .mm-them { transform: translateX(-31px) scale(1.08); }
.mm-burst b { position: absolute; left: 77px; top: 46px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; }
.mm-burst b:nth-child(1) { --a: -90deg; } .mm-burst b:nth-child(2) { --a: -30deg; background: var(--accent-top); } .mm-burst b:nth-child(3) { --a: 30deg; }
.mm-burst b:nth-child(4) { --a: 90deg; background: var(--accent-top); } .mm-burst b:nth-child(5) { --a: 150deg; } .mm-burst b:nth-child(6) { --a: 210deg; background: var(--accent-top); }
.step-match.matched .mm-burst b { animation: burst .9s cubic-bezier(.2,.7,.3,1) .45s forwards; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(48px) scale(.35); }
}
.mm-hint {
  position: absolute; left: 20px; top: 74px; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-ink); white-space: nowrap; transition: opacity .25s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene { height: auto !important; }
  .sticky { position: relative; height: auto; }
  .captions { height: auto; }
  .js .caption.fx { position: static; opacity: 1; transform: none; font-size: clamp(22px, 3vw, 34px); margin: 4px 0; }
  .js .fx, .js .fx-pop, .js .fx-card, .js .reveal, .js .glance { opacity: 1; transform: none; }
  .js .fx-phone { transform: none; }
  .js .her, .js .her-arm { opacity: 1; transform: none; }
  .screen-search, .screen-card { display: none; }
  .mark-ring { stroke-dashoffset: 0; } .mark-dot { transform: none; }
  .match-ring { stroke-dashoffset: 0; }
  .track { transform: none; flex-wrap: wrap; width: auto; }
  .scene-track { height: auto; }
}

/* ── Document pages: legal, support, venue ────────────────────────────────── */
.doc { padding: calc(var(--nav-h) + clamp(32px, 6vh, 64px)) var(--gutter) 40px; }
.legal { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.legal h1 { font-family: "Inter Display", "Inter", sans-serif; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(38px, 5vw, 60px); margin: 0 0 12px; }
.legal h1 + p { color: var(--ink-3); font-size: 15px; margin-top: 0; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin: 52px 0 12px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal h3 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); text-underline-offset: 3px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal hr { border: 0; border-top: 1px solid var(--hair); margin: 44px 0; }
.legal code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--accent-wash); color: var(--accent-ink); }
.legal blockquote { margin: 24px 0; padding: 18px 22px; border-radius: 18px; background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.legal blockquote p { margin: 0; }
.legal .table { overflow-x: auto; margin: 22px 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hair); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.55; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.legal th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { color: var(--ink); min-width: 9em; }
/* "The short version" — the plain-language summary each document opens with. */
.legal #the-short-version + p + ul, .legal #the-short-version + ul { padding: 22px 26px 22px 46px; border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 var(--hair), var(--shadow); }
.legal mark.todo { background: #FFF1C2; color: #6B4E00; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.legal .lede { margin-top: 0; }
.holding, .venue { min-height: calc(100svh - 160px); padding-top: calc(var(--nav-h) + 30px); }
.page .doc .hero { padding-left: 0; padding-right: 0; }
