/* FRONEER — five birthdays, one night.
   Quiet Swiss base (Geist + Geist Mono), Tektur for the moments that are Froneer. */

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --text: #c9c9c9;
  --bright: #efece6;
  --muted: #808080;
  --line: rgba(239, 236, 230, 0.1);
  --ink: #161616;
  --ember-2: #c2290c;

  --f-sans: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-display: "Tektur", "Geist", system-ui, sans-serif;

  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --c: 10px;
  --chamfer: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
    calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--bright); color: var(--ink); }

:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

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

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; background: var(--bright); color: var(--ink);
  transform: translateY(-150%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* ---------- Film grain over everything ---------- */

body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 420px 420px;
  animation: film-grain 2.4s steps(6) infinite;
}
@keyframes film-grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-4%, 3%); }
  33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); }
  67% { transform: translate(5%, 4%); }
  83% { transform: translate(-2%, 6%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Stage: fixed atmosphere + logo ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, #151515 0%, rgba(10, 10, 10, 0) 60%),
    radial-gradient(90% 60% at 50% 110%, #0c0c0c 0%, rgba(18, 18, 18, 0) 70%),
    var(--bg);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.atmos { position: absolute; inset: 0; transition: opacity 2.6s ease 0.5s; }
.is-loading .atmos { opacity: 0; transition: none; }

.beam {
  position: absolute;
  top: -12vh;
  width: 64vmax;
  height: 135vh;
  margin-left: -32vmax;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(239, 236, 230, 0.09), rgba(239, 236, 230, 0.025) 42%, rgba(239, 236, 230, 0) 72%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  filter: blur(26px);
  mix-blend-mode: screen;
  will-change: transform;
  animation: sweep var(--dur, 16s) ease-in-out infinite alternate;
}
.beam--1 { left: 16%; --from: -26deg; --to: 8deg; --dur: 19s; opacity: 0.7; }
.beam--2 { left: 50%; --from: 14deg; --to: -14deg; --dur: 24s; opacity: 0.4; }
.beam--3 { left: 84%; --from: 24deg; --to: -6deg; --dur: 17s; opacity: 0.7; }

@keyframes sweep {
  from { transform: rotate(var(--from)); }
  to { transform: rotate(var(--to)); }
}

.haze {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 70%;
  background:
    radial-gradient(40% 50% at 30% 60%, rgba(239, 236, 230, 0.045), transparent 70%),
    radial-gradient(35% 45% at 72% 55%, rgba(239, 236, 230, 0.03), transparent 70%);
  filter: blur(30px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, 0, 0); }
  to { transform: translate3d(4%, -6%, 0); }
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(3%, 1%); }
}

.stage__logo {
  position: relative;
  z-index: 1;
  width: min(clamp(220px, 29vw, 430px), 66svh);
  color: var(--bright);
  transition: translate 1.15s var(--ease);
}
/* Opacity and scale follow the scroll position (js/main.js), so no timed transition here. */
.logo { display: block; width: 100%; height: auto; overflow: visible; will-change: opacity, transform; }

/* Intro: the O loads first, then flies into place and the letters follow. */
.logo-glyph {
  transform-box: fill-box;
  transition:
    opacity 0.8s ease calc(0.55s + var(--i) * 70ms),
    transform 1.2s var(--ease-out) calc(0.55s + var(--i) * 70ms);
}
.logo-o {
  transform-box: view-box;
  transform-origin: 396.27px 76.83px;
  transition: transform 1.15s var(--ease);
}

.is-loading .logo-glyph { opacity: 0; transform: translateY(30%); }
.is-loading .logo-o { transform: translate(-128.77px, 92.17px) scale(0.42); }
.is-loading:not(.intro-drawn) .logo-o { visibility: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.is-loading .loader { opacity: 1; }
.loader__corner { position: absolute; color: var(--muted); }
.loader__corner--tl { top: var(--pad); left: var(--pad); }
.loader__corner--tr { top: var(--pad); right: var(--pad); }
.loader__corner--bl { bottom: var(--pad); left: var(--pad); }
.loader__corner--br { bottom: var(--pad); right: var(--pad); color: var(--bright); }

.is-loading body { overflow: hidden; }

.header, .hero__meta, .dock {
  transition: opacity 0.9s ease 1.1s, translate 1s var(--ease-out) 1.1s;
}
.is-loading .header,
.is-loading .hero__meta,
.is-loading .dock { opacity: 0; translate: 0 14px; transition: none; }
.is-loading main > :not(.hero),
.is-loading .footer { visibility: hidden; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: max(14px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 14px max(var(--pad), env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0));
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 11, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.header.is-scrolled::before { opacity: 1; }
.header__brand { margin-right: auto; transition: opacity 0.5s ease; }
.js:not(.logo-dim) .header__brand { opacity: 0; pointer-events: none; }
.header__brand { display: block; color: var(--bright); }
.brand { display: block; width: calc(13px * 1710 / 242); height: 13px; overflow: visible; }
.header__nav { display: flex; gap: 28px; }
.header__nav a, .footer a, .link-arrow { transition: color 0.2s; }
.header__nav a:hover, .footer a:hover, .link-arrow:hover { color: var(--bright); }
.header__cta {
  --c: 6px;
  padding: 9px 14px;
  background: var(--bright);
  color: var(--ink);
  font-weight: 500;
  clip-path: var(--chamfer);
}
.header__menu {
  display: none;
  padding: 9px 0;
  background: none;
  border: 0;
  color: var(--bright);
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px var(--pad) calc(110px + env(safe-area-inset-bottom));
  background: var(--bg-deep);
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a {
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bright);
}
.menu__foot { color: var(--muted); }
.menu-open body { overflow: hidden; }

/* ---------- Layout ---------- */

main { position: relative; z-index: 1; }

.section {
  padding: clamp(88px, 12vw, 180px) var(--pad) 0;
  scroll-margin-top: 40px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.h-section {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bright);
}
.h-section sup {
  margin-left: 6px;
  font-size: 10px;
  vertical-align: top;
  color: var(--muted);
}
.link-arrow::after { content: " ›"; }

.display {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--bright);
}

[data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s ease calc(var(--d, 0) * 90ms), translate 1.1s var(--ease-out) calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }
html:not(.js) [data-reveal] { opacity: 1; translate: none; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) calc(40px + env(safe-area-inset-bottom));
}
.hero__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.hero__when { display: grid; gap: 10px; }
.hero__date {
  font-family: var(--f-display);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 0.82;
  text-transform: uppercase;
  color: var(--bright);
  font-variant-numeric: tabular-nums;
  transition: font-stretch 1.4s var(--ease-out) 1.2s;
}
.is-loading .hero__date { font-stretch: 75%; transition: none; }
.hero__line { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; color: var(--text); }
.hero__line a { color: var(--bright); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(239, 236, 230, 0.35); }

/* ---------- The night ---------- */

.statement {
  max-width: 14ch;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #2b2b2b;
}
.statement .w { transition: color 0.35s ease; }
.statement .w.is-lit { color: var(--bright); }
html:not(.js) .statement { color: var(--bright); }

/* ---------- DJ cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-deep);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.5s ease;
}
.card img { filter: brightness(0.9); }
.card:hover img, .card.is-tapped img { transform: scale(1.05); filter: brightness(1.12); }
.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48% 16px 16px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0));
}
.card__num { display: block; color: rgba(239, 236, 230, 0.75); }
.card__name {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 68px);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--bright);
  transition: font-stretch 1.3s var(--ease-out) calc(0.25s + var(--d, 0) * 90ms);
}
.card.is-in .card__name { font-stretch: 100%; }

/* ---------- Setlist ---------- */

.tbd { display: grid; gap: 12px; padding: clamp(24px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tbd[hidden], .slots[hidden], sup[hidden] { display: none; }
.tbd__big {
  font-family: var(--f-display);
  font-size: clamp(88px, 18vw, 240px);
  font-weight: 700;
  line-height: 0.8;
  color: var(--bright);
}
.tbd__text { font-size: 19px; color: var(--text); }

.slots { border-top: 1px solid var(--line); }
.slot {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1.25fr) minmax(0, 1fr) 120px;
  align-items: baseline;
  gap: 16px;
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, opacity 0.3s;
}
.slot > * { transition: translate 0.4s var(--ease-out); }
.slot:hover { background: rgba(239, 236, 230, 0.03); }
.slot:hover > :not(.slot__status) { translate: 8px 0; }
.slot__time { color: var(--muted); font-size: 12px; }
.slot__act {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--bright);
}
.slot--moment .slot__act {
  font-family: var(--f-sans);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.slot__what { color: var(--text); }
.slot__status { justify-self: end; color: var(--muted); }

.slot.is-past { opacity: 0.38; }
.slot.is-live { background: var(--bright); padding-left: 12px; padding-right: 12px; }
.slot.is-live > * { color: var(--ink); }
.slot.is-live .slot__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ember-2);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.2; } }

/* ---------- Details ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid var(--line);
}
.tile__value {
  margin-top: auto;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--bright);
}
.tile__note { color: var(--muted); font-size: 14px; }
.tile__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tile__links a { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(239, 236, 230, 0.35); }
.tile__links a:hover { text-decoration-color: var(--bright); }

/* ---------- FAQ ---------- */

.faq__list { max-width: 980px; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bright);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { max-width: 62ch; padding: 0 0 24px; color: var(--text); }

/* ---------- RSVP ---------- */

.rsvp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  scroll-margin-top: 72px;
}
.rsvp__intro { display: grid; gap: 18px; }
.rsvp__lead { max-width: 30ch; font-size: 18px; line-height: 1.4; color: var(--text); }
.rsvp__panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.82);
  color: var(--text);
  scroll-margin-top: 88px;
}
.rsvp__form, .rsvp__done, .rsvp__extra { display: grid; gap: 24px; }
.rsvp__form[hidden], .rsvp__done[hidden], .rsvp__extra[hidden] { display: none; }
.rsvp__done { gap: 16px; }
.rsvp__done-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bright);
}
.rsvp__done-title:focus { outline: none; }
.rsvp__done-text { color: var(--muted); }
.rsvp__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field .mono { color: var(--muted); }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--bright);
}
.field__hint { font-size: 14px; font-weight: 400; color: var(--muted); }
.field__error { font-size: 15px; color: #f07a55; }
.field__error[hidden] { display: none; }

.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 236, 230, 0.2);
  border-radius: 4px;
  background: rgba(239, 236, 230, 0.04);
  font-size: 17px;
  color: var(--bright);
  transition: border-color 0.2s, background-color 0.2s;
}
.input::placeholder { color: rgba(239, 236, 230, 0.32); }
.input:hover { border-color: rgba(239, 236, 230, 0.32); }
.input:focus { outline: none; border-color: var(--bright); background: rgba(239, 236, 230, 0.07); }
.input[aria-invalid="true"] { border-color: #f07a55; }

/* Two big options side by side: the answer is one tap */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  border: 1px solid rgba(239, 236, 230, 0.2);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.segmented label:hover span { border-color: rgba(239, 236, 230, 0.4); }
.segmented input:checked + span { background: var(--bright); border-color: var(--bright); color: var(--ink); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--bright); outline-offset: 2px; }

.btn {
  --c: 8px;
  padding: 18px 20px;
  border: 0;
  background: var(--bright);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover { background: #fff; }
a.btn { display: block; text-align: center; }
.btn[hidden] { display: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--big { min-height: 58px; font-size: 14px; }
.rsvp__note { font-size: 14px; color: var(--muted); }
.rsvp__note.is-error { color: #f07a55; }
.rsvp__decline {
  justify-self: start;
  padding: 10px 0;
  margin: -10px 0;
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Big plain RSVP button: sentence case, easy to read and hit */
.choice-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 24px;
  border-radius: 6px;
  background: var(--bright);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: background-color 0.2s, transform 0.15s;
}
.choice-link:hover { background: #fff; }
.choice-link:active { transform: scale(0.98); }
.rsvp__cta { display: grid; gap: 20px; }
.rsvp__cta-text { font-size: 19px; line-height: 1.4; color: var(--text); }
.hero__rsvp { flex: 0 0 auto; min-width: 320px; }

/* The hero has its own big RSVP button, so the dock waits until you scroll on */
.js:not(.logo-dim) .dock__ring { opacity: 0; transform: translateY(24px); pointer-events: none; }

/* Birthdays follow the big line directly, without a title */
.djs { padding-top: clamp(32px, 5vw, 64px); }
.cards-head { display: none; justify-content: flex-end; margin-bottom: 12px; }
@media (max-width: 640px) { .cards-head { display: flex; } }

/* Repeated RSVP prompt between sections */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.82);
}
.cta-band__text { font-size: 19px; font-weight: 500; color: var(--bright); }
.cta-band .choice-link { min-width: 280px; }
@media (max-width: 640px) {
  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-band .choice-link { min-width: 0; }
}

/* Language switch */
.lang {
  min-width: 44px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 236, 230, 0.35);
  border-radius: 4px;
  background: none;
  color: var(--bright);
  cursor: pointer;
}
.lang:hover { border-color: var(--bright); }

/* ---------- Motion details ---------- */

/* 1. Section titles: the O's bar wipes across, the text appears behind it */
.wipe { position: relative; }
.wipe::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.42em;
  margin-top: -0.21em;
  background: var(--bright);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.wipe:not(.is-wiped) { clip-path: inset(0 100% 0 0); }
.wipe.is-wiped { animation: wipe-text 0.9s var(--ease) both; }
.wipe.is-wiped::after { animation: wipe-bar 0.9s var(--ease) both; }
@keyframes wipe-text {
  0%, 45% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes wipe-bar {
  0% { clip-path: inset(0 100% 0 0); }
  45% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* 2. TBD switches on like a neon sign, then flickers now and then */
.tbd__big { text-shadow: 0 0 28px rgba(239, 236, 230, 0.28); }
.tbd__big.is-wiped { animation: neon-on 1.2s steps(1) both, neon-idle 7s 1.6s linear infinite; }
.tbd__big.wipe::after { display: none; }
@keyframes neon-on {
  0% { opacity: 0.1; clip-path: inset(0 0 0 0); }
  10% { opacity: 1; }
  16% { opacity: 0.15; }
  28% { opacity: 1; }
  34% { opacity: 0.35; }
  46%, 100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes neon-idle {
  0%, 91%, 94%, 100% { opacity: 1; }
  92% { opacity: 0.4; }
  93% { opacity: 0.85; }
}

/* 3. Countdown digits roll in from below */
.dock__time b { display: inline-flex; overflow: hidden; }
.digit { display: inline-block; }
.digit.is-rolling { animation: roll 0.45s var(--ease-out); }
@keyframes roll {
  from { transform: translateY(70%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 4. Beams lean a little towards the mouse */
.beam { rotate: calc(var(--tilt, 0) * var(--lean, 6deg)); transition: rotate 1.2s var(--ease-out); }
.beam--2 { --lean: 3deg; }

/* 5. A soft light sweep over the RSVP buttons every few seconds */
.choice-link { position: relative; overflow: hidden; isolation: isolate; }
.choice-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep-light 4.5s ease-in-out 2s infinite;
}
@keyframes sweep-light {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- Finale + footer ---------- */

.finale {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 var(--pad) calc(120px + env(safe-area-inset-bottom));
  text-align: center;
}
.finale__rsvp { width: min(100%, 380px); }
.finale__line { color: var(--bright); }
.finale__line span { color: var(--muted); margin: 0 6px; }

.footer {
  position: relative;
  z-index: 1;
  padding: 48px var(--pad) calc(110px + env(safe-area-inset-bottom));
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 48px;
}
.footer h3 { margin-bottom: 14px; color: var(--bright); font-weight: 500; }
.footer__logo { width: auto; height: 18px; }
.footer p { color: var(--muted); }
.footer ul { display: grid; gap: 8px; color: var(--muted); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Dock: the O from the logo ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.dock__ring {
  --c: 11px;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  padding: 2px;
  background: rgba(239, 236, 230, 0.7);
  clip-path: var(--chamfer);
  pointer-events: auto;
}
.dock__inner {
  --c: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 18px;
  background: rgba(10, 10, 10, 0.94);
  clip-path: var(--chamfer);
}
.dock__count { display: flex; align-items: baseline; gap: 14px; }
.dock__label { color: var(--muted); }
.dock__time {
  display: flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--bright);
  white-space: nowrap;
}
.dock__time b { font-weight: inherit; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.dock__time i { font-style: normal; margin: 0 8px 0 2px; color: var(--muted); font-size: 10px; }
.dock__time i:last-child { margin-right: 0; }
.dock__bar {
  padding: 11px 18px;
  background: var(--bright);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.dock__bar:hover { background: #fff; }
.dock-hidden .dock__ring { opacity: 0; transform: translateY(24px); pointer-events: none; }
.cards-count { display: none; color: var(--muted); }
.cards-count b { color: var(--bright); font-weight: 400; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .slot { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 0.9fr) 90px; }
}

@media (max-width: 860px) {
  .header__nav, .header__cta { display: none; }
  .header__menu { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsvp { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Hero: logo scales with screen height, sits a little higher; text closer to the dock */
  .stage__logo { width: min(62vw, 40svh); translate: 0 -6svh; }
  .is-loading .stage__logo { translate: none; }
  .is-loading .logo-o { transform: translate(-128.77px, 92.17px) scale(0.6); }
  .hero { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .hero__meta { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__rsvp { min-width: 0; }

  /* Narrower, softer light so the beams don't cross into a hard X on a tall screen */
  .beam { width: 92vw; margin-left: -46vw; filter: blur(20px); }
  .beam--2 { display: none; }

  /* DJ cards: swipe row, always visible, with a counter instead of the setlist link */
  .cards {
    display: flex;
    gap: 10px;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 78vw; scroll-snap-align: start; }
  .card[data-reveal] { opacity: 1; translate: none; }
  .card__body { padding: 40% 14px 14px; }
  .djs .link-arrow { display: none; }
  .cards-count { display: block; }

  /* Setlist: timetable rows, time on the left, duration only when it matters */
  .slot {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "time act status" ". what what";
    gap: 2px 12px;
    padding: 14px 0;
  }
  .slot:hover > :not(.slot__status) { translate: none; }
  .slot__time { grid-area: time; }
  .slot__act { grid-area: act; font-size: 30px; }
  .slot--moment .slot__act { font-size: 20px; }
  .slot__what { grid-area: what; font-size: 14px; color: var(--muted); }
  .slot__status { grid-area: status; display: none; }
  .slot.is-live .slot__status { display: block; }
  .slot.is-live { padding-left: 10px; padding-right: 10px; }

  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :first-child { grid-column: 1 / -1; }

  .dock__label { display: none; }
  .dock__inner { gap: 12px; padding-left: 14px; }
  .dock__time { font-size: 17px; }
  .dock__time i { margin-right: 5px; }
}

/* Touch: 44px targets and a press state instead of hover */
@media (pointer: coarse) {
  .header__menu { padding: 14px 12px; margin-right: -12px; }
  .hero__line a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .dock__bar { padding: 15px 20px; }
  .dock__bar:active { background: #fff; transform: scale(0.97); }
  .card:hover img { transform: none; }
  html { -webkit-tap-highlight-color: transparent; }
}

/* Landscape phones: keep logo and hero text apart */
@media (max-height: 500px) and (orientation: landscape) {
  .stage__logo { width: min(38vw, 50svh); translate: 0 -8svh; }
  .is-loading .stage__logo { translate: none; }
  .hero { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
