/* TONITE landing page. One night, dusk to dawn. All animation is CSS, all colour comes from tokens.css. */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { background: var(--color-bg); overflow-x: clip; }

.skip-link { position: absolute; left: -999px; top: var(--space-2); z-index: 100; padding: var(--space-2) var(--space-4); background: var(--color-surface-2); border-radius: var(--radius-sm); }
.skip-link:focus { left: var(--space-2); }

.site-container { width: 100%; max-width: var(--site-max-width); margin: 0 auto; padding: 0 max(var(--space-5), var(--safe-left)) 0 max(var(--space-5), var(--safe-right)); }

/* ---- The sky: three layers, cross-faded by scroll position ---------------- */
.sky { position: fixed; inset: 0; z-index: -1; background: var(--color-bg); pointer-events: none; }
.sky-layer { position: absolute; inset: 0; }
.sky-dusk { background: var(--sky-dusk-mid); }
.sky-stars {
  opacity: 0.55;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, var(--star), transparent),
    radial-gradient(1px 1px at 90px 120px, var(--star), transparent),
    radial-gradient(1.4px 1.4px at 170px 70px, var(--star), transparent),
    radial-gradient(1px 1px at 240px 190px, var(--star), transparent),
    radial-gradient(1px 1px at 310px 40px, var(--star), transparent),
    radial-gradient(1.4px 1.4px at 60px 240px, var(--star), transparent);
  background-size: 360px 280px;
  animation: stars-twinkle 7s ease-in-out infinite alternate;
}
@keyframes stars-twinkle { to { opacity: 0.22; } }
.sky-dawn { opacity: 0; background: var(--sky-dawn-low); }

@supports (animation-timeline: scroll()) {
  .sky-dusk { animation: sky-fade-out linear both; animation-timeline: scroll(root); animation-range: 0 30%; }
  .sky-dawn { animation: sky-fade-in linear both; animation-timeline: scroll(root); animation-range: 78% 100%; }
  @keyframes sky-fade-out { to { opacity: 0; } }
  @keyframes sky-fade-in { to { opacity: 1; } }
}

/* ---- The clock: 20:00 at the top of the page, 06:00 at the bottom ------------ */
.nite-clock { display: none; }
@supports (animation-timeline: scroll()) and (width: calc(mod(5px, 3px))) {
  @property --clock-h { syntax: "<integer>"; inherits: true; initial-value: 20; }
  @property --clock-m { syntax: "<integer>"; inherits: true; initial-value: 0; }
  .nite-clock {
    position: fixed;
    right: max(var(--space-4), var(--safe-right));
    bottom: calc(var(--space-4) + var(--safe-bottom));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    animation: clock-hours linear both, clock-minutes linear both;
    animation-timeline: scroll(root), scroll(root);
    animation-iteration-count: 1, 10;
  }
  @keyframes clock-hours { from { --clock-h: 20; } to { --clock-h: 30; } }
  @keyframes clock-minutes { from { --clock-m: 0; } to { --clock-m: 59; } }
  .nite-clock-time::before {
    counter-reset: h calc(mod(var(--clock-h), 24)) m var(--clock-m);
    content: counter(h, decimal-leading-zero) ":" counter(m, decimal-leading-zero);
  }
  .nite-clock-dot { width: 7px; height: 7px; background: var(--highlight); border-radius: 50%; box-shadow: var(--glow); animation: live-pulse 1.8s ease-in-out infinite; }
}
@keyframes live-pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* ---- Navbar: a floating glass bar ---------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 40; padding: calc(var(--space-3) + var(--safe-top)) max(var(--space-4), var(--safe-right)) 0 max(var(--space-4), var(--safe-left)); pointer-events: none; }
.site-nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: var(--site-max-width);
  min-height: 60px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  overflow: clip;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  pointer-events: auto;
  transition: border-color var(--duration) var(--ease), min-height 300ms var(--ease);
}
.site-nav.is-scrolled .site-nav-bar { min-height: 52px; border-color: var(--hairline); }
.site-logo { display: flex; flex: none; }
.site-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.nav-links a[data-spy] { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 9px 14px; white-space: nowrap; color: var(--color-text-muted); font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-full); transition: color var(--duration) var(--ease), background var(--duration) var(--ease); }
.nav-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--highlight); }
.nav-links a[data-spy]:hover, .nav-links a[data-spy]:focus-visible { color: var(--color-text); background: var(--color-surface-3); }
.nav-links a[data-spy].is-active { color: var(--color-text); background: var(--color-surface-3); }
.nav-links-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.nav-login { display: flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-full); transition: background var(--duration) var(--ease); }
.nav-login:hover { background: var(--color-surface-3); }
/* A hairline that fills as you move through the night. */
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--highlight); transform: scaleX(0); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .nav-progress { animation: nav-fill linear both; animation-timeline: scroll(root); }
  @keyframes nav-fill { to { transform: scaleX(1); } }
}
.nav-toggle { display: none; position: relative; flex: none; width: var(--tap-size); height: var(--tap-size); padding: 0; background: var(--color-surface-3); border: 0; border-radius: 50%; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--color-text); transition: transform 300ms var(--ease), top 300ms var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---- Image slots ------------------------------------------------------------------ */
.img-slot { position: relative; overflow: hidden; background: var(--banner-a); }
.img-slot::after, .collection-card::after, .post-mock-media::after { content: ""; position: absolute; inset: 0; background: var(--photo-tint); mix-blend-mode: soft-light; pointer-events: none; }
.img-slot img, .collection-card img, .post-mock-media img { position: relative; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }

/* ---- Hero: the animation is the hero ----------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - 72px); margin-top: -72px; padding: 150px 0 170px; overflow: hidden; isolation: isolate; }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; max-width: none; height: clamp(120px, 21vw, 290px); pointer-events: none; }
.sky-blocks { fill: var(--skyline); }
.hero-skyline .wa { fill: var(--window-warm); opacity: 0.72; }
.hero-skyline .wp { fill: var(--window-pale); opacity: 0.72; }
.hero-skyline .t1 { animation: lit 9s steps(1) infinite; }
.hero-skyline .t2 { animation: lit 13s steps(1) -4s infinite; }
.hero-skyline .t3 { animation: lit 17s steps(1) -9s infinite; }
.hero-skyline .t4 { animation: lit 23s steps(1) -2s infinite; }
/* A few windows carry colour. */
.hero-skyline .t3 { fill: var(--highlight-2); }
.hero-skyline .t4 { fill: var(--highlight); }
@keyframes lit { 0%, 55% { opacity: 0.8; } 56%, 100% { opacity: 0.05; } }

/* Light thrown by the mirror ball, drifting across the room. */
.hero-spots {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background-image:
    radial-gradient(3px 2px at 40px 60px, var(--window-pale) 99%, transparent),
    radial-gradient(2px 3px at 150px 30px, var(--highlight-2) 99%, transparent),
    radial-gradient(3px 2px at 250px 130px, var(--window-pale) 99%, transparent),
    radial-gradient(2px 3px at 90px 190px, var(--highlight-3) 99%, transparent),
    radial-gradient(3px 2px at 310px 240px, var(--highlight) 99%, transparent),
    radial-gradient(2px 2px at 200px 280px, var(--window-pale) 99%, transparent);
  background-size: 360px 320px;
  opacity: 0.5;
  animation: spots-orbit 70s linear infinite;
  transform-origin: 38% 0;
}
@keyframes spots-orbit { to { transform: rotate(360deg); } }

.hero-beams { position: absolute; top: 0; left: 42%; z-index: -2; width: 0; height: 0; }
.hero-beams span {
  position: absolute;
  top: 60px;
  left: 0;
  width: 2px;
  height: 130vh;
  transform-origin: top center;
  width: 1px;
  background: var(--metal-dark);
  animation: beam-sweep 13s ease-in-out infinite alternate;
}
.hero-beams span:nth-child(2) { animation-duration: 17s; animation-delay: -6s; }
.hero-beams span:nth-child(3) { animation-duration: 21s; animation-delay: -11s; }
@keyframes beam-sweep { from { transform: rotate(-58deg); } to { transform: rotate(58deg); } }

.mirrorball { position: absolute; top: 0; left: 42%; z-index: -1; width: clamp(96px, 12vw, 184px); transform: translateX(-50%); transform-origin: top center; animation: ball-sway 9s ease-in-out infinite alternate; }
.mirrorball-chain { display: block; width: 2px; height: clamp(72px, 12vh, 104px); margin: 0 auto -6px; background: repeating-linear-gradient(180deg, var(--metal-mid) 0 4px, transparent 4px 6px); }
.ball-svg { width: 100%; height: auto; }
.ball-base { fill: var(--ball-core); }
@keyframes ball-sway { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
.ball-svg polygon { animation: shine 5s linear infinite; }
.ball-svg .b1 { fill: var(--ball-1); }
.ball-svg .b2 { fill: var(--ball-2); }
.ball-svg .b3 { fill: var(--ball-3); }
.ball-svg .b4 { fill: var(--ball-4); }
.ball-svg .b5 { fill: var(--ball-5); }
.ball-svg .b6 { fill: var(--ball-6); }
.ball-svg .ba { fill: var(--highlight); }
.ball-svg .bb { fill: var(--highlight-2); }
.ball-svg .bc { fill: var(--highlight-3); }
@keyframes shine { 0%, 100% { opacity: 0.4; } 42% { opacity: 0.55; } 50% { opacity: 1; } 58% { opacity: 0.55; } }
.flare { fill: var(--white); transform-box: fill-box; transform-origin: center; animation: flare 3.4s ease-in-out infinite; }
.flare-b { animation-delay: -1.3s; }
.flare-c { animation-delay: -2.4s; }
@keyframes flare { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 400px); gap: var(--space-7); align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hero-text h1 { font-size: clamp(4rem, 10vw, 9rem); font-weight: 900; line-height: 0.86; letter-spacing: -0.012em; }
.h1-line { display: block; animation: line-in 900ms var(--ease) both; }
.h1-line:nth-child(2) { animation-delay: 120ms; }
.h1-line:nth-child(3) { animation-delay: 240ms; }
@keyframes line-in { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.4em) skewY(3deg); } to { opacity: 1; clip-path: inset(-0.2em 0 -0.2em 0); transform: none; } }

/* The last line sits a step back: an outline in the same colour. */
.h1-glow { width: fit-content; color: transparent; -webkit-text-stroke: 2px var(--color-text); }

.hero-tagline { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }
.hero-intro { max-width: 50ch; color: color-mix(in srgb, var(--color-text) 74%, transparent); font-size: var(--text-lg); }
.scroll-hint { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap-size); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--duration) var(--ease); }
.scroll-hint:hover { color: var(--color-text); }
.scroll-hint-track { position: relative; display: block; width: 2px; height: 34px; overflow: hidden; background: var(--hairline); }
.scroll-hint-track span { position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: hint-drop 1.8s var(--ease) infinite; }
@keyframes hint-drop { to { top: 110%; } }

/* ---- The login card is a backstage pass on a lanyard ---------------------------- */
.pass-rig { position: relative; transform-origin: 50% -240px; animation: pass-swing 6.5s ease-in-out infinite alternate; }
.pass-rig:hover, .pass-rig:focus-within { animation-play-state: paused; }
@keyframes pass-swing { from { rotate: -1deg; } to { rotate: 1deg; } }
.pass-strap {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  width: 30px;
  height: 120vh;
  transform: translateX(-50%);
  background: var(--highlight);
}
.pass-clip { position: absolute; left: 50%; top: -24px; z-index: 2; width: 46px; height: 34px; transform: translateX(-50%); background: var(--metal-mid); border-radius: 6px 6px 12px 12px; }

.auth-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 18px;
  border: 1px solid var(--color-border);
  isolation: isolate;
}

.pass-head { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--space-5) var(--space-4) var(--space-3); background: var(--accent); color: var(--on-accent); text-align: center; overflow: hidden; }
/* A flat band of light passing over the header. */
.pass-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, var(--black) 7%, transparent) 42% 58%, transparent 58%); transform: translateX(-100%); animation: foil 6s var(--ease) infinite; }
@keyframes foil { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.pass-hole { width: 44px; height: 10px; margin-bottom: var(--space-2); background: var(--color-bg); border-radius: var(--radius-full); }
.pass-title { font-family: var(--font-display); font-size: 2.1rem; font-weight: 900; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.pass-sub { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }

.pass-body { position: relative; padding: var(--space-4) var(--space-5) var(--space-3); }
/* Perforated tear line, with notches cut out of the card edge. */
.pass-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5) var(--space-4); border-top: 2px dashed var(--color-border); }
.pass-foot::before, .pass-foot::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; background: var(--color-bg); border-radius: 50%; }
.pass-foot::before { left: -9px; }
.pass-foot::after { right: -9px; }
.pass-barcode { flex: 1; height: 26px; background: repeating-linear-gradient(90deg, var(--color-text) 0 2px, transparent 2px 4px, var(--color-text) 4px 5px, transparent 5px 9px, var(--color-text) 9px 12px, transparent 12px 14px); opacity: 0.75; }
.pass-serial { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.12em; }

.auth-notice { margin-bottom: var(--space-3); padding: var(--space-3); background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: var(--text-sm); }
.auth-notice a { color: var(--accent-strong); text-decoration: underline; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.auth-tabs::before { content: ""; position: absolute; bottom: -1px; left: 0; width: 50%; height: 3px; background: var(--highlight); box-shadow: var(--glow); transition: transform 320ms var(--ease-snap), opacity var(--duration); }
.auth-tabs[data-active="signup"]::before { transform: translateX(100%); }
.auth-tabs[data-active="forgot"]::before { opacity: 0; }
.auth-tabs button { min-height: var(--tap-size); background: none; border: 0; color: var(--color-text-muted); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; transition: color var(--duration) var(--ease); }
.auth-tabs button:hover, .auth-tabs button[aria-selected="true"] { color: var(--color-text); }
.auth-panel { animation: panel-in 320ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(10px); } }
.auth-panel form { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-panel h2 { font-size: var(--text-xl); }
.auth-link { align-self: center; min-height: 32px; }
.auth-message { font-size: var(--text-sm); color: var(--color-danger); }
.auth-message[data-kind="success"] { color: var(--color-success); }
.password-wrap, .username-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 64px; }
.username-wrap input { padding-left: 34px; }
.username-at { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.password-toggle { position: absolute; top: 0; right: 0; width: 60px; height: 100%; background: none; border: 0; color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.password-toggle:hover { color: var(--accent); }
.field-hint[data-state="ok"] { color: var(--color-success); }
.field-hint[data-state="bad"] { color: var(--color-danger); }
input[aria-invalid="true"] { border-color: var(--color-danger) !important; }

/* ---- Tape: a strip of wristband running under the hero --------------------------- */
.tape { position: relative; z-index: 2; overflow: hidden; background: var(--color-surface); border-block: 1px solid var(--hairline); color: var(--color-text); }
.tape-track { display: flex; align-items: center; gap: var(--space-5); width: max-content; padding: 10px 0; animation: tape-run 40s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.tape i { flex: none; width: 7px; height: 7px; background: var(--highlight); transform: rotate(45deg); }
@keyframes tape-run { to { transform: translateX(-50%); } }

/* ---- Sections ------------------------------------------------------------------ */
.section-block { padding: var(--space-9) 0; }
.section-block h2, .final-cta h2 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); font-weight: 900; line-height: 0.94; }
.section-block p { color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.section-block h3 { font-size: var(--text-lg); }
.section-intro { max-width: 820px; margin-bottom: var(--space-7); }
.eyebrow { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); color: var(--color-text) !important; font-family: var(--font-mono); font-size: var(--text-sm); }
.eyebrow-time { padding: 2px 8px; color: var(--highlight); border: 1px solid var(--highlight); border-radius: var(--radius-sm); }
/* Each stretch of the night has its own time label colour. */
#features .eyebrow-time, #crew .eyebrow-time { color: var(--highlight-2); border-color: var(--highlight-2); }
#how .eyebrow-time, #week .eyebrow-time { color: var(--highlight-3); border-color: var(--highlight-3); }
.lead { margin-top: var(--space-5); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--color-text) !important; }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.split > div > p:not(.eyebrow):not(.lead) { margin-top: var(--space-4); }
.split-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.split-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); }
.split-columns h3 { margin-bottom: var(--space-2); }

.not-list { margin: 0 0 var(--space-2); padding: 0; list-style: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.not-list s { position: relative; color: var(--color-text-muted); text-decoration: none; }
.not-list s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--highlight); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease) 500ms; }
.reveal.is-visible .not-list s::after { transform: scaleX(1); }

/* Polaroids: they fire a flash when they come into view. */
.polaroid { position: relative; padding: 12px 12px 0; background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow-lg); transition: rotate 500ms var(--ease-snap), scale 500ms var(--ease-snap); }
.polaroid figcaption { padding: var(--space-3) var(--space-1); font-family: var(--font-mono); font-size: var(--text-sm); text-align: center; }
.polaroid-tilt-r { rotate: 2deg; }
.polaroid-tilt-l { rotate: -2deg; }
.polaroid:hover { rotate: 0deg; scale: 1.02; }
.polaroid .img-slot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--white); opacity: 0; pointer-events: none; }
.reveal.is-visible.polaroid .img-slot::before, .reveal.is-visible .polaroid .img-slot::before { animation: camera-flash 900ms ease-out 200ms; }
@keyframes camera-flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

/* ---- Feature grid --------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.feature-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  isolation: isolate;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.feature-wide { grid-column: span 3; }
.feature-tall { grid-row: span 2; }
/* A spotlight slides over the card on hover. */
.feature-card::before { content: ""; position: absolute; z-index: -1; top: -60%; left: -30%; width: 70%; height: 220%; background: var(--accent-soft); transform: rotate(18deg) translateX(-120%); transition: transform 800ms var(--ease); }
.feature-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.feature-card:hover::before { transform: rotate(18deg) translateX(320%); }
.feature-card h3 { margin-bottom: var(--space-2); font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.feature-card p { font-size: 0.9375rem; }
/* Icon slot: replace the symbols in index.html with your own icons. */
.feature-icon { display: flex; width: var(--tap-size); height: var(--tap-size); margin-bottom: var(--space-4); align-items: center; justify-content: center; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius-sm); transition: background var(--duration) var(--ease), color var(--duration) var(--ease), rotate 400ms var(--ease-snap); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-icon { background: var(--highlight); border-color: var(--highlight); color: var(--on-highlight); rotate: -6deg; }
.feature-card:nth-child(3n + 2):hover .feature-icon { background: var(--highlight-2); border-color: var(--highlight-2); }
.feature-card:nth-child(3n):hover .feature-icon { background: var(--highlight-3); border-color: var(--highlight-3); }
.feature-icon-live { animation: live-pulse 2s ease-in-out infinite; }

/* Door with light spilling out: the Nite Room. */
.demo-door { position: relative; height: 112px; margin-top: var(--space-5); perspective: 500px; }
.door-frame { position: absolute; left: 50%; bottom: 0; width: 64px; height: 108px; transform: translateX(-50%); background: var(--accent); }
.door-leaf { position: absolute; inset: 0; background: var(--color-surface-3); transform-origin: left center; transform: rotateY(-22deg); transition: transform 800ms var(--ease-snap); }
.door-leaf::after { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.feature-card:hover .door-leaf { transform: rotateY(-74deg); }
.door-light { position: absolute; left: 50%; bottom: -1px; width: 200px; height: 1px; transform: translateX(-50%); background: var(--hairline); }

/* Timeline: a light travels the connected stops. */
.demo-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-6); }
.demo-line-track { position: absolute; left: 0; right: 0; top: 5px; height: 2px; overflow: hidden; background: var(--color-border); }
.demo-line-track::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--accent); animation: line-travel 3.6s linear infinite; }
@keyframes line-travel { to { left: 110%; } }
.demo-stop { position: relative; padding-top: 22px; font-size: var(--text-sm); color: var(--color-text-muted); }
.demo-stop::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--color-surface-3); border: 2px solid var(--color-text-muted); border-radius: 50%; }
.demo-stop b { display: block; font-family: var(--font-mono); font-weight: 500; color: var(--color-text); }
.demo-stop.is-next::before { background: var(--highlight); border-color: var(--highlight); box-shadow: var(--glow); animation: live-pulse 1.8s ease-in-out infinite; }

/* Poll: the votes keep moving. */
.demo-poll { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; padding-top: var(--space-5); }
.demo-poll-q { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); }
.demo-bar { position: relative; display: block; height: 42px; overflow: hidden; background: var(--color-surface-2); border-radius: var(--radius-sm); }
.demo-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--to); background: var(--color-surface-3); border-right: 2px solid var(--highlight); animation: bar-vote 6s var(--ease) var(--delay, 0s) infinite alternate; }
.demo-bar em { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
@keyframes bar-vote { from { width: calc(var(--to) * 0.45); } to { width: var(--to); } }

/* Photos landing on the pile. */
.demo-photos { position: relative; height: 124px; margin-top: var(--space-5); }
.demo-photos span { position: absolute; left: 50%; top: 2px; width: 88px; height: 112px; overflow: hidden; background: var(--color-surface-3); border: 5px solid var(--paper); border-bottom-width: 16px; box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease-snap); }
.demo-photos img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.demo-photos span:nth-child(1) { transform: translateX(-90%) rotate(-9deg); }
.demo-photos span:nth-child(2) { transform: translateX(-50%) rotate(2deg); }
.demo-photos span:nth-child(3) { transform: translateX(-10%) rotate(10deg); }
.feature-card:hover .demo-photos span:nth-child(1) { transform: translateX(-140%) rotate(-14deg); }
.feature-card:hover .demo-photos span:nth-child(3) { transform: translateX(40%) rotate(14deg); }

/* ---- Pillars ------------------------------------------------------------------------ */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--accent); }
.step { position: relative; padding-top: var(--space-6); }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; background: var(--color-bg); border: 3px solid var(--accent); border-radius: 50%; }
.step:nth-child(1)::before { border-color: var(--highlight-2); }
.step-now::before { background: var(--highlight); border-color: var(--highlight); }
.step:nth-child(3)::before { border-color: var(--highlight-3); }
.step-time { display: block; margin-bottom: var(--space-2); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); }
.step h3 { margin-bottom: var(--space-2); font-family: var(--font-display); font-size: clamp(2.25rem, 3.6vw, 3rem); font-weight: 900; line-height: 1; text-transform: uppercase; }

/* ---- Feed mock -------------------------------------------------------------------- */
.post-mock { overflow: hidden; max-width: 420px; justify-self: center; width: 100%; background: var(--color-surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-mock-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.post-mock-chip { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 1; padding: 4px 10px; background: var(--glass-strong); border-radius: var(--radius-full); font-size: var(--text-sm); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.post-mock-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.post-mock-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.post-mock-row { display: flex; align-items: center; gap: var(--space-3); }
.post-mock-like svg { width: 24px; height: 24px; fill: var(--highlight); stroke: var(--highlight); stroke-width: 1.8; animation: heart-beat 2.6s var(--ease) infinite; }
@keyframes heart-beat { 0%, 72%, 100% { transform: scale(1); } 80% { transform: scale(1.28); } 88% { transform: scale(0.96); } }
.post-mock-bar { flex: 1; height: 8px; background: var(--color-surface-3); border-radius: var(--radius-full); }

/* ---- Crew: wristbands --------------------------------------------------------------- */
.crew-visual { position: relative; padding-bottom: 70px; }
.wristbands { position: absolute; left: -12px; right: -12px; bottom: 0; display: flex; flex-direction: column; gap: 6px; }
.wristband { position: relative; display: block; width: max-content; max-width: 100%; padding: 6px 34px 6px 14px; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; text-transform: uppercase; box-shadow: var(--shadow-sm); transition: translate 400ms var(--ease-snap); }
.wristband::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: color-mix(in srgb, var(--black) 20%, transparent); border-radius: 50%; }
.wristband:nth-child(2) { margin-left: 44px; rotate: -1.5deg; }
.wristband:nth-child(3) { margin-left: 16px; rotate: 1deg; }
.band-a { background: var(--highlight); color: var(--on-highlight); }
.band-b { background: var(--highlight-2); color: var(--on-highlight); }
.band-c { background: var(--highlight-3); color: var(--on-highlight); }
.crew-visual:hover .wristband:nth-child(1) { translate: 18px 0; }
.crew-visual:hover .wristband:nth-child(2) { translate: -18px 0; }
.crew-visual:hover .wristband:nth-child(3) { translate: 26px 0; }

/* ---- Collections ------------------------------------------------------------------- */
.collection-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.collection-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); }
.collection-card img { transition: scale 900ms var(--ease); }
.collection-card:hover img { scale: 1.06; }
.collection-card span { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 1; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; padding: 2px 8px; background: var(--color-bg); }

/* ---- Nite of the Week ----------------------------------------------------------------- */
.week { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.week-board { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: var(--space-5); list-style: none; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.week-board li { display: flex; align-items: center; gap: var(--space-3); }
.week-rank { flex: none; width: 24px; font-family: var(--font-mono); color: var(--highlight); }
.week-line { display: block; flex: 1; height: 26px; background: linear-gradient(90deg, var(--accent) 0 var(--w), var(--color-surface-2) var(--w)); background-size: 0% 100%, 100% 100%; background-repeat: no-repeat; border-radius: var(--radius-sm); clip-path: inset(0 100% 0 0 round 8px); transition: clip-path 1100ms var(--ease) var(--d, 0ms); }
.reveal.is-visible .week-line { clip-path: inset(0 0 0 0 round 8px); background-size: 100% 100%; }

/* ---- Principles ------------------------------------------------------------------------ */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--hairline); }
.principle-no { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--highlight); padding-top: 6px; }
.principles h3 { margin-bottom: var(--space-1); font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.principles p { grid-column: 2; }

/* ---- Final CTA: the sun comes up ---------------------------------------------------------- */
.final-cta { position: relative; overflow: hidden; padding: 180px 0 calc(16vmin + var(--space-7)); text-align: center; isolation: isolate; view-timeline: --final-cta; }
.final-cta .site-container { display: flex; flex-direction: column; align-items: center; }

.final-cta h2 { max-width: 14ch; }
.final-cta p:not(.eyebrow) { margin: var(--space-4) 0 var(--space-5); font-size: var(--text-lg); }
.sunrise { position: absolute; z-index: -1; left: 50%; bottom: -94vmin; width: 110vmin; height: 110vmin; transform: translateX(-50%); background: var(--sun-core); border-radius: 50%; animation: sun-breathe 9s ease-in-out infinite alternate; }
@keyframes sun-breathe { to { scale: 1.06; } }
@supports (animation-timeline: view()) {
  .sunrise { animation: sun-rise linear both; animation-timeline: --final-cta; animation-range: entry 10% entry 100%; }
  @keyframes sun-rise { from { bottom: -110vmin; } to { bottom: -94vmin; } }
}

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer { position: relative; padding: var(--space-8) 0 calc(var(--space-7) + var(--safe-bottom)); background: var(--color-bg); font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.footer-brand img { height: 34px; width: auto; margin-bottom: var(--space-3); }
.footer-brand p { max-width: 34ch; color: var(--color-text-muted); }
.site-footer h2 { margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; color: var(--accent); text-transform: none; }
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.site-footer ul a { color: var(--color-text-muted); transition: color var(--duration) var(--ease); }
.site-footer ul a:hover { color: var(--color-text); }
.footer-social { flex-direction: row !important; gap: var(--space-4) !important; margin-top: var(--space-4) !important; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--glass-border); color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }

/* ---- Scroll reveal: a wipe with a small kick. JS only toggles the class. ---------------------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 300ms var(--ease), translate 800ms var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease), rotate 500ms var(--ease-snap), scale 500ms var(--ease-snap); }
.reveal.is-visible { opacity: 1; translate: 0 0; animation: reveal-wipe 800ms var(--ease) backwards; }
/* A mask, not a clip-path: a clipped element would never report that it scrolled into view. */
@keyframes reveal-wipe {
  from { -webkit-mask: linear-gradient(var(--black), var(--black)) top / 100% 0% no-repeat; mask: linear-gradient(var(--black), var(--black)) top / 100% 0% no-repeat; }
  to { -webkit-mask: linear-gradient(var(--black), var(--black)) top / 100% 100% no-repeat; mask: linear-gradient(var(--black), var(--black)) top / 100% 100% no-repeat; }
}
.feature-card:nth-child(3n + 2).reveal { transition-delay: 70ms; animation-delay: 70ms; }
.feature-card:nth-child(3n).reveal { transition-delay: 140ms; animation-delay: 140ms; }
.step:nth-child(2).reveal, .principles li:nth-child(2).reveal, .collection-card:nth-child(2).reveal { transition-delay: 90ms; animation-delay: 90ms; }
.step:nth-child(3).reveal, .collection-card:nth-child(3).reveal { transition-delay: 180ms; animation-delay: 180ms; }
@media (scripting: none) { .reveal { opacity: 1; translate: none; } }

/* ---- Legal pages --------------------------------------------------------------------------------- */
.legal { max-width: 720px; margin: 0 auto; padding: var(--space-7) max(var(--space-5), var(--safe-right)); }
.legal h1 { margin-bottom: var(--space-4); font-size: clamp(3rem, 8vw, 4.5rem); }
.legal h2 { margin: var(--space-5) 0 var(--space-2); font-size: 1.75rem; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal a { color: var(--accent); text-decoration: underline; }
.legal-updated { margin-bottom: var(--space-5); font-size: var(--text-sm); }
.legal ul { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: disc; }

/* ============================================================================================
   RESPONSIVE
   Large desktop, laptop, tablet landscape and portrait, big phone, regular phone, small phone,
   very small phone, and phones held sideways.
   ============================================================================================ */

/* Large desktop */
@media (min-width: 1800px) {
  :root { --site-max-width: 1480px; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 440px); }
  .hero-text h1 { font-size: 10.5rem; }
}

/* Small laptop and tablet landscape */
@media (max-width: 1199px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 380px); gap: var(--space-6); }
  .split { gap: var(--space-7); }
  .nav-num { display: none; }
}

/* Tablet portrait and below: hero text above the pass */
@media (max-width: 1023px) {
  .hero { padding: 130px 0 150px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 92px; }
  .hero-text h1 { font-size: clamp(4.5rem, 14vw, 8rem); }
  .pass-rig { width: 100%; max-width: 430px; justify-self: center; transform-origin: 50% -300px; }
  .pass-strap { height: 84px; -webkit-mask: linear-gradient(transparent, var(--black) 70%); mask: linear-gradient(transparent, var(--black) 70%); }
  .mirrorball, .hero-beams { left: 80%; }
  .split, .split-reverse, .week { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .split > .polaroid { max-width: 420px; justify-self: center; }
  .crew-visual { max-width: 520px; justify-self: center; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { grid-column: span 1; }
  .feature-wide { grid-column: span 2; }
  .feature-tall { grid-row: auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phones: the nav collapses into a full menu */
@media (max-width: 767px) {
  html { scroll-padding-top: 80px; }
  .site-nav { padding-inline: max(var(--space-2), var(--safe-left)) max(var(--space-2), var(--safe-right)); padding-top: calc(var(--space-2) + var(--safe-top)); }
  .site-nav-bar { min-height: 56px; padding: 6px 6px 6px var(--space-4); overflow: visible; }
  .site-logo img { height: 26px; }
  .nav-toggle { display: block; }
  .nav-login, .nav-cta { display: none; }
  .nav-progress { border-radius: var(--radius-full); }
  .nav-links {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: var(--space-3) var(--space-4) var(--space-4);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }
  .nav-links.is-open { display: flex; animation: menu-in 300ms var(--ease); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
  .nav-links li { animation: panel-in 380ms var(--ease) both; }
  .nav-links li:nth-child(2) { animation-delay: 50ms; }
  .nav-links li:nth-child(3) { animation-delay: 100ms; }
  .nav-links li:nth-child(4) { animation-delay: 150ms; }
  .nav-links a[data-spy] { align-items: center; gap: var(--space-3); min-height: 54px; padding: 0 var(--space-2); border-bottom: 1px solid var(--glass-border); border-radius: 0; font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--color-text); text-transform: uppercase; }
  .nav-links a[data-spy].is-active { background: none; color: var(--accent); }
  .nav-num { display: inline; }
  .nav-links-cta { display: block; margin-top: var(--space-4); }

  .site-container { padding-inline: max(var(--space-4), var(--safe-left)) max(var(--space-4), var(--safe-right)); }
  .section-block { padding: var(--space-8) 0; }
  .hero { padding: 120px 0 130px; min-height: 100svh; }
  .hero-text h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
  .hero-intro { font-size: var(--text-base); }
  .mirrorball { left: 84%; width: clamp(84px, 22vw, 120px); }
  .mirrorball-chain { height: 74px; }
  .hero-beams { left: 84%; }
  .feature-grid, .steps, .principles, .split-columns, .collection-row { grid-template-columns: minmax(0, 1fr); }
  .feature-card, .feature-wide { grid-column: span 1; }
  .steps::before { top: 0; bottom: 0; left: 10px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 0 44px; }
  .collection-card { aspect-ratio: 16 / 9; }
  .pass-body { padding: var(--space-4) var(--space-4) var(--space-3); }
  .pass-foot { padding-inline: var(--space-4); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nite-clock { font-size: var(--text-xs); padding: 5px 10px; }
  .wristbands { left: 0; right: 0; }
  .final-cta { padding-top: 130px; }
}

/* Regular and small phones */
@media (max-width: 400px) {
  .hero-text h1 { font-size: clamp(3.6rem, 21vw, 5rem); }
  .section-block h2, .final-cta h2 { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .feature-card { padding: var(--space-4); }
  .pass-title { font-size: 1.85rem; }
  .demo-stop { font-size: var(--text-xs); }
}

/* Very small phones */
@media (max-width: 340px) {
  .site-container { padding-inline: var(--space-3); }
  .hero-text h1 { font-size: 3.25rem; }
  .auth-tabs button { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .wristband:nth-child(2) { margin-left: 16px; }
}

/* Phones held sideways: little height, so nothing may depend on the viewport height */
@media (orientation: landscape) and (max-height: 520px) {
  html { scroll-padding-top: 70px; }
  .site-nav-bar, .site-nav.is-scrolled .site-nav-bar { min-height: 46px; }
  .hero { min-height: 0; padding: 92px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--space-5); align-items: start; }
  .hero-text { gap: var(--space-3); }
  .hero-text h1 { font-size: clamp(3rem, 9.5vw, 4.75rem); }
  .hero-tagline { font-size: var(--text-base); }
  .hero-intro { font-size: var(--text-sm); }
  .scroll-hint { display: none; }
  .pass-rig { margin-top: var(--space-5); max-width: none; transform-origin: 50% -200px; }
  .pass-strap { height: 60px; }
  .mirrorball, .hero-beams { left: 42%; }
  .mirrorball { width: 76px; }
  .mirrorball-chain { height: 44px; }
  .hero-skyline { height: 90px; }
  .section-block { padding: var(--space-7) 0; }
  .section-block h2, .final-cta h2 { font-size: clamp(2.25rem, 7vw, 3.25rem); }
  .split, .split-reverse, .week { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-5); }
  .split > .polaroid, .crew-visual { max-width: 260px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps::before { top: 10px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .step { padding: var(--space-6) 0 0; }
  .collection-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta { padding-top: 90px; }
  .sunrise { width: 90vmin; height: 90vmin; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 767px) {
  .nav-links { max-height: calc(100dvh - 70px); }
  .nav-links a[data-spy] { min-height: 44px; font-size: 1.4rem; }
}

/* Small sideways phones: not enough width for two columns next to the pass */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 640px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .pass-rig { max-width: 420px; justify-self: center; }
  .split, .split-reverse, .week { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; animation: none !important; }
  .pass-rig, .mirrorball, .hero-spots, .hero-beams span, .sky-stars, .tape-track, .sunrise,
  .h1-line, .pass-head::after, .demo-bar::before, .demo-line-track::after,
  .scroll-hint-track span, .feature-icon-live, .ball-svg polygon, .flare, .hero-skyline rect, .post-mock-like svg { animation: none !important; }
  .ball-svg polygon { opacity: 0.8; }
  .hero-beams { display: none; }
  .week-line { clip-path: none; background-size: 100% 100%; }
}
.legal .form-error { color: var(--color-danger); }
.legal form + p { margin-top: var(--space-4); }
