/* =====================================================================
   Atlas Wedding: "Love story in the sky", ported from landing/atlas_wedding
   (css/style.css). Class names follow the landing, so its changes carry over.
   - phone: 100% column; >=560px: centred 480px column on the sky;
     >=1024px: full width (the DESKTOP block at the end)
   - inside .page sizes are in cqw (the column is an inline-size container)
   - fixed chrome (top bar, fab, menu) uses --u = 1% of the column
   - everything works without JavaScript; .js (set by invitation.js) adds the
     envelope intro, the scroll lock until it opens, reveals and the chrome
   ===================================================================== */

/* local fonts (OFL, see fonts/OFL.txt): no third-party requests under the CSP */
@font-face { font-display: swap; font-family: "Cinzel"; font-style: normal; font-weight: 400 900; src: url("fonts/cinzel-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Cinzel"; font-style: normal; font-weight: 400 900; src: url("fonts/cinzel-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Lora"; font-style: italic; font-weight: 400 700; src: url("fonts/lora-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Lora"; font-style: italic; font-weight: 400 700; src: url("fonts/lora-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Lora"; font-style: italic; font-weight: 400 700; src: url("fonts/lora-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Pinyon Script"; font-style: normal; font-weight: 400; src: url("fonts/pinyon-script-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Pinyon Script"; font-style: normal; font-weight: 400; src: url("fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* palette */
  --gold-dark: #7a5226;
  --gold: #a57636;
  --gold-light: #caa265;
  --brown: #6f4b2a;
  --ink: #272a33;
  --ink-2: #3a3f4b;
  --ink-soft: #4a505d;
  --line: rgba(128, 92, 55, .55);
  --field-border: rgba(150, 162, 178, .75);
  --blue: #5f7fa2;
  --seam: #aabdd1;            /* every section background starts and ends here */
  --error: #a4473a;

  /* fonts: display / script / body serif / italic / ui */
  --f-display: "Cinzel", "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-italic: "Lora", Georgia, serif;
  --f-ui: "Jost", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  /* column + safe areas */
  --col: 100vw;
  --u: calc(var(--col) / 100);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 560px) {
  :root { --col: 480px; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-variant-numeric: lining-nums !important;   /* any `font:` shorthand would reset it */
}

html {
  background: #8ea5bf;
  -webkit-text-size-adjust: 100%;
}
html.is-locked,
html.is-locked body { overflow: hidden; overscroll-behavior: none; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--f-ui);
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 80% at 50% 0%, #a9bdd3 0%, rgba(169, 189, 211, 0) 60%),
    linear-gradient(180deg, #93aac3 0%, #869eb9 55%, #7d95b0 100%) fixed;
}

img { display: block; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }   /* not display:none: gradients would break */
::selection { background: #c9d7e6; color: var(--ink); }
:focus-visible { outline: 2px solid rgba(95, 127, 162, .95); outline-offset: 3px; }
main:focus, .slide:focus { outline: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 70; left: 1rem; top: -8rem; padding: .8rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------------
   Sky behind the column (tablet)
   --------------------------------------------------------------------- */
.sky { display: none; }
@media (min-width: 560px) {
  .sky { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .sky__cloud { position: absolute; opacity: .55; filter: blur(2px); }
  .sky__cloud--1 { width: 34vw; left: -6vw; top: 8vh; animation: drift 46s ease-in-out infinite alternate; }
  .sky__cloud--2 { width: 22vw; right: -3vw; top: 46vh; animation: drift 38s ease-in-out infinite alternate-reverse; }
  .sky__cloud--3 { width: 28vw; left: 8vw; bottom: -4vh; opacity: .4; animation: drift 52s ease-in-out infinite alternate; }
}

/* ---------------------------------------------------------------------
   Page column
   --------------------------------------------------------------------- */
.page {
  position: relative;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
  overflow-x: clip;
  background: var(--seam);
  --head: calc(var(--st) + 3.4vh + 8cqw);           /* height of the fixed top bar */
}
@supports (height: 1svh) { .page { --head: calc(var(--st) + 3.4svh + 8cqw); } }
@media (min-width: 560px) {
  .page {
    max-width: 480px;
    --st: 0px;
    --sb: 0px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 40px 90px -30px rgba(25, 40, 65, .6), 0 10px 30px -12px rgba(25, 40, 65, .3);
  }
}

.slide {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
@supports (height: 1svh) { .slide { min-height: 100svh; } }

.slide__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- backgrounds: one sky, sections fade into --seam ---------- */
.bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* clouds crossing the section edge fade into the shared --seam instead of being cut */
  -webkit-mask-image: linear-gradient(transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(transparent 0, #000 7%, #000 93%, transparent 100%);
}
.cover-bg { -webkit-mask-image: linear-gradient(#000 93%, transparent); mask-image: linear-gradient(#000 93%, transparent); }

.bg--hero {
  background:
    radial-gradient(70% 38% at 50% 30%, rgba(214, 226, 238, .55), rgba(214, 226, 238, 0) 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(190, 205, 222, .7), rgba(190, 205, 222, 0) 70%),
    linear-gradient(180deg, #9ab2cc 0%, #a9bed4 38%, #b3c5d8 70%, var(--seam) 100%);
}
.bg--story {
  background:
    radial-gradient(80% 45% at 50% 70%, rgba(248, 249, 250, .95), rgba(248, 249, 250, 0) 75%),
    linear-gradient(180deg, var(--seam) 0%, #c3d1df 22%, #e4e9ee 50%, #e3e9ee 78%, var(--seam) 100%);
}
.bg--details {
  background:
    radial-gradient(85% 45% at 50% 38%, rgba(250, 250, 250, .95), rgba(250, 250, 250, 0) 75%),
    linear-gradient(180deg, var(--seam) 0%, #d4dee8 20%, #eef1f3 42%, #e9eef2 68%, #cfdbe6 88%, var(--seam) 100%);
}
.bg--rsvp {
  background:
    radial-gradient(90% 50% at 50% 50%, rgba(250, 250, 250, .95), rgba(250, 250, 250, 0) 75%),
    linear-gradient(180deg, var(--seam) 0%, #ccd8e4 16%, #eceff1 38%, #eef0f1 70%, #d5dde5 86%, var(--seam) 100%);
}
.bg--gallery {
  background:
    radial-gradient(80% 50% at 50% 50%, rgba(250, 250, 250, .85), rgba(250, 250, 250, 0) 75%),
    linear-gradient(180deg, var(--seam) 0%, #d7e0e8 20%, #e8ecef 50%, #e4e9ed 78%, var(--seam) 100%);
}
.bg--thanks {
  background:
    radial-gradient(80% 40% at 50% 52%, rgba(250, 250, 250, .95), rgba(250, 250, 250, 0) 75%),
    linear-gradient(180deg, var(--seam) 0%, #b8c9da 22%, #e2e8ed 46%, #edf0f2 64%, #d9e0e7 82%, var(--seam) 100%);
}

/* bottom fade over the decor that the section edge cuts off */
.cover::after,
.details::after,
.rsvp::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: linear-gradient(rgba(170, 189, 209, 0), var(--seam));
  pointer-events: none;
}
.rsvp::after { height: 5%; }

.cloud {
  position: absolute;
  opacity: .9;
  filter: blur(.25cqw);
  animation: drift 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translateX(-2.5%); }
  to   { transform: translateX(2.5%); }
}

/* clouds: left/width in cqw, top in % of the section */
.c-h1 { width: 46cqw; left: -18cqw; top: 1%; opacity: .5; }
.c-h2 { width: 50cqw; left: -14cqw; top: 15%; animation-duration: 40s; }
.c-h3 { width: 54cqw; left: -24cqw; top: 31%; opacity: .85; animation-direction: alternate-reverse; }
.c-h4 { width: 52cqw; right: -18cqw; top: 29%; animation-duration: 44s; }
.c-h5 { width: 40cqw; left: -24cqw; top: 51%; opacity: .7; }
.c-h6 { width: 36cqw; right: -16cqw; top: 76%; opacity: .65; animation-direction: alternate-reverse; }

.c-s1 { width: 42cqw; left: -20cqw; top: 6%; opacity: .4; }
.c-s2 { width: 34cqw; right: -14cqw; top: 70%; opacity: .7; }
.c-s3 { width: 64cqw; left: -10cqw; bottom: -4%; opacity: .55; animation-duration: 48s; }
.c-s4 { width: 40cqw; left: -18cqw; top: 76%; opacity: .55; }

.c-d1 { width: 34cqw; right: -12cqw; top: 26%; opacity: .55; }
.c-d2 { width: 46cqw; left: -22cqw; top: 6%; opacity: .3; }
.c-d3 { width: 52cqw; left: -16cqw; top: 70%; opacity: .6; }

.c-r1 { width: 50cqw; left: -22cqw; top: 22%; opacity: .55; }
.c-r2 { width: 34cqw; right: -14cqw; top: 8%; opacity: .45; }

.c-g1 { width: 46cqw; left: -24cqw; top: 4%; opacity: .35; }
.c-g2 { width: 36cqw; right: -16cqw; bottom: 4%; opacity: .55; }

.c-w1 { width: 36cqw; right: -16cqw; top: 6%; opacity: .45; }
.c-w2 { width: 50cqw; left: -24cqw; bottom: 8%; opacity: .5; }

.c-t1 { width: 52cqw; left: -18cqw; top: 22%; opacity: .85; }
.c-t2 { width: 40cqw; right: -14cqw; top: 31%; opacity: .8; animation-direction: alternate-reverse; }

/* ---------------------------------------------------------------------
   Shared typography & ornaments
   --------------------------------------------------------------------- */
.title,
.hero__invited {
  background: linear-gradient(180deg, #b48545 0%, #94672f 48%, #7a5125 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 9.2cqw;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
}
.divider i {
  width: 15cqw;
  height: 1px;
  background: linear-gradient(90deg, rgba(128, 92, 55, .15), var(--line) 30%, var(--line) 70%, rgba(128, 92, 55, .15));
}
.divider img { width: 3.6cqw; height: auto; }

.caps { text-transform: uppercase; letter-spacing: .07em; }

.lead {
  max-width: 82cqw;
  margin-top: 4cqw;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: max(1rem, 4.6cqw);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: #23252d;
}
.note {
  max-width: 84cqw;
  margin-top: 5cqw;
  font-size: max(.875rem, 3.4cqw);
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 2.75rem;
  margin-top: 2cqw;
  padding: .25rem .5rem;
  font-size: max(.8125rem, 3.2cqw);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.alert {
  width: 100%;
  margin-bottom: 4cqw;
  padding: 3cqw 4cqw;
  border: 1px solid var(--field-border);
  border-radius: 2.4cqw;
  background: rgba(255, 255, 255, .62);
  font-size: max(.9375rem, 3.6cqw);
  line-height: 1.45;
  text-align: center;
  color: #2b2e36;
}
.alert strong { font-weight: 600; }
.alert--error { border-color: #c97a6c; background: #fbebe8; color: #7a2a1f; }

/* ---------- gold button (three-slice of the atlas sprite) ---------- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  border-style: solid;
  border-width: 0 6.2cqw;
  border-image: url("img/btn-gold.webp") 0 47 fill / 0 6.2cqw / 0 stretch;
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-shadow: 0 1px 1px rgba(80, 50, 15, .45);
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), filter .35s;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 10% -40%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 220, .55) 50%, transparent 65%);
  transform: translateX(-70%);
  animation: sheen 5.5s ease-in-out 2s infinite;
}
@keyframes sheen {
  0%, 62% { transform: translateX(-70%); }
  85%, 100% { transform: translateX(70%); }
}
.btn-gold:active { transform: scale(.97); }
.btn-gold:focus-visible { outline-offset: 4px; }
.btn-gold .arrow {
  flex: none;
  width: 5.8cqw;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(80, 50, 15, .4));
  transition: transform .4s var(--ease-out);
}
.btn-gold--compact { min-height: max(2.75rem, 11cqw); padding: .5rem 0; font-size: max(.9375rem, 3.8cqw); font-weight: 500; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.4cqw;
  min-height: max(2.75rem, 11cqw);
  padding: .5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 180, 140, .7);
  background: linear-gradient(180deg, #faf6ee 0%, #efe6d6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1cqw 2.4cqw rgba(70, 60, 40, .18);
  font-size: max(.875rem, 3.8cqw);
  line-height: 1.25;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: #2c2a28;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.btn-pill:active { transform: scale(.97); }
.btn-pill__icon { width: 7cqw; height: auto; }

/* ---------- reveal (hidden only when JS runs) ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 4cqw;
  transition: opacity .8s var(--ease-soft) var(--rd, 0ms), translate 1s var(--ease-out) var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* ---------------------------------------------------------------------
   Top bar (fixed, column-wide; shows after the envelope is open)
   --------------------------------------------------------------------- */
.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  width: var(--col);
  display: flex;
  align-items: flex-start;
  padding: calc(var(--st) + 2.6vh) calc(5 * var(--u)) calc(2 * var(--u)) calc(13.6 * var(--u));
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-3 * var(--u)));
  transition: opacity .5s var(--ease-soft), transform .6s var(--ease-out), visibility 0s .6s, background .4s, box-shadow .4s;
}
@media (min-width: 560px) { .topbar { --st: 0px; } }
.topbar.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .5s var(--ease-soft), transform .6s var(--ease-out), visibility 0s, background .4s, box-shadow .4s;
}
.topbar.is-solid {
  background: rgba(226, 233, 240, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(120, 135, 155, .25);
}

.topbar__brand,
.topnav__wide,
.rail { display: none; }

.topnav { display: flex; gap: calc(9.4 * var(--u)); flex: 1; }
.topnav a {
  position: relative;
  padding: calc(1 * var(--u)) 0 calc(2 * var(--u));
  font-size: calc(3.05 * var(--u));
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #2e3340;
  white-space: nowrap;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: calc(-2 * var(--u));
  right: calc(-2 * var(--u));
  bottom: 0;
  height: 1.5px;
  background: #3b3530;
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.topnav a[aria-current="true"]::after { transform: scaleX(1); }

.burger {
  display: grid;
  gap: calc(1.5 * var(--u));
  width: calc(7 * var(--u));
  padding: calc(1.2 * var(--u)) 0;
}
.burger span { display: block; height: 1.5px; background: #3d4250; border-radius: 1px; transition: transform .4s var(--ease-out); }

/* ---------------------------------------------------------------------
   1. COVER
   --------------------------------------------------------------------- */
.cover {
  /* envelope width: every piece of the craft hangs off --ew;
     83cqw = greeting, title, event name, hint line and the button */
  --ew: min(84.4cqw, 380px, (87vh - 83cqw - 30px) / 1.33);
  --lift: calc(var(--ew) * .2);      /* room above the plane, = the envelope drop on open */
  display: grid;
  place-items: center;
}
@supports (height: 1svh) {
  .cover { --ew: min(84.4cqw, 380px, (87svh - 83cqw - 30px) / 1.33); }
}

.stamp {
  position: absolute;
  z-index: 1;
  top: calc(var(--st) + 3.6vh);
  right: -8cqw;
  width: 33cqw;
  color: #6c84a0;
  opacity: .38;
  transform: rotate(16deg);
  pointer-events: none;
}

.cover__body {
  width: 100%;
  padding: calc(var(--st) + 4vh) 0 calc(var(--sb) + 7vh);
}

.hero__greeting {
  max-width: 80cqw;
  margin-bottom: 4.6cqw;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: max(1.125rem, 5.6cqw);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}
.hero__script {
  font-family: var(--f-script);
  font-size: 20.5cqw;
  line-height: .9;
  margin-bottom: -.6cqw;
  padding: 0 2cqw 0 4cqw;
  background: linear-gradient(180deg, #4a3a2c, #241c16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__invited {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14.2cqw;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.02;
}
.hero__to,
.hero__wedding {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  color: #262a33;
}
.hero__to { font-size: 3.15cqw; letter-spacing: .34em; margin-top: 2.6cqw; padding-left: .34em; }
.hero__wedding { font-size: 4.15cqw; letter-spacing: .42em; margin-top: 1cqw; padding-left: .42em; }
.hero__event {
  max-width: 84cqw;
  margin-top: 2.6cqw;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: max(1rem, 4.8cqw);
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--brown);
}

/* the craft reserves room for the open state: the turned flap reaches .56·ew above
   the envelope, so the envelope starts --lift lower and drops another --lift on open */
.craft {
  position: relative;
  flex: none;
  width: calc(var(--ew) * 1.137);
  height: calc(var(--ew) * .931 + var(--lift) * 2);
  margin-top: 1.2vh;
}

/* ---------- envelope ---------- */
.env {
  position: absolute;
  left: calc(50% - var(--ew) / 2);
  top: calc(var(--ew) * .159 + var(--lift));
  width: var(--ew);
  aspect-ratio: 417 / 322;
  perspective: 1400px;
}
.js .env { cursor: pointer; }
.env > * { position: absolute; }

.env__shadow {
  left: 3%;
  right: 3%;
  top: 6%;
  bottom: 3%;
  border-radius: 3%;
  box-shadow: 0 calc(var(--ew) * .031) calc(var(--ew) * .06) rgba(35, 55, 85, .32), 0 calc(var(--ew) * .007) calc(var(--ew) * .017) rgba(35, 55, 85, .22);
}

/* every layer is an inline SVG (viewBox 400x309, preserveAspectRatio none) with its own
   shape, paper pattern #atlas-paper and gold piping #atlas-gold, defined in .svg-defs */
.env__back,
.env__pocket { inset: 0; width: 100%; height: 100%; overflow: visible; }
.env__back { z-index: 1; }

.env__card {
  z-index: 3;
  left: 7.5%;
  right: 7.5%;
  top: 9%;
  bottom: 4.5%;
  clip-path: inset(-300% -12% 0 -12%);          /* trims only the bottom edge */
}

.env__pocket { z-index: 4; }

.env__flap {
  z-index: 6;
  inset: 0;
  transform-origin: 50% .65%;                   /* hinge = top edge of the paper (y 2 of 309) */
  transform-style: preserve-3d;
}
.env__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.env__face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.env__face--back { transform: rotateY(180deg); }

.env__seal {
  z-index: 7;
  left: 50.12%;
  top: 64%;
  width: 21%;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 calc(var(--ew) * .006) calc(var(--ew) * .007) rgba(60, 40, 15, .35));
}

/* ---------- card inside the envelope (sizes in --ew) ---------- */
.card {
  position: absolute;
  inset: 0 0 calc(var(--ew) * -.2);              /* .2*ew taller than the slot: tucked into the pocket */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--ew) * .0107);
  padding: calc(var(--ew) * .03) calc(var(--ew) * .047) calc(var(--ew) * .253);
  border-radius: calc(var(--ew) * .0095);
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, rgba(255, 253, 248, 0) 60%),
    linear-gradient(180deg, #f8f3e9 0%, #f1e9da 100%);
  box-shadow: 0 calc(var(--ew) * .004) calc(var(--ew) * .012) rgba(40, 50, 70, .25);
  text-align: center;
  overflow: hidden;
}
.card::before,
.card::after { content: ""; position: absolute; pointer-events: none; }
.card::before { inset: 3.4%; border: 1px solid rgba(165, 125, 70, .65); border-radius: calc(var(--ew) * .006); }
.card::after { inset: 5.2%; border: 1px solid rgba(165, 125, 70, .4); border-radius: calc(var(--ew) * .0035); }

.card__script { font-family: var(--f-script); font-size: calc(var(--ew) * .0995); line-height: 1.05; color: #4a3a2b; }
.card__date { font-family: var(--f-display); font-size: calc(var(--ew) * .052); letter-spacing: .14em; color: #8a6230; }
.card__divider { display: flex; align-items: center; gap: calc(var(--ew) * .017); }
.card__divider i { width: calc(var(--ew) * .107); height: 1px; background: var(--line); }
.card__divider img { width: calc(var(--ew) * .031); }
.card__place {
  display: -webkit-box;
  max-width: calc(var(--ew) * .66);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: calc(var(--ew) * .038);
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #3d3a3a;
}
.card__leaf { position: absolute; bottom: calc(var(--ew) * .2 + 4%); width: calc(var(--ew) * .2); opacity: .9; }
.card__leaf--l { left: 2%; transform: rotate(8deg); }
.card__leaf--r { right: 2%; transform: rotate(-8deg); }

/* ---------- plane ---------- */
.plane {
  position: absolute;
  z-index: 8;
  left: 0;
  top: var(--lift);
  width: 100%;
  pointer-events: none;
}
.plane img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 calc(var(--ew) * .026) calc(var(--ew) * .019) rgba(30, 45, 70, .38)) drop-shadow(0 calc(var(--ew) * .005) calc(var(--ew) * .006) rgba(30, 45, 70, .25));
}
.trail {
  position: absolute;
  top: 38%;
  width: calc(var(--ew) * .013);
  height: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0));
  filter: blur(calc(var(--ew) * .004));
  transform: translateX(-50%);
}
.trail--l { left: 34%; }
.trail--r { left: 66%; }

/* ---------- hint / date line, CTA ---------- */
.cover-line {
  display: grid;
  place-items: center;
  min-height: 7cqw;
  margin: .6vh 0 1.4vh;
}
.cover-line > * { grid-area: 1 / 1; }
.cover-hint {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.4cqw;
  letter-spacing: .03em;
  color: #3a4252;
}
html:not(.js) .cover-hint { visibility: hidden; }   /* without JS the envelope stays closed */
.cover-hint .t-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cover-hint .t-touch { display: none; }
  .cover-hint .t-mouse { display: inline; }
}
.cover-date {
  font-family: var(--f-display);
  font-size: 3.3cqw;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  color: #2b2f39;
}
.js .cover:not(.is-open) .cover-date { opacity: 0; }

.hero__cta { width: 63.5cqw; min-height: 12cqw; padding: .4rem 0; font-size: 4.2cqw; }


/* ---------- cover states (JS): .is-intro → .is-ready → .is-open (.no-anim) ---------- */
/* ---------- cover intro: a fade in place that plays on load, so it needs no JavaScript and nothing
   flashes before the script runs. The JavaScript classes (.is-intro, .is-ready, .is-open) only gate
   the interactions. ---------- */
@keyframes atlas-fade-in { from { opacity: 0; } }
.cover-bg { animation: atlas-fade-in 1.6s ease-out both; }
.stamp { animation: atlas-fade-in 1.4s var(--ease-soft) .45s both; }
.hero__greeting { animation: atlas-fade-in 1.2s var(--ease-soft) both; }
.hero__script { animation: atlas-fade-in 1.2s var(--ease-soft) .06s both; }
.hero__invited { animation: atlas-fade-in 1.2s var(--ease-soft) .12s both; }
.hero__to { animation: atlas-fade-in 1.2s var(--ease-soft) .24s both; }
.hero__wedding { animation: atlas-fade-in 1.2s var(--ease-soft) .32s both; }
.hero__event { animation: atlas-fade-in 1.2s var(--ease-soft) .4s both; }
.env { animation: atlas-fade-in 1.2s ease-out .2s both; }
.plane { animation: atlas-fade-in 1.2s ease-out .2s both; }
.cover-line { animation: atlas-fade-in 1.2s var(--ease-soft) .5s both; }
.hero__cta { animation: atlas-fade-in 1.2s var(--ease-soft) .6s both; }

.js .cover:not(.is-ready) .env { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .cover-bg, .stamp, .hero__greeting, .hero__script, .hero__invited, .hero__to, .hero__wedding,
  .hero__event, .env, .plane, .cover-line, .hero__cta { animation: none; }
}

/* idle: the plane hovers over the envelope */
.cover.is-ready:not(.is-open) .plane img { animation: hover 5s ease-in-out 1.6s infinite; }
@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(var(--ew) * -.012)); }
}

/* opening timeline (CSS only):
   0 s     hint out, plane takes off with contrails
   .55 s   seal pops off
   .8 s    flap turns (z-index 6 → 2 at 50%)
   1.35 s  card rises, envelope drops
   2.0 s   date line
   2.3 s   scroll unlocks (unlockAfterMs in invitation.js)              */
.cover.is-open .plane { animation: takeoff 1.5s cubic-bezier(.6, 0, .85, .35) both; }
@keyframes takeoff {
  0%   { transform: translate(0, 0) scale(1); }
  16%  { transform: translate(0, calc(var(--ew) * .03)) scale(.985); }
  100% { transform: translate(calc(var(--ew) * .02), -125vh) scale(1.5); }
}
.cover.is-open .plane img { animation: lift-shadow .7s ease-in .25s both; }
@keyframes lift-shadow {
  to { filter: drop-shadow(0 calc(var(--ew) * .14) calc(var(--ew) * .06) rgba(30, 45, 70, .1)) drop-shadow(0 calc(var(--ew) * .02) calc(var(--ew) * .02) rgba(30, 45, 70, 0)); }
}
.cover.is-open .trail { animation: trail 1.5s cubic-bezier(.6, 0, .85, .35) both, fade-out .9s ease-out 1.05s both; }
@keyframes trail {
  0%, 16% { height: 0; }
  100%    { height: 125vh; }
}
@keyframes fade-out { to { opacity: 0; } }

.cover.is-open .env__seal { animation: seal-pop .5s cubic-bezier(.5, 0, .75, 0) .55s both; }
@keyframes seal-pop {
  0%   { opacity: 1; transform: scale(1); }
  35%  { opacity: 1; transform: scale(1.12) rotate(-6deg); }
  100% { opacity: 0; transform: scale(.4) rotate(18deg); }
}

.cover.is-open .env__flap { animation: flap-open 1s .8s both, flap-z 1s .8s both; }
@keyframes flap-open {
  0%   { transform: rotateX(0deg); animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  50%  { transform: rotateX(90deg); animation-timing-function: cubic-bezier(.1, .4, .5, 1); }
  100% { transform: rotateX(180deg); }
}
@keyframes flap-z {
  0%, 49.9% { z-index: 6; }
  50%, 100% { z-index: 2; }
}
.cover.is-open .env__face--front { animation: shade 1s .8s both; }
@keyframes shade { 50%, 100% { filter: brightness(.72); } }

/* the card rises, but its (hidden) lower part stays inside the pocket,
   so no gap opens between the card and the pocket's V */
.card { transition: transform 1.15s cubic-bezier(.3, .1, .15, 1) 1.35s; }
.cover.is-open .card { transform: translateY(calc(var(--ew) * -.37)); }
.env { translate: 0 0; }
.cover.is-open .env { translate: 0 var(--lift); cursor: default; transition: opacity 1s, transform 1.3s, translate 1.15s var(--ease-out) 1.35s; }

.cover.is-open .cover-hint { opacity: 0; transition: opacity .4s; }
.cover.is-open .cover-date { opacity: 1; transition: opacity .9s var(--ease-soft) 2s; }

/* deep link / reduced motion: final state at once */
.cover.no-anim *,
.cover.no-anim *::before,
.cover.no-anim *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* ---------------------------------------------------------------------
   2. OUR STORY
   --------------------------------------------------------------------- */
.story__body {
  justify-content: center;
  min-height: inherit;
  padding: calc(var(--head) + 1vh) 0 calc(var(--sb) + 10vh);
}

.collage {
  position: relative;
  width: 100%;
  height: 97cqw;
  flex: none;
}
/* every piece is its own RGBA image, composed here: ticket behind,
   polaroid with the photo under its window, bouquet and luggage tag on top */
.collage__ticket {
  position: absolute;
  z-index: 1;
  left: 7cqw;
  top: 24cqw;
  width: 22cqw;
  height: auto;
  transform: rotate(-11deg);
  filter: drop-shadow(0 1cqw 1.4cqw rgba(30, 45, 70, .25));
}
.collage__polaroid {
  position: absolute;
  z-index: 2;
  left: 17cqw;
  top: 2cqw;
  width: 68cqw;
  aspect-ratio: 801 / 1073;
  transform: rotate(-4deg);
}
.collage__window {                              /* the frame's window, minus .4% so the photo slides under the frame */
  position: absolute;
  left: 5.34%;
  top: 13.58%;
  right: 5.59%;
  bottom: 17.59%;
  overflow: hidden;
  background: #dfe4ea;
}
.collage__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.collage__window .collage__coast { object-position: 62% 70%; }
.collage__frame {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.4cqw 2cqw rgba(30, 45, 70, .28));
}
.collage__flowers {
  position: absolute;
  z-index: 3;
  left: 62cqw;
  top: 53cqw;
  width: 37cqw;
  height: auto;
  transform: rotate(-10deg);
  filter: drop-shadow(0 1cqw 1.4cqw rgba(30, 45, 70, .25));
}
.collage__tag {
  position: absolute;
  z-index: 4;
  left: 77cqw;
  top: 62cqw;
  width: 17cqw;
  height: auto;
  transform: rotate(12deg);
  transform-origin: 50% 6%;
  filter: drop-shadow(0 1cqw 1.2cqw rgba(30, 45, 70, .25));
}
.collage.is-in .collage__tag,
html:not(.js) .collage__tag { animation: sway 6s ease-in-out .8s infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(12deg); }
  50%      { transform: rotate(7deg); }
}

.story__title { margin-top: 1cqw; font-size: 7.9cqw; }
.story__divider { margin-top: 2.6cqw; }
.story__text {
  max-width: 84cqw;
  margin-top: 3.6cqw;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: max(1.0625rem, 5.25cqw);
  line-height: 1.3;
  letter-spacing: .025em;
  text-align: center;
  text-wrap: pretty;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #23252d;
}

/* ---------------------------------------------------------------------
   3. DETAILS
   --------------------------------------------------------------------- */
.details__body { padding: calc(var(--head) + 4.4vh) 0 calc(var(--sb) + 58cqw); }
.details__title { font-size: 9.6cqw; letter-spacing: .05em; }
.details__divider { margin-top: 3.2cqw; }
.details__note { margin-top: 4cqw; }

.facts { width: 76cqw; margin-top: 3.4cqw; }
.fact {
  display: grid;
  grid-template-columns: 17cqw minmax(0, 1fr);
  align-items: center;
  min-height: 16.4cqw;
  padding: 1.6cqw 0;
  border-top: 1px solid rgba(160, 170, 182, .55);
}
.fact--date { border-top: 0; min-height: 13cqw; }
.fact dt { display: flex; justify-content: center; }
.fact__icon { width: auto; height: 8.4cqw; max-width: 15cqw; object-fit: contain; }
.fact__icon--tall { height: 9cqw; }
.fact__icon--flat { height: 5.6cqw; }
.fact__text {
  padding-left: 5cqw;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: max(1.0625rem, 4.75cqw);
  line-height: 1.22;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
  color: #262832;
}
.fact__text .caps { font-size: .885em; letter-spacing: .08em; }
.fact--date .fact__text { padding-left: 3cqw; font-size: max(1.0625rem, 4.8cqw); letter-spacing: .07em; }
.fact__text time { font-variant-numeric: lining-nums tabular-nums !important; }
.fact__link { background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.fact__note {
  display: block;
  margin-top: .3em;
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: max(.8125rem, 3.2cqw);
  letter-spacing: .02em;
  color: var(--ink-soft);
}

.details__scene {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75cqw;
  pointer-events: none;
}
/* one photographic landscape (mobile crop / desktop -d) */
.details__coast {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 92%, transparent 100%);
}

/* ---------------------------------------------------------------------
   4. RSVP
   --------------------------------------------------------------------- */
.rsvp__body { padding: calc(var(--head) + 1vh) 8.6cqw calc(var(--sb) + 16cqw); }
.rsvp__head { display: flex; align-items: center; justify-content: center; gap: 3cqw; }
.rsvp__laurel { width: 14.5cqw; height: auto; margin-top: 3cqw; }
.rsvp__title { font-size: 12.6cqw; letter-spacing: .05em; line-height: 1; }
.rsvp__due {
  margin-top: 2.4cqw;
  font-family: var(--f-display);
  font-size: max(.8125rem, 3.05cqw);
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  color: #2b2e37;
}

.form { width: 100%; margin-top: 5cqw; display: flex; flex-direction: column; }
.form > .note,
.form > .text-link { align-self: center; }
.field { border: 0; margin-bottom: 4.6cqw; min-width: 0; }
.label {
  display: block;
  margin-bottom: 2.6cqw;
  font-size: max(1rem, 4.25cqw);
  color: #23262e;
}

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.choice__opt { position: relative; display: grid; }
.choice__opt input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.choice__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8cqw;
  min-height: max(2.75rem, 10cqw);
  padding: .4rem 1.6cqw;
  border-radius: 2cqw;
  border: 1px solid var(--field-border);
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 .4cqw 1.2cqw rgba(60, 80, 110, .08);
  font-size: max(.8125rem, 3.55cqw);
  line-height: 1.2;
  text-align: center;
  color: #2f333c;
  cursor: pointer;
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s, transform .25s var(--ease-out);
}
.choice__btn:active { transform: scale(.97); }
.choice__tick { display: none; flex: none; width: 4.2cqw; height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.choice__ring { width: 3.8cqw; height: 3.8cqw; border-radius: 50%; border: 1.5px solid #8a6a46; flex: none; }
.choice__opt input:checked + .choice__btn {
  color: #fff;
  border-color: #5a7a9d;
  background: linear-gradient(180deg, #86a4c3 0%, #6383a6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 .8cqw 1.8cqw rgba(70, 100, 140, .3);
}
.choice__opt input:checked + .choice__btn .choice__tick { display: block; animation: tick .45s var(--ease-out); }
.choice__opt input:checked + .choice__btn .choice__ring { display: none; }
.choice__opt input:focus-visible + .choice__btn { outline: 2px solid rgba(95, 127, 162, .95); outline-offset: 2px; }
@keyframes tick { from { transform: scale(.4); opacity: 0; } }

/* reply details from the shared macro: names on the open link, number of people, a note */
.rsvp-extra { display: grid; gap: 4.6cqw; margin-bottom: 5cqw; }
.rsvp-extra__field { display: grid; gap: 2.4cqw; min-width: 0; transition: opacity .35s; }
.rsvp-extra__label { font-size: max(1rem, 4.25cqw); color: #23262e; }
.rsvp-extra__optional { color: var(--ink-soft); }
.rsvp-extra__help { font-size: max(.8125rem, 3.2cqw); color: var(--ink-soft); }
.rsvp-extra__input {
  display: block;
  width: 100%;
  min-height: max(2.75rem, 11cqw);
  padding: 2cqw 4cqw;
  border-radius: 2cqw;
  border: 1px solid var(--field-border);
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 2px rgba(60, 80, 110, .06);
  font-family: var(--f-ui);
  font-size: max(16px, 3.9cqw);
  color: #2b2e36;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.rsvp-extra__input::placeholder { color: #8e939b; }
.rsvp-extra__input:focus { outline: none; border-color: #8aa6c4; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 3px rgba(135, 165, 196, .25); }
.rsvp-extra__textarea { min-height: max(5.5rem, 16.4cqw); padding: 2.8cqw 4cqw; resize: vertical; line-height: 1.35; }

/* named extra guests: one fieldset per person, first name, last name and an answer */
.rsvp-guests-block { display: grid; gap: 2.4cqw; min-width: 0; }
.rsvp-guests { display: grid; gap: 4cqw; }
.rsvp-guest { display: grid; gap: 2.6cqw; min-width: 0; padding: 4cqw 4cqw 4.4cqw; border: 1px solid var(--field-border); border-radius: 2.4cqw; background: rgb(255 255 255 / 40%); }
.rsvp-guest__legend { padding: 0 1.4cqw; font-size: max(.8125rem, 3.4cqw); color: var(--ink-soft); }
.rsvp-guest__names { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.rsvp-guest__field { display: grid; gap: 1.6cqw; min-width: 0; }
.rsvp-guest__field > .rsvp-extra__label { font-size: max(.8125rem, 3.4cqw); text-align: left; }
.rsvp-guest__select { text-align: left; }
.rsvp-guest__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.rsvp-guest__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  min-height: max(2.75rem, 10cqw);
  padding: .4rem 1.2cqw;
  border: 1px solid var(--field-border);
  border-radius: 2cqw;
  background: rgb(255 255 255 / 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
  color: #2f333c;
  font-size: max(.875rem, 3.6cqw);
  line-height: 1.2;
  cursor: pointer;
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s, transform .25s var(--ease-out);
}
.rsvp-guest__option:active { transform: scale(.97); }
.rsvp-guest__option[aria-pressed="true"] {
  color: #fff;
  border-color: #5a7a9d;
  background: linear-gradient(180deg, #86a4c3 0%, #6383a6 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 .8cqw 1.8cqw rgb(70 100 140 / 30%);
}
.rsvp-guest__option:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rsvp-guest__icon { flex: none; width: 3.8cqw; height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-guests__add { justify-self: center; min-height: max(2.75rem, 10cqw); padding: .4rem 1.6rem; font-size: max(.875rem, 3.6cqw); }
.rsvp-guests__count { text-align: center; font-size: max(.8125rem, 3.2cqw); color: var(--ink-soft); }
.rsvp-guest__remove { justify-self: end; min-height: 2.75rem; padding: 0 .4rem; font-size: max(.8125rem, 3.2cqw); color: var(--gold-dark); text-decoration: underline; text-underline-offset: .2em; }

.rsvp__send {
  align-self: center;
  width: 67.4cqw;
  min-height: 12.6cqw;
  margin-top: 1cqw;
  padding: .4rem 0;
  font-size: max(1rem, 5cqw);
  letter-spacing: .08em;
}

/* ---------------------------------------------------------------------
   5. GALLERY (event photos from the shared macro)
   --------------------------------------------------------------------- */
.gallery__body {
  justify-content: center;
  min-height: inherit;
  padding: calc(var(--head) + 1vh) 0 calc(var(--sb) + 11vh);
}
.gallery__head { display: flex; align-items: center; gap: 4.5cqw; }
.gallery__laurel { width: 9.6cqw; height: auto; margin-top: 1.6cqw; }
.gallery__title { font-size: 8.6cqw; letter-spacing: .06em; }
.gallery__grid { width: 88cqw; margin-top: 5.4cqw; }

/* the landing's mosaic for any number of photos: a wide first photo, a tall
   second one beside two more, then pairs; a photo left alone spans the row */
.photo-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 30cqw; gap: 1.8cqw; }
.photo-gallery__item:first-child { grid-column: 1 / -1; }
.photo-gallery__item:first-child:last-child { grid-row: span 2; }
.photo-gallery__item:nth-child(2):last-child { grid-column: 1 / -1; }
.photo-gallery__item:nth-child(2):nth-last-child(n+3) { grid-row: span 2; }
.photo-gallery__item:nth-child(n+5):nth-child(odd):last-child { grid-column: 1 / -1; }
.photo-gallery__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 1.6cqw;
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 .8cqw 2cqw rgba(40, 55, 80, .18);
  background: #dfe4ea;
}
.photo-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }

.gallery__play { width: 67cqw; min-height: 11.4cqw; margin-top: 6.4cqw; font-size: 4.1cqw; }

/* ---------- photo viewer (built by invitation.js) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: max(.75rem, env(safe-area-inset-top)) .75rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(22, 30, 42, .94);
  animation: fade-in .4s ease both;
}
.lightbox__close { justify-self: end; width: 2.75rem; height: 2.75rem; color: #fff; }
.lightbox svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close svg { margin: auto; }
.lightbox__stage { position: relative; width: min(100%, 64rem); height: 100%; min-height: 0; overflow: hidden; }
.lightbox__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .9s var(--ease-soft);
}
.lightbox__stage img.is-on { opacity: 1; }
.lightbox.is-playing .lightbox__stage img.is-on { animation: kenburns 6s linear both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-2%, -1%); } }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1rem; color: #fff; }
.lightbox__nav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.lightbox__count { min-width: 4rem; font-family: var(--f-display); letter-spacing: .2em; text-align: center; }

/* ---------------------------------------------------------------------
   6. WISHLIST (shared macro)
   --------------------------------------------------------------------- */
.wishes__body { padding: calc(var(--head) + 2vh) 6cqw calc(var(--sb) + 16cqw); }
.wishes__title { font-size: 9.2cqw; }
.wishes .divider { margin-top: 3cqw; }
.wishlist { width: 100%; margin-top: 5cqw; }
.wishlist-items { display: grid; gap: 4cqw; }
.wishlist-item {
  display: grid;
  gap: 4cqw;
  padding: 5cqw;
  border-radius: 3cqw;
  border: 1px solid rgba(150, 162, 178, .6);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 1cqw 3cqw rgba(60, 80, 110, .12);
  scroll-margin-top: calc(var(--head) + 1rem);
}
.wishlist-item--mine { border-color: #6383a6; background: rgba(234, 241, 248, .85); }
.wishlist-item__title { font-family: var(--f-serif); font-weight: 600; font-size: max(1.25rem, 5.4cqw); line-height: 1.2; letter-spacing: .02em; overflow-wrap: anywhere; color: #262832; }
.wishlist-item--taken .wishlist-item__title { color: #6b707b; }
.wishlist-item__description { margin-top: 1.5cqw; font-size: max(.9375rem, 3.7cqw); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); }
.wishlist-item__link { margin-top: 1.5cqw; font-size: max(.875rem, 3.5cqw); }
.wishlist-item__link a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: .2em; }
.wishlist-item__status { margin-top: 2cqw; font-size: max(.875rem, 3.5cqw); font-variant-numeric: lining-nums tabular-nums !important; color: var(--ink-soft); }
.wishlist-item__status strong { font-weight: 600; color: var(--gold-dark); }
.wishlist-item__actions { display: grid; gap: 3cqw; }
.wishlist-item__form { display: flex; flex-wrap: wrap; align-items: end; gap: 3cqw; }
.wishlist-item__quantity { display: grid; gap: 1cqw; font-size: max(.8125rem, 3.3cqw); color: var(--ink-soft); }
.wishlist-item__quantity input {
  width: 6rem;
  min-height: max(2.75rem, 11cqw);
  padding: .5rem .75rem;
  border-radius: 2cqw;
  border: 1px solid var(--field-border);
  background: rgba(255, 255, 255, .7);
  font-size: 1rem;
  color: #2b2e36;
}
.wishlist-item__quantity input:focus { outline: none; border-color: #8aa6c4; box-shadow: 0 0 0 3px rgba(135, 165, 196, .25); }
.wishlist-item__form .btn-gold { flex: 1 1 100%; }
.wishlist-item__cancel .btn-pill { width: 100%; }
.wishlist-notice,
.wishlist-error { margin-bottom: 4cqw; padding: 3cqw 4cqw; border: 1px solid; border-radius: 2.4cqw; font-size: max(.9375rem, 3.6cqw); }
.wishlist-notice { border-color: #7fae88; background: #eaf5ec; color: #24502d; }
.wishlist-error { border-color: #c97a6c; background: #fbebe8; color: #7a2a1f; }
.wishlist-help { margin-top: 5cqw; font-size: max(.875rem, 3.4cqw); text-align: center; color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   Response saved (saved.html): the landing's thank-you panel
   --------------------------------------------------------------------- */
.thanks {
  position: relative;
  z-index: 2;
  min-height: inherit;
  overflow: hidden;
  animation: fade-in .8s var(--ease-soft) both;
}
@keyframes fade-in { from { opacity: 0; } }

.thanks__sky {
  position: absolute;
  z-index: 2;
  left: 13cqw;
  top: calc(var(--head) + 1vh);
  width: 77cqw;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: draw 2.6s cubic-bezier(.4, .1, .3, 1) .35s forwards;
}
@keyframes draw { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

.thanks__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--head) + 30cqw) 0 calc(var(--sb) + 104cqw);
  text-align: center;
}
.thanks__body--plain { padding-top: calc(var(--head) + 8cqw); }
.thanks__body > * { animation: rise 1s var(--ease-out) both; }
.thanks__body > :nth-child(2) { animation-delay: .15s; }
.thanks__body > :nth-child(3) { animation-delay: .3s; }
.thanks__body > :nth-child(4) { animation-delay: .45s; }
.thanks__body > :nth-child(n+5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(4cqw); } }

.thanks__title { font-size: 9.8cqw; letter-spacing: .03em; }
.thanks__title--small { max-width: 84cqw; font-size: 8cqw; white-space: normal; text-wrap: balance; }
.thanks .divider { margin-top: 3cqw; }
.thanks__text {
  margin-top: 5.6cqw;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: max(1.0625rem, 4.55cqw);
  line-height: 1.32;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: #23262f;
}
.thanks__text + .thanks__text { margin-top: 4.6cqw; }
.thanks__event {
  max-width: 84cqw;
  margin-top: 7cqw;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: max(1rem, 4.4cqw);
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--brown);
}
.thanks__party { margin-top: 2cqw; font-size: max(.9375rem, 3.6cqw); color: var(--ink-soft); }
.thanks .facts { margin-top: 3cqw; text-align: left; }
.actions { display: grid; gap: 3cqw; width: 76cqw; margin-top: 5cqw; }
.actions > * { width: 100%; }
.saved-wishlist { margin-top: 8cqw; padding-inline: 6cqw; text-align: left; width: 100%; }
.saved-wishlist .wishlist { margin-top: 5cqw; }
.saved-wishlist__title { font-size: 9.2cqw; text-align: center; }
.saved-wishlist > .lead { text-align: center; }

/* luggage still life, fully in frame: two stacked suitcases, flowers, a soft floor shadow */
.thanks__scene {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(var(--sb) + 2cqw);
  height: 100cqw;
  container-type: inline-size;                  /* children below use the scene's own width */
  pointer-events: none;
}
.thanks__scene::before {
  content: "";
  position: absolute;
  left: 12cqw;
  right: 12cqw;
  bottom: 3cqw;
  height: 9cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 55, 80, .34), rgba(40, 55, 80, 0));
  animation: fade-in 1.2s var(--ease-soft) .5s both;
}
.thanks__case,
.thanks__case2,
.thanks__flowers { position: absolute; height: auto; }
.thanks__case2 { left: 20cqw; bottom: 6cqw; width: 60cqw; filter: drop-shadow(0 1.4cqw 1.8cqw rgba(30, 45, 70, .3)); animation: rise 1.2s var(--ease-out) .35s both; }
.thanks__case { left: 26cqw; bottom: 50cqw; width: 46cqw; filter: drop-shadow(0 1.2cqw 1.6cqw rgba(30, 45, 70, .32)); animation: rise 1.2s var(--ease-out) .5s both; }
.thanks__flowers { filter: drop-shadow(0 1cqw 1.4cqw rgba(30, 45, 70, .25)); animation: rise 1.2s var(--ease-out) .7s both; }
.thanks__flowers--a { width: 23cqw; left: 63cqw; bottom: 42cqw; rotate: -12deg; }
.thanks__flowers--b { width: 34cqw; left: 56cqw; bottom: 2cqw; rotate: -5deg; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4cqw;
  padding: 12cqw 8cqw calc(var(--sb) + 14cqw);
  background: linear-gradient(180deg, var(--seam), #93aac3);
  text-align: center;
}
.footer__head { display: flex; align-items: center; gap: 4cqw; }
.footer__laurel { width: 10cqw; height: auto; margin-top: 2cqw; }
.footer__script { font-family: var(--f-script); font-size: 11cqw; line-height: 1.1; color: #3b3027; }
.footer__date { font-family: var(--f-display); font-size: 4.4cqw; letter-spacing: .2em; color: #5c3f1f; }
.footer__count { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: max(1rem, 4.6cqw); color: #2e3340; }
.footer__brand { display: block; height: auto; margin: 4cqw auto 0; width: 6.25rem; }

/* ---------------------------------------------------------------------
   Floating RSVP button
   --------------------------------------------------------------------- */
.fab {
  position: fixed;
  z-index: 25;
  right: max(calc(4 * var(--u)), calc((100vw - var(--col)) / 2 + 4 * var(--u)));
  bottom: calc(var(--sb) + 4 * var(--u) + 26px);
  display: grid;
  place-items: center;
  min-width: calc(19 * var(--u));
  height: calc(10.4 * var(--u));
  padding: 0 calc(4 * var(--u));
  border-radius: 99px;
  background: linear-gradient(180deg, #b48545 0%, #94672f 55%, #7a5125 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .45), 0 calc(1.4 * var(--u)) calc(3 * var(--u)) rgba(70, 45, 15, .35);
  font-size: calc(3.5 * var(--u));
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(80, 50, 15, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(4 * var(--u))) scale(.92);
  transition: opacity .45s var(--ease-soft), transform .55s var(--ease-out), visibility 0s .55s;
}
@media (min-width: 560px) {
  .fab { right: calc((100vw - 480px) / 2 + 20px); bottom: 28px; }
}
.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease-soft), transform .55s var(--ease-out), visibility 0s;
}

/* ---------------------------------------------------------------------
   Menu (overlay; the panel sits on the column's right edge)
   --------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: rgba(60, 80, 108, .28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade-in .35s ease both;
}
.menu.is-closing { animation: fade-out .3s ease both; }
.menu__col { display: flex; justify-content: flex-end; width: var(--col); height: 100%; overflow: hidden; }
.menu__panel {
  position: relative;
  width: calc(78 * var(--u));
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(5 * var(--u));
  background:
    radial-gradient(90% 50% at 50% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 80%),
    linear-gradient(180deg, #d9e2eb 0%, #eef1f3 50%, #dde5ec 100%);
  box-shadow: calc(-2 * var(--u)) 0 calc(6 * var(--u)) rgba(30, 45, 70, .25);
  animation: slide-in .5s var(--ease-out) both;
}
.menu.is-closing .menu__panel { animation: slide-out .3s ease-in both; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
.menu__close {
  position: absolute;
  top: calc(var(--st) + 2.6vh);
  right: calc(5 * var(--u));
  width: max(2.75rem, calc(9 * var(--u)));
  height: max(2.75rem, calc(9 * var(--u)));
  padding: calc(1 * var(--u));
}
.menu__close svg { width: 100%; height: 100%; fill: none; stroke: #3d4250; stroke-width: 1.4; stroke-linecap: round; }
.menu__laurel { width: calc(16 * var(--u)); transform: rotate(-10deg); }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: calc(4.4 * var(--u)); }
.menu__links a {
  font-family: var(--f-display);
  font-size: calc(6 * var(--u));
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3a3b42;
  transition: color .3s;
}
.menu__links a[aria-current="true"] { color: #8a5f2d; }
.menu .divider { gap: calc(2.4 * var(--u)); }
.menu .divider i { width: calc(15 * var(--u)); }
.menu .divider img { width: calc(3.6 * var(--u)); }
.menu__date { font-family: var(--f-display); font-size: calc(3.6 * var(--u)); letter-spacing: .2em; color: #8a6230; }

/* ---------------------------------------------------------------------
   Hover only on real pointers (no stuck hover on touch)
   --------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { filter: brightness(1.06) saturate(1.05); }
  .btn-gold:hover .arrow { transform: translateX(1cqw); }
  .js .cover.is-ready:not(.is-open) .env:hover .env__seal { scale: 1.06; }
  .env__seal { transition: scale .4s var(--ease-out); }
  .photo-gallery__link:hover img { transform: scale(1.05); }
  .btn-pill:hover { box-shadow: inset 0 1px 0 #fff, 0 1.4cqw 3cqw rgba(70, 60, 40, .24); }
  .burger:hover span:nth-child(2) { transform: translateX(calc(-1 * var(--u))); }
  .choice__opt:hover .choice__btn { border-color: rgba(110, 135, 165, .9); }
  .menu__links a:hover { color: #8a5f2d; }
  .topnav a:hover::after { transform: scaleX(1); }
  .fab:hover { filter: brightness(1.06); }
  .text-link:hover { color: var(--brown); }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cloud, .sky__cloud, .btn-gold::after, .cover .plane img, .collage__tag,
  .thanks, .thanks__body > *, .thanks__scene::before, .thanks__case, .thanks__case2, .thanks__flowers,
  .lightbox.is-playing .lightbox__stage img.is-on { animation: none !important; }
  .thanks__sky { animation: none; -webkit-mask-image: none; mask-image: none; }
  .js [data-reveal] { transition-duration: .01s; translate: none; }
}

/* =====================================================================
   DESKTOP ≥ 1024px — full width
   One breakpoint: the same markup is moved into two-column grids.
   Blocks that keep their mobile proportions become inline-size containers
   (their cqw children scale with the block, not with the 1440px page).
   Mobile chrome (burger, menu, fab) → top bar with RSVP button + dot rail.
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --side: max(56px, 6vw); --bar: 76px; --st: 0px; --sb: 0px; }

  .sky { display: none; }
  .page { max-width: none; box-shadow: none; --head: var(--bar); }
  .burger, .menu, .fab { display: none !important; }
  .js [data-reveal] { translate: 0 28px; }

  /* ---------- top bar: monogram · links · RSVP button ---------- */
  .topbar {
    left: 0;
    width: 100%;
    height: var(--bar);
    align-items: center;
    gap: 40px;
    padding: 0 var(--side);
    background: linear-gradient(rgba(170, 189, 209, .85), rgba(170, 189, 209, 0));
    transform: translateY(-12px);
  }
  html.is-opened .topbar {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s var(--ease-soft) .3s, transform .7s var(--ease-out) .3s, visibility 0s, background .4s, box-shadow .4s;
  }
  .topbar.is-solid {
    background: rgba(226, 233, 240, .86);
    box-shadow: 0 1px 0 rgba(120, 135, 155, .28);
  }
  .topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    font-family: var(--f-display);
    font-size: 15px;
    letter-spacing: .24em;
    color: #6a4721;
  }
  .topbar__rings { width: 38px; height: auto; fill: none; stroke: #94672f; stroke-width: 2.2; }
  .topnav { flex: none; align-items: center; gap: 40px; }
  .topnav a { padding: 8px 0; font-size: 13px; letter-spacing: .14em; }
  .topnav a::after { left: 0; right: 0; transform-origin: 0 50%; }
  .topnav__wide { display: inline; }
  .topnav .topnav__rsvp {
    order: 1;
    display: grid;
    place-items: center;
    height: 42px;
    margin-left: 8px;
    padding: 0 28px;
    border-radius: 99px;
    background: linear-gradient(180deg, #b48545 0%, #94672f 55%, #7a5125 100%);
    box-shadow: inset 0 1px 0 rgba(255, 240, 210, .45), 0 6px 14px -4px rgba(70, 45, 15, .45);
    color: #fff;
    text-shadow: 0 1px 1px rgba(80, 50, 15, .4);
    transition: transform .3s var(--ease-out), box-shadow .3s, filter .3s;
  }
  .topnav .topnav__rsvp::after { display: none; }
  .topnav .topnav__rsvp[aria-current="true"] {
    box-shadow: inset 0 1px 0 rgba(255, 240, 210, .45), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 3.5px #94672f;
  }

  /* ---------- dot rail: one fixed column on the right ---------- */
  .rail {
    position: fixed;
    z-index: 28;
    right: 26px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translate(16px, -50%);
    transition: opacity .6s var(--ease-soft), transform .7s var(--ease-out), visibility 0s .7s;
  }
  html.is-opened .rail {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition: opacity .6s var(--ease-soft) .5s, transform .7s var(--ease-out) .5s, visibility 0s;
  }
  .rail a {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid rgba(122, 82, 38, .8);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
    transition: background .4s, border-color .4s, transform .4s var(--ease-out);
  }
  .rail a::after { content: ""; position: absolute; inset: -8px; }
  .rail a::before {
    content: attr(aria-label);
    position: absolute;
    right: 24px;
    top: 50%;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 4px 12px -4px rgba(40, 55, 80, .3);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #3a3f4b;
    opacity: 0;
    transform: translate(6px, -50%);
    transition: opacity .3s, transform .4s var(--ease-out);
    pointer-events: none;
  }
  .rail a:hover::before,
  .rail a:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
  .rail a[aria-current="true"] { background: #94672f; border-color: #94672f; transform: scale(1.3); }

  /* ---------- cover: title + CTA on the left, plane over the envelope on the right ---------- */
  .cover { --ew: min(500px, 36vw, (100vh - 150px) / 1.331); }
  @supports (height: 1svh) { .cover { --ew: min(500px, 36vw, (100svh - 150px) / 1.331); } }
  .cover__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    column-gap: 5vw;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    min-height: 100svh;
    padding: 90px var(--side) 60px;
  }
  .hero__greeting { grid-column: 1; grid-row: 2; justify-self: center; max-width: 30em; margin-bottom: 24px; font-size: clamp(22px, 2vw, 30px); }
  .hero__title { grid-column: 1; grid-row: 3; }
  .hero__event { grid-column: 1; grid-row: 4; justify-self: center; max-width: 26em; margin-top: 18px; font-size: clamp(20px, 1.7vw, 26px); }
  .cover-line { grid-column: 1; grid-row: 5; min-height: 40px; margin: 26px 0 24px; }
  .hero__cta { grid-column: 1; grid-row: 6; justify-self: center; }
  .craft { grid-column: 2; grid-row: 1 / -1; margin: 0; }

  .hero__script { font-size: clamp(100px, 9.4vw, 150px); margin-bottom: -4px; padding-left: 12px; }
  .hero__invited { font-size: clamp(70px, 6.6vw, 106px); }
  .hero__to { font-size: clamp(16px, 1.35vw, 21px); margin-top: 14px; }
  .hero__wedding { font-size: clamp(21px, 1.8vw, 28px); margin-top: 6px; }
  .cover-hint { font-size: 22px; }
  .cover-date { font-size: 16px; }

  .btn-gold { gap: 14px; border-width: 0 30px; border-image-width: 0 30px; }
  .btn-gold .arrow { width: 28px; }
  .hero__cta { width: 330px; min-height: 62px; font-size: 17px; }

  .stamp { top: 92px; right: auto; left: calc(var(--side) - 24px); width: 160px; transform: rotate(-12deg); }

  /* ---------- story: collage left, text right ---------- */
  .story__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 4vw;
    align-items: center;
    max-width: 1560px;
    margin: 0 auto;
    padding: 110px var(--side) 80px;
  }
  .collage {
    container-type: inline-size;            /* keeps the mobile collage geometry */
    grid-column: 1;
    grid-row: 1 / -1;
    justify-self: end;
    width: min(100%, 620px, (100svh - 200px) / .97);
    height: auto;
    aspect-ratio: 100 / 97;
  }
  .story__title,
  .story__divider,
  .story__text { grid-column: 2; justify-self: center; }
  .story__title { grid-row: 2; margin: 0; font-size: clamp(46px, 4.4vw, 70px); }
  .story__divider { grid-row: 3; margin-top: 20px; }
  .story__divider .divider { gap: 14px; }
  .story__divider .divider i { width: 80px; }
  .story__divider .divider img { width: 18px; }
  .story__text { grid-row: 4; max-width: 30em; margin-top: 26px; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.38; }

  /* ---------- details: facts left, landscape right ---------- */
  .details__body {
    container-type: inline-size;            /* facts keep their mobile proportions */
    justify-content: center;
    width: min(470px, 40vw);
    min-height: 100svh;
    margin-left: max(var(--side), 50vw - 640px);
    padding: 110px 0 80px;
  }
  .details__scene { inset: 0 0 0 auto; width: 64vw; height: auto; }
  .details__coast {
    left: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, #000 34%), linear-gradient(transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
  .details::after { height: 6%; }

  /* ---------- RSVP: title left, form on a frosted card right ---------- */
  .rsvp__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 5vw;
    align-items: center;
    max-width: 1400px;
    min-height: 100svh;
    margin: 0 auto;
    padding: 92px var(--side) 48px;
  }
  .rsvp__head { grid-column: 1; grid-row: 2; gap: clamp(14px, 1.8vw, 26px); }
  .rsvp__laurel { width: clamp(54px, 6vw, 86px); margin-top: 22px; }
  .rsvp__title { font-size: clamp(68px, 7.6vw, 132px); }
  .rsvp__due { grid-column: 1; grid-row: 3; margin-top: 20px; font-size: 15px; }
  .form {
    container-type: inline-size;            /* form fields keep their mobile proportions */
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 0;
    padding: 34px 40px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px -30px rgba(40, 60, 90, .35);
  }
  .form .field { margin-bottom: 3.6cqw; }
  .form > .note { margin-top: 3.6cqw; }

  /* thank-you: message right, suitcases left */
  .thanks { --tw: min(480px, 36vw); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .thanks__body {
    container-type: inline-size;
    grid-column: 2;
    width: var(--tw);
    justify-self: center;
    padding: calc(130px + var(--tw) * .3) 0 90px;
  }
  .thanks__body--plain { padding-top: 120px; }
  .thanks__sky { left: calc(75vw - var(--tw) / 2); top: 104px; width: var(--tw); }
  .thanks__scene {
    --sw: min(500px, 36vw, 100svh - 190px);
    left: calc(25vw - var(--sw) / 2);
    right: auto;
    bottom: max(24px, (100svh - var(--sw)) / 2 - 10px);
    width: var(--sw);
    height: var(--sw);
  }

  /* ---------- gallery: wide mosaic (exactly the landing's for four photos) ---------- */
  .gallery__body { padding: 96px var(--side) 56px; }
  .gallery__head { gap: 28px; }
  .gallery__laurel { width: 62px; margin-top: 10px; }
  .gallery__title { font-size: clamp(50px, 4.6vw, 72px); }
  .gallery__grid { width: min(1120px, 100%); margin-top: 34px; }
  .photo-gallery { grid-template-columns: 1fr 1fr .9fr; grid-auto-rows: min(28vw, (100svh - 370px) / 2, 310px); gap: 14px; }
  .photo-gallery__item { grid-column: auto !important; grid-row: auto !important; }
  .photo-gallery__item:first-child { grid-column: 1 / 3 !important; }
  .photo-gallery__item:first-child:last-child { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .photo-gallery__item:first-child:nth-last-child(3) { grid-row: span 2 !important; }
  .photo-gallery__item:nth-child(2):nth-last-child(n+3) { grid-row: span 2 !important; }
  .photo-gallery__item:nth-child(3n+2):nth-child(n+5):last-child { grid-column: 1 / -1 !important; }
  .photo-gallery__item:nth-child(3n):nth-child(n+6):last-child { grid-column: span 2 !important; }
  .photo-gallery__link { border-radius: 10px; border-width: 2px; }
  .gallery__play { width: 320px; min-height: 56px; margin-top: 34px; gap: 14px; border-radius: 30px; font-size: 16px; }
  .btn-pill__icon { width: 32px; }

  /* ---------- wishlist: a phone-width card column ---------- */
  .wishes__body { container-type: inline-size; width: min(560px, 100%); margin: 0 auto; padding: 110px 0 80px; }

  /* ---------- footer ---------- */
  .footer { gap: 12px; padding: 70px var(--side) 64px; }
  .footer__head { gap: 22px; }
  .footer__laurel { width: 54px; margin-top: 10px; }
  .footer__script { font-size: 64px; }
  .footer__date { font-size: 20px; }
  .footer__count { font-size: 22px; }
  .footer__brand { margin-top: 14px; }

  /* ---------- hover (mouse only) ---------- */
  .topnav .topnav__rsvp:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .btn-gold:hover .arrow { transform: translateX(5px); }
}

@media (min-width: 1680px) {
  .cover__body, .story__body, .rsvp__body { max-width: none; padding-inline: calc((100vw - 1560px) / 2); }
}
