@font-face { font-family: 'Instrument Serif'; src: url('/fonts/serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: DM; src: url('/fonts/body.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --pearl: #eee9de;
  --paper: #f8f5ee;
  --ink: #25201e;
  --muted: #6b655e;
  --icon: #8a8780;
  --periwinkle: #8c9cc5;
  --deep: #5f7299;
  --water: #4f6689;
  --line: rgba(37, 32, 30, .12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: DM, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  /* One radius scale: cards and media, then controls, then pills. */
  --r: 18px;
  --r-sm: 12px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .75, .2, 1);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html.locked { overflow: hidden; }
body { margin: 0; background: #d3d9e5; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.share-image { position: fixed; left: -1000px; top: 0; width: 600px; height: 315px; pointer-events: none; }
.skip-link { position: fixed; top: 10px; left: -9999px; z-index: 50; background: var(--paper); padding: 12px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 10px; }

.scene { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 18% 30%, #e6e3ee 0, transparent 50%), radial-gradient(ellipse at 85% 80%, #95a8c3 0, transparent 55%), #c9d2e1; }
.sea { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.sea.ready { opacity: 1; }
.invitation { position: relative; max-width: 480px; margin: 0 auto; background: var(--pearl); overflow: clip; }

/* Shared */
.section { position: relative; padding: 84px 24px; isolation: isolate; }
.section h2 { font-size: 52px; line-height: .98; letter-spacing: -.025em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -18px rgba(65, 82, 117, .22); }
.art { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.drift { position: absolute; display: block; pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; fill: var(--icon); transition: fill .2s; }
.icon-stroke { fill: none; stroke: var(--icon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }

.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill-ink { background: var(--ink); color: var(--pearl); transition: transform .5s var(--spring); }
.pill-ink:active { transform: scale(.96); }

/* Hero */
/* The hero is taller than the screen; the stage sticks while the first stretch of scrolling opens the clam. */
.hero { position: relative; height: calc(100svh + 70svh); min-height: 1100px; background: linear-gradient(#efebe2, #e8e8e5 60%, var(--pearl)); }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 640px; max-height: 980px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: max(52px, calc(env(safe-area-inset-top) + 32px)) 24px max(28px, calc(env(safe-area-inset-bottom) + 18px)); overflow: hidden; isolation: isolate; }
.caustics { position: absolute; inset: -10% 0 0; z-index: -1; background: url('/assets/bg/water-caustics.webp') center top / cover; opacity: .16; mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); animation: caustics 16s ease-in-out infinite alternate; animation-play-state: paused; }
.hero-title { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-name { position: relative; z-index: 1; display: flex; font-style: italic; font-size: clamp(74px, 25cqw, 112px); line-height: 1; letter-spacing: -.02em; }
.hero-name .ch { display: inline-block; }
.hero-age { display: block; margin-top: -.05em; font-size: clamp(190px, 60cqw, 270px); line-height: .8; }
.hero-age span { display: block; letter-spacing: -.04em; color: var(--deep); font-variant-numeric: lining-nums; }
.clam { position: relative; z-index: 1; flex: 1; width: 100%; display: grid; place-items: start center; min-height: 0; }
.clam-figure { position: relative; width: min(96%, 380px, 48svh); aspect-ratio: 1; margin-top: -14%; }
.clam-poster { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.clam-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; }
.clam.ready .clam-canvas { opacity: 1; }
.clam.ready .clam-poster { visibility: hidden; }
/* Hero composition. Sizes use the card's width (cqw) so the layout holds from 360px phones to the desktop card. */
.hero-stage { container-type: inline-size; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.decor { position: absolute; height: auto; user-select: none; -webkit-user-drag: none; }
.decor-starfish { right: -42cqw; top: 9%; width: 60cqw; rotate: 24deg; z-index: 1; }
.decor-lavender { right: -58cqw; top: 70%; width: 84cqw; rotate: -14deg; z-index: 1; }
.decor-hydrangea { left: -67cqw; top: 29%; width: 90cqw; rotate: 12deg; z-index: 1; }
.hero-title { z-index: 2; }
.js .hero-art .decor { opacity: 0; }
.is-loaded .hero-art .decor { opacity: 1; transition: opacity 1.2s; }
.is-loaded .decor-starfish { transition-delay: .8s; }
.is-loaded .decor-hydrangea { transition-delay: 1s; }
.is-loaded .decor-lavender { transition-delay: 1.2s; }
.hero-foot { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding-bottom: 12px; }
.hero-date { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--water); }
.hero.in-scene .caustics { animation-play-state: running; }

/* Hero entrance */
.js .hero-name .ch, .js .hero-age, .js .hero-date { opacity: 0; }
.js .clam { opacity: 0; }
.is-loaded .hero-name .ch { opacity: 1; transition: opacity .9s calc(var(--i) * 60ms + 100ms); }
.is-loaded .hero-age { opacity: 1; transition: opacity 1.2s .7s; }
.is-loaded .hero-date { opacity: 1; transition: opacity 1s 1.4s; }
.is-loaded .clam { opacity: 1; transition: opacity 1.4s 1s; }

/* Portrait */
.portrait { padding-top: 24px; padding-bottom: 12px; }
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }

/* Details */
.details { padding-top: 40px; padding-bottom: 64px; }
.details h2 { margin-bottom: 32px; }
.details-card { padding: 28px 24px 24px; }
.detail-date { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--water); letter-spacing: -.01em; }
.detail-time { margin-top: 6px; color: var(--muted); }
.details-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.detail-venue { font-family: var(--serif); font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.detail-address { text-wrap: pretty; margin-top: 10px; font-size: 15px; line-height: 1.65; }
.map-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.map-link, .action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 68px; padding: 10px 6px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.2; text-align: center; white-space: nowrap; transition: border-color .2s, background-color .2s, transform .45s var(--spring); }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.action { transition: border-color .2s, background-color .2s, transform .45s var(--spring); }
.map-link .icon, .action .icon { width: 20px; height: 20px; }
.map-link:active, .action:active { transform: scale(.96); }
.map-link:active .icon, .action:active .icon { fill: var(--ink); }
.action:active .icon-stroke { fill: none; stroke: var(--ink); }
@media (hover: hover) {
  .map-link:hover { border-color: rgba(37, 32, 30, .28); background: #fff; }
  .map-link:hover .icon { fill: #5d5a54; }
  .action:hover { border-color: rgba(37, 32, 30, .28); background: #fff; }
  .action:hover .icon-stroke { stroke: #5d5a54; }
}

/* Gallery */
.gallery { margin-top: 28px; }
.tile { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--r); background: #ddd8cc; isolation: isolate; }
.tile-inner { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-venue { aspect-ratio: 3 / 4; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile-wide { grid-column: 1 / -1; aspect-ratio: 1037 / 900; }
.tile-left { aspect-ratio: 3 / 4; }
.tile-right { aspect-ratio: 3 / 4; margin-top: 44px; }
.drift-conch { right: 14px; bottom: 14px; width: 88px; rotate: -21deg; z-index: 2; }

/* Dress code */
.dress { text-align: center; padding-top: 140px; padding-bottom: 230px; overflow: hidden; background: linear-gradient(var(--pearl), #e9e6e8); }
.dress h2 { font-size: 80px; line-height: .88; }
.dress-body { margin: 22px auto 0; max-width: 260px; color: var(--muted); }
/* Dress-code still life: flowers behind the title, shells framing the swatches. */
.dress { container-type: inline-size; }
.dress-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dress-decor { position: absolute; height: auto; user-select: none; -webkit-user-drag: none; }
.dd-lavender { right: -60cqw; top: 40px; width: 88cqw; rotate: -10deg; }
.dd-blush { left: -46cqw; bottom: -6px; width: 70cqw; rotate: 14deg; }
.palette { list-style: none; padding: 0; margin: 34px -8px 0; display: flex; justify-content: center; }
.palette li { flex: 1; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 10px 0 6px; font-size: 13px; color: var(--muted); transition: color .35s; }
.chip { position: relative; display: block; width: 44px; height: 44px; transition: transform .55s var(--spring); }
.chip::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 14px 20px -6px rgba(65, 82, 117, .45); opacity: 0; transition: opacity .4s; }
.chip-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), transparent 46%), var(--chip); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 3px 8px rgba(80, 99, 132, .14); }
.chip-face::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); }
.swatch-label { transition: transform .55s var(--spring); }
.swatch.pressed .chip, .swatch:focus-visible .chip { transform: translateY(-6px) scale(1.08); }
.swatch.pressed .chip::before, .swatch:focus-visible .chip::before { opacity: 1; }
.swatch.pressed .chip-face::after, .swatch:focus-visible .chip-face::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.swatch.pressed, .swatch:focus-visible { color: var(--tint); }
.swatch.pressed .swatch-label { transform: translateY(-2px); }
.swatch:focus-visible { outline: none; }
@media (hover: hover) {
  .swatch:hover .chip { transform: translateY(-6px) scale(1.08); }
  .swatch:hover .chip::before { opacity: 1; }
  .swatch:hover .chip-face::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .swatch:hover { color: var(--tint); }
  .swatch:hover .swatch-label { transform: translateY(-2px); }
}

/* RSVP */
.rsvp { color: var(--pearl); background: linear-gradient(#566e91, var(--water)); padding-top: 72px; padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 32px)); }
.rsvp h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.02em; max-width: 300px; }
/* 21 pearls for her 21st: one per guest who's coming, filled from the centre, with the next place glowing. */
.necklace { position: relative; height: 130px; margin: 18px -6px 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.necklace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.necklace path { fill: none; stroke: rgba(238, 233, 222, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.necklace .slot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; will-change: translate; }
.necklace .slot:not(.filled) { display: none; }
.necklace .slot.filled { cursor: pointer; background: radial-gradient(circle at 32% 26%, #fff, #f6f0e6 30%, #d9d3df 68%, #a9b4c8); box-shadow: 0 4px 8px rgba(20, 30, 55, .3); }
.necklace .slot.mine { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: radial-gradient(circle at 32% 26%, #fff, #fdeef2 30%, #f3c6d5 66%, #d993ae); }
.necklace .slot.mine::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 168, 198, .75), rgba(255, 168, 198, 0) 68%); opacity: 0; pointer-events: none; }
.necklace .slot.mine.attached::after { animation: pink-glow 2.6s ease-in-out infinite; }
@keyframes pink-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.pearl-name { position: absolute; left: 0; top: 0; z-index: 2; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px rgba(20, 30, 55, .25); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pearl-name.visible { opacity: 1; }
.rsvp-card { margin-top: 24px; padding: 14px; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(20, 30, 55, .55); }
.choices { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px; border-radius: var(--r-sm); background: rgba(37, 32, 30, .05); font-size: 15px; transition: background-color .25s, color .25s, transform .45s var(--spring); }
.choice svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.choice:active span { transform: scale(.97); }
.choice input:checked + span { background: var(--ink); color: var(--pearl); }
.choice input:checked + span svg { stroke: var(--pearl); }
.choice input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 3px; }
@media (hover: hover) { .choice input:not(:checked):hover + span { background: rgba(37, 32, 30, .09); } }
.fields { padding-top: 6px; animation: fields-in .45s var(--ease) both; }
.field { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.field > span { display: block; margin: 0 2px 6px; }
.field input, .field textarea { display: block; width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: var(--r-sm); background: rgba(37, 32, 30, .05); color: var(--ink); font-size: 16px; line-height: 1.45; resize: none; transition: border-color .2s, background-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--deep); background: #fff; }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-top: 12px; padding: 0 12px 0 14px; border-radius: var(--r-sm); background: rgba(37, 32, 30, .05); font-size: 15px; cursor: pointer; }
.switch-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(37, 32, 30, .18); transition: background-color .25s; pointer-events: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .45s var(--spring); }
.switch-row input:checked + .switch { background: var(--deep); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--deep); outline-offset: 3px; }
.submit { display: block; width: 100%; min-height: 52px; margin-top: 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--pearl); font-size: 15px; transition: transform .45s var(--spring), opacity .2s; }
.submit:active { transform: scale(.98); }
.submit:disabled { opacity: .6; cursor: wait; }
.form-error { font-size: 14px; color: #9e3640; }
.form-error:not(:empty) { margin: 12px 4px 2px; }
.success { padding: 10px 8px 6px; text-align: center; outline: none; }
.strand { position: relative; display: flex; justify-content: center; align-items: center; gap: 3px; height: 64px; margin: 0 -4px 14px; }
.strand::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #d3cdc6; }
.strand i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff, #f6f0e6 32%, #d7d1de 70%, #afbacb); box-shadow: 0 3px 5px rgba(80, 99, 132, .15); }
.strand i.new { width: 34px; height: 34px; }
.celebrate .strand i { animation: strand-in .6s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.celebrate .strand i.new { animation: pearl-drop .9s var(--spring) .45s both; }
.success h3 { font-variant-numeric: lining-nums; font-size: 32px; line-height: 1.05; letter-spacing: -.02em; }
.success p { margin-top: 12px; color: var(--muted); }
.change { min-height: 44px; margin-top: 6px; padding: 0 6px; font-size: 14px; color: var(--deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(95, 114, 153, .4); }

.signoff { margin-top: 48px; text-align: left; font-family: var(--serif); font-size: 26px; }
.noscript { padding: 24px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 22, 32, .94); color: #fff; opacity: 0; transition: opacity .3s; }
.lightbox[open] { display: block; }
.lightbox.visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: max(64px, env(safe-area-inset-top)) 16px max(72px, env(safe-area-inset-bottom)); scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background-color .2s, transform .45s var(--spring); }
.lightbox-close:active, .lightbox-nav:active { transform: scale(.9); }
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox-nav { top: 50%; margin-top: -22px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-nav:disabled { opacity: 0; pointer-events: none; }
.lightbox-dots { position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 8px; }
.lightbox-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .35; transition: opacity .25s, transform .25s; }
.lightbox-dots i.on { opacity: 1; transform: scale(1.3); }
@media (hover: none) { .lightbox-nav { display: none; } }
@media (hover: hover) { .lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); } }

.toast { position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 40; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--pearl); font-size: 14px; opacity: 0; transform: translateX(-50%); transition: opacity .25s; pointer-events: none; }
.toast.visible { opacity: 1; }

/* Scroll reveals: opacity only. */
.js .reveal { opacity: 0; }
.js .reveal.in-view { opacity: 1; transition: opacity 1s var(--delay, 0s); }
.tile-left { --delay: .12s; }
.tile-right { --delay: .24s; }

@keyframes caustics { to { transform: scale(1.06) translate3d(0, -12px, 0); opacity: .22; } }
@keyframes rise { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: .7; } 80% { opacity: .5; } 100% { opacity: 0; transform: translate3d(var(--sway), -85vh, 0); } }
@keyframes fields-in { from { opacity: 0; } }
@keyframes strand-in { from { opacity: 0; transform: scale(.4); } }
@keyframes pearl-drop { 0% { opacity: 0; transform: translateY(-70px) scale(.5); } 60% { opacity: 1; } 100% { transform: none; } }

@media (min-width: 520px) {
  .scene { background: #c9d2e1 url('/assets/sea/sea-poster.webp') center / cover no-repeat; }
  .invitation { margin: 32px auto; max-width: 452px; border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(30, 45, 75, .5); }
  .hero { height: 1500px; min-height: 0; }
  .hero-stage { height: 900px; }
  .section { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 370px) {
  .section { padding-left: 20px; padding-right: 20px; }
  .section h2 { font-size: 46px; }
  .dress h2 { font-size: 62px; }
  .rsvp h2 { font-size: 36px; }
  .detail-venue { font-size: 40px; }
  .swatch { font-size: 12px; }
  .chip { width: 40px; height: 40px; }
  .map-link, .action { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero { height: auto; min-height: 0; }
  .hero-stage { position: relative; }
  .js .reveal.in-view { transition: opacity .25s !important; }
}

/* Host view */
.host-body { background: #e8e3da; }
.host-shell { max-width: 720px; margin: auto; padding: max(28px, env(safe-area-inset-top)) 22px 50px; font-size: 14px; }
.host-shell h1 { font-size: 45px; line-height: 1.1; margin: 16px 0 10px; }
.host-shell h2 { font-size: 31px; line-height: 1.15; margin: 34px 0 12px; }
.host-shell p { font-size: 13px; }
.host-shell .eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .16em; }
.host-shell .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid currentColor; font-size: 13px; }
.host-shell .field { font-size: 13px; color: var(--ink); }
.host-shell .primary { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 320px; min-height: 52px; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--pearl); font-size: 14px; }
.host-panel { background: var(--pearl); padding: 22px; margin-top: 25px; border-radius: var(--r); }
.host-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; list-style: none; margin: 24px 0; }
.host-counts li { background: var(--pearl); padding: 14px 8px; text-align: center; font-size: 11px; border-radius: var(--r-sm); }
.host-counts strong { display: block; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.1; margin-bottom: 8px; }
.host-actions { display: flex; gap: 22px; flex-wrap: wrap; }
.host-list { padding: 0; list-style: none; margin: 10px 0; }
.host-list li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.host-list strong { font-weight: 400; font-size: 16px; overflow-wrap: anywhere; }
.host-list .answer { font-size: 11px; margin-left: 10px; white-space: nowrap; }
.host-list .note { font-size: 13px; white-space: pre-wrap; margin-top: 7px; overflow-wrap: anywhere; }
.invite-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.invite-row button { flex-shrink: 0; font-size: 12px; }
.host-hint { color: #5e6577; font-size: 12px !important; }
.host-empty { padding: 20px 0; color: #5e6577; }
.host-shell textarea { background: transparent; width: 100%; border: 1px solid #a1acc1; border-radius: var(--r-sm); padding: 12px; min-height: 135px; font-size: 16px; resize: vertical; }
.host-shell input { font-size: 16px; }
.host-error { color: #9e3640; margin-top: 12px !important; min-height: 20px; }
.host-header { display: flex; align-items: center; justify-content: space-between; }
.host-shell .status { font-size: 12px; margin-top: 12px; min-height: 20px; }
