/* =========================================================
   Joy to the Carolinas 2026 — "Heavy Heavy Christmas"
   ========================================================= */

:root {
  /* brand (sampled from the PMS swatches) */
  --purple: #7d297e;
  --lime: #9ebd3b;
  --magenta: #d41775;
  --teal: #0dafb1;
  --red: #ed1b24;
  --red-ui: #d3141c;   /* white text passes AA on this */
  --teal-ui: #0a8f91;  /* controls + large text on white */
  --teal-ink: #087a7c; /* small teal text on white */
  --gold: #f6c453;
  --gold-soft: #ffe7a3;

  /* Panthers */
  --pblue: #0085CA;     /* Panthers Process Blue: decor, glows, large text */
  --pblue-ui: #0077b5;  /* buttons/controls with white text (4.9:1) */
  --pblue-ink: #00669c; /* small blue text on white (6.2:1) */
  --pblack: #101820;
  --silver: #A5ACAF;

  /* night-in-the-store backdrop: Panthers navy */
  --night-950: #040b14;
  --night-900: #071425;
  --night-800: #0a1c33;
  --night-700: #10294a;
  --night-600: #173a63;
  --wrap: #1d6fae;

  --paper: #fffdf8;
  --cream: #fff9ed;
  --ink: #14202b;
  --ink-soft: #4c5b69;
  --line: #dfe6ec;
  --pine: #17502d;

  --radius: 28px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right));
  --maxw: 1120px;

  --font: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --script: "Lobster Two", "Georgia", serif;

  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 12px 24px -12px rgba(0, 0, 0, .4);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --stripe: repeating-linear-gradient(-60deg,
      var(--teal) 0 34px, #f3f1f5 34px 46px,
      var(--lime) 46px 80px, #f3f1f5 80px 92px,
      var(--magenta) 92px 126px, #f3f1f5 126px 138px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
  background: var(--night-900);
  overflow-x: hidden;
  overflow-x: clip;
}
/* The glows + snowflake texture live on their own fixed, composited layer.
   As a plain page background they had to be re-rasterized under every
   animated thing on every frame (that was the lag: ~25-40fps -> 60fps). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(246, 196, 83, .18), transparent 60%),
    radial-gradient(1000px 700px at 8% 28%, rgba(0, 133, 202, .30), transparent 62%),
    radial-gradient(900px 650px at 92% 70%, rgba(0, 133, 202, .22), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M40 28v24M29.6 34l20.8 12M29.6 46l20.8-12'/%3E%3Cpath d='M120 108v24M109.6 114l20.8 12M109.6 126l20.8-12'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.07'%3E%3Ccircle cx='120' cy='40' r='2.5'/%3E%3Ccircle cx='40' cy='120' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--night-800), var(--night-900) 45%, var(--night-950));
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }

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

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 800; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .tag-card :focus-visible, .footer :focus-visible { outline-color: var(--pblue-ink); }

.c-magenta { color: var(--magenta); }
.c-teal { color: var(--pblue-ui); }
.c-red { color: var(--red); }
.c-purple { color: var(--pblue-ink); }

.eyebrow {
  text-wrap: balance;
  font-weight: 800; font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 .6em;
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--purple, .eyebrow--blue { color: var(--pblue-ink); }

/* ---------- snow canvases ---------- */
.snow { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
.snow--back { z-index: 0; }
.snow--front { z-index: 50; }
body.no-snow .snow { opacity: 0; transition: opacity .6s; }

main, .footer { position: relative; z-index: 1; }

/* =========================================================
   TOP DECOR — garland swag + hanging paper snowflakes
   ========================================================= */
.topdecor {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  pointer-events: none;
}
.garland { position: relative; width: 100%; }
.garland svg { position: absolute; left: 0; top: 0; overflow: visible; }
.garland--top { height: clamp(70px, 9vw, 120px); }

.hangers { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.hanger {
  position: absolute; top: 0;
  width: var(--size, 70px);
  transform-origin: 50% 0;
  animation: sway var(--sway, 6s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.hanger__string {
  display: block; margin: 0 auto; width: 1.5px; height: var(--len, 120px);
  background: linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .7));
}
.hanger__flake { perspective: 400px; margin-top: -4px; }
.hanger__flake img {
  display: block; width: 100%; height: auto; will-change: transform;
  animation: paperturn var(--turn, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes sway { from { transform: rotate(calc(var(--amp, 4deg) * -1)); } to { transform: rotate(var(--amp, 4deg)); } }
@keyframes paperturn { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* bulbs (shared by every garland) */
/* stepped like real string lights: the SVG only repaints at each step */
.bulb { animation: twinkle var(--dur, 2.4s) steps(1, end) infinite; animation-delay: var(--d, 0s); }
.bulb__glow { animation: glow var(--dur, 2.4s) steps(1, end) infinite; animation-delay: var(--d, 0s); }
.bulb--chase { --dur: 1.6s; }
@keyframes twinkle { 0% { opacity: 1; } 50% { opacity: .5; } }
@keyframes glow { 0% { opacity: 1; } 50% { opacity: .12; } }
.is-offscreen .bulb, .is-offscreen .bulb__glow { animation-play-state: paused; }
body.no-lights .bulb, body.no-lights .bulb__glow,
body.no-lights .hanger, body.no-lights .hanger__flake img,
body.no-lights .unwrap__label, body.no-lights .dock__play::after,
body.no-lights .ornament { animation: none !important; }
body.no-lights .bulb__glow { opacity: .5; }

/* =========================================================
   HERO — the shop window
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(92px, 10.5vw, 150px) var(--gutter-r) clamp(40px, 6vw, 80px) var(--gutter-l);
  text-align: center;
}

.window {
  --w: min(1080px, 100%, calc((100svh - 360px) * 16 / 9));
  position: relative;
  width: max(var(--w), min(100%, 640px));
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 26px);
  border-radius: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)) padding-box,
    var(--night-700);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .06) inset,
    0 40px 120px -30px rgba(246, 196, 83, .45),
    0 30px 80px -20px rgba(0, 0, 0, .7);
}
.window__garland { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.window__garland svg { position: absolute; left: 0; top: 0; overflow: visible; }

.window__glass {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 1.6vw, 20px);
  background: var(--wrap) url("../assets/video/poster.jpg") center / cover no-repeat;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 0 0 7px var(--red);
  isolation: isolate;
}
.window__glass::after { /* glass glare */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0 18%, transparent 18% 30%, rgba(255, 255, 255, .07) 30% 34%, transparent 34%);
  mix-blend-mode: screen;
}
.window__video { width: 100%; height: 100%; object-fit: cover; }
.window__video--loop { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero.is-looping .window__video--loop { opacity: 1; }

.unwrap {
  position: absolute; z-index: 4; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 4px; padding: 0 0 clamp(14px, 9%, 70px);
  border: 0; background: radial-gradient(ellipse at 50% 100%, rgba(4, 11, 20, .45), transparent 55%);
  cursor: pointer;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.unwrap__label {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1.3em .6em;
  border-radius: 999px;
  font-weight: 900; font-size: clamp(16px, 2.1vw, 26px); letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-ui);
  background: var(--cream);
  border: 3px dashed var(--teal-ui);
  box-shadow: 0 0 0 5px var(--cream), 0 14px 30px -8px rgba(0, 0, 0, .55);
  animation: nudge 2.2s var(--ease-out) infinite;
}
.unwrap__label::before, .unwrap__label::after { content: "✦"; color: var(--magenta); font-size: .8em; }
.unwrap__hint {
  font-size: clamp(12px, 1.3vw, 14px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  margin-top: 8px;
}
.unwrap:hover .unwrap__label, .unwrap:focus-visible .unwrap__label { transform: scale(1.06); animation-play-state: paused; }
.unwrap:focus-visible { outline-offset: -6px; }
@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0) scale(1); }
  70% { transform: translateY(-6px) scale(1.04) rotate(-2deg); }
  80% { transform: translateY(0) scale(1) rotate(2deg); }
  90% { transform: translateY(-3px) rotate(-1deg); }
}
.hero.is-opening .unwrap, .hero.is-open .unwrap { opacity: 0; visibility: hidden; }
/* the ~1s while the song starts, before the paper tears */
.hero.is-cueing .window { animation: giftshake .32s ease-in-out infinite; }
@keyframes giftshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-.8deg) scale(1.006); } 75% { transform: rotate(.8deg) scale(1.006); } }
body.no-lights .hero.is-cueing .window { animation: none; }

.replay {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px; border: 0; border-radius: 999px;
  background: rgba(10, 28, 51, .78); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.replay svg { width: 16px; height: 16px; }
.hero.is-opening .replay, .hero.is-open .replay { opacity: .9; transform: none; }
.replay .i-skip, .replay.is-skip .i-replay { display: none; }
@media (max-width: 520px) { /* phones: a small round icon so it doesn't cover the logo */
  .replay { right: 8px; bottom: 8px; width: 34px; height: 34px; padding: 0; justify-content: center; }
  .replay span { display: none; }
  .replay::after { content: ""; position: absolute; inset: -5px; } /* 44px tap area */
}
.replay.is-skip .i-skip { display: block; }
.replay:hover { opacity: 1; }

/* hero copy */
.hero__top { position: relative; z-index: 6; margin-bottom: clamp(18px, 2.6vw, 30px); }
.hero__bottom { position: relative; z-index: 2; margin-top: clamp(26px, 3.4vw, 40px); }
.hero__title {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(6px, 1vw, 12px);
}

/* "It's time for the 8th annual Joy to the Carolinas" */
.hero__kicker {
  position: relative; display: inline-block; max-width: 34em;
  padding: 0 1.5em;
  font-weight: 800; font-size: clamp(16px, 2vw, 26px); line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  text-wrap: balance;
}
.hero__kicker::before, .hero__kicker::after { /* twinkling sparkles either side */
  content: "✦"; position: absolute; top: 50%;
  font-size: .9em; line-height: 1; letter-spacing: 0;
  color: var(--gold-soft); text-shadow: 0 0 14px rgba(246, 196, 83, .9);
  transform: translateY(-62%);
  animation: sparkle 2.4s ease-in-out infinite;
}
.hero__kicker::before { left: 0; }
.hero__kicker::after { right: 0; animation-delay: -1.2s; }
@keyframes sparkle { 0%, 100% { opacity: 1; transform: translateY(-62%) scale(1) rotate(0); } 50% { opacity: .35; transform: translateY(-62%) scale(.7) rotate(45deg); } }
.hero.is-open .hero__kicker { animation: pop .8s var(--ease-spring) both; }
body.no-lights .hero__kicker::before, body.no-lights .hero__kicker::after { animation: none; }

.hero__script {
  font-family: var(--script); font-weight: 700; font-style: italic;
  font-size: clamp(52px, 7.6vw, 104px); line-height: 1.02;
  padding-bottom: .06em;
  color: #fff;
  text-shadow:
    0 0 1px #fff,
    0 3px 0 var(--pblue),
    0 6px 0 #004b74,
    0 0 44px rgba(0, 133, 202, .55),
    0 18px 40px rgba(0, 0, 0, .55);
  letter-spacing: .005em;
}
.hero.is-open .hero__script { animation: pop .9s var(--ease-spring) .15s both; }
@keyframes pop { from { transform: scale(.85); opacity: .3; } to { transform: none; opacity: 1; } }

.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4em .8em;
  font-weight: 800; font-size: clamp(17px, 2vw, 22px); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; margin-bottom: 22px;
}
.hero__meta .dot { color: var(--gold); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 14px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --bg: var(--red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.6em;
  border: 0; border-radius: 999px;
  font-weight: 900; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.btn--candy {
  color: #fff;
  background: linear-gradient(180deg, #e8252d, var(--red-ui) 60%, #bd1018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 0 0 3px #fff,
    0 0 0 6px var(--red),
    0 14px 28px -8px rgba(237, 27, 36, .7);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.btn--candy::before { /* one soft glint that sweeps across on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 80%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn--candy:hover { transform: translateY(-2px) scale(1.03); }
.btn--candy:hover::before { transform: translateX(240%); transition: transform .8s var(--ease-out); }
.btn--candy:active { transform: translateY(1px) scale(.99); }
.btn--ghost {
  color: #fff; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn--outline { color: var(--pblue-ink); background: #fff; box-shadow: inset 0 0 0 2px var(--pblue-ink); }
.btn--outline:hover { background: #eef6fb; transform: translateY(-2px); }
.btn--sm { min-height: 44px; font-size: 15px; padding: .55em 1.3em; }
.btn--lg { min-height: 64px; font-size: 22px; padding: .7em 2.2em; }

/* =========================================================
   DIVIDER GARLANDS (between sections)
   ========================================================= */
.garland--divider { height: clamp(64px, 7.5vw, 100px); margin: 0 0 -6px; z-index: 3; pointer-events: none; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(48px, 7vw, 96px) var(--gutter-r) clamp(48px, 7vw, 96px) var(--gutter-l); }
.section__head { text-align: center; max-width: 980px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section__title, .hero__title, .letter__title, .form-head__title, .success__title { text-wrap: balance; }
.section__title {
  font-family: var(--script); font-weight: 700; font-style: italic;
  font-size: clamp(44px, 6.4vw, 80px); line-height: 1;
  color: #fff;
  text-shadow: 0 3px 0 var(--pblue), 0 6px 0 #004b74, 0 0 30px rgba(0, 133, 202, .45), 0 14px 30px rgba(0, 0, 0, .5);
}
.section__sub { margin: 16px 0 0; color: rgba(255, 255, 255, .82); font-size: 19px; }

/* paper card */
.paper {
  position: relative;
  max-width: 920px; margin: 0 auto;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.paper::before { /* cotton snow piled on top of the card */
  content: ""; position: absolute; left: -10px; right: -10px; top: -22px; height: 44px; z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cpath d='M0 30 C10 14 26 12 36 22 C44 8 66 4 76 20 C86 10 100 12 108 24 C118 6 142 4 152 22 C162 12 176 12 184 24 C194 8 220 6 228 22 C232 18 236 20 240 30 L240 44 L0 44 Z' fill='%23b9cad8' fill-opacity='.55' transform='translate(0 -1.5)'/%3E%3Cpath d='M0 30 C10 14 26 12 36 22 C44 8 66 4 76 20 C86 10 100 12 108 24 C118 6 142 4 152 22 C162 12 176 12 184 24 C194 8 220 6 228 22 C232 18 236 20 240 30 L240 44 L0 44 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 44px;
  /* shadow is drawn in the SVG: a CSS drop-shadow here left a hairline along the top edge */
  pointer-events: none;
}
.paper__stripe, .footer__stripe {
  --stripe-h: clamp(26px, 3.4vw, 40px);
  --tile: url("../assets/img/border-tile.jpg");
  --tile-r: 15.2583;   /* tile width / height, so one loop is exactly one tile */
  --drift: 90s;
  position: relative; overflow: hidden;
  height: var(--stripe-h);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f2f2f4;
}
.paper__stripe--bottom { border-radius: 0 0 var(--radius) var(--radius); --tile: url("../assets/img/border-tile-2.jpg"); --tile-r: 15.45; }
.paper__stripe::before, .footer__stripe::before { /* seamless strip, gliding like a candy cane on a conveyor */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(100% + var(--stripe-h) * var(--tile-r));
  background: var(--tile) left center / auto 100% repeat-x;
  animation: stripedrift var(--drift) linear infinite;
  will-change: transform;
}
.paper__stripe--bottom::before { animation-direction: reverse; }
.paper__stripe::after, .footer__stripe::after { /* a soft glint now and then */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: stripeglint 9s ease-in-out infinite;
  animation-delay: var(--glint-delay, 0s);
}
.paper__stripe--bottom::after { --glint-delay: -4.5s; }
@keyframes stripedrift { to { transform: translateX(calc(var(--stripe-h) * var(--tile-r) * -1)); } }
@keyframes stripeglint { 0%, 72% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
body.no-lights .paper__stripe::before, body.no-lights .footer__stripe::before,
body.no-lights .paper__stripe::after, body.no-lights .footer__stripe::after { animation: none; }
.paper__body { position: relative; padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px); }

/* letter */
.paper--letter { font-size: clamp(18px, 1.9vw, 21px); }
.paper--letter .paper__body::before, .paper--letter .paper__body::after { /* confetti flecks like the email */
  content: ""; position: absolute; top: 40px; bottom: 40px; width: 44px; pointer-events: none;
  background:
    radial-gradient(circle, var(--teal) 0 3px, transparent 4px) 8px 30px / 44px 210px repeat-y,
    radial-gradient(circle, var(--red) 0 3px, transparent 4px) 26px 110px / 44px 260px repeat-y,
    radial-gradient(circle, var(--lime) 0 2.5px, transparent 3.5px) 14px 170px / 44px 190px repeat-y,
    radial-gradient(circle, var(--pblue) 0 2.5px, transparent 3.5px) 30px 60px / 44px 240px repeat-y;
  opacity: .8;
}
.paper--letter .paper__body::before { left: 6px; }
.paper--letter .paper__body::after { right: 6px; transform: scaleX(-1); }
.letter__hello { font-weight: 700; font-size: 1.15em; margin-bottom: .4em; }
.letter__title {
  font-weight: 800; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; letter-spacing: -.005em;
  margin-bottom: .55em;
}
.letter__title span { display: inline; }
.callout {
  position: relative; text-align: center;
  margin: 1.6em 0; padding: 1.4em clamp(14px, 3vw, 36px) 1.6em;
  border-radius: 22px;
  background: #fff;
}
.callout::before { /* candy dashed frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 26px, transparent 26px 34px, var(--teal) 34px 60px, transparent 60px 68px, var(--lime) 68px 94px, transparent 94px 102px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.callout__title { font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; margin-bottom: .4em; }
.callout__bar { color: var(--gold); font-weight: 400; }
.callout p:last-of-type { margin-bottom: 1em; }

.signature { position: relative; width: min(330px, 70%); margin: .4em 0 0 -.4em; aspect-ratio: 731 / 423; }
.signature__canvas, .signature__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .signature__img { opacity: 0; }
.signature.is-static .signature__img { opacity: 1; }
.signature.is-static .signature__canvas { display: none; }

/* ---------- details / ornaments ---------- */
.ornaments { position: relative; max-width: var(--maxw); margin: 0 auto; }
.ornament-line {
  position: absolute; left: -4%; right: -4%; top: 0; height: 40px;
  border-top: 3px solid rgba(246, 196, 83, .7);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleY(-1); transform-origin: top;
}
.ornaments__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.5vw, 34px);
}
.ornament {
  --c: var(--red-ui); --c2: #8f0c12;
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding-top: var(--drop, 30px);
  transform-origin: 50% 0;
}
.ornament:nth-child(1) { --drop: 34px; }
.ornament:nth-child(2) { --drop: 64px; }
.ornament:nth-child(3) { --drop: 64px; }
.ornament:nth-child(4) { --drop: 34px; }
.ornament::before { /* ribbon/hook */
  content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: calc(var(--drop) + 6px);
  background: linear-gradient(var(--gold), var(--gold-soft)); transform: translateX(-50%);
}
.ornament--teal, .ornament--blue { --c: var(--pblue-ui); --c2: #003a5e; }
.ornament--lime { --c: var(--lime); --c2: #5b7417; }
.ornament--lime .ornament__ball { color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.ornament--magenta { --c: var(--magenta); --c2: #7f0a45; }
.ornament__cap {
  position: relative; z-index: 1; width: 44px; height: 22px; margin-bottom: -6px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #a77a1f, #ffe08a 35%, #d3a03a 60%, #8d6416);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.ornament__cap::before {
  content: ""; position: absolute; left: 50%; top: -12px; width: 16px; height: 16px; transform: translateX(-50%);
  border: 3px solid var(--gold); border-radius: 50%;
}
.ornament__ball {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: 50%;
  padding: 14%;
  background:
    radial-gradient(circle at 28% 15%, rgba(255, 255, 255, .7) 0 3%, rgba(255, 255, 255, .2) 7%, transparent 11%),
    radial-gradient(circle at 72% 92%, rgba(0, 0, 0, .2), transparent 40%),
    radial-gradient(circle at 50% 50%, var(--c) 0 55%, var(--c2) 100%);
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .6), inset 0 -10px 30px rgba(0, 0, 0, .25), 0 0 50px -10px var(--c);
  color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease-spring);
}
.ornament__ball::after { /* glitter band */
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 14%; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 3px, transparent 3px 9px);
  opacity: .0; border-radius: 50%;
}
.ornament:hover .ornament__ball { transform: rotate(-6deg) scale(1.04); }
.ornament__label { font-weight: 800; font-size: clamp(11px, 1.15vw, 14px); letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.ornament__big { font-weight: 900; font-size: clamp(26px, 3.2vw, 40px); line-height: .98; text-transform: uppercase; margin: .15em 0; }
.ornament__big--sm { font-size: clamp(19px, 2.2vw, 27px); line-height: 1.02; }
.ornament__small { font-weight: 700; font-size: clamp(12px, 1.25vw, 15px); line-height: 1.2; opacity: .95; }
.details__blurb { max-width: 760px; margin: clamp(28px, 4vw, 48px) auto 0; text-align: center; font-size: 19px; color: rgba(255, 255, 255, .88); }

/* ---------- shift tags ---------- */
.tags {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
}
.tag-card {
  --tilt: 0deg;
  position: relative; display: flex; flex-direction: column;
  padding: 50px 22px 22px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 18px;
  clip-path: polygon(50% 0, 100% 34px, 100% 100%, 0 100%, 0 34px);
  box-shadow: none;
  transform: rotate(var(--tilt));
  transition: transform .4s var(--ease-spring), background .3s;
}
.tag-card:nth-child(1) { --tilt: -2.2deg; }
.tag-card:nth-child(2) { --tilt: 1.6deg; }
.tag-card:nth-child(3) { --tilt: -1.2deg; }
.tag-card:nth-child(4) { --tilt: 2.2deg; }
.tag-card:hover { transform: rotate(0) translateY(-6px); }
.tag-card::before { /* dashed inner line */
  content: ""; position: absolute; inset: 10px; top: 10px; pointer-events: none;
  border: 2px dashed var(--pblue); border-radius: 12px;
  clip-path: polygon(50% 0, 100% 26px, 100% 100%, 0 100%, 0 26px);
}
.tag-card__hole {
  position: absolute; left: 50%; top: 18px; width: 16px; height: 16px; transform: translateX(-50%);
  border-radius: 50%; background: var(--night-800); box-shadow: 0 0 0 4px #d9c9a6;
}
.tag-card__day { font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--pblue-ink); margin: 0 0 6px; }
.tag-card__title { font-family: var(--script); font-style: italic; font-weight: 700; font-size: 30px; color: var(--red); margin-bottom: 6px; }
.tag-card__time { font-weight: 900; font-size: 22px; letter-spacing: .02em; margin: 0 0 10px; }
.tag-card__note { font-size: 16px; color: var(--ink-soft); line-height: 1.4; flex: 1; }
.tag-card__btn {
  margin-top: 6px; min-height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 900; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pblue-ink); background: #fff; box-shadow: inset 0 0 0 2px var(--pblue-ink);
  transition: background .2s, color .2s, transform .2s var(--ease-spring);
}
.tag-card__btn:hover { transform: scale(1.03); }
.tag-card__btn .when-on { display: none; }
.tag-card.is-picked { background: #fff; }
.tag-card.is-picked .tag-card__btn { color: #fff; background: var(--pblue-ink); }
.tag-card.is-picked .tag-card__btn .when-on { display: inline; }
.tag-card.is-picked .tag-card__btn .when-off { display: none; }
.tag-card__stamp {
  position: absolute; right: 14px; top: 46px;
  padding: 4px 10px; border: 3px solid var(--magenta); border-radius: 8px;
  font-weight: 900; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta);
  transform: rotate(14deg) scale(1.6); opacity: 0;
  transition: transform .35s var(--ease-spring), opacity .2s;
  pointer-events: none;
}
.tag-card.is-picked .tag-card__stamp { opacity: .9; transform: rotate(14deg) scale(1); }

/* ---------- countdown (in the hero, under the buttons) ---------- */
.hero-countdown { margin-top: clamp(20px, 2.6vw, 30px); }
.hero-countdown__title {
  margin: 0 0 14px;
  font-weight: 800; font-size: clamp(13px, 1.2vw, 15px); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft);
}
.hero-countdown__foot { margin: 14px 0 0; font-size: 15px; color: rgba(255, 255, 255, .8); letter-spacing: .04em; }
.countdown__boxes { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.cbox {
  --c: var(--red);
  position: relative; width: clamp(70px, 13vw, 128px); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, .9) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(255, 255, 255, .9) 43% 57%, transparent 57%),
    var(--c);
  box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6), inset 0 -6px 0 rgba(0, 0, 0, .18);
}
.cbox--teal, .cbox--blue { --c: var(--pblue); }
.hero-countdown .cbox { width: clamp(62px, 6.6vw, 88px); border-radius: 12px; }
.hero-countdown .cbox__num { font-size: clamp(24px, 3vw, 38px); }
.hero-countdown .cbox__unit { font-size: clamp(9px, .9vw, 11px); margin-top: 4px; }
.cbox--lime { --c: var(--lime); }
.cbox--magenta { --c: var(--magenta); }
.cbox::before { /* bow on top */
  content: ""; position: absolute; top: -12px; left: 50%; width: 34px; height: 18px; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 9px 8px at 9px 9px, #fff 0 98%, transparent) ,
    radial-gradient(ellipse 9px 8px at 25px 9px, #fff 0 98%, transparent);
}
.cbox__num {
  position: relative; z-index: 1;
  min-width: 2.1ch; padding: 0 .12em; border-radius: 8px;
  font-weight: 900; font-size: clamp(30px, 5.6vw, 56px); line-height: 1.05; font-variant-numeric: tabular-nums;
  color: var(--ink); background: #fff;
}
.cbox__unit {
  position: relative; z-index: 1; margin-top: 6px; padding: 1px 8px; border-radius: 6px;
  font-weight: 800; font-size: clamp(10px, 1.3vw, 13px); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: #fff;
}

/* ---------- memories / polaroids ---------- */
.section--memories { padding-left: 0; padding-right: 0; }
.section--memories .section__head { padding: 0 var(--gutter-r) 0 var(--gutter-l); }
.lightline { position: relative; height: 70px; margin-bottom: -46px; z-index: 2; pointer-events: none; }
.lightline svg { position: absolute; inset: 0; overflow: visible; }
/* a window exactly as wide as the photos that fit (sized in main.js); the row slides inside it */
.polaroids-viewport {
  --pad: 14px; /* room for the tilted corners and clothespins (keep < the gap, so the next photo never peeks) */
  max-width: 100%; margin: 0 auto;
  padding: 30px 0 44px;
  overflow: hidden; overflow: clip;
}
.no-js .polaroids-viewport { overflow-x: auto; }
.polaroids {
  list-style: none; margin: 0; padding: 0 var(--pad);
  display: flex; gap: clamp(30px, 2.6vw, 36px);
  width: max-content;
  will-change: transform;
}
.polaroid { flex: 0 0 auto; width: clamp(240px, 28vw, 340px); }
.polaroid__btn {
  position: relative; display: block; width: 100%; padding: 12px 12px 40px; border: 0; cursor: zoom-in; /* thick polaroid bottom */
  background: #fff; text-align: center;
  box-shadow: 0 22px 34px -14px rgba(0, 0, 0, .7);
  transform: translateY(var(--y)) rotate(var(--tilt));
  transform-origin: 50% 0;
  transition: transform .45s var(--ease-spring);
}
.polaroid__btn::before { /* clothespin */
  content: ""; position: absolute; left: 50%; top: -16px; width: 16px; height: 36px; transform: translateX(-50%);
  border-radius: 4px; background: linear-gradient(90deg, #b98b55, #e3bd85 45%, #c69560); box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
  z-index: 2;
}
.polaroid__btn:hover, .polaroid__btn:focus-visible { transform: translateY(calc(var(--y) - 6px)) rotate(0) scale(1.03); }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }

/* ---------- sign-up form ---------- */
.section--signup { padding-bottom: clamp(70px, 9vw, 120px); }
.paper--form { max-width: 880px; }
.form-head { text-align: center; margin-bottom: clamp(24px, 3.4vw, 36px); }
.form-head__title { font-family: var(--script); font-style: italic; font-weight: 700; font-size: clamp(46px, 6.4vw, 76px); color: var(--pblue-ui); margin-bottom: 10px; }
.form-head__sub { color: var(--ink-soft); font-size: 18px; margin: 0; }

.joyform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; }
.field__label, .group__legend {
  font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--pblue-ink);
  margin-bottom: 8px;
}
.field__input {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font: 500 19px/1.2 var(--font); color: var(--ink);
  background: #fff;
  border: 2px solid #738496; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #8796a3; }
.field__input:hover { border-color: #4c5b69; }
.field__input:focus { outline: none; border-color: var(--pblue-ui); box-shadow: 0 0 0 4px rgba(0, 133, 202, .22); }
.field__input:focus-visible { outline: 3px solid var(--pblue-ink); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(237, 27, 36, .12); }
.field__err { min-height: 1.3em; margin: 6px 2px 0; font-size: 15px; font-weight: 700; color: #c4121a; }
.field__err:empty { min-height: 0; margin: 0; }

.group { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.group__legend { padding: 0; margin-bottom: 12px; }
.group__hint { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); font-size: 15px; }
.group__note:empty { display: none; }
.group__note { margin: 10px 0 0; font-size: 15px; color: var(--pblue-ink); font-weight: 700; }
.group[aria-invalid="true"] .choice__box, .group[aria-invalid="true"] .chip span { border-color: rgba(237, 27, 36, .55); }

.choices { display: grid; gap: 12px; }
.choices--shifts { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center;
  min-height: 72px; padding: 12px 16px;
  border: 2px solid #738496; border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring), box-shadow .2s;
}
.choice__check {
  grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid #738496; background: #fff; position: relative;
  transition: background .2s, border-color .2s;
}
.choice__check::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 14px;
  border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease-spring);
}
.choice__main { font-weight: 800; font-size: 18px; line-height: 1.2; }
.choice__sub { font-size: 16px; color: var(--ink-soft); line-height: 1.2; }
.choice:hover .choice__box { border-color: #4c5b69; }
.choice input:checked + .choice__box { border-color: var(--pblue-ui); background: #eef6fb; box-shadow: 0 8px 18px -10px rgba(0, 133, 202, .6); }
.choice input:checked + .choice__box .choice__check { background: var(--pblue-ui); border-color: var(--pblue-ui); }
.choice input:checked + .choice__box .choice__check::after { transform: rotate(45deg) scale(1); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--pblue-ink); outline-offset: 3px; }

.choices--sizes { grid-template-columns: repeat(7, 1fr); gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; border-radius: var(--radius-sm);
  border: 2px solid #738496; background: #fff;
  font-weight: 900; font-size: 19px; letter-spacing: .04em;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-spring);
}
.chip:hover span { border-color: #4c5b69; }
.chip input:checked + span { color: #fff; background: var(--pblue-ui); border-color: var(--pblue-ui); transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(0, 119, 181, .8); }
.chip input:focus-visible + span { outline: 3px solid var(--pblue-ink); outline-offset: 3px; }
@media (forced-colors: active) {
  .chip input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .choice input:checked + .choice__box { border-width: 4px; }
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joyform__actions { margin-top: 34px; text-align: center; }
.joyform__submit { min-width: min(100%, 340px); }
.joyform__submit .when-busy { display: none; }
.joyform.is-busy .joyform__submit { pointer-events: none; opacity: .85; }
.joyform.is-busy .joyform__submit .when-idle { display: none; }
.joyform.is-busy .joyform__submit .when-busy { display: inline; }
.joyform.is-busy .joyform__submit::before { transition: none; animation: btnglint 1.2s ease-in-out infinite; }
@keyframes btnglint { from { transform: translateX(-120%); } to { transform: translateX(240%); } }
.joyform__status { min-height: 1.4em; margin: 14px 0 0; font-weight: 700; color: var(--ink-soft); }
.joyform__status.is-error { color: #c4121a; }

/* success */
.success { text-align: center; outline: none; }
.success__badge { width: min(360px, 80%); margin: 0 auto 18px; animation: pop .9s var(--ease-spring) both; }
.success__title { font-family: var(--script); font-style: italic; font-weight: 700; font-size: clamp(38px, 5.4vw, 62px); color: var(--magenta); margin-bottom: 10px; }
.success__sub { color: var(--ink-soft); font-size: 19px; }
.success__list { list-style: none; padding: 0; margin: 18px auto 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; }
.success__list li {
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 16px;
  background: #eef6fb; color: var(--pblue-ink); box-shadow: inset 0 0 0 2px rgba(0, 133, 202, .35);
}
.success__list li.is-size { background: #fdeef5; color: #a10f59; box-shadow: inset 0 0 0 2px rgba(212, 23, 117, .3); }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- footer ---------- */
.footer { color: var(--ink); background: var(--paper); }
.footer__stripe { --stripe-h: clamp(30px, 4vw, 48px); --tile: url("../assets/img/border-tile-2.jpg"); --tile-r: 15.45; --drift: 110s; --glint-delay: -2s; border-radius: 0; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--gutter-r) 110px var(--gutter-l); text-align: center; }
.footer__presented { font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.footer__logos { width: min(900px, 100%); height: auto; margin: 0 auto 18px; mix-blend-mode: multiply; } /* the logo JPG's white drops out on the cream */
.footer__contact { font-weight: 700; font-size: 18px; }
.footer__contact a { color: var(--pblue-ink); }
.footer__fine { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   DOCK — music / snow / lights
   ========================================================= */
.dock {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 20, 37, .9);
  box-shadow: 0 0 0 2px rgba(0, 133, 202, .7), 0 16px 34px -10px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dock svg { width: 22px; height: 22px; }
.dock__play {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--pblue-ui); box-shadow: 0 0 0 3px #fff inset;
}
.dock__play::after { /* attention ring while waiting */
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold);
  opacity: 0;
}
.dock.is-waiting .dock__play::after { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
.dock .i-pause, .dock.is-playing .i-play { display: none; }
.dock.is-playing .i-pause { display: block; }
.dock__track { display: flex; align-items: center; gap: 8px; width: 170px; overflow: hidden; }
.dock__title { position: relative; flex: 1; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.dock__title span { display: inline-block; padding-left: 100%; animation: ticker 14s linear infinite; animation-play-state: paused; }
.dock.is-playing .dock__title span { animation-play-state: running; }
@keyframes ticker { to { transform: translateX(-100%); } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 16px; border-radius: 2px; background: var(--gold); transform-origin: 50% 100%; transform: scaleY(.25); }
.dock.is-playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
body.no-lights .dock.is-playing .eq i { animation: none; transform: scaleY(.6); }
.eq i:nth-child(2) { animation-delay: -.3s !important; background: var(--teal); }
.eq i:nth-child(3) { animation-delay: -.6s !important; background: var(--magenta); }
.eq i:nth-child(4) { animation-delay: -.15s !important; background: var(--lime); }
@keyframes eq { from { transform: scaleY(.19); } to { transform: scaleY(1); } }
.dock__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; opacity: .9; transition: background .2s, opacity .2s;
}
.dock__btn:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.dock__btn[aria-pressed="false"][data-snow-toggle], .dock__btn[aria-pressed="false"][data-lights-toggle] { opacity: .45; }
.dock .i-mute, .dock.is-muted .i-vol { display: none; }
.dock.is-muted .i-mute { display: block; }
.dock__vol { display: flex; align-items: center; }
.dock__vol input {
  width: 92px; accent-color: var(--gold); cursor: pointer;
}
.dock__vol[hidden] { display: none; }
.dock__sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .2); margin: 0 2px; }
@media (max-width: 399px) { /* small phones: hardware volume keys do this; keep the dock compact */
  .dock__vol { display: none; }
}
@media (pointer: coarse) { /* touch: full 44px targets in the dock */
  .dock__btn { width: 44px; height: 44px; }
  .dock__vol input { height: 44px; }
}

/* toast */
.toast {
  position: fixed; z-index: 61; left: 50%; bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
  max-width: min(92vw, 460px);
  padding: 12px 18px; border-radius: 16px;
  color: var(--ink); background: var(--cream);
  font-weight: 700; font-size: 16px; text-align: center;
  box-shadow: 0 0 0 3px var(--pblue), 0 18px 36px -12px rgba(0, 0, 0, .7);
  transform: translate(-50%, 20px); opacity: 0; transition: transform .4s var(--ease-spring), opacity .3s;
}
.toast { pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: 24px;
  background: rgba(4, 11, 20, .94);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox__fig img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border: 10px solid #fff; border-bottom-width: 54px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.lightbox__close, .lightbox__nav {
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12);
  width: 52px; height: 52px; font-size: 34px; line-height: 1;
}
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }

/* confetti overlay */
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tag-card.reveal { transform: translateY(28px) rotate(var(--tilt)); }
.js .tag-card.reveal.is-in { transform: rotate(var(--tilt)); }
.js .tag-card.reveal.is-in:hover { transform: rotate(0) translateY(-6px); }
.js .ornament.reveal { transform: translateY(-30px) rotate(-8deg); transition-timing-function: var(--ease-spring); }
.js .ornament.reveal.is-in { transform: none; animation: ornswing 3.4s ease-in-out 1s infinite alternate; }
.ornaments__list .ornament:nth-child(2).is-in { animation-delay: 1.4s; }
.ornaments__list .ornament:nth-child(3).is-in { animation-delay: 1.8s; }
.ornaments__list .ornament:nth-child(4).is-in { animation-delay: 1.2s; }
@keyframes ornswing { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .tags { grid-template-columns: repeat(2, 1fr); }
  .ornaments__list { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .ornament:nth-child(n) { --drop: 30px; }
  .ornament-line { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .joyform__grid { grid-template-columns: 1fr; }
  .choices--shifts { grid-template-columns: 1fr; }
  .choices--sizes { grid-template-columns: repeat(4, 1fr); }
  .dock__track { display: none; }
  .dock__vol input { width: 64px; }
  .dock { padding: 6px; }
  .paper--letter .paper__body::before, .paper--letter .paper__body::after { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; max-width: 360px; }
  .unwrap__hint { display: none; }
  .lightbox { grid-template-columns: 1fr; padding: 12px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .lightbox__fig img { max-height: calc(100vh - 180px); border-width: 6px; border-bottom-width: 46px; }
}
@media (max-width: 520px) {
  .tags { grid-template-columns: 1fr; max-width: 380px; }
  .ornaments__list { gap: 12px; }
  .ornament__ball { padding: 12%; }
  .countdown__boxes { gap: 8px; }
  .tag-card:nth-child(n) { --tilt: 0deg; }
  .polaroid { width: 78vw; }
}

/* PERFORMANCE: the two always-moving decorations get their own layers too */
.hanger, .ornament { will-change: transform; }

/* =========================================================
   REDUCED MOTION — keep the decor, drop the movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hanger, .hanger__flake img, .bulb, .bulb__glow, .dock__title span { animation: none !important; }
  .paper__stripe::before, .paper__stripe::after, .footer__stripe::before, .footer__stripe::after { animation: none !important; }
  .paper__stripe::after, .footer__stripe::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .snow, .dock, .topdecor, .garland, .unwrap, .lightline, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}

/* preview-mode ribbon (only while JOY_CONFIG.submit.mode is 'demo') */
.demo-ribbon {
  margin: 0 auto 22px; padding: 10px 14px; max-width: 560px;
  border-radius: 12px; text-align: center;
  font-weight: 700; font-size: 15px; color: #6a4b00;
  background: #fff3cf; box-shadow: inset 0 0 0 2px #f6c453;
}
