/* RaveLog — ravelog.net landing
   World: After Hours Instrument. See site/DESIGN.md. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --ink: #050a09;
  --ink-2: #07110e;
  --ink-3: #101815;
  --paper: #f5f2e8;
  --paper-2: #d8d4c9;
  --paper-ink-muted: #5f5b51;
  --text: var(--paper);
  --muted: rgba(245, 242, 232, 0.7);
  --quiet: rgba(245, 242, 232, 0.5);
  --line: rgba(245, 242, 232, 0.14);
  --line-2: rgba(245, 242, 232, 0.24);
  --acid: #c8f500;
  --acid-2: #e6ff3f;
  --rose: #cea597;
  --rose-deep: #7b5149;
  --orange: #f05726;
  --teal: #16d8d2;

  --font-display: "Geist", -apple-system, "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Unbounded", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, "New York", Georgia, serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;

  --page: min(1200px, 100% - 48px);
  --gutter: max(24px, calc((100% - 1200px) / 2));
  --radius: 24px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-device:
    0 60px 90px -30px rgba(0, 0, 0, 0.75),
    0 24px 40px -18px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --shadow-tile:
    0 30px 60px -28px rgba(0, 0, 0, 0.7),
    0 10px 24px -14px rgba(0, 0, 0, 0.5);

  --p: 0;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: rgba(245, 242, 232, 0.22) var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* Transformed, not-yet-revealed elements (the stamp at 1.9x, tilted tiles) must never widen the
   document on phones. clip keeps sticky pinning working, unlike hidden. */
main { overflow-x: clip; }

::selection { color: var(--ink); background: var(--acid); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(245, 242, 232, 0.22); border: 3px solid var(--ink); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 242, 232, 0.4); }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
  border-radius: 6px;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  z-index: 60; top: 14px; left: 14px;
  width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto;
  color: var(--ink); background: var(--acid); border-radius: 8px; font-weight: 700;
}

/* ---------- atmosphere ---------- */

.grain {
  position: fixed; inset: -20%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
}

.shell {
  width: var(--page);
  margin-inline: auto;
}

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.9vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
}

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; }
em.serif, .serif em { font-style: italic; }

/* ---------- reveal (JS-only; static without it) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1000ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- island nav ---------- */

.island {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1200px, calc(100% - 32px));
  height: 60px;
  padding: 0 10px 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out),
    width 520ms var(--ease-out),
    transform 520ms var(--ease-out);
}

.island.is-hidden { transform: translate(-50%, -150%); }
body.nav-open .island.is-hidden { transform: translateX(-50%); }

.island.is-scrolled {
  width: min(920px, calc(100% - 32px));
  background: rgba(7, 17, 14, 0.66);
  border-color: rgba(245, 242, 232, 0.12);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.island-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.island-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 240ms var(--ease-out);
}

.island-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}

.island-nav a:hover,
.island-nav a:focus-visible { color: var(--text); }
.island-nav a:hover::after,
.island-nav a:focus-visible::after { transform: scaleX(1); }

.island-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.island-cta:hover,
.island-cta:focus-visible { background: var(--acid); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-toggle span:not(.sr-only) {
  display: block; width: 16px; height: 1.5px; margin: 5px auto;
  background: currentColor;
  transition: transform 300ms var(--ease-out);
}


/* ---------- buttons ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), color 320ms var(--ease-out);
}

.button::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--acid-2);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
}

.button:hover::before,
.button:focus-visible::before { transform: translateY(0); }
.button:hover, .button:focus-visible { transform: translateY(-2px); }

.button-primary {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 18px 36px -14px rgba(200, 245, 0, 0.45);
}

.button-primary:hover { box-shadow: 0 24px 44px -14px rgba(200, 245, 0, 0.55); }

.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out); }
.button:hover svg { transform: translateX(4px); }

.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.store-badge { display: inline-flex; align-items: center; border-radius: 8px; transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out); }
.store-badge:hover, .store-badge:focus-visible { transform: translateY(-2px); }
.store-badge img { height: 48px; width: auto; }
.store-badge-google img { height: 72px; margin: -12px; }

/* ---------- device frame ---------- */

.device {
  position: relative;
  margin: 0;
  padding: 7px;
  border-radius: 12.5%/6%;
  border-radius: clamp(28px, 11.5%, 52px);
  background: #0a0b0b;
  box-shadow:
    var(--shadow-device),
    0 0 0 1px rgba(245, 242, 232, 0.18);
}

.device::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05) 22%, transparent 45%, rgba(255, 255, 255, 0.06) 80%);
  mask: linear-gradient(#000, #000) content-box exclude, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.device img,
.device video {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 1651;
  object-fit: cover;
  border-radius: clamp(22px, 9.5%, 46px);
  background: #000;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  height: 230vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -6% 0 0;
  z-index: -2;
  background: url("assets/ravelog-events-background.jpg") center 30% / cover no-repeat;
  transform: scale(calc(1.12 - var(--p) * 0.1)) translateY(calc(var(--p) * -4%));
  opacity: calc(0.9 - var(--p) * 0.55);
  will-change: transform, opacity;
}

.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(5, 10, 9, 0.2), rgba(5, 10, 9, 0.9) 80%),
    linear-gradient(180deg, rgba(5, 10, 9, 0.75), rgba(5, 10, 9, 0.25) 40%, rgba(5, 10, 9, 0.85));
}

.hero-haze {
  position: absolute;
  z-index: -1;
  left: 50%; top: 58%;
  width: 90vw; height: 70vh;
  transform: translate(-50%, -50%) translateY(calc(var(--p) * 12vh));
  background: radial-gradient(closest-side, rgba(22, 216, 210, 0.16), rgba(22, 216, 210, 0.05) 40%, transparent 70%);
  filter: blur(40px);
  opacity: calc(0.6 + var(--p) * 0.6);
  pointer-events: none;
}

.beam {
  position: absolute;
  z-index: 0;
  top: -20%;
  left: -12%;
  width: 26vw;
  min-width: 220px;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(200, 245, 0, 0.0) 35%, rgba(200, 245, 0, 0.55) 50%, rgba(200, 245, 0, 0.0) 65%, transparent);
  transform: skewX(-22deg) translateX(-140%);
  mix-blend-mode: screen;
  filter: blur(6px);
  animation: beam-sweep 1600ms var(--ease-soft) 240ms both;
}

.beam::after {
  content: "";
  position: absolute;
  inset: 0 49.6% 0 49.6%;
  background: rgba(230, 255, 63, 0.9);
  filter: blur(0.5px);
}

@keyframes beam-sweep {
  from { transform: skewX(-22deg) translateX(-140%); opacity: 0; }
  20% { opacity: 1; }
  to { transform: skewX(-22deg) translateX(560%); opacity: 0; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: calc(60px + 5vh) 24px 0;
  max-width: 980px;
}

.hero-titles {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 2.05em;
  font-size: clamp(2.7rem, 7.4vw, 5.8rem);
}

.hero-title {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: -0.045em;
  line-height: 1.0;
  transition: opacity 560ms var(--ease-out), transform 720ms var(--ease-out), filter 560ms var(--ease-out);
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(12px);
  pointer-events: none;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--acid);
}

.hero[data-stage="0"] .hero-title:nth-child(1),
.hero[data-stage="1"] .hero-title:nth-child(2),
.hero[data-stage="2"] .hero-title:nth-child(3) {
  opacity: 1;
  transform: none;
  filter: blur(0);
  pointer-events: auto;
}

.hero[data-stage="1"] .hero-title:nth-child(1),
.hero[data-stage="2"] .hero-title:nth-child(1),
.hero[data-stage="2"] .hero-title:nth-child(2) {
  transform: translateY(-0.35em);
}

.hero-ledes {
  position: relative;
  display: grid;
  margin-top: 22px;
  max-width: 60ch;
  min-height: 3.1em;
}

.hero-lede {
  grid-area: 1 / 1;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms var(--ease-out) 80ms, transform 640ms var(--ease-out) 80ms;
}

.hero[data-stage="0"] .hero-lede:nth-child(1),
.hero[data-stage="1"] .hero-lede:nth-child(2),
.hero[data-stage="2"] .hero-lede:nth-child(3) { opacity: 1; transform: none; }

.hero-actions { margin-top: 26px; justify-content: center; }

.hero-device-wrap {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(360px, 74vw);
  margin-top: 3vh;
  perspective: 1600px;
  transform: translateY(calc(12% - var(--p) * 12%));
  will-change: transform;
}

.hero-device {
  transform: rotateX(calc(9deg - var(--p) * 9deg)) scale(calc(0.96 + var(--p) * 0.06));
  transform-origin: 50% 20%;
  will-change: transform;
}

.hero-device .screen {
  position: relative;
  aspect-ratio: 760 / 1651;
  border-radius: clamp(22px, 9.5%, 46px);
  overflow: hidden;
  background: #000;
}

.hero-device .screen img,
.hero-device .screen video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 640ms var(--ease-out), transform 900ms var(--ease-out);
}

.hero[data-stage="0"] .screen .clip:nth-child(1),
.hero[data-stage="1"] .screen .clip:nth-child(2),
.hero[data-stage="2"] .screen .clip:nth-child(3) { opacity: 1; transform: none; }

.hero-device .screen::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 46%, rgba(255, 255, 255, 0.0) 60%);
  transform: translateX(-120%);
}

.hero[data-stage] .hero-device .screen::after { animation: sheen 1100ms var(--ease-out) both; }

@keyframes sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.hero-progress {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - 1200px) / 2));
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.hero-progress i {
  display: block;
  width: 2px; height: 34px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.hero-progress i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms var(--ease-out);
}

.hero[data-stage="0"] .hero-progress i:nth-child(1)::after,
.hero[data-stage="1"] .hero-progress i:nth-child(-n + 2)::after,
.hero[data-stage="2"] .hero-progress i::after { transform: scaleY(1); }

/* load choreography */
.js .hero-copy > * { animation: rise 1100ms var(--ease-out) both; }
.js .hero-copy > :nth-child(1) { animation-delay: 380ms; }
.js .hero-copy > :nth-child(2) { animation-delay: 560ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 700ms; }
.js .hero-device-wrap { animation: device-rise 1500ms var(--ease-out) 640ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes device-rise {
  from { opacity: 0; translate: 0 120px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- SECTION RHYTHM ---------- */

.section { padding-block: clamp(96px, 14vw, 180px); }

.section-head {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

/* ---------- NIGHT IN ORDER (horizontal) ---------- */

.order { height: 380vh; }

.order-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr auto;
  padding: calc(72px + 4vh) 0 5vh;
  gap: 4vh;
}

.order-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 40px;
  width: var(--page);
  margin-inline: auto;
}

.order-head .lede { max-width: 46ch; }

.order-track {
  --shift: 0;
  justify-self: start;
  align-self: center;
  display: flex;
  gap: 28px;
  padding-inline: var(--gutter);
  width: max-content;
  transform: translate3d(calc(var(--p) * var(--shift) * -1px), 0, 0);
  will-change: transform;
}

.act {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
  gap: 32px;
  align-items: center;
  width: min(880px, 78vw);
  height: min(62vh, 560px);
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 242, 232, 0.04), rgba(245, 242, 232, 0.015)), var(--ink-2);
  overflow: hidden;
  transition: border-color 500ms var(--ease-out);
}

.act.is-current { border-color: rgba(200, 245, 0, 0.35); }

.act-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--acid);
  letter-spacing: 0.08em;
}

.act h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 12ch;
}

.act p { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 1.05rem; }

.act-media {
  position: relative;
  height: 100%;
  min-height: 0;
}

.act-media .device {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(100%, 300px);
  transform: translateX(-50%) rotate(calc(2deg - var(--p) * 4deg));
}

.act-panel {
  display: grid;
  gap: 0;
  align-self: center;
  border-top: 1px solid var(--line-2);
}

.act-panel div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.act-panel span { color: var(--quiet); font-size: 0.85rem; font-weight: 600; }
.act-panel strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }

.act-panel .live { display: inline-flex; align-items: center; gap: 8px; }
.act-panel .live::before,
.friend-rows .live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(240, 87, 38, 0.5);
  animation: live-pulse 2200ms ease-out infinite;
}

@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 rgba(240, 87, 38, 0.55); }
  to { box-shadow: 0 0 0 12px rgba(240, 87, 38, 0); }
}

.order-trace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  margin-inline: auto;
  color: var(--quiet);
  font-size: 0.85rem;
  font-weight: 600;
}

.trace-mark { width: 48px; height: 48px; }
.trace-mark path { fill: rgba(245, 242, 232, 0.14); transition: fill 400ms var(--ease-out); }
.order[data-stage="1"] .trace-mark path:nth-child(1),
.order[data-stage="2"] .trace-mark path:nth-child(-n + 2),
.order[data-stage="3"] .trace-mark path { fill: var(--acid); }

.trace-rail {
  flex: 1;
  height: 1px;
  margin: 0 22px;
  background: var(--line);
  position: relative;
}

.trace-rail::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--acid);
  transform: scaleX(var(--p));
  transform-origin: left;
}

/* ---------- FEATURES (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 18px;
}

.tile {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 30px 30px 0;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow-tile), 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  will-change: transform;
}

.tile::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245, 242, 232, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}

.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(200, 245, 0, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}

.tile:hover::before, .tile:hover::after,
.tile:focus-within::before, .tile:focus-within::after { opacity: 1; }
.tile:hover { box-shadow: var(--shadow-tile), 0 0 0 1px var(--line-2); }

.tile-copy { position: relative; z-index: 2; max-width: 34ch; }
.tile h3 { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.35rem, 1.8vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.tile p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

.tile-media {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  min-height: 220px;
}

.tile-media .device {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(80%, 300px);
  transform: translateX(-50%) translateY(calc(var(--ty, 0px)));
  transition: transform 900ms var(--ease-out);
}

.tile:hover .tile-media .device { transform: translateX(-50%) translateY(calc(var(--ty, 0px) - 22px)); }

.tile-diary { grid-column: span 7; grid-row: span 2; }
.tile-planner { grid-column: span 5; }
.tile-taste { grid-column: span 5; }
.tile-discover { grid-column: span 7; }

.tile-diary .tile-media .device { width: min(70%, 340px); --ty: 24px; }
.tile-planner .tile-media .device,
.tile-taste .tile-media .device { width: min(72%, 250px); left: auto; right: 0; transform: translateX(0) rotate(-4deg); }
.tile-planner:hover .tile-media .device,
.tile-taste:hover .tile-media .device { transform: translateX(0) translateY(-18px) rotate(-2deg); }
.tile-discover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; padding-right: 0; }
.tile-discover .tile-copy { align-self: center; padding-bottom: 30px; }
.tile-discover .tile-media { margin-top: 0; }
.tile-discover .tile-media .device { width: min(84%, 280px); left: 10%; transform: translateX(0) rotate(6deg) translateY(30px); }
.tile-discover:hover .tile-media .device { transform: translateX(0) rotate(3deg) translateY(10px); }

.tile-media .device img { object-position: top; }

/* ---------- PASSPORT ---------- */

.passport { position: relative; }

.passport-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.passport-copy .lede { margin-top: 22px; }

.detail-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
}

.detail-list li { position: relative; padding-left: 26px; color: var(--muted); }
.detail-list li::before {
  content: "";
  position: absolute; top: 0.72em; left: 0;
  width: 12px; height: 2px;
  background: var(--acid);
}

.artifact {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 720px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.paper {
  position: absolute;
  inset: 6% 6%;
  background: var(--paper);
  border-radius: 14px;
  box-shadow:
    0 50px 80px -30px rgba(0, 0, 0, 0.8),
    0 20px 30px -20px rgba(0, 0, 0, 0.6);
  transform: rotate(calc(-3deg + var(--p) * 2deg)) translateY(calc(30px - var(--p) * 40px));
  will-change: transform;
}

.paper::before {
  content: "ANNUAL RECORD";
  position: absolute; top: 18px; right: 22px;
  color: var(--paper-ink-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.paper::after {
  content: "";
  position: absolute; inset: auto 22px 18px;
  height: 1px;
  background: rgba(5, 10, 9, 0.14);
}

.artifact .device {
  position: relative;
  width: min(46%, 250px);
  margin-right: 38%;
  transform: translateY(calc(10px - var(--p) * 20px)) rotate(calc(2deg - var(--p) * 2deg));
  will-change: transform;
}

.stamp {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 14%;
  padding: 12px 16px 11px;
  color: var(--rose-deep);
  border: 3px double var(--rose-deep);
  border-radius: 10px;
  background: rgba(245, 242, 232, 0.55);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(-4deg) scale(1.9);
  filter: blur(4px);
  transition: none;
}

.stamp small { display: block; margin-top: 4px; font-size: 0.52em; letter-spacing: 0.14em; opacity: 0.85; }

.passport.is-past .stamp {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
  filter: blur(0);
  transition:
    opacity 260ms cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 420ms cubic-bezier(0.2, 1.4, 0.4, 1),
    filter 300ms ease-out;
}

.passport.is-past .paper { animation: paper-thud 520ms var(--ease-out) 120ms both; }

@keyframes paper-thud {
  0% { translate: 0 0; }
  30% { translate: 0 4px; }
  100% { translate: 0 0; }
}

/* ---------- LETTER ---------- */

.letter {
  position: relative;
  height: 260vh;
}

.letter-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 0 24px;
}

.letter-haze {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at calc(30% + var(--p) * 40%) 60%, rgba(22, 216, 210, 0.13), transparent 70%),
    radial-gradient(35% 40% at calc(75% - var(--p) * 35%) 30%, rgba(200, 245, 0, 0.07), transparent 70%);
  filter: blur(30px);
}

.letter-body {
  max-width: 980px;
  text-align: center;
}

.letter-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.7vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.letter-text {
  --n: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.3vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.letter-text p { display: inline; }
.letter-text p + p::before { content: " "; }

.letter-text .w {
  --i: 0;
  display: inline;
  opacity: clamp(0.16, calc(var(--p) * var(--n) * 1.12 - var(--i)), 1);
  transition: opacity 120ms linear;
}

.letter-text .k { font-style: italic; color: var(--acid); }

/* ---------- FRIENDS (paper) ---------- */

.friends {
  color: var(--ink);
  background: var(--paper);
  border-radius: 40px 40px 0 0;
}

.friends-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.friends .lede { color: var(--paper-ink-muted); }
.friends .h2 { color: var(--ink); }

.friend-rows {
  display: grid;
  border-top: 1px solid rgba(5, 10, 9, 0.5);
  margin-top: 8px;
}

.friend-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(5, 10, 9, 0.14);
}

.friend-rows span { color: var(--paper-ink-muted); font-size: 0.92rem; font-weight: 600; }
.friend-rows strong { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.3rem, 1.9vw, 1.75rem); letter-spacing: -0.03em; }
.friend-rows .live { display: inline-flex; align-items: center; gap: 10px; }

.friends-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(5, 10, 9, 0.14);
  color: var(--rose-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.3;
  max-width: 28ch;
}

/* ---------- PROOF ---------- */

.proof { background: var(--ink); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.proof-cell {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}

.proof-cell:last-child { border-right: 0; margin-right: 0; }

.proof-cell span {
  display: inline-block;
  color: var(--acid);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-cell h3 { margin-top: 44px; font-family: var(--font-display); font-weight: 650; font-size: 1.28rem; letter-spacing: -0.025em; line-height: 1.15; }
.proof-cell p { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }

/* ---------- AVAILABILITY (finale) ---------- */

.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(120px, 16vw, 220px) clamp(80px, 10vw, 140px);
  isolation: isolate;
}

.finale-beam {
  position: absolute;
  z-index: -1;
  left: 50%; top: 40%;
  width: 140vw; height: 2px;
  transform: translate(-50%, -50%) rotate(-24deg) scaleX(calc(0.2 + var(--p) * 0.8));
  background: linear-gradient(90deg, transparent, rgba(200, 245, 0, 0.55), rgba(230, 255, 63, 0.95), rgba(200, 245, 0, 0.55), transparent);
  filter: blur(0.6px);
  opacity: calc(0.35 + var(--p) * 0.5);
  box-shadow: 0 0 40px 6px rgba(200, 245, 0, 0.18);
}

.finale-beam::after {
  content: "";
  position: absolute; inset: -60px 0;
  background: inherit;
  filter: blur(40px);
  opacity: 0.5;
}

.finale .h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.5rem, 6vw, 5rem); }
.finale .lede { margin: 26px auto 0; }

.finale-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  width: min(760px, 100%);
  margin: 56px auto 0;
  padding: 26px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow-tile), 0 0 0 1px var(--line);
}

.qr {
  width: 148px; height: 148px;
  padding: 10px;
  border-radius: 14px;
  background: var(--paper);
}

.qr img { width: 100%; height: 100%; filter: invert(1) hue-rotate(180deg); }

.finale-panel strong { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.25; }
.finale-panel p { margin-top: 8px; color: var(--muted); }
.finale-panel .store-badges { margin-top: 18px; }
.finale-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- FOOTER ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-inner p { color: var(--quiet); font-size: 0.95rem; }
.footer-legal { display: inline-flex; gap: 22px; font-size: 0.92rem; color: var(--muted); }
.footer-legal a { position: relative; transition: color 240ms var(--ease-out); }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--acid); }
.store-trademarks { margin-top: 28px; color: var(--quiet); font-size: 0.76rem; line-height: 1.6; max-width: 100ch; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1080px) {
  .bento { grid-auto-rows: minmax(280px, auto); }
  .tile-diary { grid-column: span 12; grid-row: span 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-right: 0; }
  .tile-diary .tile-media { margin-top: 0; min-height: 300px; }
  .tile-diary .tile-media .device { left: 10%; width: min(72%, 280px); transform: translateX(0) rotate(-4deg) translateY(30px); }
  .tile-diary:hover .tile-media .device { transform: translateX(0) rotate(-2deg) translateY(10px); }
  .tile-planner, .tile-taste { grid-column: span 6; }
  .tile-discover { grid-column: span 12; }
  .order-head { grid-template-columns: 1fr; gap: 14px; }
  .passport-grid, .friends-grid { grid-template-columns: 1fr; }
  .artifact { max-width: 560px; margin-inline: auto; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-cell:nth-child(2) { border-right: 0; margin-right: 0; }
  .proof-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --page: min(100% - 40px, 720px); --gutter: 20px; }
  body { font-size: 16px; }

  .island { top: 12px; height: 56px; grid-template-columns: auto auto; justify-content: space-between; width: calc(100% - 24px); }
  .island.is-scrolled { width: calc(100% - 24px); }
  .island-nav, .island-cta { display: none; }
  .nav-toggle { display: block; }

  body.nav-open .island { background: rgba(7, 17, 14, 0.9); border-color: var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  body.nav-open .island-nav {
    position: fixed;
    top: 80px; left: 12px; right: 12px;
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: 24px;
    background: rgba(7, 17, 14, 0.94);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    font-size: 1.2rem;
    color: var(--text);
    animation: rise 420ms var(--ease-out) both;
  }
  body.nav-open .island-nav a { padding: 16px 14px; border-bottom: 1px solid var(--line); }
  body.nav-open .island-nav a:last-child { border-bottom: 0; }
  body.nav-open .island-nav a::after { display: none; }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

  .hero { height: 210vh; }
  .hero-copy { padding-top: calc(56px + 6vh); }
  .hero-titles { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hero-ledes { min-height: 4.6em; }
  .hero-progress { display: none; }
  .hero-device-wrap { width: min(300px, 70vw); margin-top: 4vh; }

  .order { height: 340vh; }
  .order-stage { padding-top: calc(60px + 3vh); gap: 3vh; }
  .act {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 86vw;
    height: min(64vh, 620px);
    padding: 24px 22px 0;
    gap: 14px;
  }
  .act h3 { margin-top: 10px; font-size: 1.5rem; max-width: 14ch; }
  .act-panel { display: none; }
  .act p { margin-top: 10px; font-size: 0.98rem; }
  .act-media .device { top: 4%; width: min(60%, 210px); }
  .act-panel { align-self: start; margin-bottom: 20px; }

  .bento { gap: 14px; }
  .tile { padding: 22px 22px 0; }
  .tile-diary, .tile-discover { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-right: 22px; }
  .tile-diary .tile-copy, .tile-discover .tile-copy { padding-bottom: 0; }
  .tile-diary .tile-media, .tile-discover .tile-media { margin-top: 22px; min-height: 240px; }
  .tile-diary .tile-media .device, .tile-discover .tile-media .device { left: 50%; width: min(64%, 240px); transform: translateX(-50%) translateY(20px); }
  .tile-diary:hover .tile-media .device, .tile-discover:hover .tile-media .device { transform: translateX(-50%) translateY(0); }
  .tile-planner, .tile-taste { grid-column: span 12; }

  .letter { height: 240vh; }
  .letter-stage { padding-top: 84px; }
  .letter-text { font-size: clamp(1.1rem, 4.7vw, 1.35rem); }
  .letter-body h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }

  .artifact .device { width: 44%; margin-right: 44%; }
  .stamp { right: 7%; bottom: 16%; font-size: 0.8rem; padding: 9px 11px 8px; }
  .friends { border-radius: 28px 28px 0 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-cell { border-right: 0; margin-right: 0; padding-right: 0; }
  .proof-cell:nth-child(n + 2) { border-top: 1px solid var(--line); }

  .finale-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .finale-panel .store-badges { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
}

@media (max-width: 480px) {
  .store-badge img { height: 40px; }
  .store-badge-google img { height: 60px; margin: -10px; }
  .store-badges { gap: 6px 10px; }
  .hero-device-wrap { width: min(280px, 74vw); }
  .hero-ledes { min-height: 5.2em; }
  .act { height: min(66vh, 600px); }
}

@media (max-width: 1080px) and (hover: none) {
  .tile { transform: none; }
}

/* ---------- TONIGHT (live listings) ---------- */

.tonight { border-top: 1px solid var(--line); }
.tonight-head { display: grid; gap: 22px; max-width: 820px; }

.city-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

.city-pill {
  height: 42px;
  padding: 0 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 240ms var(--ease-out), background 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.city-pill:hover, .city-pill:focus-visible { color: var(--text); border-color: var(--line-2); }
.city-pill.is-active { color: var(--ink); background: var(--acid); border-color: var(--acid); }

/* stats row */
.tonight-stats {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: end;
  gap: 40px 56px;
  margin-top: 44px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 1.05rem; }
.stat span b { color: var(--text); font-weight: 600; }

.tonight-meta { display: grid; gap: 10px; justify-items: start; padding-bottom: 6px; }
.tonight-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--quiet);
  font-size: 0.92rem;
  font-weight: 600;
}
.tonight-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--quiet);
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.tonight-status.is-live { color: var(--text); }
.tonight-status.is-live::before { background: var(--acid); box-shadow: 0 0 0 5px rgba(200, 245, 0, 0.16); }
.tonight-status.is-error::before { background: var(--orange); }
.tonight-retry { height: 40px; padding: 0 16px; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; font-weight: 600; transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), background 240ms var(--ease-out); }
.tonight-retry:hover { background: rgba(245, 242, 232, 0.08); }
.tonight-credit { color: var(--quiet); font-size: 0.85rem; line-height: 1.5; }
.tonight-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tonight-credit a:hover { color: var(--acid); }

/* event reel */
.reel {
  position: relative;
  margin-top: 40px;
}

.reel-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 18px var(--gutter) 28px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track > li { flex: 0 0 auto; scroll-snap-align: start; }

.card, .card-skeleton {
  --k: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 250px;
  height: 300px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 242, 232, 0.06), rgba(245, 242, 232, 0.02)), var(--ink-2);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-tile);
}
.card {
  color: var(--text);
  transform: scale(calc(0.92 + var(--k) * 0.08)) translateY(calc((1 - var(--k)) * 10px));
  opacity: calc(0.55 + var(--k) * 0.45);
  transition: box-shadow 300ms var(--ease-out), transform 200ms linear, opacity 200ms linear;
}
.card:hover, .card:focus-visible { box-shadow: 0 0 0 1px rgba(200, 245, 0, 0.55), var(--shadow-tile); }

.card-top { display: flex; justify-content: space-between; align-items: start; }
.card-date { display: grid; line-height: 1; }
.card-date small { color: var(--quiet); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card-date b { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.05em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card-date.is-tonight small { color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.card-date.is-tonight small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.card-ages { color: var(--quiet); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }

.card-title {
  align-self: end;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.card-venue { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-venue b { display: block; color: var(--text); font-weight: 600; }

.card-empty { display: grid; place-items: center; width: min(520px, 80vw); height: 300px; padding: 24px; color: var(--muted); text-align: center; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }

.card-skeleton { background: linear-gradient(90deg, rgba(245, 242, 232, 0.04), rgba(245, 242, 232, 0.09), rgba(245, 242, 232, 0.04)); background-size: 200% 100%; animation: shimmer 1400ms linear infinite; box-shadow: 0 0 0 1px var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.reel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  translate: 0 -50%;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(7, 17, 14, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  transition: opacity 240ms var(--ease-out), background 240ms var(--ease-out), transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reel-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-btn:hover { background: rgba(245, 242, 232, 0.12); }
.reel-btn[disabled] { opacity: 0.25; pointer-events: none; }
.reel-prev { left: max(8px, calc(var(--gutter) - 23px)); }
.reel-next { right: max(8px, calc(var(--gutter) - 23px)); }

/* ---------- PASS (finale) ---------- */

.pass {
  --stub: 220px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  width: min(820px, 100%);
  margin: 56px auto 0;
  color: var(--ink);
  text-align: left;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%),
    var(--paper);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.8),
    0 18px 30px -18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(5, 10, 9, 0.12);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}
.pass::before, .pass::after {
  content: "";
  position: absolute;
  right: calc(var(--stub) - 14px);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.pass::before { top: -14px; }
.pass::after { bottom: -14px; }

.pass-body { display: grid; gap: 10px; padding: 30px 34px 28px; }
.pass-edition { color: var(--paper-ink-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pass-edition b { color: var(--ink); font-family: var(--font-brand); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.pass-body strong { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; margin-top: 6px; }
.pass-body p { color: var(--paper-ink-muted); }
.pass-body .store-badges { margin-top: 10px; }
.pass-fine { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(5, 10, 9, 0.14); color: var(--paper-ink-muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; }

.pass-stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 26px 22px;
  border-left: 2px dashed rgba(5, 10, 9, 0.28);
  color: var(--paper-ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.pass-stub .qr { width: 150px; height: 150px; padding: 8px; }

@property --foil { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.foil { position: relative; }
.foil::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 17px;
  background: conic-gradient(from var(--foil), #d8d4c9, #f5f2e8, #b9c98a, #f5f2e8, #9fd6d3, #d8d4c9);
  animation: foil 9s linear infinite;
}
@keyframes foil { to { --foil: 360deg; } }
.pass-stub .qr { z-index: 0; }

/* ---------- MOTION LAYER ---------- */

[data-magnetic] { transition-property: transform, translate, background, color, border-color, box-shadow; transition-duration: 420ms; transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.button:active, .island-cta:active, .city-pill:active, .store-badge:active, .tonight-retry:active, .nav-toggle:active {
  transform: scale(0.96) !important;
  transition-duration: 120ms !important;
}

@media (max-width: 1080px) {
  .tonight-stats { grid-template-columns: auto auto; }
  .tonight-meta { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .card, .card-skeleton { width: 224px; height: 280px; }
  .reel-btn { display: none; }
  .pass { --stub: 100%; grid-template-columns: 1fr; }
  .pass::before, .pass::after { display: none; }
  .pass-stub { border-left: 0; border-top: 2px dashed rgba(5, 10, 9, 0.28); }
  .tonight-stats { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .beam { display: none; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; overflow: visible; padding-bottom: 80px; }
  .hero-bg { transform: none; opacity: 0.6; }
  .hero-device-wrap { transform: none; }
  .hero-device { transform: none; }
  .hero-device .screen::after { display: none; }
  .order { height: auto; }
  .order-stage { position: relative; height: auto; overflow: visible; }
  .order-track { flex-wrap: wrap; width: var(--page); padding: 0; transform: none; }
  .act { width: 100%; height: auto; min-height: 420px; }
  .act-media { min-height: 380px; }
  .letter { height: auto; }
  .letter-stage { position: relative; height: auto; padding-block: 120px; }
  .letter-text .w { opacity: 1; }
  .stamp { opacity: 1; transform: rotate(-12deg); filter: none; }
  .tile { transform: none !important; }
  .finale-beam { opacity: 0.6; transform: translate(-50%, -50%) rotate(-24deg); }
  .act-panel .live::before, .friend-rows .live::before { animation: none; box-shadow: none; }
  .card-skeleton { animation: none; }
  .card { transform: none; opacity: 1; }
  .foil::before { animation: none; }
  .venue-dot.is-hot + .venue-halo { animation: none; opacity: 0.8; }
  .pass { transform: none !important; }
}
