/* JFC Family Fun Day invitation. Brand tokens match the JFC website (jfc-ghana.netlify.app):
   ink black, JFC yellow, cream; League Gothic for display type, Inter for everything else. */
:root {
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1d1d1d;
  --grey-1: #616161;
  --grey-2: #a1a1a1;
  --line: #e7e5df;
  --surface: #f4f2ec;
  --yellow: #ffd000;
  --yellow-2: #ffd943;
  --yellow-3: #f2c200;
  --lemon: #fff05e;
  --cream: #fefaeb;
  --cream-2: #fef3c6;
  --cream-text: #fdfae4;
  --paper: #fffdf4;
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1.25rem;
  --radius-sm: .875rem;
  --shell: 72rem;
  --gutter: 1.25rem;
  --bar-h: 4.25rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 2rem; } .envelope { --w: min(70vw, 30rem, 84vh) !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); }
html.is-locked, html.is-locked body { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.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; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .88; letter-spacing: .005em; }
.h-section { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: clamp(2.9rem, 6vw, 4.75rem); }
.is-yellow { color: var(--yellow); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-1); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--yellow); }
.eyebrow--light { color: rgba(253, 250, 228, .75); }
.chip { display: inline-flex; align-items: center; gap: .45rem; border-radius: 9999px; padding: .45rem .95rem; font-size: .8125rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.chip--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons (same family as the website) ---------- */
.btn { --b-bg: var(--ink); --b-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.5rem; border: 0; border-radius: 9999px; background: var(--b-bg); color: var(--b-fg); font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .45s var(--ease-snap), background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 1.1rem; height: 1.1rem; }
.btn--arrow { padding: .4rem .4rem .4rem 1.5rem; }
.btn__badge { width: 2.45rem; height: 2.45rem; border-radius: 9999px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); transition: transform .45s var(--ease-snap); }
.btn--arrow:hover .btn__badge { transform: translateX(3px); }
.btn--yellow { --b-bg: var(--yellow); --b-fg: var(--ink); box-shadow: 0 10px 30px -12px rgba(255, 208, 0, .55); }
.btn--yellow:hover { --b-bg: var(--yellow-2); }
.btn--dark { --b-bg: var(--ink); --b-fg: #fff; }
.btn--dark .btn__badge { background: var(--yellow); color: var(--ink); }
.btn--ghost { --b-bg: rgba(255, 255, 255, .08); --b-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--ghost:hover { --b-bg: rgba(255, 255, 255, .16); }
.btn--outline { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { --b-bg: var(--ink); --b-fg: #fff; }
.btn--light { --b-bg: rgba(255, 255, 255, .1); --b-fg: var(--cream-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn--light:hover { --b-bg: rgba(255, 255, 255, .18); }
.btn--light .icon { color: var(--yellow); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.15rem; font-size: .875rem; }
.linkbtn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .2rem; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(253, 250, 228, .35); }
.linkbtn:hover { text-decoration-color: var(--yellow); }

/* ---------- Confetti canvas ---------- */
.confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; }

/* ---------- 1. The gate (envelope) ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding: max(1.25rem, env(safe-area-inset-top)) var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); overflow: hidden; background: var(--ink); color: var(--cream-text); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility 0s linear .9s; }
.gate.is-leaving { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }
.gate__bg { position: absolute; inset: 0; z-index: -1; }
.gate__bg picture, .closing__bg picture { width: 100%; height: 100%; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .55; transform: scale(1.12); animation: gatezoom 16s var(--ease-out) forwards; }
.gate__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 75% at 50% 45%, rgba(11, 11, 11, .2) 0%, rgba(11, 11, 11, .78) 62%, rgba(11, 11, 11, .96) 100%), var(--grain); background-size: auto, 160px; mix-blend-mode: normal; }
@keyframes gatezoom { to { transform: scale(1); } }
.gate__top { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.gate__top img { width: 2.1rem; height: auto; }
.gate__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; perspective: 1400px; }
.gate__eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.gate__hint { display: inline-flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 600; color: rgba(253, 250, 228, .78); }
.gate__pulse { position: relative; width: .7rem; height: .7rem; border-radius: 50%; background: var(--yellow); }
.gate__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--yellow); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* the envelope: back, letter, pocket, flap and wax seal, all one button */
.envelope { --w: min(82vw, 25rem, 86vh); position: relative; display: block; width: var(--w); aspect-ratio: 7 / 5; padding: 0; border: 0; border-radius: 10px; background: none; transform-style: preserve-3d; animation: floaty 4.5s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.envelope:focus-visible { outline-offset: 10px; border-radius: 14px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.envelope > span { position: absolute; inset: 0; border-radius: 10px; }
.envelope__back { background: linear-gradient(180deg, #d9ad00, #e9bb00); box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .25); }
.envelope__letter { z-index: 2; inset: 6% 7% 8% 7% !important; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35rem; padding: 1.1rem .8rem; border-radius: 8px !important; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 10px 30px -10px rgba(0, 0, 0, .45); transition: transform 1s var(--ease-out); }
.envelope__letter img { width: 2.2rem; height: auto; }
.envelope__letter-kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-1); }
.envelope__letter-title { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.6rem); line-height: .86; text-transform: uppercase; }
.envelope__letter-title em { font-style: normal; background: var(--yellow); padding: 0 .18em; }
.envelope__letter-date { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.envelope__pocket { z-index: 3; filter: drop-shadow(0 -3px 4px rgba(0, 0, 0, .22)); }
.envelope__pocket::before, .envelope__pocket::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.envelope__pocket::before { background: linear-gradient(135deg, #f7c600 0%, #ffd000 45%, #efbf00 100%); clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%); }
.envelope__pocket::after { background: linear-gradient(180deg, #ffd51f, #ffcc00); clip-path: polygon(0 100%, 50% 47%, 100% 100%); }
.envelope__to { z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .1rem; padding: 0 12% 7%; color: var(--ink); text-align: center; pointer-events: none; }
.envelope__to small { font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.envelope__to b { max-width: 100%; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 6.4vw, 1.9rem); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.envelope__flap { z-index: 5; height: 52%; bottom: auto !important; border-radius: 10px 10px 0 0 !important; background: linear-gradient(180deg, #ffd000, #f5c400); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .75s var(--ease-out); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .2)); backface-visibility: visible; }
.envelope__seal { z-index: 6; inset: auto !important; left: 50% !important; top: 52% !important; width: 3.5rem; height: 3.5rem; border-radius: 50% !important; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2a2a2a, #0b0b0b 70%); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .7), inset 0 0 0 3px rgba(255, 208, 0, .35); transform: translate(-50%, -50%); transition: transform .35s var(--ease-back), opacity .3s ease; }
.envelope__seal img { width: 1.75rem; height: auto; }
.envelope:hover .envelope__seal { transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); }
/* opening sequence (classes added by invite.js) */
.envelope.is-open { animation: none; transform: translateY(18%) scale(.98); transition: transform 1s var(--ease-out); }
.envelope.is-open .envelope__seal { transform: translate(-50%, -50%) scale(1.25) rotate(-25deg); opacity: 0; }
.envelope.is-open .envelope__flap { transform: rotateX(180deg); }
.envelope.is-flipped .envelope__flap { z-index: 1; }
.envelope.is-rising .envelope__letter { transform: translateY(-62%) rotate(-1.5deg); z-index: 2; }
.envelope.is-open + .gate__hint, .gate.is-opening .gate__hint { opacity: 0; transition: opacity .3s ease; }

/* ---------- Top bar ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--bar-h); padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); color: var(--cream-text); transition: background-color .35s ease, box-shadow .35s ease; }
.bar.is-solid { background: rgba(11, 11, 11, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 2.1rem; height: auto; }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 1.45rem; line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.brand__name small { font-family: var(--font-sans); font-size: .5625rem; font-weight: 600; letter-spacing: .16em; opacity: .7; margin-top: .25rem; white-space: nowrap; }
@media (max-width: 359px) { .brand__name small { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--bar-h) + 2rem) 0 4.5rem; background: radial-gradient(90% 60% at 85% 20%, rgba(255, 208, 0, .14), transparent 60%), var(--ink); color: var(--cream-text); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 160px; opacity: .06; pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: 3rem; width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.hero__dear { font-size: 1.125rem; font-weight: 600; color: var(--yellow); overflow-wrap: anywhere; }
.hero__title { font-size: clamp(4.4rem, 19vw, 9.5rem); color: var(--cream-text); }
.hero__title span { display: block; }
.hero__sub { max-width: 30rem; font-size: 1.0625rem; color: rgba(253, 250, 228, .8); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.hero__proof { display: inline-flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 600; color: rgba(253, 250, 228, .85); }
.hero__proof::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.hero__collage { position: relative; height: clamp(17rem, 78vw, 24rem); max-width: 30rem; width: 100%; margin-inline: auto; }
.pol { position: absolute; width: 50%; padding: .5rem .5rem 2.1rem; background: #fff; border-radius: 6px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); color: var(--ink); }
.pol img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: .45rem; text-align: center; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.pol--1 { left: 0; top: 8%; transform: rotate(-7deg); z-index: 1; }
.pol--2 { left: 25%; top: 0; transform: rotate(3deg); z-index: 3; }
.pol--3 { right: 0; top: 14%; transform: rotate(9deg); z-index: 2; }
@media (min-width: 960px) {
  .hero { padding: calc(var(--bar-h) + 3.5rem) 0 6rem; min-height: min(100svh, 56rem); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
  .hero__collage { height: 30rem; max-width: none; }
  .pol { width: 15.5rem; }
  .pol--1 { left: 0; top: 14%; }
  .pol--2 { left: 32%; top: 0; }
  .pol--3 { left: auto; right: 0; top: 30%; }
}
/* entrance once the envelope is opened */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.js .pol { opacity: 0; translate: 0 60px; transition: opacity .8s var(--ease-out), translate 1s var(--ease-back); }
body.is-open .reveal, body.is-open .pol { opacity: 1; transform: none; translate: 0 0; }
body.is-open .hero__text > :nth-child(1) { transition-delay: .1s; }
body.is-open .hero__text > :nth-child(2) { transition-delay: .2s; }
body.is-open .hero__title .reveal:nth-child(1) { transition-delay: .28s; }
body.is-open .hero__title .reveal:nth-child(2) { transition-delay: .38s; }
body.is-open .hero__text > :nth-child(4) { transition-delay: .5s; }
body.is-open .hero__text > :nth-child(5) { transition-delay: .6s; }
body.is-open .pol--1 { transition-delay: .45s; }
body.is-open .pol--2 { transition-delay: .6s; }
body.is-open .pol--3 { transition-delay: .75s; }

/* ---------- Details: ticket + countdown ---------- */
.details { padding: 4rem 0 4.5rem; background: var(--cream); }
.ticket { display: grid; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -30px rgba(0, 0, 0, .35); overflow: hidden; }
.ticket__cell { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1.35rem 1.35rem; }
.ticket__cell + .ticket__cell { border-top: 2px dashed var(--line); }
.ticket__cell small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-1); }
.ticket__cell b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1; text-transform: uppercase; margin-top: .3rem; }
.ticket__icon { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); }
.ticket__icon .icon { width: 1.3rem; height: 1.3rem; }
.ticket__link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11, 11, 11, .3); }
.ticket__link:hover { text-decoration-color: var(--ink); }
.ticket__link .icon { width: .95rem; height: .95rem; }
@media (min-width: 860px) {
  .ticket { grid-template-columns: 1fr .8fr 1.2fr; }
  .ticket__cell { padding: 1.6rem 1.75rem; }
  .ticket__cell + .ticket__cell { border-top: 0; border-left: 2px dashed var(--line); }
}
.countdown { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.4rem 1.35rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--cream-text); }
.countdown__label { font-family: var(--font-display); font-size: 2.1rem; line-height: .9; text-transform: uppercase; }
.countdown__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; flex: 1 1 18rem; max-width: 28rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .65rem .25rem .55rem; border-radius: var(--radius-sm); background: var(--ink-3); }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3rem); line-height: .9; color: var(--yellow); font-variant-numeric: tabular-nums; }
.tile small { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(253, 250, 228, .6); }
.countdown.is-done .countdown__tiles { display: none; }
.cal-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---------- What's on ---------- */
.lineup { padding: 4.5rem 0; background: #fff; }
.lineup .h-section { margin-bottom: 2rem; }
.acts { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .act:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .acts { grid-template-columns: repeat(5, minmax(0, 1fr)); } .act:last-child { grid-column: auto; } }
.act { position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 11.5rem; padding: 1.35rem; border-radius: var(--radius-md); background: var(--surface); transition: background-color .3s ease, transform .45s var(--ease-snap); }
.act:hover { background: var(--cream-2); transform: translateY(-3px); }
.act__num { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--font-display); font-size: 1.5rem; color: rgba(11, 11, 11, .25); }
.act__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--yellow); margin-bottom: .5rem; }
.act__icon .icon { width: 1.35rem; height: 1.35rem; }
.act b { font-size: 1.0625rem; line-height: 1.3; }
.act > span:last-child { font-size: .9375rem; color: var(--grey-1); }

/* ---------- Photo marquee ---------- */
.moments { padding: 3.5rem 0; background: var(--ink); overflow: hidden; display: grid; gap: .75rem; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-s, 70s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track li { flex: none; padding-right: .75rem; }
.marquee__track img { height: clamp(9rem, 22vw, 14rem); width: auto; border-radius: var(--radius-sm); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Closing CTA ---------- */
.closing { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(88svh, 46rem); padding: 6rem 0 4rem; color: var(--cream-text); overflow: hidden; }
.closing__bg { position: absolute; inset: 0; z-index: -1; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.closing__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, .35) 0%, rgba(11, 11, 11, .55) 40%, rgba(11, 11, 11, .94) 100%); }
.closing__inner { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.closing__title { font-size: clamp(3.8rem, 14vw, 8rem); }
.closing__text { max-width: 30rem; font-size: 1.0625rem; color: rgba(253, 250, 228, .82); }

/* ---------- Footer / contacts ---------- */
.foot { padding: 3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream-text); border-top: 1px solid rgba(255, 255, 255, .06); }
.foot__inner { display: grid; gap: 1.75rem; }
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand img { width: 2.75rem; height: auto; }
.foot__brand p { display: flex; flex-direction: column; }
.foot__brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.foot__brand span { color: rgba(253, 250, 228, .7); }
.foot__contacts { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact { display: inline-flex; align-items: center; gap: .75rem; min-height: 3.4rem; padding: .55rem 1.15rem .55rem .6rem; border-radius: 9999px; background: rgba(255, 255, 255, .07); color: var(--cream-text); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .25s ease, transform .45s var(--ease-snap); max-width: 100%; }
.contact:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.contact .icon { width: 2.3rem; height: 2.3rem; padding: .55rem; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.contact span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .9375rem; line-height: 1.25; overflow-wrap: anywhere; }
.contact small { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(253, 250, 228, .6); }
.foot__fine { font-size: .8125rem; color: rgba(253, 250, 228, .55); }
.foot__fine a { color: rgba(253, 250, 228, .8); }

/* ---------- 3. RSVP chat ---------- */
.chat { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 60; display: flex; justify-content: center; align-items: stretch; background: rgba(11, 11, 11, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease; }
.chat.is-in { opacity: 1; }
.chat__panel { display: flex; flex-direction: column; width: 100%; max-width: 30rem; height: 100%; background: var(--cream); transform: translateY(24px); transition: transform .45s var(--ease-out); overflow: hidden; }
.chat.is-in .chat__panel { transform: none; }
@media (min-width: 640px) {
  .chat { align-items: center; padding: 1.5rem; }
  .chat__panel { height: min(100%, 50rem); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
}
.chat__head { position: relative; display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; padding-top: max(.8rem, env(safe-area-inset-top)); background: var(--ink); color: var(--cream-text); }
@media (min-width: 640px) { .chat__head { padding-top: .8rem; } }
.chat__avatar { width: 2.75rem; height: 2.75rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); box-shadow: inset 0 0 0 2px var(--yellow); }
.chat__avatar img { width: 1.55rem; height: auto; }
.chat__who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.chat__who b { font-size: 1rem; }
.chat__who small { font-size: .8125rem; color: rgba(253, 250, 228, .65); }
.chat__close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s ease; }
.chat__close:hover { background: rgba(255, 255, 255, .18); }
.chat__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.chat__progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .5s var(--ease-out); }
.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1rem 1rem; }
.chat__log::before { content: ""; flex: 1; }
.msg { flex: none; max-width: 86%; padding: .7rem .95rem; border-radius: 1.15rem; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; animation: msgin .35s var(--ease-out) both; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: .35rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.msg--me { align-self: flex-end; background: var(--yellow); border-bottom-right-radius: .35rem; font-weight: 600; }
.msg--typing { display: inline-flex; gap: .3rem; padding: .95rem 1rem; }
.msg--typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--grey-2); animation: dots 1.1s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--card { width: 86%; padding: 0; overflow: hidden; }
.sum { display: grid; }
.sum div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .6rem .95rem; border-top: 1px solid var(--line); font-size: .875rem; }
.sum div:first-child { border-top: 0; }
.sum dt { color: var(--grey-1); font-weight: 600; }
.sum dd { font-weight: 600; overflow-wrap: anywhere; }
.sum__head { display: flex; align-items: center; gap: .6rem; padding: .75rem .95rem; background: var(--ink); color: var(--cream-text); font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.sum__head img { width: 1.4rem; height: auto; }
.sum__note { padding: .65rem .95rem .8rem; font-size: .75rem; color: var(--grey-1); background: var(--surface); }
.chat__dock { border-top: 1px solid var(--line); background: #fff; padding: .85rem 1rem; padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .chat__dock { padding-bottom: .85rem; } }
.chat__dock:empty { display: none; }
.dock__form { display: flex; align-items: flex-end; gap: .6rem; }
.dock__field { flex: 1; min-width: 0; min-height: 3.1rem; max-height: 8rem; padding: .75rem 1.1rem; border: 1.5px solid var(--line); border-radius: 1.55rem; background: var(--surface); font-size: 1rem; line-height: 1.4; resize: none; transition: border-color .2s ease, background-color .2s ease; }
.dock__field:focus { outline: none; border-color: var(--ink); background: #fff; }
.dock__field[aria-invalid="true"] { border-color: #c2410c; }
.dock__send { width: 3.1rem; height: 3.1rem; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--yellow); transition: transform .3s var(--ease-snap); }
.dock__send:hover { transform: scale(1.06); }
.dock__send .icon { width: 1.35rem; height: 1.35rem; }
.dock__err { margin-top: .45rem; font-size: .8125rem; font-weight: 600; color: #c2410c; }
.dock__err:empty { display: none; }
.dock__top { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: .65rem 1.15rem; border: 1.5px solid var(--ink); border-radius: 9999px; background: #fff; font-size: .9375rem; font-weight: 600; line-height: 1.2; text-align: left; text-decoration: none; transition: background-color .2s ease, transform .3s var(--ease-snap); animation: msgin .35s var(--ease-out) both; }
.opt:hover { background: var(--cream-2); transform: translateY(-1px); }
.opt--primary { background: var(--yellow); border-color: var(--yellow); }
.opt--primary:hover { background: var(--yellow-2); }
.opt--quiet { min-height: 2.4rem; padding: .4rem .95rem; border-color: var(--line); font-size: .875rem; color: var(--grey-1); }
.opt .icon { width: 1.05rem; height: 1.05rem; }
.stepper { display: grid; gap: .8rem; }
.stepper__row { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.stepper__btn { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; transition: background-color .2s ease, transform .3s var(--ease-snap); }
.stepper__btn:hover:not(:disabled) { background: var(--cream-2); }
.stepper__btn:active:not(:disabled) { transform: scale(.94); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__btn .icon { width: 1.3rem; height: 1.3rem; }
.stepper__val { min-width: 4.5rem; text-align: center; font-family: var(--font-display); font-size: 3.6rem; line-height: .9; font-variant-numeric: tabular-nums; }
.stepper__val.is-bump { animation: bump .3s var(--ease-back); }
@keyframes bump { 50% { transform: scale(1.18); } }
.stepper__cap { text-align: center; font-size: .875rem; font-weight: 600; color: var(--grey-1); min-height: 1.3em; }
.stepper .btn { width: 100%; }

/* ---------- 4. The pass ---------- */
.passview { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(80% 50% at 50% 0%, rgba(255, 208, 0, .2), transparent 70%), var(--ink); color: var(--cream-text); opacity: 0; transition: opacity .35s ease; }
.passview.is-in { opacity: 1; }
.passview::before { content: ""; position: fixed; inset: 0; background: var(--grain); background-size: 160px; opacity: .05; pointer-events: none; }
.passview__scroll { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 30rem; margin: 0 auto; padding: calc(4rem + env(safe-area-inset-top)) var(--gutter) calc(3rem + env(safe-area-inset-bottom)); text-align: center; }
.passview__close { position: absolute; top: calc(1rem + env(safe-area-inset-top)); right: var(--gutter); width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.passview__close:hover { background: rgba(255, 255, 255, .2); }
.passview__title { font-size: clamp(3.2rem, 15vw, 4.6rem); color: var(--yellow); }
.passview__lead { font-size: 1.0625rem; color: rgba(253, 250, 228, .82); max-width: 24rem; }
.pass { width: 100%; margin: .75rem 0 .5rem; border-radius: 1.25rem; background: var(--paper); color: var(--ink); text-align: left; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); transform-origin: 50% 80%; }
.passview.is-in .pass { animation: passin 1s var(--ease-back) .15s both; }
@keyframes passin { from { opacity: 0; transform: translateY(60px) rotate(-6deg) scale(.92); } to { opacity: 1; transform: rotate(-1.2deg); } }
.pass__top { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: var(--yellow); }
.pass__top img { width: 2.5rem; height: auto; }
.pass__event { flex: 1; font-family: var(--font-display); font-size: 1.75rem; line-height: .88; text-transform: uppercase; }
.pass__admit { display: flex; flex-direction: column; align-items: center; padding: .35rem .8rem .3rem; border-radius: .75rem; background: var(--ink); color: var(--yellow); }
.pass__admit small { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-text); }
.pass__admit b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: .9; }
.pass__body { padding: 1.15rem 1.15rem 1rem; }
.pass__name { font-family: var(--font-display); font-size: 2.35rem; line-height: .92; text-transform: uppercase; overflow-wrap: anywhere; }
.pass__party { margin-top: .4rem; font-size: .9375rem; font-weight: 600; color: var(--grey-1); }
.pass__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin-top: 1rem; }
.pass__facts dt { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-1); }
.pass__facts dd { font-weight: 700; font-size: .9375rem; }
.pass__wide { grid-column: 1 / -1; }
.pass__stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem 1.1rem; border-top: 2px dashed var(--line); }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; top: -.75rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); }
.pass__stub::before { left: -.75rem; }
.pass__stub::after { right: -.75rem; }
.pass__bars { flex: 1; max-width: 11rem; height: 2.6rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); opacity: .9; }
.pass__ref { display: flex; flex-direction: column; align-items: flex-end; }
.pass__ref small { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-1); }
.pass__ref b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: .03em; }
.passview__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; }
.passview__actions > :first-child { grid-column: 1 / -1; }
.passview__actions > :last-child:nth-child(even) { grid-column: 1 / -1; }
.passview__actions .btn { width: 100%; white-space: normal; }
.passview__help { display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 100%; margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9375rem; color: rgba(253, 250, 228, .8); }
.passview__contacts { display: grid; gap: .6rem; width: 100%; }
.passview__contacts .contact { width: 100%; text-align: left; }
.passview.is-declined .pass, .passview.is-declined #save-pass { display: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .envelope { animation: none; }
}
