:root {
  --ink: #24221f;
  --paper: #f6f2ec;
  --sand: #f0e8e0;
  --accent: #ff5f42;
  --accent-dark: #b9552f;
  --red: #f02719;
  --red-dark: #f02719;
  --sky: #aec5e0;
  --peach: #ffd6cc;
  --dark2: #2a2622;
  --line: #3a3530;
  --muted: #cfc6bb;
  --f-display: 'Unbounded', sans-serif;
  --f-body: 'Instrument Sans', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --chrome: linear-gradient(180deg,#ffffff 0%,#d4d7de 26%,#6d7280 46%,#1d1f24 50%,#5a6170 53%,#dde1e8 68%,#fbf8f4 84%,#a7adb8 100%);
  --chrome-soft: linear-gradient(180deg,#ffffff 0%,#d4d7de 30%,#8e939d 48%,#dde1e8 62%,#fbf8f4 100%);
  --chrome-btn: linear-gradient(180deg,#ffffff 0%,#d4d7de 40%,#8e939d 52%,#e9ecf0 100%);
  --chrome-card: linear-gradient(165deg,#f7f8fb 0%,#c9cdd5 34%,#8e939d 50%,#d3d8df 66%,#f7f8fa 100%);
  --chrome-30: linear-gradient(180deg,#ffffff 0%,#d4d7de 13%,#6d7280 23%,#1d1f24 25%,#5a6170 27%,#dde1e8 34%,#fbf8f4 42%,#a7adb8 50%,#ffffff 58%,#d4d7de 63%,#6d7280 73%,#1d1f24 75%,#5a6170 77%,#dde1e8 84%,#fbf8f4 92%,#a7adb8 100%);
  --surf: radial-gradient(circle at 32% 24%,rgba(255,255,255,.95) 0%,rgba(255,255,255,0) 22%),linear-gradient(165deg,#f7f8fb 0%,#b9bec8 30%,#3a3d45 48%,#1c1d21 52%,#5e6575 60%,#e2e5ea 78%,#ffffff 100%);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #f6f2ec; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
input, select, textarea, button { font: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

@keyframes morph { 0%,100% { border-radius: 58% 42% 63% 37%/45% 55% 45% 55% } 33% { border-radius: 40% 60% 45% 55%/60% 40% 60% 40% } 66% { border-radius: 63% 37% 52% 48%/38% 62% 38% 62% } }
@keyframes float { 0%,100% { translate: 0 0 } 50% { translate: 0 -26px } }
@keyframes shimmer { 0% { background-position: 50% 0% } 100% { background-position: 50% 100% } }
@keyframes haze { 0% { transform: scaleY(-1) skewX(-8deg) scaleX(1) } 100% { transform: scaleY(-1) skewX(6deg) scaleX(1.04) } }
@keyframes spin { to { rotate: 360deg } }
@keyframes wobble { 0%,100% { rotate: -6deg; translate: 0 0 } 50% { rotate: 6deg; translate: 0 -14px } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

.page { font-family: var(--f-body); color: var(--ink); position: relative; z-index: 0; }

/* ---------- background ---------- */
.bg { position: fixed; inset: -6%; z-index: -1; overflow: hidden; background: #f3e2d8; will-change: transform; }
.glow { position: absolute; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); animation: float 16s ease-in-out infinite; }
.sun { position: fixed; left: 62%; top: 0; z-index: -1; width: min(34vw,420px); aspect-ratio: 1; transform: translate(-50%,16vh); pointer-events: none; will-change: transform; }
.sun-halo { position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle,rgba(255,214,204,.55),rgba(255,214,204,0) 62%); }
.sun-disc { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg,#ffe2c4,#ffd6cc 55%,#f2a26f); box-shadow: 0 0 80px 10px rgba(242,162,111,.35); }
.sun-hot { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg,#f7b98a,#ff5f42 60%,#b9552f); opacity: 0; }
.night { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: linear-gradient(180deg,#121836 0%,#262350 50%,#3d2a4c 100%); }
.stars { position: absolute; inset: 0; opacity: 0; background-size: 420px 420px;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%,#fff,transparent),radial-gradient(1px 1px at 28% 42%,#fff,transparent),radial-gradient(1.5px 1.5px at 46% 12%,#fff,transparent),radial-gradient(1px 1px at 63% 30%,#fff,transparent),radial-gradient(2px 2px at 78% 14%,#fff,transparent),radial-gradient(1px 1px at 88% 46%,#fff,transparent),radial-gradient(1.5px 1.5px at 8% 62%,#fff,transparent),radial-gradient(1px 1px at 36% 74%,#fff,transparent),radial-gradient(1.5px 1.5px at 56% 58%,#fff,transparent),radial-gradient(1px 1px at 92% 78%,#fff,transparent); }
.prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg,#ff5f42,var(--red)); }

/* ---------- type helpers ---------- */
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-soft-text { background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-warm { background: linear-gradient(180deg,#ffffff 0%,#d4d7de 30%,#8e939d 48%,#f0cfae 62%,#fff7ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.mono-plain { font-family: var(--f-mono); font-size: 13px; }
.small { font-size: 12px; }
.ls1 { letter-spacing: .1em; }
.ls08 { letter-spacing: .08em; }
.body16 { font-size: 16px; line-height: 1.5; }
.lh145 { line-height: 1.45; }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(40px,7vw,96px); letter-spacing: -.05em; line-height: 1; filter: drop-shadow(0 6px 8px rgba(20,12,8,.35)); }
.h2-car { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(36px,6vw,80px); letter-spacing: -.05em; line-height: 1; }
.form-title { font-family: var(--f-display); font-weight: 700; font-size: 20px; }

/* ---------- layout helpers ---------- */
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.gap6 { gap: 6px; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.gap14 { gap: 14px; }
.gap28 { gap: 28px; }
.col { display: flex; flex-direction: column; }
.mt16 { margin-top: 16px; }
.self-start { align-self: flex-start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,var(--min,240px)),1fr)); gap: 16px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }

/* ---------- buttons ---------- */
.btn { padding: 15px 26px; border-radius: 999px; font-weight: 600; letter-spacing: .06em; transition: background .2s, color .2s; }
.btn-sm { padding: 14px 24px; border-radius: 999px; font-weight: 600; letter-spacing: .06em; transition: background .2s, color .2s, filter .2s; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--red); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-chrome { color: var(--ink); background: var(--chrome-btn); }
.btn-chrome:hover { color: var(--ink); filter: brightness(1.06); }
.btn-outline-light { border: 1.5px solid var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.submit { padding: 14px; border-radius: 999px; border: 0; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: filter .2s, opacity .2s; }
.submit:hover { filter: brightness(1.06); }
.submit:disabled { opacity: .6; cursor: progress; }
.tilt { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; rotate: -3deg; background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 700; font-size: 15px; box-shadow: 0 8px 0 var(--sky), 0 14px 24px rgba(20,12,8,.3); transition: rotate .25s var(--ease), background .2s, color .2s, box-shadow .2s; }
.tilt:hover { rotate: 2deg; background: var(--red); color: #fff; box-shadow: 0 8px 0 var(--ink); }
.tilt-wa { background: #25d366; color: #0b2a17; box-shadow: 0 8px 0 var(--ink), 0 14px 24px rgba(20,12,8,.3); }
.tilt-wa:hover { background: #25d366; color: #0b2a17; box-shadow: 0 8px 0 var(--ink), 0 14px 24px rgba(20,12,8,.3); }
.chrome-round { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; font-size: 20px; color: var(--ink); background: var(--chrome-btn); box-shadow: 0 8px 20px rgba(0,0,0,.3); }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 28px; }
.card-sand { background: var(--sand); }
.card-dark { background: var(--ink); color: var(--paper); }
.card-chrome { background: var(--chrome-card); box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(20,12,8,.25); }
.lift { transition: transform .35s var(--ease), box-shadow .35s; }
.lift:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 30px 60px rgba(20,12,8,.28); }
.deal-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px,3.6vw,50px); letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 5vw; background: rgba(255,255,255,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(20,18,16,.12); }
.nav-logo { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: -.04em; background: none; color: var(--red); }
.nav-logo:hover { color: var(--red-dark); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
.nav-links a { white-space: nowrap; }
.nav-cta { padding: 10px 18px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; background: var(--chrome-btn); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(20,12,8,.2); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(820px,100vh); display: flex; flex-direction: column; padding: 28px 5vw 0; }
.hero-glow { position: absolute; left: 50%; top: 46%; width: min(1100px,130vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle,rgba(255,170,90,.75) 0%,rgba(232,110,60,.45) 32%,rgba(232,118,74,0) 66%); mix-blend-mode: screen; pointer-events: none; }
.hero-top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.hero-kicker { position: relative; margin: 5vh 0 0; text-align: center; font-family: var(--f-display); font-weight: 900; font-size: clamp(28px,6vw,84px); letter-spacing: -.04em; line-height: 1; filter: drop-shadow(0 8px 12px rgba(20,12,8,.3)); }
.hero-kicker span { display: block; white-space: nowrap; }
.hero-30-wrap { position: relative; }
.big30 { font-family: var(--f-display); font-weight: 900; text-align: center; font-size: clamp(200px,44vw,600px); line-height: .9; letter-spacing: -.08em; background: var(--chrome-30); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { filter: drop-shadow(0 30px 40px rgba(90,30,0,.4)); animation: shimmer 5s ease-in-out infinite alternate; }
.hero-reflect { position: relative; height: clamp(60px,10vw,150px); overflow: hidden; opacity: .45; filter: blur(2px); -webkit-mask-image: linear-gradient(180deg,#000 0%,transparent 80%); mask-image: linear-gradient(180deg,#000 0%,transparent 80%); }
.haze { transform-origin: 50% 0; margin-top: -4%; transform: scaleY(-1); animation: haze 2.6s ease-in-out infinite alternate; }
.hero-bottom { position: relative; margin-top: auto; padding-bottom: 44px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-intro { display: flex; flex-direction: column; gap: 18px; max-width: 440px; }
.glass-pill { margin: 0; font-size: 19px; line-height: 1.45; text-wrap: pretty; padding: 16px 20px; border-radius: 22px; background: rgba(255,255,255,.42); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.6); }
.countdown { display: flex; gap: 10px; }
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 74px; padding: 14px 10px; border-radius: 20px; background: rgba(20,18,16,.9); color: var(--paper); }
.cd-num { font-family: var(--f-display); font-weight: 900; font-size: 30px; background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: 11px; letter-spacing: .1em; }

/* photo stickers with spinning text ring */
.badge { position: absolute; z-index: 3; aspect-ratio: 1; animation: wobble 5s ease-in-out infinite; }
.badge svg, .lock-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 16s linear infinite; }
.badge svg text, .lock-badge svg text { font-family: var(--f-display); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; }
.badge-photo { position: absolute; inset: 17%; border-radius: 50%; padding: 5px; background: var(--surf); box-shadow: 0 18px 40px rgba(20,12,8,.4); }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); padding: 18px 0; color: var(--paper); }
.marquee-track { display: flex; width: max-content; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: 22px; animation: marquee 36s linear infinite; }

/* ---------- glass sections ---------- */
.glass { padding: clamp(64px,9vw,112px) 5vw clamp(32px,5vw,64px); margin: clamp(16px,3vw,32px) 3vw; border-radius: 36px; background: rgba(255,250,245,.5); backdrop-filter: blur(30px) saturate(1.9); -webkit-backdrop-filter: blur(30px) saturate(1.9); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 30px 80px rgba(20,12,8,.18); }
.glass-rsvp { position: relative; overflow: hidden; padding-top: clamp(72px,10vw,128px); }
.reveal.pre { opacity: 0; transform: translateY(70px) scale(.97); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

/* ---------- plan ---------- */
.plan-row { display: grid; grid-template-columns: repeat(4,minmax(240px,1fr)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; margin: -8px -4px -16px; }
.day { gap: 14px; scroll-snap-align: start; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; }
.day-name { font-family: var(--f-display); font-weight: 900; font-size: 36px; letter-spacing: -.04em; }
.day-sat { box-shadow: 0 30px 70px rgba(120,50,10,.35); }
.emoji { font-size: 28px; }
.day-title { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.dress { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: linear-gradient(165deg,#f7f8fb 0%,#c9cdd5 34%,#8e939d 50%,#e8c7a5 66%,#fff6ec 100%); color: var(--ink); }
.dress .small { font-size: 11px; letter-spacing: .1em; }
.dress-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; }

/* ---------- stay ---------- */
.carousel { position: relative; aspect-ratio: 16/9; max-height: 78vh; width: 100%; border-radius: 28px; overflow: hidden; background: var(--ink); touch-action: pan-y; }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease, transform 6s ease; opacity: 0; transform: scale(1); }
.carousel img.on { opacity: 1; transform: scale(1.04); }
.carousel-shade { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px; display: flex; justify-content: flex-end; background: linear-gradient(180deg,transparent,rgba(20,18,16,.65)); color: #fbf8f4; pointer-events: none; }
.car-prev { left: 16px; }
.car-next { right: 16px; }
.dots { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.dots button { height: 10px; width: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; transition: width .3s; background: rgba(20,18,16,.3); }
.dots button.on { width: 28px; background: var(--red); }
.house { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; border-radius: 28px; color: var(--ink); transition: background .2s; }
.house:hover { background: var(--peach); color: var(--ink); }
.house-street { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px,2.2vw,24px); line-height: 1.2; }
.tiny-link { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; }
.pay { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 28px; padding: clamp(24px,4vw,40px); border-radius: 28px; background: var(--ink); color: var(--paper); }
.pay-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px,4vw,44px); letter-spacing: -.03em; line-height: 1; }
.pay-form, .pay-thanks { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--dark2); }
.pay-thanks { justify-content: center; gap: 8px; height: 100%; }
.pay-form .form-title { font-size: 18px; }

/* ---------- dark forms ---------- */
.dinput { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); outline: none; width: 100%; }
.dinput:focus { border-color: var(--accent); }
.dinput::placeholder { color: #9b9187; }
.linput { padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--ink); background: rgba(255,255,255,.6); color: var(--ink); outline: none; width: 100%; }
.linput:focus { border-color: var(--accent); }
textarea.linput { resize: vertical; }

/* ---------- travel ---------- */
.route { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 28px; border: 1.5px solid var(--ink); }
.route-title { font-family: var(--f-display); font-weight: 700; font-size: 26px; }

/* ---------- carpool ---------- */
.carpool { padding: clamp(24px,4vw,48px); border-radius: 36px; background: var(--ink); color: var(--paper); }
.dform { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: var(--dark2); }
.choice { border: 1px solid var(--line); cursor: pointer; padding: 9px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; background: transparent; color: var(--paper); }
.choice.on { background: var(--paper); color: var(--ink); }
.seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seats-ctl { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; }
.round-btn:hover { border-color: var(--paper); }
.seats-num { font-family: var(--f-display); font-weight: 900; font-size: 24px; min-width: 24px; text-align: center; }
.board { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); gap: 12px; }
.board-empty { grid-column: 1/-1; padding: 28px; border-radius: 24px; border: 1.5px dashed var(--line); font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--muted); }
.car { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; background: var(--chrome-card); color: var(--ink); }
.car-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.car-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.x { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink); padding: 0 4px; }
.seat-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.seat-dots span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); }
.seat-dots span.taken { background: var(--red); border-color: var(--red); }
.looking { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.looking-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 600; }
.looking-pill.mine { padding-right: 8px; }
.looking-pill button { border: 0; background: rgba(20,18,16,.15); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; color: var(--ink); padding: 0; }
.pending { opacity: .55; }

/* ---------- music ---------- */
.music { gap: 20px; align-items: center; }
.homework { padding: 10px 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; letter-spacing: .04em; }
.playlist { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 28px; }
.pl-day { background: linear-gradient(180deg,#e6eef7 0%,#cfdeee 50%,var(--sky) 100%); }
.pl-day .pl-title { color: var(--red); }
.pl-day > .mono-plain { color: var(--red-dark); font-weight: 600; }
.pl-night { background: var(--ink); color: var(--paper); }
.pl-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px,3.4vw,40px); letter-spacing: -.03em; line-height: 1; }
.cover { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); transition: filter .2s; }
.cover:hover { filter: brightness(1.06); }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; height: auto; }
.polaroid { position: relative; justify-self: center; width: min(100%,300px); padding: 14px 14px 18px; background: #fff; rotate: 3deg; box-shadow: 0 24px 50px rgba(20,12,8,.3); display: flex; flex-direction: column; gap: 12px; }
.polaroid video { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 30%; }
.polaroid-cap { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.tape { position: absolute; top: -16px; left: 50%; translate: -50% 0; width: 110px; height: 30px; rotate: -4deg; background: rgba(240,39,25,.78); z-index: 1; }

/* ---------- guest book ---------- */
.trailer { position: relative; aspect-ratio: 16/9; max-height: 80vh; border-radius: 32px; overflow: hidden; background: var(--ink); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: repeating-linear-gradient(135deg,#221f1c 0 12px,#2a2622 12px 24px); color: var(--paper); text-align: center; padding: 16px; }
.play { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surf); color: var(--ink); font-size: 30px; }
.gb-wrap { position: relative; margin-top: 16px; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); gap: 16px; align-content: center; transition: filter .6s; }
.gb-grid > div { aspect-ratio: 4/5; }
.gb-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.gb-wrap.locked .gb-grid { filter: blur(14px) saturate(1.2); min-height: clamp(760px,60vw,860px); }
.gb-lock { position: absolute; inset: -8px; display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 32px; background: rgba(20,18,16,.28); overflow: hidden; }
.gb-badge { position: absolute; z-index: 2; aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 16px 30px rgba(20,18,16,.45)); animation: wobble 5s ease-in-out infinite; }
.gb-badge .ring { position: absolute; inset: 0; border-radius: 50%; animation: spin 16s linear infinite; }
.gb-badge .ph { position: absolute; inset: 15%; border-radius: 50%; padding: 4px; background: var(--surf); }
.gb-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lock-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 560px; padding: clamp(28px,4vw,44px); border-radius: 32px; background: var(--ink); color: var(--paper); text-align: center; rotate: -1.5deg; box-shadow: 0 30px 80px rgba(20,18,16,.45); }
.lock-badge { position: relative; width: 150px; height: 150px; flex: none; animation: wobble 5s ease-in-out infinite; }
.lock-badge .badge-photo { box-shadow: none; padding: 4px; }
.lock-badge .lock-icon { position: absolute; right: -4px; bottom: -4px; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.lock-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(28px,4vw,48px); letter-spacing: -.04em; line-height: 1; }
.lock-text { font-size: 16px; line-height: 1.5; color: #ece6de; text-wrap: pretty; }
.lock-count { padding: 10px 18px; border-radius: 999px; background: var(--chrome-btn); color: var(--ink); font-size: 14px; font-weight: 600; }
.gb-open { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 24px; align-items: start; }
.note-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 28px; background: var(--sand); }
.photo-pick { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.photo-pick span { padding: 10px 16px; border-radius: 999px; border: 1.5px dashed var(--ink); }
.notes { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,200px),1fr)); gap: 16px; }
.notes-empty { grid-column: 1/-1; padding: 28px; border-radius: 24px; border: 1.5px dashed var(--ink); font-family: var(--f-mono); font-size: 13px; line-height: 1.6; }
.note { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; background: #fff; box-shadow: 0 14px 30px rgba(20,12,8,.2); }
.note img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); }
.note-msg { font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; }

/* ---------- rsvp / pack / bring ---------- */
.rsvp-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px,9vw,132px); letter-spacing: -.05em; line-height: .95; filter: drop-shadow(0 10px 16px rgba(20,12,8,.35)); }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps .tilt { margin-top: auto; } }
.step { display: flex; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.5); }
.step-n { font-weight: 600; }
.step-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pack { position: relative; margin-top: 56px; }
.pack-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px; }
.pack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.h2-pack { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(32px,4.5vw,56px); letter-spacing: -.04em; line-height: 1; }
.pack-item { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.55); }
.pack-item:focus-visible { outline: 2px solid var(--accent); }
.pack-box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--paper); }
.pack-item.on .pack-box { background: var(--red); border-color: var(--red); }
.pack-item.on .pack-label { text-decoration: line-through; }
.pack-label { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.gifts { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 28px; background: var(--ink); color: var(--paper); }
.gifts-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px,7vw,96px); letter-spacing: -.05em; line-height: .9; }
.bring { margin-top: 16px; }
.bring-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); gap: 8px; }
.bring-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.55); }
.bring-who { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; }
.bring-who.open { background: var(--red); color: #fff; }
.bring-note { font-size: 14px; }
.bring-empty { grid-column: 1/-1; padding: 20px; border-radius: 18px; border: 1.5px dashed var(--ink); font-family: var(--f-mono); font-size: 13px; line-height: 1.6; }

.footer { padding: 56px 5vw; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.footer-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px,3vw,32px); }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 50; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 13px; box-shadow: 0 14px 30px rgba(20,12,8,.35); }
.toast.err { background: var(--accent-dark); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 2px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero { padding: 20px 16px 0; min-height: max(720px,100svh); }
  .hero-top { font-size: 11px; }
  .glass { margin: 12px 8px; padding-left: 18px; padding-right: 18px; border-radius: 28px; }
  .countdown { gap: 6px; }
  .cd-box { min-width: 64px; }
  .cd-num { font-size: 24px; }
  .chrome-round { width: 42px; height: 42px; font-size: 16px; }
  .car-prev { left: 10px; } .car-next { right: 10px; }
  .gb-lock { padding: 12px; }
  .lock-badge { width: 110px; height: 110px; }
  .gb-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .gb-grid img { border-radius: 18px; }
  .gb-grid > div { aspect-ratio: 4/5; }
  .gb-wrap.locked .gb-grid { min-height: 0; height: 450px; overflow: hidden; grid-template-rows: repeat(2, 1fr); }
  .gb-wrap.locked .gb-grid > div { aspect-ratio: auto; height: auto; min-height: 0; }
  #guestbook .h2 { margin-bottom: 18px !important; }
  #guestbook.glass { padding-top: 48px; }
  .gb-lock { padding: 12px 8px; }
  .lock-card { padding: 22px 18px; gap: 10px; max-width: 290px; }
  .lock-title { font-size: 26px; }
  .lock-text { font-size: 14px; }
  .lock-count { font-size: 13px; padding: 8px 14px; }
  .gb-badge { width: 84px !important; }
  .gb-badge:nth-child(3), .gb-badge:nth-child(5), .gb-badge:nth-child(7) { display: none; }
  .gb-open { margin-top: 20px; }
}

/* phones: rows of cards become swipeable carousels to keep the page short */
@media (max-width: 640px) {
  .hscroll { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 18px;
    margin-inline: -18px; padding: 6px 18px 18px; scrollbar-width: none; align-items: stretch; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll > * { scroll-snap-align: start; min-width: 0; }
  .hscroll:has(> :only-child) { grid-auto-columns: 100%; }
  .hscroll > .board-empty, .hscroll > .notes-empty, .hscroll > .bring-empty { grid-column: auto; }
  .hscroll.music { align-items: center; }
  .hscroll .polaroid { width: 100%; rotate: 2deg; }
  .carpool .hscroll { margin-inline: calc(-1 * clamp(24px,4vw,48px)); padding-inline: clamp(24px,4vw,48px); scroll-padding-inline: clamp(24px,4vw,48px); }
  .plan-row.hscroll { margin: 0 -18px; }
  .pack-card, .gifts { padding: 20px; }
  .pack-item { padding: 12px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* ---------- bright red accents ---------- */
.sec-head > .mono, .sec-head > .mono-plain:not(.homework), .red-label { color: var(--red-dark); font-weight: 600; }
.deal-red { color: var(--sky); }
.btn-red { background: var(--sky) !important; color: var(--ink) !important; }
.choice.on { background: var(--sky); border-color: var(--sky); color: var(--ink); }

/* ---------- phones: hero stickers get their own row under the 30 ---------- */
@media (max-width: 640px) {
  .hero-top { order: 1; } .hero-kicker { order: 2; } .hero-30-wrap { order: 3; } .hero-reflect { order: 4; }
  #heroBadges { order: 5; position: relative; z-index: 3; display: flex; justify-content: center; align-items: flex-start; margin: -28px 0 22px; }
  .hero-bottom { order: 6; margin-top: 0; }
  .big30 { font-size: min(52vw, 230px); }
  #heroBadges .badge { position: relative !important; inset: auto !important; flex: none; width: 104px !important; margin: 0 -4px; }
  #heroBadges .badge:nth-child(1) { order: 2; width: 122px !important; margin-top: 18px; }
  #heroBadges .badge:nth-child(2) { order: 1; }
  #heroBadges .badge:nth-child(3) { order: 3; }
}
.carpool .sec-head > .mono { color: var(--sky); }

/* ---------- more red, only on light / silver surfaces ---------- */
.red-text { color: var(--red); }
.hero-date { color: var(--red); font-weight: 600; }
.glass-pill b { color: var(--red); }
.card-sand .day-name { color: var(--red); }
.house > .mono-plain.small, .route > .mono-plain:first-child { color: var(--red-dark); font-weight: 600; }
.house .tiny-link { color: var(--red); }
.house:hover .tiny-link { color: var(--ink); }
.step-n { color: var(--red); font-size: 15px; }
#packCount, #bringCount { color: var(--red-dark); font-weight: 600; }
.car-name { color: var(--red); }
.polaroid-cap::after { content: " ♥"; color: var(--red); }
/* pack list on silver, bring list on light blue */
.pack-card:not(.bring) { background: var(--chrome-card); box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(20,12,8,.2); }
.pack-card.bring { background: linear-gradient(180deg,#e6eef7 0%,#cfdeee 50%,var(--sky) 100%); }
.pack-card:not(.bring) .pack-item { background: rgba(255,255,255,.6); }
.bring-empty { background: rgba(255,255,255,.35); }
/* dark brushed metal ("gunmetal") to pair with the silver cards */
.card-gunmetal { background: linear-gradient(165deg,#5b606b 0%,#30333a 30%,#16171b 50%,#2b2e35 68%,#4d525d 100%); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 24px 60px rgba(20,12,8,.3); }
.card-chrome .day-name { color: var(--red); }
.day.card-chrome .mono-plain { color: var(--ink); }
/* frosted glass card with a chrome rim */
.card-frost { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.62) 0%, rgba(214,227,241,.45) 55%, rgba(174,197,224,.5) 100%); backdrop-filter: blur(20px) saturate(1.7); -webkit-backdrop-filter: blur(20px) saturate(1.7); box-shadow: inset 0 1px 0 #fff, 0 22px 55px rgba(20,12,8,.2); }
.card-frost::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(165deg, #ffffff, #8e939d 45%, #ffffff 70%, #a7adb8); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
/* slightly 3D cards: bevelled light edge, thick bottom "slab" edge, soft tilt */
.card3d { --edge: #8e939d; transform: perspective(1000px) rotateX(5deg); transform-origin: 50% 100%;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 2px 0 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.14),
    0 7px 0 var(--edge), 0 9px 0 rgba(0,0,0,.08), 0 22px 34px rgba(20,12,8,.24), 0 44px 70px rgba(20,12,8,.14); }
.card3d.card-frost { --edge: #a9b6c6; }
.card3d.card-dark, .card3d.card-gunmetal { --edge: #0b0b0d; box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 2px 0 0 rgba(255,255,255,.1), inset 0 -3px 0 rgba(0,0,0,.4), 0 7px 0 var(--edge), 0 22px 34px rgba(20,12,8,.3), 0 44px 70px rgba(20,12,8,.18); }
.card3d.lift:hover { transform: perspective(1000px) rotateX(0deg) translateY(-8px); }
@media (max-width: 640px) { .card3d { transform: none; } }
/* plan option D: clear frosted glass with a chrome rim */
.card-glass { position: relative; background: linear-gradient(170deg, rgba(255,255,255,.38), rgba(255,255,255,.14)); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 20px 50px rgba(20,12,8,.16); }
.card-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(165deg, #ffffff, #8e939d 45%, #ffffff 70%, #a7adb8); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-glass .day-name { color: var(--red); }
.day-sat.card3d { box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 2px 0 0 rgba(255,255,255,.1), inset 0 -3px 0 rgba(0,0,0,.4), 0 7px 0 #0b0b0d, 0 22px 34px rgba(20,12,8,.3), 0 44px 70px rgba(20,12,8,.18); }
/* brushed light-blue metal */
.card-bluemetal { background: linear-gradient(165deg,#f2f6fb 0%,#d3e1f0 32%,#93abcb 50%,#c6d6ea 66%,#eef3f9 100%); }
.card3d.card-bluemetal { --edge: #7f97b8; }
/* soundtrack: equal-height playlist cards, bigger polaroid in a brushed-silver frame */
.music { align-items: stretch; }
.music .playlist .self-start { margin-top: auto; }
.music .polaroid { align-self: center; }
@media (min-width: 1000px) { .music { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr); } }
.polaroid { width: min(100%, 380px); padding: 16px 16px 22px; border-radius: 6px;
  background: linear-gradient(160deg,#fdfdfe 0%,#d9dce2 22%,#9da2ac 44%,#eef0f3 58%,#b4b9c2 78%,#f4f5f7 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 0 #8e939d, 0 30px 60px rgba(20,12,8,.35); }
.polaroid video { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.8); outline: 1px solid rgba(20,18,16,.25); }
.polaroid-cap { font-size: 18px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
/* lighter 3D, closer to the frosted intro box */
.card3d { transform: perspective(1000px) rotateX(2deg); border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 rgba(142,147,157,.55), 0 14px 30px rgba(20,12,8,.14); }
.card3d.card-dark, .card3d.card-gunmetal, .day-sat.card3d { border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 rgba(0,0,0,.55), 0 14px 30px rgba(20,12,8,.2); }
/* blue card: soft frosted blue, no metallic shimmer */
.card-bluemetal { background: linear-gradient(170deg, rgba(226,236,247,.85) 0%, rgba(174,197,224,.8) 100%); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.card3d.card-bluemetal { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 0 rgba(127,151,184,.45), 0 14px 30px rgba(20,12,8,.14); }
/* deal row matches the pack / bring / gifts cards */
.deal-silver { background: var(--chrome-card); box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(20,12,8,.2); }
.deal-blue { background: linear-gradient(180deg,#e6eef7 0%,#cfdeee 50%,var(--sky) 100%); color: var(--ink); }
/* plan: no scroll box on desktop (it clipped the card shadows into a hard line); dark frosted Saturday aligned with the rest */
@media (min-width: 641px) {
  .plan-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: visible; padding: 0; margin: 0; }
}
.card-glass-dark { position: relative; color: var(--paper); background: linear-gradient(170deg, rgba(36,34,31,.82), rgba(20,18,16,.72)); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 20px 50px rgba(20,12,8,.22); }
.card-glass-dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(165deg, rgba(255,255,255,.7), rgba(142,147,157,.35) 45%, rgba(255,255,255,.55) 70%, rgba(167,173,184,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-glass-dark.day-sat { box-shadow: 0 20px 50px rgba(20,12,8,.22); }

/* guest-book stickers: same spinning text-ring style as the hero */
.gb-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 16s linear infinite; }
.gb-badge svg text { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.gb-badge .badge-photo { position: absolute; inset: 17%; border-radius: 50%; padding: 4px; background: var(--surf); box-shadow: 0 10px 24px rgba(20,12,8,.35); }
.gb-badge .badge-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gb-badge { filter: drop-shadow(0 18px 30px rgba(20,18,16,.4)); }
/* white outline around the "sent it?" box */
.pay-form, .pay-thanks { border: 1.5px solid rgba(255,255,255,.85); }
/* Saturday: solid black, light 3D (bevel + edge + chrome rim), no tilt so it stays aligned */
.card-glass-dark { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-glass-dark.day-sat { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.4), 0 4px 0 #0b0b0d, 0 20px 50px rgba(20,12,8,.28); }
.card-glass-dark.day-sat { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 20px 50px rgba(20,12,8,.28); }
.tilt { white-space: nowrap; }

/* ---------- phones: card groups stack up as you scroll ---------- */
@media (max-width: 640px) {
  .stack { display: block !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .stack > * { position: sticky; top: calc(var(--stack-top, 104px) + var(--i, 0) * 14px); margin-bottom: 16px; transform-origin: 50% 0;
    transition: transform .25s ease-out, filter .25s ease-out; will-change: transform; box-shadow: 0 -8px 28px rgba(20,12,8,.14), 0 18px 40px rgba(20,12,8,.16); }
  .stack > *:last-child { margin-bottom: 0; }
  .glass-rsvp { overflow: clip; }
  /* see-through cards get frosted so the card underneath doesn't show through */
  .stack > .card-glass, .stack > .step, .stack > .route { background: rgba(250,246,242,.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
  .stack > .polaroid { width: 100%; rotate: 0deg; }
  .stack > .day { min-height: 0; }
}

@media (max-width: 640px) {
  .stack > * { box-sizing: border-box; }
  .carpool .stack > * { box-shadow: 0 -8px 24px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.3); }
  .carpool .board { margin-top: 20px; }
}

}
@media (max-width: 640px) {
  .glass { padding-top: 36px; padding-bottom: 24px; }
  .glass .sec-head { margin-bottom: 16px; }
  .stack > .day { padding: 20px; gap: 9px; }
  .stack > .day .emoji { font-size: 22px; }
  .stack > .day .dress { padding: 12px; }
}

/* ---------- phones: native sticky stacking (replaces the JS pinning) ---------- */
@media (max-width: 640px) {
  .stack > * { position: sticky; top: calc(var(--stack-top, 100px) + var(--i, 0) * 10px); transform: none !important; transition: none; will-change: auto; }
  .stick-head { position: sticky; top: calc(var(--nav-h, 90px) + 6px); z-index: 5; padding: 10px 14px; margin-left: -14px; margin-right: -14px; border-radius: 18px;
    background: rgba(250,246,242,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
  .stick-head .h2 { font-size: 34px; }
}
/* phones: venmo + paypal side by side */
@media (max-width: 640px) {
  .pay .row-wrap { flex-wrap: nowrap; gap: 8px; }
  .pay .row-wrap .btn-sm { flex: 1 1 0; text-align: center; padding: 13px 10px; font-size: 12px; white-space: nowrap; }
  .hscroll > .route { background: rgba(250,246,242,.6); }
}

/* phones: snappy sideways rows with dots */
@media (max-width: 640px) {
  .hscroll { scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 10px !important; }
  .hscroll > * { scroll-snap-align: center; scroll-snap-stop: always; }
  .stack.music > .polaroid { display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 640px) {
  .stick-head { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; margin-left: 0; margin-right: 0; border-radius: 0; }
  .stick-head .h2 { font-size: clamp(40px,7vw,96px); }
}
@media (max-width: 640px) { .stick-head { top: calc(var(--nav-h, 90px) + 16px); } }
/* phones: swipe rows have room for their cards' shadows (no clipped rectangle), softer shadows */
@media (max-width: 640px) {
  .hscroll { padding: 16px 18px 28px !important; margin: -16px -18px -20px !important; }
  .carpool .hscroll { padding-left: clamp(24px,4vw,48px) !important; padding-right: clamp(24px,4vw,48px) !important; margin-left: calc(-1 * clamp(24px,4vw,48px)) !important; margin-right: calc(-1 * clamp(24px,4vw,48px)) !important; }
  .hscroll > * { box-shadow: 0 8px 18px rgba(20,12,8,.14) !important; }
  .carpool .hscroll > * { box-shadow: 0 8px 18px rgba(0,0,0,.3) !important; }
  .nav { background: rgba(246,242,236,.86); }
}

/* hero intro: plain bold line, no card */
.hero-line { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.22; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
@media (max-width: 640px) {
  .hero-line { font-size: 22px; }
  .hero-intro .row-wrap { flex-wrap: nowrap; }
  .hero-intro .btn { flex: 1 1 auto; text-align: center; padding: 15px 14px; white-space: nowrap; }
  .hero-bottom { gap: 22px; }
  .countdown { width: 100%; }
  .cd-box { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 640px) {
  .hero-bottom { justify-content: center; text-align: center; }
  .hero-intro { align-items: center; max-width: none; width: 100%; }
  .hero-line { text-align: center; }
  .hero-intro .row-wrap { justify-content: center; width: 100%; }
  .countdown { justify-content: center; }
}

/* fewer black buttons: red RSVP, silver countdown */
.hero .btn-dark { background: var(--red); color: #fff; }
.hero .btn-dark:hover { background: var(--ink); color: #fff; }
.cd-box { background: var(--chrome-card); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(20,12,8,.16); }
.cd-num { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }

/* hero stack wrapper: invisible on desktop */
.hero-stack { display: contents; }
@media (max-width: 640px) { .hero { overflow: clip; } }

/* phones: stack sections pin title + cards together; spacing tweaks */
@media (max-width: 640px) {
  .stick-head { position: static; background: none; padding: 0; margin: 0; }
  .stick-head.is-sticky { position: sticky; z-index: 2; }
  .stick-head .sec-head { margin-bottom: 0; }
  .glass, .glass.glass-rsvp { padding-top: 26px; }
  #stay .hscroll { margin-top: 4px !important; }
  #rsvp .col.gap28 { gap: 14px; }
}

/* phones: the 30 pins, the sticker row slides up onto it as one group, then both leave together */
@media (max-width: 640px) {
  .hero-stack { display: block; order: 2; position: relative; }
  .hero-stack .hero-reflect { display: none; }
  .hero-stack .hero-30-wrap { position: sticky; z-index: 1; }
  .hero-stack #heroBadges { position: sticky; z-index: 3; }
  .hero-stack + .hero-bottom, .hero-bottom { margin-top: 26px; }
}
/* hero top line in blue (deeper than --sky so it reads on the light glow) */
:root { --sky-deep: #4f78aa; }
.hero-top span, .hero-top .hero-date { color: var(--sky-deep); font-weight: 600; }

/* intro line: editorial serif (option B) */
.hero-line { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.01em; }
.hero-line em { color: var(--red); font-style: italic; }
@media (max-width: 640px) { .hero-line { font-size: 30px; } }
@media (max-width: 640px) { .stick-head:not(.is-sticky) { margin-bottom: 20px; } }

/* top line back to black */
.hero-top span, .hero-top .hero-date { color: var(--ink); }
/* baby-blue menu bar with a chunkier link font */
.nav { background: rgba(174,197,224,.9); border-bottom-color: rgba(79,120,170,.25); }
.nav-links { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.nav-links a:hover { color: var(--red); }
@media (max-width: 640px) { .nav-links { font-size: 12px; gap: 18px; } }
/* menu bar uses the same soft blue as the blue cards */
.nav, .nav:where(*) { background: linear-gradient(180deg, rgba(230,238,247,.96) 0%, rgba(207,222,238,.96) 100%); }
/* countdown back to black with chrome numbers */
.cd-box { background: rgba(20,18,16,.92); color: var(--paper); box-shadow: 0 10px 24px rgba(20,12,8,.18); }
.cd-num { background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ticker band in the soft card blue */
.marquee { background: linear-gradient(180deg,#e6eef7 0%,#cfdeee 55%,var(--sky) 100%); color: var(--ink); border-block: 1px solid rgba(79,120,170,.2); }

/* dates + place live in the menu bar now */
.nav-brand { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.nav-brand:hover { color: inherit; }
.nav-when { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--red); white-space: nowrap; }
@media (max-width: 640px) { .nw-long { display: none; } .nav-when { font-size: 10px; } .nav { flex-wrap: wrap; } .nav-brand { flex: 1 1 auto; min-width: 0; } }
/* red "x" in the headline */
.hero-kicker .kx { font-style: normal; color: var(--red); -webkit-text-fill-color: var(--red); }
/* intro line a touch smaller */
.hero-line { font-size: clamp(24px, 2.2vw, 31px); }
@media (max-width: 640px) { .hero-line { font-size: 26px; } }

/* banner: brushed silver, black type, slower */
.marquee { background: var(--chrome-card); color: var(--ink); border-block: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.12); }
.marquee-track { animation-duration: 80s; }
/* plan day names in black */
.card-glass .day-name, .card-sand .day-name, .card-chrome .day-name { color: var(--ink); }
.nav-when { color: var(--ink); }
@media (max-width: 640px) { .hero-line { font-size: 10.2vw; line-height: 1.02; letter-spacing: -.02em; text-wrap: pretty; max-width: none; width: 100%; } }

/* red sticker = RSVP button */
.badge-rsvp { display: block; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.badge-rsvp .badge-photo { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.badge-rsvp:hover .badge-photo, .badge-rsvp:focus-visible .badge-photo { transform: scale(1.06); }
.badge-rsvp:active .badge-photo { transform: scale(.96); }
.rsvp-pill { position: absolute; left: 50%; bottom: 9%; z-index: 2; translate: -50% 0; padding: .55em 1.1em; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid #fff; font: 700 clamp(11px,1.1vw,14px)/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; box-shadow: 0 8px 18px rgba(20,12,8,.3); transition: background .2s, color .2s; animation: rsvp-pulse 2.4s ease-in-out infinite; }
.badge-rsvp:hover .rsvp-pill { background: #fff; color: var(--red); }
@keyframes rsvp-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@media (max-width: 640px) { .rsvp-pill { font-size: 10px; bottom: 4%; } }
@media (prefers-reduced-motion: reduce) { .rsvp-pill { animation: none; } }

/* deal cards float directly on the background, no glass panel */
.glass.glass-bare { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; border-radius: 0; padding-top: clamp(24px,3vw,40px); padding-bottom: clamp(16px,2vw,24px); }

/* phones: intro text is the third layer of the hero stack */
@media (max-width: 640px) {
  .hero-stack .hero-intro { position: sticky; z-index: 4; width: 100%; }
  .hero-bottom { margin-top: 30px !important; }
  .hero-stack .hero-30-wrap, .hero-stack #heroBadges { transition: filter .15s linear, opacity .15s linear; }
}

/* intro line: no red, a size smaller */
.hero-line em { color: inherit; }
.hero-line { font-size: clamp(22px, 1.9vw, 27px); }
@media (max-width: 640px) { .hero-line { font-size: 7.6vw; line-height: 1.06; } }
@media (max-width: 640px) {
  .hero-stack .countdown { position: sticky; z-index: 5; display: flex; transition: filter .15s linear, opacity .15s linear; }
  .hero-stack .hero-intro { transition: filter .15s linear, opacity .15s linear; }
  .hero-bottom:empty { display: none; }
}

/* phones: banner sits right under the hero stack, no empty space */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-bottom: 30px; }
  .hero-bottom[hidden] { display: none !important; }
}

/* phones: sections only fade in; a transform on the section would drag its pinned title and cards along */
@media (max-width: 640px) { .reveal.pre { transform: none; transition: opacity .8s var(--ease); } }

/* header 2: liquid silver bar */
.nav { background: linear-gradient(180deg,#ffffff 0%,#dfe2e7 40%,#b9bec8 58%,#eef0f3 100%); border-bottom-color: rgba(36,34,31,.12); }

/* headline M: squishy Bagel letters in 3D liquid chrome (filter set per size in app.js) */
.liquid { font-family: 'Bagel Fat One', 'Arial Black', sans-serif !important; font-weight: 400 !important; letter-spacing: 0 !important; background: none !important; color: #c8ccd2; -webkit-text-fill-color: #c8ccd2; }
.liquid .lq { color: #c8ccd2; -webkit-text-fill-color: #c8ccd2; filter: var(--lqf); }
.liquid .kx { font-style: normal; color: var(--red); -webkit-text-fill-color: var(--red); }
.hero-kicker .lq { display: inline; }
.big30.liquid { animation: none; line-height: 1; }
.shimmer.liquid { filter: drop-shadow(0 30px 40px rgba(90,30,0,.35)); }

/* banner closer to the countdown */
@media (max-width: 640px) { .hero { padding-bottom: 0; } }
@media (min-width: 641px) { .hero-bottom { padding-bottom: 20px; } .hero { min-height: 0; } }

/* the 30 drawn with the Etsy liquid-chrome numbers */
.big30.etsy30 { display: flex; justify-content: center; align-items: flex-end; background: none; font-size: 0; line-height: 0; letter-spacing: 0; animation: none; }
.etsy30 img { height: clamp(320px, 44vw, 640px); width: auto; display: block; }
.etsy30 img + img { margin-left: -3%; }
.hero-30-wrap .etsy30 { filter: drop-shadow(0 26px 36px rgba(20,12,8,.35)); }
.big30.haze.etsy30 { animation: haze 2.6s ease-in-out infinite alternate; }
@media (max-width: 640px) {
  .etsy30 img { height: min(62vw, 330px); }
}

/* header: silver-to-gold like the stargazing glam card */
.nav { background: linear-gradient(100deg,#f7f8fb 0%,#c9cdd5 30%,#9ea3ad 48%,#e8c7a5 70%,#fff6ec 100%); border-bottom-color: rgba(36,34,31,.12); }
@media (max-width: 640px) {
  .hero-stack .hero-kicker { position: sticky; z-index: 0; transition: filter .15s linear, opacity .15s linear; }
}

/* titles spelled with the Etsy chrome letters (built in app.js) */
.etsy-type { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; letter-spacing: 0 !important; font-family: 'Arial Black', var(--f-display) !important; font-weight: 900 !important; line-height: 1 !important; filter: drop-shadow(0 8px 12px rgba(20,12,8,.25)) !important; }
.etsy-type .el-w { display: inline-flex; align-items: flex-end; white-space: nowrap; vertical-align: bottom; }
.etsy-type .el { height: .95em; width: auto; display: block; margin: 0 -.035em; }
.etsy-type .el-sp { display: inline-block; width: .28em; }
.etsy-type .el-p { display: inline-block; font-size: .8em; line-height: 1; padding-bottom: .04em; margin-left: .02em; }
.etsy-type .kx { display: inline-flex; vertical-align: bottom; margin: 0 .06em; }
.hero-kicker.etsy-type span { white-space: nowrap; }
.card-dark .etsy-type, .pay .etsy-type { color: #f6f2ec !important; -webkit-text-fill-color: #f6f2ec !important; }
.pay .etsy-type { filter: drop-shadow(0 0 1.5px rgba(255,255,255,.55)) drop-shadow(0 4px 14px rgba(255,255,255,.14)) !important; }

/* one metal everywhere: the stargazing glam silver-to-champagne, a bit darker and less golden */
:root {
  --chrome: linear-gradient(180deg,#f4f5f7 0%,#b3b8c1 26%,#6a6f79 45%,#26282e 50%,#6b6660 53%,#c9b6a4 66%,#eee7df 84%,#a3a7af 100%);
  --chrome-soft: linear-gradient(180deg,#f1f2f4 0%,#b3b8c1 30%,#7a7f89 48%,#c9b6a4 64%,#efe8e0 100%);
  --chrome-btn: linear-gradient(180deg,#f1f2f4 0%,#b8bcc4 40%,#7a7f89 52%,#c9b6a4 78%,#ebe4dc 100%);
  --chrome-card: linear-gradient(165deg,#eceef1 0%,#b3b8c1 34%,#767b85 50%,#c7b3a1 68%,#ece4dc 100%);
  --chrome-30: linear-gradient(180deg,#f4f5f7 0%,#b3b8c1 13%,#6a6f79 23%,#26282e 25%,#6b6660 27%,#c9b6a4 34%,#eee7df 42%,#a3a7af 50%,#f4f5f7 58%,#b3b8c1 63%,#6a6f79 73%,#26282e 75%,#6b6660 77%,#c9b6a4 84%,#eee7df 92%,#a3a7af 100%);
}
.dress { background: var(--chrome-card); }
.chrome-warm { background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; }
.nav { background: linear-gradient(100deg,#eceef1 0%,#b3b8c1 30%,#868b95 48%,#c7b3a1 70%,#ece4dc 100%); }

/* phones: the hero blur follows the finger directly (no easing lag) on its own GPU layer */
@media (max-width: 640px) {
  .hero-stack .hero-kicker, .hero-stack .hero-30-wrap, .hero-stack #heroBadges, .hero-stack .hero-intro, .hero-stack .countdown { transition: none !important; will-change: filter, opacity; }
}

/* bigger hero headline */
.hero-kicker { font-size: clamp(40px, 7.6vw, 116px); }
@media (max-width: 640px) { .hero-kicker { font-size: 10.6vw; } }

/* Etsy titles: one line each, bigger on desktop (phones are sized to fit in app.js) */
.etsy-type.h2, .etsy-type.h2-car, .etsy-type.rsvp-big { white-space: nowrap; }
.etsy-type.h2 { font-size: clamp(48px, 8.4vw, 124px); }
.etsy-type.h2-car { font-size: clamp(44px, 7.2vw, 104px); }
.etsy-type .el { flex-shrink: 0; max-width: none; }
.carpool .etsy-type { filter: drop-shadow(0 0 1.5px rgba(255,255,255,.55)) drop-shadow(0 4px 14px rgba(255,255,255,.14)) !important; }

/* phones: frosted veils ride on top of each stacked layer and blur what they slide over (GPU, no JS per frame) */
@media (max-width: 640px) {
  .hero-stack .hero-kicker, .hero-stack .hero-30-wrap, .hero-stack #heroBadges, .hero-stack .hero-intro, .hero-stack .countdown { will-change: auto; filter: none; opacity: 1; }
  .hero-stack .hero-kicker.etsy-type { filter: drop-shadow(0 8px 12px rgba(20,12,8,.25)) !important; }
  .hero-stack .hero-30-wrap::before, .hero-stack #heroBadges::before, .hero-stack .hero-intro::before, .hero-stack .countdown::before {
    content: ""; position: absolute; left: -24px; right: -24px; top: -28px; bottom: 0; z-index: -1; pointer-events: none;
    background: rgba(243,226,216,.38);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px);
    opacity: 0; transition: opacity .35s ease;
  }
  .hero-stack .hero-intro::before, .hero-stack .countdown::before { bottom: 0; }
  .hero-stack.is-stacking .hero-30-wrap::before, .hero-stack.is-stacking #heroBadges::before, .hero-stack.is-stacking .hero-intro::before, .hero-stack.is-stacking .countdown::before { opacity: 1; }
  .hero-stack #heroBadges, .hero-stack .hero-intro, .hero-stack .countdown { isolation: isolate; }
}

/* polaroid frame in the same silver-champagne metal */
.polaroid { background: var(--chrome-card); box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.45), 0 6px 0 #767b85, 0 30px 60px rgba(20,12,8,.35); }

/* the x between the names: a plain red x */
.etsy-type .kx { font-family: var(--f-display) !important; font-weight: 900; font-style: normal; font-size: .82em; line-height: 1; color: var(--red) !important; -webkit-text-fill-color: var(--red) !important; align-self: center; margin: 0 .12em; padding-bottom: .08em; }

/* comparison mode (?silver): headline in the regular silver font */
html.kicker-silver .hero-kicker { font-size: clamp(28px, 6.4vw, 92px); }
@media (max-width: 640px) { html.kicker-silver .hero-kicker { font-size: 8.4vw; } }

/* phones: the banner is the top layer of the hero stack, full bleed */
@media (max-width: 640px) {
  .hero-stack .marquee { position: sticky; z-index: 6; margin-inline: -16px; }
}
@media (max-width: 640px) {
  .hero-stack .countdown::before { bottom: -34px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 14px), transparent 100%); }
}

/* carpool board lives inside "getting there" */
.carpool-in-travel { margin-top: clamp(28px, 4vw, 48px); scroll-margin-top: 100px; }

/* preview: solid black headline */
html.kicker-black .hero-kicker { background: none !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; filter: none !important; }
html.kicker-allblack .hero-kicker .kx { color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; }

/* carpool title matches "pay a share for the stay" */
.h2-car.pay-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; filter: none; }

/* ---------- hero stack v3: sharp layer + pre-blurred twin, crossfaded on scroll ---------- */
.lyr-sharp { display: inherit; flex-direction: inherit; flex-wrap: inherit; justify-content: inherit; align-items: inherit; align-content: inherit; gap: inherit; text-align: inherit; width: 100%; will-change: opacity; }
.lyr-blur { position: absolute; inset: 0; padding: inherit; display: inherit; flex-direction: inherit; flex-wrap: inherit; justify-content: inherit; align-items: inherit; align-content: inherit; gap: inherit; text-align: inherit;
  filter: blur(8px); opacity: 0; pointer-events: none; will-change: opacity; }
.lyr-blur * { animation-play-state: paused !important; }
/* the old frosted veils are retired */
.hero-stack .hero-30-wrap::before, .hero-stack #heroBadges::before, .hero-stack .hero-intro::before, .hero-stack .countdown::before { display: none !important; }

/* desktop: smaller headline + 30 so the banner shows on the first screen, and the same stacking */
@media (min-width: 641px) {
  .hero-kicker { font-size: clamp(34px, min(5.2vw, 8vh), 92px); margin-top: 2vh; }
  .etsy30 img { height: min(38vw, 48vh); }
  .hero.hero-stacked { overflow: clip; }
  .hero.hero-stacked .hero-reflect { display: none; }
  .hero.hero-stacked .hero-kicker { position: sticky; z-index: 0; }
  .hero.hero-stacked .hero-30-wrap { position: sticky; z-index: 1; }
  .hero.hero-stacked #heroBadges { position: sticky; z-index: 3; height: 0; }
  .hero.hero-stacked .hero-bottom { position: sticky; z-index: 4; padding-bottom: 22px; }
  .hero.hero-stacked .marquee { position: sticky; z-index: 6; margin-inline: -5vw; }
  .hero.hero-stacked #heroBadges .badge:nth-child(1) { top: calc(min(38vw, 48vh) * .08) !important; }
  .hero.hero-stacked #heroBadges .badge:nth-child(2) { top: calc(min(38vw, 48vh) * .02) !important; }
  .hero.hero-stacked #heroBadges .badge:nth-child(3) { top: calc(min(38vw, 48vh) * .55) !important; }
}

/* stronger blur on covered layers; copies stay rasterized (near-zero opacity) so the first fade is instant on iPhone */
.lyr-blur { filter: blur(14px); opacity: .01; transform: translateZ(0); }
.lyr-sharp { transform: translateZ(0); }
/* banner: its own GPU layer so the scrolling text doesn't shimmer while it is pinned */
.marquee { transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; contain: paint; }
.marquee-track { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-font-smoothing: antialiased; }

/* phones: the blurred copy is a flat pre-rendered image */
.lyr-blur.bmp { filter: none; padding: 0; display: block; overflow: visible; }
.lyr-blur.bmp img { position: absolute; left: 50%; top: 0; translate: -50% 0; max-width: none; display: block; }

/* scroll-driven fades (Safari 26+, Chrome): the browser crossfades sharp -> blurred copy from the scroll position */
@keyframes lyr-out { from { opacity: 1; } to { opacity: .12; } }
@keyframes lyr-in { from { opacity: .01; } to { opacity: .85; } }
.hero.sda .lyr-sharp { animation: lyr-out linear both; animation-timeline: scroll(root block); }
.hero.sda .lyr-blur { animation: lyr-in linear both; animation-timeline: scroll(root block); }
.hero.measuring .hero-stack > *, .hero.measuring .hero-bottom, .hero.measuring .marquee { position: static !important; }

/* ---------- banner docks under the menu for the rest of the page; its text fades once docked ---------- */
.marquee.pinned { position: sticky; z-index: 25; }
.measuring .hero-stack > *, .measuring .hero-bottom, .measuring .marquee { position: static !important; }
.hero.hero-stacked .hero-stack { display: block; position: relative; }
.mq-zone { display: flow-root; position: relative; z-index: 7; }   /* above the hero layers, so the banner + cards slide over them */

.measuring #plan .stick-head { position: static !important; }

/* phones: hero stickers only rock, no vertical travel, so their top edge stays on the 30's line when pinned */
@keyframes wobble-rock { 0%,100% { rotate: -6deg; translate: 0 0 } 50% { rotate: 6deg; translate: 0 0 } }
@media (max-width: 640px) { #heroBadges .badge { animation-name: wobble-rock; } }

/* guest book: the "how it started / how it's going" clip lives inside the lock card, on top of the blurred book */
.lock-card { flex-direction: row; align-items: center; text-align: left; max-width: 900px; gap: clamp(26px, 3.5vw, 48px); }
.lock-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.lock-kicker { color: var(--sky); }
.lock-media { position: relative; flex: none; width: clamp(290px, 27vw, 340px); }
.gb-video-wrap { position: relative; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.gb-video-wrap video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; border-radius: 18px; background: #111; }
.sound-btn { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(36,34,31,.72); color: #fff; font-size: 20px; line-height: 44px; text-align: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; transition: background .15s, transform .15s; }
.sound-btn:active { transform: scale(.92); }
.sound-btn[aria-pressed="true"] { background: var(--red); }
.lock-media .lock-badge { position: absolute; right: -70px; top: -44px; bottom: auto; width: 150px; height: 150px; z-index: 3; }
.lock-badge .lock-icon { width: 56px; height: 56px; font-size: 28px; }
@media (max-width: 640px) {
  .lock-card { flex-direction: column; text-align: center; max-width: 340px; gap: 14px; padding: 18px 16px 22px; }
  .lock-copy { align-items: center; gap: 10px; }
  .lock-media { width: 250px; }
  .lock-media .lock-badge { right: auto; left: 50%; top: -52px; bottom: auto; translate: -50% 0; width: 112px; height: 112px; }
  .lock-badge .lock-icon { width: 44px; height: 44px; font-size: 22px; }
  .lock-card { padding-top: 70px; }
  .gb-wrap.locked .gb-grid { height: 760px; }
}

/* phones: the floating stickers hug the card's edges, clear of the video */
@media (max-width: 640px) {
  .gb-badge { width: 60px !important; bottom: auto !important; }
  #gbBadges .gb-badge:nth-child(1) { left: -10px !important; top: 8% !important; }
  #gbBadges .gb-badge:nth-child(5) { left: -10px !important; right: auto !important; top: 32% !important; }
  #gbBadges .gb-badge:nth-child(6) { left: -10px !important; right: auto !important; top: 56% !important; }
  #gbBadges .gb-badge:nth-child(4) { right: -10px !important; left: auto !important; top: 5% !important; }
  #gbBadges .gb-badge:nth-child(3) { right: -10px !important; left: auto !important; top: 24% !important; }
  #gbBadges .gb-badge:nth-child(7) { display: none !important; }
  #gbBadges .gb-badge:nth-child(2) { right: -10px !important; left: auto !important; top: 42% !important; }
}

/* phones: the lock card fills the whole overlay, so there is no second frame peeking out around it */
@media (max-width: 640px) {
  .gb-lock { padding: 0; background: none; }
  .lock-card { width: 100%; max-width: none; min-height: 100%; border-radius: 32px; justify-content: center; padding: 22px 18px 26px; }
}

/* the lock card is frosted glass over the blurred book, so the locked pages show through */
.lock-card { background: rgba(20,18,16,.52); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 70px rgba(0,0,0,.35); }

/* phones: section titles share one size and may wrap onto two lines */
@media (max-width: 640px) {
  .etsy-type.h2, .etsy-type.h2-car { white-space: normal; line-height: 1.08 !important; }
  .etsy-type.h2 .el-sp { width: .2em; }
}

/* phones: soundtrack cards keep their full size; they pin right under the menu (the title scrolls away) */
@media (max-width: 640px) {
  .stack.music > .playlist { padding: 20px; gap: 12px; }
  .stack.music > .polaroid { padding: 12px 12px 14px; gap: 8px; }
}
