/* Vantrisa Airlines Flight 1102 invitation
   Palette per FLIGHT-IDENTITY.md. --royal is a placeholder until Vantrisa picks her exact blue:
   change that one value and the whole site follows. */
:root {
  --royal: #1D3F9E;
  --royal-deep: #0E2461;
  --royal-ink: #12296B;
  --night: #081640;

  --gold-hi: #F5D77A;
  --gold: #C79A3B;
  --gold-lo: #8A6A1E;
  --gold-ink: #6E5214;
  --gold-grad: linear-gradient(180deg, #F5D77A 0%, #C79A3B 55%, #8A6A1E 100%);

  --paper: #FFFDF7;
  --cream: #FBF6EA;
  --cream-2: #F3EBD8;
  --ink: #1C2440;
  --ink-soft: #4A5270;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  --shadow: 0 18px 40px rgba(3, 10, 35, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 5px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Night sky, shared by both screens ---------- */
.sky, .book-sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 32%, #2B56C6 0%, var(--royal) 30%, var(--royal-deep) 68%, var(--night) 100%);
}
.book-sky {
  position: fixed;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, var(--royal) 0%, var(--royal-deep) 45%, var(--night) 100%);
}
.sky::before, .book-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, rgba(245, 215, 122, .95), transparent),
    radial-gradient(1.2px 1.2px at 140px 80px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1.8px 1.8px at 90px 190px, rgba(245, 215, 122, .8), transparent),
    radial-gradient(1px 1px at 210px 150px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.4px 1.4px at 260px 40px, rgba(245, 215, 122, .7), transparent),
    radial-gradient(1px 1px at 180px 250px, rgba(255, 255, 255, .6), transparent);
  background-size: 300px 280px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ---------- SCREEN 1: intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.flightpath { position: absolute; inset: 0; width: 100%; height: 100%; }
.flightpath path {
  stroke: rgba(245, 215, 122, .45);
  stroke-width: 2;
  stroke-dasharray: 2 11;
  stroke-linecap: round;
}
.flightpath-mover { fill: var(--gold-hi); }

.stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3.4vh, 30px);
  padding: 24px 16px;
}
.kicker {
  margin: 0;
  color: var(--gold-hi);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
}

/* Envelope */
.envelope {
  position: relative;
  display: block;
  width: min(560px, 90vw, calc((100vh - 200px) * 1.6));
  aspect-ratio: 1.6 / 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  container-type: inline-size;
  animation: float 5.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.envelope:focus-visible { outline-offset: 10px; }
.envelope.is-opening { animation: none; cursor: default; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

.env-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 1.4cqw;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .32s ease-in;
}
.env-front { filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 0, .45)); }
.env-back { transform: rotateY(-90deg); visibility: hidden; perspective: 1200px; }
.envelope.flip-1 .env-front { transform: rotateY(90deg); }
.envelope.flip-2 .env-front { visibility: hidden; }
.envelope.flip-2 .env-back {
  visibility: visible;
  transform: rotateY(0);
  transition: transform .32s ease-out;
  filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 0, .45));
}

.airmail {
  position: absolute;
  inset: 0;
  display: block;
  padding: 2.4cqw;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg,
    var(--royal) 0 3.2cqw, var(--paper) 3.2cqw 4.8cqw,
    var(--gold) 4.8cqw 8cqw, var(--paper) 8cqw 9.6cqw);
}
.paper {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: .6cqw;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .9), transparent 45%),
    linear-gradient(160deg, #FFFDF7, #F4EBD7);
  text-align: left;
  color: var(--ink);
}

.return { position: absolute; left: 5%; top: 7%; max-width: 42%; display: flex; flex-direction: column; gap: .5cqw; }
.return-name { font-family: var(--font-serif); font-weight: 700; font-size: 3.4cqw; color: var(--royal-ink); }
.return-line { font-weight: 600; font-size: 1.75cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.postage {
  position: absolute;
  right: 4%;
  top: 6%;
  display: flex;
  gap: 1.6cqw;
  filter: drop-shadow(0 .4cqw .6cqw rgba(0, 0, 0, .25));
}
.stamp {
  --r: .55cqw;
  --s: 1.8cqw;
  display: block;
  width: 12.5cqw;
  aspect-ratio: .82;
  padding: 1.2cqw;
  background: var(--paper);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle var(--r), #0000 95%, #000) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s);
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle var(--r), #0000 95%, #000) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s);
}
.stamp-plane { transform: rotate(3deg); }
.stamp-num { transform: rotate(-2deg); }
.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6cqw;
  height: 100%;
  background: linear-gradient(160deg, var(--royal), var(--royal-deep));
  color: var(--gold-hi);
}
.stamp-plane svg { width: 6cqw; height: 6cqw; fill: var(--gold-hi); transform: rotate(40deg); }
.stamp-num .stamp-inner { background: var(--gold-grad); color: var(--royal-ink); }
.stamp-big { font-family: var(--font-serif); font-weight: 700; font-size: 6cqw; line-height: 1; }
.stamp-year { font-size: 3.5cqw; letter-spacing: .02em; }
.stamp-text { font-weight: 700; font-size: 1.15cqw; letter-spacing: .1em; text-transform: uppercase; text-align: center; }

.postmark {
  position: absolute;
  width: 27cqw;
  left: -15cqw;
  top: 3.5cqw;
  stroke: rgba(18, 41, 107, .55);
  fill: rgba(18, 41, 107, .6);
  transform: rotate(-8deg);
  pointer-events: none;
}
.postmark circle, .postmark path { fill: none; }
.pm-text { font: 700 12px var(--font-body); letter-spacing: 2px; stroke: none; }
.pm-date { font: 700 14px var(--font-body); letter-spacing: 1px; stroke: none; }
.pm-year { font: 600 11px var(--font-body); letter-spacing: 2px; stroke: none; }

.env-script {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  text-align: center;
  font-family: var(--font-script);
  font-size: 8.4cqw;
  line-height: 1.1;
  color: var(--royal);
}

.par-avion {
  position: absolute;
  left: 5%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  padding: .8cqw 1.4cqw;
  border: .35cqw solid var(--royal);
  color: var(--royal);
  font-weight: 700;
  font-size: 1.8cqw;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.addressee {
  position: absolute;
  right: 6%;
  bottom: 9%;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: .7cqw;
}
.addressee-label { font-weight: 600; font-size: 1.6cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.addressee-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.3cqw;
  line-height: 1.2;
  color: var(--royal-ink);
  padding-bottom: .5cqw;
  border-bottom: .2cqw solid rgba(18, 41, 107, .3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addressee-line {
  font-weight: 600;
  font-size: 1.65cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: .5cqw;
  border-bottom: .2cqw solid rgba(18, 41, 107, .3);
}

/* Back of the envelope */
.back-base {
  display: block;
  height: 100%;
  border-radius: .6cqw;
  background: linear-gradient(#FBF4E4, #EFE3C6);
}
.pocket, .flap { position: absolute; inset: 2.4cqw; display: block; border-radius: .6cqw; }
.pocket {
  z-index: 2;
  background:
    linear-gradient(115deg, transparent 49.6%, rgba(138, 106, 30, .16) 50%, transparent 50.4%),
    linear-gradient(65deg, transparent 49.6%, rgba(138, 106, 30, .16) 50%, transparent 50.4%),
    linear-gradient(170deg, #FFFBF0, #EEE1C3);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.flap {
  z-index: 3;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, #F8EFD9, #E6D6B1);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
}
.envelope.flap-open .flap { animation: flapOpen .6s ease-in-out forwards; }
@keyframes flapOpen {
  0% { transform: rotateX(0); z-index: 3; }
  49% { z-index: 3; }
  50% { z-index: 0; }
  100% { transform: rotateX(180deg); z-index: 0; }
}

.mini-pass {
  position: absolute;
  z-index: 1;
  left: 9%;
  right: 9%;
  top: 7%;
  height: 80%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: linear-gradient(#FFFDF7, #F6EEDC);
  box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .25);
  transition: transform .75s cubic-bezier(.2, .8, .2, 1);
}
.envelope.pass-out .mini-pass { transform: translateY(-58%); }
.mini-pass-band {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.8cqw 2.6cqw;
  background: linear-gradient(120deg, var(--royal-deep), var(--royal));
  color: var(--gold-hi);
  font-weight: 700;
  font-size: 2.1cqw;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.mini-pass-band svg { width: 3.6cqw; height: 3.6cqw; fill: var(--gold-hi); color: var(--gold-hi); }
.mini-pass-body { display: flex; align-items: center; justify-content: space-between; padding: 2.4cqw 2.6cqw; }
.mini-pass-flight { font-family: var(--font-serif); font-weight: 700; font-size: 4.6cqw; color: var(--royal-ink); }
.mini-pass-route { display: flex; align-items: center; gap: 1.2cqw; font-weight: 700; font-size: 3.8cqw; color: var(--royal); }
.mini-pass-route svg { width: 3.6cqw; height: 3.6cqw; fill: var(--gold); }

.seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(2.4cqw + (100% - 4.8cqw) * .6);
  width: 15cqw;
  display: block;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 .6cqw .8cqw rgba(0, 0, 0, .35));
  transition: transform .35s ease-in, opacity .35s ease-in;
}
.seal svg { display: block; width: 100%; height: auto; }
.seal-text { font: 700 30px var(--font-serif); fill: #7A5A17; stroke: #FBE7A6; stroke-width: .6px; }
.envelope.seal-pop .seal { transform: translate(-50%, -50%) scale(1.4) rotate(-14deg); opacity: 0; }

.open-link {
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  background: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
  cursor: pointer;
}
.open-link:hover { color: var(--gold-hi); }

/* ---------- SCREEN 2: the scrapbook ---------- */
.book { position: relative; min-height: 100vh; }
.book[hidden] { display: none; }
.book:focus { outline: none; }
.book-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) 16px 48px;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 7vw, 76px);
}

.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; translate: 0 0; }

.tape {
  position: absolute;
  z-index: 3;
  width: 112px;
  height: 30px;
  background: linear-gradient(rgba(245, 215, 122, .62), rgba(214, 180, 90, .5));
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.tape-a { top: -14px; left: 44%; transform: rotate(-5deg); }
.tape-b { top: -12px; right: 18%; transform: rotate(6deg); }
.tape-p { top: -12px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-4deg); }

.label {
  display: block;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.value {
  display: block;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--royal-ink);
}

/* 1. Boarding pass */
.pass {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 240px;
  rotate: -1.2deg;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45));
}
.pass-main {
  overflow: hidden;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(#FFFDF7, #F8F1E1);
  -webkit-mask:
    radial-gradient(circle 14px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 14px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.pass-stub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  border-radius: 0 18px 18px 0;
  border-left: 2px dashed rgba(18, 41, 107, .28);
  background: linear-gradient(#FFFDF7, #F4ECD9);
  -webkit-mask:
    radial-gradient(circle 14px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 14px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 14px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 14px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.pass-band {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  background: linear-gradient(120deg, var(--royal-deep), var(--royal));
}
.pass-wings { width: 44px; height: 44px; flex: none; fill: var(--gold-hi); color: var(--gold-hi); }
.pass-airline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.1;
  color: var(--gold-hi);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pass-class { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.pass-body { display: grid; gap: 18px; padding: 22px 26px 24px; }
.value-name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.6vw, 30px);
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.route-end { display: flex; flex-direction: column; }
.route-end-to { text-align: right; align-items: flex-end; }
.route-code { font-family: var(--font-serif); font-weight: 700; font-size: clamp(42px, 7vw, 66px); line-height: 1; color: var(--royal); }
.route-city { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.route-line {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 15px);
}
.route-line svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  fill: var(--gold);
}
.pass.in .route-line svg { animation: fly 2.6s cubic-bezier(.5, 0, .3, 1) .4s both; }
@keyframes fly { from { left: 0; } to { left: calc(100% - 30px); } }
.pass:not(.in) .route-line svg { left: 0; }
.pass.in .route-line svg { left: calc(100% - 30px); }
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(18, 41, 107, .25);
}
.status {
  display: inline-block;
  width: fit-content;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--royal-ink);
  font-size: 12px;
}
.pass-tagline {
  margin: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.1;
  color: var(--royal);
}
.value-small { font-family: var(--font-serif); font-size: 15px; overflow-wrap: anywhere; }
.stub-row { display: flex; gap: 22px; }
.barcode { display: block; width: 100%; height: 62px; margin-top: auto; fill: var(--royal-ink); }

/* 2 and 3. Tag and letter */
.pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
.tag {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 4;
  grid-row: 1;
  margin-top: 46px;
  padding: 70px 26px 34px;
  text-align: center;
  color: var(--cream);
  rotate: -4deg;
  translate: 0 0;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}
.tag.reveal { translate: 0 28px; }
.tag.reveal.in { translate: 26px 0; }
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(165deg, var(--royal), var(--royal-deep));
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.tag::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1.5px solid rgba(245, 215, 122, .5);
  border-radius: 8px;
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.tag-hole {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 5px var(--gold);
}
.tag-string {
  position: absolute;
  top: -64px;
  left: 50%;
  width: 2px;
  height: 96px;
  background: linear-gradient(var(--gold-hi), var(--gold));
  transform: rotate(14deg);
  transform-origin: bottom center;
}
.tag-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.tag-date {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 62px);
  line-height: 1;
  color: var(--gold-hi);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tag-day { margin: 8px 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; opacity: .85; }
.tag-count {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid rgba(245, 215, 122, .6);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
}

.letter {
  position: relative;
  grid-column: 5 / span 8;
  grid-row: 1;
  padding: 58px 48px 46px 76px;
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .8), transparent 40%),
    linear-gradient(#FFFDF7, #F7EFDD);
  box-shadow: var(--shadow);
  rotate: 1.2deg;
}
.letter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52px;
  width: 1.5px;
  background: rgba(199, 154, 59, .45);
}
.letter p { margin: 0 0 20px; }
.letter .signature { margin: 0; font-family: var(--font-script); font-size: 48px; line-height: 1.2; color: var(--royal); }
.letter-stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 104px;
  stroke: rgba(199, 154, 59, .85);
  fill: var(--gold);
  rotate: -14deg;
}
.letter-stamp circle, .letter-stamp path { fill: none; }
.ls-text { font: 700 10px var(--font-body); letter-spacing: 2.5px; stroke: none; fill: var(--gold-lo); }
.letter-stamp .ls-dot { fill: var(--gold); stroke: none; }
.ls-num { font: 700 30px var(--font-serif); fill: var(--gold-lo); stroke: none; }

/* 4. Journey */
.section-head { text-align: center; color: var(--cream); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;
  color: var(--gold-hi);
}
.section-head p { max-width: 44ch; margin: 10px auto 0; font-size: 15px; opacity: .88; }
.polaroids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  margin-top: 34px;
  padding: 0 6px;
}
.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 0;
  background: linear-gradient(#FFFFFF, #F6F2E8);
  box-shadow: var(--shadow);
}
.polaroid:nth-child(1) { rotate: -3deg; }
.polaroid:nth-child(2) { rotate: 2deg; }
.polaroid:nth-child(3) { rotate: -1.5deg; }
.polaroid:nth-child(4) { rotate: 2.5deg; }
.polaroid:nth-child(5) { rotate: -2deg; }
.polaroid:nth-child(6) { rotate: 3deg; }
.photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(140deg, var(--royal), var(--royal-deep)); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; place-items: center; }
.placeholder span {
  color: rgba(245, 215, 122, .85);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.polaroid figcaption {
  width: fit-content;
  margin: 14px auto 16px;
  padding: 4px 12px;
  border: 2px solid rgba(29, 63, 158, .7);
  border-radius: 6px;
  color: var(--royal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  rotate: -4deg;
}

/* 5 and 6. Itinerary and dining */
.pair-b { align-items: start; }
.itinerary {
  grid-column: 1 / span 7;
  grid-row: 1;
  padding: 36px 38px;
  border-radius: 14px;
  background: linear-gradient(#FFFDF7, #F7EFDD);
  box-shadow: var(--shadow);
  rotate: -.8deg;
}
.card-kicker {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--royal);
}
.itin { display: grid; gap: 14px; margin: 22px 0 28px; }
.itin div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; }
.itin dt { font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.itin dd { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.45; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold { background: var(--gold-grad); color: var(--royal-ink); box-shadow: 0 6px 16px rgba(138, 106, 30, .35); }
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(138, 106, 30, .45); }
.btn-outline { border: 2px solid var(--royal); color: var(--royal); background: transparent; }
.btn-outline:hover { background: rgba(29, 63, 158, .07); }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-wide { min-width: min(280px, 100%); }
.cal { position: relative; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 14px 30px rgba(3, 10, 35, .3);
}
.cal-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--royal-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.cal-menu a:hover { background: var(--cream-2); }

.dining {
  position: relative;
  z-index: 2;
  grid-column: 8 / span 5;
  grid-row: 1;
  margin-top: 56px;
  padding: 36px 32px;
  border-radius: 12px;
  color: var(--cream);
  background: linear-gradient(165deg, var(--royal), var(--royal-deep));
  box-shadow: var(--shadow);
  outline: 1.5px solid rgba(245, 215, 122, .55);
  outline-offset: -11px;
  rotate: 2deg;
}
.dining .card-kicker { color: var(--gold-hi); }
.dining p { margin: 18px 0 0; font-size: 16px; line-height: 1.65; }
.dining-note { padding-top: 16px; border-top: 1px dashed rgba(245, 215, 122, .5); color: var(--gold-hi); }

/* 7. RSVP */
.rsvp {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 46px 38px 40px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(#FFFDF7, #F7EFDD);
  box-shadow: var(--shadow);
}
.rsvp h2 { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; color: var(--royal); }
.rsvp p { margin: 0 auto 14px; max-width: 48ch; font-size: 16px; color: var(--ink-soft); }
.rsvp .rsvp-by { margin: 0 0 24px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--royal-ink); }
.rsvp-by strong { font-weight: 700; }
.rsvp-embed { display: flex; justify-content: center; }

/* 8. Questions and footer */
.questions { text-align: center; color: var(--cream); }
.questions .card-kicker { margin: 0 auto; color: var(--gold-hi); }
.questions p { margin: 16px 0 0; font-size: 16px; }
.questions a { color: var(--gold-hi); font-weight: 700; text-underline-offset: 4px; }
.book-foot { text-align: center; color: rgba(255, 255, 255, .72); }
.book-foot svg { width: 40px; height: 40px; fill: var(--gold); color: var(--gold); }
.book-foot p { margin: 10px 0 6px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.replay {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--cream);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
  cursor: pointer;
}
.replay:hover { color: var(--gold-hi); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .pass { grid-template-columns: 1fr; rotate: -.6deg; }
  .pass-main {
    border-radius: 16px 16px 0 0;
    -webkit-mask:
      radial-gradient(circle 13px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 13px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .pass-stub {
    border-radius: 0 0 16px 16px;
    border-left: 0;
    border-top: 2px dashed rgba(18, 41, 107, .28);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    -webkit-mask:
      radial-gradient(circle 13px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 13px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle 13px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle 13px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .pass-stub .field:first-child { grid-column: 1 / -1; }
  .barcode { grid-column: 1 / -1; height: 52px; }
  .pass-band { padding: 16px 18px; gap: 12px; }
  .pass-wings { width: 36px; height: 36px; }
  .pass-body { padding: 18px 18px 20px; gap: 16px; }
  .route { gap: 10px; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }

  .pair, .pair-b { grid-template-columns: 1fr; }
  .tag, .letter, .itinerary, .dining { grid-column: 1; }
  .tag { grid-row: 1; justify-self: center; width: min(300px, 88%); margin-top: 60px; }
  .tag.reveal.in { translate: 0 0; }
  .letter { grid-row: 2; margin-top: -22px; padding: 56px 22px 40px 44px; font-size: 17px; }
  .letter::before { left: 28px; }
  .letter-stamp { width: 84px; right: 12px; bottom: 12px; }
  .itinerary { grid-row: 1; padding: 30px 22px; rotate: -.5deg; }
  .itin div { grid-template-columns: 1fr; gap: 2px; }
  .dining { grid-row: 2; margin-top: -8px; padding: 34px 26px; rotate: 1.2deg; }
  .polaroids { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .polaroid { padding: 8px 8px 0; }
  .polaroid figcaption { font-size: 11px; letter-spacing: .18em; margin: 10px auto 12px; }
  .rsvp { padding: 40px 22px 34px; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .envelope { animation: none; }
  .sky::before, .book-sky::before { animation: none; }
  .reveal, .tag.reveal { opacity: 1; translate: none; transition: none; }
  .pass.in .route-line svg { animation: none; }
  .intro { transition: none; }
}

/* Status chip and countdown jump to the RSVP card */
.to-rsvp { text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.to-rsvp::after { content: "\203A"; margin-left: 6px; font-weight: 700; }
.status.to-rsvp:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(138, 106, 30, .35); }
.tag-count.to-rsvp { color: var(--cream); }
.tag-count.to-rsvp:hover { background: rgba(245, 215, 122, .14); }
