/* =========================================================
   Wedding invitation — burgundy / cream / gold
   ========================================================= */
:root {
  --ocean-950: #06182e;
  --ocean-900: #0b2442;
  --ocean-800: #123462;
  --ocean-700: #1c4a80;
  --ocean-600: #2b5f9e;
  --ocean-500: #3a76b8;
  --cream: #eef6fc;
  --cream-soft: #cfe9f6;
  --gold: #a0d8ef;
  --gold-deep: #4ba8ad;
  --blush: #a0d8ef;
  --ink: #123462;

  --f-script: "Sacramento", "Satisfy", cursive;
  --f-script2: "Satisfy", "Sacramento", cursive;
  --f-serif: "Josefin Sans", "Quicksand", sans-serif;
  --f-body: "Quicksand", "Josefin Sans", sans-serif;

  --col: min(100vw, 480px);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ocean-950);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.script { font-family: var(--f-script); font-weight: 400; margin: 0; line-height: 1.1; }
.small-caps { text-transform: uppercase; letter-spacing: .22em; font-size: 11px; margin: 0; }
.ico, .modal-x svg, .lb-nav svg, .music-btn svg, .rem-icon svg, .tl-icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- App column ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  /* sunlit shallows at the top -> the deep at the bottom */
  background:
    radial-gradient(130% 40% at 50% 0%, rgba(160,216,239,.35), transparent 70%),
    linear-gradient(180deg, #3a76b8 0%, #2b5f9e 14%, #24548e 32%, #1c4a80 50%, #143a6a 72%, #0b2442 92%, #081c36 100%);
  box-shadow: 0 0 80px rgba(0,0,0,.6);
  overflow: hidden;
}
/* gold speckle texture */
.app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(160,216,239,.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(220,240,255,.18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 60%, rgba(160,216,239,.25) 0 1px, transparent 2px);
  background-size: 90px 110px, 140px 120px, 60px 75px;
  opacity: .6;
}

/* ---------- Bubbles ---------- */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.bubble {
  position: absolute; bottom: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 50%, rgba(160,216,239,0) 55%, rgba(160,216,239,.45) 76%, rgba(238,246,252,.9) 100%);
  box-shadow: inset 0 0 6px rgba(238,246,252,.45), 0 0 6px rgba(160,216,239,.25);
  opacity: 0;
  animation: rise-bubble linear infinite;
}
@keyframes rise-bubble {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  8%   { opacity: var(--o, .7); }
  25%  { transform: translate3d(var(--drift), -28vh, 0) scale(.8); }
  50%  { transform: translate3d(calc(var(--drift) * -1), -58vh, 0) scale(.9); }
  75%  { transform: translate3d(var(--drift), -86vh, 0) scale(1); }
  92%  { opacity: var(--o, .7); }
  100% { transform: translate3d(0, -112vh, 0) scale(1.05); opacity: 0; }
}

/* ---------- Florals ---------- */
.floral { position: absolute; pointer-events: none; z-index: 5; }
.floral svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.bg-roses { position: absolute; inset: 0; pointer-events: none; }
.bg-rose { position: absolute; aspect-ratio: 1; opacity: .07; filter: blur(1px); }

/* ---------- Desktop gate ---------- */
#desktop-gate { display: none; }
@media (min-width: 900px) and (hover: hover) {
  html:not(.gate-off) #desktop-gate {
    display: grid; place-items: center;
    position: fixed; inset: 0; z-index: 100;
    background: rgba(6,24,46,.72);
    backdrop-filter: blur(6px);
  }
}
.gate-card {
  width: min(640px, 92vw);
  padding: 56px 56px 40px;
  text-align: center;
  background: linear-gradient(180deg, #143a6a, #0b2442);
  border: 2px solid var(--cream);
  border-radius: 28px;
  box-shadow: 0 0 60px rgba(160,216,239,.25);
}
.gate-card h2 { font-size: 52px; color: var(--cream); }
.gate-lead { font-family: var(--f-serif); letter-spacing: .08em; font-size: 20px; line-height: 1.7; margin: 24px 0; }
.divider { display: block; width: 80px; height: 2px; background: var(--gold); margin: 22px auto; opacity: .7; }
.gate-box {
  display: flex; gap: 12px; align-items: flex-start; text-align: center;
  border: 1.5px solid var(--cream); border-radius: 16px; padding: 18px 22px;
  background: rgba(255,255,255,.04); font-size: 20px;
}
.gate-box p { margin: 0; }
.gate-box .ico { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.link-btn { background: none; border: 0; margin-top: 26px; color: var(--cream-soft); font-size: 17px; opacity: .75; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { opacity: 1; }

/* ---------- Intro / message in a bottle ---------- */
.intro {
  position: relative; z-index: 2;
  min-height: 100svh;
  overflow: hidden;
  transition: opacity .9s ease, transform .9s ease;
}
.intro.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-frame {
  position: absolute; inset: 12px; border: 1px solid rgba(160,216,239,.45); border-radius: 10px; pointer-events: none; z-index: 6;
}
.intro-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(160,216,239,.2); border-radius: 8px; }
.intro-title {
  position: absolute; left: 0; right: 0; top: 14%; z-index: 3; text-align: center;
  font-size: clamp(50px, 14vw, 66px); color: var(--cream); text-shadow: 0 2px 10px rgba(0,0,0,.35);
  animation: rise 1.2s ease both;
}

/* waves */
.waves { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.waves-back { height: 40%; z-index: 1; }
.waves-front { height: 25%; z-index: 4; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; animation: wave-move linear infinite; }
.w1 { height: 100%; fill: rgba(160,216,239,.18); animation-duration: 16s; }
.w2 { height: 80%; fill: rgba(74,150,216,.4); animation-duration: 11s; animation-direction: reverse; }
.w3 { height: 100%; fill: #1f528f; animation-duration: 9s; }
.w3 path { stroke: rgba(238,246,252,.6); stroke-width: 3; vector-effect: non-scaling-stroke; }
.w4 { height: 62%; fill: #143a6a; animation-duration: 13s; animation-direction: reverse; }
@keyframes wave-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* bottle */
.bottle {
  position: absolute; left: 8%; width: 84%; bottom: 17%; z-index: 2;
  background: none; border: 0; padding: 0; cursor: pointer;
  animation: bob 4.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.bottle svg { width: 100%; height: auto; overflow: visible; transform: rotate(-10deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
.b-cork, .b-scroll, .b-pulse { transform-box: fill-box; transform-origin: center; }
.b-pulse { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

.seal-hint {
  position: absolute; left: 0; right: 0; top: 46%; z-index: 5; text-align: center; margin: 0;
  font-family: var(--f-script2); font-size: 22px; line-height: 1.5; color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  transition: opacity .3s;
  animation: rise 1.2s .5s ease both;
}
.seal-hint small { display: block; font-family: var(--f-serif); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-soft); margin-top: 6px; }
.floral-reef-l { width: 44%; left: -10%; bottom: -2%; z-index: 5; }
.floral-reef-r { width: 40%; right: -10%; bottom: -1%; z-index: 5; transform: scaleX(-1); }

/* unrolled note */
.note {
  position: absolute; left: 50%; top: 50%; width: 76%; z-index: 7;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
}
.note-paper {
  position: relative; text-align: center; color: var(--ocean-800);
  padding: 40px 18px 36px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #fffaf0, #f3e9d2);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  clip-path: inset(50% 0 50% 0);
}
.note::before, .note::after {
  content: ""; position: absolute; left: -5%; right: -5%; height: 20px; z-index: 1; top: 50%;
  border-radius: 10px; transform: translateY(-50%);
  background: linear-gradient(180deg, #fbf3e1, #d9c59c 70%, #c8b285);
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.note .monogram { color: var(--ocean-700); }
.letter-names { font-size: clamp(30px, 8.4vw, 40px); color: var(--ocean-700); }

/* opening sequence */
.intro.is-opening .intro-title, .intro.is-opening .seal-hint { animation: fadeOut .5s ease forwards; }
.intro.is-opening .b-pulse { animation: none; opacity: 0; }
.intro.is-opening .b-cork { transform: translate(80px, -110px) rotate(200deg); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.3,1), opacity .5s ease .4s; }
.intro.is-opening .b-scroll { transform: translateX(260px); opacity: 0; transition: transform 1s ease-in .45s, opacity .35s ease 1.15s; }
.bottle { translate: 0 0; rotate: 0deg; }
.intro.is-opening .bottle { translate: 0 70px; rotate: -6deg; opacity: 0; transition: translate 1.4s ease 1.2s, rotate 1.4s ease 1.2s, opacity 1s ease 1.4s; }
.intro.is-opening .note { opacity: 1; transition: opacity .3s ease 1.3s; }
.intro.is-opening .note-paper { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.4,0,.2,1) 1.5s; }
.intro.is-opening .note::before { top: 0; transition: top 1s cubic-bezier(.4,0,.2,1) 1.5s; }
.intro.is-opening .note::after { top: 100%; transition: top 1s cubic-bezier(.4,0,.2,1) 1.5s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Monogram ---------- */
.monogram {
  position: relative; display: grid; place-items: center;
  font-family: var(--f-body); color: var(--cream); line-height: 1;
}
.monogram .m1, .monogram .m2 { grid-area: 1 / 1; font-weight: 400; }
.monogram .m1 { transform: translate(-30%, -10%); }
.monogram .m2 { transform: translate(30%, 12%); font-style: italic; }
.monogram .amp { grid-area: 1 / 1; font-family: var(--f-script); transform: translate(-70%, 70%); opacity: .9; }
.monogram-sm { font-size: clamp(30px, 10vw, 46px); }
.monogram-sm .amp { font-size: .5em; }
.monogram-lg { font-size: 84px; margin: 40px auto 10px; }
.monogram-lg .amp { font-size: .45em; }

/* ---------- Main ---------- */
.main { position: relative; z-index: 1; display: none; }
.main.shown { display: block; animation: fadeIn 1s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.section { position: relative; padding: 64px 22px; text-align: center; }
.section-title { font-size: clamp(42px, 12vw, 54px); color: var(--cream); margin-bottom: 34px; }
.caps-title { font-family: var(--f-serif); font-weight: 400; letter-spacing: .3em; font-size: 40px; margin: 0 0 34px; padding-left: .3em; }
.caps-wide { font-family: var(--f-serif); letter-spacing: .3em; text-transform: uppercase; font-size: clamp(15px, 4.6vw, 21px); margin: 20px 0 6px; }
.spaced-date { font-family: var(--f-serif); letter-spacing: .3em; font-size: clamp(22px, 7vw, 32px); color: var(--cream); margin: 6px 0; padding-left: .3em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Opening (ocean) ---------- */
.opening { position: relative; padding: 24px 16px 50px; min-height: 100svh; }
.script-sm { font-family: var(--f-script); font-size: 34px; line-height: 1; }
.plaque-big { font-family: var(--f-serif); font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 8.4vw, 38px); line-height: 1; letter-spacing: .01em; margin: 6px 0; }
.opening .floral { z-index: 5; }

/* sea-glass sign */
.glass-sign {
  position: relative; z-index: 3; width: 72%; margin-left: 8%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 18px 64px; color: var(--ocean-800);
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(255,255,255,.97), rgba(214,236,248,.93));
  box-shadow: 0 18px 40px rgba(6,24,46,.35), inset 0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 7px rgba(160,216,239,.5);
}
.compass { width: 34px; height: 34px; color: var(--ocean-600); margin-bottom: 4px; animation: spin-slow 18s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.sign-waves { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 54px; overflow: hidden; border-radius: 0 0 21px 21px; }
.sw { position: absolute; left: 0; bottom: 0; width: 200%; animation: wave-move linear infinite; }
.sw1 { height: 100%; fill: rgba(74,150,216,.45); animation-duration: 10s; }
.sw2 { height: 70%; fill: var(--ocean-600); animation-duration: 7s; animation-direction: reverse; }
.sw2 path { stroke: rgba(238,246,252,.8); stroke-width: 2; vector-effect: non-scaling-stroke; }
.floral-sign { width: 46%; right: -18%; top: -14%; }

/* life ring = "The Details" link */
.life-ring {
  position: relative; z-index: 4; display: block; width: 46%; aspect-ratio: 1;
  margin: -70px 3% 0 auto; text-decoration: none;
  animation: ring-bob 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 16px rgba(6,24,46,.45));
  -webkit-tap-highlight-color: transparent;
}
.life-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--cream); }
.ring-text .script-sm { font-size: clamp(22px, 6vw, 28px); }
.ring-text b { font-family: var(--f-serif); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(15px, 4.4vw, 21px); line-height: 1.1; }
.ring-text small { font-family: var(--f-serif); font-size: 7px; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
@keyframes ring-bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-9px) rotate(5deg); } }

/* porthole photo */
.porthole { position: relative; z-index: 2; width: 64%; aspect-ratio: 1; margin: -26px 0 0 6%; }
.porthole img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; border-radius: 50%; object-fit: cover; }
.porthole::after {
  content: ""; position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.3), transparent 38%), radial-gradient(circle, transparent 62%, rgba(6,24,46,.35));
}
.porthole-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.floral-port { width: 52%; left: -16%; bottom: -10%; }

/* arched window photo with waves */
.arch { position: relative; z-index: 3; width: 54%; margin: -6% 7% 0 auto; }
.arch-inner {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 999px 999px 22px 22px;
  box-shadow: 0 0 0 4px #eef6fc, 0 0 0 10px rgba(160,216,239,.4), 0 18px 34px rgba(6,24,46,.45);
}
.arch-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.arch-waves { position: absolute; left: 0; bottom: -1px; width: 200%; animation: wave-move linear infinite; }
.aw1 { height: 9%; fill: rgba(160,216,239,.5); animation-duration: 11s; }
.aw2 { height: 5%; fill: var(--ocean-600); animation-duration: 7s; animation-direction: reverse; }
.aw2 path { stroke: rgba(238,246,252,.85); stroke-width: 2; vector-effect: non-scaling-stroke; }
.floral-arch { width: 46%; right: -16%; bottom: -12%; }

/* save-the-date hexagon (unchanged) */
.std-photo img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(25% 2%, 80% 6%, 99% 48%, 78% 95%, 22% 98%, 2% 52%);
}
.hex-lines { position: absolute; inset: -6%; width: 112%; height: 112%; fill: none; stroke: var(--blush); stroke-width: .5; opacity: .85; z-index: 1; vector-effect: non-scaling-stroke; }
.hex-lines polygon { vector-effect: non-scaling-stroke; stroke-width: 1.2; }

.opening-names { font-size: clamp(38px, 10.5vw, 54px); text-align: center; margin-top: 46px; }
.opening .spaced-date { text-align: center; font-size: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% top; }
.hero-img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 45%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 45%, transparent 96%); }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(11,36,66,.55) 52%, rgba(11,36,66,.6) 82%, transparent 100%); }
.hero-content { position: relative; width: 100%; padding: 0 20px 34px; text-align: center; }
.hero-name { font-size: clamp(64px, 19vw, 92px); text-shadow: 0 2px 4px rgba(6,24,46,.5), 0 4px 18px rgba(6,24,46,.6); }
.hero-groom { text-align: left; padding-left: 4%; }
.hero-bride { text-align: right; padding-right: 6%; margin-top: -4px; }
.hero-amp { font-size: 48px; margin: -6px 0 -14px; }
.hero .caps-wide { color: #fff; }
.countdown { display: flex; justify-content: center; gap: clamp(14px, 5vw, 28px); margin-top: 18px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.countdown b { font-family: var(--f-serif); font-weight: 700; font-size: clamp(34px, 10vw, 44px); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--f-serif); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.cd-note { font-family: var(--f-script2); font-size: 20px; text-align: right; margin-top: 16px; }

/* ---------- Invite + calendar ---------- */
.invite-text { font-size: 21px; line-height: 1.35; margin: 0 0 28px; }
.invite-script { font-size: 36px; margin-bottom: 40px; }
.std { display: grid; grid-template-columns: 44% 56%; align-items: center; gap: 6px; }
.std-photo { position: relative; aspect-ratio: 1; }
.floral-std { width: 60%; left: -18%; bottom: -14%; }
.cal-label { font-family: var(--f-serif); letter-spacing: .06em; text-transform: uppercase; margin: 0; font-size: 15px; }
.cal-month { font-family: var(--f-serif); font-weight: 700; font-size: 20px; margin: 2px 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; font-family: var(--f-serif); font-size: 13px; font-weight: 600; }
.cal-grid .dow { font-size: 10px; font-weight: 400; letter-spacing: 0; opacity: .85; margin-bottom: 4px; }
.cal-grid span { display: grid; place-items: center; height: 22px; }
.cal-grid .wed { position: relative; color: #fff; }
.cal-grid .wed::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #a0d8ef; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- Glass cards ---------- */
.glass-card {
  position: relative;
  border: 1px solid rgba(160,216,239,.55);
  border-radius: 30px;
  padding: 46px 18px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02) 40%, rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- Love story ---------- */
.story-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; margin: 10px 0 28px; }
.story-row:nth-child(even) .story-text { order: 2; }
.story-text h3 { font-family: var(--f-serif); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: 17px; margin: 0; }
.story-text p { font-family: var(--f-script2); font-size: 23px; margin: 2px 0 0; color: var(--cream-soft); }
.story-art { width: 100%; max-width: 150px; justify-self: center; aspect-ratio: 1; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0 6px 76px; }
/* each photo is a floating bubble */
.gallery-item {
  position: relative; border: 0; padding: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--ocean-800); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(238,246,252,.55), 0 0 0 9px rgba(160,216,239,.15), 0 14px 26px rgba(6,24,46,.45);
  --off: 0px; animation: bubble-float 6s ease-in-out infinite;
}
.gallery-item:nth-child(2) { --off: 44px; animation-delay: -1.5s; animation-duration: 7s; }
.gallery-item:nth-child(3) { animation-delay: -3s; animation-duration: 6.5s; }
.gallery-item:nth-child(4) { --off: 44px; animation-delay: -4.5s; animation-duration: 7.5s; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(var(--off)); }
  50% { transform: translateY(calc(var(--off) - 10px)); }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::before { /* glossy rim + shine */
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 16% 9% at 30% 20%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(circle at 74% 80%, rgba(255,255,255,.35) 0 3%, transparent 6%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(160,216,239,.3) 80%, rgba(238,246,252,.7) 100%);
}
.gallery-item.more::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11,36,66,.5); }
.more-label {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--f-serif); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(6,24,46,.6);
}
.more-label b { font-size: clamp(30px, 9vw, 40px); letter-spacing: .02em; line-height: 1; margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; color: var(--ocean-800);
  /* white scallop shell: pearly base with faint ribs fanning up from the hinge */
  background:
    repeating-conic-gradient(from -90deg at 50% 135%, rgba(127,182,216,.28) 0 1.2deg, transparent 1.2deg 7deg),
    radial-gradient(ellipse at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fd 55%, #dcecf6 100%);
  font-family: var(--f-serif); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: 16px; padding: 15px 36px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: inset 0 -3px 6px rgba(127,182,216,.35), 0 6px 16px rgba(6,24,46,.3);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: inset 0 -3px 6px rgba(127,182,216,.35), 0 0 22px rgba(160,216,239,.55); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .75; cursor: default; }
.btn-pill { border-radius: 999px; padding: 17px 48px; font-size: 18px; }
.btn-block { width: 100%; margin-bottom: 1rem; }
.btn-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 -3px 6px rgba(127,182,216,.35), 0 0 30px rgba(160,216,239,.7); transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  .btn-glow { animation: none; }
}

/* ---------- Venue ---------- */
.venue { margin-bottom: 40px; }
.venue h3 { font-family: var(--f-script); font-weight: 400; font-size: 50px; margin: 0 0 18px; }
.venue-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; text-align: center; margin-bottom: 26px; }
.venue-body img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.venue-name { font-family: var(--f-serif); font-weight: 700; font-size: 17px; margin: 0; line-height: 1.4; }
.venue-addr { font-family: var(--f-serif); font-size: 16px; margin: 2px 0 0; color: var(--cream-soft); line-height: 1.5; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: 1fr 14px 1fr; row-gap: 6px; }
.tl-row { display: contents; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 16px; margin-left: -8px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='26' viewBox='0 0 16 26'%3E%3Cpath d='M8 0 L14 6.5 L2 19.5 L8 26' fill='none' stroke='%23eef6fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center top / 16px 26px repeat-y; }
.tl-node { grid-column: 2; position: relative; z-index: 1; display: grid; place-items: center; height: 64px; }
.tl-node svg { width: 38px; height: 62px; }
.tl-node .o { fill: var(--ocean-700); stroke: var(--cream); stroke-width: 2; }
.tl-node .i { fill: var(--cream); }
.tl-item { display: flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-size: 16px; line-height: 1.2; position: relative; }
.tl-item.right { grid-column: 3; justify-content: flex-start; padding-left: 10px; text-align: left; }
.tl-item.left { grid-column: 1; justify-content: flex-end; padding-right: 10px; text-align: right; }
.tl-item::before { content: ""; position: absolute; top: 50%; margin-top: -1px; height: 2px; width: 10px; background: radial-gradient(circle, var(--cream) 1px, transparent 1.4px) 0 0 / 5px 2px repeat-x; }
.tl-item.right::before { left: 0; }
.tl-item.left::before { right: 0; }
.tl-item b { display: block; font-weight: 400; font-size: 17px; }
.tl-icon { width: 46px; height: 46px; flex: none; color: var(--cream); padding: 10px; border-radius: 50%; background: rgba(160,216,239,.16); box-shadow: inset 0 0 0 1.5px rgba(238,246,252,.75), 0 0 12px rgba(160,216,239,.3); position: relative; }
.tl-icon::after { content: ""; position: absolute; top: 7px; left: 10px; width: 6px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.6); transform: rotate(-30deg); }
.tl-icon svg { width: 100%; height: 100%; }

/* ---------- Entourage ---------- */
.entourage {
  position: relative; overflow: hidden;
  border: 1px solid rgba(160,216,239,.55); border-radius: 30px;
  padding: 50px 14px 60px;
  background:
    radial-gradient(60% 40% at 0% 20%, rgba(75,168,173,.45), transparent 70%),
    radial-gradient(50% 40% at 100% 70%, rgba(75,168,173,.4), transparent 70%),
    radial-gradient(circle at 12% 18%, rgba(160,216,239,.35) 0 1px, transparent 1.6px) 0 0 / 53px 41px,
    radial-gradient(circle at 70% 60%, rgba(160,216,239,.25) 0 1.4px, transparent 2px) 0 0 / 97px 83px,
    linear-gradient(180deg, #1f528f, #143a6a);
}
.ent-family { font-family: var(--f-script2); font-size: 42px; line-height: 1; margin: 0; }
.ent-nuptials { font-family: var(--f-body); letter-spacing: .14em; font-size: 15px; margin: 0 0 22px; }
.ent-h { font-family: var(--f-serif); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 18px; color: #eef6fc; margin: 26px 0 6px; }
.ent-sub { font-family: var(--f-body); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; margin: -2px 0 10px; opacity: .9; }
.ent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ent-cols.three { grid-template-columns: repeat(3, 1fr); }
.ent-col .ent-h { font-size: 15px; margin-top: 16px; }
.ent-names { font-family: var(--f-body); font-size: 14px; line-height: 1.5; margin: 0; }
.ent-names.wide { font-size: 13.5px; }
.ent-span { grid-column: 1 / -1; }
.floral-ent { width: 46%; right: -6%; bottom: -6%; }

/* ---------- Dress code ---------- */
.caps-lead { font-family: var(--f-serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 21px; line-height: 1.5; margin: 0 0 24px; }
.caps-sub { font-family: var(--f-serif); letter-spacing: .1em; text-transform: uppercase; font-size: 21px; margin: 0 0 20px; }
.caps-small { font-family: var(--f-serif); letter-spacing: .12em; text-transform: uppercase; font-size: 15px; margin: 0 0 40px; }
.palettes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.palettes .sep { width: 0; height: 70px; border-left: 2px dashed var(--cream-soft); margin-bottom: 0; }
.palette h4 { font-family: var(--f-serif); font-weight: 400; letter-spacing: .06em; font-size: 18px; margin: 0 0 10px; }
.swatches { display: flex; justify-content: center; }
.swatches i { width: 38px; aspect-ratio: 1; border-radius: 50%; margin-left: -10px; box-shadow: 0 0 0 1.5px rgba(238,246,252,.7), -2px 0 6px rgba(0,0,0,.25); }
.swatches i:first-child { margin-left: 0; }
.attire { font-family: var(--f-serif); text-transform: uppercase; letter-spacing: .02em; font-size: 20px; margin: 18px 0 22px; }
.palettes { margin-top: 8px; }
.attire-img { display: block; width: 100%; height: auto; border-radius: 16px; margin: 0 0 22px; box-shadow: 0 0 0 3px rgba(238,246,252,.5), 0 12px 24px rgba(6,24,46,.35); }
.tiny-note { font-family: var(--f-serif); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; opacity: .9; margin: 0; }

/* ---------- Reminders ---------- */
.reminder { margin-bottom: 40px; }
.reminder h3 { font-family: var(--f-script); font-weight: 400; font-size: 38px; margin: 0; }
.reminder .bar { display: block; width: 80px; height: 2px; background: var(--cream); margin: 10px auto 22px; }
.rem-card {
  border: 2px solid var(--cream); border-radius: 18px; padding: 30px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(255,255,255,.04));
}
.rem-icon { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--cream); display: grid; place-items: center; margin: 0 auto 22px; background: rgba(255,255,255,.12); color: var(--cream); }
.rem-icon svg { width: 44px; height: 44px; stroke-width: 1.8; }
.rem-card p { font-family: var(--f-body); font-size: 17px; letter-spacing: .02em; line-height: 1.75; margin: 0; }
.rem-card .btn { width: 100%; margin-top: 22px; }

/* ---------- RSVP ---------- */
.rsvp { padding-top: 90px; padding-bottom: 0; }
.rsvp .caps-lead { font-weight: 400; letter-spacing: .16em; font-size: 24px; }
.rsvp-script { font-size: 44px; margin: 30px 0 22px; }
.rsvp-by { font-family: var(--f-serif); letter-spacing: .08em; font-size: 22px; line-height: 1.4; margin: 0 0 26px; }
.rsvp-note { font-family: var(--f-serif); letter-spacing: .06em; font-size: 15px; line-height: 1.9; opacity: .9; }
.footer-names { font-size: 40px; }
.copyright { position: relative; z-index: 2; margin: -2px -22px 0; padding: 8px 16px 12px; background: #b9a57a; color: #4a3a22; font-family: var(--f-serif); font-size: 11px; letter-spacing: .08em; }

/* ---------- Modals ---------- */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(6,24,46,.75);
  backdrop-filter: blur(3px);
  animation: fadeIn .3s ease;
}
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-card {
  position: relative; width: min(440px, 100%); max-height: 90svh; overflow: auto;
  background: linear-gradient(180deg, #143a6a, #0b2442);
  border: 2px solid var(--cream); border-radius: 26px;
  padding: 34px 26px 30px; text-align: center;
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 40px; margin-bottom: 22px; }
.modal-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; background: none; padding: 6px; color: var(--cream); z-index: 2; }
.modal-x svg { width: 100%; height: 100%; stroke-width: 2.2; }
.gift-list { display: grid; gap: 26px; justify-items: center; }
.gift-list figure { margin: 0; }
.gift-list img { width: 210px; aspect-ratio: 1; object-fit: contain; background: #fff; border: 3px solid var(--cream-soft); border-radius: 18px; padding: 10px; }
.gift-list figcaption { font-family: var(--f-serif); font-weight: 600; letter-spacing: .14em; font-size: 22px; margin-top: 12px; }

.rsvp-form { display: grid; gap: 16px; text-align: left; font-family: var(--f-serif); font-size: 14px; letter-spacing: .06em; }
.rsvp-form label { display: grid; gap: 6px; }
.rsvp-form[hidden] { display: none; }
.rsvp-form input[type=text], .rsvp-form textarea {
  width: 100%; font: 17px var(--f-body); color: var(--cream);
  background: rgba(255,255,255,.06); border: 1px solid rgba(238,246,252,.5); border-radius: 10px; padding: 10px 12px;
}
.rsvp-form input:focus, .rsvp-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rsvp-form legend { margin-bottom: 8px; }
.choice { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(238,246,252,.35); border-radius: 10px; font-family: var(--f-body); font-size: 18px; letter-spacing: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--cream); background: rgba(238,246,252,.1); }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; }
.form-error { color: #ffb4b4; margin: 0; min-height: 1em; font-size: 14px; }

.lightbox { background: rgba(4,14,28,.94); }
.lightbox img { max-width: 100%; max-height: 82svh; border-radius: 12px; object-fit: contain; user-select: none; }
.lb-frame { position: relative; margin: 0; line-height: 0; }
/* 100vw, not 100%: a % max-width can't resolve against the shrink-to-fit frame. 36px = lightbox padding. */
.lb-frame img { display: block; max-width: calc(100vw - 36px);border: 3px solid var(--cream-soft); border-radius: 14px; box-shadow: 0 0 0 1.5px var(--gold-deep), 0 12px 32px rgba(0,0,0,.55); }
.lb-coral { position: absolute; width: 70px; height: 70px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(4,14,28,.6)); }
.lb-coral-bl { left: -22px; bottom: -14px; transform: rotate(-24deg); }
.lb-coral-br { right: -22px; bottom: -14px; transform: rotate(24deg) scaleX(-1); }
.lb-coral-tl { left: -18px; top: -12px; width: 56px; height: 56px; transform: rotate(204deg) scaleX(-1); }
.lb-coral-tr { right: -18px; top: -12px; width: 56px; height: 56px; transform: rotate(156deg); }

/* The scallop's narrow hinge points the way the button goes. */
.lb-nav { position: absolute; top: 50%; z-index: 1; width: 62px; height: 62px; margin-top: -31px; border: 0; background: none; padding: 0; color: var(--ink); filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); transition: transform .2s ease; }
.lb-nav svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-prev .lb-shell { transform: rotate(90deg); }
.lb-next .lb-shell { transform: rotate(-90deg); }
.lb-nav .lb-arrow { inset: auto; top: 19px; width: 24px; height: 24px; stroke-width: 3; }
.lb-prev .lb-arrow { left: 22px; } .lb-next .lb-arrow { left: 16px; }
.lb-nav:hover, .lb-nav:focus-visible { transform: scale(1.08); }
.lb-nav:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-radius: 50%; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--f-serif); letter-spacing: .2em; font-size: 14px; }

.music-btn {
  position: fixed; right: max(16px, calc(50vw - 240px + 16px)); bottom: 18px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%; padding: 12px;
  border: 1.5px solid var(--cream); background: rgba(18,52,98,.8); color: var(--cream);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.music-btn svg { width: 100%; height: 100%; }
.music-btn.playing svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

@keyframes fadeOut { to { opacity: 0; transform: translateY(-12px); } }
.plaque-tide { font-size: clamp(40px, 12vw, 56px); letter-spacing: .06em; }


/* =========================================================
   Under-the-sea ambience
   ========================================================= */
/* sun rays from the surface */
.sea-light {
  position: fixed; top: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(100vw, 480px); height: 75vh; transform: translateX(-50%);
  overflow: hidden; mix-blend-mode: screen; opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
          mask-image: linear-gradient(180deg, #000, transparent);
}
.sea-light span {
  position: absolute; top: -10%; width: 16%; height: 120%;
  background: linear-gradient(180deg, rgba(220,240,255,.42), rgba(220,240,255,0) 85%);
  transform-origin: top center; filter: blur(8px);
  animation: ray 10s ease-in-out infinite alternate;
}
@keyframes ray {
  from { transform: rotate(calc(var(--r) - 4deg)); opacity: .45; }
  to   { transform: rotate(calc(var(--r) + 4deg)); opacity: 1; }
}

/* passing fish, turtles and jellyfish */
.sea-life {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(100vw, 480px); transform: translateX(-50%); overflow: hidden;
}
.creature { position: absolute; left: 0; color: #a0d8ef; opacity: .45; will-change: transform; }
.creature svg { display: block; overflow: visible; }
.creature.ltr { animation: swim-ltr linear forwards; }
.creature.rtl { animation: swim-rtl linear forwards; }
.creature.rtl svg { transform: scaleX(-1); }
@keyframes swim-ltr { from { transform: translateX(-140px); } to { transform: translateX(min(100vw, 480px)); } }
@keyframes swim-rtl { from { transform: translateX(min(100vw, 480px)); } to { transform: translateX(-140px); } }
.creature .bob { animation: bob-y 2.6s ease-in-out infinite; }
@keyframes bob-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.school { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(2, 18px); gap: 4px 8px; }
.school svg { width: 30px; height: 15px; }
.school svg:nth-child(2) { grid-column: 2; grid-row: 2; }
.school svg:nth-child(3) { grid-column: 3; grid-row: 1; margin-top: 6px; }
.lone svg { width: 44px; height: 22px; }
.turtle svg { width: 110px; height: 76px; }
.turtle { opacity: .38; }
.jelly { color: #cfe9f6; opacity: .42; animation: jelly-rise linear forwards; }
.jelly svg { width: 44px; height: 74px; animation: jelly-pulse 2.8s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes jelly-rise { from { transform: translateY(105vh); } to { transform: translateY(-140px); } }
@keyframes jelly-pulse { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(1.12, .86); } }

/* seabed at the very bottom */
.seabed { position: relative; height: 230px; margin: 30px -22px 0; overflow: hidden; }
.sand { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.kelp-svg { position: absolute; bottom: 40px; width: 34px; height: 170px; color: #3f8f86; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
.kp1 { left: 4%; height: 190px; animation-delay: -1s; }
.kp2 { left: 13%; height: 140px; color: #2e7f86; animation-delay: -3s; }
.kp3 { left: 78%; height: 200px; animation-delay: -2s; }
.kp4 { left: 88%; height: 150px; color: #2e7f86; animation-delay: -4s; }
.kp5 { left: 46%; height: 110px; color: #4ba8ad; opacity: .7; animation-delay: -5s; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.floral-seabed-l { width: 46%; left: 6%; bottom: 10px; }
.floral-seabed-r { width: 42%; right: 4%; bottom: 6px; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .sea-life { display: none; }
}


/* =========================================================
   Opening = open ocean with a yacht floating on the water
   ========================================================= */
.opening {
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.85) 0 1.2px, transparent 2px) 0 0 / 57px 43px,
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.6) 0 1px, transparent 1.8px) 0 0 / 83px 61px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60'%3E%3Cpath d='M0 30 Q22 22 45 30 T90 30 T135 30 T180 30' fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='1.6'/%3E%3Cpath d='M20 52 Q35 47 50 52' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M120 10 Q135 5 150 10' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 180px 60px,
    radial-gradient(90% 35% at 50% 0%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, #bfe7f4 0%, #8fd2e8 25%, #5fb8d8 55%, #3f94c6 82%, #2f66a6 100%);
}
.opening > * { position: relative; }

/* the yacht with your names painted on the hull */
.yacht-wrap { margin: 40px -16px 0; z-index: 2; }
.yacht-bob { position: relative; z-index: 1; animation: yacht-bob 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes yacht-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}
.yacht { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(11,36,66,.3)); }
.yacht-text {
  position: absolute; left: 12%; right: 12%; top: 63%; height: 24%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.yacht-text .opening-names { margin: 0; font-size: clamp(26px, 7.4vw, 38px); color: var(--ocean-800); text-shadow: none; line-height: 1.05; }
.yacht-text .spaced-date { margin: 2px 0 0; font-size: clamp(12px, 3.4vw, 16px); color: var(--ocean-600); letter-spacing: .3em; }
.yacht-sea { position: relative; height: 70px; margin-top: -52px; z-index: 2; pointer-events: none; }
.ys { position: absolute; left: 0; bottom: 0; width: 200%; animation: wave-move linear infinite; }
.ys1 { height: 100%; fill: rgba(95,184,216,.7); animation-duration: 11s; }
.ys1 path { stroke: #ffffff; stroke-width: 3; stroke-opacity: .9; vector-effect: non-scaling-stroke; }
.ys2 { height: 62%; fill: #2f66a6; animation-duration: 7s; animation-direction: reverse; }
.ys2 path { stroke: rgba(238,246,252,.6); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* =========================================================
   Intro = bottle washed ashore on a sandy beach
   ========================================================= */
.intro {
  background:
    radial-gradient(circle at 20% 30%, rgba(150,118,70,.28) 0 1px, transparent 1.6px) 0 0 / 23px 19px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 1px, transparent 1.6px) 0 0 / 31px 27px,
    radial-gradient(circle at 40% 80%, rgba(150,118,70,.18) 0 1.3px, transparent 2px) 0 0 / 47px 41px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='34'%3E%3Cpath d='M0 17 Q20 9 40 17 T80 17 T120 17 T160 17' fill='none' stroke='%23a88c5a' stroke-opacity='.16' stroke-width='1.4'/%3E%3C/svg%3E") 0 0 / 160px 34px,
    radial-gradient(120% 50% at 50% 0%, #fbf5e6, transparent 70%),
    linear-gradient(180deg, #f6ecd5 0%, #efe0bf 42%, #e2cd9f 58%, #cdb683 72%, #b9a272 100%);
}
.intro-frame { border-color: rgba(43,95,158,.28); }
.intro-frame::after { border-color: rgba(43,95,158,.14); }
.intro-title { color: var(--ocean-800); text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 6px 18px rgba(150,118,70,.25); }
.seal-hint { color: var(--ocean-800); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.seal-hint small { color: var(--ocean-600); }
.sand-items { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sand-item { position: absolute; aspect-ratio: 1; height: auto; opacity: .9; filter: drop-shadow(0 3px 3px rgba(110,82,50,.3)); }

/* shallow water washing over the sand, with a foam edge */
.w1 { fill: rgba(120,200,225,.38); }
.w1 path { stroke: #ffffff; stroke-width: 4; stroke-opacity: .9; vector-effect: non-scaling-stroke; }
.w2 { fill: rgba(74,150,216,.55); }
.w2 path { stroke: rgba(255,255,255,.6); stroke-width: 2; vector-effect: non-scaling-stroke; }
.waves-back { animation: shore-swash 5s ease-in-out infinite alternate; }
@keyframes shore-swash { from { transform: translateY(6px); } to { transform: translateY(-6px); } }

/* the bottle rests on the wet sand, rocked by the waves */
.bottle { animation: rock 4.2s ease-in-out infinite; }
@keyframes rock {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
}

/* names + date on the "Two hearts, one tide" card */
.sign-divider { display: block; width: 70px; height: 1.5px; margin: 14px auto 10px; background: linear-gradient(90deg, transparent, var(--ocean-500), transparent); }
.sign-names { font-size: clamp(28px, 7.6vw, 36px); color: var(--ocean-700); line-height: 1.1; }
.sign-date { font-family: var(--f-serif); font-size: 13px; letter-spacing: .3em; color: var(--ocean-600); margin-top: 6px; padding-left: .3em; }

/* =========================================================
   "Two hearts, one tide" sailboat
   ========================================================= */
.sail-boat { position: relative; z-index: 3; width: 86%; margin: 0 0 0 2%; }
.sail-bob { position: relative; animation: yacht-bob 5.5s ease-in-out infinite; transform-origin: 50% 85%; }
.sail-boat-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 16px rgba(11,36,66,.3)); }
.sail-text {
  position: absolute; left: 17%; right: 17%; top: 9%; height: 59%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ocean-800);
}
.sail-text .compass { width: 30px; height: 30px; margin-bottom: 2px; color: var(--ocean-600); }
.sail-text .script-sm { font-size: clamp(24px, 6.6vw, 32px); }
.sail-text .plaque-tide { font-size: clamp(36px, 10.5vw, 52px); margin: 4px 0; }
.sail-sea { position: relative; height: 56px; margin: -44px -6% 0; z-index: 2; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.section-sea { margin: 40px -16px 0; }

/* =========================================================
   Photo frames: life preserver + sailboat sail
   ========================================================= */
/* soft (not solid) water under the big sailboat */
.sail-sea .ys2 { fill: rgba(63,148,198,.5); }

.buoy { position: relative; z-index: 2; width: 66%; aspect-ratio: 1; margin: -20px 0 0 4%; animation: buoy-float 6s ease-in-out infinite; }
@keyframes buoy-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.buoy img { position: absolute; left: 16.5%; top: 16.5%; width: 67%; height: 67%; border-radius: 50%; object-fit: cover; }
.buoy-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(11,36,66,.35)); }
.buoy .floral-port { width: 50%; left: -12%; bottom: -8%; }

.sail-photo { position: relative; z-index: 3; width: 60%; margin: 8% 5% 0 auto; }
.sp-boat { position: relative; animation: yacht-bob 5s ease-in-out infinite; transform-origin: 50% 90%; }
.sp-sail { position: relative; width: 88%; margin-left: 6%; aspect-ratio: 3 / 4.1; }
.sp-photo { position: absolute; inset: 0; clip-path: polygon(8% 0%, 13% 0%, 32% 13%, 52% 30%, 69% 49%, 83% 68%, 93% 86%, 98% 100%, 8% 100%); }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.sp-outline { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ffffff; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 10px rgba(11,36,66,.35)); }
.sp-outline polygon { vector-effect: non-scaling-stroke; }
.sp-mast { position: absolute; left: 5%; top: -7%; bottom: -2%; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #dfe9f1, #a9bfd1); z-index: 1; }
.sp-pennant { position: absolute; left: calc(5% + 6px); top: -7%; width: 26px; height: 16px; background: #4ba8ad; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sp-hull { display: block; width: 100%; height: auto; margin-top: -2px; filter: drop-shadow(0 8px 10px rgba(11,36,66,.3)); }
.sp-sea { position: relative; height: 40px; margin: -30px -8% 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }

/* Save-the-date photo inside a scallop shell */
.clam-photo { position: relative; aspect-ratio: 116 / 84; filter: drop-shadow(0 10px 14px rgba(6,24,46,.4)); }
.clam-img { position: absolute; inset: 0; clip-path: polygon(44.83% 88.10%, 3.21% 47.72%, 3.17% 44.94%, 3.41% 42.48%, 3.95% 40.34%, 4.76% 38.50%, 5.87% 36.99%, 7.26% 35.79%, 8.94% 34.90%, 10.91% 34.33%, 11.32% 31.61%, 11.95% 29.28%, 12.82% 27.35%, 13.91% 25.82%, 15.24% 24.68%, 16.79% 23.94%, 18.57% 23.59%, 20.58% 23.64%, 21.42% 21.11%, 22.41% 19.04%, 23.57% 17.43%, 24.88% 16.27%, 26.36% 15.57%, 27.99% 15.33%, 29.78% 15.54%, 31.73% 16.20%, 32.96% 14.00%, 34.26% 12.29%, 35.65% 11.07%, 37.12% 10.35%, 38.67% 10.12%, 40.30% 10.38%, 42.01% 11.14%, 43.81% 12.39%, 45.36% 10.61%, 46.90% 9.35%, 48.45% 8.59%, 50.00% 8.34%, 51.55% 8.59%, 53.10% 9.35%, 54.64% 10.61%, 56.19% 12.39%, 57.99% 11.14%, 59.70% 10.38%, 61.33% 10.12%, 62.88% 10.35%, 64.35% 11.07%, 65.74% 12.29%, 67.04% 14.00%, 68.27% 16.20%, 70.22% 15.54%, 72.01% 15.33%, 73.64% 15.57%, 75.12% 16.27%, 76.43% 17.43%, 77.59% 19.04%, 78.58% 21.11%, 79.42% 23.64%, 81.43% 23.59%, 83.21% 23.94%, 84.76% 24.68%, 86.09% 25.82%, 87.18% 27.35%, 88.05% 29.28%, 88.68% 31.61%, 89.09% 34.33%, 91.06% 34.90%, 92.74% 35.79%, 94.13% 36.99%, 95.24% 38.50%, 96.05% 40.34%, 96.59% 42.48%, 96.83% 44.94%, 96.79% 47.72%, 55.17% 88.10%); }
.clam-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.clam-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.clam-photo .floral-std { width: 52%; left: -16%; bottom: -26%; }
.std { grid-template-columns: 52% 48%; gap: 4px; }
.std .clam-photo { margin-left: -4%; width: 104%; }

/* Save-the-date photo inside a jellyfish bell */
.jelly-photo { position: relative; width: 100%; animation: jelly-drift 7s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(160,216,239,.45)); }
@keyframes jelly-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.jelly-bell { position: relative; aspect-ratio: 100 / 90; }
.jelly-img { position: absolute; inset: 0; clip-path: polygon(0.00% 82.22%, 0.06% 76.26%, 0.25% 71.26%, 0.57% 66.59%, 1.01% 62.14%, 1.57% 57.87%, 2.26% 53.76%, 3.06% 49.80%, 3.99% 45.97%, 5.04% 42.29%, 6.20% 38.75%, 7.47% 35.36%, 8.86% 32.10%, 10.35% 29.00%, 11.95% 26.05%, 13.65% 23.25%, 15.45% 20.61%, 17.35% 18.14%, 19.33% 15.83%, 21.41% 13.70%, 23.57% 11.73%, 25.82% 9.95%, 28.15% 8.34%, 30.55% 6.92%, 33.03% 5.68%, 35.58% 4.63%, 38.21% 3.76%, 40.93% 3.09%, 43.74% 2.61%, 46.69% 2.32%, 50.00% 2.22%, 53.31% 2.32%, 56.26% 2.61%, 59.07% 3.09%, 61.79% 3.76%, 64.42% 4.63%, 66.97% 5.68%, 69.45% 6.92%, 71.85% 8.34%, 74.18% 9.95%, 76.43% 11.73%, 78.59% 13.70%, 80.67% 15.83%, 82.65% 18.14%, 84.55% 20.61%, 86.35% 23.25%, 88.05% 26.05%, 89.65% 29.00%, 91.14% 32.10%, 92.53% 35.36%, 93.80% 38.75%, 94.96% 42.29%, 96.01% 45.97%, 96.94% 49.80%, 97.74% 53.76%, 98.43% 57.87%, 98.99% 62.14%, 99.43% 66.59%, 99.75% 71.26%, 99.94% 76.26%, 100.00% 82.22%, 99.84% 84.72%, 99.37% 86.64%, 98.60% 88.29%, 97.56% 89.67%, 96.30% 90.77%, 94.86% 91.57%, 93.29% 92.06%, 91.67% 92.22%, 90.04% 92.06%, 88.48% 91.57%, 87.04% 90.77%, 85.77% 89.67%, 84.74% 88.29%, 83.97% 86.64%, 83.49% 84.72%, 83.33% 82.22%, 83.17% 84.72%, 82.70% 86.64%, 81.93% 88.29%, 80.89% 89.67%, 79.63% 90.77%, 78.19% 91.57%, 76.63% 92.06%, 75.00% 92.22%, 73.37% 92.06%, 71.81% 91.57%, 70.37% 90.77%, 69.11% 89.67%, 68.07% 88.29%, 67.30% 86.64%, 66.83% 84.72%, 66.67% 82.22%, 66.51% 84.72%, 66.03% 86.64%, 65.26% 88.29%, 64.23% 89.67%, 62.96% 90.77%, 61.52% 91.57%, 59.96% 92.06%, 58.33% 92.22%, 56.71% 92.06%, 55.14% 91.57%, 53.70% 90.77%, 52.44% 89.67%, 51.40% 88.29%, 50.63% 86.64%, 50.16% 84.72%, 50.00% 82.22%, 49.84% 84.72%, 49.37% 86.64%, 48.60% 88.29%, 47.56% 89.67%, 46.30% 90.77%, 44.86% 91.57%, 43.29% 92.06%, 41.67% 92.22%, 40.04% 92.06%, 38.48% 91.57%, 37.04% 90.77%, 35.77% 89.67%, 34.74% 88.29%, 33.97% 86.64%, 33.49% 84.72%, 33.33% 82.22%, 33.17% 84.72%, 32.70% 86.64%, 31.93% 88.29%, 30.89% 89.67%, 29.63% 90.77%, 28.19% 91.57%, 26.63% 92.06%, 25.00% 92.22%, 23.37% 92.06%, 21.81% 91.57%, 20.37% 90.77%, 19.11% 89.67%, 18.07% 88.29%, 17.30% 86.64%, 16.83% 84.72%, 16.67% 82.22%, 16.51% 84.72%, 16.03% 86.64%, 15.26% 88.29%, 14.23% 89.67%, 12.96% 90.77%, 11.52% 91.57%, 9.96% 92.06%, 8.33% 92.22%, 6.71% 92.06%, 5.14% 91.57%, 3.70% 90.77%, 2.44% 89.67%, 1.40% 88.29%, 0.63% 86.64%, 0.16% 84.72%, -0.00% 82.22%); }
.jelly-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.jelly-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jelly-tentacles { display: block; width: 86%; height: auto; margin: -7% auto 0; overflow: visible; }
.jelly-tentacles .tent { transform-box: fill-box; transform-origin: 50% 0; animation: tentacle-sway 5s ease-in-out infinite alternate; }
.jelly-tentacles path { fill: none; stroke: rgba(207,233,246,.7); stroke-width: 1.1; stroke-linecap: round; }
.jelly-tentacles .arm path { stroke: rgba(160,216,239,.75); stroke-width: 3.2; }
.jelly-sparkle { fill: #fffbe8; transform-box: fill-box; transform-origin: center; animation: jelly-twinkle 2.4s ease-in-out infinite; }
.jelly-sparkle.s2 { animation-delay: -1.2s; }
@keyframes jelly-twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes tentacle-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* single venue card: photo full-width on top */
.venue h3 { font-size: clamp(36px, 10vw, 48px); line-height: 1.1; }
.venue-body { grid-template-columns: 1fr; gap: 18px; }
.venue-body img { aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: 0 0 0 3px rgba(238,246,252,.5), 0 12px 24px rgba(6,24,46,.35); }
.venue-name { font-size: 20px; }

/* timeline group headings (Ceremony / Reception) */
.tl-group {
  grid-column: 1 / -1; justify-self: center; position: relative; z-index: 1;
  margin: 18px 0 8px; padding: 7px 22px;
  border: 1.5px solid var(--cream); border-radius: 999px;
  background: var(--ocean-700); color: var(--cream);
  font-family: var(--f-serif); font-weight: 600; font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
}
.tl-group:first-child { margin-top: 0; }

/* crab markers on the timeline */
.tl-node svg { width: 54px; height: 44px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(6,24,46,.35)); animation: crab-scuttle 3.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
/* crab sits on the opposite side of the line from its label */
.tl-node.crab-l { transform: translateX(calc(-46px - var(--off, 0px))); }
.tl-node.crab-r { transform: translateX(calc(38px + var(--off, 0px))); }
@keyframes crab-scuttle {
  0% { transform: translateX(-3px) rotate(-4deg); }
  100% { transform: translateX(3px) rotate(4deg); }
}

/* gift QR codes: held in an open scallop shell like a pearl */
.gift-list { gap: 44px; padding-top: 34px; }
.treasure { position: relative; width: 230px; margin: 0; }
.treasure-shell { position: absolute; left: 50%; top: -46px; width: 290px; transform: translateX(-50%); z-index: 0; filter: drop-shadow(0 6px 10px rgba(6,24,46,.35)); }
.qr-card {
  position: relative; z-index: 1; margin-top: 40px; padding: 12px; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 4px rgba(160,216,239,.9), 0 0 0 9px rgba(238,246,252,.25), 0 14px 26px rgba(6,24,46,.45);
}
.gift-list .qr-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border: 0; border-radius: 10px; padding: 0; background: #fff; }
.treasure-star { position: absolute; z-index: 2; right: -22px; bottom: 50px; width: 52px; transform: rotate(18deg); filter: drop-shadow(0 4px 5px rgba(6,24,46,.4)); }
.treasure-pearls { position: absolute; z-index: 2; left: -14px; bottom: 58px; display: flex; gap: 2px; }
.treasure-pearls i { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #eef6fc 60%, #bcd9ec); box-shadow: 0 2px 4px rgba(6,24,46,.35); }
.treasure-pearls i:nth-child(2) { width: 10px; height: 10px; margin-top: 4px; }
.treasure-pearls i:nth-child(3) { width: 8px; height: 8px; margin-top: 7px; }
.gift-list .treasure figcaption { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.treasure figcaption b { font-family: var(--f-serif); font-weight: 700; font-size: 24px; letter-spacing: .18em; }
.treasure figcaption span { font-family: var(--f-serif); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-soft); }

/* wavy timeline line (a gentle current) */
.timeline::before {
  width: 16px; margin-left: -8px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='40' viewBox='0 0 16 40'%3E%3Cpath d='M8 0 C14 5 14 15 8 20 C2 25 2 35 8 40' fill='none' stroke='%23eef6fc' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center top / 16px 40px repeat-y;
}

/* =========================================================
   RSVP popup shaped like a glass bottle
   ========================================================= */
.bottle-modal {
  position: relative; width: min(390px, 100%); max-height: 92svh;
  display: flex; flex-direction: column; align-items: center;
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.bm-top { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; flex: none; }
.bm-cork {
  width: 21%; height: 34px; border-radius: 6px 6px 3px 3px; position: relative; z-index: 2;
  background:
    radial-gradient(circle at 30% 35%, rgba(110,82,50,.5) 0 1.5px, transparent 2px) 0 0 / 11px 9px,
    linear-gradient(90deg, #a87c4f, #e2c393 45%, #b88b58);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.bm-lip { width: 31%; height: 12px; border-radius: 6px; margin-top: -3px; position: relative; z-index: 1;
  background: linear-gradient(90deg, rgba(160,216,239,.55), rgba(238,246,252,.85), rgba(160,216,239,.55));
  border: 2px solid rgba(238,246,252,.9); }
.bm-neck { position: relative; width: 26.7%; height: 46px; margin-top: -2px;
  background: linear-gradient(90deg, rgba(31,82,143,.92), rgba(43,95,158,.88) 40%, rgba(20,58,106,.94));
  border-left: 2px solid rgba(238,246,252,.85); border-right: 2px solid rgba(238,246,252,.85); }
.bm-neck::after { content: ""; position: absolute; left: 18%; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.bm-twine { position: absolute; left: -3px; right: -3px; top: 14px; height: 9px;
  border-top: 2.5px solid #cdb98f; border-bottom: 2.5px solid #cdb98f; }
.bm-shoulder { display: block; width: 100%; height: 64px; margin-top: -1px; overflow: visible; }
.bm-shoulder .fill { fill: #1f528f; }
.bm-shoulder .edge { fill: none; stroke: rgba(238,246,252,.85); stroke-width: 2; vector-effect: non-scaling-stroke; }

.modal-card.bm-body {
  width: 100%; max-height: none; flex: 1 1 auto; min-height: 0; overflow: auto; margin-top: -2px;
  border: 2px solid rgba(238,246,252,.85); border-top: 0;
  border-radius: 0 0 60px 60px / 0 0 46px 46px;
  padding: 10px 26px 44px;
  animation: none;
  background:
    linear-gradient(90deg, transparent 6%, rgba(255,255,255,.14) 7%, rgba(255,255,255,.14) 9%, transparent 10%),
    linear-gradient(180deg, transparent calc(100% - 40px), rgba(234,220,188,.35) calc(100% - 40px)),
    linear-gradient(180deg, #1f528f 0%, #1c4a80 30%, #143a6a 100%);
}
.bm-body .modal-x { top: 2px; right: 10px; }
.bm-body .modal-title { margin-top: 0; padding: 0 34px; font-size: 32px; white-space: nowrap; }
@media (max-height: 700px) { .bm-neck { height: 26px; } .bm-shoulder { height: 44px; } }

/* more breathing room between timeline stops */
.timeline { row-gap: 26px; }
.tl-node { height: 72px; }
.tl-group { margin: 34px 0 14px; }
.tl-group:first-child { margin-top: 0; }

/* keep the gift popup title clear of the close button */
#gift-title { padding: 0 34px; font-size: 34px; }

/* =========================================================
   RSVP confirmation on an old pirate parchment scroll
   ========================================================= */
.parchment {
  position: relative; width: min(340px, 100%);
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.5));
  animation: unroll .7s cubic-bezier(.2,.8,.3,1.1);
}
@keyframes unroll { from { transform: scaleY(.15); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.scroll-rod {
  position: relative; z-index: 2; width: 108%; height: 26px; border-radius: 13px;
  background: linear-gradient(180deg, #f3e3bd 0%, #d9bd86 45%, #b48d55 100%);
  box-shadow: inset 0 -3px 5px rgba(90,59,30,.35), 0 3px 6px rgba(60,38,16,.35);
}
.scroll-rod::before, .scroll-rod::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 34px; margin-top: -17px; border-radius: 6px;
  background: linear-gradient(180deg, #8a5a2b, #5a3b1e);
}
.scroll-rod::before { left: -10px; }
.scroll-rod::after { right: -10px; }
.parchment-paper {
  position: relative; width: 100%; margin: -8px 0; padding: 34px 30px 26px; text-align: center; color: #5a3b1e;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(150,100,45,.22), transparent 38%),
    radial-gradient(ellipse at 82% 70%, rgba(150,100,45,.2), transparent 40%),
    radial-gradient(circle at 70% 18%, rgba(120,75,30,.12), transparent 18%),
    linear-gradient(180deg, #f6e9c8, #ecd7a7 55%, #e2c58c);
  box-shadow: inset 0 0 40px rgba(122,78,30,.45), inset 0 0 8px rgba(90,59,30,.5);
  clip-path: polygon(0.8% 0.0%, 0.4% 7.1%, 1.7% 14.3%, 0.2% 21.4%, 1.4% 28.6%, 1.0% 35.7%, 0.2% 42.9%, 1.3% 50.0%, 0.1% 57.1%, 1.1% 64.3%, 0.2% 71.4%, 0.2% 78.6%, 1.1% 85.7%, 2.1% 92.9%, 0.3% 100.0%, 99.4% 100.0%, 98.4% 92.9%, 97.5% 85.7%, 98.5% 78.6%, 99.0% 71.4%, 97.5% 64.3%, 99.9% 57.1%, 97.8% 50.0%, 99.2% 42.9%, 99.6% 35.7%, 99.7% 28.6%, 99.2% 21.4%, 97.9% 14.3%, 99.5% 7.1%, 98.5% 0.0%);
}
.parchment .modal-x { color: #5a3b1e; top: 10px; right: 12px; }
.parchment-compass { width: 46px; height: 46px; color: #8a5a2b; opacity: .85; animation: spin-slow 18s linear infinite; }
.parchment-title { font-family: var(--f-script); font-size: 46px; line-height: 1.1; color: #4a2f14; margin: 4px 0 0; }
.parchment-rule { display: block; width: 120px; height: 10px; margin: 8px auto 14px;
  background: radial-gradient(circle, #8a5a2b 1.6px, transparent 2px) 0 50% / 10px 10px repeat-x; opacity: .7; }
.parchment-text { font-family: var(--f-script2); font-size: 22px; line-height: 1.45; margin: 0; }
.parchment-sign { font-family: var(--f-script); font-size: 30px; color: #4a2f14; margin: 14px 0 0; }
.parchment-map { display: block; width: 190px; height: 44px; margin: 6px auto 0; color: #9b3b22; }

/* =========================================================
   RSVP bottle: clear sea-glass, matching the opening bottle
   ========================================================= */
.bm-cork {
  width: 19%; border-radius: 6px; border: 1.5px solid #86603a;
  background:
    radial-gradient(circle at 30% 35%, rgba(110,82,50,.45) 0 1.5px, transparent 2px) 0 0 / 11px 9px,
    linear-gradient(180deg, #e2c393, #a87c4f);
}
.bm-lip { background: linear-gradient(90deg, rgba(220,240,255,.75), #fff, rgba(220,240,255,.75)); border-color: #eef6fc; }
.bm-neck {
  background: linear-gradient(90deg, rgba(196,228,240,.95), rgba(236,247,252,.97) 40%, rgba(184,222,234,.95));
  border-color: #eef6fc;
}
.bm-neck::after { background: rgba(255,255,255,.8); }
.bm-shoulder .fill { fill: #e6f4fa; fill-opacity: .97; }
.bm-shoulder .edge { stroke: #eef6fc; stroke-width: 2.5; }

.modal-card.bm-body {
  color: var(--ocean-800);
  border: 2.5px solid #eef6fc; border-top: 0;
  padding-bottom: 64px;
  background:
    /* long glass glints, like the opening bottle */
    linear-gradient(90deg, transparent 5%, rgba(255,255,255,.75) 5.5%, rgba(255,255,255,.75) 7.5%, transparent 8%) 0 0 / 100% 70% no-repeat,
    linear-gradient(90deg, transparent 92%, rgba(255,255,255,.45) 92.5%, rgba(255,255,255,.45) 93.5%, transparent 94%) 0 30% / 100% 40% no-repeat,
    linear-gradient(180deg, rgba(230,244,250,.97) 0%, rgba(206,234,243,.96) 55%, rgba(168,214,220,.97) 100%);
}
.bm-body .modal-title, .bm-body .modal-x { color: var(--ocean-800); }
.bm-body .rsvp-form input[type=text], .bm-body .rsvp-form textarea {
  color: var(--ocean-800); background: rgba(255,255,255,.6); border-color: rgba(28,74,128,.35);
}
.bm-body .rsvp-form input:focus, .bm-body .rsvp-form textarea:focus { outline-color: var(--gold-deep); }
.bm-body .choice { border-color: rgba(28,74,128,.3); background: rgba(255,255,255,.35); }
.bm-body .choice:has(input:checked) { border-color: var(--ocean-600); background: rgba(255,255,255,.7); }
.bm-body .choice input { accent-color: var(--gold-deep); }
.bm-body .form-error { color: #b3261e; }

/* sand, starfish and a shell resting in the bottom of the bottle */
.bm-sand {
  position: absolute; left: 2.5px; right: 2.5px; bottom: 2.5px; height: 58px; z-index: 3; pointer-events: none;
  border-radius: 0 0 58px 58px / 0 0 44px 44px; overflow: hidden;
}
.bm-sand-dune { position: absolute; inset: 0; width: 100%; height: 100%; fill: #e8d9b0; opacity: .95; }
.bm-star { position: absolute; left: 13%; bottom: 10px; width: 30px; height: 30px; transform: rotate(-16deg); }
.bm-shell { position: absolute; right: 16%; bottom: 8px; width: 34px; height: 25px; transform: rotate(10deg); }

/* smooth, seamless bottle shoulder: opaque glass so the joins don't show */
.bm-shoulder .fill { fill: #e6f4fa; fill-opacity: 1; }
.bm-shoulder .glint { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bm-shoulder .edge { stroke-linecap: round; stroke-linejoin: round; }
.modal-card.bm-body {
  background:
    linear-gradient(90deg, transparent 5%, rgba(255,255,255,.75) 5.5%, rgba(255,255,255,.75) 7.5%, transparent 8%) 0 0 / 100% 70% no-repeat,
    linear-gradient(90deg, transparent 92%, rgba(255,255,255,.45) 92.5%, rgba(255,255,255,.45) 93.5%, transparent 94%) 0 30% / 100% 40% no-repeat,
    linear-gradient(180deg, #e6f4fa 0%, #ceeaf3 55%, #a8d6dc 100%);
}

/* Send My Bottle: light blue scallop so it stands out on the pale glass */
.bm-body .btn {
  background:
    repeating-conic-gradient(from -90deg at 50% 135%, rgba(18,52,98,.22) 0 1.2deg, transparent 1.2deg 7deg),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #9fe3ea 0%, #4ba8ad 30%, #2b6fa8 65%, #123462 100%);
  box-shadow: inset 0 -3px 6px rgba(6,24,46,.4), 0 4px 12px rgba(6,24,46,.25);
  color: #fff; text-shadow: 0 1px 3px rgba(6,24,46,.6);
}

/* =========================================================
   Photo viewer: cute seabed backdrop
   ========================================================= */
.lightbox { background: radial-gradient(120% 70% at 50% 0%, #1f528f, #0b2442 60%, #06182e); overflow: hidden; }
.lb-sea { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lb-kelp { position: absolute; bottom: 24px; width: 40px; transform-origin: 50% 100%; opacity: .85; animation: sway 5s ease-in-out infinite alternate; }
.lb-sand { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; }
.lb-star { position: absolute; height: auto; aspect-ratio: 1; filter: drop-shadow(0 3px 4px rgba(4,14,28,.5)); }
.lb-frame, .lb-nav, .lightbox .modal-x { z-index: 2; }
.lb-frame-star { position: absolute; z-index: 3; width: 44px; height: 44px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(4,14,28,.5)); animation: star-wiggle 3s ease-in-out infinite alternate; }
.lb-fs1 { left: 34px; bottom: -18px; }
.lb-fs2 { right: 30px; top: -20px; width: 36px; height: 36px; animation-delay: -1.5s; }
@keyframes star-wiggle { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
.lb-count { z-index: 2; bottom: 70px; width: max-content; margin: 0 auto; padding: 6px 16px; border-radius: 999px;
  background: rgba(238,246,252,.15); border: 1.5px solid rgba(238,246,252,.6); color: var(--cream); }
.lb-frame img { max-height: 66svh; max-width: calc(100vw - 72px); }

/* viewer arrows: white pearls, always above the photo */
.lightbox .lb-nav {
  z-index: 4; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0 14%, #f7fbfe 34%, #e3eef6 64%, #bcd3e4 100%);
  box-shadow: inset -3px -4px 8px rgba(110,140,170,.35), 0 0 0 1px rgba(255,255,255,.6), 0 6px 14px rgba(4,14,28,.55), 0 0 18px rgba(238,246,252,.35);
  filter: none; color: var(--ocean-700);
}
.lightbox .lb-nav .lb-arrow { inset: 0; top: 0; left: 0; margin: auto; width: 22px; height: 22px; stroke-width: 3; }
.lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
.lightbox .lb-nav:hover, .lightbox .lb-nav:focus-visible { transform: scale(1.08); }

/* viewer: shells on the frame corners + fish swimming behind */
.lb-shell-deco { position: absolute; z-index: 3; pointer-events: none; height: auto; filter: drop-shadow(0 3px 4px rgba(4,14,28,.55)); }
.lb-sd1 { width: 46px; left: 14px; bottom: -14px; transform: rotate(-12deg); }
.lb-sd2 { width: 30px; left: -10px; top: 46px; transform: rotate(20deg); }
.lb-sd3 { width: 38px; right: 22px; bottom: -12px; transform: rotate(14deg); }
.lb-sd4 { width: 34px; right: -12px; top: 30%; transform: rotate(-30deg) scaleX(-1); }
.lb-fish { position: absolute; left: 0; opacity: .6; animation: lb-swim-ltr linear infinite; }
.lb-fish.rtl { animation-name: lb-swim-rtl; }
.lb-fish.rtl svg { transform: scaleX(-1); }
.lb-fish svg { display: block; animation: bob-y 2.4s ease-in-out infinite; }
@keyframes lb-swim-ltr { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes lb-swim-rtl { from { transform: translateX(calc(100vw + 60px)); } to { transform: translateX(-60px); } }
.lb-sd1 { width: 64px; left: 6px; bottom: -20px; }
.lb-sd2 { width: 50px; left: -18px; top: 40px; }
.lb-sd3 { width: 54px; right: 16px; bottom: -18px; }
.lb-sd4 { width: 50px; right: -20px; }
.lb-fish { opacity: .7; }
