/* =========================================================
   FRESHMAN BIRTHDAY PARTY — invite identity
   Shared by the website (index.html) and the poster (poster/)
   ========================================================= */

/* ---------- Fonts (brand kit) ---------- */
@font-face { font-family: "Fixture Ultra"; src: url("assets/fonts/fixture-ultra.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Fixture Condensed"; src: url("assets/fonts/fixture-condensed.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Benzin"; src: url("assets/fonts/benzin-bold.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Fixture"; src: url("assets/fonts/fixture-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fixture"; src: url("assets/fonts/fixture-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --blue: #0D4C83;
  --orange: #FF9300;
  --white: #FFFFFF;
  /* night scale, sampled from the Freshman posters */
  --deep: #003B63;
  --night: #001E36;
  --orange-shade: #E47F00;
  --steel-1: #E6EBF0;
  --steel-2: #9AA8B6;
  --muted: rgba(255, 255, 255, .72);
  --hair: rgba(255, 255, 255, .18);

  --f-display: "Fixture Ultra", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-headline: "Fixture Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-label: "Benzin", "Arial Black", sans-serif;
  --f-sans: "Fixture", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain lives on sections (static, no fixed blend layer = smooth scroll on phones) */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background-image: var(--grain); opacity: .07;
}

/* ---------- Brand lockup ---------- */
.lockup { display: inline-block; color: var(--white); }
.lockup svg { width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 14px/1 var(--f-label); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--ease-out), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--navy { --bg: var(--night); --fg: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }

/* =========================================================
   STACK — the headline lockup inherited from the Freshman posters:
   Benzin bracket / Fixture Ultra white / Fixture Ultra orange / Benzin bracket,
   every line fitted to the same width (script.js → fitGroup)
   ========================================================= */
.stack { width: var(--stack-w, 100%); margin: 0; font-weight: 400; }
.fit { display: block; margin: 0; white-space: nowrap; line-height: 1; }
.fit__in { display: inline-block; }
.stack__bracket { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--white); }
/* Fixture Ultra: caps sit .2em below the box top at line-height .9, so pull each line up by that */
.stack__line { font-family: var(--f-headline); font-weight: 600; text-transform: uppercase; line-height: .9; margin-top: -.2em; overflow: hidden; }
.stack__line + .stack__line { margin-top: -.155em; }
.stack--ultra .stack__line { font-family: var(--f-display); font-weight: 400; }
.stack__bracket--top { margin-bottom: .45em; }
.stack__bracket--bottom { margin-top: .55em; }
.stack__line--white .fit__in { background: linear-gradient(180deg, #fff 58%, #cdd6df); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack__line--orange .fit__in { background: linear-gradient(95deg, var(--orange) 55%, var(--orange-shade)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   PASS — the guest pass object (sized in em: set font-size on .pass-wrap)
   ========================================================= */
.pass-wrap { position: relative; width: 34em; filter: drop-shadow(0 2.2em 2.6em rgba(0, 12, 28, .55)) drop-shadow(0 .3em .5em rgba(0, 12, 28, .35)); }
.pass {
  --stub: 10.5em;
  position: relative; display: flex; flex-direction: column;
  width: 34em; min-height: 48em;
  padding: 3.4em 2.4em 0;
  border-radius: 1.8em;
  background: linear-gradient(160deg, #fff 45%, #eef2f6);
  color: var(--blue);
  -webkit-mask:
    radial-gradient(ellipse 2.9em .62em at 50% 1.7em, #0000 97%, #000 100%),
    radial-gradient(circle 1.35em at 0 calc(100% - var(--stub)), #0000 97%, #000 100%),
    radial-gradient(circle 1.35em at 100% calc(100% - var(--stub)), #0000 97%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(ellipse 2.9em .62em at 50% 1.7em, #0000 97%, #000 100%),
    radial-gradient(circle 1.35em at 0 calc(100% - var(--stub)), #0000 97%, #000 100%),
    radial-gradient(circle 1.35em at 100% calc(100% - var(--stub)), #0000 97%, #000 100%);
  mask-composite: intersect;
}
.pass__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.9em; padding-bottom: 1.5em; border-bottom: 1px solid rgba(13, 76, 131, .16); }
.pass__lockup { width: 11.5em; color: var(--blue); }
.pass__kind { font: 700 1em/1 var(--f-label); text-transform: uppercase; }
.pass__nums { display: flex; justify-content: space-between; align-items: flex-end; margin: -.2em 0 0; font-family: var(--f-display); font-size: 30.5em; line-height: .9; }
.pass__nums span { display: block; }
.pass__date { color: var(--blue); }
.pass__time { color: var(--orange); }
.pass__meta { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.2em; margin: 2em 0 2.2em; }
.pass__meta dt { font: 600 1.05em/1.2 var(--f-sans); opacity: .6; margin-bottom: .45em; }
.pass__meta dd { margin: 0; font: 700 1.25em/1.15 var(--f-label); text-transform: uppercase; }
.pass__stub {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  height: var(--stub); margin: auto -2.4em 0; padding: 1.9em 2.4em 2.1em;
  background-image: linear-gradient(90deg, rgba(13, 76, 131, .35) 50%, transparent 0);
  background-size: 1em 2px; background-repeat: repeat-x; background-position: 0 0;
}
.pass__stub-label { grid-column: 1 / -1; align-self: start; font: 600 1.05em/1 var(--f-sans); opacity: .6; }
.pass__guest { font: italic 400 4.4em/1 var(--f-serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .2em; }
.pass__admit { font: 700 1em/1.1 var(--f-label); text-transform: uppercase; text-align: right; color: var(--orange); }

/* lanyard strap + clip */
.strap {
  position: absolute; left: 50%; bottom: calc(100% - 1.2em);
  width: 3.4em; height: var(--strap-h, 60em);
  transform: translateX(-50%);
  background: var(--orange);
  box-shadow: inset .35em 0 0 rgba(255, 255, 255, .18), inset -.35em 0 0 rgba(0, 0, 0, .12);
  overflow: hidden;
}
.strap__text {
  position: absolute; left: 50%; bottom: 0;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font: 700 1.05em/1 var(--f-label); text-transform: uppercase; white-space: nowrap; color: var(--night);
  display: flex; align-items: center; gap: .9em;
}
.strap__text svg { width: 1.05em; height: 1.2em; transform: rotate(90deg); }
.clip {
  position: absolute; left: 50%; top: -.9em; z-index: 2;
  width: 6.4em; height: 3.2em; transform: translateX(-50%);
  border-radius: .7em;
  background: linear-gradient(180deg, var(--steel-1), var(--steel-2) 70%, #7d8b99);
  box-shadow: 0 .35em .6em rgba(0, 12, 28, .35), inset 0 .12em 0 rgba(255, 255, 255, .8);
}
.clip::after { content: ""; position: absolute; left: 50%; top: 1.15em; width: 3.4em; height: .9em; transform: translateX(-50%); border-radius: .45em; background: rgba(0, 30, 54, .55); box-shadow: inset 0 .15em .2em rgba(0, 0, 0, .4); }

/* strap band (horizontal version of the lanyard) */
.band-clip { overflow-x: clip; position: relative; z-index: 6; }
.band { position: relative; z-index: 6; background: var(--orange); color: var(--night); overflow: hidden; transform: rotate(-2.2deg); margin: -28px -4vw; box-shadow: 0 20px 40px rgba(0, 12, 28, .35); }
.band__track { display: flex; width: max-content; animation: band 38s linear infinite; }
.band__row { display: flex; align-items: center; gap: 28px; padding: 20px 14px; font: 700 clamp(15px, 1.6vw, 22px)/1 var(--f-label); text-transform: uppercase; white-space: nowrap; }
.band__row svg { width: 1.05em; height: 1.2em; flex: none; }
@keyframes band { to { transform: translateX(-50%); } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  padding: 28px var(--gutter) 88px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(13, 76, 131, .95), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--night) 92%);
  overflow: hidden;
}
.hero__ghost {
  position: absolute; z-index: 0; left: -6vw; top: 8svh;
  font: 400 min(150vw, 120svh)/.8 var(--f-display); text-transform: uppercase;
  color: rgba(120, 180, 235, .075);
  transform: rotate(-9deg); transform-origin: 0 0;
  filter: blur(3px); pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.hero__top .lockup { width: 150px; }
.hero__note { font: 600 13px/1.3 var(--f-sans); color: var(--muted); text-align: right; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 5svh; }
.hero__copy { min-width: 0; }
.hero__copy { --stack-w: 100%; }
.hero__lede { max-width: 22ch; margin: 24px 0 0; font: italic 400 clamp(24px, 6.4vw, 34px)/1.12 var(--f-serif); color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero__place { font: 700 13px/1.2 var(--f-label); text-transform: uppercase; color: var(--muted); }
.hero__pass { --rest: 2.5deg; --strap-h: 12em; position: relative; display: flex; justify-content: center; padding-top: 13em; font-size: min(2.45vw, 11px); }
.hero__pass .strap { -webkit-mask: linear-gradient(to top, #000 55%, transparent); mask: linear-gradient(to top, #000 55%, transparent); }
.swing, .tilt { transform-origin: 50% calc(var(--strap-h) * -1); }

/* =========================================================
   STORY
   ========================================================= */
.story { padding: 150px var(--gutter) 130px; background: var(--night); }
.story__lines { max-width: 1040px; margin: 0 auto; }
.story__line {
  --p: 0;
  max-width: 16ch; margin: 0;
  font: 700 clamp(38px, 6.6vw, 100px)/1.04 var(--f-label); text-transform: uppercase;
  color: var(--fill, #fff);
  opacity: calc(.14 + var(--p) * .86);
  transform: translateX(calc((1 - var(--p)) * -24px));
}
.story__line + .story__line { margin-top: .35em; }
.story__line--orange { --fill: var(--orange); }

.letter-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 1180px; margin: 120px auto 0; align-items: start; }
.letter {
  position: relative; padding: 40px 28px 34px;
  background: linear-gradient(170deg, #fff 60%, #eef2f6); color: var(--night);
  border-radius: 22px; transform: rotate(-1.2deg);
  box-shadow: 0 40px 70px rgba(0, 8, 20, .45);
}
.letter__hello { margin: 0 0 20px; font: italic 400 clamp(34px, 8vw, 46px)/1 var(--f-serif); color: var(--blue); }
.letter p { max-width: 40ch; margin: 0 0 1em; font: 400 clamp(20px, 5vw, 24px)/1.4 var(--f-serif); }
.letter__sign { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(13, 76, 131, .15); font: italic 400 22px/1 var(--f-serif); color: var(--blue); }
.letter__sign svg { width: 22px; height: 26px; }

.frames { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frame {
  position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--blue), var(--deep) 70%);
  box-shadow: 0 24px 40px rgba(0, 8, 20, .45);
}
.frame:nth-child(1) { transform: rotate(-4deg) translateY(10px); }
.frame:nth-child(2) { transform: rotate(2deg); z-index: 1; }
.frame:nth-child(3) { transform: rotate(-1.5deg) translateY(16px); }
.frame:nth-child(3) { grid-column: 1 / -1; width: 78%; justify-self: center; aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img.is-missing { display: none; }
.frame svg { position: absolute; left: 50%; top: 50%; width: 26%; transform: translate(-50%, -58%); color: rgba(255, 255, 255, .22); }
.frame img:not(.is-missing) ~ svg { display: none; }
.frame figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 2; font: 600 12px/1.2 var(--f-sans); color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* =========================================================
   THE NIGHT — programme + party photo
   ========================================================= */
.night { padding: 40px var(--gutter) 120px; background: var(--night); }
.night__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 1180px; margin: 0 auto; align-items: center; }
.night__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; transform: rotate(-1.5deg); box-shadow: 0 40px 70px rgba(0, 8, 20, .5); }
.night__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.night__photo figcaption { position: absolute; left: 16px; bottom: 14px; font: 700 12px/1 var(--f-label); text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.night__bracket { margin: 0 0 22px; font: 700 14px/1 var(--f-label); text-transform: uppercase; color: var(--orange); }
.night__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.night__list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.night__n { grid-row: 1 / 3; padding-top: .35em; font: 700 13px/1 var(--f-label); color: var(--orange); }
.night__item { font: 700 clamp(28px, 7vw, 52px)/1.02 var(--f-label); text-transform: uppercase; }
.night__note { margin-top: 8px; font: italic 400 20px/1.3 var(--f-serif); color: var(--muted); }
@media (min-width: 1000px) {
  .night__inner { grid-template-columns: .82fr 1.18fr; gap: 80px; }
}

/* =========================================================
   DETAILS
   ========================================================= */
.details { padding: 110px var(--gutter) 130px; background: linear-gradient(180deg, var(--night), var(--deep)); }
.details__inner { max-width: 1180px; margin: 0 auto; }
.details__title { margin: 0 0 28px; font: 700 clamp(22px, 5vw, 30px)/1 var(--f-label); text-transform: uppercase; }
.details__when { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 0; padding-bottom: 20px; background: linear-gradient(90deg, var(--hair) 50%, transparent 0) 0 100% / 12px 2px repeat-x; font: 600 15px/1.3 var(--f-sans); color: var(--muted); }
.details__when strong { color: var(--white); font-weight: 600; }
[data-countdown] { font-variant-numeric: tabular-nums; }
.details__grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.details__cell { padding: 26px 0 30px; border-bottom: 1px solid var(--hair); }
.details__label { margin: 0 0 18px; font: 600 15px/1.2 var(--f-sans); color: var(--muted); }
.details dd { margin: 0; }
.details__big { display: block; margin-top: -.2em !important; font: 400 clamp(130px, 62vw, 250px)/.9 var(--f-display); white-space: nowrap; }
.details__big--orange { color: var(--orange); }
.details dd.details__until { margin: 16px 0 0; font: 700 16px/1 var(--f-label); text-transform: uppercase; color: var(--muted); }
.slash { display: inline-block; width: .045em; height: .62em; margin: 0 .1em; background: var(--orange); transform: skewX(-16deg); vertical-align: baseline; }
.details__place { margin: 0; font: 700 clamp(26px, 7vw, 40px)/1.02 var(--f-label); text-transform: uppercase; }
.details__address { margin: 14px 0 0; font: 400 21px/1.4 var(--f-serif); color: var(--muted); }
.details__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { padding: 120px var(--gutter) 110px; background: var(--orange); color: var(--night); overflow: hidden; }
.rsvp__inner { max-width: 1180px; margin: 0 auto; }
.rsvp__title { margin: 0; font: 700 clamp(56px, 9vw, 128px)/.98 var(--f-label); text-transform: uppercase; color: var(--night); }
.rsvp__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 44px; align-items: end; }
.rsvp__text { margin: 0; max-width: 24ch; font: 400 clamp(26px, 6.6vw, 40px)/1.12 var(--f-serif); }
.rsvp__text em { font-style: italic; }
.rsvp__for { margin: 14px 0 0; font: 600 15px/1.3 var(--f-sans); opacity: .75; }
.rsvp .btn { min-height: 64px; padding: 0 44px; font-size: 16px; }

/* ---------- Footer ---------- */

/* ---------- Toast ---------- */
.toast {
  visibility: hidden;
  position: fixed; left: 50%; bottom: 22px; z-index: 50; width: min(92vw, 460px);
  padding: 14px 18px; border-radius: 14px;
  background: var(--white); color: var(--night);
  font: 600 14px/1.4 var(--f-sans); box-shadow: 0 20px 40px rgba(0, 8, 20, .4);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .5s var(--ease-out), visibility 0s .5s;
}
.toast.is-on { visibility: visible; transform: translate(-50%, 0); transition: transform .5s var(--ease-out); }
.toast code { font: inherit; color: var(--blue); }

/* =========================================================
   LOAD SEQUENCE (the one orchestrated moment)
   ========================================================= */
.js .hero .stack__line .fit__in { transform: translateY(105%); }
.js .hero .stack__bracket, .js .hero__lede, .js .hero__actions, .js .hero__top { opacity: 0; }
.js .hero__pass .swing { transform: translateY(-120%) rotate(-10deg); }
.is-ready .hero .stack__line .fit__in { transform: none; transition: transform 1.1s var(--ease-out); }
.is-ready .hero .stack__line--orange .fit__in { transition-delay: .09s; }
.is-ready .hero .stack__bracket, .is-ready .hero__lede, .is-ready .hero__actions, .is-ready .hero__top { opacity: 1; transition: opacity .8s ease .45s; }
.is-ready .hero__pass .swing { transform: rotate(var(--rest)); animation: drop 1.9s var(--ease-out) .25s backwards; }
@keyframes drop {
  0% { transform: translateY(-120%) rotate(-10deg); }
  45% { transform: translateY(0) rotate(5deg); }
  68% { transform: rotate(-2.4deg); }
  85% { transform: rotate(calc(var(--rest) + 1deg)); }
  100% { transform: rotate(var(--rest)); }
}
.tilt { transition: transform .9s var(--ease-out); }

/* =========================================================
   ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .hero__top .lockup { width: 180px; }
  .hero__copy { --stack-w: min(520px, 100%); }
  .hero__pass { font-size: 11px; }
  .letter { padding: 56px 52px 44px; }
  .details__grid { grid-template-columns: auto 1fr; column-gap: 48px; }
  .details__cell--place { grid-column: 1 / -1; }
}

/* =========================================================
   ≥ 1000px — asymmetric two-column hero, like the posters
   ========================================================= */
@media (min-width: 1000px) {
  body { font-size: 18px; }
  .hero { padding-bottom: 100px; }
  .hero__top .lockup { width: 200px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-top: max(24px, 5svh); }
  .hero__copy { --stack-w: clamp(340px, min(40vw, calc((100svh - 330px) * .6)), 520px); }
  .hero__lede { font-size: 32px; }
  .hero__pass .strap { -webkit-mask: none; mask: none; }
  .hero__pass { --strap-h: 40em; padding: 3.6em 1vw 0 0; font-size: clamp(9.5px, calc(.55vw + 2.4px), 13px); }
}

/* ≥ 1200px — three beats: headline / words + button / the pass */
@media (min-width: 1200px) {
  .hero__copy { --stack-w: clamp(380px, min(35vw, calc((100svh - 240px) * .78)), 580px); display: grid; grid-template-columns: var(--stack-w) minmax(220px, 290px); grid-template-rows: 1fr auto; column-gap: clamp(32px, 3.4vw, 56px); }
  .stack { grid-row: 1 / 3; }
  .hero__lede { grid-column: 2; align-self: end; margin: 0; font-size: clamp(28px, 2.2vw, 34px); }
  .hero__actions { grid-column: 2; margin-top: 26px; }
  .hero__pass { padding-top: 2em; margin-right: 3vw; }
  .story { padding-top: 190px; }
  .letter-wrap { grid-template-columns: 1.15fr 1fr; gap: 72px; margin-top: 160px; }
  .frames { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .frame:nth-child(3) { grid-column: 1 / -1; width: 62%; justify-self: center; aspect-ratio: 4 / 3; }
  .details__grid { grid-template-columns: auto auto minmax(300px, 1fr); column-gap: 0; }
  .details__cell { padding: 30px 48px 10px; border-bottom: 0; }
  .details__cell:first-child { padding-left: 0; }
  .details__cell + .details__cell { border-left: 1px solid var(--hair); }
  .details__cell--place { grid-column: auto; padding-right: 0; }
  .details__big { font-size: clamp(170px, 17vw, 250px); }
  .rsvp__inner { display: grid; grid-template-columns: min(62%, 780px) 1fr; column-gap: clamp(32px, 4vw, 64px); align-items: end; }
  .rsvp__row { margin-top: 0; }
  .rsvp__text { font-size: clamp(28px, 2.4vw, 38px); }
  .letter p { font-size: 26px; }
}


/* =========================================================
   RSVP FLOW — fireworks, form, personal pass
   ========================================================= */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

.dlg {
  position: fixed; inset: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(13, 76, 131, .9), transparent 62%),
    linear-gradient(180deg, var(--deep), var(--night));
  color: var(--white);
}
.dlg::backdrop { background: rgba(0, 20, 38, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg[open] { animation: dlg-in .6s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dlg__close {
  position: absolute; top: 14px; right: 14px; z-index: 7;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer;
}
.dlg__close:hover { background: rgba(255, 255, 255, .16); }
.dlg__close svg { width: 22px; height: 22px; }

.dlg__step { position: relative; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 72px 22px 36px; }
.dlg__bracket { margin: 0 0 14px; font: 700 14px/1 var(--f-label); text-transform: uppercase; color: var(--orange); }
.dlg__title { max-width: 12ch; margin: 0; font: 700 clamp(34px, 9vw, 52px)/1.02 var(--f-label); text-transform: uppercase; }
.dlg__lede { max-width: 30ch; margin: 18px 0 0; font: 400 22px/1.3 var(--f-serif); color: var(--muted); }
.dlg__how { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: how; }
.dlg__how li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; font: 300 16px/1.4 var(--f-sans); color: var(--white); }
.dlg__how li::before { content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 146, 0, .16); color: var(--orange); font: 700 13px/1 var(--f-label); }
.dlg__status { margin: 18px 0 0; font: 600 14px/1.4 var(--f-sans); color: var(--muted); }
.dlg__status.is-warn { color: #FFC06B; }
.dlg__step--single { grid-template-columns: minmax(0, 1fr) !important; }
.spots { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font: 700 13px/1.2 var(--f-label); text-transform: uppercase; color: var(--orange); }
.spots::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 146, 0, .22); }
.spots--dark { color: var(--night); }
.spots--dark::before { box-shadow: 0 0 0 4px rgba(0, 30, 54, .15); }
.btn.is-closed { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 899px) {
  /* keep "Share to Stories" under the thumb while the pass is on screen */
  .dlg__step[data-step="pass"] .dlg__actions {
    position: sticky; bottom: 0; z-index: 8;
    margin: 18px -22px 0; padding: 22px 22px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0, 30, 54, 0), var(--night) 38%);
  }
  .dlg__step[data-step="pass"] .dlg__actions .btn { flex: 1 1 100%; }
}

.dlg__form { display: grid; gap: 10px; align-content: start; }
.field { display: grid; gap: 8px; margin-top: 8px; }
.field__label { font: 600 15px/1.2 var(--f-sans); color: var(--muted); }
.field__input {
  width: 100%; min-height: 58px; padding: 0 18px;
  border: 1.5px solid var(--hair); border-radius: 14px;
  background: rgba(255, 255, 255, .06); color: var(--white);
  font: 300 20px/1.2 var(--f-sans); outline: none;
  transition: border-color .2s, background-color .2s;
}
.field__input::placeholder { color: rgba(255, 255, 255, .4); }
.field__input:focus { border-color: var(--orange); background: rgba(255, 255, 255, .09); }
.field__input[aria-invalid="true"], .drop[aria-invalid="true"] { border-color: #FFB25C; }
.field__error { margin: 0; font: 600 14px/1.3 var(--f-sans); color: #FFC06B; }

.drop {
  position: relative;
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1.5px dashed var(--hair); border-radius: 16px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-drag { border-color: var(--white); background: rgba(255, 255, 255, .05); }
.drop.is-drag { border-color: var(--orange); }
.drop:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.drop__preview { position: relative; flex: none; display: grid; place-items: center; width: 78px; height: 78px; overflow: hidden; border-radius: 14px; background: var(--blue); color: rgba(255, 255, 255, .35); }
.drop__preview svg { width: 34px; height: 38px; }
.drop__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop__text { display: grid; gap: 4px; font: 300 15px/1.35 var(--f-sans); color: var(--muted); }
.drop__text strong { font: 700 14px/1.2 var(--f-label); text-transform: uppercase; color: var(--white); }

.dlg__submit { width: 100%; min-height: 62px; margin-top: 18px; font-size: 16px; }
.dlg__submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.dlg__note { margin: 6px 0 0; font: 600 13px/1.4 var(--f-sans); color: rgba(255, 255, 255, .55); }

.dlg__badge { display: grid; place-items: center; }
.dlg__badge img { --rest: 0deg; width: auto; max-width: 100%; height: auto; max-height: 58svh; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 8, 20, .5); transform-origin: 50% -20%; }
.dlg__badge img.is-in { animation: drop 1.5s var(--ease-out) both; }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dlg__link { margin-top: 18px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 600 15px/1.2 var(--f-sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dlg__link:hover { color: var(--white); }

@media (min-width: 900px) {
  .dlg { width: min(1040px, calc(100% - 48px)); height: fit-content; max-height: calc(100% - 48px); margin: auto; border-radius: 28px; box-shadow: 0 40px 100px rgba(0, 8, 20, .6); }
  .dlg__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 64px 56px 52px; align-items: center; }
  .dlg__step[data-step="form"] { align-items: start; }
  .dlg__lede { font-size: 24px; }
  .dlg__badge img { max-height: min(76svh, 720px); }
}
@media (prefers-reduced-motion: reduce) {
  .dlg[open], .dlg__badge img.is-in { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__track { animation: none; }
  .js .hero .stack__line .fit__in, .js .hero__pass .swing { transform: none; }
  .is-ready .hero__pass .swing { animation: none; }
  .js .hero .stack__bracket, .js .hero__lede, .js .hero__actions, .js .hero__top { opacity: 1; }
  .story__line { --p: 1 !important; }
  .tilt { transition: none; }
}
