/* =========================================================
   Aprilia & Mirda — wedding invitation
   One looping video sits behind the whole page; every section
   floats over it in white type.

   FONTS (one rule for the whole site)
   Parisienne          → names and the script word of each title
   Thornfield          → capital words of titles, full names, guest name
   Playwrite AU SA     → the opening quote
   Noto Serif Display  → numbers (countdown, date, year, times, bank numbers)
   Cormorant Garamond  → all other text
   ========================================================= */
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Parisienne"; src: url("../assets/fonts/Parisienne.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tangerine"; src: url("../assets/fonts/Tangerine.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Thornfield"; src: url("../assets/fonts/Thornfield.woff2") format("woff2"); font-display: swap; }

:root {
  --white: #FFFFFF;
  --soft: rgba(255, 255, 255, .78);
  --faint: rgba(255, 255, 255, .55);
  --line: rgba(255, 255, 255, .28);
  --glass: rgba(14, 14, 14, .38);
  --sand: #D3B592;
  --ink: #141414;
  --grey: #B3B3B3;

  --script: "Parisienne", cursive;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --caps: "Thornfield", "Cormorant Garamond", Georgia, serif;   /* to switch to a free font later: replace "Thornfield" here (e.g. with "Italiana") */
  --quote: "Playwrite AU SA", "Tangerine", cursive;
  --num: "Noto Serif Display", Georgia, serif;

  --col: 460px;
  --pad: clamp(22px, 7vw, 36px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 0 6px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #0d0d0d; }
body {
  margin: 0; color: var(--white); background: transparent;
  font: 400 19px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 4px rgba(0, 0, 0, .35);
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--num); font-weight: 300; line-height: 0; }   /* numbers inside a sentence (added by main.js) */

/* ---------- The moving background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #111 center / cover no-repeat; }
.bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg__shade { position: absolute; inset: 0; background: #000; opacity: .5; }
/* desktop: soft vignette so the centred column stays readable */
@media (min-width: 900px) {
  .bg__shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 90% at 50% 50%, transparent, rgba(0,0,0,.35)); }
}

/* ---------- Shared type ---------- */
.kicker { margin: 0; font: 400 19px/1.3 var(--serif); }
.small { margin: 0; font: 300 17px/1.6 var(--serif); letter-spacing: .01em; color: var(--soft); }
.body { margin: 0 auto 28px; max-width: 34ch; font: 400 19px/1.5 var(--serif); color: var(--white); white-space: pre-line; }
.subtitle { margin: -8px 0 10px; font: italic 400 24px/1.3 var(--serif); }

/* texts that must stay on exactly two lines (each line stays whole, like the mockup) */
.two-lines { white-space: pre; max-width: none; }

/* section titles: Parisienne word sitting on a Thornfield capital word */
.title { margin: 0 0 12px; display: flex; flex-direction: column; align-items: center; line-height: 1; text-shadow: var(--shadow); }
.title__script { position: relative; z-index: 1; font: 400 42px/1 var(--script); }
.title__caps { margin-top: -6px; font: 400 62px/1 var(--caps); text-transform: uppercase; }
/* the same gap under every title: text starts 4px higher to make up for its line spacing */
.title + p { margin-top: -4px; }
/* SAVE The DATE on one row, "The" in the middle of the capitals' height */
.title--row { flex-direction: row; justify-content: center; align-items: center; gap: 12px; flex-wrap: nowrap; }
.title--row .title__caps { margin-top: 0; font-size: clamp(44px, 14vw, 62px); }
.title--row .title__script { font-size: clamp(30px, 9.5vw, 42px); }

/* monogram (text initials, or the image from media.monogram) */
.monogram { margin: 0 0 18px; font: 400 64px/1 var(--script); display: inline-flex; gap: 4px; text-shadow: var(--shadow); }
.monogram span:last-child { transform: translateY(.28em); }
.monogram--image { display: block; text-shadow: none; }
.monogram__img { display: block; margin: 0 auto; height: 110px; width: auto; max-width: 70vw; object-fit: contain; filter: drop-shadow(0 0 6px rgba(0,0,0,.35)); }
.monogram--big { font-size: 48px; margin: 114px 0 112px; opacity: .9; }   /* between the quote and the intro: the same visible space above and below */
.monogram--big .monogram__img { height: 72px; }
.monogram--cover { display: block; margin: auto; padding: 24px 0; }   /* equal space above and below */
.monogram--cover .monogram__img { height: 92px; }

/* ---------- Glass panels ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid var(--line); border-radius: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font: 500 17px/1 var(--serif); letter-spacing: .03em; text-decoration: none; text-shadow: none;
  border: 1px solid var(--white); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--solid:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 16px; margin-top: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   COVER — everything centred on the screen, like the mockup
   ========================================================= */
.cover {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6));
  transition: opacity 1s var(--ease), visibility 1s;
}
.cover.is-open { opacity: 0; visibility: hidden; }
/* names at the top, the button at the bottom (same space to the screen edge), monogram in the middle */
.cover__inner {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--edge) + env(safe-area-inset-top)) var(--pad) calc(var(--edge) + env(safe-area-inset-bottom));
  --edge: clamp(40px, 8svh, 80px);
}
.cover__names { margin: 4px 0 0; font: 400 min(10.4vw, 45px)/1.15 var(--script); white-space: nowrap; text-shadow: var(--shadow); }
.cover__guest { margin: 0; }
.cover__to { margin: 0; font: 500 19px/1.3 var(--serif); }
.cover__guest-name { margin: 11px 0 0; font: 400 clamp(20px, 6.5vw, 31px)/1.05 var(--caps); text-transform: uppercase; letter-spacing: .01em; }
.cover .btn { margin-top: 22px; }   /* guest name sits close to the button */

/* =========================================================
   PAGE
   ========================================================= */
.page { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; transition: opacity 1.2s var(--ease) .2s; }
body.is-locked .page { opacity: 0; visibility: hidden; }   /* hidden behind the cover until it's opened */
.sec { padding: 88px var(--pad); text-align: center; }

/* Hero */
.sec--hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.hero__names { margin: 6px 0; font: 400 min(12.2vw, 60px)/1.15 var(--script); white-space: nowrap; text-shadow: var(--shadow); }
.hero__date { margin: 0; font: 600 19px/1.3 var(--serif); }
.scroll-cue { position: absolute; bottom: calc(96px + env(safe-area-inset-bottom)); width: 24px; height: 38px; border: 1px solid var(--soft); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--white); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Quote: full width so each of your lines stays one line (6 lines on phones) */
.verse { margin: 0 auto 48px; }
.verse p, .closing__quote p { margin: 0 0 14px; font: 300 min(3.65vw, 16px)/1.8 var(--quote); white-space: pre-line; }
.verse cite, .closing__quote cite { font: 700 19px/1.3 var(--serif); color: var(--grey); }   /* quote source in grey */
.intro { margin: 0 auto; max-width: none; font: 400 min(4.3vw, 19px)/1.55 var(--serif); color: var(--white); white-space: pre; }   /* your own line breaks, each line kept whole */   /* a blank line in config.js = new paragraph */

/* Bride & groom */
.portrait {
  width: min(64vw, 250px); aspect-ratio: 3 / 4; margin: 0 auto 26px;
  border-radius: 50%; overflow: hidden;
  border: 0; padding: 0; background: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.person__name { margin: 0 0 12px; font: 400 clamp(26px, 8.6vw, 36px)/1.1 var(--caps); text-transform: uppercase; letter-spacing: .01em; }
.person__label { margin: 0; font: 400 19px/1.4 var(--serif); }
.person__parents { margin: 2px auto 0; max-width: 30ch; font: 700 19px/1.4 var(--serif); }

/* Countdown */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 30px; }
.cd__unit { display: flex; flex-direction: column; align-items: center; padding: 16px 0 12px; }
.cd__unit + .cd__unit { border-left: 1px solid var(--line); }
.cd__num { font: 300 clamp(40px, 12vw, 52px)/1 var(--num); font-variant-numeric: lining-nums tabular-nums; }
.cd__lbl { margin-top: 8px; font: 400 16px/1.2 var(--serif); letter-spacing: .02em; }
.cd__done { font: italic 400 22px/1.4 var(--serif); }

/* Save the Date card: Akad + Resepsi in one card */
.events { display: grid; gap: 22px; margin-bottom: 22px; }
.event { padding: 34px 22px 28px; }
.event__date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 0 auto 6px; max-width: 280px; }
.event__date span { font: 400 18px/1.2 var(--serif); padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event__date span:last-child { font-family: var(--num); font-weight: 300; }   /* the year */
.event__date .event__day-num { font: 300 64px/1 var(--num); border: 0; padding: 0; }
.event__month { margin: 4px 0 14px; font: 400 22px/1 var(--serif); }
.event__sessions { margin: 6px 0 26px; display: grid; }
.event__session { padding: 16px 0; }
.event__session + .event__session { border-top: 1px solid var(--line); }   /* one line, between Akad and Resepsi */
.event__name { margin: 0; font: 700 24px/1.05 var(--serif); text-transform: uppercase; letter-spacing: .12em; }
.event__time { margin: 4px 0 0; font: 300 18px/1.05 var(--num); letter-spacing: .04em; }
.event__at { font-weight: 400; line-height: 1.3; }
.event__venue { margin: 4px 0 2px; font: 400 24px/1.25 var(--serif); }
.event__addr { margin: 0 auto 22px; max-width: 28ch; font-size: 17px; color: var(--soft); }
.event__btns { display: flex; gap: 8px; justify-content: center; }   /* both buttons on one line */
.event__btns .btn { padding: 0 min(4vw, 22px); font-size: min(4.1vw, 17px); white-space: nowrap; }
.map { height: 260px; overflow: hidden; padding: 6px; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; display: block; }

/* Dress code: note under the title, then two rows of four colours */
.dress__note { margin: 0 auto 30px; }   /* same size as the other body text */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 6px; margin: 0 0 28px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swatch__chip { width: min(15vw, 60px); height: min(15vw, 60px); border-radius: 50%; }
.swatch__name { font: 400 min(3.9vw, 16px)/1.2 var(--serif); white-space: nowrap; }

/* Wedding gift */
.gift__note { font-size: min(4.3vw, 19px); }
.banks { display: grid; gap: 16px; margin: 0 0 18px; }
.bank { padding: 26px 22px; text-align: center; }
.bank__name { margin: 0 0 10px; font: 600 17px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.bank__num { margin: 0; font: 300 28px/1.2 var(--num); letter-spacing: .04em; font-variant-numeric: lining-nums; }
.bank__holder { margin: 4px 0 16px; font-size: 17px; color: var(--soft); }
.send { padding: 26px 22px; }
.send__title { margin: 0 0 6px; font: italic 400 22px/1.3 var(--serif); }
.send__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* RSVP */
.rsvp__note { margin: 0 auto 20px; line-height: 1.35; white-space: normal; }   /* sentence, then the date in bold on its own line */
.rsvp__note strong { font-weight: 700; }
.form { padding: 28px 22px; text-align: left; text-shadow: none; }
.field { margin: 0 0 22px; padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font: 500 17px/1.4 var(--serif); letter-spacing: .01em; }
.field__note { margin: -4px 0 12px; font: 400 17px/1.5 var(--serif); letter-spacing: .01em; color: var(--faint); }   /* note under "Will you attend?" */
.opt { color: var(--faint); }
.field input[type="text"], .field textarea, .stepper input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  font: 400 18px/1.4 var(--serif); color: var(--white);
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,.16); }
.field.is-invalid input[type="text"] { border-color: #FFB4A2; }
.field__err { margin: 6px 0 0; font: 400 17px/1.4 var(--serif); letter-spacing: .01em; color: #FFB4A2; }
.choice { display: grid; gap: 10px; }
.choice__opt { position: relative; margin: 0 !important; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; }
.choice__opt > span {
  display: block; padding: 13px 15px 13px 44px; border-radius: 12px; position: relative;
  font: 400 18px/1.3 var(--serif); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.choice__opt > span::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; border: 1px solid var(--white);
}
.choice__opt--tick > span::before { border-radius: 4px; }   /* Akad / Resepsi tick boxes are square */
.choice__opt input:checked + span { background: rgba(255,255,255,.18); border-color: var(--white); }
.choice__opt input:checked + span::before { background: var(--white); box-shadow: inset 0 0 0 3px #555; }
.choice__opt input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); font-size: 22px; cursor: pointer; }
.stepper__btn:hover { background: rgba(255,255,255,.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; margin: 14px 0 0; text-align: center; font: 400 17px/1.5 var(--serif); letter-spacing: .01em; }
.form__status.is-err { color: #FFB4A2; }

/* Guest book */
#wishCount { margin: -4px 0 18px; font: 400 19px/1.4 var(--serif); letter-spacing: 0; color: var(--white); }
.wishes-box { padding: 8px 20px; text-align: left; }
.wishes { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.wishes:empty { display: none; }
.wish { padding: 18px 0; border-top: 1px solid var(--line); }
.wish:first-child { border-top: 0; }
.wish__name { margin: 0 0 4px; display: flex; justify-content: space-between; gap: 12px; font: 600 17px/1.3 var(--serif); letter-spacing: .01em; }
.wish__when { font-weight: 400; font-size: 15px; color: var(--faint); white-space: nowrap; }
.wish__msg { margin: 0; font: italic 400 19px/1.5 var(--serif); overflow-wrap: anywhere; color: var(--soft); }
.wish--new { animation: wishIn 1s var(--ease); }
@keyframes wishIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wishes__empty { margin: 14px 0; text-align: center; font-size: 17px; color: var(--soft); }

/* Gallery: designed video, collage image, or grid of photos (whichever config.js uses) */
#gallery { padding-top: 40px; }   /* no title: a little less space above */
.video { margin: 0 0 10px; overflow: hidden; padding: 6px; aspect-ratio: 9 / 16; max-height: 76vh; }
.video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 16px; display: block; }
.video--wide { aspect-ratio: 16 / 9; }
#videoWrap { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 16px; max-height: none; }
#videoWrap video { border-radius: 16px; }
.gallery-collage { display: block; width: 100%; height: auto; margin: 0 auto 10px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; background: rgba(255,255,255,.08); }
.gallery button:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; cursor: pointer; }

/* Photo carousel (media.coverflow) */
.cf { margin: 0 calc(var(--pad) * -1) 8px; --cfw: min(59.8vw, 299px); }   /* centre photo width; 3 photos fit fully */
.cf__track {
  position: relative; height: calc(var(--cfw) * 4 / 3 + 72px); overflow: hidden;   /* room above/below so the shadow is never clipped */
  touch-action: pan-y;                      /* vertical page scroll still works, sideways = swipe */
  cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
}
.cf__track:active { cursor: grabbing; }
.cf__track:focus-visible { outline: 2px solid var(--sand); outline-offset: -4px; border-radius: 18px; }
.cf__item {
  position: absolute; left: 50%; top: 50%; width: var(--cfw); aspect-ratio: 3 / 4;
  padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06);
  box-shadow: none; transition: box-shadow .4s var(--ease); cursor: pointer; will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.cf__item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* dark layer over the side photos (strength set by the script); the centre photo stays clear */
.cf__item::after { content: ""; position: absolute; inset: 0; background: #0a0a0a; opacity: var(--dim, 0); pointer-events: none; }
.cf__item.is-centre { cursor: zoom-in; box-shadow: 0 8px 24px rgba(0,0,0,.28); }   /* shadow on the centre photo only */
.cf__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 0; }   /* the 36px under the photo comes from the track's own room */
.cf__dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; max-width: 70%; }
.cf__dot { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.cf__dot.is-on { width: 14px; background: var(--white); }

/* A little story: one paragraph per slide (config.js → story) */
.story__sub { margin: 0 0 30px; font: italic 300 22px/1.3 var(--serif); color: var(--soft); }
.story__body {
  position: relative; overflow: hidden; margin: 0 calc(var(--pad) * -1);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none;
}
.story__body:active { cursor: grabbing; }
.story__body:focus-visible { outline: 2px solid var(--sand); outline-offset: -2px; border-radius: 16px; }
.slide { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; padding: 0 var(--pad); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity; }   /* shorter parts sit in the middle */
.slide__icon { display: block; width: 28px; height: 28px; margin: 0 auto 14px; color: var(--grey); }
.slide__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.slide__p { margin: 0 auto; max-width: 31ch; font: 400 20px/1.6 var(--serif); color: var(--white); }
.slide--last .slide__p { font-style: italic; }
.story__dots { display: flex; justify-content: center; gap: 5px; margin-top: 26px; }
.slide__dot { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.slide__dot.is-on { width: 14px; background: var(--white); }

/* Thank you: message, a gap, then the sign-off */
.sec--closing { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.closing__msg { margin-bottom: 0; font-size: min(4.7vw, 19px); line-height: 1.35; }
/* message, sign-off, then the closing quote: the same space between them as the opening quote has around the monogram */
.closing__quote { margin: 111px 0 0; }
.closing__quote p { margin-bottom: 4px; font-size: min(3.4vw, 15.5px); line-height: 1.4; white-space: nowrap; }   /* one line, the source right below */
.closing__sign { margin-top: 113px; }
.closing__line { margin: 0; font: 400 min(4.7vw, 19px)/1.4 var(--serif); color: var(--white); }   /* same size as the thank-you message */
.closing__names { margin: 0 0 5px; font: 400 min(12.2vw, 60px)/1.1 var(--script); white-space: nowrap; text-shadow: var(--shadow); }
.credits { margin-top: 72px; }   /* small print at the very bottom */
.credits p { margin: 0; font: 400 14px/1.6 var(--serif); color: var(--grey); }

/* ---------- Bottom dock ---------- */
.dock {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(14,14,14,.45); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dock a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--soft); transition: background .25s, color .25s; }
.dock a.is-active { background: var(--white); color: var(--ink); }
.dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Music */
.music {
  position: fixed; z-index: 41; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(14,14,14,.45); border: 1px solid var(--line); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music .ico-off { display: none; }
.music[aria-pressed="false"] .ico-off { display: inline; }
.music[aria-pressed="true"] svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .music { right: 28px; bottom: 28px; } }

/* Toast ("Copied") */
.toast {
  position: fixed; left: 50%; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; text-shadow: none;
  background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 999px; font: 500 16px/1.3 var(--serif);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
