/* ==========================================================
   Transfinder Tree — shared styles
   Palette pulled from the 2026 parade cards & winter logo
   ========================================================== */
:root {
  --navy-950: #050d27;
  --navy-900: #081536;
  --navy-800: #0c1f4f;
  --navy-700: #142c68;
  --navy-600: #1e3d85;
  --gold: #f3cf73;
  --gold-light: #fff1c2;
  --gold-deep: #d9a93e;
  --orange: #f28a30;
  --red: #d62b2b;
  --red-deep: #a81c1c;
  --green: #1f8a4c;
  --green-deep: #145c33;
  --snow: #f4f8ff;
  --snow-shadow: #dfe8f7;
  --text: #eaf0fc;
  --muted: #b8c4e2;
  --ink: #0c1f4f;
  --ink-muted: #48577e;

  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(3, 9, 30, 0.45);
  --container: 1160px;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-900);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Snow canvas ---------- */
#snow {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 60;
}

/* ---------- Typography ---------- */
.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 .25em;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(243, 207, 115, .25));
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
h1.script-title { font-size: clamp(3.4rem, 9vw, 6.6rem); }
.title-image { margin: .2em 0 .5em; }
.title-image img { width: min(100%, 620px); height: auto; }
.title-image.wide img { width: min(100%, 760px); }
.title-image.narrow img { width: min(100%, 470px); }
.section-head .title-image img { margin-inline: auto; }
.footer-script img { width: min(100%, 540px); height: auto; margin-inline: auto; }
.script-red {
  background: none; -webkit-text-fill-color: var(--red); color: var(--red);
  filter: none;
}
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .82rem; color: var(--gold); margin: 0 0 .6rem;
}
.eyebrow-red { color: var(--green); }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }

.gold-divider { display: flex; align-items: center; gap: 12px; margin: .4rem 0 1.4rem; color: var(--gold); max-width: 420px; }
.gold-divider span { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-divider i { font-style: normal; font-size: 1.1rem; animation: spin-slow 8s linear infinite; }
.section-head .gold-divider { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative; overflow: hidden;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { background: linear-gradient(180deg, #ffe08e, var(--gold-deep)); color: var(--ink); box-shadow: 0 8px 24px rgba(243, 207, 115, .35); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(242, 138, 48, .4); }
.btn-red { background: linear-gradient(180deg, #ea4040, var(--red-deep)); color: #fff; box-shadow: 0 8px 22px rgba(214, 43, 43, .35); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(243, 207, 115, .6); }
.btn-ghost:hover { background: rgba(243, 207, 115, .12); }
.btn-sm { padding: .55em 1.2em; font-size: .9rem; }
.btn-lg { padding: 1em 2em; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-bar {
  /* Pale gray-blue, like the frosted backdrop of the winter logo */
  background: linear-gradient(180deg, #e8edf6 0%, #d3dcec 100%);
  box-shadow: 0 4px 20px rgba(3, 9, 30, .35);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px max(20px, calc((100% - var(--container)) / 2));
  min-height: var(--header-h);
}
.brand img { height: 100px; width: auto; transition: transform .3s ease; }
.brand:hover img { transform: rotate(-2deg) scale(1.04); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; padding: .5em .9em; border-radius: 999px;
  transition: background .2s, color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { background: rgba(12, 31, 79, .09); color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Light string hanging just below the navy bar (bulbs injected by JS).
   It lives at the top of the hero — not in the sticky header — so it
   scrolls away with the page instead of riding over the content. */
.light-string {
  position: absolute; top: 0; left: 0; right: 0; height: 130px;
  z-index: 5; pointer-events: none;
}
.light-string svg { width: 100%; height: 100%; display: block; overflow: visible; }
.light-string .wire { fill: none; stroke: rgba(210, 224, 248, .75); stroke-width: 2.5; }
.light-string .bulb { transform-box: fill-box; transform-origin: 50% 0; animation: twinkle 1.6s ease-in-out infinite alternate, sway 3s ease-in-out infinite alternate; }

/* ---------- Sections ---------- */
section { position: relative; }
.night {
  padding: 90px 0 110px;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.8) 50%, transparent 51%) 0 0 / 180px 180px,
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.7) 50%, transparent 51%) 0 0 / 130px 130px,
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(255,255,255,.6) 50%, transparent 51%) 0 0 / 220px 220px,
    radial-gradient(ellipse at 50% 0%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
}
.snow-section {
  background: linear-gradient(180deg, var(--snow) 0%, #e9f0fb 100%);
  color: var(--ink);
  padding: 40px 0 130px;
}
.snow-section.snow-top { padding-top: 120px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p:last-child { color: inherit; opacity: .85; font-size: 1.1rem; }

.snowbank { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; z-index: 2; }
.snowbank svg { width: 100%; height: 100%; display: block; }
.snowbank path { fill: var(--snow); filter: drop-shadow(0 -6px 10px rgba(255,255,255,.35)); }
.snowbank-navy path { fill: var(--navy-800); filter: none; }
.snowbank-top { top: -1px; bottom: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: 160px; padding-bottom: 150px; overflow: hidden; } /* top padding clears the hanging light string */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.date-chip {
  display: inline-block; margin: .6rem 0 1.4rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  padding: .55em 1.2em; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(243, 207, 115, .45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* Countdown */
.countdown-label { font-family: var(--font-head); font-weight: 600; color: var(--muted); margin: 0 0 .5rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(64px, 96px)); gap: 12px; }
.countdown-grid div {
  text-align: center; padding: 12px 6px 8px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(243, 207, 115, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.countdown-grid span {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--gold); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown-grid span.tick { animation: tick .45s ease; }
.countdown-grid small { font-family: var(--font-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.countdown-done { font-family: var(--font-script); font-size: 2.2rem; color: var(--gold); margin: 0; }

/* Tree */
.tree-stage { position: relative; text-align: center; }
.tree-glow {
  position: absolute; left: 50%; top: 45%; width: 90%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(243, 207, 115, .0) 0%, transparent 65%);
  transition: background 1.2s ease; pointer-events: none;
}
.tree-stage.is-lit .tree-glow { background: radial-gradient(circle, rgba(255, 210, 120, .35) 0%, rgba(255, 180, 80, .1) 40%, transparent 68%); animation: pulse 3s ease-in-out infinite; }

/* The tree artwork, three stacked versions of the same image:
   - base: soft lights (the starting state)
   - lit: full golden glow, revealed bottom-to-top by an animated mask
   - colored: multicolored lights, crossfaded in by the color toggle */
.tree-figure { position: relative; width: min(100%, 620px); margin-inline: auto; }
.tree-img { width: 100%; height: auto; display: block; }
.tree-img.tree-lit {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 62%);
          mask-image: linear-gradient(to top, #000 35%, transparent 62%);
  -webkit-mask-size: 100% 300%;
          mask-size: 100% 300%;
  -webkit-mask-position: 0 0%;
          mask-position: 0 0%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: -webkit-mask-position 2.3s ease-in-out;
  transition: mask-position 2.3s ease-in-out, -webkit-mask-position 2.3s ease-in-out;
}
.is-lit .tree-img.tree-lit { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
.tree-img.tree-colored { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.show-colored .tree-img.tree-colored { opacity: 1; }

/* Twinkling tap targets over the ornaments (appear once the tree is lit) */
.orn-hotspots { position: absolute; inset: 0; }
.orn-spot {
  position: absolute; translate: -50% -50%;
  width: clamp(34px, 9%, 52px); aspect-ratio: 1; border-radius: 50%;
  border: 0; background: transparent; padding: 0;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.orn-spot::before {
  /* soft colored halo behind the sparkle */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 170%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--tw, #fff) 0%, transparent 62%);
  opacity: .5; filter: blur(3px);
  animation: spot-twinkle 1.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.orn-spot::after {
  content: "\2726"; /* four-pointed sparkle */
  position: absolute; left: 50%; top: 50%;
  font-size: 25px; line-height: 1; color: var(--tw, #fff);
  text-shadow:
    0 0 3px rgba(255, 255, 255, .95),
    0 0 10px var(--tw, #fff),
    0 0 20px var(--tw, #fff),
    0 0 36px var(--tw, #fff);
  transform: translate(-50%, -50%);
  animation: spot-twinkle 1.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.is-lit .orn-spot { opacity: 1; pointer-events: auto; cursor: pointer; transition: opacity .6s ease, filter .25s ease; }
.is-lit .orn-spot:hover, .is-lit .orn-spot:focus-visible { filter: brightness(1.4); }
.is-lit .orn-spot:hover::after, .is-lit .orn-spot:focus-visible::after { animation-duration: .5s; }
.orn-spot.pop::after { animation: ring .5s ease; }
.tree-controls { margin-top: 10px; }
/* Fixed height: the text swaps during the show, and any size change
   re-centers the grid column and makes the tree bob up and down. */
.tree-hint { color: var(--muted); font-size: .95rem; margin: .8rem auto 0; max-width: 30em; height: 3.6em; overflow: hidden; }

/* Sparkle particles (tree burst + cursor trail) */
.sparkle {
  position: fixed; width: 8px; height: 8px; pointer-events: none; z-index: 70;
  background: radial-gradient(circle, #fff 0%, var(--gold) 40%, transparent 70%);
  border-radius: 50%;
  animation: sparkle-fade var(--life, .9s) ease-out forwards;
}
.confetti {
  position: fixed; pointer-events: none; z-index: 70; font-size: 18px; line-height: 1;
  animation: confetti-fall var(--life, 1.6s) cubic-bezier(.2, .7, .4, 1) forwards;
}

/* ---------- Gifts ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.gift {
  --c1: var(--red); --c2: var(--red-deep); --rib: var(--gold);
  position: relative; border: 0; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 28px 22px 26px; min-height: 300px;
  box-shadow: 0 14px 34px rgba(12, 31, 79, .14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gift:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 44px rgba(12, 31, 79, .2); }
.gift:hover .gift-box { animation: wiggle .6s ease; }
.gift-green  { --c1: #2ea05c; --c2: var(--green-deep); --rib: var(--red); }
.gift-gold   { --c1: #f1c75a; --c2: #c08e22; --rib: var(--red); }
.gift-orange { --c1: var(--orange); --c2: #c86414; --rib: var(--navy-700); }
.gift-box { position: relative; width: 130px; height: 130px; display: block; transition: opacity .4s ease .25s, transform .4s ease .25s; }
.gift-body {
  position: absolute; left: 8px; right: 8px; bottom: 0; height: 92px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent calc(50% - 9px), var(--rib) calc(50% - 9px), var(--rib) calc(50% + 9px), transparent calc(50% + 9px)),
    linear-gradient(180deg, var(--c1), var(--c2));
}
.gift-lid {
  position: absolute; left: 0; right: 0; top: 18px; height: 28px; border-radius: 6px; z-index: 1;
  background:
    linear-gradient(90deg, transparent calc(50% - 10px), var(--rib) calc(50% - 10px), var(--rib) calc(50% + 10px), transparent calc(50% + 10px)),
    linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 4px 6px rgba(0,0,0,.15);
  transition: transform .55s cubic-bezier(.3, 1.4, .5, 1);
}
.gift-lid::before, .gift-lid::after { /* bow loops */
  content: ""; position: absolute; top: -20px; width: 30px; height: 22px;
  border: 7px solid var(--rib); border-radius: 50% 50% 10% 50%;
}
.gift-lid::before { left: calc(50% - 32px); transform: rotate(-20deg); }
.gift-lid::after  { right: calc(50% - 32px); transform: scaleX(-1) rotate(-20deg); }
.gift-label { margin-top: 18px; font-family: var(--font-head); font-weight: 700; color: var(--ink-muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; transition: opacity .3s; }
.gift-reveal {
  position: absolute; inset: 0; padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: scale(.7); pointer-events: none;
  transition: opacity .45s ease .35s, transform .55s cubic-bezier(.2, 1.5, .4, 1) .35s;
}
.gift-reveal strong { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--red); }
.gift-reveal span:last-child { font-size: 1rem; color: var(--ink-muted); }
.gift-icon { font-size: 2.8rem; animation: bob 2.4s ease-in-out infinite; }
.gift.open .gift-lid { transform: translate(40px, -90px) rotate(35deg); }
.gift.open .gift-box { opacity: 0; transform: scale(.6) translateY(30px); }
.gift.open .gift-label { opacity: 0; }
.gift.open .gift-reveal { opacity: 1; transform: none; }
.gift.open { background: linear-gradient(180deg, #fff, #fff8e6); }

/* ---------- Santa split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--text); }
.tilt-wrap { perspective: 1000px; }
.tilt-card {
  margin: 0; border-radius: 22px; overflow: hidden; background: #fff; padding: 10px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(243, 207, 115, .5);
  transform: rotate(-2deg); transition: transform .25s ease-out;
  transform-style: preserve-3d;
}
.tilt-card img { border-radius: 14px; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.check-list li { position: relative; padding-left: 2rem; margin: .5rem 0; font-weight: 600; }
.check-list li::before { content: "\2605"; position: absolute; left: 0; color: var(--gold); animation: twinkle 1.8s ease-in-out infinite alternate; }

/* ---------- Coloring carousel ---------- */
.carousel { position: relative; margin-bottom: 40px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 26%, 280px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 16px 6px 26px; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.page-card {
  scroll-snap-align: start; border: 0; padding: 0; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(12, 31, 79, .16);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left; color: var(--ink);
}
.page-card:nth-child(odd)  { transform: rotate(-1.5deg); }
.page-card:nth-child(even) { transform: rotate(1.5deg); }
.page-card:hover, .page-card:focus-visible { transform: rotate(0) translateY(-8px) scale(1.03); box-shadow: 0 18px 36px rgba(12, 31, 79, .25); }
.page-card img { aspect-ratio: 1919 / 2480; object-fit: cover; width: 100%; }
.page-card span { display: block; padding: 10px 14px 12px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.carousel-btn {
  position: absolute; top: 45%; z-index: 3; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--red); color: #fff; font-size: 2rem; line-height: 1;
  box-shadow: 0 8px 18px rgba(214, 43, 43, .4); transition: transform .2s;
}
.carousel-btn:hover { transform: scale(1.1); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 640px); width: 100%; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 13, 39, .85); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--ink); font-size: 1.8rem; line-height: 1; z-index: 2;
}
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--red); color: #fff; font-size: 1.8rem; line-height: 1;
}
.lightbox-nav.prev { left: -23px; }
.lightbox-nav.next { right: -23px; }
.lightbox-open { display: block; text-align: center; margin-top: 12px; color: var(--gold); font-family: var(--font-head); font-weight: 700; }

/* ---------- RSVP ---------- */
.details-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(243, 207, 115, .4); box-shadow: var(--shadow);
}
.details { margin: 0; padding: 36px 40px; display: grid; gap: 22px; }
.details dt { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.details dd { margin: 4px 0 0; }
.rsvp-box {
  padding: 36px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(243, 207, 115, .22), transparent 70%), rgba(5, 13, 39, .35);
  border-left: 1px solid rgba(243, 207, 115, .3);
}
.rsvp-deadline { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 0; }
.rsvp-deadline strong { color: var(--gold); }
.rsvp-days { margin: 0; color: var(--muted); font-size: .95rem; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); text-align: center; padding-top: 0; overflow: hidden; }
.footer-skyline {
  /* aspect-ratio matches the skyline-wide.jpg crop exactly, so the
     building tops are never cut off at any width */
  position: relative; width: 100%; aspect-ratio: 1800 / 1029;
}
.footer-skyline::before {
  /* the skyline art, with its top fade, lives on a pseudo-element so the
     mask never dims the title or logo layered above it */
  content: ""; position: absolute; inset: 0;
  background: var(--navy-800) url("../assets/images/skyline-wide.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
}
.footer-title {
  /* centered in the snowy sky; the clock tower sits right of center */
  position: absolute; top: 14%; left: 50%; translate: -50% 0;
  width: min(58%, 620px); height: auto;
  filter: drop-shadow(0 3px 8px rgba(3, 9, 30, .55));
}
.footer-logo {
  position: absolute; left: 5%; bottom: 9%;
  width: clamp(130px, 17vw, 290px); height: auto;
  filter: drop-shadow(0 4px 12px rgba(3, 9, 30, .6));
}
.footer-inner { padding: 30px 0 38px; }
.footer-script { font-family: var(--font-script); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); margin: 0 0 10px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; }
.footer-nav a { color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.footer-nav a:hover { color: var(--gold); }
.footer-small { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Floating toggles ---------- */
.fx-toggles { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.fx-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(243, 207, 115, .7);
  background: rgba(8, 21, 54, .85); color: #fff; font-size: 1.3rem; backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .2s, opacity .2s;
}
.fx-btn:hover { transform: scale(1.08); }
.fx-btn[aria-pressed="false"] { opacity: .45; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes twinkle { from { opacity: 1; } to { opacity: .55; } }
@keyframes sway { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes spin-slow { to { rotate: 360deg; } }
@keyframes pulse { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes ring { 0% { rotate: 0; } 25% { rotate: 18deg; } 50% { rotate: -14deg; } 75% { rotate: 8deg; } 100% { rotate: 0; } }
@keyframes spot-twinkle {
  from { transform: translate(-50%, -50%) scale(.65) rotate(-12deg); opacity: .7; }
  to   { transform: translate(-50%, -50%) scale(1.35) rotate(12deg); opacity: 1; }
}
@keyframes hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -14px; } 70% { translate: 0 2px; } }
@keyframes rays { 0%, 100% { opacity: .5; scale: .9; } 50% { opacity: 1; scale: 1.1; } }
@keyframes star-pop { 0% { scale: .4; } 100% { scale: 1; } }
@keyframes wiggle { 0%, 100% { rotate: 0; } 25% { rotate: -6deg; } 50% { rotate: 5deg; } 75% { rotate: -3deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pop-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes sparkle-fade {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 20px)) scale(.2); }
}
@keyframes confetti-fall {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .details-card { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .gold-divider, .hero-copy .lead { margin-inline: auto; }
  .countdown-grid { justify-content: center; }
  .hero-actions { justify-content: center; }
  .rsvp-box { border-left: 0; border-top: 1px solid rgba(243, 207, 115, .3); }
  .carousel-btn { display: none; }
  .carousel-track { grid-auto-columns: 62%; }
}
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .brand img { height: 70px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: rgba(226, 233, 245, .98); box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { text-align: center; }
  .night { padding: 70px 0 100px; }
  .hero { padding-top: 150px; }
  .details { padding: 28px 24px; }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .lightbox-nav.prev { left: 4px; } .lightbox-nav.next { right: 4px; }
  .lightbox-close { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Ambient, looping motion is removed... */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* ...but brief, one-shot effects the visitor asks for (lighting the
     tree, sparkles, confetti) still play, just shorter and calmer. */
  .sparkle { animation-duration: .7s !important; }
  .confetti { animation-duration: 1s !important; }
  .tree-img.tree-lit { transition-duration: 1.2s !important; }
  .tree-img.tree-colored { transition-duration: .8s !important; }
  .gift-lid, .gift-box, .gift-reveal, .gift-label { transition-duration: .3s !important; }
}

/* ==========================================================
   Public-site additions (website-public only)
   ========================================================== */
.hero-public { text-align: center; }
.hero-public .title-image img { margin-inline: auto; }
.hero-lead { margin-inline: auto; }
.hero-public .tree-figure { width: min(100%, 540px); }

/* Gift-tag navigation: tags tied to the presents under the tree */
.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; margin-top: 34px; }
.gift-tag {
  --tagc: var(--red);
  position: relative; display: inline-flex; align-items: center;
  font-family: var(--font-script); font-size: 1.35rem; color: #fff; text-decoration: none;
  background: var(--tagc); padding: .45em 1.2em .5em 2em; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(3, 9, 30, .45), inset 0 0 0 2px rgba(255, 255, 255, .35);
  transition: transform .2s ease, rotate .2s ease, box-shadow .2s ease;
}
.gift-tag:nth-child(odd) { rotate: -3deg; }
.gift-tag:nth-child(even) { rotate: 2.5deg; }
.gift-tag i {
  position: absolute; left: .65em; top: 50%; translate: 0 -50%;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--navy-900); box-shadow: inset 0 0 0 2.5px #fff; /* string hole */
}
.gift-tag:hover, .gift-tag:focus-visible {
  transform: translateY(-4px) scale(1.05); rotate: 0deg;
  box-shadow: 0 14px 28px rgba(3, 9, 30, .55), inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.tag-red { --tagc: var(--red); }
.tag-green { --tagc: var(--green); }
.tag-gold { --tagc: var(--gold-deep); }
.tag-navy { --tagc: var(--navy-600); }

/* Details list on the light snow background */
.split-on-snow { margin-top: 10px; }
.details-ink { margin: 0; display: grid; gap: 18px; }
.details-ink dt { font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: 1.02rem; }
.details-ink dd { margin: 4px 0 0; color: var(--ink); }
.details-ink a { color: var(--red); }

/* Forms */
.form-card {
  max-width: 640px; margin-inline: auto; display: grid; gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  border: 1px solid rgba(243, 207, 115, .4); border-radius: 22px; padding: 30px 30px 34px;
  box-shadow: var(--shadow);
}
.form-card label { display: grid; gap: 7px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="date"], .form-card textarea {
  font: inherit; font-family: var(--font-body); font-weight: 400;
  padding: .7em .9em; border-radius: 12px; border: 1px solid rgba(243, 207, 115, .45);
  background: rgba(5, 13, 39, .45); color: var(--text);
}
.form-card ::placeholder { color: rgba(184, 196, 226, .65); }
.form-card .btn { justify-self: center; }
.file-drop { position: relative; cursor: pointer; }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop-inner {
  display: grid; place-items: center; gap: 4px; padding: 26px;
  border: 2px dashed rgba(243, 207, 115, .55); border-radius: 14px; text-align: center;
}
.file-drop-inner strong { font-size: 1.05rem; }
.file-drop.has-file .file-drop-inner { border-style: solid; background: rgba(243, 207, 115, .08); }
.file-drop:focus-within .file-drop-inner { outline: 3px solid var(--gold); outline-offset: 2px; }
.check-consent { display: flex !important; gap: 10px; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 500 !important; font-size: .9rem !important; }
.check-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-deep); }
.form-note { margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; color: var(--gold); }

/* Light form variant for snow sections */
.form-card-ink { background: #fff; border-color: rgba(214, 43, 43, .25); box-shadow: 0 14px 34px rgba(12, 31, 79, .14); color: var(--ink); }
.form-card-ink label { color: var(--ink); }
.form-card-ink input[type="text"], .form-card-ink textarea { background: #f4f7fd; color: var(--ink); border-color: rgba(12, 31, 79, .22); }
.form-card-ink ::placeholder { color: rgba(72, 87, 126, .6); }
.form-card-ink .form-note { color: var(--red); }

/* Gallery placeholder */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 900px; margin-inline: auto; }
.gallery-slot {
  width: 160px; aspect-ratio: 1; display: grid; place-items: center; font-size: 2rem; border-radius: 16px;
  background: #fff; border: 2px dashed rgba(12, 31, 79, .18); color: rgba(12, 31, 79, .45);
  box-shadow: 0 8px 20px rgba(12, 31, 79, .08);
}
.gallery-slot:nth-child(odd) { rotate: -1.5deg; }
.gallery-slot:nth-child(even) { rotate: 1.5deg; }

/* Livestream placeholder */
.stream-panel {
  max-width: 860px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 22px;
  border: 1px solid rgba(243, 207, 115, .4); box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(30, 61, 133, .8), rgba(5, 13, 39, .92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 12px, transparent 12px 24px);
  display: grid; place-items: center;
}
.stream-inner { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px; }
.stream-badge {
  font-family: var(--font-head); font-weight: 800; letter-spacing: .1em; font-size: .85rem;
  color: #fff; background: var(--red); padding: .45em 1em; border-radius: 999px;
  animation: pulse 2.4s ease-in-out infinite;
}
.stream-title { font-family: var(--font-script); font-size: 2rem; color: var(--gold); margin: 0; }
.stream-sub { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .gift-tag { font-size: 1.15rem; }
}
/* Color wave on the string lights: the active color family glows brighter.
   (Scale/brightness only - the per-bulb twinkle animation owns opacity.) */
.light-string .bulb { transition: filter .9s ease; }
.light-string svg[data-glow="0"] .bulb.c0,
.light-string svg[data-glow="1"] .bulb.c1,
.light-string svg[data-glow="2"] .bulb.c2,
.light-string svg[data-glow="3"] .bulb.c3,
.light-string svg[data-glow="4"] .bulb.c4 {
  filter: brightness(1.75) saturate(1.25);
}
/* Tighter first fold on the public hero */
.hero-public .title-image img { width: min(100%, 470px); }
.hero-public .tree-figure { width: min(100%, 430px); }
.hero { padding-top: 140px; }
.hero-public .tree-controls { margin-top: 0; }

/* Firefox-safe color wave: the active family lights a blurred halo
   behind each bulb (opacity transition works on SVG everywhere) */
.light-string .halo { opacity: 0; transition: opacity .85s ease; }
.light-string svg[data-glow="0"] .bulb.c0 .halo,
.light-string svg[data-glow="1"] .bulb.c1 .halo,
.light-string svg[data-glow="2"] .bulb.c2 .halo,
.light-string svg[data-glow="3"] .bulb.c3 .halo,
.light-string svg[data-glow="4"] .bulb.c4 .halo {
  opacity: .9;
}
@media (prefers-reduced-motion: reduce) {
  /* The string-light color wave is a slow, gentle crossfade - keep it
     smooth instead of letting the global rule snap it instantly. */
  .light-string .halo { transition-duration: .85s !important; }
  .light-string .bulb { transition-duration: .9s !important; }
}
/* Orange bulbs wash toward yellow under heavy brightness, so the orange
   family glows with saturation and a stronger halo instead */
.light-string svg[data-glow="2"] .bulb.c2 {
  filter: brightness(1.28) saturate(1.65);
}
.light-string svg[data-glow="2"] .bulb.c2 .halo {
  opacity: 1;
}
/* Brightness clips orange to yellow (255,166,43 -> 255,212,55 = the yellow
   bulb). Glow the orange family by crossfading its glass to a lighter
   ORANGE fill instead - hue preserved, no filter. */
.light-string .glass { transition: fill .85s ease; }
.light-string svg[data-glow="2"] .bulb.c2 { filter: none; }
.light-string svg[data-glow="2"] .bulb.c2 .glass { fill: #ffb447; }
/* ===== Gift tags around the tree (layout test) ===== */

.tree-arena { position: relative; max-width: 980px; margin-inline: auto; }
.tree-arena .tree-stage { position: relative; z-index: 1; }
.tree-arena .gift-tag {
  position: absolute; z-index: 2;
  max-width: 235px; text-align: center; line-height: 1.1;
  padding: .5em 1.1em .55em 2em;
}

/* Twine loop threaded through each tag's hole: a closed string loop whose
   lower tip sits ON the hole and rises above the tag, pivoting at the hole */
.gift-tag::after {
  content: ""; position: absolute; pointer-events: none;
  width: 30px; height: 52px;
  left: calc(.65em - 8px);      /* centered over the hole */
  top: calc(50% - 49px);        /* bottom tip lands on the hole */
  border: 2.5px solid rgba(255, 255, 255, .85);
  border-radius: 50% 50% 48% 52% / 58% 62% 40% 40%; /* slightly lopsided twine */
  transform: rotate(-14deg);
  transform-origin: 50% 94%;
  filter: drop-shadow(0 1px 2px rgba(3, 9, 30, .4));
}
.gift-tag:nth-child(even)::after { transform: rotate(11deg); }

/* Option A: two tags each side, staggered */
.opt-a .tag-a1 { left: 1%;  top: 20%; rotate: -5deg; }
.opt-a .tag-a2 { left: -1%; top: 46%; rotate: 3deg; }
.opt-a .tag-a3 { right: -1%; top: 26%; rotate: 5deg; }
.opt-a .tag-a4 { right: 1%;  top: 54%; rotate: -3deg; }



@media (max-width: 960px) {
  /* Narrow screens: tags flow as a row under the tree */
  .tree-arena { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
  .tree-arena .gift-tag { position: static; rotate: 0deg; }
  .tree-arena .tree-stage { order: -1; width: 100%; margin-right: 0; }
}
/* ===== Reference-matched gift tags: uniform size, brass grommet, rope loop ===== */
.tree-arena .gift-tag {
  width: 250px; height: 66px; padding: 0 36px;
  justify-content: center; align-items: center;
}
.gift-tag i {
  position: absolute; left: 11px; top: 50%; translate: 0 -50%;
  width: 17px; height: 17px; border-radius: 50%;
  background: #0c1836;                       /* punched hole */
  border: 3.5px solid #dfb257;               /* brass grommet */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(0, 0, 0, .65);
}
/* Rope loop coming out of the grommet, angled up and away */
.gift-tag::after {
  content: ""; position: absolute; pointer-events: none;
  width: 56px; height: 44px;
  left: -25px; top: calc(50% - 39px);
  border: 4.5px solid #eef2f9;
  border-radius: 50%;
  transform: rotate(-56deg);
  transform-origin: 78% 88%;                 /* pivot at the grommet end */
  filter: drop-shadow(0 2px 3px rgba(3, 9, 30, .45));
}
.gift-tag:nth-child(even)::after { transform: rotate(-47deg); }

/* Left-side tags: grommet and loop on the RIGHT edge, facing the tree */
.tag-flip i { left: auto; right: 11px; }
.tag-flip::after,
.gift-tag.tag-flip:nth-child(even)::after {
  left: auto; right: -25px;
  transform: rotate(56deg);
  transform-origin: 22% 88%;
}
/* Teardrop rope loop: two strands pinch at the grommet, bulge at the top
   (replaces the circular ring, which read as a circle over the tag) */
.gift-tag::after,
.gift-tag:nth-child(even)::after,
.tag-flip::after,
.gift-tag.tag-flip:nth-child(even)::after {
  width: 64px; height: 64px; border: 0; border-radius: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M54%2056%20C30%2050%204%2036%207%2018%20C9%204%2030%202%2031%2016%20C32%2030%2046%2046%2054%2056%22%20fill%3D%22none%22%20stroke%3D%22%23eef2f9%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  left: -34px; top: calc(50% - 56px);
  transform: rotate(0deg);
  transform-origin: 84% 88%; /* the pinch point, pinned to the grommet */
  filter: drop-shadow(0 2px 3px rgba(3, 9, 30, .45));
}
.gift-tag:nth-child(even)::after { transform: rotate(10deg); }
.tag-flip::after,
.gift-tag.tag-flip:nth-child(even)::after {
  left: auto; right: -34px;
  transform: scaleX(-1) rotate(3deg);
  transform-origin: 50% 50%;
}
.gift-tag.tag-flip:nth-child(even)::after { transform: scaleX(-1) rotate(-8deg); }
/* ===== Learn More: tree-by-the-numbers ===== */
.stat-row {
  list-style: none; padding: 0; margin: 0 auto 30px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
  max-width: 980px;
}
.stat {
  flex: 1 1 150px; max-width: 185px;
  background: #fff; border-radius: 16px; padding: 18px 10px 15px;
  box-shadow: 0 10px 26px rgba(12, 31, 79, .13);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:nth-child(odd) { rotate: -1.2deg; }
.stat:nth-child(even) { rotate: 1.2deg; }
.stat:hover { transform: translateY(-5px); rotate: 0deg; box-shadow: 0 16px 34px rgba(12, 31, 79, .2); }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--red); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.learn-blurb { max-width: 46em; margin: 0 auto; text-align: center; color: var(--ink); font-size: 1.08rem; }
.learn-blurb + .learn-blurb { margin-top: 1em; }
/* ===== Santa flyover ===== */
.sleigh-track {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: visible;
}
.sleigh {
  position: absolute; left: 0; top: 0;
  width: clamp(350px, 40vw, 595px);
  opacity: 0; will-change: offset-distance;
  filter: drop-shadow(0 0 6px rgba(170, 195, 245, .3));
  /* Flies along a curved path (set by js/main.js); the anchor sits on the
     lead reindeer so the front deer leads up, over, and down; the whole
     team banks with the curve's tangent. The sprite's team line rises
     ~12deg, so auto 12deg aligns it with the flight direction. */
  offset-rotate: auto 12deg;
  offset-anchor: 97% 22%;
  offset-distance: 0%;
}
.sleigh img { width: 100%; height: auto; display: block; }
.rudolph-nose {
  position: absolute; left: 98%; top: 16%;
  width: 11px; height: 11px; border-radius: 50%;
  translate: -50% 0;
  background: #ff3b3b;
  box-shadow: 0 0 7px #ff4545, 0 0 16px rgba(255, 60, 60, .85);
  animation: nose-glow 1s ease-in-out infinite alternate;
}
@keyframes nose-glow { from { opacity: .75; } to { opacity: 1; } }
.sleigh.flying { animation: sleigh-fly 8.5s linear forwards; }
@keyframes sleigh-fly {
  0%   { opacity: 0;   offset-distance: 0%; }
  7%   { opacity: .95; }
  93%  { opacity: .95; }
  100% { opacity: 0;   offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  /* the flyover is brief and user-triggered - keep it */
  .sleigh.flying { animation-duration: 8.5s !important; }
  .rudolph-nose { animation-duration: 1s !important; animation-iteration-count: infinite !important; }
}
/* The flyover passes behind the hero title, never over it */
.hero-public .title-image { position: relative; z-index: 1; }
/* ===== City plaza backdrop behind the tree (tree stands to the left) ===== */
.tree-arena { max-width: 1100px; }
.plaza-bg {
  /* full-bleed: break out of the arena and span the viewport */
  position: absolute; left: 50%; translate: -50% 0; bottom: 118px;
  width: 100vw; max-width: none; height: auto; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(3, 9, 30, .5));
}

@media (max-width: 960px) {
  .plaza-bg { display: none; }
}
/* ===== Scene layout: the plaza fills the hero edge to edge, title in its
   sky, tree standing on the snow, button cleanly below the image ===== */
.option-note {
  display: inline-block; margin: 26px auto 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  border: 1px dashed rgba(242, 138, 48, .55); border-radius: 999px; padding: .45em 1.1em;
}
.scene {
  position: relative; width: 100vw; left: 50%; translate: -50% 0;
  overflow: hidden;
}
.plaza-bg2 {
  display: block; width: 100%; height: auto;
  margin-bottom: -4.5%; /* trim empty foreground snow */
  /* soft fade at the trimmed edge so it melts into the navy below */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent 100%);
}
.scene-title {
  position: absolute; left: 50%; top: 6%; translate: -50% 0;
  width: min(44vw, 520px); margin: 0; z-index: 3; text-align: center;
}
.scene-title img { width: 100%; height: auto; }
.scene .tree-figure {
  position: absolute; left: 50%; bottom: 4%; translate: -50% 0;
  width: clamp(290px, 29vw, 470px); margin: 0; z-index: 1;
}
.tree-figure .tree-glow { z-index: -1; }
.scene .gift-tag { position: absolute; z-index: 2; max-width: 235px; text-align: center; line-height: 1.1; padding: .5em 1.1em .55em 2em; }
.scene-stage .tree-controls { margin-top: 16px; }

/* Option A: tags at the sides */
.stag-1 { left: 9%;  top: 40%; rotate: -5deg; }
.stag-2 { left: 6%;  top: 62%; rotate: 3deg; }
.stag-3 { right: 9%; top: 42%; rotate: 5deg; }
.stag-4 { right: 6%; top: 64%; rotate: -3deg; }

/* Option B: tags dangling from the top edge, hole upward */
.top-tags .scene .gift-tag { transform-origin: 19px 50%; top: 1.5%; }
.ttag-1 { left: 10%; rotate: -62deg; }
.ttag-2 { left: 30%; rotate: -56deg; }
.ttag-3 { left: 55%; rotate: -64deg; }
.ttag-4 { left: 78%; rotate: -58deg; }
.top-tags .scene .gift-tag:hover, .top-tags .scene .gift-tag:focus-visible { transform: none; rotate: -60deg; }

@media (max-width: 960px) {
  /* Phones: plain night sky, stacked layout */
  .scene { width: auto; left: auto; translate: none; overflow: visible; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
  .plaza-bg2 { display: none; }
  .scene-title { position: static; translate: none; width: min(100%, 470px); margin: 0 auto 8px; order: -2; flex: 1 1 100%; }
  .scene .tree-figure { position: static; translate: none; width: min(100%, 430px); margin-inline: auto; order: -1; flex: 1 1 100%; }
  .scene .gift-tag { position: static; rotate: 0deg; transform-origin: center; }
}
/* Cascade fixes: these must outrank earlier .hero-public/.gift-tag rules */
.hero-public .scene .scene-title {
  position: absolute; left: 50%; top: 6%; translate: -50% 0; margin: 0;
}
.scene .stag-1 { left: 9%;  top: 40%; rotate: -5deg; }
.scene .stag-2 { left: 6%;  top: 62%; rotate: 3deg; }
.scene .stag-3 { right: 9%; top: 42%; rotate: 5deg; }
.scene .stag-4 { right: 6%; top: 64%; rotate: -3deg; }
.scene .ttag-1 { left: 10%; rotate: -62deg; }
.scene .ttag-2 { left: 30%; rotate: -56deg; }
.scene .ttag-3 { left: 55%; rotate: -64deg; }
.scene .ttag-4 { left: 78%; rotate: -58deg; }
@media (max-width: 960px) {
  .hero-public .scene .scene-title { position: static; translate: none; }
  .scene .gift-tag { position: static; rotate: 0deg; }
}
/* Crop only the artwork; overlays (tags, strings) may overflow the scene */
.scene { overflow: visible; }
.scene-crop { overflow: hidden; }

/* Option B: tags HANG DOWNWARD from the top, grouped at the corners so the
   title keeps the center sky */
.top-tags .scene .gift-tag { top: 3%; transform-origin: 19px 50%; }
.scene .ttag-1 { --hang: 58deg; left: 4%;  rotate: var(--hang); }
.scene .ttag-2 { --hang: 66deg; left: 18%; rotate: var(--hang); }
.scene .ttag-3 { --hang: 56deg; left: 70%; rotate: var(--hang); }
.scene .ttag-4 { --hang: 63deg; left: 85%; rotate: var(--hang); }
.top-tags .scene .gift-tag:hover,
.top-tags .scene .gift-tag:focus-visible {
  transform: translateY(6px) scale(1.03);
  rotate: var(--hang);
}
@media (max-width: 960px) {
  .scene .gift-tag { position: static; rotate: 0deg; transform-origin: center; }
  .top-tags .scene .gift-tag:hover { transform: translateY(-4px) scale(1.05); }
}
/* Crop empty sky off the very top of the scene; the title rides lower */
.plaza-bg2 { margin-top: -12.5%; }
/* Uniform hanging tags, pulled 20% toward center; deeper sky trim */
.scene .gift-tag { width: 232px; height: 64px; justify-content: center; padding: 0 30px 0 36px; }
.plaza-bg2 { margin-top: -16.5%; }
.scene .ttag-1 { left: 13%; }
.scene .ttag-2 { left: 25%; }
.scene .ttag-3 { left: 66%; }
.scene .ttag-4 { left: 78%; }
/* Tighter hero: close the gaps above/below the title, lift everything so
   the Light button clears the first fold; city hall stays below the title */
.hero { padding-top: 118px; }
.hero-public .scene .scene-title { top: 2.5%; }
.plaza-bg2 { margin-top: -18.2%; margin-bottom: -6%; }
.scene-stage .tree-controls { margin-top: 8px; }
@media (max-width: 760px) { .hero { padding-top: 150px; } }
/* Wavy snowbank-style edge along the bottom of the cityscape
   (replaces the straight fade; wave sits just above the cropped zone) */
.plaza-bg2 {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20900%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M0%200%20L1440%200%20L1440%20856%20C1330%20818%201215%20884%201085%20854%20C950%20822%20855%20888%20720%20858%20C590%20830%20475%20892%20345%20856%20C215%20822%20108%20872%200%20844%20Z%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20900%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M0%200%20L1440%200%20L1440%20856%20C1330%20818%201215%20884%201085%20854%20C950%20822%20855%20888%20720%20858%20C590%20830%20475%20892%20345%20856%20C215%20822%20108%20872%200%20844%20Z%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 89%;
          mask-size: 100% 89%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: top;
          mask-position: top;
}
/* Let tall artwork (the far-left pine) rise above the crop line - the
   cropped band is transparent sky, and the wave mask already hides the
   bottom, so nothing else changes */
.scene-crop { overflow: visible; }
/* flow-root re-contains the image's negative margin (the overflow:visible
   change let it collapse through and drag the scene under the header)
   while still letting the pine overflow visibly */
.scene-crop { display: flow-root; }
/* Balance: left pair tucks in to mirror the right pair's distance from the title */
.scene .ttag-1 { left: 15.5%; }
.scene .ttag-2 { left: 28%; }
/* Fine balance: right pair slightly outward */
.scene .ttag-3 { left: 67.5%; }
.scene .ttag-4 { left: 79.5%; }
/* ===== Hero nav test: ornaments (Option 1) and Christmas items (Option 2) ===== */
/* Shared: hung from the top of the scene */
.orna, .xmas-item {
  position: absolute; top: 0; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; z-index: 2;
  transition: transform .25s ease;
}
.orna:hover, .orna:focus-visible, .xmas-item:hover, .xmas-item:focus-visible { transform: translateY(6px); }
.orna-string, .item-string {
  display: block; width: 2.5px; height: 54px;
  background: rgba(228, 238, 252, .85); border-radius: 2px;
  box-shadow: 0 1px 3px rgba(3, 9, 30, .5);
}

/* Option 1: glass ornament balls with the label on the glass */
.orna-cap {
  display: block; width: 26px; height: 15px; margin-bottom: -3px;
  background: linear-gradient(180deg, #e8cf82, #9a7d2c);
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 1px 2px rgba(3, 9, 30, .5);
}
.orna-ball {
  --oc1: #ff6b5e; --oc2: #d62b2b; --oc3: #7d1010;
  display: flex; align-items: center; justify-content: center;
  width: 158px; height: 158px; border-radius: 50%; padding: 18px;
  text-align: center; font-family: var(--font-script); font-size: 1.22rem; line-height: 1.08;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 35% 30%, var(--oc1) 0%, var(--oc2) 55%, var(--oc3) 100%);
  box-shadow: inset -8px -12px 24px rgba(0, 0, 0, .3), 0 10px 24px rgba(3, 9, 30, .5);
}
.orna-green .orna-ball { --oc1: #4ecb78; --oc2: #1f8a4c; --oc3: #0d4526; }
.orna-gold  .orna-ball { --oc1: #ffe9a8; --oc2: #e0a92f; --oc3: #8f6413; }
.orna-navy  .orna-ball { --oc1: #4f7fd9; --oc2: #1e3d85; --oc3: #0c1f4f; }
.nav1-1 { left: 16%; }
.nav1-2 { left: 30%; }
.nav1-3 { left: 69%; }
.nav1-4 { left: 83%; }

/* Option 2: Christmas items with a label pill underneath */
.item-art {
  display: grid; place-items: center;
  font-size: 86px; line-height: 1; min-height: 100px;
  filter: drop-shadow(0 8px 16px rgba(3, 9, 30, .55));
}
.wreath-art { position: relative; width: 104px; height: 104px; }
.wreath-ring {
  position: absolute; inset: 4px; border-radius: 50%;
  border: 17px solid #2d7a44;
  box-shadow:
    inset 0 0 0 3px #1c5a2f, 0 0 0 3px #1c5a2f,
    inset 0 6px 10px rgba(255, 255, 255, .25), 0 6px 14px rgba(3, 9, 30, .5);
}
.wreath-art em { position: absolute; top: -14px; left: 50%; translate: -50% 0; font-style: normal; font-size: 40px; }
.item-label {
  margin-top: 8px;
  font-family: var(--font-script); font-size: 1.18rem; color: #fff;
  background: rgba(5, 13, 39, .74); border: 1px solid rgba(243, 207, 115, .65);
  padding: .28em .95em .34em; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(3, 9, 30, .45);
}
.nav2-1 { left: 15%; }
.nav2-2 { left: 30%; }
.nav2-3 { left: 69%; }
.nav2-4 { left: 84%; }

@media (max-width: 960px) {
  .orna, .xmas-item { position: static; translate: none; }
  .orna-string, .item-string { display: none; }
}
/* Artwork versions of the nav ornaments and items */
.orna-wrap { position: relative; display: block; width: 140px; }
.orna-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(3, 9, 30, .55)); }
.orna-text {
  position: absolute; left: 50%; top: 58%; translate: -50% -50%;
  width: 84%; text-align: center;
  font-family: var(--font-script); font-size: 1.18rem; line-height: 1.06;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.orna-string { margin-bottom: -4px; }
.item-img { display: block; width: auto; height: 118px; filter: drop-shadow(0 10px 20px rgba(3, 9, 30, .55)); }
.item-string { margin-bottom: -3px; }
/* String lights hidden; breathing room above the Christmas items */
.hero .light-string { display: none; }
[hidden] { display: none !important; }
.scene .xmas-item { top: 5%; }
/* "2026" under the hero title */
.title-year { display: block; width: clamp(110px, 9vw, 160px); height: auto; margin: 4px auto 0; }
/* keep the year small under the title (outranks .scene-title img { width:100% }) */
.scene-title img.title-year { width: clamp(110px, 8.5vw, 155px); margin: 2px auto 0; }
/* Title tucked higher; outer items raised so the four form an arc */
.hero-public .scene .scene-title { top: 0.8%; }
.scene .nav2-1, .scene .nav2-4 { top: 1.2%; }
/* Lift all four hero items 30px (arc preserved) */
.scene .xmas-item { top: calc(5% - 30px); }
.scene .nav2-1, .scene .nav2-4 { top: calc(1.2% - 30px); }
/* Inner items back down 30px; title raised clear of the star */
.scene .nav2-2, .scene .nav2-3 { top: 5%; }
.hero-public .scene .scene-title { top: calc(0.8% - 22px); }
@media (max-width: 960px) {
  /* Phones: each nav item (image + label) stacks on its own row */
  .scene .xmas-item { flex: 1 1 100%; }
}
/* ===== FINAL mobile overrides (kept last so they win the cascade) ===== */
@media (max-width: 960px) {
  .hero-public .scene .scene-title {
    position: static; translate: none; top: auto;
    width: min(100%, 420px); margin: 0 auto 6px;
    order: -2; flex: 1 1 100%;
  }
  .scene-title img { width: 100%; }
  .scene-title img.title-year { width: clamp(100px, 24vw, 140px); }
  .hero-public .scene .tree-figure {
    position: static; translate: none; left: auto; bottom: auto;
    width: min(100%, 430px); margin: 10px auto 0;
    order: -1; flex: 1 1 100%;
  }
  .scene .xmas-item,
  .scene .nav2-1, .scene .nav2-2, .scene .nav2-3, .scene .nav2-4 {
    position: static; translate: none; top: auto; left: auto; right: auto;
    rotate: 0deg; flex: 1 1 100%;
  }
}
/* Mobile: Light the Tree button sits right under the tree, then the menu
   items with comfortable breathing room */
@media (max-width: 960px) {
  .scene { gap: 30px 16px; }
  .scene .tree-controls { order: 0; flex: 1 1 100%; margin: 0 0 6px; }
  .scene .xmas-item { order: 1; }
  .scene-stage .tree-controls .tree-hint { height: auto; min-height: 0; margin-top: .5rem; }
}
/* Tree anchors to the artwork box (scene-crop), not the growing scene */
.scene-crop { position: relative; }
@media (max-width: 960px) {
  .hero-public .scene .scene-crop { order: -1; flex: 1 1 100%; }
}