/* ============================================================
   SCENE — whatsthescenetonight.com
   Layout: one phone travels through the page (center → right → left …)
   while the story is told on the opposite side.
   ============================================================ */

:root {
  --bg: #08060B;                 /* Eclipse base */
  --bg-2: #0e0e13;
  --bg-3: #17171d;
  --ink: #F4EEF7;
  --muted: rgba(244, 238, 247, .66);
  --faint: #6b6b76;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --brand: #ff4d94;
  --brand-2: #df1f6b;
  --violet: #8A5CFF;

  /* type: Instrument Sans carries the site, Instrument Serif italic marks the key words.
     The phone keeps Satoshi, the font the Scene app itself uses. */
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --display: var(--serif);
  --body: var(--sans);
  --brandface: var(--sans);
  --app-font: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1400px;
  --pw: min(320px, calc((100svh - 150px) / 2.23));   /* phone width */
  --shift: calc(min(100vw, var(--max)) / 4);         /* how far the phone travels sideways */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: #0a0a0f; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.is-loading { overflow: hidden; }
/* while the loader plays, the page can't be scrolled (html is the scroller because of overflow-x: clip) */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
html.is-locked body { touch-action: none; }

/* ---------------- portal loader ---------------- */
.portal {
  position: fixed; inset: 0; z-index: 300;
  background: radial-gradient(circle at 50% 50%, #12020b 0%, var(--bg) 60%);
  overflow: hidden;
  display: none;
}
.js .portal { display: block; }
.portal.is-done { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.portal__scene { position: absolute; inset: 0; perspective: 700px; perspective-origin: 50% 50%; }
.portal__tunnel { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.portal__poster {
  position: absolute; left: 0; top: 0;
  width: 170px; height: 220px; margin: -110px 0 0 -85px;
  border-radius: 12px;
  background: #222 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.6);
  backface-visibility: hidden;
}
.portal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(255,255,255,.9);
  opacity: 0;
}
.portal.is-flash::after { animation: flash .7s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 35% { opacity: .55; } 100% { opacity: 0; } }
/* the line arrives in the centre at the end of the flight, right before the page */
.portal__line {
  position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: 18px; width: max-content; max-width: 90vw;
  font-family: var(--sans); font-weight: 600; font-size: clamp(36px, 5.8vw, 92px);
  letter-spacing: -.04em; line-height: 1; text-align: center; color: #fff;
  opacity: 0; transform: scale(.82); filter: blur(10px);
  transition: opacity .55s ease, transform .9s var(--ease), filter .6s ease;
}
.portal__line img { height: clamp(46px, 7vw, 86px); }
.portal__line em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand); font-size: 1.1em; letter-spacing: -.01em; }
.portal__scene { transition: opacity .7s ease, filter .7s ease; }
.portal.is-arrive .portal__scene { opacity: .22; filter: blur(6px); }
.portal.is-arrive .portal__line { opacity: 1; transform: none; filter: none; }

/* ---------------- cursor ---------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 250;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--brand); mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------------- shared bits ---------------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.5); border-radius: 14px;
  transition: transform .3s var(--spring), border-color .25s, box-shadow .3s;
}
.store-badge:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.store-badge__logo { width: 24px; height: 24px; fill: #fff; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge__text small { font-size: 11px; }
.store-badge__text strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.store-badge--sm { height: 42px; gap: 8px; padding: 0 14px 0 11px; border-radius: 10px; }
.store-badge--sm .store-badge__logo { width: 17px; height: 17px; }
.store-badge--sm .store-badge__text small { font-size: 9px; }
.store-badge--sm .store-badge__text strong { font-size: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,148,.6); } 50% { box-shadow: 0 0 0 7px rgba(255,77,148,0); } }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--pad-x);
  background: rgba(5,5,6,.55);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(5,5,6,.8); }
.nav__inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav__logo img { display: block; height: clamp(40px, 3.4vw, 48px); width: auto; transition: transform .5s var(--spring); }
.nav__logo:hover img { transform: translateY(-2px) rotate(-2deg); }
.nav__logo:hover .nav__links { display: flex; gap: 4px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); background: rgba(255,255,255,.07); }
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--brand));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------------- Eclipse background (landing view) ---------------- */
/* static grain over the whole page, 5% */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.7 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Flyer wall: real posters scroll past in tilted columns, washed pink and dimmed.
   It sits at the top of the story, under the phone (z 2) and the copy (z 3). */
.hero-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 100svh; z-index: 1;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 74%, transparent 100%);
}
.flyers { position: absolute; inset: -32% -12%; display: flex; gap: 18px; transform: rotate(-10deg); opacity: calc(.42 * var(--vis, 1)); translate: 0 calc(var(--p, 0) * 6%); }
.flyers .col { flex: 1; min-width: 0; }
.flyers .track { display: flex; flex-direction: column; gap: 18px; animation: wall-up 60s linear infinite; will-change: transform; }
.flyers .col:nth-child(even) .track { animation-name: wall-down; animation-duration: 70s; }
.flyers img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: none; } }
.flyer-tint { position: absolute; inset: 0; background: var(--brand); mix-blend-mode: color; opacity: calc(.38 * var(--vis, 1)); }
/* darker at both sides (headline left, App Store right) and under the nav; the phone covers the middle */
.flyer-shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(8,6,11,.93) 0%, rgba(8,6,11,.74) 32%, rgba(8,6,11,.42) 50%, rgba(8,6,11,.74) 68%, rgba(8,6,11,.93) 100%),
    linear-gradient(180deg, rgba(8,6,11,.75) 0, transparent 20%, transparent 70%, var(--bg) 100%); }
/* fade in when the loader hands over to the page */
.js .hero-bg { opacity: 0; }
.is-ready .hero-bg { opacity: 1; transition: opacity 1.4s ease; }
/* phones: fewer columns, a darker wash so the headline stays readable */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .flyers { inset: -30% -30%; gap: 12px; opacity: calc(.42 * var(--vis, 1)); }
  .flyers .track { gap: 12px; }
  .flyers .col:nth-child(n+5) { display: none; }
  .flyer-shade { background: linear-gradient(180deg, rgba(8,6,11,.8) 0, rgba(8,6,11,.6) 35%, rgba(8,6,11,.55) 70%, var(--bg) 100%); }
}

/* ---------------- story + traveling phone ---------------- */
.story { position: relative; }
.stage-track { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stage {
  position: sticky; top: 0; height: 100svh;
  z-index: 2; pointer-events: none;
  display: grid; place-items: center;
  padding-top: 40px;
}
.rig {
  --x: 0px; --s: 1;
  position: relative;
  transform: translate3d(var(--x), 0, 0) scale(var(--s));
  will-change: transform;
}
.js .rig { opacity: 0; }
.is-ready .rig { opacity: 1; animation: rigIn 1.3s var(--ease) backwards; }
@keyframes rigIn { from { opacity: 0; transform: translate3d(0, 50px, 0) scale(.92); } }
.tilt { transition: transform .6s var(--ease); will-change: transform; }
/* iPhone 15 Pro Max, White Titanium. Real proportions: 76.7 × 159.9 mm body,
   430 × 932 pt display, ~2.75 mm from the body edge to the lit display, 55 pt display corners.
   Everything is a fraction of the body width (--pw). */
.phone {
  --band: calc(var(--pw) * .013);     /* titanium band seen from the front */
  --bezel: calc(var(--pw) * .023);    /* black border around the display */
  position: relative;
  width: var(--pw); aspect-ratio: 1 / 2.0834;
  padding: var(--band);
  border-radius: calc(var(--pw) * .154);
  background:
    linear-gradient(180deg, rgba(255,255,255,.4), transparent 10%, transparent 90%, rgba(0,0,0,.14)),
    linear-gradient(90deg, #aeaba5 0%, #efeeea 3%, #d3d0ca 6.5%, #e7e5e0 28%, #dcd9d3 72%, #e9e7e2 93.5%, #f4f3ef 97%, #aeaba5 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.3),
    inset 0 0 0 calc(var(--pw) * .006) rgba(255,255,255,.5),
    0 50px 100px rgba(0,0,0,.6),
    0 2px 4px rgba(0,0,0,.4);
}
/* antenna lines in the titanium band */
.phone::after {
  content: ""; position: absolute; left: 0; top: 12.5%; width: var(--band); height: calc(var(--pw) * .006);
  background: rgba(105,102,96,.7);
  box-shadow: calc(var(--pw) - var(--band)) 0 0 rgba(105,102,96,.7),
              0 calc(var(--pw) * 2.0834 * .75) 0 rgba(105,102,96,.7),
              calc(var(--pw) - var(--band)) calc(var(--pw) * 2.0834 * .75) 0 rgba(105,102,96,.7);
}
/* hardware buttons: Action button + volume on the left, side button on the right */
.phone__btn {
  position: absolute; width: calc(var(--pw) * .012); border-radius: 2px;
  background: linear-gradient(90deg, #a9a6a0, #f0eee9 45%, #c8c5be);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25);
}
.phone__btn--action { left: calc(var(--pw) * -.009); top: 17.5%; height: 4.2%; }
.phone__btn--vol-up { left: calc(var(--pw) * -.009); top: 24.5%; height: 6.8%; }
.phone__btn--vol-down { left: calc(var(--pw) * -.009); top: 32.5%; height: 6.8%; }
.phone__btn--side { right: calc(var(--pw) * -.009); top: 27%; height: 10.5%; background: linear-gradient(270deg, #a9a6a0, #f0eee9 45%, #c8c5be); }
.phone__screen {
  position: relative; overflow: hidden;
  height: 100%;
  border: var(--bezel) solid #030303;
  border-radius: calc(var(--pw) * .141);
  background: #0b0b0e;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55);
}
/* a faint reflection on the glass */
.phone__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 60; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 26%, transparent 38%);
}
.phone__island { display: none; }
.phone__shadow {
  position: absolute; left: 10%; right: 10%; bottom: -36px; height: 30px;
  background: radial-gradient(closest-side, rgba(255,77,148,.35), transparent);
  filter: blur(12px); transform: translateZ(-60px);
}
.is-live .phone { pointer-events: auto; cursor: auto; }
/* animated hand over the landing phone: shows the feed can be swiped. Hidden after the first touch/scroll inside the phone. */
.swipe-hint { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.is-ready .is-live .swipe-hint { opacity: 1; transition-delay: .9s; }
.is-live.hand-done .swipe-hint, .stage:not(.is-live) .swipe-hint { opacity: 0 !important; transition-delay: 0s; }
.swipe-hint__hand { position: absolute; left: 52%; top: 62%; width: calc(var(--pw) * .24); filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  transform-origin: 40% 10%; animation: handSwipe 2.6s cubic-bezier(.45,0,.2,1) infinite; }
.swipe-hint__trail { position: absolute; left: calc(52% + var(--pw) * .082); top: 36%; width: calc(var(--pw) * .055); height: 28%; margin-left: calc(var(--pw) * -.0275);
  border-radius: 999px; background: linear-gradient(180deg, rgba(255,77,148,0), rgba(255,77,148,.55)); transform-origin: 50% 0;
  animation: handTrail 2.6s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes handSwipe {
  0%   { opacity: 0; transform: translateY(14%) scale(1.06); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  20%  { transform: translateY(0) scale(.9); }
  58%  { opacity: 1; transform: translateY(-140%) scale(.9); }
  68%  { opacity: 1; transform: translateY(-150%) scale(1); }
  82%, 100% { opacity: 0; transform: translateY(-150%) scale(1); }
}
@keyframes handTrail {
  0%, 20% { opacity: 0; transform: translateY(100%) scaleY(0); }
  30%  { opacity: 1; }
  58%  { opacity: 1; transform: translateY(0) scaleY(1); }
  76%, 100% { opacity: 0; transform: translateY(0) scaleY(.4); }
}
@media (prefers-reduced-motion: reduce) { .swipe-hint__hand { animation: none !important; transform: translateY(-60%); } .swipe-hint__trail { display: none; } }
.hint {
  position: absolute; left: 50%; bottom: -46px; translate: -50% 0;
  white-space: nowrap; font-size: 13px; color: var(--faint);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .5s;
}
.hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.is-live .hint { opacity: 1; }

/* chapters */
.ch {
  position: relative;
  min-height: 100svh;
  max-width: var(--max); margin: 0 auto;
  padding: 120px var(--pad-x);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  pointer-events: none;
}
.ch > * { pointer-events: auto; position: relative; z-index: 3; }
/* the copy sits on the opposite side from where the phone glides to */
.ch__copy { max-width: 30rem; width: 100%; justify-self: center; }
.ch[data-pos="right"] .ch__copy { grid-column: 1; }
.ch[data-pos="left"] .ch__copy { grid-column: 2; }
.ch h2 {
  font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(42px, 4.4vw, 70px); text-wrap: balance;
}
.ch h2 em, .legal h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand); font-size: 1.1em; letter-spacing: -.01em; padding-right: .04em; }
.ch__text { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 28em; }

.js .ch__copy > *, .js .ch--hero > * > *, .js .ch--cta > * > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.ch.is-in .ch__copy > *, .ch.is-in > * > * { opacity: 1; transform: none; }
/* section headlines rise out of a mask instead of fading */
.js .ch__copy > h2 { opacity: 1; transform: none; overflow: hidden; padding: .06em .12em .1em 0; margin-top: -.06em; }
.js .ch__copy > h2 > .h2-in { display: block; transform: translateY(108%); transition: transform 1s var(--ease) .05s; }
.ch.is-in .ch__copy > h2 > .h2-in { transform: none; }
.ch.is-in .ch__copy > *:nth-child(2), .ch.is-in > * > *:nth-child(2) { transition-delay: .07s; }
.ch.is-in .ch__copy > *:nth-child(3), .ch.is-in > * > *:nth-child(3) { transition-delay: .14s; }
.ch.is-in .ch__copy > *:nth-child(4), .ch.is-in > * > *:nth-child(4) { transition-delay: .21s; }
.ch.is-in .ch__copy > *:nth-child(5), .ch.is-in > * > *:nth-child(5) { transition-delay: .28s; }

/* hero */
.ch--hero { grid-template-columns: 1fr calc(var(--pw) + 140px) 1fr; padding-top: 96px; }
.hero__left { grid-column: 1; justify-self: end; text-align: right; }
.hero__right { grid-column: 3; justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 22rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.hero__title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(48px, 5.2vw, 88px); line-height: .98; letter-spacing: -.045em; text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); }
.is-ready .hero__title .line > span { transform: none; transition: transform 1s var(--ease); }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.hero__title .line--brand { font-family: var(--serif); font-weight: 400; color: var(--brand); font-style: italic; font-size: 1.14em; letter-spacing: -.012em; }
.hero__live { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hero__sub { font-size: 19px; color: var(--muted); line-height: 1.55; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: none;
}

/* vibes */
/* vibes: loose, scattered pills joined by faint threads, like a little web of nights */
.vibes { list-style: none; position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 30px; margin-top: 36px; padding: 8px 4px 12px; max-width: 36rem; }
.vibes li { translate: calc(var(--tx, 0px) * .6) var(--ty, 0); rotate: var(--r, 0deg); }
.vibes li:nth-child(1) { --ty: 4px;   --r: -3deg; }
.vibes li:nth-child(2) { --tx: 14px;  --ty: -10px; --r: 2deg; }
.vibes li:nth-child(3) { --tx: 26px;  --ty: 8px;   --r: -1.5deg; }
.vibes li:nth-child(4) { --tx: -6px;  --ty: -4px;  --r: 3deg; }
.vibes li:nth-child(5) { --tx: 30px;  --ty: 10px;  --r: -2.5deg; }
.vibes li:nth-child(6) { --tx: 18px;  --ty: -8px;  --r: 1.5deg; }
.vibes li:nth-child(7) { --tx: 44px;  --ty: 6px;   --r: -3deg; }
.vibes li:nth-child(8) { --tx: 6px;   --ty: -6px;  --r: 2.5deg; }
.vibes__web { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }
.vibes__web line { stroke: rgba(244,238,247,.16); stroke-width: 1; stroke-dasharray: 3 4; transition: stroke .4s, stroke-width .4s; }
.vibes__web line.is-on { stroke: rgba(255,77,148,.75); stroke-dasharray: none; stroke-width: 1.4; }

.vibe {
  font-family: var(--sans); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -.015em;
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink); background: var(--bg);
  position: relative;
  transition: background .35s var(--ease), color .25s, border-color .25s, scale .4s var(--spring);
}
.vibe:hover { border-color: var(--brand); color: var(--brand); }
.vibe.is-on { background: #2a1020; border-color: rgba(255,77,148,.28); color: #fff; animation: vibePop .45s var(--spring); }
/* the border is the timer: a pink line runs all the way round the lit pill before the next one lights up */
@property --vp { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.vibe::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from 270deg, var(--brand) var(--vp), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
}
.vibe.is-on::after { opacity: 1; --vp: 360deg; }
.vibe.is-on.is-auto::after { animation: vibeTimer 2.4s linear forwards; }
@keyframes vibePop { 0% { scale: .92; } 100% { scale: 1; } }
@keyframes vibeTimer { from { --vp: 0deg; } to { --vp: 360deg; } }

/* post: visibility */
.seg { display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; border-radius: 100px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg button { font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 18px; border-radius: 100px; transition: background .3s var(--ease), color .25s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--brand); color: #0a0a0f; }
.seg-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.seg-wrap .seg { margin-top: 0; }
.seg21 { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-weight: 600; font-size: 15px; color: var(--muted); transition: color .25s, border-color .25s; }
.seg21 i { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #2a2a31; transition: background .3s; }
.seg21 i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8b8b95; transition: transform .35s var(--spring), background .3s; }
.seg21.is-on { color: var(--ink); border-color: var(--brand); }
.seg21.is-on i { background: rgba(255,77,148,.35); }
.seg21.is-on i::after { transform: translateX(14px); background: var(--brand); }
.seg__note { margin-top: 12px; font-size: 14px; color: var(--faint); min-height: 1.6em; }

/* friends */
.avatars { display: flex; align-items: center; margin-top: 28px; }
.avatars img, .avatars b {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg); margin-left: -14px; background: var(--bg-3);
}
.avatars img:first-child { margin-left: 0; }
.avatars b { display: grid; place-items: center; font-size: 14px; color: var(--muted); }

/* cta */
.ch--cta { grid-template-columns: 1fr calc(var(--pw) + 140px) 1fr; }
.cta__left { grid-column: 1; justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; max-width: 26rem; }
.cta__left .ch__text { margin-top: 0; }
.cta__right { grid-column: 3; justify-self: start; display: flex; flex-direction: column; gap: 28px; }
.qr {
  display: inline-flex; align-items: center; gap: 16px; align-self: flex-start;
  background: #fff; color: #0a0a0f; border-radius: 20px; padding: 12px 20px 12px 12px;
  text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -.01em;
  transition: transform .3s var(--spring);
}
.qr:hover { transform: rotate(-2deg) scale(1.02); }
.qr img { width: 88px; height: 88px; }

/* ---------------- footer (the Sep 29 one) ---------------- */
.footer { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: 72px var(--pad-x) 32px; text-align: center; overflow: hidden; }
.footer__tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin-bottom: 26px; }
.footer__socials { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.footer__socials a {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .25s, background .25s, transform .35s var(--spring);
}
.footer__socials svg { width: 17px; height: 17px; fill: var(--muted); transition: fill .25s; }
.footer__socials a:hover { border-color: var(--brand); background: rgba(255,77,148,.12); transform: translateY(-4px); }
.footer__socials a:hover svg { fill: var(--brand); }
.footer__links { position: relative; z-index: 2; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.footer__links a:hover { color: var(--brand); }
.footer-logo { display: block; width: clamp(240px, 52vw, 640px); margin: 70px auto 16px; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer__legal { margin-top: 32px; font-size: 13px; color: var(--faint); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 150px var(--pad-x) 110px; }
.legal h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 18px; }
.legal__intro { color: var(--muted); margin-bottom: 52px; font-size: 18px; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -.025em; margin: 44px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal ul { color: var(--muted); padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--brand); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand); }

/* ============================================================
   THE APP (drawn at 390×844 and scaled to fit the phone)
   ============================================================ */
.app {
  --k: .8;
  position: absolute; left: 0; top: 0;
  width: 390px; height: 845.3px;   /* 430 × 932 pt display, drawn at 390 wide */
  transform: scale(var(--k)); transform-origin: 0 0;
  font-family: var(--app-font); color: #f4f4f5; background: #0b0b0e;
  font-size: 16px; line-height: 1.35;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
.app button { cursor: pointer; }
.app svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.a-status {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px;
  font-weight: 600; font-size: 17px; letter-spacing: -.01em; pointer-events: none;
}
.a-status__icons { display: flex; gap: 6px; align-items: center; font-size: 17px; }
.a-status__icons i { display: block; width: 26px; height: 13px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.55); position: relative; }
.a-status__icons i::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #fff; border-radius: 2px; }
.a-island { position: absolute; left: 50%; top: 10.5px; width: 114px; height: 34px; margin-left: -57px; background: #000; border-radius: 17px; z-index: 30; pointer-events: none; }
.a-view {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  padding-top: 54px;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .55s;
  display: flex; flex-direction: column;
}
.a-view.is-on { opacity: 1; visibility: visible; transform: none; }
.a-view.is-back { transform: translateX(-40px); }

/* header */
.a-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 10px; }
.a-head img { height: 50px; }
.a-head__icons { display: flex; gap: 24px; font-size: 27px; color: #eee; }
.a-chips { display: flex; gap: 8px; padding: 6px 18px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
.a-chips::-webkit-scrollbar { display: none; }
.a-chip {
  flex: none; height: 40px; padding: 0 18px; border-radius: 20px;
  background: #1a1a20; border: 1px solid #26262d; color: #e8e8ea; font-size: 17px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.a-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* feed */
.a-feed { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 0 130px; scrollbar-width: none; overscroll-behavior: contain; }
.a-feed::-webkit-scrollbar { display: none; }
.a-card {
  position: relative; display: block; width: calc(100% - 4px); margin: 0 2px 14px; text-align: left;
  height: 478px; border-radius: 32px; overflow: hidden;
  background: #222 center / cover no-repeat;
  transition: transform .35s var(--ease);
}
.a-card:active { transform: scale(.98); }
.a-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,.82) 100%);
}
.a-card > * { position: relative; }
.a-host { display: flex; align-items: center; gap: 12px; padding: 22px 22px 0; }
.a-av {
  width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: #fff; color: #1f6fd1;
  font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.a-av img { width: 100%; height: 100%; object-fit: cover; }
.a-av--dark { background: #111; color: #fff; }
.a-host small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.a-host b { font-size: 20px; font-weight: 600; }
.a-card__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 20px; }
.a-card h3 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.a-card__meta { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; font-size: 17px; }
.a-card__meta em { color: rgba(255,255,255,.85); }
.a-card__counts { display: flex; gap: 14px; font-style: normal; color: #fff; }
.a-card__counts span { display: inline-flex; align-items: center; gap: 5px; }
.a-pills { display: flex; gap: 8px; overflow: hidden; }
.a-pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none; max-width: 150px;
  height: 42px; padding: 0 16px; border-radius: 21px;
  border: 1.5px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25);
  font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-pill span { overflow: hidden; text-overflow: ellipsis; }
.a-empty { margin: 40px 24px; padding: 34px 24px; text-align: center; border-radius: 26px; border: 1.5px dashed #2c2c34; color: #a1a1aa; }
.a-empty b { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
.a-empty button { margin-top: 18px; height: 46px; padding: 0 22px; border-radius: 23px; background: var(--brand); color: #fff; font-weight: 600; }

/* tab bar */
.a-tabbar {
  position: absolute; left: 18px; right: 102px; bottom: 30px; z-index: 15;
  height: 76px; border-radius: 38px; padding: 0 12px;
  background: rgba(58, 58, 64, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-around;
  transition: transform .5s var(--ease), opacity .4s;
}
.a-tab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; transition: background .3s; }
.a-tab.is-on { background: rgba(255,255,255,.18); }
.a-tab .a-me { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); display: grid; place-items: center; }
.a-tab .a-me img { width: 24px; height: 24px; border: 0; border-radius: 0; filter: brightness(0) invert(1); }
.a-fab {
  position: absolute; right: 18px; bottom: 30px; z-index: 15;
  width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 36px;
  box-shadow: 0 10px 30px rgba(255,77,148,.45);
  transition: transform .5s var(--ease), opacity .4s;
}
.app.no-tabs .a-tabbar, .app.no-tabs .a-fab { transform: translateY(140px); opacity: 0; }

/* event */
.a-topbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px 14px; }
.a-circle { width: 56px; height: 56px; border-radius: 50%; background: #1c1c22; display: grid; place-items: center; font-size: 26px; flex: none; }
.a-topbar h4 { flex: 1; min-width: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-scroll { position: relative; flex: 1; overflow-y: auto; padding: 0 18px 130px; scrollbar-width: none; scroll-behavior: smooth; }
.a-scroll::-webkit-scrollbar { display: none; }
.a-banner { height: 470px; border-radius: 26px; background: #222 center / cover no-repeat; margin-bottom: 14px; }
.a-box { background: #1b1b21; border: 1px solid #26262e; border-radius: 30px; padding: 24px 24px; margin-bottom: 14px; }
.a-box h5 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.a-box p { color: #b4b4bd; font-size: 17px; line-height: 1.5; }
.a-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.a-title-row h3 { font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.a-price { flex: none; padding: 6px 16px; border-radius: 20px; background: rgba(255,77,148,.18); color: var(--brand); font-weight: 600; font-size: 17px; }
.a-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #c9c9d0; font-size: 18px; }
.a-row svg { font-size: 22px; color: #9a9aa4; }
.a-going { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.a-going em { color: #8b8b95; font-size: 16px; }
.a-going__count { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 22px; background: #26262d; font-weight: 600; font-size: 17px; }
.a-faces { display: flex; }
.a-faces img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #1b1b21; margin-left: -10px; object-fit: cover; }
.a-faces img:first-child { margin-left: 0; }
.a-friends { display: flex; align-items: center; gap: 14px; transition: box-shadow .5s; }
.a-friends .a-faces img { width: 46px; height: 46px; margin-left: -14px; }
.a-friends .a-faces img:first-child { margin-left: 0; }
.a-friends b { display: block; font-size: 18px; }
.a-friends span { color: #9a9aa4; font-size: 15px; }
.a-friends.is-hot { box-shadow: 0 0 0 2px var(--brand), 0 0 40px rgba(255,77,148,.35); }
.a-hostbox { display: flex; align-items: center; justify-content: space-between; }
.a-hostbox small { color: #9a9aa4; font-size: 16px; }
.a-hostbox b { display: block; font-size: 24px; font-weight: 600; }
.a-hostbox .a-av { width: 64px; height: 64px; font-size: 20px; }
.a-actions {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  display: flex; gap: 12px; padding: 16px 18px 34px;
  background: linear-gradient(180deg, rgba(11,11,14,0), #0b0b0e 30%);
}
.a-rsvp {
  flex: 1; height: 68px; border-radius: 24px; background: var(--brand); color: #0b0b0e;
  font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .3s, transform .3s var(--spring);
}
.a-rsvp:active { transform: scale(.97); }
.a-rsvp.is-going { background: #1f2a22; color: #4ade80; letter-spacing: .02em; text-transform: none; }
.a-rsvp.is-pulse { animation: rsvpPulse 1.6s ease-in-out infinite; }
@keyframes rsvpPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,148,.6); } 50% { box-shadow: 0 0 0 14px rgba(255,77,148,0); } }
.a-actions .a-circle { width: 66px; height: 66px; }
/* event: centred title between back + flag, RSVP pinned under a hairline (as in the app) */
.a-topbar--center h4 { text-align: center; }
.a-actions--line { background: #0b0b0e; border-top: 1px solid #22222a; padding-top: 18px; }
.a-rsvp--soft { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 21px; }

/* map (matches the app: count pill, red pins, callout, Post Your Scene, locate) */
.a-map { padding-top: 0; }
/* map: E (you at the centre, walking rings, flyer chips) on top of B (a row of flyers to swipe) */
.a-map .a-map__streets { position: absolute; left: 0; top: 0; width: 390px; height: 520px; max-width: none; stroke: none; }
.a-map .a-map__streets * { stroke: none; }
.a-map__pill { position: absolute; left: 20px; top: 66px; z-index: 3; padding: 11px 18px; border-radius: 22px; background: rgba(20,20,24,.92); border: 1px solid #2c2c34; font-size: 17px; font-weight: 600; }
.a-ring { position: absolute; left: 195px; top: 300px; translate: -50% -50%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.17); pointer-events: none; }
.a-ring__label { position: absolute; left: 195px; translate: -50% -50%; font-size: 12px; color: #9a9aa4; background: #0d0e12; padding: 2px 7px; border-radius: 6px; pointer-events: none; }
.a-me { position: absolute; left: 195px; top: 300px; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: var(--brand); border: 4px solid #fff; box-shadow: 0 0 0 10px rgba(255,77,148,.2), 0 0 0 22px rgba(255,77,148,.08); z-index: 2; }
.a-pin {
  position: absolute; z-index: 3; translate: -50% -50%; display: flex; align-items: center; gap: 8px; text-align: left; color: #fff;
  background: rgba(20,20,24,.94); border: 1px solid #2c2c34; padding: 5px 12px 5px 5px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0,0,0,.45);
  animation: pinDrop .7s cubic-bezier(.3,1.5,.5,1) backwards; animation-delay: calc(.2s + var(--i, 0) * .1s); transition: background .25s, border-color .25s, scale .3s var(--spring);
}
.a-pin i { width: 34px; height: 34px; border-radius: 50%; background: #333 center / cover; border: 2px solid var(--brand); flex: none; }
.a-pin b { display: block; font-size: 14px; white-space: nowrap; line-height: 1.15; }
.a-pin small { display: block; font-size: 12px; color: #a1a1aa; white-space: nowrap; }
.a-pin.is-on { background: var(--brand); border-color: #fff; z-index: 4; scale: 1.06; }
.a-pin.is-on small { color: rgba(255,255,255,.85); }
.a-pin.is-on i { border-color: #fff; }
.a-view:not(.is-on) .a-pin { animation: none; }
@keyframes pinDrop { 0% { opacity: 0; transform: translateY(-40px) scale(.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.a-near { position: absolute; left: 0; right: 0; bottom: 0; top: 470px; z-index: 5; background: #0f0f13; border-radius: 30px 30px 0 0; padding-top: 12px; box-shadow: 0 -16px 40px rgba(0,0,0,.55); }
.a-near__grab { width: 44px; height: 5px; border-radius: 3px; background: #3a3a42; margin: 0 auto 12px; }
.a-near__head { padding: 0 22px 10px; }
.a-near__head b { display: block; font-size: 22px; }
.a-near__head small { font-size: 15px; color: #8b8b95; }
.a-near__rail { display: flex; gap: 12px; padding: 4px 22px 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.a-near__rail::-webkit-scrollbar { display: none; }
.a-near__card { flex: none; width: 128px; text-align: left; color: #fff; }
.a-near__card i { display: block; height: 112px; border-radius: 14px; background: #222 center / cover; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .25s; }
.a-near__card.is-on i { outline-color: var(--brand); }
.a-near__card b { display: block; font-size: 15px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-near__card small { display: block; font-size: 13px; color: #8b8b95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* plans + profile */
.a-pagehead { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 18px 18px; font-size: 30px; font-weight: 600; }
.a-pagehead .a-circle { position: absolute; right: 18px; top: 4px; }
.a-list { padding: 0 18px 130px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; scrollbar-width: none; }
.a-list::-webkit-scrollbar { display: none; }
.a-li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 24px; background: #1b1b21; border: 1px solid #26262e; text-align: left; width: 100%; }
.a-li i { width: 74px; height: 74px; border-radius: 16px; background: #333 center / cover; flex: none; }
.a-li b { display: block; font-size: 19px; }
.a-li span { color: #a1a1aa; font-size: 15px; }
.a-li em { margin-left: auto; font-style: normal; color: #4ade80; font-size: 14px; font-weight: 600; }
.a-avatar-big {
  width: 150px; height: 150px; margin: 6px auto 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff7ab0, var(--brand-2) 55%, var(--violet));
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255,77,148,.15), 0 0 60px rgba(255,77,148,.35);
}
.a-avatar-big img { width: 84px; filter: brightness(0) invert(1); }
.a-name { text-align: center; margin-top: 18px; font-size: 36px; font-weight: 600; letter-spacing: -.02em; }
.a-handle { text-align: center; color: #8b8b95; font-size: 18px; }
.a-campus { display: flex; justify-content: center; margin-top: 16px; }
.a-campus span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 26px; border: 1px solid #2c2c34; background: #141419; font-size: 18px; }
.a-campus i { width: 14px; height: 18px; background: #ff5f05; border-radius: 3px 3px 7px 7px; }
.a-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 18px 18px; }
.a-stats div { text-align: center; border-left: 1px solid #26262e; }
.a-stats div:first-child { border-left: 0; }
.a-stats b { display: block; font-size: 36px; font-weight: 600; }
.a-stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8b8b95; }
.a-sub { padding: 6px 22px 10px; font-size: 22px; font-weight: 600; }

/* post — Drop A Flyer (matches the app) */
.a-topbar--plain { padding: 16px 18px 22px; }
.a-topbar--plain h4 { text-align: center; font-size: 30px; }
.a-plain { width: 44px; height: 44px; display: grid; place-items: center; font-size: 30px; flex: none; }
.a-flyer { aspect-ratio: 720 / 991; border-radius: 22px; background: #222 center / cover no-repeat; margin-bottom: 16px; }
.a-postcard { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px; }
.a-postcard h3 { font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.a-postcard svg { font-size: 26px; color: #ddd; }
.a-postcard span { font-size: 18px; color: #e4e4e7; }
.a-hostcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; }
.a-hostcard__av { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: var(--brand); }
.a-hostcard__av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #1b1b21; }
.a-hostcard b { font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.a-hostcard em { font-style: normal; color: var(--brand); font-size: 18px; font-weight: 600; }
.a-vis-h { font-size: 26px; font-weight: 600; margin: 22px 2px 14px; }
.a-vis { padding: 4px 20px; }
.a-vis__row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 17px 0; text-align: left; border-top: 1px solid #2a2a31; }
.a-vis__row:first-child { border-top: 0; }
.a-vis__row svg { font-size: 30px; color: #e8e8ea; }
.a-vis__row b { display: block; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.a-vis__row span { color: #9a9aa4; font-size: 16px; }
.a-switch { position: relative; width: 60px; height: 36px; border-radius: 18px; background: #16161b; border: 1.5px solid #2c2c34; transition: background .3s; }
.a-switch::after { content: ""; position: absolute; left: 5px; top: 5px; width: 23px; height: 23px; border-radius: 50%; background: #7a7a86; transition: transform .35s var(--spring), background .3s; }
.a-vis__row.is-on .a-switch { background: #5a2140; border-color: #5a2140; }
.a-vis__row.is-on .a-switch::after { transform: translateX(23px); background: var(--brand); }

/* toast */
.a-toast {
  position: absolute; left: 50%; top: 62px; z-index: 40;
  translate: -50% -30px; opacity: 0; transition: translate .5s var(--spring), opacity .3s;
  padding: 12px 20px; border-radius: 24px; background: #fff; color: #0b0b0e; font-weight: 600; font-size: 16px; white-space: nowrap;
}
.a-toast.is-on { translate: -50% 0; opacity: 1; }

/* lock screen */
.a-lock { padding-top: 0; background: radial-gradient(120% 70% at 50% 0%, #3a0d24 0%, #120610 50%, #050506 100%); }
.a-lock__time { text-align: center; margin-top: 96px; }
.a-lock__time small { display: block; font-size: 21px; font-weight: 500; color: rgba(255,255,255,.8); }
.a-lock__time b { display: block; font-size: 96px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.a-notes { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; margin-top: auto; margin-bottom: 120px; }
.a-note {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 26px; background: rgba(60, 50, 58, .6); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .5s, transform .6s var(--spring);
}
.a-lock.is-on .a-note { opacity: 1; transform: none; }
.a-lock.is-on .a-note:nth-child(1) { transition-delay: .15s; }
.a-lock.is-on .a-note:nth-child(2) { transition-delay: .25s; }
.a-lock.is-on .a-note:nth-child(3) { transition-delay: .35s; }
.a-note i { width: 46px; height: 46px; border-radius: 12px; background: #0b0b0e url("assets/llama.svg") center / 64% no-repeat; }
.a-note b { display: block; font-size: 16px; }
.a-note span { font-size: 15px; color: rgba(255,255,255,.75); }
.a-note em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.55); align-self: start; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  :root { --pw: min(290px, calc((100svh - 150px) / 2.23)); }
  .hero__title { font-size: clamp(44px, 5vw, 66px); }
}
/* stacked layout: phones + portrait tablets.
   Nothing is pinned here — every section is its copy followed by its own phone,
   so text never slides over or under a device. */
.mshot { display: none; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  :root { --pw: min(64vw, 290px); }
  .nav__links { display: none; }
  .story { display: flex; flex-direction: column; }
  .stage-track { display: contents; }
  .stage {
    order: 1; position: relative; top: auto; height: auto; margin: 0;
    display: grid; place-items: center; padding: 12px 0 64px;
  }
  .ch--hero { order: 0; }
  .ch:not(.ch--hero) { order: 2; }
  .ch, .ch--hero, .ch--cta {
    display: block; min-height: 0;
    padding: 72px var(--pad-x) 0;
  }
  .ch--hero { padding-top: 112px; }
  .ch--cta { padding-bottom: 88px; }
  .ch__copy, .hero__left, .hero__right, .cta__left, .cta__right {
    max-width: 36rem; margin: 0 auto; text-align: left; align-items: flex-start;
  }
  .hero__right, .cta__right { margin-top: 22px; }
  .cta__left { gap: 18px; }
  .ch h2 { font-size: clamp(36px, 10.2vw, 54px); }
  .ch__text { font-size: 16px; }
  .hero__title { font-size: clamp(44px, 12.4vw, 64px); }
  .hero__right { gap: 16px; }
  .ch--cta h2 { font-size: clamp(36px, 10.2vw, 54px); }
  .vibe { font-size: 16px; padding: 8px 14px; }
  .vibes { gap: 20px 16px; }
  .vibes li { translate: calc(var(--tx, 0px) * .3) calc(var(--ty, 0px) * .6); }

  /* each section's own still screen */
  .mshot { display: block; width: var(--pw); margin: 36px auto 0; pointer-events: none; }
  .mshot .phone { width: 100%; }
  .mshot .app *, .mshot .app { transition: none !important; animation: none !important; }
  .js .mshot { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .ch.is-in .mshot { opacity: 1; transform: none; transition-delay: .15s; }
}
/* portrait tablets: roomier type, bigger phones */
@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  :root { --pw: min(42vw, 330px); }
  .ch, .ch--hero, .ch--cta { padding-top: 104px; }
  .ch--hero { padding-top: 140px; }
  .hero__title { font-size: clamp(56px, 8.4vw, 84px); }
  .ch h2, .ch--cta h2 { font-size: clamp(46px, 7vw, 66px); }
  .ch__text, .hero__sub { font-size: 18px; }
}
/* on touch screens, the feed hands the swipe back to the page once it hits the end */
@media (pointer: coarse) { .a-feed, .a-scroll, .a-list { overscroll-behavior: auto; } }
@media (max-width: 480px) {
  .nav__inner .store-badge--sm .store-badge__text small { display: none; }
  .seg button { padding: 9px 13px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .ch__copy > *, .js .ch--hero > * > *, .js .ch--cta > * > *, .js .hero__title .line > span, .js .rig, .js .mshot, .js .h2-in { opacity: 1 !important; transform: none !important; }
  .js .portal { display: none; }
  .js .hero-bg { opacity: 1 !important; }
}

/* ============================================================
   SECTION EFFECTS (see the matching block at the end of script.js)
   Full-bleed layer under the phone (z 1) and the copy (z 3); edges fade so sections blend.
   ============================================================ */
.ch > .fx { position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.fx-in { position: absolute; inset: 0; }
/* footer: the spotlight mosaic sits under the links and the big logo */
.footer > .fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.footer > :not(.fx) { position: relative; z-index: 2; }
.fx-shade[data-side="footer"] { background: radial-gradient(70% 60% at 50% 30%, rgba(8,6,11,.7), rgba(8,6,11,.35) 70%), linear-gradient(180deg, rgba(8,6,11,.4), rgba(8,6,11,.1)); }
.footer__socials a { background: rgba(8,6,11,.72); }
.fx-in i { display: block; background: #15131a center / cover no-repeat; border-radius: 10px; }
.fx-shade { position: absolute; inset: 0; }
.fx-shade[data-side="left"]  { background: linear-gradient(90deg, rgba(8,6,11,.94) 0%, rgba(8,6,11,.78) 38%, rgba(8,6,11,.3) 70%, rgba(8,6,11,.45) 100%); }
.fx-shade[data-side="right"] { background: linear-gradient(270deg, rgba(8,6,11,.94) 0%, rgba(8,6,11,.78) 38%, rgba(8,6,11,.3) 70%, rgba(8,6,11,.45) 100%); }
.fx-shade[data-side="both"]  { background: linear-gradient(90deg, rgba(8,6,11,.92), rgba(8,6,11,.5) 32%, rgba(8,6,11,.15) 50%, rgba(8,6,11,.5) 68%, rgba(8,6,11,.92)); }
.fx-shade[data-side="top"]   { background: linear-gradient(180deg, rgba(8,6,11,.95) 0%, rgba(8,6,11,.85) 35%, rgba(8,6,11,.45) 60%, rgba(8,6,11,.55) 100%); }
.fx-tint { position: absolute; inset: 0; background: var(--brand); mix-blend-mode: color; opacity: .5; }
.fx-dim { position: absolute; inset: 0; background: rgba(8,6,11,.45); }
.fx-rot { position: absolute; inset: -15% -10%; rotate: -8deg; }
.fx-row { position: absolute; left: -20%; display: flex; gap: 16px; will-change: transform; }
.fx-row i { flex: none; width: clamp(110px, 11vw, 170px); aspect-ratio: 4 / 5; }
.fx-rot--wall { rotate: -10deg; inset: -30% -10%; }
.fx-col { position: absolute; top: -20%; width: 11%; display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.fx-col i { aspect-ratio: 4 / 5; }
.fx-mosaic { position: absolute; inset: -40px -10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; will-change: transform; }
.fx-mosaic i { aspect-ratio: 4 / 5; border-radius: 6px; }
.fx-spot { position: absolute; inset: 0; background: radial-gradient(circle min(26vw, 300px) at var(--mx, 70%) var(--my, 50%), rgba(8,6,11,.05) 0, rgba(8,6,11,.5) 55%, rgba(8,6,11,.9) 100%); }
.fx-glow { position: absolute; top: 50%; width: min(80vw, 1000px); aspect-ratio: 1; border-radius: 50% !important; background-size: cover; background-position: center; filter: blur(90px) saturate(1.7); will-change: transform, opacity; }
.fx-fl { position: absolute; aspect-ratio: 4 / 5; box-shadow: 0 16px 34px rgba(0,0,0,.5); will-change: transform; }
.fx-tape { position: absolute; left: 50%; top: -9px; width: 46px; height: 18px; margin-left: -23px; background: rgba(255,235,245,.5); rotate: -4deg; border-radius: 2px; }
.fx-ht { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-zoom { position: absolute; inset: -12%; background: center / cover no-repeat; filter: brightness(.28) saturate(1.2); will-change: transform; }
.fx-fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.fx-fan i { position: absolute; left: -85px; top: -110px; width: 170px; aspect-ratio: 4 / 5; transform-origin: 50% 150%; filter: brightness(.75); box-shadow: 0 16px 34px rgba(0,0,0,.55); will-change: transform; }
.ch__copy { will-change: transform; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .fx-row i { width: 96px; }
  .fx-fl { scale: .7; }
  .fx-fan { top: 68%; }
  .fx-fan i { width: 120px; left: -60px; top: -75px; }
}

/* dot / grid patterns (vibes, map, Pull up, Post) */
.dg { position: absolute; inset: 0; }
.dg--dots { background-image: radial-gradient(circle, rgba(244,238,247,.15) 1.2px, transparent 1.6px); background-size: 24px 24px; }
.dg--frame { background-image: radial-gradient(circle, rgba(244,238,247,.22) 1.2px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(38% 60% at var(--px, 75%) var(--py, 50%), #000 0, transparent 100%); mask-image: radial-gradient(38% 60% at var(--px, 75%) var(--py, 50%), #000 0, transparent 100%); }
.dg--map { background-image: linear-gradient(rgba(244,238,247,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(244,238,247,.12) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(42% 65% at var(--px, 25%) var(--py, 50%), #000 0, transparent 100%); mask-image: radial-gradient(42% 65% at var(--px, 25%) var(--py, 50%), #000 0, transparent 100%); }
.dg--lit { background-image: radial-gradient(circle, rgba(244,238,247,.1) 1.2px, transparent 1.6px); background-size: 22px 22px; }
.dg-lit { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,77,148,.95) 1.5px, transparent 1.9px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle 190px at var(--mx, 75%) var(--my, 50%), #000 0, transparent 100%); mask-image: radial-gradient(circle 190px at var(--mx, 75%) var(--my, 50%), #000 0, transparent 100%); }
.fx-shade[data-side="none"] { display: none; }
