/* ==========================================================================
   Russ — the landing page
   Hand-written. No framework, no build step, no web fonts. The pigments are
   RussShared/Palette.swift and the party wash is the app's Today
   (PartyBackground.swift), so the page and the app are one object.
   Motion is driven by landing.js through custom properties (--p, --t);
   without JavaScript, or with Reduce Motion, every scene simply rests in its
   finished state.
   ========================================================================== */

@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --zoom { syntax: "<number>"; inherits: false; initial-value: 1; }

:root {
  color-scheme: light;
  --paper: #FBF5EC; --linen: #F8F1E6; --card: #FDF9F2;
  --ink: #161411; --ink-soft: #61584D; --ink-whisper: #736B61;
  --shadow: #1F1B17; --cream: #FFF7E8;
  --ember: #D26038; --ember-deep: #B03C1A; --rose: #DF9A9C; --sage: #96AE94;
  --butter: #F2D18A; --plum: #735473; --sky: #B0CAD4;
  --coat: #A38D7A; --coat-light: #C9B7A2; --tusk: #F1E5C9;
  /* The party wash (Today, light) */
  --w-peach: #FFD1B0; --w-lemon: #FFE89E; --w-bubble: #FFC7D4; --w-lilac: #DBCFFF;
  --w-mint: #C4F0D9; --w-sky: #C2E0FF; --w-ice: #D1DBFF;

  --bg: var(--paper); --fg: var(--ink); --fg-soft: var(--ink-soft); --fg-whisper: var(--ink-whisper);
  --surface: rgba(253, 249, 242, .9); --hairline: rgba(22, 20, 17, .09);
  --russ-line: var(--ink); --shadow-soft: 0 24px 60px -24px rgba(60, 35, 20, .28);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --wrap: 1180px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* The same party at night (PartyBackground.swift, dark) */
    --w-peach: #6B3029; --w-lemon: #5C421A; --w-bubble: #661F4D; --w-lilac: #402970;
    --w-mint: #0F4540; --w-sky: #17336B; --w-ice: #21265C;
    --bg: #111125; --fg: var(--cream); --fg-soft: rgba(255, 247, 232, .74); --fg-whisper: rgba(255, 247, 232, .6);
    --surface: rgba(17, 17, 37, .62); --hairline: rgba(255, 247, 232, .12);
    --russ-line: var(--cream); --shadow-soft: 0 24px 60px -24px rgba(0, 0, 0, .6);
    --paper: #111125;
  }
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.lock-card img { width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--butter); color: var(--ink); }
.lp-wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lp-wrap--narrow { --wrap: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--cream); }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 8px; }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #F0A37E; } }

/* ------------------------------------------------------------- Buttons */
.lp-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); text-decoration: none; font: 600 19px/1.1 var(--sans); letter-spacing: -.01em; box-shadow: 0 14px 30px -14px rgba(22, 20, 17, .55); cursor: pointer; transition: transform .45s var(--spring), box-shadow .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.lp-btn small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .8; margin-bottom: 2px; }
.lp-btn .apple { width: 20px; fill: currentColor; margin-top: -3px; }
.lp-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 34px -14px rgba(22, 20, 17, .6); }
.lp-btn:active { transform: scale(.95); transition-duration: .12s; }
.lp-btn.is-soon { cursor: default; }
.lp-btn.is-soon:hover, .lp-btn.is-soon:active { transform: none; }
.lp-btn--small { padding: 9px 18px; font-size: 15px; background: var(--ember); color: #fff; box-shadow: 0 10px 24px -12px rgba(210, 96, 56, .7); }
.lp-btn--big { padding: 16px 30px 16px 24px; font-size: 22px; }
.lp-btn--big .apple { width: 24px; }
.lp-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--hairline), 0 0 0 0 transparent; font-size: 16px; padding: 10px 20px; }
@media (prefers-color-scheme: dark) { .lp-btn { background: var(--cream); color: var(--ink); } .lp-btn--small { background: var(--ember); color: #fff; } .lp-btn--ghost { background: transparent; color: var(--fg); } }
.lp-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.lp-link::after { content: "→"; transition: transform .3s var(--spring); }
.lp-link:hover::after { transform: translateX(4px); }
.lp-link--light { color: var(--butter); margin-top: 36px; }

/* ----------------------------------------------------------------- Nav */
.lp-nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.lp-nav.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--hairline); }
.lp-nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); letter-spacing: -.02em; }
.lp-brand .glyph { transition: transform .5s var(--spring); }
.lp-brand:hover .glyph { transform: rotate(-12deg) scale(1.08); }
.lp-nav nav { margin-left: auto; }
.lp-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.lp-links a { text-decoration: none; color: var(--fg-soft); transition: color .2s; }
.lp-links a:hover { color: var(--fg); }
@media (max-width: 860px) { .lp-nav nav { display: none; } .lp-nav-in .lp-btn { margin-left: auto; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 0; overflow: clip;
  background:
    radial-gradient(60% 55% at 0% 0%, var(--w-peach), transparent 72%),
    radial-gradient(48% 48% at 52% 0%, var(--w-lemon), transparent 70%),
    radial-gradient(58% 55% at 100% 0%, var(--w-bubble), transparent 72%),
    radial-gradient(48% 60% at 0% 58%, var(--w-mint), transparent 70%),
    radial-gradient(48% 60% at 100% 48%, var(--w-lilac), transparent 70%),
    radial-gradient(62% 55% at 0% 100%, var(--w-sky), transparent 72%),
    radial-gradient(52% 50% at 55% 100%, var(--w-ice), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, var(--w-bubble), transparent 72%),
    var(--paper); }
.hero::after, .party::after, .get::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: multiply; opacity: .05; pointer-events: none; }
@media (prefers-color-scheme: dark) { .hero::after, .party::after, .get::after { mix-blend-mode: soft-light; opacity: .12; } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding-bottom: 72px; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 6.4rem); line-height: .96; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; color: var(--ember); text-decoration: underline wavy color-mix(in srgb, var(--ember) 55%, transparent); text-decoration-thickness: .055em; text-underline-offset: .14em; }
@media (prefers-color-scheme: dark) { .hero h1 em { color: #F7A17C; } }
.lede { margin-top: 26px; max-width: 34ch; font-size: clamp(1.12rem, 1.55vw, 1.32rem); color: var(--fg-soft); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.hero-cta--center { justify-content: center; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 26px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--fg-soft); }
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.promises li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.promises li:nth-child(2)::before { background: var(--sage); }
.promises li:nth-child(3)::before { background: var(--plum); }
.hero-russ { position: relative; display: grid; justify-items: center; }
.russ-button { appearance: none; border: 0; padding: 0; background: none; width: clamp(240px, 33vw, 450px); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.russ-button--small { width: clamp(150px, 18vw, 210px); }
.russ-bubble { position: absolute; z-index: 3; left: -6%; top: 20%; margin: 0; padding: 12px 18px; border-radius: 20px 20px 6px 20px; background: var(--surface); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--hairline); font: italic 500 clamp(1rem, 1.3vw, 1.15rem)/1.3 var(--serif); max-width: 19ch; transform-origin: 100% 100%; transition: transform .5s var(--spring), opacity .25s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.russ-bubble.is-swapping { transform: scale(.6) rotate(4deg); opacity: 0; }
.russ-bubble::after { content: ""; position: absolute; right: -7px; bottom: 6px; width: 14px; height: 14px; background: inherit; border-radius: 0 0 0 14px; transform: skewX(-24deg); box-shadow: inset 1px -1px 0 var(--hairline); backdrop-filter: none; }

/* The ticker: a festival ribbon, slightly askew */
.ticker { position: relative; z-index: 3; margin: 0 -2vw; transform: rotate(-1.6deg); background: var(--ink); color: var(--cream); padding: 14px 0; overflow: hidden; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) { .ticker { background: var(--butter); color: var(--ink); } }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: tick 46s linear infinite; }
.ticker li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 clamp(15px, 1.4vw, 19px)/1 var(--serif); white-space: nowrap; }
.ticker li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }
.ticker li:nth-child(3n)::after { background: var(--butter); }
.ticker li:nth-child(3n+1)::after { background: var(--rose); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Balloons, drifting up behind everything */
.hero-sky, .party-sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.balloon { position: absolute; bottom: -180px; width: 54px; overflow: visible; will-change: transform; }
.balloon .skin { stroke: var(--ink); stroke-opacity: .72; stroke-width: 1.6; }
.balloon .tie { stroke: var(--ink); stroke-opacity: .72; stroke-width: 1.2; stroke-linejoin: round; }
.balloon .string { fill: none; stroke: var(--ink); stroke-opacity: .4; stroke-width: 1.2; }
.balloon .shine { fill: #fff; opacity: .45; }
@media (prefers-color-scheme: dark) { .balloon .skin, .balloon .tie { stroke: var(--cream); stroke-opacity: .5; } .balloon .string { stroke: var(--cream); stroke-opacity: .35; } }
.hero-sky .balloon { animation: rise 26s linear infinite; opacity: .92; }
.hero-sky .b1 { left: 1%; width: 46px; animation-delay: -4s; }
.hero-sky .b2 { left: 49%; width: 40px; animation-duration: 31s; animation-delay: -19s; }
.hero-sky .b3 { left: 93%; width: 58px; animation-duration: 23s; animation-delay: -11s; }
.hero-sky .b4 { left: 71%; width: 36px; animation-duration: 34s; animation-delay: -27s; }
.hero-sky .b5 { left: 58%; width: 44px; animation-duration: 29s; animation-delay: -15s; }
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  25%  { transform: translate(18px, -32vh) rotate(5deg); }
  50%  { transform: translate(-12px, -64vh) rotate(-4deg); }
  75%  { transform: translate(14px, -96vh) rotate(4deg); }
  100% { transform: translate(0, calc(-128vh - 200px)) rotate(-3deg); }
}

/* -------------------------------------------------------------- Russ */
.russ { width: 100%; height: auto; overflow: visible; }
.russ .coat { fill: var(--coat); } .russ .coat-light { fill: var(--coat-light); }
.russ .edge-body { stroke: var(--russ-line); stroke-opacity: .9; stroke-width: .9; }
.russ .edge-flipper { stroke: var(--russ-line); stroke-opacity: .9; stroke-width: .7; }
.russ .edge-head { stroke: var(--russ-line); stroke-opacity: .95; stroke-width: 1.1; }
.russ .edge-pad { stroke: var(--russ-line); stroke-opacity: .95; stroke-width: 1; }
.russ .tusk { fill: var(--tusk); stroke: var(--russ-line); stroke-opacity: .8; stroke-width: .6; stroke-linejoin: round; }
.russ .petal { fill: none; stroke: var(--cream); stroke-opacity: .92; stroke-width: .8; stroke-linecap: round; }
.russ .tuft { fill: none; stroke: var(--russ-line); stroke-opacity: .85; stroke-width: .55; stroke-linecap: round; }
.russ .nose { fill: var(--russ-line); }
.russ .eye { fill: none; stroke: var(--russ-line); stroke-width: 1.2; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .07s; }
.russ.is-blinking .eye { transform: scaleY(.3); }
.russ .hat-band { fill: none; stroke: var(--butter); stroke-width: 1.1; stroke-linecap: round; }
.russ .hat-edge { fill: none; stroke: var(--russ-line); stroke-width: .9; stroke-linejoin: round; }
.russ .hat-pompom { fill: var(--butter); stroke: var(--russ-line); stroke-width: .7; }
.russ .russ-shadow { fill: var(--ink); opacity: .12; filter: blur(1.4px); transform-box: fill-box; transform-origin: center; }
@media (prefers-color-scheme: dark) { .russ .russ-shadow { opacity: .4; } }
.russ .russ-glow { opacity: .9; }
.russ .candle-glow { fill: var(--butter); opacity: .32; transform-box: fill-box; transform-origin: center; animation: glowbreath 2.3s ease-in-out infinite alternate; }
.russ .candle-wax { fill: var(--cream); stroke: var(--russ-line); stroke-opacity: .6; stroke-width: .4; }
.russ .candle-flame { fill: #F2A060; transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.9s ease-in-out infinite; }
/* The life underneath: breath, weight, drift, the hat a beat behind */
.russ .russ-body, .russ .russ-lean, .russ .russ-sway, .russ .russ-breath { transform-box: view-box; transform-origin: 50px 85px; }
.russ .russ-spin { transform-box: view-box; transform-origin: 50px 46.8px; }
.russ .russ-muzzle { transform-box: view-box; transform-origin: 50px 45px; animation: drift 4.4s ease-in-out infinite alternate; }
.russ .russ-breath { animation: breath 1.8s ease-in-out infinite alternate; }
.russ .russ-sway { animation: sway 4.55s ease-in-out infinite alternate; }
.russ .russ-lean { transform: rotate(var(--lean, 0deg)); transition: transform .9s var(--ease); }
.russ .russ-hat { transform-box: view-box; transform-origin: 53px 11px; }
.russ .russ-hat-swing { transform-box: view-box; transform-origin: 53px 11px; animation: hatswing 4.55s ease-in-out -.6s infinite alternate; }
.russ .russ-pompom { transform-box: view-box; transform-origin: 53px -21.5px; animation: pompom 1.6s ease-in-out infinite alternate; }
@keyframes breath { from { transform: scale(1.004, .992); } to { transform: scale(.996, 1.016); } }
@keyframes sway { from { transform: rotate(-.8deg) translateX(-1px); } to { transform: rotate(.8deg) translateX(1px); } }
@keyframes drift { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
@keyframes hatswing { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes pompom { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.95, 1.08) translateX(.15px); } 60% { transform: scale(1.04, .94) translateX(-.1px); } }
@keyframes glowbreath { from { transform: scale(.88); opacity: .26; } to { transform: scale(1.06); opacity: .38; } }

/* -------------------------------------------------------------- Scenes */
.scene { position: relative; }
.js .scene--tap { height: 330vh; }
.js .scene--ask { height: 300vh; }
.js .scene--cards { height: 240vh; }
.js .scene-stage { position: sticky; top: var(--stick, 0px); min-height: 100vh; min-height: 100svh; display: grid; align-content: center; overflow: clip; }
.scene-stage { padding: 96px 0 48px; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.scene-grid--flip .scene-visual { order: -1; }
.scene-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.scene-lede { margin-top: 22px; font-size: clamp(1.06rem, 1.4vw, 1.24rem); color: var(--fg-soft); max-width: 40ch; }
.beats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; }
.beat h3 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -.025em; }
.beat p { margin-top: 16px; font-size: clamp(1.04rem, 1.35vw, 1.2rem); color: var(--fg-soft); max-width: 38ch; }
.beat + .beat { margin-top: 36px; }
.js .beat { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(28px); transition: opacity .45s var(--ease), transform .7s var(--spring); }
.js .beat.is-on { opacity: 1; transform: none; }
.js .beat.is-past { opacity: 0; transform: translateY(-28px); }

/* An iPhone, drawn: crisp at any size, with nothing to download */
.scene-visual { display: grid; justify-items: center; position: relative; }
.iphone { --ph: min(76vh, 76svh, 690px); flex: none; height: var(--ph); width: calc(var(--ph) * 9 / 19.4); border-radius: calc(var(--ph) * .086); padding: calc(var(--ph) * .017); background: linear-gradient(145deg, #3a3633, #121110 40%, #2a2724); box-shadow: 0 50px 90px -40px rgba(40, 20, 10, .55), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(2deg); }
.iphone-screen { position: relative; height: 100%; border-radius: calc(var(--ph) * .069); overflow: hidden; color: #fff; container-type: inline-size;
  background:
    radial-gradient(80% 50% at 0% 0%, #6B3029, transparent 70%),
    radial-gradient(70% 50% at 100% 0%, #661F4D, transparent 70%),
    radial-gradient(70% 60% at 0% 70%, #0F4540, transparent 70%),
    radial-gradient(70% 60% at 100% 65%, #402970, transparent 70%),
    radial-gradient(90% 60% at 50% 100%, #17336B, transparent 75%),
    #111125; }
.island { position: absolute; top: 3.6cqw; left: 50%; width: 34%; height: 9.8cqw; margin-left: -17%; border-radius: 5cqw; background: #000; }
.lock-date, .lock-time { position: absolute; left: 0; right: 0; text-align: center; }
.lock-date { top: 13%; font: 600 5.4cqw/1 var(--sans); letter-spacing: .01em; opacity: .9; }
.lock-time { top: 16.5%; font: 700 26cqw/1 var(--round); letter-spacing: -.02em; }
.lock-date span, .lock-time span { position: absolute; left: 0; right: 0; transition: opacity .5s, transform .6s var(--spring); }
.d1 { opacity: 0; transform: translateY(14px); }
.notice { position: absolute; left: 4.5%; right: 4.5%; top: 34%; display: flex; gap: 3.6cqw; align-items: flex-start; padding: 4.3cqw 4.3cqw 4.6cqw; border-radius: 8cqw; background: rgba(250, 247, 242, .82); color: var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); font-size: max(10.5px, 4.75cqw); line-height: 1.3; opacity: 0; transform: translateY(-24px) scale(.96); transition: opacity .4s var(--ease), transform .7s var(--spring); }
.notice i { flex: none; width: 12.4cqw; height: 12.4cqw; border-radius: 3.2cqw; background: #1F1B17; display: grid; place-items: center; }
.notice i svg { width: 8cqw; height: 8cqw; }
.notice b { display: block; font-size: max(9.5px, 4.2cqw); letter-spacing: .02em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; }
.notice span { display: block; } .notice span:first-of-type { font-weight: 600; }
.notice em { margin-left: auto; font-style: normal; font-size: max(9px, 3.9cqw); opacity: .55; }
.lock-card { position: absolute; left: 50%; top: 48%; width: 52%; margin: 0 0 0 -26%; border-radius: 5cqw; overflow: hidden; background: #fff; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(40px) rotate(-8deg) scale(.86); transition: opacity .45s var(--ease), transform .8s var(--spring); }
.lock-card figcaption { position: absolute; inset: auto 0 0; padding: 6.5cqw 3cqw 3cqw; font: 600 max(9px, 4cqw)/1 var(--sans); color: var(--ink); text-align: center; background: linear-gradient(transparent, rgba(255, 255, 255, .95)); opacity: 0; }
.envelope { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 4 / 3; margin-left: -31%; border-radius: 3.6cqw; background: linear-gradient(160deg, #FFF7E8, #F3E6CF); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(70px) rotate(6deg); transition: opacity .45s var(--ease), transform .8s var(--spring); }
.envelope .flap { position: absolute; inset: 0 0 auto; height: 62%; background: linear-gradient(180deg, #F6EBD8, #EBD9BB); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transform: rotateX(180deg); transition: transform .8s var(--spring) .2s; }
.envelope .seal { position: absolute; left: 50%; top: 46%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 35%, #E2774F, #A83A18); color: #FFE6D6; font: 700 5.4cqw/1 var(--serif); box-shadow: 0 3px 8px rgba(120, 30, 10, .4); transform: scale(0); transition: transform .5s var(--spring) .7s; }
.envelope .to { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font: italic 500 5.8cqw/1 var(--serif); color: var(--ink-soft); }
/* The beats, as states of the phone */
.scene--tap[data-step="0"] .n0, .scene--tap[data-step="1"] .n0 { opacity: 1; transform: none; }
.scene--tap[data-step="1"] .n0 { transform: translateY(-14px) scale(.94); opacity: .5; }
.scene--tap[data-step="1"] .lock-card, .scene--tap[data-step="2"] .lock-card { opacity: 1; transform: none; }
.scene--tap[data-step="1"] .lock-card figcaption { opacity: 1; transition: opacity .4s .4s; }
.scene--tap[data-step="2"] .lock-card { transform: translateY(14px) scale(.8); opacity: 0; }
.scene--tap[data-step="2"] .envelope { opacity: 1; transform: none; }
.scene--tap[data-step="2"] .envelope .flap { transform: none; }
.scene--tap[data-step="2"] .envelope .seal { transform: scale(1); }
.scene--tap[data-step="2"] .d0 { opacity: 0; transform: translateY(-14px); }
.scene--tap[data-step="2"] .d1 { opacity: 1; transform: none; }
.scene--tap[data-step="2"] .n2 { opacity: 1; transform: none; top: 31%; }
/* No JS: the finished phone */
html:not(.js) .scene--tap .lock-card { opacity: 1; transform: none; }
html:not(.js) .scene--tap .n0 { opacity: 1; transform: none; }

/* The Ask: a group chat, envelopes in flight, Russ's ledger */
.chat-scene { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; width: min(100%, 520px); justify-self: center; }
.chat { position: relative; padding: 18px 16px 20px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--hairline); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: min(100%, 400px); }
.chat-title { text-align: center; font: 600 13px/1 var(--sans); color: var(--fg-whisper); margin-bottom: 14px; }
.bubble { position: relative; margin-left: auto; max-width: 82%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: linear-gradient(180deg, #3F96FF, #0B7BFF); color: #fff; font-size: 15px; line-height: 1.35; }
.link-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; margin-top: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--ink); }
.link-card i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #1F1B17; display: grid; place-items: center; }
.link-card b { font-size: 14px; } .link-card small { font-size: 12px; color: var(--ink-whisper); }
.replies { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.reply { justify-self: start; max-width: 80%; padding: 8px 13px; border-radius: 18px 18px 18px 6px; background: rgba(120, 112, 104, .16); font-size: 15px; line-height: 1.3; }
.reply b { display: block; font-size: 11px; color: var(--fg-whisper); font-weight: 600; margin-bottom: 1px; }
.ledger { justify-self: end; width: min(86%, 340px); padding: 18px 20px; border-radius: 22px; background: #FFF9EE; color: var(--ink); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(22, 20, 17, .08); background-image: repeating-linear-gradient(transparent 0 33px, rgba(176, 202, 212, .5) 33px 34px); background-position: 0 44px; transform: rotate(1.5deg); }
.ledger-title { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--serif); margin-bottom: 8px; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; height: 34px; align-items: center; font: italic 500 17px/1 var(--serif); }
.ledger time { font-style: normal; font: 600 13px/1 var(--sans); color: var(--ink-soft); }
.flying-envelope { position: absolute; left: 0; top: 0; z-index: 4; width: 34px; height: 24px; border-radius: 4px; background: linear-gradient(160deg, #FFF7E8, #EBD9BB); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; }
.flying-envelope::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; background: #EBD9BB; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.flying-envelope::after { content: ""; position: absolute; left: 50%; top: 46%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #B8441F; }
.ask-count { margin-top: 30px; display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); font-weight: 600; color: var(--fg-soft); }
.ask-count b { font: 700 26px/1 var(--round); color: var(--ember); font-variant-numeric: tabular-nums; }
/* Progress-driven pieces (landing.js sets --t per piece; no JS = all shown) */
.js .scene--ask .reply, .js .scene--ask .ledger li { opacity: var(--shown, 0); transform: translateY(calc((1 - var(--shown, 0)) * 10px)); transition: opacity .3s, transform .5s var(--spring); }
.js .scene--ask .bubble--me { opacity: var(--shown, 0); transform: scale(calc(.9 + var(--shown, 0) * .1)); transform-origin: 100% 100%; transition: opacity .3s, transform .5s var(--spring); }

/* The cards: a deck that fans open as you scroll */
.cards-head { text-align: center; display: grid; justify-items: center; }
.cards-head .scene-lede { margin-inline: auto; }
.fan { position: relative; list-style: none; margin: 34px auto 0; padding: 0; height: clamp(280px, 44vh, 470px); width: 100%; --p: 0; --card-w: clamp(118px, 13.5vw, 196px); }
.fan-card { --lift: 0px; --zoom: 1; position: absolute; left: 50%; bottom: 22%; width: var(--card-w); margin-left: calc(var(--card-w) / -2); transform-origin: 50% 330%;
  transform: rotate(calc((var(--i) - 5.5) * var(--p) * var(--spread, 7.4deg))) translateY(calc(var(--p) * -6px - var(--lift) + (1 - var(--p)) * 28px)) scale(var(--zoom));
  transition: --lift .35s var(--spring), --zoom .35s var(--spring); z-index: var(--i); cursor: pointer; }
.fan-card img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 34px -16px rgba(40, 20, 10, .55), 0 0 0 1px rgba(22, 20, 17, .06); background: #fff; }
.fan-card span { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: center; font: italic 500 14px/1.2 var(--serif); color: var(--fg-soft); opacity: 0; transition: opacity .3s; }
.fan-card:hover, .fan-card.is-lifted { --lift: 36px; --zoom: 1.08; z-index: 20; }
.fan-card:hover span, .fan-card.is-lifted span { opacity: 1; }
@media (max-width: 760px) { .fan { --card-w: 30vw; } .fan-card { --spread: 5.2deg; transform-origin: 50% 300%; } }
html:not(.js) .fan { --p: 1; }

/* ----------------------------------------------------------- Your turn */
/* The friend's side of the Ask, tried right here: the form is the Ask
   page's, the ledger is the scene's above, and Russ answers in his bubble. */
.try { position: relative; overflow: clip; padding: clamp(90px, 11vw, 150px) 0;
  background:
    radial-gradient(50% 55% at 100% 0%, var(--w-lemon), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, var(--w-sky), transparent 72%),
    var(--paper); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.try-card { margin-top: 34px; max-width: 420px; padding: 22px 22px 24px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--hairline); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.try-card-head { display: flex; align-items: center; gap: 10px; font: 600 1.3rem/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 18px; }
.try-card-head i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #FFF7E8; box-shadow: inset 0 0 0 1px rgba(22, 20, 17, .08); }
.try-field { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.try-field label, .try-field legend { display: block; padding: 0; margin-bottom: 6px; font: 600 13px/1.2 var(--sans); color: var(--fg-soft); }
.try-field input, .try-field select { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--bg); color: var(--fg); font: 500 17px/1 var(--sans); box-shadow: inset 0 0 0 1.5px var(--hairline); transition: box-shadow .2s; appearance: none; -webkit-appearance: none; }
.try-field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23D26038' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 34px; }
.try-field input:focus, .try-field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember); }
.try-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--ember); }
.try-date { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }
.try-error { margin: -2px 0 12px; font-size: 14px; font-weight: 600; color: var(--ember-deep); }
@media (prefers-color-scheme: dark) { .try-error { color: #F7A17C; } }
.try-send { width: 100%; justify-content: center; margin-top: 4px; padding: 14px 24px; }
.try-visual { display: grid; justify-items: center; gap: 4px; }
.try-russ { display: grid; justify-items: center; }
.russ-button--try { width: clamp(130px, 13vw, 170px); margin-bottom: -18px; position: relative; z-index: 2; }
.try-bubble { position: relative; left: auto; top: auto; margin-bottom: 8px; max-width: 26ch; text-align: center; border-radius: 20px; }
.russ-bubble.try-bubble::after { right: auto; left: calc(50% - 7px); bottom: -6px; border-radius: 0 0 14px 0; transform: rotate(45deg); }
.ledger--try { justify-self: center; width: min(100%, 360px); transform: rotate(-1.2deg); }
.ledger--try li { overflow: hidden; transition: height .5s var(--spring), background-color .6s; border-radius: 6px; }
.ledger--try li.is-mine { margin-inline: -8px; padding-inline: 8px; background: rgba(242, 209, 138, .45); }
.ledger--try li.is-mine span { color: var(--ember-deep); clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.5, 0, .3, 1) .1s; }
.ledger--try li.is-mine.is-written span { clip-path: inset(0 -4px 0 0); }
.ledger--try li.is-mine time { opacity: 0; transition: opacity .3s .7s; }
.ledger--try li.is-mine.is-written time { opacity: 1; }
.ledger--try li.is-folded { height: 0; }
.try-envelope { position: fixed; z-index: 61; }
.try-share { display: grid; justify-items: center; gap: 12px; margin-top: 26px; text-align: center; color: var(--fg-soft); animation: rise-in .6s var(--spring) both; }
.try-share[hidden] { display: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.russ-button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* -------------------------------------------------------------- The day */
.party { position: relative; overflow: clip; padding: clamp(90px, 12vw, 170px) 0;
  background:
    radial-gradient(60% 50% at 0% 0%, var(--w-peach), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, var(--w-bubble), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, var(--w-sky), transparent 72%),
    radial-gradient(60% 60% at 100% 100%, var(--w-lilac), transparent 72%),
    radial-gradient(40% 40% at 50% 50%, var(--w-lemon), transparent 70%),
    var(--paper); }
.party-sky .balloon { opacity: 0; }
.party.is-party .party-sky .balloon { animation: partyrise 9s cubic-bezier(.3, .1, .4, 1) forwards; opacity: .95; }
.party-sky .p1 { left: 6%; width: 52px; animation-delay: .0s !important; }
.party-sky .p2 { left: 18%; width: 40px; animation-delay: .35s !important; }
.party-sky .p3 { left: 31%; width: 58px; animation-delay: .8s !important; }
.party-sky .p4 { left: 47%; width: 44px; animation-delay: .2s !important; }
.party-sky .p5 { left: 61%; width: 50px; animation-delay: 1.1s !important; }
.party-sky .p6 { left: 74%; width: 38px; animation-delay: .55s !important; }
.party-sky .p7 { left: 85%; width: 56px; animation-delay: 1.4s !important; }
.party-sky .p8 { left: 93%; width: 42px; animation-delay: .9s !important; }
@keyframes partyrise {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  30%  { transform: translate(16px, -40vh) rotate(6deg); }
  60%  { transform: translate(-12px, -85vh) rotate(-5deg); }
  100% { transform: translate(10px, calc(-150vh - 300px)) rotate(4deg); }
}
.split { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.split h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); letter-spacing: -.03em; }
.split-copy p:not(.eyebrow) { margin-top: 20px; font-size: clamp(1.06rem, 1.4vw, 1.24rem); color: var(--fg-soft); max-width: 40ch; }
.split-copy .lp-btn--ghost { margin-top: 28px; }
.phone-shot { justify-self: center; width: min(320px, 70vw); padding: 10px; border-radius: 50px; background: linear-gradient(145deg, #3a3633, #121110 40%, #2a2724); box-shadow: 0 50px 90px -40px rgba(40, 20, 10, .55); transform: rotate(-2.5deg); }
.phone-shot img { border-radius: 41px; width: 100%; height: auto; }

/* ------------------------------------------------------- Everywhere */
.everywhere { padding: clamp(90px, 11vw, 150px) 0; }
.everywhere h2, .privacy h2, .faq h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); letter-spacing: -.03em; max-width: 18ch; }
.everywhere h2 { max-width: 24ch; }
.tiles { list-style: none; margin: 54px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { padding: 22px 22px 26px; border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); transition: transform .5s var(--spring); }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); }
.tile h3 { margin-top: 22px; font-size: 1.5rem; }
.tile p { margin-top: 8px; color: var(--fg-soft); }
.widget { display: flex; justify-content: space-between; gap: 10px; padding: 16px; border-radius: 24px; aspect-ratio: 2.15; background: #FBF1E2; color: var(--ink); box-shadow: 0 16px 30px -18px rgba(40, 20, 10, .4); }
.widget small { display: block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.widget b { display: block; margin-top: 8px; font: 600 22px/1 var(--serif); }
.widget span { display: block; margin-top: 6px; font: 500 13px/1.2 var(--serif); color: var(--ink-soft); }
.widget img { width: 31%; height: auto; border-radius: 8px; transform: rotate(4deg); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .4); }
.siri { display: grid; place-items: center; gap: 10px; padding: 18px; border-radius: 24px; aspect-ratio: 2.15; color: #fff; text-align: center; background: radial-gradient(90% 120% at 10% 0%, #6B3029, transparent 70%), radial-gradient(90% 120% at 90% 100%, #402970, transparent 70%), #17336B; }
.tile .siri p { color: #fff; margin: 0; }
.siri .q { font: italic 500 15px/1.3 var(--serif); opacity: .8; }
.siri .a { font: 600 18px/1.25 var(--serif); }
.lockwidget { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border-radius: 24px; aspect-ratio: 2.15; background: radial-gradient(90% 120% at 0% 0%, #0F4540, transparent 70%), radial-gradient(90% 120% at 100% 100%, #661F4D, transparent 70%), #111125; color: #fff; }
.lockwidget .ring { width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(#fff 0 78%, rgba(255, 255, 255, .22) 78% 100%); display: grid; place-items: center; }
.lockwidget .ring i { width: 50px; height: 50px; border-radius: 50%; background: #23203A; }
.lockwidget b { display: block; font: 700 22px/1 var(--round); }
.lockwidget small { display: block; margin-top: 4px; font: 600 14px/1 var(--sans); opacity: .75; }

/* ------------------------------------------------------------ Privacy */
.privacy { position: relative; padding: clamp(100px, 12vw, 170px) 0; background: var(--ink); color: var(--cream); }
@media (prefers-color-scheme: dark) { .privacy { background: #0A0A18; } }
.privacy .eyebrow { color: var(--butter); }
.privacy-lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255, 247, 232, .74); max-width: 44ch; }
.promises-grid { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.promises-grid li { padding-top: 22px; border-top: 1.5px solid rgba(255, 247, 232, .16); }
.promises-grid h3 { font-size: 1.45rem; }
.promises-grid p { margin-top: 10px; color: rgba(255, 247, 232, .68); }

/* ----------------------------------------------------------- Memorial */
.memorial { padding: clamp(90px, 11vw, 150px) 0; background: #F2EDE5; }
@media (prefers-color-scheme: dark) { .memorial { background: #1B1719; } }
.split--narrow { grid-template-columns: .55fr 1fr; max-width: 900px; margin-inline: auto; }
.memorial-russ { width: min(260px, 60vw); justify-self: center; }
.memorial .eyebrow { color: var(--plum); }
@media (prefers-color-scheme: dark) { .memorial .eyebrow { color: #C9A8D8; } }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: clamp(90px, 11vw, 150px) 0; }
.faq-list { margin-top: 44px; border-top: 1.5px solid var(--hairline); }
.faq details { border-bottom: 1.5px solid var(--hairline); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font: 600 clamp(1.15rem, 1.9vw, 1.45rem)/1.25 var(--serif); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path d='M10 15h10M15 10v10' stroke='%23D26038' stroke-width='2.2' stroke-linecap='round'/></svg>") center / 30px no-repeat; box-shadow: inset 0 0 0 1px var(--hairline); transition: transform .45s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 4px 26px; max-width: 64ch; color: var(--fg-soft); font-size: 1.06rem; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------------------------------------------------------------- Get */
.get { position: relative; overflow: clip; padding: clamp(100px, 12vw, 170px) 0 clamp(90px, 10vw, 140px); text-align: center;
  background:
    radial-gradient(50% 60% at 0% 100%, var(--w-mint), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, var(--w-bubble), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, var(--w-lemon), transparent 70%),
    var(--paper); }
.get-in { position: relative; z-index: 2; display: grid; justify-items: center; }
.get h2 { margin-top: 18px; font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.035em; line-height: .98; }
.get .hero-cta { margin-top: 38px; }
.get-note { margin-top: 18px; color: var(--fg-whisper); font-size: 15px; }

/* -------------------------------------------------------------- Footer */
.lp-footer { padding: 44px 0 52px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--fg-soft); }
.lp-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.lp-footer nav { display: flex; gap: 22px; margin-left: auto; }
.lp-footer nav a { text-decoration: none; } .lp-footer nav a:hover { color: var(--fg); }
.legal { flex-basis: 100%; color: var(--fg-whisper); font-size: 13px; }
/* "Auf Deutsch lesen →" — offered, never forced (landing.js) */
.lang-hint { display: inline-flex; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); font: 600 13px/1 var(--sans); color: var(--fg-soft); text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang-hint:hover { color: var(--fg); }
/* The languages Russ speaks, each in its own name */
.lp-footer .langs { flex-basis: 100%; margin-left: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.lp-footer .langs a { color: var(--fg-whisper); }
.lp-footer .langs a[aria-current] { color: var(--fg); font-weight: 600; }

/* Confetti: one canvas over everything, only while paper is in the air */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ------------------------------------------------------------- Phones */
@media (max-width: 960px) {
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; padding-bottom: 54px; }
  .hero-russ { order: -1; }
  .russ-button { width: clamp(190px, 52vw, 300px); }
  .russ-bubble { position: relative; left: auto; top: auto; justify-self: center; margin: 0 0 6px; border-radius: 20px 20px 20px 6px; }
  .russ-bubble::after { right: auto; left: -7px; border-radius: 0 0 14px 0; transform: skewX(24deg); }
  .scene-grid { grid-template-columns: 1fr; gap: 22px; }
  .scene-grid--flip .scene-visual { order: 0; }
  .js .scene-stage { padding: 76px 0 24px; align-content: start; }
  .beats { margin-top: 18px; }
  .scene-title { font-size: 1.5rem; }
  .beat h3 { font-size: 1.5rem; }
  .beat p, .scene-lede { font-size: 1rem; margin-top: 10px; }
  .iphone { --ph: calc(min(70vw, 290px) * 19.4 / 9); }
  .scene-title { font-size: 1.4rem; }
  .hero-sky .balloon { opacity: .5; }
  .hero-sky .b2, .hero-sky .b4 { display: none; }
  .hero-sky .b1 { left: -4%; width: 36px; }
  .hero-sky .b3 { left: 88%; width: 42px; }
  .hero-sky .b5 { left: 62%; width: 28px; opacity: .35; }
  .chat-scene { gap: 14px; }
  .chat { padding: 12px; } .bubble, .reply { font-size: 13.5px; }
  .ledger { padding: 12px 16px; } .ledger li { height: 28px; font-size: 15px; }
  .ask-count { margin-top: 14px; }
  .split, .split--narrow { grid-template-columns: 1fr; }
  .try-grid { grid-template-columns: 1fr; gap: 30px; }
  .try-card { margin-top: 24px; max-width: none; }
  .ledger--try li { height: 34px; font-size: 17px; }
  .tiles { grid-template-columns: 1fr; }
  .promises-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .promises-grid { grid-template-columns: 1fr; } .lp-footer nav { margin-left: 0; } }
/* Phones, in motion: the drawn iPhone stands below the words and runs off the
   bottom of the screen, like one held up to a camera. Shorter screens get a
   smaller phone and keep the beat's headline (its line stays for screen readers). */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .scene--tap .scene-stage { height: 100vh; height: 100svh; padding-bottom: 0; display: flex; flex-direction: column; }
  .js .scene--tap .scene-grid { flex: 1; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  .js .scene--tap .scene-visual { align-self: stretch; min-height: 0; overflow: hidden; align-content: start; padding-top: 14px; -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
}
@media (max-width: 960px) and (max-height: 760px) and (prefers-reduced-motion: no-preference) {
  .iphone { --ph: calc(min(62vw, 250px) * 19.4 / 9); }
  .js .scene--tap .beat p { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 960px) and (max-height: 620px) and (prefers-reduced-motion: no-preference) {
  .iphone { --ph: calc(min(52vw, 210px) * 19.4 / 9); }
  .js .scene--tap .scene-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* -------------------------------------------------------- Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .russ .russ-sway, .russ .russ-muzzle, .russ .russ-hat-swing, .russ .russ-pompom { animation: none; }
  .russ .russ-breath { animation-duration: 3.6s; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; }
  .ticker-track li:nth-child(n + 11) { display: none; }
  .hero-sky .balloon { animation: none; bottom: auto; top: 18%; }
  .hero-sky .b2 { top: 70%; } .hero-sky .b4 { top: 62%; }
  .party.is-party .party-sky .balloon { animation: none; opacity: .9; top: 12%; bottom: auto; }
  .js .scene--tap, .js .scene--ask, .js .scene--cards { height: auto; }
  .js .scene-stage { position: relative; height: auto; min-height: 0; }
  .js .beat { grid-area: auto; opacity: 1; transform: none; margin-top: 32px; }
  .scene--tap .lock-card, .scene--tap .n0 { opacity: 1 !important; transform: none !important; }
  .js .scene--ask .reply, .js .scene--ask .ledger li, .js .scene--ask .bubble--me { opacity: 1; transform: none; }
  .fan { --p: 1 !important; }
  .lp-btn, .fan-card, .tile, .russ-bubble { transition: none; }
  .ledger--try li, .ledger--try li.is-mine span, .ledger--try li.is-mine time, .try-share { transition: none; animation: none; }
}
