/* Joel and Kayley — wedding website styles: Beach Club. Cream paper, cabana red, deep garden green and butter yellow */

:root {
  /* Every color, font and corner on the site comes from these roles, so a whole "look" is just a set of values.
     Beach Club's stripes, scallops and awning are at the very bottom of this file.
     --bg page · --surface cards · --alt tinted sections · --ink text · --primary buttons · --on-primary text on them
     --accent small colored labels · --highlight big accent words, fine lines, icons · --glow accent on photos and dark
     --dark dark sections · --display the headline font, with its weight --dw and letter spacing --dt */
  --bg: #fbf5e6;
  --surface: #fffbf1;
  --alt: #f5e4b3;
  --ink: #1f3b2c;
  --ink-soft: #4b5f52;
  --muted: #5a685e;
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --primary: #c23a2b;
  --primary-hover: #a73023;
  --on-primary: #fffaf0;
  --accent: #b03426;
  --highlight: #c23a2b;
  --glow: #f6d985;
  --dark: #1f3b2c;
  --sea: #cfe0d6;
  --error: #a33a2a;
  --on-color: #ffffff;
  --on-color-soft: rgba(255, 255, 255, 0.82);
  --display: "Gloock", Georgia, serif;
  --dw: 400;
  --dt: -0.01em;
  --serif: var(--display);
  --script: var(--display);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --btn-radius: 999px;
  /* photo cards: softly rounded (heights are 3:4 on computers, 4:5 on phones); the homepage cards also get a scalloped top */
  --arch: 16px;
  --arch-phone: 14px;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.22 0 0 0 0 0.15 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --sunmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 34' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M17 24a13 13 0 0 1 26 0'/%3E%3Cpath d='M30 4v4M16 9.5l2.6 2.8M44 9.5l-2.6 2.8M8.5 18l3.6 1.4M51.5 18l-3.6 1.4'/%3E%3Cpath d='M4 24.5h52M14 29.5h32'/%3E%3C/svg%3E");
  /* the invitation envelope, its wax seal and the confetti */
  --env-1: #a52f22; --env-2: #b5372a; --env-3: #bc3c2e; --env-4: #c64433; --env-bg: #5d1810;
  --wax-1: #f1dba8; --wax-2: #cfa762; --wax-3: #a77f3e; --wax-4: #6b4e22; --wax-ink: #6a4b1e;
  --confetti: #c23a2b, #f6d985, #fffaf0, #1f3b2c;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.22, 1, 0.36, 1);  /* calm: no overshoot */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper-grain), var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .statement, .band-text { text-wrap: balance; }
p { text-wrap: pretty; }
em, i { font-style: normal; }  /* no slanted type anywhere */
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 500; padding: 10px 16px; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); }
.skip:focus { top: 16px; }

/* ---------- Shared type & layout ---------- */

/* Date lines keep "Orange Beach, Alabama" in one piece; on phones they break at the dot, and the dot steps aside */
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .dot-break { display: block; height: 4px; overflow: hidden; color: transparent; } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
.section { position: relative; padding: clamp(96px, 13vw, 168px) var(--gutter); }
.section--paper { background: var(--surface); }

.eyebrow {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
  margin: 0 0 24px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em;
}
.display em, .accent { font-weight: 300; color: var(--highlight); }

.lede { margin: 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); }

/* Sections on color flip the type to white */
.on-color, .weekend, .rsvp, .footer { color: var(--on-color); }
.weekend .eyebrow, .footer .eyebrow, .rsvp .eyebrow { color: var(--glow); }
.weekend .display em { background: none; color: var(--glow); -webkit-text-fill-color: var(--glow); }
.rsvp .display em { background: none; color: var(--glow); -webkit-text-fill-color: var(--glow); }
.weekend .lede, .rsvp .lede { color: var(--on-color-soft); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--btn-radius); background: transparent;
  font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sun, .btn--ink { background: var(--primary); color: var(--on-primary); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--primary) 85%, transparent); }
.btn--sun:hover, .btn--ink:hover { background: var(--primary-hover); }
.stop--end .btn--ink, .btn--light { background: var(--on-primary); color: var(--primary); box-shadow: none; }
.stop--end .btn--ink:hover, .btn--light:hover { background: #fff; }
.btn--outline { border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.text-link::after { content: "↗"; letter-spacing: 0; color: var(--highlight); transition: transform 0.4s var(--ease); }
.text-link:hover::after { transform: translate(3px, -3px); }

/* ---------- Invitation envelope (first thing guests see) ----------
 * The whole screen is the back of a red envelope, closed with a gold wax seal. Tapping it cracks the
 * seal, the flap swings open toward you, the card rises out while the envelope sinks away, and then the site
 * appears. Layers, back to front: blurred photo, liner, card, pocket, flap, seal. Timing: initInvite(). */

.invite { display: none; }
html.invite-pending { overflow: hidden; }
.invite-pending .invite, .invite.is-leaving {
  position: fixed; inset: 0; z-index: 300; display: block; overflow: hidden;
  background: var(--env-bg);
  perspective: 190vh; perspective-origin: 50% 16%;
  --seal: clamp(104px, 15vmin, 168px);
  --foil: linear-gradient(100deg, #e4c38e 0%, #fff1d6 18%, #ecd09c 36%, #fff6e2 54%, #e2c088 72%, #fbe9c8 90%, #e8cb98 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.invite.no-anim, .invite.no-anim * { transition: none !important; animation: none !important; }
.invite-photo { position: absolute; inset: -60px; background: url("photos/sunset-sm.webp") 50% 40% / cover; filter: blur(26px) saturate(1.1) brightness(0.78); transform: scale(1.1); transition: opacity 1.6s ease; }
.invite-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(75% 70% at 50% 48%, rgba(20, 10, 6, 0.05), rgba(12, 17, 24, 0.74)); }

/* the whole envelope is one big button */
.env-open { position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.env-open:focus-visible { outline: none; }

/* paper: each fold is a clipped panel, with its shadow on a wrapper so the clip doesn't cut it off */
.env-panel { position: absolute; inset: 0; }
.env-panel i { position: absolute; inset: 0; background: var(--grain), var(--fill); }
.env-panel--left { filter: drop-shadow(1px 0 0 rgba(255, 255, 255, 0.05)) drop-shadow(8px 0 16px rgba(0, 0, 0, 0.26)); }
.env-panel--left i { --fill: linear-gradient(90deg, var(--env-1) 0%, var(--env-2) 85%, var(--env-3) 100%); clip-path: polygon(0 0, 50.6% 52%, 0 100%); }
.env-panel--right { filter: drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.05)) drop-shadow(-8px 0 16px rgba(0, 0, 0, 0.26)); }
.env-panel--right i { --fill: linear-gradient(270deg, var(--env-1) 0%, var(--env-2) 85%, var(--env-3) 100%); clip-path: polygon(100% 0, 49.4% 52%, 100% 100%); }
.env-panel--bottom { filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.07)) drop-shadow(0 -10px 18px rgba(0, 0, 0, 0.28)); }
.env-panel--bottom i { --fill: linear-gradient(0deg, var(--env-1) 0%, var(--env-2) 70%, var(--env-3) 100%); clip-path: polygon(0 100%, 50% 48.5%, 100% 100%); }
.env-panel--flap { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.09)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.42)); }
.env-panel--flap i { --fill: linear-gradient(180deg, var(--env-4) 0%, var(--env-3) 60%, var(--env-2) 100%); clip-path: polygon(0 0, 100% 0, 50% 100%); }

.env-pocket { position: absolute; inset: 0; z-index: 3; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 58%; transform-origin: 50% 0; transform-style: preserve-3d; }
.seal-base { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

/* inside the envelope: your sunset photo as the liner */
.env-inside { position: absolute; inset: 0; z-index: 1; background: var(--env-1); }
.env-inside::before {
  content: ""; position: absolute; left: 2.4vmin; right: 2.4vmin; top: 2.4vmin; bottom: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0.12) 30%, rgba(10, 14, 20, 0) 50%), url("photos/sunset-sm.webp") 50% 30% / cover;
}

/* gold foil lettering */
.invite-eyebrow, .env-address span {
  background: var(--foil); background-size: 220% 100%; background-position: var(--foil-x, 40%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.invite-eyebrow {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0;
  font-size: clamp(11px, 1.1vw, 14px); font-weight: 600; letter-spacing: 0.46em; text-indent: 0.46em; text-align: center; text-transform: uppercase;
  backface-visibility: hidden; animation: ink-in 1.6s var(--ease) 0.5s backwards;
}
.invite-eyebrow::after { content: ""; display: block; width: 44px; height: 1px; margin: 16px auto 0; background: var(--foil); }
.env-address { position: absolute; left: 8%; right: 8%; top: 70.5%; margin: 0; text-align: center; animation: ink-in 1.6s var(--ease) 0.75s backwards; transition: opacity 0.6s; }
.env-address small { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase; color: rgba(255, 246, 228, 0.92); }
.env-address span { font-weight: 500; font-size: clamp(24px, 3.3vw, 40px); line-height: 1.15; letter-spacing: -0.025em; }
.invite-hint {
  position: absolute; left: 0; right: 0; bottom: max(5svh, 26px); margin: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.38em; text-indent: 0.38em; text-align: center; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 95%, transparent); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28); animation: hint 2.8s ease-in-out 2.2s infinite; transition: opacity 0.5s;
}
@keyframes hint { 50% { opacity: 0.6; } }
@keyframes ink-in { from { opacity: 0; transform: translateY(10px); } }
@media (hover: none) { .env-address span { animation: foil-drift 7s ease-in-out infinite alternate; } }
@keyframes foil-drift { from { background-position: 10% 0; } to { background-position: 90% 0; } }

/* a soft light that follows the pointer, plus a vignette */
.env-sheen {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(48vmax 48vmax at var(--mx, 50%) var(--my, 30%), rgba(255, 248, 230, 0.08), transparent 70%), radial-gradient(130% 95% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.38));
  transition: opacity 0.8s;
}

/* the wax seal: one seal in two halves, split along a jagged crack so it can break when the flap lifts */
.seal { position: absolute; left: 50%; width: var(--seal); aspect-ratio: 1; translate: -50% -50%; backface-visibility: hidden; animation: stamp 1.1s var(--ease) 0.25s backwards; transition: scale 0.6s var(--bounce); }
.env-flap .seal { top: 100%; }
.seal-base .seal { top: 58%; }
.seal--top { clip-path: polygon(-30% -30%, 130% -30%, 130% 52%, 88% 48%, 75% 55%, 62% 49%, 50% 56%, 38% 48%, 25% 54%, 12% 49%, -30% 53%); }
.seal--bottom { clip-path: polygon(-30% 52%, 12% 48%, 25% 53%, 38% 47%, 50% 55%, 62% 48%, 75% 54%, 88% 47%, 130% 51%, 130% 130%, -30% 130%); }
.seal-wax {
  position: absolute; inset: 0; border-radius: 47% 53% 49% 51% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 33% 27%, var(--wax-1) 0%, var(--wax-2) 24%, var(--wax-3) 56%, var(--wax-4) 100%);
  box-shadow: 0 16px 24px -10px rgba(0, 0, 0, 0.6), 0 3px 5px rgba(0, 0, 0, 0.35), inset 0 4px 6px rgba(255, 220, 200, 0.32), inset 0 -9px 14px rgba(50, 12, 4, 0.5);
}
.seal-wax::before, .seal-wax::after { content: ""; position: absolute; z-index: -1; background: radial-gradient(circle at 40% 30%, var(--wax-2), var(--wax-3) 65%, var(--wax-4)); box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 214, 200, 0.3); }
.seal-wax::before { width: 34%; height: 26%; right: -6%; top: 58%; border-radius: 60% 45% 55% 50% / 50% 60% 45% 55%; }
.seal-wax::after { width: 26%; height: 22%; left: -5%; top: 16%; border-radius: 45% 60% 50% 55% / 55% 45% 60% 50%; }
.seal-face {
  position: absolute; inset: 13%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, var(--wax-2), color-mix(in srgb, var(--wax-2) 55%, var(--wax-3)) 62%, var(--wax-3));
  box-shadow: inset 0 4px 8px rgba(50, 12, 4, 0.6), inset 0 -3px 3px rgba(255, 200, 175, 0.26), 0 1px 0 rgba(255, 210, 190, 0.3), 0 -1px 1px rgba(60, 14, 4, 0.4);
}
.seal-face svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0.6px 0 rgba(255, 200, 176, 0.42)); }
.seal-face text { font: 600 7.6px var(--sans); fill: var(--wax-ink); }
.seal-face b { position: relative; font-weight: 600; font-size: calc(var(--seal) * 0.2); line-height: 1; letter-spacing: -0.03em; color: var(--wax-ink); text-shadow: 0 1px 0 rgba(255, 200, 176, 0.45), 0 -1px 1px rgba(40, 8, 0, 0.45); }
.seal-face b i { padding: 0 0.05em; }
.seal-glint { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; mix-blend-mode: screen; pointer-events: none; }
.seal-glint::before { content: ""; position: absolute; inset: -25%; background: linear-gradient(115deg, transparent 42%, rgba(255, 228, 210, 0.38) 50%, transparent 58%); transform: translateX(-75%); animation: glint 6s ease-in-out 2s infinite; }
@keyframes glint { 0%, 72% { transform: translateX(-75%); } 88%, 100% { transform: translateX(75%); } }
@keyframes stamp { from { opacity: 0; scale: 1.4; filter: blur(6px); } 60% { opacity: 1; filter: none; } }
.seal-pulse { position: absolute; left: 50%; top: 58%; width: var(--seal); aspect-ratio: 1; border: 1px solid rgba(242, 222, 176, 0.6); border-radius: 50%; opacity: 0; translate: -50% -50%; animation: pulse 3s ease-out 2.4s infinite; }
@keyframes pulse { 0% { opacity: 0.75; scale: 1; } 100% { opacity: 0; scale: 1.75; } }
.env-open:hover ~ .env-flap .seal, .env-open:hover ~ .seal-base .seal { scale: 1.045; }
/* a ring around the seal only for people moving around with the Tab key (script.js adds .uses-keys) */
.uses-keys .env-open:focus-visible ~ .seal-base .seal-pulse { animation: none; opacity: 1; scale: 1.22; border: 2px solid #fff3dc; }

/* the card */
.env-card {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(480px, 84vw, 54svh); aspect-ratio: 5 / 7; container-type: inline-size;
  border-radius: 2px; background: var(--grain-ink), linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 44px 80px -30px rgba(0, 0, 0, 0.7), 0 18px 30px -18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, calc(-50% + 26svh));
}
.card-inner {
  position: absolute; inset: 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2cqw;
  padding: 6cqw 5cqw; border: 1px solid color-mix(in srgb, var(--highlight) 55%, transparent); text-align: center; color: var(--ink);
}
.card-inner::before { content: ""; position: absolute; inset: 1.6cqw; border: 1px solid color-mix(in srgb, var(--highlight) 28%, transparent); pointer-events: none; }
.card-mark { width: 12cqw; height: auto; margin-bottom: 1cqw; overflow: visible; }
.card-mark path:first-child { fill: var(--highlight); }
.card-mark path:last-child { fill: none; stroke: var(--highlight); stroke-width: 1.5; stroke-linecap: round; }
.card-inner small { font-size: max(9.5px, 2.1cqw); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.card-names { font-family: var(--display); display: flex; flex-direction: column; align-items: center; margin: 1.6cqw 0 1cqw; font-weight: 500; font-size: 15cqw; line-height: 0.9; letter-spacing: -0.055em; text-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent); }
.card-names .and { margin: 1.6cqw 0 2cqw; font-weight: 300; font-size: 5.6cqw; line-height: 1; letter-spacing: 0; color: var(--highlight); }
.card-invite { font-size: max(12px, 3.3cqw); color: var(--ink-soft); }
.card-rule { width: 14cqw; height: 1px; margin: 0.6cqw 0; background: var(--highlight); opacity: 0.7; }
.card-date { font-weight: 500; font-size: 4.8cqw; letter-spacing: -0.02em; }
.card-inner .card-foot { margin-top: 2.4cqw; font-size: max(8.5px, 1.75cqw); line-height: 1.7; letter-spacing: 0.22em; color: var(--accent); }

.invite-skip {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 9;
  padding: 11px 18px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius-sm);
  background: rgba(14, 20, 27, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85); font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s 1.2s, visibility 0s 1.2s;
}

/* ---- the opening, slowly (initInvite adds these classes in turn) ---- */
.env-pocket, .env-inside, .seal-base { transition: transform 2.2s cubic-bezier(0.62, 0, 0.26, 1) 0.5s; }
.env-card { transition: transform 2.6s cubic-bezier(0.45, 0, 0.2, 1), opacity 1.2s ease; }
/* 1. the seal is pressed and cracks, the flap swings open toward you */
.invite.is-opening .env-open { pointer-events: none; }
.invite.is-opening .invite-skip { opacity: 1; visibility: visible; pointer-events: auto; }
.invite.is-opening .env-address, .invite.is-opening .invite-hint, .invite.is-opening .seal-pulse, .invite.is-opening .env-sheen { opacity: 0; animation: none; }
.invite.is-opening .seal { animation: press 0.55s ease both; }
.invite.is-opening .seal--bottom { translate: -50% calc(-50% + 4px); rotate: -3deg; transition: translate 0.8s var(--ease) 0.45s, rotate 0.8s var(--ease) 0.45s; }
.invite.is-opening .env-flap { animation: flap-open 2.2s 0.45s both; }
@keyframes flap-open {
  0% { transform: rotateX(0); animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1); }
  78% { transform: rotateX(90deg); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  100% { transform: rotateX(180deg); }
}
@keyframes press { 35% { scale: 0.93; } 75% { scale: 1.03; } 100% { scale: 1; } }
/* 2. the card rises out while the envelope sinks away */
.invite.is-rising .env-pocket, .invite.is-rising .env-inside, .invite.is-rising .seal-base { transform: translateY(108%); }
.invite.is-rising .env-card { transform: translate(-50%, -50%); cursor: pointer; }
/* 3. everything fades into the site */
.invite.is-leaving { pointer-events: none; background-color: transparent; transition: background-color 1.4s ease; }
.invite.is-leaving .invite-photo { opacity: 0; }
.invite.is-leaving .invite-skip { opacity: 0; transition-delay: 0s; }
.invite.is-leaving .env-card { opacity: 0; transform: translate(-50%, -53%) scale(1.035); transition: transform 1.2s ease, opacity 0.8s ease; }

/* For anyone who has asked for less motion: a simple crossfade from envelope to card */
.still .invite .env-flap, .still .invite .env-pocket, .still .invite .env-inside, .still .invite .seal-base { transition: opacity 0.6s ease; }
.still .invite.is-opening .env-flap, .still .invite.is-opening .env-pocket, .still .invite.is-opening .env-inside, .still .invite.is-opening .seal-base { transform: none; opacity: 0; animation: none; }
.still .invite .env-card { opacity: 0; transform: translate(-50%, -50%); transition: opacity 0.6s ease; }
.still .invite.is-opening .env-card { opacity: 1; }
.still .invite.is-leaving .env-card { opacity: 0; }
.still .invite .seal, .still .invite .seal-pulse, .still .invite-hint, .still .invite .seal-glint::before, .still .invite-eyebrow, .still .env-address, .still .env-address span { animation: none !important; }

/* Hero waits behind the envelope */
.invite-pending .hero-layer--one > * { animation-play-state: paused; }

/* ---------- Nav ---------- */

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--highlight); transform: scaleX(0); transform-origin: left; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: var(--ink);
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, padding 0.5s var(--ease);
}
.nav.is-solid {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav.on-dark { color: #fff; }
.nav.is-solid.on-dark { background: rgba(16, 22, 29, 0.62); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18); }
.monogram { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: 0.02em; line-height: 1; text-decoration: none; white-space: nowrap; }
.monogram .dot { padding: 0 0.12em; color: var(--highlight); }
.nav.on-dark .monogram .dot { color: var(--glow); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero: your photos hold still while the words rise over them ---------- */

.hero { position: relative; background: var(--dark); color: var(--ink); }
.hero-media { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero[data-scene="1"] .scene--1, .hero[data-scene="2"] .scene--2 { opacity: 1; }
.scene--1 img, .scene--1 canvas { object-position: 50% 60%; }
.scene--2 img, .scene--2 canvas { object-position: 58% 62%; }
/* phones show the tall after-sunset photo here instead (see index.html) */
@media (max-width: 700px) { .scene--1 img, .scene--1 canvas { object-position: 50% 30%; } }
/* A soft glow behind the words over the bright sky, then a warm dusk for the countdown */
.hero-shade { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 38%, rgba(255, 250, 240, 0.55), rgba(255, 250, 240, 0) 70%); transition: background 1.6s var(--ease); }
.hero[data-scene="2"] .hero-shade { background: linear-gradient(180deg, rgba(20, 12, 6, 0.5), rgba(20, 12, 6, 0.4) 45%, rgba(20, 12, 6, 0.62)); }

.hero-copy { position: relative; z-index: 2; margin-top: -100svh; }
.hero-layer {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 92px var(--gutter) 18svh; text-align: center;
}
.hero-layer--one { justify-content: flex-start; }
.hero-kicker, .hero-line, .hero-meta { margin: 0; }
.names { margin: 0; font-weight: 400; color: var(--ink); }
.hero-meta .sep::before { content: "·"; margin: 0 0.6em; }

/* Names: bold and modern, like a film title over the bottom of the photo */
.hero .hero-layer--one { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 0 clamp(24px, 6vw, 96px) 13svh; color: #fff; }
.hero .hero-kicker { display: none; }
.hero .names { font-family: var(--display); font-weight: 500; font-size: clamp(56px, 8.6vw, 144px); line-height: 0.94; letter-spacing: -0.045em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2); }
.hero .names .and { font-weight: 300; color: var(--glow); }
.hero .hero-line { margin-top: 16px; font: 400 clamp(18px, 1.7vw, 23px)/1.3 "Geist", var(--sans); color: rgba(255, 255, 255, 0.95); }
.hero .hero-meta { margin-top: 8px; font: 500 12px/1.5 "Geist", var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 28px; }
.hero .btn--outline { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .hero-shade { background: linear-gradient(0deg, rgba(10, 22, 28, 0.62) 0%, rgba(10, 22, 28, 0.2) 42%, rgba(10, 22, 28, 0) 64%); }
.hero .scroll-cue { left: auto; right: clamp(24px, 6vw, 96px); transform: none; }

@media (max-width: 700px) {
  .hero-meta .sep { display: none; }
  .hero-meta span { display: block; }
  .hero .hero-layer--one { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .hero .scroll-cue { display: none; }
  .hero .names { font-size: 14vw; }
  /* on phones the words sit over your white outfits, so the bottom of the photo dims a little more */
  .hero .hero-shade { background: linear-gradient(0deg, rgba(12, 16, 22, 0.85) 0%, rgba(12, 16, 22, 0.68) 30%, rgba(12, 16, 22, 0.3) 50%, rgba(12, 16, 22, 0) 66%); }
}

.hero-layer--two { color: #fff; }
.hero-layer--two .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.hero-layer--two h2 { margin: 0 0 30px; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 100px); line-height: 1; letter-spacing: -0.05em; text-shadow: 0 4px 40px rgba(20, 12, 6, 0.4); }
.hero-layer--two h2 .accent { color: var(--glow); font-weight: 300; }
.hero-when { margin: 26px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }

.countdown { display: flex; gap: clamp(8px, 1.6vw, 16px); }
.countdown div {
  min-width: clamp(72px, 11vw, 124px); padding: clamp(14px, 2vw, 22px) 10px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius);
  background: rgba(16, 20, 26, 0.32);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.countdown strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.countdown strong.tick { animation: tick 0.45s var(--bounce); }
@keyframes tick { from { transform: translateY(-35%) scale(0.9); opacity: 0.2; } }
.countdown span { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; }
.countdown-done { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; color: var(--glow); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.scroll-cue i { width: 2px; height: 40px; border-radius: 2px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.amp { font: inherit; }
@media (max-width: 600px) {
  .hero-layer .eyebrow { font-size: 10.5px; letter-spacing: 0.26em; }
  .hero-layer--one { padding-top: max(96px, 12svh); }
}

/* Load-in once the envelope opens */
.hero-layer--one > * { animation: rise 1.3s var(--ease) both; animation-delay: calc(0.15s + var(--d, 0s)); }
.hero-layer--one > .names { --d: 0.1s; }
.hero-layer--one > .hero-line { --d: 0.45s; }
.hero-layer--one > .hero-meta { --d: 0.6s; }
.hero-layer--one > .hero-cta { --d: 0.8s; }
.hero-layer--one > .scroll-cue { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(0.4em) rotate(8deg) scale(0.8); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* The opening video sits over the photo and fades in once it's playing */
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity 1.2s linear; }
.scene-video.is-on { opacity: 1; }
.scene.has-video .living { visibility: hidden; transition: visibility 0s 1.2s; }  /* the still photo steps back once the video is playing */
@media (max-width: 700px) { .scene-video { object-position: 64% 50%; } }
.video-toggle { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: grid; grid-auto-flow: column; gap: 4px; place-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(16, 22, 29, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
.video-toggle span { width: 3px; height: 13px; border-radius: 2px; background: #fff; }
.video-toggle.is-paused span:first-child { width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.video-toggle.is-paused span:last-child { display: none; }

/* ---------- Living photos: slow camera drift, plus the shimmer and sway drawn by living.js ---------- */

.living { position: absolute; inset: 0; overflow: hidden; }
.living img, .living canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.living canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.living.is-live canvas { opacity: 1; }
.motion .living > picture, .motion .living > canvas { animation: drift 34s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.11) translate(-1.2%, -0.8%); } }

/* ---------- Intro ---------- */

.intro { text-align: center; overflow: hidden; }
.intro::before, .footer::before { content: ""; display: block; width: 58px; height: 33px; margin: 0 auto 26px; background: var(--highlight); -webkit-mask: var(--sunmark) center / contain no-repeat; mask: var(--sunmark) center / contain no-repeat; }
.footer::before { background: var(--glow); margin-bottom: 30px; }
.intro .eyebrow { justify-content: center; }
.statement { max-width: 20em; margin: 0 auto; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.9vw, 52px); line-height: 1.18; letter-spacing: -0.035em; }
.statement em { font-weight: 300; color: var(--highlight); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: clamp(56px, 8vw, 96px) auto 0; }
.facts div { padding: 30px 20px 28px; border-radius: var(--radius); background: var(--alt); }
.facts dt { margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -0.03em; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; gap: 10px; } .facts div { padding: 22px 16px; } }
.cal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.cal-label { width: 100%; margin-bottom: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* ---------- The ribbon: names, date and place sliding slowly by ---------- */

.marquee { overflow: hidden; padding: clamp(16px, 2.2vw, 26px) 0; background: var(--primary); color: var(--on-primary); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee span, .marquee i { flex: none; font-style: normal; white-space: nowrap; }
.marquee span { padding: 0 0.55em; font-family: var(--display); font-weight: var(--dw); font-size: clamp(28px, 3.8vw, 52px); line-height: 1.1; letter-spacing: var(--dt); }
.marquee i { font-size: clamp(14px, 1.6vw, 20px); color: var(--glow); }
@keyframes marquee { to { transform: translateX(-50%); } }
.still .marquee-track { animation: none; }

/* ---------- Us: polaroids ---------- */

#us { background: var(--alt); }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.gallery-head .lede { justify-self: end; }
.photo { position: relative; margin: 0; }
.polaroid {
  position: relative; display: block;
  padding: 12px 12px 52px; border-radius: 4px; background: #fff;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent), 0 26px 50px -24px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: transform 0.6s var(--bounce), box-shadow 0.6s var(--ease);
}
.polaroid:hover { transform: scale(1.04); box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent), 0 36px 60px -24px color-mix(in srgb, var(--ink) 50%, transparent); }
.polaroid::before {
  content: ""; position: absolute; top: -13px; left: 50%; z-index: 2;
  width: 104px; height: 28px; transform: translateX(-50%) rotate(var(--tape-tilt, -4deg));
  background: var(--tape, rgba(232, 216, 185, 0.72)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.shot {
  position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio, 4 / 5);
  background: linear-gradient(155deg, #efe6d8 0%, #e5d8c4 50%, #d9dedb 100%);
}
.photo:nth-child(even) .shot { background: linear-gradient(205deg, #dfe3df 0%, #ece3d4 58%, #e3d3c0 100%); }
.shot img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.ph::before {
  content: ""; width: 34px; height: 26px; border: 2px solid currentColor; border-radius: 6px;
  background: radial-gradient(circle at 50% 55%, transparent 6px, currentColor 6.5px, currentColor 8px, transparent 8.5px);
}
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 16px; font-family: var(--script); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; line-height: 1; text-align: center; color: #4a4440; }
/* A wall of polaroids, scattered like they were pinned up by hand. The photos sit straight so the captions stay level;
   only the tape is crooked. */
.wall { position: relative; aspect-ratio: 1240 / 810; margin-top: clamp(40px, 6vw, 80px); }
.wall .photo { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1); }
.photo--tall { --ratio: 4 / 5; }
.photo--wide { --ratio: 3 / 2; }
.photo--square { --ratio: 1; }
.wall .photo:nth-child(1) { --x: 1%; --y: 5%; --w: 21%; --tape-tilt: -5deg; }
.wall .photo:nth-child(2) { --x: 24%; --y: 0%; --w: 30%; --tape-tilt: 4deg; --tape: rgba(255, 255, 255, 0.62); }
.wall .photo:nth-child(3) { --x: 57%; --y: 4%; --w: 19%; --tape-tilt: -3deg; --tape: rgba(201, 213, 211, 0.7); }
.wall .photo:nth-child(4) { --x: 77%; --y: 14%; --w: 23%; --tape-tilt: 6deg; }
.wall .photo:nth-child(5) { --x: 7%; --y: 52%; --w: 19%; --tape-tilt: 3deg; --tape: rgba(255, 255, 255, 0.62); }
.wall .photo:nth-child(6) { --x: 31%; --y: 44%; --w: 25%; --tape-tilt: -6deg; --tape: rgba(201, 213, 211, 0.7); }
.wall .photo:nth-child(7) { --x: 60%; --y: 54%; --w: 30%; --tape-tilt: 4deg; }
.wall .photo:nth-child(1) img { object-position: 50% 30%; }
.wall .photo:nth-child(2) img { object-position: 55% 40%; }
.wall .photo:nth-child(3) img { object-position: 50% 28%; }
.wall .photo:nth-child(5) img { object-position: 60% 32%; }
.wall .photo:nth-child(6) img { object-position: 44% 50%; }
.wall-hint { display: none; margin: -12px 0 0; text-align: right; font-family: var(--script); font-weight: 500; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .wall .photo { cursor: grab; touch-action: none; }
  .wall-hint { display: block; }
}
.wall .photo.is-dragging { cursor: grabbing; }
.wall .photo.is-dragging .polaroid { transform: scale(1.06); box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent), 0 50px 80px -30px color-mix(in srgb, var(--ink) 55%, transparent); transition: box-shadow 0.25s; }
@media (max-width: 760px) {
  .gallery-head { grid-template-columns: 1fr; }
  .wall { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 30px 14px; }
  .wall .photo { position: relative; left: auto; top: auto; width: auto; }
  .wall .photo--wide { grid-column: span 2; }
  .wall .photo:nth-child(even) { --tape-tilt: 5deg; }
  .polaroid { padding: 9px 9px 42px; }
  .polaroid figcaption { bottom: 14px; font-size: 13px; }
}

/* ---------- The weekend: the field photo holds still while the plans float up over it ---------- */

.weekend { position: relative; background: #2b2216; color: #fff; }
.weekend-media { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.weekend-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 28, 0.6) 0%, rgba(14, 22, 28, 0.22) 45%, rgba(14, 22, 28, 0.5) 100%); }
.weekend-media img, .weekend-media canvas { object-position: 45% 50%; }
.weekend-body { position: relative; z-index: 1; margin-top: -100svh; padding: clamp(120px, 18svh, 200px) var(--gutter) 24svh; }
.weekend-head { max-width: var(--max); margin: 0 auto clamp(90px, 16svh, 170px); }
.weekend-head .display { margin-bottom: 18px; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35); }
.weekend-head .lede { max-width: 30em; color: rgba(255, 255, 255, 0.88); }
.stops { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(100px, 20svh, 220px); }
.stop { position: relative; width: min(500px, 100%); }
.stop:nth-child(even) { justify-self: end; }
.stop-marker { display: flex; align-items: center; gap: 14px; height: 46px; font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.stop-num { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(16, 22, 29, 0.2); color: #fff; font-family: var(--serif); font-size: 14px; letter-spacing: 0.02em; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stop-card {
  position: relative; display: flex; flex-direction: column;
  margin-top: 22px; padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(8, 12, 16, 0.6);
}
.stop-tag { align-self: flex-start; margin-bottom: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.stop-card h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3vw, 42px); line-height: 1.02; letter-spacing: -0.045em; }
.stop-card p { margin: 0 0 24px; font-size: 16px; color: var(--ink-soft); }
.stop-facts { display: grid; gap: 12px; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15.5px; }
.stop-facts li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.stop-facts span { padding-top: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.stop-facts a { color: var(--ink); font-weight: 500; text-decoration-color: var(--highlight); text-underline-offset: 4px; }
.stop--end .stop-card { align-items: flex-start; justify-content: center; background: var(--primary); color: var(--on-primary); }
.stop--end .stop-card h3 { font-family: var(--script); }
.stop--end .stop-card p { color: var(--on-primary); }

/* ---------- Travel ---------- */

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head .lede { justify-self: end; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

.from { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(36px, 5vw, 56px); }
.from-label { font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.from-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.from-tip {
  flex: 1 1 100%; margin: 4px 0 0; padding: 18px 22px;
  border-radius: var(--radius); background: var(--surface); box-shadow: inset 2px 0 0 var(--highlight), 0 0 0 1px var(--line);
  color: var(--ink-soft); font-size: 15.5px;
  animation: panel-in 0.6s var(--ease) both;
}
.from-tip strong { color: var(--ink); font-weight: 600; }

.chip {
  padding: 11px 18px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--btn-radius); background: transparent;
  font: 500 11.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }

.fly { margin-top: 24px; }
.fly-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fly-tab {
  position: relative; display: grid; align-content: start; gap: 4px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.fly-tab:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.fly-code { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 46px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: var(--highlight); transition: color 0.5s; }
.fly-name { font-size: 17px; font-weight: 500; line-height: 1.3; }
.fly-drive { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.5s; }
.fly-tab[aria-selected="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.fly-tab[aria-selected="true"] .fly-code { color: var(--on-primary); }
.fly-tab[aria-selected="true"] .fly-drive { color: var(--on-primary); }
.fly-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--primary); transform: translateX(-50%) rotate(45deg); }

.fly-stage {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  margin-top: 16px; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.map { display: flex; align-items: center; margin: 0; background: linear-gradient(180deg, var(--bg) 50%, var(--sea) 50%); }
.map-frame { position: relative; width: 100%; }
.map-svg { display: block; width: 100%; height: auto; }
.map-water { fill: var(--sea); }
.graticule path { fill: none; stroke: var(--ink); stroke-opacity: 0.1; stroke-width: 1; stroke-dasharray: 2 6; }
.coast-halo { fill: none; stroke: #dfe6e4; stroke-width: 9; stroke-linejoin: round; }
.land { fill: var(--bg); stroke: var(--ink); stroke-opacity: 0.3; stroke-width: 1.3; stroke-linejoin: round; }
.route { fill: none; stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 9; transition: stroke 0.4s, stroke-opacity 0.4s, stroke-width 0.4s; }
.route.is-active { stroke: var(--highlight); stroke-opacity: 1; stroke-width: 4; }
.map-layer { position: absolute; inset: 0; }
.map-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.map-label--town { font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.map-label--water { font-family: var(--serif); font-weight: 400; font-size: clamp(14px, 1.5vw, 19px); line-height: 1.05; text-align: center; color: color-mix(in srgb, var(--ink) 50%, transparent); }
.map-label--gulf { font-family: var(--serif); font-weight: 300; letter-spacing: 0.04em; font-size: clamp(18px, 2.4vw, 32px); color: color-mix(in srgb, var(--ink) 42%, transparent); }
.pin { position: absolute; width: 18px; height: 18px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.pin:hover { transform: translate(-50%, -50%) scale(1.3); }
.pin span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 9px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--ink) 45%, transparent); font: 500 11px/1.2 var(--sans); letter-spacing: 0.12em; color: var(--ink); white-space: nowrap; transition: background 0.3s, color 0.3s; }
.pin--below span { top: calc(100% + 6px); bottom: auto; }
.pin.is-active { border-color: var(--surface); background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--highlight) 45%, transparent); }
.pin.is-active span { background: var(--primary); color: var(--on-primary); }
.venue { position: absolute; width: 0; height: 0; }
.venue i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border: 3px solid var(--surface); border-radius: 50%; background: var(--highlight); box-shadow: 0 4px 10px color-mix(in srgb, var(--ink) 30%, transparent); }
.venue i::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; background: color-mix(in srgb, var(--highlight) 40%, transparent); animation: ping 2.4s var(--ease) infinite; }
.venue b { position: absolute; left: 14px; bottom: 10px; font-family: var(--script); font-weight: 500; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; text-shadow: 0 0 8px var(--bg), 0 0 14px var(--bg); }
.venue small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
@keyframes ping { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.traveler { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid var(--surface); border-radius: 50%; background: var(--highlight); box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--ink) 50%, transparent); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.traveler.is-on { opacity: 1; }
.map-chip { position: absolute; transform: translate(-50%, -50%); padding: 7px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--ink) 70%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.4s, left 0.7s var(--ease), top 0.7s var(--ease); }
.map-chip.is-on { opacity: 1; }
.fly-panel { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 38px); }
.fly-panel h3 { margin: 0 0 2px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.04em; }
.fly-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 16px 0 18px; }
.fly-stats div { padding: 14px 16px; border-radius: var(--radius); background: var(--bg); }
.fly-stats div:first-child { background: var(--alt); }
.fly-stats dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fly-stats dd { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.03em; }
.fly-airlines { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }
.fly-airlines span:first-child { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fly-note { margin: 0 0 24px; font-size: 15px; color: var(--ink-soft); }
.fly-panel .btn { margin-top: auto; }
.fly-dates { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.fly-panel.is-swapping > * { animation: panel-in 0.6s var(--ease) both; }
.fly-panel.is-swapping > :nth-child(2) { animation-delay: 0.04s; }
.fly-panel.is-swapping > :nth-child(3) { animation-delay: 0.08s; }
.fly-panel.is-swapping > :nth-child(4) { animation-delay: 0.12s; }
.fly-panel.is-swapping > :nth-child(n+5) { animation-delay: 0.16s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.tag { display: inline-block; margin-bottom: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.meta { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted) !important; }
.airport-more { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.travel-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.note { position: relative; margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.travel-tips .note { margin: 0; }
.travel-tips .note { box-shadow: inset 0 2px 0 var(--highlight), 0 0 0 1px var(--line); }
.note h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; letter-spacing: -0.01em; }
.note p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.note p + p { margin-top: 10px; }
.note a, .faq a { color: var(--ink); font-weight: 500; text-decoration-color: var(--highlight); text-underline-offset: 3px; }
.section--paper .note { background: var(--bg); }
.cards + .note { margin-top: 24px; }
@media (max-width: 960px) {
  .fly-stage { grid-template-columns: 1fr; }
  .travel-tips { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fly-tabs { gap: 8px; }
  .fly-tab { padding: 14px 12px; }
  .fly-name { font-size: 14px; }
  .fly-drive { font-size: 9.5px; letter-spacing: 0.06em; }
  .map-label--town, .map-label--water { display: none; }
  .pin { width: 14px; height: 14px; border-width: 2px; }
  .pin span { padding: 2px 6px; font-size: 9.5px; letter-spacing: 0.06em; }
  .venue i { left: -8px; top: -8px; width: 16px; height: 16px; border-width: 2px; }
  .venue b { left: 10px; bottom: 7px; font-size: 18px; }
  .venue small { font-size: 8px; letter-spacing: 0.14em; }
  .map-chip { padding: 5px 10px; font-size: 10.5px; }
  .land { stroke-width: 2.4; }
  .coast-halo { stroke-width: 12; }
  .route { stroke-width: 5; stroke-dasharray: 0.1 18; }
  .route.is-active { stroke-width: 7; }
}

/* ---------- Cards (stay, explore) ---------- */

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 48px; padding: 22px 26px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
.banner strong { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; }
.banner p { flex: 1 1 280px; margin: 0; color: var(--on-primary); font-size: 15.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 40px; }
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: 28px 28px 26px; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.section--paper .card { background: var(--bg); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent), 0 24px 40px -30px color-mix(in srgb, var(--ink) 45%, transparent); }
.card h3 { margin: 0 0 6px; padding-right: 48px; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.12; letter-spacing: -0.035em; }
.card .price { position: absolute; top: 30px; right: 28px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent); }
.card .meta { margin-bottom: 14px !important; }
.card p { margin: 0 0 22px; font-size: 15.5px; color: var(--ink-soft); }
.card .text-link { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.card.is-hidden { display: none; }

/* ---------- Weather ---------- */

.weather { position: relative; overflow: clip; padding: 0 var(--gutter) clamp(96px, 13vw, 168px); background: var(--alt); }
.weather-media { position: sticky; top: 0; height: 100svh; margin: 0 calc(var(--gutter) * -1) -100svh; overflow: hidden; }
.weather-media img, .weather-media canvas { object-position: 50% 30%; }
.weather-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 25%, transparent) 0%, color-mix(in srgb, var(--bg) 6%, transparent) 22%, color-mix(in srgb, var(--bg) 74%, transparent) 40%, color-mix(in srgb, var(--bg) 90%, transparent) 100%); }
.weather-inner { padding-top: clamp(96px, 13vw, 168px); }
.weather-inner { position: relative; z-index: 1; }
.wx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.wx { padding: 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wx span { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.wx span::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 14px; background: var(--highlight); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.wx:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2.5v2.2M12 19.3v2.2M2.5 12h2.2M19.3 12h2.2M5.3 5.3l1.6 1.6M17.1 17.1l1.6 1.6M18.7 5.3l-1.6 1.6M6.9 17.1l-1.6 1.6'/%3E%3C/svg%3E"); }
.wx:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 14.2A8 8 0 0 1 9.8 4.5a8 8 0 1 0 9.7 9.7Z'/%3E%3C/svg%3E"); }
.wx:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5c2.4 0 2.4-2 4.75-2s2.4 2 4.75 2 2.4-2 4.75-2 2.4 2 4.75 2M2.5 15.5c2.4 0 2.4-2 4.75-2s2.4 2 4.75 2 2.4-2 4.75-2 2.4 2 4.75 2'/%3E%3C/svg%3E"); }
.wx:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15.5a4.5 4.5 0 1 1 1.2-8.8A5.5 5.5 0 0 1 18.6 9 3.3 3.3 0 0 1 17.5 15.5Z'/%3E%3Cpath d='M9 18.5l-1 2M13 18.5l-1 2M17 18.5l-1 2'/%3E%3C/svg%3E"); }
.wx strong { display: block; margin: 10px 0 6px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.05em; }
.wx small { font-size: 14px; color: var(--ink-soft); }
.wx-forecast { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
.fc span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.fc small { display: block; margin-top: 4px; font-size: 14px; color: var(--on-primary); }
.fc strong { font-family: var(--serif); font-weight: 300; font-size: 36px; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.wx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; }
.wx-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-soft); }
.wx-live strong { font-weight: 600; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #6e9b7e; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(110, 155, 126, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(110, 155, 126, 0); } }
.wx-note { margin: 0; padding: 10px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .wx-grid { grid-template-columns: 1fr 1fr; } .wx-forecast { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .wx { padding: 18px; } }

.wx-next { margin: clamp(48px, 7vw, 80px) 0 0; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); }
.wx-next span { display: inline-block; margin-left: 6px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- The wedding day: a full-screen sky from sunrise to the stars (drawn by initDay) ---------- */

.day { position: relative; height: 100vh; height: 100svh; background: #070b1f; }
.day.is-live { height: 440vh; height: 440svh; }
/* phones: the same sunrise-to-stars in about half the scrolling */
@media (max-width: 760px) { .day.is-live { height: 300vh; height: 300svh; } }
.day-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  /* without JavaScript: a still sunset */
  background: linear-gradient(180deg, #45568f 0%, #d77e86 46%, #ff8f55 70%, #e0795a 70%, #2a3558 100%);
  color: #fff;
}
.day-sky { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.day-clock { position: absolute; left: 50%; top: 50%; margin: 0; text-align: center; color: var(--day-ink, #fff); transform: translate(-50%, -50%); }
.day-clock strong { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(64px, 11vw, 156px); line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-clock span { display: block; margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--day-label, #e8d8b9); white-space: nowrap; }
.day-end { position: absolute; left: var(--gutter); right: var(--gutter); top: 46%; text-align: center; opacity: 0; pointer-events: none; }
.day-end .eyebrow { margin-bottom: 14px; color: var(--glow); }
.day-title { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.05em; }
.day-title em { font-weight: 300; color: var(--glow); }

/* for screen readers only */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Photos page ---------- */

.page-photos #us { min-height: 100vh; min-height: 100svh; padding-top: clamp(128px, 14vw, 184px); }

/* ---------- Photo band ---------- */

.band { position: relative; display: grid; place-items: center; height: clamp(440px, 86vh, 820px); overflow: hidden; color: #fff; text-align: center; }
.band .photo { position: absolute; inset: 0; }
.band .shot { position: absolute; inset: 0; aspect-ratio: auto; background: linear-gradient(170deg, #5d6b78 0%, #a2a4a3 45%, #c9a78b 80%, #9c6f5a 100%); }
.band .shot::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, transparent), color-mix(in srgb, var(--ink) 35%, transparent)); }
.band .ph { color: rgba(255, 255, 255, 0.7); justify-content: flex-end; padding-bottom: 80px; }
.band .shot img, .band .shot canvas { object-position: 50% 45%; }
/* With the sunset photo in, the words sit low on the dark sand instead of over the two of you */
.band:has(.shot img) { place-items: end center; padding-bottom: clamp(58px, 7.5vh, 100px); }
.band:has(.shot img) .shot::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 0%, transparent) 45%, color-mix(in srgb, var(--ink) 50%, transparent) 100%); }
.band-text { position: relative; z-index: 3; margin: 0; padding: 0 var(--gutter); font-family: var(--script); font-weight: 500; letter-spacing: -0.05em; font-size: clamp(48px, 7.4vw, 150px); line-height: 1; text-shadow: 0 4px 40px color-mix(in srgb, var(--ink) 30%, transparent); }
.band-text em { font-weight: 300; color: var(--glow); }

/* ---------- RSVP ---------- */

.rsvp { overflow: clip; background: #2e1f12; }
.rsvp { padding-top: 0; }
.rsvp-media { position: sticky; top: 0; height: 100svh; margin: 0 calc(var(--gutter) * -1) -100svh; overflow: hidden; }
.rsvp > .wrap { padding-top: clamp(96px, 13vw, 168px); }
.rsvp-media img, .rsvp-media canvas { object-position: 50% 40%; }
.rsvp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 8, 0.6), rgba(30, 18, 8, 0.38) 50%, rgba(30, 18, 8, 0.62)); }
.rsvp .split { position: relative; z-index: 1; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.split-head { position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }
.rsvp-deadline { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.rsvp-deadline span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--glow); }
.rsvp-deadline strong { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.04em; }

.form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(10, 8, 6, 0.6); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.field > label:not(.check), .field > legend { margin-bottom: 8px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.field > legend { margin-bottom: 0; }
.field .opt { letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386683f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form textarea { min-height: 96px; resize: vertical; }
.form ::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--highlight); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--highlight) 16%, transparent); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--radius);
  font-family: var(--serif); font-size: 22px; line-height: 1.1;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.choice:hover span { border-color: var(--ink); }
.choice small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.choice input:checked + span small { color: color-mix(in srgb, var(--on-primary) 75%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check small { display: block; font-size: 13.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-foot .btn { min-width: 200px; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 15px; color: var(--error); }
.thanks { padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px); text-align: center; }
.thanks::before { content: ""; display: block; width: 44px; height: 1px; margin: 0 auto 22px; background: var(--highlight); }
.thanks h3 { margin: 0 0 12px; font-family: var(--script); font-weight: 500; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); }
.thanks p { margin: 0 auto; max-width: 26em; color: var(--ink-soft); }
.thanks .link-btn { margin-top: 18px; }

/* Guest-list RSVP: find your invitation, then answer for each person */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group.field { margin-bottom: 22px; }
.rsvp-stage > * { scroll-margin-top: 110px; }
.step-in { animation: step-in 0.7s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.form-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -0.04em; }
.form-intro { margin: 0 0 22px; color: var(--ink-soft); }
.reply [data-open] .form-title { margin-bottom: 22px; }

.find-icon { display: block; width: 34px; height: 34px; margin-bottom: 16px; background: var(--highlight); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='1'/%3E%3Cpath d='m3.4 6.2 8.6 6.6 8.6-6.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='1'/%3E%3Cpath d='m3.4 6.2 8.6 6.6 8.6-6.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.find.is-busy .find-icon { animation: letter-wiggle 1s ease-in-out infinite; }
@keyframes letter-wiggle { 50% { opacity: 0.35; } }
.find-row { display: flex; gap: 10px; }
.form .find-row input { flex: 1 1 auto; width: auto; min-width: 0; }
.find-row .btn { flex: none; }
@media (max-width: 520px) { .find-row { flex-direction: column; } }
.find .form-status { margin-top: 14px; }
.find .form-status:empty { display: none; }
.matches { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.matches-title { margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.match-list { display: grid; gap: 10px; }
.match {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.3s;
}
.match:hover, .match:focus-visible { border-color: var(--ink); outline: none; }
.match strong { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.03em; }
.match small { flex: none; font-size: 13px; color: var(--muted); }
.match small::after { content: " →"; color: var(--accent); }

.party-head { margin-bottom: 18px; }
.party-kicker { display: inline-block; margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.party-title { margin: 0; font-family: var(--script); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.04em; color: var(--ink); overflow-wrap: anywhere; }
.party-sub { margin: 8px 0 0; color: var(--ink-soft); }
.party-note { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--alt); color: var(--ink-soft); font-size: 14.5px; }
.people { display: grid; gap: 10px; }
.person {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  padding: 12px 14px; border-radius: var(--radius); background: var(--bg);
  transition: background 0.3s;
  animation: person-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
@keyframes person-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.person.is-yes { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.person.is-no { background: #f2efea; }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line);
  font: 500 14px/1 var(--sans); letter-spacing: 0.06em;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.is-yes .avatar { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.is-no .avatar { opacity: 0.5; }
.person-name { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.is-no .person-name { color: var(--muted); }
.pills { display: flex; gap: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--btn-radius); background: var(--surface);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.pill:hover span { border-color: var(--ink); }
.pill--yes input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.pill--yes input:checked + span::before { content: "✓\00a0"; }
.pill--no input:checked + span { border-color: var(--ink-soft); background: var(--alt); color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .plus-name { grid-column: 2 / -1; background: var(--surface); }
@media (max-width: 560px) {
  .person { grid-template-columns: auto minmax(0, 1fr); }
  .pills, .form .plus-name { grid-column: 1 / -1; }
  .pill { flex: 1; }
  .pill span { width: 100%; }
}
.tally { min-height: 1.4em; margin: 14px 0 22px; font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--accent); }
.link-btn { padding: 6px 2px; border: 0; background: none; color: var(--ink-soft); font: 500 14px/1.4 var(--sans); text-decoration: underline 1px var(--highlight); text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.form-foot .form-status:empty { display: none; }
.form-foot .form-status { flex-basis: 100%; }

/* ---------- Good to know ---------- */

.faq-head { text-align: center; }
.faq-head .eyebrow { justify-content: center; }
.faq { max-width: 860px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.4s; }
.faq details[open] { box-shadow: inset 2px 0 0 var(--highlight), 0 0 0 1px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(18px, 2vw, 23px); line-height: 1.2; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--highlight) 60%, transparent); font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--accent); transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--primary); color: var(--on-primary); box-shadow: none; }
.faq details p { margin: -6px 26px 24px; max-width: 40em; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.footer { position: relative; padding: clamp(96px, 12vw, 150px) var(--gutter) 40px; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--primary) 45%, transparent) 0%, transparent 70%), var(--dark); text-align: center; overflow: hidden; }
.footer-names { margin: 0; font-family: var(--script); font-weight: 500; font-size: clamp(52px, 9vw, 136px); line-height: 1; letter-spacing: -0.055em; }
.footer-names .accent { font-weight: 300; color: var(--glow); }
.footer-names .accent { background: none; color: var(--glow); -webkit-text-fill-color: var(--glow); padding: 0 0.08em; font-style: normal; }
.footer-date { margin: 22px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.footer .btn { margin-top: 36px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: var(--max); margin: clamp(64px, 9vw, 110px) auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Lightbox ---------- */

.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; padding: 0; border: 0; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(16, 22, 29, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; border: 10px solid var(--surface); border-radius: 2px; object-fit: contain; animation: panel-in 0.6s var(--ease); }
.lb-btn { position: fixed; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; transition: transform 0.4s var(--ease); }
.lb-btn:hover { transform: scale(1.05); }
.lb-close { top: 20px; right: 20px; }
.lb-prev, .lb-next { top: 50%; margin-top: -25px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.gallery .shot img { cursor: zoom-in; }

/* ---------- Motion ---------- */

.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}


/* ==========================================================================
   Pages, mobile first: photo headers, "Next" links, the homepage's "Plan your
   trip" cards, and on phones and tablets a bar under the thumb with a "More" sheet
   ========================================================================== */

.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* phones show tall photos in these spots instead of the wide ones (see index.html), framed on your faces */
@media (max-width: 700px) {
  .weekend-media img, .weekend-media canvas { object-position: 38% 20%; }
  .band .shot img, .band .shot canvas { object-position: 58% 42%; }
  .band:has(.shot img) .shot::after { background: linear-gradient(180deg, rgba(12, 16, 22, 0) 38%, rgba(12, 16, 22, 0.42) 62%, rgba(12, 16, 22, 0.66) 100%); }
}

/* ---------- Each page opens on a full photo ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  height: 74vh; height: 74svh; min-height: 420px; max-height: 880px;
  padding: 0 var(--gutter) clamp(40px, 6vw, 84px); overflow: hidden;
  background: var(--dark); color: #fff;
}
.page-hero-photo, .page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-photo img { object-fit: cover; object-position: var(--pos, 50% 50%); animation: hero-drift 16s var(--ease) both; }
@keyframes hero-drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 22, 28, 0.72) 0%, rgba(10, 22, 28, 0.24) 42%, rgba(10, 22, 28, 0) 64%), linear-gradient(180deg, rgba(10, 22, 28, 0.38), rgba(10, 22, 28, 0) 24%); }
.page-hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; animation: rise 1.3s var(--ease) 0.15s both; }
.page-hero .eyebrow { color: var(--glow); }
.page-title { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(54px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; }
.page-title em { font-weight: 300; color: var(--glow); }
.still .page-hero-photo img, .still .page-hero-copy { animation: none; }
@media (max-width: 700px) {
  .page-hero { height: 64svh; min-height: 380px; }
  .page-hero-photo img { object-position: var(--pos-phone, var(--pos)); }
}
.page .page-hero + .section { padding-top: clamp(44px, 6vw, 88px); }
.page .section-head { grid-template-columns: 1fr; }
.page .section-head .lede, .faq-lede { max-width: 38em; justify-self: start; margin-left: 0; font-size: clamp(19px, 1.8vw, 23px); }
.faq-lede { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- "Next" at the bottom of each page ---------- */
.next-page { padding: 0 var(--gutter) clamp(72px, 10vw, 128px); }
.next-page a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px;
  max-width: var(--max); margin: 0 auto; padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; transition: box-shadow 0.5s var(--ease);
}
.next-page a:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.next-page small { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.next-page b { grid-column: 1; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.045em; }
.next-page b em { font-weight: 300; color: var(--highlight); }
.next-arrow { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 20px; transition: transform 0.5s var(--ease); }
.next-page a:hover .next-arrow { transform: translateX(4px); }

/* ---------- Homepage: "Plan your trip", one photo card per page ---------- */
.plan { background: var(--alt); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.plan-card {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--arch); background: var(--dark); color: #fff; text-decoration: none;
}
.plan-card picture, .plan-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.plan-card img { object-fit: cover; transition: transform 1.2s var(--ease); }
.plan-card:nth-child(1) img { object-position: 52% 50%; }
.plan-card:nth-child(2) img { object-position: 74% 40%; }
.plan-card:nth-child(3) img { object-position: 40% 45%; }
.plan-card:nth-child(4) img { object-position: 36% 50%; }
.plan-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 22, 28, 0.8), rgba(10, 22, 28, 0.15) 55%, rgba(10, 22, 28, 0) 75%); }
.plan-card:hover img { transform: scale(1.06); }
.plan-copy { padding: 20px; }
.plan-copy small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--glow); }
.plan-copy b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.plan-copy span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 600px) {
  .plan-card { aspect-ratio: 4 / 5; border-radius: var(--arch-phone); }
  .plan-copy { padding: 14px; }
  .plan-copy b { font-size: 20px; }
  .plan-copy span { display: none; }
}

/* ---------- Phones and tablets: the bar under the thumb ---------- */
.tabbar, .sheet { display: none; }
html.sheet-open { overflow: hidden; }
@media (max-width: 860px) {
  .nav .btn { display: none; }  /* RSVP lives in the bar instead */
  .tabbar {
    position: fixed; z-index: 70;
    left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: 66px; padding: 0 4px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent), 0 18px 40px -14px color-mix(in srgb, var(--ink) 45%, transparent);
  }
  .sheet { display: block; }
  .footer { padding-bottom: calc(40px + 86px + env(safe-area-inset-bottom)); }
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%;
  padding: 0; border: 0; background: none; color: var(--ink-soft);
  font: 500 10.5px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color 0.3s;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.tab[data-tab="more"] svg { fill: currentColor; stroke: none; }
.tab.is-active { color: var(--accent); }
.tab.is-active span { position: relative; }
.tab.is-active span::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--highlight); }
.tab:active svg { transform: scale(0.9); }
.tab--rsvp { color: var(--ink); }
.tab--rsvp svg { box-sizing: content-box; width: 19px; height: 19px; padding: 7px; border-radius: 50%; background: var(--primary); stroke: var(--on-primary); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--primary) 90%, transparent); }

/* ---------- The "More" sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s 0.45s; }
.sheet.is-open { visibility: visible; transition: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(14, 20, 26, 0.45); opacity: 0; transition: opacity 0.4s; }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 88svh; overflow-y: auto;
  padding: 10px 14px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--bg); box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 102%); transition: transform 0.45s var(--ease);
}
.sheet.is-open .sheet-panel { transform: translate(-50%, 0); }
.sheet-handle { display: block; width: 42px; height: 5px; margin: 2px auto 14px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.sheet-title { margin: 0 8px 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.sheet-link { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 9px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background 0.25s; }
.sheet-link:active, .sheet-link[aria-current="page"] { background: color-mix(in srgb, var(--highlight) 12%, transparent); }
.sheet-link img { width: 52px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.sheet-link b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.sheet-link small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.sheet-link::after { content: "→"; color: var(--highlight); }
.sheet-replay { display: block; width: 100%; margin-top: 12px; padding: 15px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--radius-sm); background: none; color: var(--ink); font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-align: center; text-transform: uppercase; text-decoration: none; cursor: pointer; }


/* ---------- The "page not found" page ---------- */
.lost { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 120px var(--gutter) 80px; text-align: center; }
.lost .eyebrow { justify-content: center; }
.lost .lede { margin: 22px auto 34px; }

/* ---------- Fit and finish: small phones, phones held sideways, focus rings and tap targets ---------- */

/* Text over the photos keeps a soft shadow so it reads on the bright parts */
.hero .hero-line, .hero .hero-meta, .hero .names .and { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.countdown span { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }

/* Focus rings: gold on the dark and photo sections, and drawn inside the scalloped photo cards */
:is(.hero, .weekend, .rsvp, .footer, .page-hero, .band, .day, .invite) :focus-visible { outline-color: var(--glow); }
:root .plan-card:focus-visible { outline: 3px solid var(--glow); outline-offset: -6px; }

/* Bigger tap targets */
.chip { min-height: 40px; }
.stop-facts a, .footer-bottom a { display: inline-block; padding: 9px 0; margin: -9px 0; }
.monogram { padding: 10px; margin: -10px; }
.invite-skip { padding: 14px 20px; }

.card-foot span { display: block; }

/* Short words don't sit alone on the last line */
.next-page b, .plan-copy b, .stop-facts li, .wx small, .fly-drive, .fly-stats dd { text-wrap: balance; }

/* The tab bar stays on top of the More sheet, so a second tap on More closes it */
@media (max-width: 860px) {
  .tabbar { z-index: 85; }
  .sheet-panel { padding-bottom: calc(22px + 76px + env(safe-area-inset-bottom)); }
}

/* RSVP: a missing answer scrolls into view clear of the top bar and the tab bar */
.pill input, .rsvp input, .rsvp textarea, .rsvp select { scroll-margin: 140px 0 110px; }

/* Map: the wedding marker doesn't swallow taps meant for the Gulf Shores pin, and pins are easier to hit */
.venue { pointer-events: none; }
.pin::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }

/* Once the envelope is leaving, its fading Skip button doesn't block the tab bar */
.invite.is-leaving .invite-skip { pointer-events: none; }

/* The tab bar's RSVP label lines up with the others */
.tab--rsvp svg { margin-block: -4.5px; }

/* The More sheet scrolls on short screens without dragging the page along */
.sheet-panel { overscroll-behavior: contain; }

/* Tablets: the scroll cue would sit under the tab bar */
@media (max-width: 860px) { .hero .scroll-cue { display: none; } }

/* The smallest phones (320px wide) */
@media (max-width: 374px) {
  .countdown { gap: 6px; width: 100%; }
  .countdown div { flex: 1 1 0; min-width: 0; padding: 12px 2px; }
  .countdown span { font-size: 9.5px; letter-spacing: 0.12em; }
  .hero .btn { padding-left: 18px; padding-right: 18px; }
  .venue b { left: 10px; font-size: 12px; }
  .pin[data-airport="MOB"] span { top: calc(100% + 6px); bottom: auto; }
}
/* Short phones: the names stay clear of your faces */
@media (max-width: 700px) and (max-height: 640px) {
  .hero .names { font-size: 12.5vw; }
  .hero .hero-line { margin-top: 10px; }
  .hero .hero-cta { margin-top: 20px; }
}

/* Phones held sideways */
@media (max-height: 560px) { .hero-media { min-height: 0; } }
@media (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  .hero .hero-layer--one { padding-top: 64px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hero .names { font-size: clamp(44px, 15svh, 72px); }
  .page-hero { height: 100svh; min-height: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { height: 56px; }
  .tab svg { width: 21px; height: 21px; }
  .tab--rsvp svg { width: 17px; height: 17px; padding: 6px; }
  .footer { padding-bottom: calc(40px + 70px + env(safe-area-inset-bottom)); }
  /* the invitation card is small here, so it keeps just the essentials */
  .card-mark, .card-inner .card-foot { display: none; }
  .card-inner { gap: 2.4cqw; }
  .card-inner small { font-size: max(7.5px, 2.1cqw); letter-spacing: 0.16em; }
  .hero-layer { padding-top: 56px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .card-invite { font-size: max(9.5px, 3.3cqw); }
  .env-address { top: 73%; }
  .env-address small { margin-bottom: 6px; }
  /* clear of the notch */
  .nav, .section, .footer, .page-hero { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}


/* ==========================================================================
   Beach Club: a Riviera cabana. Red and cream stripes, a scalloped awning,
   scallop-topped photo cards and a striped envelope lining.
   ========================================================================== */

/* Headlines: Gloock at its natural weight and spacing */
:root :is(.display, .statement, .hero .names, .hero-layer--two h2, .card-names, .page-title, .day-title, .band-text,
  .footer-names, .countdown strong, .countdown-done, .stop-card h3, .plan-copy b, .next-page b, .wx strong, .fc strong, .facts dd, .fly-code,
  .fly-panel h3, .fly-stats dd, .card h3, .note h3, .faq summary, .form-title, .party-title, .thanks h3, .rsvp-deadline strong, .match strong,
  .person-name, .choice span, .banner strong, .tally, .day-clock strong, .monogram, .venue b, .card-date, .marquee span, .sheet-link b) {
  letter-spacing: var(--dt);
  font-weight: var(--dw);
}
:root :is(.display em, .statement em, .hero .names .and, .card-names .and, .page-title em, .day-title em, .band-text em, .footer-names .accent, .next-page b em, .hero-layer--two h2 .accent) { font-weight: 300; }

/* Stripes, scallops and red trim */
:root .env-inside::before { background: linear-gradient(180deg, rgba(60, 10, 6, 0.45), transparent 40%), repeating-linear-gradient(90deg, #c23a2b 0 24px, #fbf2df 24px 48px); }
/* The cabana awning: red and cream stripes with a scalloped hem, over the details section and the footer.
   One stripe = one scallop, centered on the page, and the details section's stripes line up underneath. */
:root { --stripe: clamp(26px, 2.8vw, 36px); }
:root .plan { position: relative; padding-top: calc(clamp(96px, 13vw, 168px) + 10px); background: linear-gradient(90deg, var(--bg) 50%, var(--alt) 0) calc(50% + var(--stripe) / 2) 0 / calc(var(--stripe) * 2) 100%; }
:root :is(.plan, .footer, .lost)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  height: calc(var(--stripe) * 1.15);
  background: linear-gradient(180deg, rgba(50, 10, 5, 0.2), rgba(50, 10, 5, 0) 60%), linear-gradient(90deg, var(--primary) 50%, #fbf2df 0) calc(50% + var(--stripe) / 2) 0 / calc(var(--stripe) * 2) 100%;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--stripe) / 2 + 1px) no-repeat, radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - 0.5px), #0000 calc(var(--stripe) / 2)) 50% 100% / var(--stripe) calc(var(--stripe) / 2) repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--stripe) / 2 + 1px) no-repeat, radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - 0.5px), #0000 calc(var(--stripe) / 2)) 50% 100% / var(--stripe) calc(var(--stripe) / 2) repeat-x;
  pointer-events: none;
}
:root .plan-card {
  -webkit-mask: radial-gradient(14px at 50% 14px, #000 98%, #0000) 0 0 / 28px 28px repeat-x, linear-gradient(#000 0 0) 0 14px / 100% calc(100% - 14px) no-repeat;
  mask: radial-gradient(14px at 50% 14px, #000 98%, #0000) 0 0 / 28px 28px repeat-x, linear-gradient(#000 0 0) 0 14px / 100% calc(100% - 14px) no-repeat;
}
/* ...and a little one printed across the top of the invitation card */
.env-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6.6cqw;
  background: linear-gradient(180deg, rgba(50, 10, 5, 0.12), rgba(50, 10, 5, 0) 70%), linear-gradient(90deg, var(--primary) 50%, #f2dfb6 0) 0 0 / calc(200cqw / 15) 100%;  /* 15 stripes, red at both edges */
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 3.2cqw no-repeat, radial-gradient(circle at 50% 0, #000 3.3cqw, #0000 3.36cqw) 0 100% / calc(100cqw / 15) 3.34cqw repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% 3.2cqw no-repeat, radial-gradient(circle at 50% 0, #000 3.3cqw, #0000 3.36cqw) 0 100% / calc(100cqw / 15) 3.34cqw repeat-x;
}
.env-card .card-inner { inset: 9% 5% 5%; }
:root .facts div { background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); }
:root .facts dt { color: var(--primary); }
:root .marquee { background: repeating-linear-gradient(90deg, var(--primary) 0 36px, #b23427 36px 72px); }
:root .hero .names .and { color: var(--glow); }
:root :is(.stop-card, .card, .note, .faq details, .next-page a) { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 85%, transparent); }
:root .eyebrow { color: var(--accent); }
:root :is(.weekend, .rsvp, .footer, .page-hero, .day-end, .hero-layer--two) .eyebrow { color: var(--glow); }
:root .eyebrow::before { height: 2px; }
