/* Scene landing page — the Soft look from the app and the films: #F5F5F7, white cards on two soft
   shadows, Geist, black pills, orange only where something is live, nearby or new.
   No CSS transitions or keyframes: every move is a spring from the studio engine (js/motion.js). */

@font-face { font-family: Geist; src: url(fonts/Geist_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #18181B;
  --grey: #6E6E76;
  --tertiary: #A1A1AA;
  --hairline: #ECECEF;
  --skeleton: #E4E4E7;
  --or: #FF5A1F;
  --tint: #FFF1EB;
  --or-text: #C2410C;
  --shadow: 0 1px 2px rgba(10, 10, 11, .04), 0 8px 24px rgba(10, 10, 11, .06);
  --shadow-lift: 0 2px 4px rgba(10, 10, 11, .05), 0 18px 48px rgba(10, 10, 11, .10);
  --gutter: 24px;
  --nav-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Geist, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

#snakes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}
.nav::before { /* frosted bar — opacity driven by scroll in main.js */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--frost, 0);
  background: rgba(245, 245, 247, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.04em; }
.brand img { width: 34px; height: auto; }

.live-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(var(--tx, -50%), -50%) scale(var(--s, .9)); transform-origin: left center; opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 100px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--or); font-weight: 600; font-size: 15px;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.live-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }

/* ── pills (PillButton) ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 100px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none;
  will-change: transform;
}
.pill:hover { background: #000; }
.pill:focus-visible, .field input:focus-visible, .still:focus-visible { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 3px; }
.pill--light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pill--light:hover { background: #fff; box-shadow: var(--shadow-lift); }
.pill--sm { height: 44px; padding: 0 18px; font-size: 15px; gap: 9px; }
.pill--wide { width: 100%; }
.pill[disabled] { opacity: .7; cursor: default; }
/* the glowing orange dot inside Go Live */
.go { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--or); flex: none; }
.pill--sm .go { width: 8px; height: 8px; }

/* ── type ────────────────────────────────────────────────────────────────── */
h1, h2 { margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(46px, 6.2vw, 90px); line-height: .98; letter-spacing: -0.048em; }
h2 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.042em; }
h2.huge { font-size: clamp(56px, 10vw, 148px); line-height: .95; letter-spacing: -0.05em; }
.lead { display: block; color: var(--grey); font-size: .52em; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; margin-bottom: .28em; }
.huge .lead { font-size: .34em; margin-bottom: .1em; }
.lead--after { margin: .5em 0 0; }
.sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--grey); max-width: 30ch; margin: 28px 0 0; line-height: 1.42; }
.body { font-size: clamp(17px, 1.3vw, 19px); color: var(--grey); max-width: 34ch; margin: 22px 0 0; line-height: 1.45; }
.body--ink { color: var(--ink); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--tertiary); font-weight: 500; }

/* kinetic words (split in motion.js): each word rises out of its own mask */
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.kinetic .wi { display: inline-block; will-change: transform, opacity; }
.js .kinetic { visibility: hidden; }
.js .kinetic.split { visibility: visible; }
.js .rise { opacity: 0; }

/* ── sections ────────────────────────────────────────────────────────────── */
.beat { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.visual { display: flex; justify-content: center; align-items: center; min-height: 420px; }

.hero { padding-top: calc(var(--nav-h) + 40px); }
.hero .grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.hero h1 { font-size: clamp(40px, 5vw, 74px); line-height: 1; }
.hero .sub { max-width: 37ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* hero: your people gather round the live dot */
.gather { position: relative; width: min(470px, 100%); aspect-ratio: 1; }
.g-face {
  position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; margin: -10.5% 0 0 -10.5%; border-radius: 50%;
  background: #fff; padding: 4px; box-shadow: var(--shadow-lift); opacity: 0; will-change: transform, opacity;
}
.g-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.g-face::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--or); opacity: var(--near, 0); transform: scale(calc(.86 + .14 * var(--near, 0))); }
.g-you { display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: clamp(14px, 1.4vw, 18px); border: 4px solid #fff; padding: 0; }
.g-core { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 7px rgba(255, 90, 31, .16); opacity: 0; will-change: transform; }
.g-rings { position: absolute; inset: 0; }
.g-rings i { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--or); opacity: 0; will-change: transform, opacity; }
.g-chip { position: absolute; left: 50%; bottom: 1%; white-space: nowrap; opacity: 0; will-change: transform, opacity; }

/* out there: photos fly in around the line, then scatter */
.outthere { display: block; height: 260vh; padding: 0; }
.outthere .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.collage { position: absolute; inset: 0; }
.ph { position: absolute; left: 0; top: 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); will-change: transform; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.outthere h2 { position: relative; z-index: 2; }

/* go live */
.golive { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.golive-pill {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden;
  height: 68px; width: 220px; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
  white-space: nowrap; will-change: transform, width, height; opacity: 0;
}
.golive-pill .go { width: 10px; height: 10px; }
.golive::after { content: 'Live'; position: absolute; left: 0; right: 0; top: calc(50% + 46px); text-align: center; color: var(--or-text); font-weight: 600; font-size: 15px; opacity: var(--live, 0); }
.rings { position: absolute; inset: 0; }
.rings i { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--or); opacity: 0; will-change: transform, opacity; }

/* timer */
.timer { display: flex; flex-direction: column; align-items: flex-start; }
.timer-row { display: flex; align-items: center; gap: .32em; color: var(--or); font-size: clamp(60px, 8.4vw, 124px); font-weight: 600; letter-spacing: -0.03em; }
.live-dot { width: .16em; height: .16em; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 .08em rgba(255, 90, 31, .16); flex: none; opacity: 0; }
.odo { display: inline-flex; line-height: 1; font-variant-numeric: tabular-nums; }
.odo .p { position: relative; display: inline-block; width: .6em; height: 1.08em; overflow: hidden; text-align: center; }
.odo .p > span { position: absolute; left: 0; right: 0; top: .04em; will-change: transform; }
.odo .c { display: inline-block; width: .3em; text-align: center; transform: translateY(-.04em); }
.live-chip .odo .p { height: 1.15em; }
.with { display: flex; align-items: center; gap: 0; margin-top: 18px; color: var(--grey); font-size: 17px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; border: 2.5px solid var(--bg); margin-right: -8px; }
.with .av:nth-child(2) { margin-right: 12px; }

/* cards */
.card { position: relative; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); margin: 0; }
.map-card, .roll-card { width: min(460px, 100%); aspect-ratio: 361 / 476; padding: 8px; will-change: transform; }
.map-card canvas, .roll-card canvas { display: block; width: 100%; height: 100%; border-radius: 22px; }
.roll-card { padding: 0; overflow: hidden; }
.roll-card canvas { border-radius: 28px; }

/* notification banner (lock-screen push) */
.banner {
  position: absolute; left: 14px; right: 14px; top: 16px; z-index: 3; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: var(--shadow-lift); text-align: left;
  opacity: 0; will-change: transform, opacity;
}
.banner-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; border: .75px solid var(--skeleton); display: grid; place-items: center; background: #fff; }
.banner-icon img { width: 74%; }
.banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-text b { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.banner-text span { font-size: 13px; color: var(--grey); font-weight: 400; line-height: 1.35; }
.banner-now { font-size: 12px; color: var(--tertiary); font-weight: 400; }

/* place sheet on the world map */
.place {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px 18px; background: #fff; border-radius: 22px; box-shadow: 0 -6px 24px rgba(10, 10, 11, .08);
  opacity: 0; will-change: transform, opacity;
}
.place img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.place > span { display: flex; flex-direction: column; }
.place b { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.place span span { font-size: 14px; color: var(--grey); font-weight: 400; }

/* the Still */
.still { position: relative; display: block; width: min(360px, 82vw); padding: 0; border: 0; background: none; cursor: pointer; will-change: transform; opacity: 0; }
.still-frame { display: block; padding: 8px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lift); }
.still-frame { overflow: hidden; }
.still-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; will-change: filter, transform; }
.still .chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.banner--still { top: -38px; left: -22px; right: -22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 100px; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.chip--tint { background: var(--tint); color: var(--or-text); box-shadow: none; }

/* nearby → world: one sticky map, the copy swaps on the scroll */
.mapstory { display: block; height: 300vh; padding: 0; }
.mapstory .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.swap { display: grid; }
.swap > div { grid-area: 1 / 1; will-change: transform, opacity; }
.mapstory .map-card { height: min(600px, calc(100svh - var(--nav-h) - 80px)); width: auto; aspect-ratio: 361 / 476; }

/* your data — the top of the You page */
.you-card { width: min(420px, 100%); padding: 30px 26px 26px; will-change: transform, opacity; }
.you-total { display: flex; flex-direction: column; }
.you-num { font-size: clamp(52px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.you-sub { margin-top: 8px; font-size: 15px; color: var(--grey); font-weight: 400; }
.you-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 34px; font-size: 15px; }
.you-row b { font-weight: 600; }
.you-tip { position: relative; display: grid; justify-items: end; }
.you-tip > span { grid-area: 1 / 1; white-space: nowrap; font-size: 14px; will-change: transform, opacity; }
.you-tip [data-tip-a] { color: var(--grey); font-weight: 400; }
.you-tip [data-tip-b] { color: var(--ink); font-weight: 600; opacity: 0; }
.you-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 16px; }
.you-bars .bar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.you-bars .bar i { display: block; width: 100%; height: 84px; position: relative; }
.you-bars .bar i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0px); border-radius: 7px; background: var(--skeleton); transform-origin: bottom; transform: scale(var(--press, 1)); }
.you-bars .bar.peak i::after { background: var(--ink); }
.you-bars .bar span { font-size: 12px; color: var(--grey); }
.you-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.tile { background: var(--bg); border-radius: 16px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 4px; opacity: 0; will-change: transform, opacity; }
.tile b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile span { font-size: 13px; color: var(--grey); }

/* scroll cue */
.scroll-cue {
  position: fixed; left: 50%; bottom: 26px; z-index: 15; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-lift); opacity: 0; will-change: transform, opacity;
}

/* memories (sticky; the page scroll drives the roll) */
.back { display: block; height: 300vh; padding: 0; }
.back .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.back .roll-card { width: min(420px, 100%); aspect-ratio: auto; height: min(640px, calc(100svh - var(--nav-h) - 80px)); }

/* the eye */
.kept { display: block; min-height: 120vh; min-height: 120svh; padding: 140px 0 0; overflow: hidden; }
#eye { position: absolute; inset: 0; width: 100%; height: 100%; }
.kept h2 { position: relative; z-index: 2; }
.wordmark { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; pointer-events: none; }
.wordmark .word { font-size: clamp(64px, 9vw, 120px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; display: inline-flex; }
.wordmark .word .l { display: inline-block; opacity: 0; will-change: transform, opacity; }
.wordmark .tag { margin-top: 14px; font-size: clamp(19px, 2vw, 26px); color: var(--grey); font-weight: 500; letter-spacing: -0.02em; opacity: 0; }

/* join */
.join { padding-top: 40px; padding-bottom: 140px; }
.join-card { max-width: 560px; margin: 0 auto; padding: 44px 40px 36px; border-radius: 32px; }
.join-card h2 { font-size: clamp(36px, 4.4vw, 52px); margin-top: 20px; }
.join-card .body { margin-top: 14px; max-width: none; }
form { margin-top: 28px; display: grid; gap: 12px; }
.field { display: block; }
.field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field input {
  width: 100%; height: 58px; padding: 0 20px; border-radius: 18px; border: 1.5px solid transparent; background: var(--bg);
  font: 500 17px/1 Geist, sans-serif; color: var(--ink); outline: none;
}
.field input::placeholder { color: var(--tertiary); }
.field input:focus { background: #fff; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--or); background: #fff; }
form .pill { margin-top: 6px; height: 60px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 2px 0 0; min-height: 20px; font-size: 14px; color: var(--or-text); }
.fine { margin: 6px 0 0; font-size: 13px; color: var(--tertiary); }
.fine a, .foot-small a { color: inherit; text-underline-offset: 3px; }
.join-done { text-align: left; }
.join-done .pill { margin-top: 26px; }
.done-dot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tint); }
.done-dot i { width: 16px; height: 16px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 6px rgba(255, 90, 31, .18); }

/* footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--hairline); }
.foot .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 19px; }
.foot-tag { color: var(--grey); }
.foot-small { margin-left: auto; color: var(--tertiary); font-size: 14px; }


/* ── phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --gutter: 20px; --nav-h: 60px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .beat { padding: 96px 0; min-height: auto; }
  .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
  .hero .grid { grid-template-columns: 1fr; }
  .hero .visual { min-height: 0; }
  .gather { width: min(340px, 88vw); }
  .g-chip { font-size: 13px; }
  .visual { min-height: 0; }
  .golive { width: 260px; height: 220px; }
  .timer { align-items: flex-start; }
  .nav .pill--sm { height: 40px; padding: 0 15px; font-size: 14px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; }
  .live-chip { height: 32px; font-size: 13px; padding: 0 11px 0 10px; }
  .back .sticky, .mapstory .sticky { align-items: flex-start; padding-top: calc(var(--nav-h) + 12px); }
  .mapstory .grid { gap: 18px; }
  .mapstory h2 { font-size: clamp(30px, 8vw, 40px); }
  .mapstory .body { display: none; }
  .mapstory .visual { justify-content: flex-start; }
  .mapstory .map-card { width: 100%; height: calc(100svh - var(--nav-h) - 190px); max-height: 560px; aspect-ratio: auto; }
  .scroll-cue { left: auto; right: var(--gutter); margin-left: 0; bottom: 20px; }
  .you-card { padding: 24px 20px 20px; }
  .you-bars { gap: 7px; }
  .tile { padding: 14px 11px 12px; }
  .tile b { font-size: 17px; }
  .back .grid { gap: 18px; }
  .back h2 { font-size: clamp(30px, 8vw, 40px); }
  .back .body { display: none; }
  .back .visual { justify-content: flex-start; }
  .back .roll-card { width: 100%; height: calc(100svh - var(--nav-h) - 230px); max-height: 560px; }
  .kept { min-height: 105svh; padding-top: 110px; }
  .join-card { padding: 32px 22px 26px; border-radius: 28px; }
  .banner--still { left: -10px; right: -10px; }
  .foot-small { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .nav .brand span { display: none; }
  .live-chip { left: calc(var(--gutter) + 42px); --tx: 0px; }
}
