/* =========================================================
   Fajr turns four — birthday invitation
   Mobile-first. Palette taken from the illustrated invite:
   royal maroon, antique gold, warm cream.
   ========================================================= */

:root {
  --maroon-950: #24050c;
  --maroon-900: #3b0915;
  --maroon-800: #560e1f;
  --maroon-700: #741528;
  --maroon-600: #931f35;
  --maroon-500: #b13447;
  --gold-700: #8a6620;
  --gold-600: #a8822f;
  --gold-500: #c9a14a;
  --gold-400: #dcbb6c;
  --gold-300: #ecd59c;
  --gold-200: #f6e8c3;
  --cream-50: #fffaf2;
  --cream-100: #fbf2e3;
  --cream-200: #f4e4ca;
  --cream-300: #ead3ad;
  --ink: #2b0a12;
  --ink-2: #5e3a40;

  --gold-grad: linear-gradient(120deg, #f7e7b0 0%, #d9b45e 30%, #a8822f 52%, #e8cd85 74%, #c9a14a 100%);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;
  --f-arabic: "Aref Ruqaa", "Amiri", "Traditional Arabic", serif;

  --gutter: clamp(16px, 5vw, 56px);
  --radius: 22px;
  --shadow-lg: 0 30px 60px -26px rgba(59, 9, 21, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-y: clamp(88px, 14vw, 170px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  font-family: var(--f-body);
  font-weight: 350;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* soft paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--maroon-700); color: var(--gold-200); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 .72rem/1.2 var(--f-body);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow svg { width: 10px; height: 10px; color: var(--gold-500); flex: none; }
.eyebrow--gold { color: var(--gold-300); }
.eyebrow--gold svg { color: var(--gold-400); }

.section-head { text-align: center; max-width: 760px; margin-inline: auto; }
.section-title {
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--maroon-800);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.section-title em, .age-title em, .chapter__title em {
  color: var(--maroon-600);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.section-sub { margin-top: 18px; color: var(--ink-2); font-size: clamp(1rem, 3.6vw, 1.15rem); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 .72rem/1.3 var(--f-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.kicker__num {
  font: italic 500 1.15rem/1 var(--f-display);
  letter-spacing: 0;
  color: var(--maroon-600);
}
.kicker::after { content: ""; flex: 0 0 36px; height: 1px; background: var(--gold-500); }
.kicker--light { color: var(--gold-300); }
.kicker--light::after { background: var(--gold-400); }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   GATE — velvet curtains + wax seal
   ========================================================= */
.gate { display: none; }
.js .gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--maroon-950);
}
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%, transparent 78%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(90deg,
      #3b0915 0, #63122a 1.4%, #8d1c31 2.4%, #6a1428 3.4%, #3f0a17 4.8%, #4c0d1c 5.6%);
  will-change: transform;
}
.curtain--left { left: 0; transform-origin: 0 50%; }
.curtain--right { right: 0; transform-origin: 100% 50%; }
.curtain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(59, 9, 21, .55) 6px 8px),
    linear-gradient(90deg, #8a6620, #f1dc9f 45%, #a8822f);
}
.curtain--left::after { right: 0; }
.curtain--right::after { left: 0; }

.gate__valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 2;
  background:
    linear-gradient(var(--maroon-900), var(--maroon-900)) 0 0 / 100% 22px no-repeat,
    radial-gradient(58px 44px at 50% 0, var(--maroon-800) 97%, transparent 100%) 0 0 / 104px 64px repeat-x,
    radial-gradient(61px 48px at 50% 0, var(--gold-500) 97%, transparent 100%) 0 0 / 104px 68px repeat-x;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45));
}

.gate__content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  color: var(--gold-300);
}
.gate__content::before {
  content: "";
  position: absolute;
  inset: -35% -45%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(36, 5, 12, .82), rgba(36, 5, 12, .5) 55%, transparent);
  pointer-events: none;
}
.gate__eyebrow {
  font-family: var(--f-script);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--gold-300);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
  max-width: 12ch;
}
.seal {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55));
  transition: transform .4s var(--ease-out);
  animation: seal-breathe 3s ease-in-out infinite;
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__letter {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 80px;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.seal::before, .seal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 213, 156, .55);
  animation: seal-ring 2.6s ease-out infinite;
}
.seal::after { animation-delay: 1.3s; }
.seal:hover { transform: scale(1.05) rotate(-4deg); }
.gate__hint {
  font: 600 .74rem/1 var(--f-body);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-100);
}
.gate__sound { font-size: .85rem; color: rgba(246, 232, 195, .65); }

@keyframes seal-breathe { 50% { transform: scale(1.04); } }
@keyframes seal-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* fallback open (no GSAP) */
.gate.is-open { opacity: 0; transition: opacity .7s ease; pointer-events: none; }

/* =========================================================
   FIXED UI
   ========================================================= */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%; }

.music, .jump {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
html.is-locked .music, html.is-locked .jump { opacity: 0; pointer-events: none; transform: translateY(20px); }

.music {
  right: max(16px, env(safe-area-inset-right));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--maroon-600), var(--maroon-800));
  box-shadow: 0 0 0 1.5px var(--gold-500), 0 14px 30px -10px rgba(59, 9, 21, .7);
}
.music::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 161, 74, .7);
  opacity: 0;
  transition: opacity .4s;
}
.music.is-playing::after { opacity: 1; animation: spin 8s linear infinite; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i { width: 3px; height: 30%; border-radius: 2px; background: var(--gold-300); }
.music.is-playing .music__bars i { animation: eq .9s ease-in-out infinite alternate; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: -.6s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.jump {
  left: max(16px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font: 600 .86rem/1 var(--f-body);
  text-decoration: none;
  color: var(--maroon-800);
  background: rgba(255, 250, 242, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(201, 161, 74, .6), 0 12px 26px -12px rgba(59, 9, 21, .5);
}
.jump svg { width: 18px; height: 18px; color: var(--gold-600); }
.jump.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --sun-x: 50%;
  --sun-y: 64%;
  position: relative;
  min-height: 100svh;
  padding: clamp(84px, 13vh, 120px) 0 28px;
  display: flex;
  flex-direction: column;
  overflow: clip;
  background:
    radial-gradient(120% 60% at 50% 100%, #f7dcaa 0%, rgba(247, 220, 170, 0) 62%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 55%, #f5e0bd 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(rgba(251, 242, 227, 0), var(--cream-100));
  pointer-events: none;
}
/* positioned with calc (not `translate`) so GSAP can own the transform */
.hero__sun, .hero__rays {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
}
.hero__sun {
  width: 130vmax;
  left: calc(var(--sun-x) - 65vmax);
  top: calc(var(--sun-y) - 65vmax);
  background: radial-gradient(circle, rgba(255, 210, 130, .8) 0%, rgba(240, 186, 104, .35) 16%, rgba(240, 186, 104, 0) 42%);
}
.hero__rays {
  width: 170vmax;
  left: calc(var(--sun-x) - 85vmax);
  top: calc(var(--sun-y) - 85vmax);
  background: repeating-conic-gradient(from 0deg, rgba(201, 161, 74, .16) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 46%);
  mask: radial-gradient(circle, #000 0 12%, transparent 46%);
  animation: spin 140s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.garlands { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 2; pointer-events: none; }
.garland-wrap { position: absolute; top: -4px; width: min(50vw, 380px); }
.garland-wrap--left { left: -6px; }
.garland-wrap--right { right: -6px; }
.garland {
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 110;
  transform-origin: 0 0;
  animation: sway 6s ease-in-out infinite alternate;
}
.garland-wrap--right .garland { transform-origin: 100% 0; animation-delay: -3s; }
@keyframes sway { from { rotate: -2deg; } to { rotate: 2deg; } }

.balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.balloon {
  --k: .66;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * var(--k));
}
.balloon svg {
  width: 100%;
  height: auto;
  color: var(--c);
  overflow: visible;
  transform-origin: 50% 100%;
  animation: bob 6.5s ease-in-out var(--d) infinite alternate;
}
.balloon--far { opacity: .7; filter: blur(.6px); }
@keyframes bob {
  from { translate: 0 0; rotate: -4deg; }
  to { translate: 0 -22px; rotate: 4deg; }
}

.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sparkles i, .dive__spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 14px);
  aspect-ratio: 1;
  background: var(--gold-500);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.8s ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; scale: .6; } 50% { opacity: 1; scale: 1.1; } }

.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; }

.ribbon {
  display: inline-block;
  padding: .7em 2.1em;
  background: linear-gradient(180deg, var(--maroon-600), var(--maroon-700));
  color: var(--gold-300);
  font: 600 .72rem/1 var(--f-body);
  letter-spacing: .3em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  box-shadow: inset 0 0 0 1px rgba(236, 213, 156, .4);
}

.hero__title { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.hero__name {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 650;
  font-size: clamp(5.4rem, 29vw, 13.5rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--maroon-700);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-shadow: 0 3px 0 var(--gold-300), 0 18px 40px rgba(116, 21, 40, .18);
  padding-inline: .06em;
}
.hero__name .ch { display: inline-block; }
.hero__turns {
  display: block;
  margin-top: -.12em;
  font-family: var(--f-script);
  font-size: clamp(2.1rem, 9vw, 4.2rem);
  line-height: 1;
  color: var(--gold-600);
}

.hero__fullname {
  margin-top: 10px;
  font: 600 .74rem/1.3 var(--f-body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--maroon-700);
}
.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font: 500 .86rem/1 var(--f-body);
  color: var(--maroon-800);
  background: rgba(255, 250, 242, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .55);
}
.hero__meta svg { width: 16px; height: 16px; color: var(--gold-600); }

.hero__photo {
  position: relative;
  width: min(62vw, 300px);
  margin: 26px auto 0;
}
.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  background: var(--cream-200);
  box-shadow:
    0 0 0 6px var(--cream-50),
    0 0 0 7.5px var(--gold-500),
    0 0 0 14px rgba(255, 250, 242, .5),
    0 34px 60px -24px rgba(92, 15, 32, .55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__four {
  position: absolute;
  right: -16%;
  bottom: -14%;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(7rem, 36vw, 15rem);
  line-height: .8;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 0 var(--maroon-700)) drop-shadow(0 18px 22px rgba(59, 9, 21, .35));
  padding: 0 .08em .06em;
}
.hero__title { position: relative; }
.hero__arabic {
  position: absolute;
  inset: -30% -40% 0;
  z-index: -1;
  display: grid;
  place-items: center;
  font-family: var(--f-arabic);
  font-weight: 700;
  font-size: clamp(7rem, 40vw, 16rem);
  line-height: 1.2;
  color: rgba(201, 161, 74, .2);
  pointer-events: none;
}

.scroll-cue {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 34px auto 0;
  font: 600 .66rem/1 var(--f-body);
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-700);
}
.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold-500), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--maroon-700);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { top: 110%; } }

/* =========================================================
   MEANING
   ========================================================= */
.meaning {
  position: relative;
  padding-block: var(--section-y);
  background: var(--cream-100);
  text-align: center;
  overflow: clip;
}
.meaning__arabic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.meaning__arabic span {
  font-family: var(--f-arabic);
  font-weight: 700;
  font-size: clamp(14rem, 70vw, 40rem);
  line-height: 1;
  color: rgba(201, 161, 74, .12);
  pointer-events: none;
  white-space: nowrap;
}
.meaning .wrap { position: relative; max-width: 1000px; }
.meaning__text {
  margin-top: 26px;
  font-family: var(--f-display);
  font-weight: 330;
  font-size: clamp(1.75rem, 6.6vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--maroon-800);
  font-variation-settings: "SOFT" 60, "opsz" 72;
}
.meaning__text em { color: var(--gold-600); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
.meaning__text .w { display: inline-block; }
.meaning__sign {
  margin-top: 28px;
  font-family: var(--f-script);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold-600);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  padding-block: 18px;
  overflow: hidden;
  background: var(--cream-100);
}
.marquee__row {
  rotate: -3deg;
  margin-inline: -10vw;
  padding-block: 14px;
  overflow: hidden;
  background: var(--maroon-700);
  box-shadow: inset 0 1px 0 rgba(236, 213, 156, .5), inset 0 -1px 0 rgba(236, 213, 156, .5);
}
.marquee__row--alt {
  rotate: 2deg;
  margin-top: -18px;
  background: var(--gold-500);
  position: relative;
  z-index: -1;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding-right: 28px;
  animation: marquee 36s linear infinite;
  white-space: nowrap;
}
.marquee__row--alt .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  line-height: 1;
  color: var(--gold-200);
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.marquee__row--alt .marquee__track span { color: var(--maroon-800); font-style: normal; font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.5rem); letter-spacing: .04em; }
.marquee__track i { font-style: normal; color: var(--gold-400); font-size: 1.1rem; }
.marquee__row--alt .marquee__track i { color: var(--maroon-700); }
@keyframes marquee { to { transform: translateX(-50%); } }
.motion .marquee__track { animation: none; }

/* =========================================================
   STORY
   ========================================================= */
.story { padding-top: var(--section-y); background: var(--cream-50); }

.chapter { display: grid; gap: 30px; align-items: center; margin-top: var(--section-y); }
.chapter__body { max-width: 560px; }
.chapter--center .chapter__body { margin-inline: auto; text-align: center; }
.chapter--center .kicker { justify-content: center; }
.chapter--center .kicker::before { content: ""; flex: 0 0 36px; height: 1px; background: var(--gold-500); }
.chapter--center .flourish { margin-inline: auto; }

.chapter__title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 380;
  font-size: clamp(2.1rem, 8.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--maroon-800);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.flourish { width: 170px; height: 20px; margin-top: 14px; color: var(--gold-500); }
.chapter__text { margin-top: 14px; color: var(--ink-2); font-size: clamp(1rem, 3.8vw, 1.16rem); }

.chapter__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-lg);
}
.chapter__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chapter__media--arch { border-radius: 999px 999px var(--radius) var(--radius); }
.chapter__media--arch img { aspect-ratio: 3 / 4; object-position: 50% 60%; }

/* polaroids */
.polaroids {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
  margin-top: 44px;
}
.polaroid {
  position: relative;
  padding: 8px 8px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 36px -18px rgba(59, 9, 21, .45), 0 2px 6px rgba(59, 9, 21, .08);
  rotate: var(--r);
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 64px;
  height: 20px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(236, 213, 156, .75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  padding: 10px 4px 12px;
  text-align: center;
  font: italic 450 clamp(.92rem, 3.6vw, 1.1rem)/1.2 var(--f-display);
  color: var(--maroon-700);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* full-bleed family */
.fullbleed {
  position: relative;
  height: 80svh;
  min-height: 440px;
  max-height: 900px;
  margin-top: var(--section-y);
  overflow: hidden;
  background: var(--maroon-900);
}
.fullbleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 35%; }
.fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 5, 12, 0) 40%, rgba(36, 5, 12, .82) 100%);
}
.fullbleed__caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(30px, 7vw, 80px);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--cream-50);
}
.fullbleed__caption p {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 330;
  font-size: clamp(2.2rem, 8.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 60, "opsz" 144;
}
.fullbleed__caption em { color: var(--gold-300); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }

/* monthly zoom */
.zoomframe {
  width: min(100%, 640px);
  margin: 46px auto 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--gold-400);
  outline-offset: 8px;
}
.zoomframe img { width: 100%; height: 100%; object-fit: cover; transform-origin: 54% 40%; }

/* =========================================================
   AGES
   ========================================================= */
.age-title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 330;
  font-size: clamp(3rem, 13vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--maroon-800);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.age-title em { font-weight: 500; }

/* turning one — horizontal gallery */
.hs {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100) 30%, var(--cream-100));
}
.hs__bignum {
  position: absolute;
  top: calc(50% - .4em);
  left: 52%;
  font: italic 800 clamp(22rem, 120vw, 60rem)/.8 var(--f-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 161, 74, .5);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  pointer-events: none;
}
.hs__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hs__track::-webkit-scrollbar { display: none; }
.motion .hs {
  height: 100svh;
  padding-block: clamp(56px, 9svh, 96px) clamp(20px, 4svh, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.motion .hs__track { overflow: visible; scroll-snap-type: none; will-change: transform; }

.hs__head { position: relative; margin-bottom: clamp(24px, 4svh, 44px); }
.hs__head .chapter__text { max-width: 520px; }
.motion .hs__head .age-title { font-size: clamp(2.6rem, min(12vw, 8svh), 6rem); }

.hs__foot { display: none; }
.motion .hs__foot { display: flex; align-items: center; gap: 18px; margin-top: clamp(18px, 3svh, 34px); }
.hs__hint {
  flex: none;
  font: 600 .68rem/1 var(--f-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.hs__hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 8px 0; } }
.hs__bar { position: relative; flex: 1; height: 2px; max-width: 420px; border-radius: 2px; background: rgba(201, 161, 74, .25); overflow: hidden; }
.hs__bar span { position: absolute; inset: 0; background: var(--maroon-600); transform: scaleX(0); transform-origin: 0 50%; }

.hs__card { flex: 0 0 auto; width: var(--w); margin: 0; scroll-snap-align: center; }
.hs__card--land { --w: min(86vw, 760px, 84svh); }
.hs__card--port { --w: min(60vw, 380px, 38svh); }
.hs__frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-lg);
}
.hs__frame img { width: 100%; }
.hs__card figcaption, .pair__item figcaption {
  margin-top: 14px;
  font: italic 450 clamp(1.05rem, 4vw, 1.35rem)/1.2 var(--f-display);
  color: var(--maroon-700);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hs__card figcaption::before, .pair__item figcaption::before { content: "✦ "; font-style: normal; color: var(--gold-500); }

/* turning two & three */
.age { position: relative; padding-block: var(--section-y); overflow: clip; }
.age--two { background: var(--cream-100); }
.age--three { background: linear-gradient(180deg, var(--cream-100), var(--cream-50)); padding-bottom: calc(var(--section-y) * .6); }
.age__bignum {
  position: absolute;
  top: clamp(20px, 6vw, 80px);
  right: -6vw;
  font: italic 800 clamp(16rem, 72vw, 44rem)/.8 var(--f-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 161, 74, .55);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  pointer-events: none;
}
.age__head { position: relative; z-index: 1; max-width: 640px; }

.circle-reveal {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-200);
}
.circle-reveal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.circle-reveal figcaption, .stack__card figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  font: italic 500 1rem/1 var(--f-display);
  color: var(--maroon-800);
  background: rgba(255, 250, 242, .9);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .6);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* turning two — staggered pair under the main photo */
.pair {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 30px;
}
.pair__item { margin: 0; }
.pair__item--land { margin-top: 64px; }
.pair__frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-lg);
}
.pair__frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair__item--land .pair__frame img { object-position: 66% 50%; }
.pair__item figcaption { font-size: clamp(.95rem, 3.6vw, 1.3rem); }

.stack { position: relative; z-index: 1; display: grid; gap: 28px; margin-top: 44px; }
.stack__card {
  position: sticky;
  top: calc(12svh + var(--i) * 20px);
  height: min(70svh, 680px);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--maroon-900);
  box-shadow: 0 -10px 40px -18px rgba(59, 9, 21, .45), var(--shadow-lg);
  transform-origin: 50% 0;
}
.stack__bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.1) brightness(.62);
}
.stack__card img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.stack__shade { position: absolute; inset: 0; background: var(--maroon-950); opacity: 0; pointer-events: none; }

/* =========================================================
   BIG SISTER
   ========================================================= */
.sister { padding-block: var(--section-y); background: var(--cream-50); overflow: clip; }
.sister__head { max-width: 640px; margin-inline: auto; text-align: center; }
.sister__head .kicker { justify-content: center; }
.sister__head .kicker::before { content: ""; flex: 0 0 36px; height: 1px; background: var(--gold-500); }
.sister__head .flourish { margin-inline: auto; }
.sister__head .chapter__text em { color: var(--maroon-600); font-family: var(--f-display); font-style: italic; }
.sister__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 58vw 40vw 40vw;
  gap: 12px;
  margin-top: 44px;
}
.sister__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-lg);
}
.sister__item img { width: 100%; height: 100%; object-fit: cover; }
.sister__item--a { grid-column: 1 / -1; }
.sister__item--a img { object-position: 60% 40%; }
.sister__item--b { grid-row: 2 / 4; }
.sister__item--b img { object-position: 50% 30%; }
.sister__item--c img { object-position: 45% 40%; }
.sister__item--d img { object-position: 62% 40%; }
.sister__item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font: italic 500 clamp(.8rem, 3vw, 1rem)/1 var(--f-display);
  color: var(--maroon-800);
  background: rgba(255, 250, 242, .9);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 74, .6);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* =========================================================
   THE BIG 4
   ========================================================= */
.dive { position: relative; background: var(--cream-50); }
.dive__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 80px;
  overflow: hidden;
  text-align: center;
}
.dive__above, .dive__below {
  font-family: var(--f-display);
  font-weight: 330;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--maroon-800);
  font-variation-settings: "SOFT" 60, "opsz" 144;
}
.dive__above { font-family: var(--f-script); font-size: clamp(2.6rem, 10vw, 4.6rem); color: var(--gold-600); }
.dive__below em { color: var(--maroon-600); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.dive__stage { position: relative; width: min(54vw, 300px, 46svh); }
.dive__four {
  width: 100%;
  aspect-ratio: 100 / 120;
  overflow: visible;
  transform-origin: 69% 67.5%;
  filter: drop-shadow(0 24px 30px rgba(59, 9, 21, .3));
  will-change: transform;
}
.dive__spark { --s: 18px; }

/* =========================================================
   INVITATION
   ========================================================= */
.invite {
  position: relative;
  padding-block: var(--section-y);
  background: var(--maroon-800);
  color: var(--cream-100);
  overflow: clip;
}
.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 161, 74, .18), transparent 55%),
    radial-gradient(rgba(236, 213, 156, .14) 1.2px, transparent 1.8px) 0 0 / 26px 26px;
  pointer-events: none;
}
.invite .wrap { position: relative; }
.invite__head { text-align: center; max-width: 820px; margin-inline: auto; }
.invite__title {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(2.6rem, 11vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--cream-50);
  font-variation-settings: "SOFT" 60, "opsz" 144;
}
.invite__title .gold-text { font-style: italic; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; padding-right: .05em; }
.invite__title sup { font-size: .42em; vertical-align: .9em; }
.invite__lead { margin: 20px auto 0; max-width: 560px; color: rgba(251, 242, 227, .8); font-size: clamp(1rem, 3.8vw, 1.15rem); }

.invite__grid { display: grid; gap: 40px; margin-top: 52px; align-items: center; }
.invite__info { display: grid; gap: 20px; }

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  border-radius: 20px;
  background: var(--cream-50);
  color: var(--ink);
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .7);
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: 112px;
  width: 24px;
  height: 24px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--maroon-800);
}
.ticket::before { top: -12px; }
.ticket::after { bottom: -12px; }
.ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 8px;
  border-right: 2px dashed var(--cream-300);
  text-align: center;
}
.ticket__weekday, .ticket__month, .ticket__year {
  font: 600 .66rem/1.2 var(--f-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.ticket__day {
  font: italic 700 3.8rem/1 var(--f-display);
  color: var(--maroon-700);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  margin: 2px 0 4px;
}
.ticket__list { list-style: none; display: grid; align-content: center; gap: 16px; padding: 22px 18px 22px 22px; }
.ticket__list li { display: flex; gap: 12px; align-items: flex-start; }
.ticket__list li[hidden] { display: none; }
.ticket__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold-600); }
.ticket__list small {
  display: block;
  font: 600 .64rem/1.2 var(--f-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.ticket__list strong { display: block; font: 500 1.12rem/1.25 var(--f-display); color: var(--maroon-800); }
.ticket__list span { display: block; font-size: .9rem; color: var(--ink-2); }

.countdown {
  padding: 22px 18px;
  border-radius: 20px;
  background: rgba(255, 250, 242, .05);
  box-shadow: inset 0 0 0 1px rgba(236, 213, 156, .28);
  text-align: center;
}
.countdown__label {
  font: 600 .7rem/1.3 var(--f-body);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.countdown__grid[hidden] { display: none; }
.countdown__grid div {
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 242, .1), rgba(255, 250, 242, .03));
  box-shadow: inset 0 0 0 1px rgba(236, 213, 156, .22);
}
.countdown__grid span {
  display: block;
  font: 600 clamp(1.9rem, 8vw, 2.8rem)/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown__grid span.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { from { transform: translateY(-30%); opacity: 0; } }
.countdown__grid small {
  display: block;
  margin-top: 6px;
  font: 500 .62rem/1 var(--f-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251, 242, 227, .65);
}
.countdown.is-live .countdown__label {
  font: italic 500 clamp(1.4rem, 5vw, 1.9rem)/1.2 var(--f-display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-200);
}

.actions { display: grid; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 .96rem/1 var(--f-body);
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s, background-color .35s, color .35s;
}
.btn[hidden] { display: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold {
  background: var(--gold-grad);
  color: var(--maroon-900);
  box-shadow: 0 14px 28px -14px rgba(201, 161, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--ghost { color: var(--gold-200); box-shadow: inset 0 0 0 1px rgba(236, 213, 156, .45); }
.btn--ghost:hover { background: rgba(236, 213, 156, .1); }
.btn--maroon { background: var(--maroon-700); color: var(--gold-200); box-shadow: 0 14px 28px -14px rgba(116, 21, 40, .8); }

.invite-card { width: min(80vw, 400px); margin-inline: auto; perspective: 1200px; }
.invite-card__tilt {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 0 0 1px rgba(236, 213, 156, .55), 0 0 0 8px rgba(255, 250, 242, .06), 0 50px 80px -34px rgba(0, 0, 0, .8);
  animation: card-float 7s ease-in-out infinite;
}
.invite-card__tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 48%, transparent 60%) 0 0 / 260% 100%;
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -30% 0; } }
@keyframes card-float { 50% { translate: 0 -10px; } }
.invite-card figcaption { margin-top: 22px; text-align: center; }
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 .92rem/1 var(--f-body);
  color: var(--gold-300);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(236, 213, 156, .5);
}
.link-gold svg { width: 18px; height: 18px; }

/* =========================================================
   MAKE A WISH
   ========================================================= */
.wish { padding-block: var(--section-y); background: var(--cream-100); text-align: center; overflow: clip; }
.cake { position: relative; width: 300px; height: 300px; margin: 40px auto 0; }
.cake__plate {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 300px;
  height: 28px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 16px 26px -12px rgba(59, 9, 21, .5);
}
.cake__bottom {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 256px;
  height: 96px;
  translate: -50% 0;
  border-radius: 14px 14px 24px 24px / 14px 14px 18px 18px;
  background:
    radial-gradient(circle, var(--maroon-600) 3px, transparent 3.6px) 12px 44px / 30px 30px,
    linear-gradient(180deg, var(--cream-50), var(--cream-200));
  box-shadow: inset 0 -8px 0 rgba(201, 161, 74, .35);
}
.cake__bottom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  border-radius: 14px 14px 0 0;
  background: radial-gradient(12px 14px at 50% 100%, var(--cream-300) 97%, transparent) 0 0 / 24px 26px, linear-gradient(var(--cream-300), var(--cream-300)) 0 0 / 100% 12px no-repeat;
}
.cake__top {
  position: absolute;
  left: 50%;
  bottom: 108px;
  width: 184px;
  height: 80px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, var(--maroon-600), var(--maroon-800));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15);
}
.cake__top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  border-radius: 12px 12px 0 0;
  background: radial-gradient(10px 13px at 50% 100%, var(--gold-400) 97%, transparent) 0 0 / 20px 28px, linear-gradient(var(--gold-400), var(--gold-400)) 0 0 / 100% 14px no-repeat;
}
.cake__name {
  position: relative;
  margin-top: 22px;
  font-family: var(--f-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-300);
}
.cake__candles {
  position: absolute;
  left: 50%;
  bottom: 176px;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.candle {
  position: relative;
  width: 40px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.candle__stick {
  position: relative;
  width: 13px;
  height: 58px;
  border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(-45deg, var(--cream-50) 0 6px, var(--maroon-500) 6px 12px);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .08);
}
.candle__stick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 2px;
  height: 9px;
  translate: -50% 0;
  background: #3a2a20;
  border-radius: 2px;
}
.candle__flame {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: 16px;
  height: 28px;
  translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 74%, #fffbe6 0 18%, #ffd772 38%, #ff9d3d 72%, rgba(255, 120, 40, 0) 100%);
  box-shadow: 0 0 22px 8px rgba(255, 190, 90, .5);
  transform-origin: 50% 90%;
  animation: flicker 1.4s ease-in-out infinite alternate;
  transition: opacity .35s ease, scale .35s ease;
}
.candle:nth-child(2) .candle__flame { animation-delay: -.4s; }
.candle:nth-child(3) .candle__flame { animation-delay: -.8s; }
.candle:nth-child(4) .candle__flame { animation-delay: -1.1s; }
@keyframes flicker {
  0% { transform: rotate(-3deg) scaleY(1); }
  50% { transform: rotate(2deg) scaleY(1.08); }
  100% { transform: rotate(-1deg) scaleY(.94); }
}
.candle.is-out .candle__flame { opacity: 0; scale: .2; }
.candle .smoke {
  position: absolute;
  left: 50%;
  bottom: 66px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(120, 110, 110, .45);
  filter: blur(3px);
  animation: smoke 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes smoke {
  from { transform: translate(-50%, 0) scale(.6); opacity: .9; }
  to { transform: translate(-30%, -70px) scale(2.6); opacity: 0; }
}
.wish__done { min-height: 120px; margin-top: 26px; display: grid; justify-items: center; gap: 16px; }
.wish__done p {
  font: italic 450 clamp(1.4rem, 5.5vw, 2rem)/1.2 var(--f-display);
  color: var(--maroon-700);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* =========================================================
   FAMILY
   ========================================================= */
.hosts { padding-block: var(--section-y); background: var(--cream-50); }
.hosts__grid { display: grid; gap: 16px; margin-top: 44px; }
.host {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 0 0 1px var(--cream-300), 0 24px 40px -30px rgba(59, 9, 21, .45);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.host:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--gold-400), 0 30px 50px -28px rgba(59, 9, 21, .5); }
.host__avatar {
  position: relative;
  flex: none;
  width: 88px;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold-grad);
}
.host__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.host__crown { position: absolute; left: 50%; top: -18px; width: 40px; height: 25px; translate: -50% 0; rotate: -8deg; z-index: 1; filter: drop-shadow(0 3px 4px rgba(59, 9, 21, .3)); }
.host__text { display: grid; gap: 2px; min-width: 0; }
.host__role {
  font: 600 .66rem/1.2 var(--f-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.host__name { font: 500 1.45rem/1.15 var(--f-display); color: var(--maroon-800); font-variation-settings: "SOFT" 50, "opsz" 72; }
.host__ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font: 500 .8rem/1 var(--f-body);
  color: var(--gold-200);
  background: var(--maroon-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.host__ig svg { width: 15px; height: 15px; flex: none; }
.host--star { background: linear-gradient(140deg, var(--maroon-700), var(--maroon-900)); box-shadow: 0 0 0 1px var(--gold-500), 0 30px 50px -26px rgba(59, 9, 21, .7); }
.host--star .host__role { color: var(--gold-300); }
.host--star .host__name { color: var(--cream-50); }
.host--star .host__ig { background: var(--gold-grad); color: var(--maroon-900); font-weight: 600; }
.host--star .host__avatar img { border-color: var(--maroon-800); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: var(--section-y) 0 calc(96px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 60% at 50% 0%, var(--maroon-800), var(--maroon-950) 70%);
  color: var(--cream-100);
  text-align: center;
  overflow: clip;
}
.footer__script { font-family: var(--f-script); font-size: clamp(2rem, 8vw, 3rem); color: var(--gold-300); }
.footer__big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .12em;
  margin-top: 6px;
  font: italic 700 clamp(4.6rem, 24vw, 13rem)/.95 var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.footer__big span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .06em;
}
.footer__big svg { width: .26em; height: .26em; color: var(--gold-400); flex: none; animation: spin 10s linear infinite; }
.footer__note { max-width: 460px; margin: 22px auto 0; color: rgba(251, 242, 227, .8); font-size: 1.05rem; }
.footer__date {
  margin-top: 18px;
  font: 600 .72rem/1.4 var(--f-body);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer__top {
  display: inline-block;
  margin-top: 34px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 .86rem/1 var(--f-body);
  text-decoration: none;
  color: var(--gold-200);
  box-shadow: inset 0 0 0 1px rgba(236, 213, 156, .4);
}

/* =========================================================
   TABLET / LAPTOP / DESKTOP
   ========================================================= */
@media (min-width: 640px) {
  .balloon { --k: .85; }
  .hero__photo { width: min(50vw, 380px, 46svh); }
  .polaroids { gap: 30px 26px; }
  .hosts__grid { grid-template-columns: 1fr 1fr; }
  .host--star { grid-column: auto; }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn--gold { grid-column: 1 / -1; }
  .ticket { grid-template-columns: 136px 1fr; }
  .ticket::before, .ticket::after { left: 136px; }
  .circle-reveal { aspect-ratio: 3 / 2; }
}

@media (min-width: 900px) {
  .hero { --sun-x: 72%; --sun-y: 56%; padding-bottom: 36px; }
  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4vw;
    text-align: left;
  }
  .hero__copy { align-items: flex-start; flex: 1.1; }
  .hero__title { align-items: flex-start; }
  .hero__name { font-size: clamp(8rem, 18vw, 17rem); }
  .hero__turns { margin-left: .5em; font-size: clamp(3rem, 4.6vw, 4.8rem); }
  .hero .ribbon { font-size: .82rem; }
  .hero__meta { justify-content: flex-start; margin-top: 22px; }
  .hero__meta li { font-size: .95rem; padding: 11px 18px; }
  .hero__photo { flex: none; width: min(32vw, 440px, 50svh); margin: 0 4vw 0 0; }
  .hero__four { font-size: clamp(9rem, 15vw, 16rem); right: -26%; }
  .balloon { --k: 1.15; }
  .garland { width: min(36vw, 460px); }

  .chapter--split { grid-template-columns: 1fr 1fr; gap: 7vw; }
  .chapter--flip .chapter__media { order: 2; }
  .chapter--flip .chapter__body { justify-self: end; }
  .chapter__media--arch { max-width: 480px; justify-self: center; width: 100%; }

  .polaroids { grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: 64px auto 0; }
  .polaroid:nth-child(even) { margin-top: 60px; }


  .age--two .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; }
  .circle-reveal { margin-top: 0; }
  .pair {
    grid-column: 1 / -1;
    grid-template-columns: 5fr 7fr;
    gap: 4vw;
    align-items: end;
    width: 100%;
    max-width: 1040px;
    margin: 40px auto 0;
  }
  .pair__item--port { width: 100%; max-width: 380px; justify-self: end; }
  .pair__item--land { margin: 0 0 90px; }
  .pair__item--land .pair__frame img { aspect-ratio: 3 / 2; }
  .stack { max-width: 980px; margin-inline: auto; }
  .stack__card { height: min(76svh, 640px); }

  .invite__grid { grid-template-columns: 1.15fr .85fr; gap: 6vw; margin-top: 72px; }
  .invite-card { width: 100%; max-width: 400px; }
  .ticket__day { font-size: 4.6rem; }

  .hosts__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sister__grid { grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: 280px 280px; gap: 18px; max-width: 1180px; margin: 60px auto 0; }
  .sister__item--a { grid-column: 2; grid-row: 1 / 3; }
  .sister__item--b { grid-column: 1; grid-row: 1 / 3; }
  .sister__item--c { grid-column: 3; grid-row: 1; }
  .sister__item--d { grid-column: 3; grid-row: 2; }
  .host--star { grid-column: auto; }
  .host { flex-direction: column; text-align: center; padding: 36px 22px 30px; gap: 16px; }
  .host__avatar { width: 128px; }
  .host__crown { width: 52px; height: 32px; top: -22px; }
  .host__text { justify-items: center; }
  .host__ig { justify-self: center; }
}

@media (min-width: 1280px) {
  .hero__photo { margin-right: 6vw; }
}

/* short landscape phones: let the hero breathe */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__photo { width: min(30vw, 220px); }
  .hero__name { font-size: 5rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .dive__pin { min-height: auto; padding-block: var(--section-y); }
}
