/* ============================================
   TOKENS — edit these to change the whole look
   ============================================ */
:root {
  --white:       #FAF9F6;
  --grey-light:  #E9E6E1;
  --grey:        #9C978F;
  --charcoal:    #2A2724;
  --blush:       #E3C1BE;
  --burgundy:    #6E1423;
  --burgundy-deep: #4A0E18;

  --font-body:  "Arimo", "Helvetica Neue", Helvetica, Arial, sans-serif;  /* all text on the site */

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 6vw;
  pointer-events: none; /* only the trigger itself is clickable */
}

.nav__trigger {
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__trigger:hover { opacity: 0.75; }
.nav__trigger[aria-expanded="true"] { transform: scale(0.94); }
.nav__trigger-text {
  display: block;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  transition: color 0.6s ease;
}
/* linked to the pinned-scroll phase on the Our Story page (see script.js) */
body.phase-storyIntro .nav__trigger-text,
body.phase-chapter1 .nav__trigger-text { color: #c8c7c6; }
/* linked to which page is active (see script.js) */
body.page-gallery .nav__trigger-text,
body.page-schedule .nav__trigger-text,
body.page-travel .nav__trigger-text,
body.page-registry .nav__trigger-text,
body.page-qa .nav__trigger-text { color: var(--charcoal); }

.nav__menu {
  position: fixed;
  inset: 0;
  pointer-events: none; /* re-enabled below when open, so it can't block the page while hidden */
  background: rgba(250, 249, 246, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 5.5rem;
  gap: 0.1rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.65,0,.35,1);
  z-index: 90;
}
.nav__menu.is-open { transform: translateY(0); pointer-events: auto; }
.nav__close {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.nav__close:hover { opacity: 1; }
.nav__lang {
  display: block;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  opacity: 0.7;
}
.nav__menu a {
  font-family: var(--font-body);
  font-size: clamp(2.7rem, 8.5vw, 4.1rem);
  line-height: 1.05;
  color: var(--charcoal);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.nav__menu a:hover, .nav__menu a.is-active { opacity: 1; color: var(--burgundy); }
.nav__menu-date {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--burgundy);
}
@media (max-width: 480px) {
  /* 6 menu items at full size can feel cramped on small phones */
  .nav__menu { gap: 0.25rem; }
  .nav__menu a { font-size: clamp(2.1rem, 9vw, 2.9rem); }
}

/* ============================================
   PAGES / TRANSITIONS
   ============================================ */
#app { position: relative; }

.page {
  display: none;
  min-height: 100vh;
  padding: 120px 6vw 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
}
#story.page { position: relative; padding-top: 0; }
.page.is-active {
  display: block;
  animation: pageIn 0.6s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-head { margin-bottom: 3.5rem; }
.section-head--center { text-align: center; }

/* ============================================
   REGISTRY
   ============================================ */
.registry {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.registry__photo {
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  width: min(15vw, 170px);
  z-index: 1;
}
.registry__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}
.registry__content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 0 6vw;
}
.registry__content h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  margin: 0 0 2rem;
  color: var(--charcoal);
}
.registry__content p {
  margin: 0 0 1.3rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.registry__link {
  display: inline-block;
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.registry__link:hover { color: var(--burgundy-deep); }

@media (max-width: 860px) {
  .registry { flex-direction: column; padding-top: 2rem; }
  .registry__photo {
    position: relative;
    left: auto; top: auto;
    transform: rotate(-5deg);
    width: min(32vw, 160px);
    margin-bottom: 2rem;
  }
  .registry__content { padding: 0 6vw; }
}

/* gallery page is a full-bleed stage, not the standard padded layout */
#gallery.page { padding-top: 0; padding-bottom: 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin: 0 0 0.6rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

/* ============================================
   PINNED SCROLL — monogram + text stay fixed in place
   while the background morphs behind them, chapter by chapter
   ============================================ */

/* the tall scroll track: 8 phases (intro photo + story-intro letter +
   chapter1 + chapter1b + chapter2 + chapter2b + chapters 3-4), each one
   normally 200vh (2 screens) of scrolling — except chapter2b, which is
   weighted to take twice as long (see PHASE_WEIGHTS in script.js), so
   the total is 11 "shares" × 200vh (10 phases + 1 extra share for
   chapter2b). If you add/remove a slide or change any phase's weight,
   update PHASES/PHASE_WEIGHTS in script.js AND recalculate this height
   to match (sum of all weights × 200vh). */
.scrollytelling {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* full-bleed, breaks out of the max-width column */
  height: 2200vh;
}

.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--white);
}

/* rotating full-bleed photo background — visible during the intro only */
.pin__bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.9s ease;
}
.pin.is-storyIntro .pin__bg-photo,
.pin.is-chapter1 .pin__bg-photo,
.pin.is-chapter1b .pin__bg-photo,
.pin.is-chapter2 .pin__bg-photo,
.pin.is-chapter2b .pin__bg-photo,
.pin.is-chapter3 .pin__bg-photo,
.pin.is-chapter4 .pin__bg-photo,
.pin.is-chapter4b .pin__bg-photo,
.pin.is-chapter4c .pin__bg-photo { opacity: 0; }

.pin__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* override per-image with an inline style */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pin__bg-img.is-active { opacity: 1; }

/* solid color layer — fades in for each chapter, replacing the photo */
.pin__bg-color {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-color: var(--white);
  transition: opacity 0.9s ease, background-color 0.9s ease;
}
.pin.is-storyIntro .pin__bg-color { opacity: 1; background-color: #FFFFFF; }
.pin.is-chapter1 .pin__bg-color { opacity: 1; background-color: #efefef; }
.pin.is-chapter1b .pin__bg-color { opacity: 1; background-color: #e8e5dd; }
.pin.is-chapter2 .pin__bg-color { opacity: 1; background-color: #737373; }
.pin.is-chapter2b .pin__bg-color { opacity: 1; background-color: #414141; }
.pin.is-chapter3 .pin__bg-color { opacity: 1; background-color: #becfd3; }
.pin.is-chapter4 .pin__bg-color,
.pin.is-chapter4b .pin__bg-color,
.pin.is-chapter4c .pin__bg-color { opacity: 1; background-color: var(--burgundy); }

.pin__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26,24,22,0.35) 0%,
    rgba(26,24,22,0.12) 30%,
    rgba(26,24,22,0.12) 60%,
    rgba(26,24,22,0.55) 100%
  );
  opacity: 1;
  transition: opacity 0.9s ease;
}
.pin.is-storyIntro .pin__scrim,
.pin.is-chapter1 .pin__scrim,
.pin.is-chapter1b .pin__scrim,
.pin.is-chapter2 .pin__scrim,
.pin.is-chapter2b .pin__scrim,
.pin.is-chapter3 .pin__scrim,
.pin.is-chapter4 .pin__scrim,
.pin.is-chapter4b .pin__scrim,
.pin.is-chapter4c .pin__scrim { opacity: 0; }

/* big monogram, dead center, stays put while everything morphs around it.
   Uses the mask technique: the PNG's shape becomes a mask, filled with
   background-color, so JS can set it to any exact color per phase. */
.pin__monogram {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(72vw, 820px);
  aspect-ratio: 1193 / 532;
  background-color: var(--white);
  -webkit-mask-image: url('images/monogram.png');
  mask-image: url('images/monogram.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
  transition: background-color 0.9s ease, filter 0.9s ease;
}
.pin.is-storyIntro .pin__monogram,
.pin.is-chapter1 .pin__monogram {
  background-color: #c8c7c6;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.1));
}

/* the new "letter to guests" slide — polaroid + paragraph rise upward
   as you scroll through this one phase, everything else fades in/out */
.pin__polaroid,
.pin__intro-text,
.pin__intro-date {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.pin.is-storyIntro #pinPolaroid,
.pin.is-storyIntro #pinIntroText,
.pin.is-storyIntro #pinIntroDate,
.pin.is-chapter2 #pinCh2Image {
  opacity: 1;
  pointer-events: auto;
}

.pin__polaroid {
  top: 50%; left: 50%;
  width: min(26vw, 300px);
  /* base transform (centering + tilt); JS appends a translateY for the
     scroll-driven rise effect on top of this */
  transform: translate(-50%, -50%) rotate(-3deg);
}
.pin__polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.pin__intro-text {
  left: 6vw;
  bottom: 2.6rem;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  color: var(--charcoal);
}

.pin__intro-date {
  left: 0; right: 0;
  bottom: 2.6rem;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #c8c7c6;
}

@media (max-width: 720px) {
  .pin__polaroid { width: min(46vw, 260px); top: 44%; }
  .pin__intro-text { left: 6vw; right: 6vw; max-width: none; bottom: 5.2rem; text-align: center; }
  .pin__intro-date { bottom: 2.4rem; }
}

/* Chapter One / Chapter Three — reusable "pin__ch-*" classes: top-corner
   title, bottom paragraph, bottom-center date. Position/color per chapter
   is set via modifier classes and .pin.is-chapterN overrides below.
   NOTE: visibility is scoped by element ID (not the shared class) below,
   since chapter1 and chapter3 share the same styling classes but need to
   show/hide independently. */
.pin__ch-title,
.pin__ch1-image,
.pin__ch-text,
.pin__ch-date {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.pin.is-chapter1 #pinCh1Title,
.pin.is-chapter1 #pinCh1Image,
.pin.is-chapter1 #pinCh1Text,
.pin.is-chapter1 #pinCh1Date,
.pin.is-chapter1b #pinCh1bTitle,
.pin.is-chapter1b #pinCh1bImage,
.pin.is-chapter1b #pinCh1bText,
.pin.is-chapter1b #pinCh1bDate,
.pin.is-chapter2 #pinCh2Title,
.pin.is-chapter2 #pinCh2Text,
.pin.is-chapter2 #pinCh2Date,
.pin.is-chapter2b #pinCh2bTitle,
.pin.is-chapter2b #pinCh2bImage,
.pin.is-chapter2b #pinCh2bText,
.pin.is-chapter2b #pinCh2bDate,
.pin.is-chapter3 #pinCh3Title,
.pin.is-chapter3 #pinCh3Text,
.pin.is-chapter3 #pinCh3Date,
.pin.is-chapter4 #pinCh4Title,
.pin.is-chapter4 #pinCh4Image,
.pin.is-chapter4 #pinCh4Text,
.pin.is-chapter4 #pinCh4Date,
.pin.is-chapter4b #pinCh4bTitle,
.pin.is-chapter4b #pinCh4bVideo,
.pin.is-chapter4b #pinCh4bText,
.pin.is-chapter4b #pinCh4bDate,
.pin.is-chapter4c #pinCh4cTitle,
.pin.is-chapter4c #pinCh4cVideo,
.pin.is-chapter4c #pinCh4cText,
.pin.is-chapter4c #pinCh4cDate {
  opacity: 1;
  pointer-events: auto;
}

.pin__ch-title {
  top: 5.5rem;
  color: var(--charcoal);
}
.pin__ch-title--left { left: 6vw; text-align: left; }
.pin__ch-title--right { right: 6vw; text-align: right; }
.pin__ch-title-bold {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  margin: 0;
}
.pin__ch-title-sub {
  font-size: 1.05rem;
  margin: 0;
}

.pin__ch1-image {
  top: 50%; left: 50%;
  width: min(20vw, 220px);
  /* base transform (centering); JS appends a translateY for the
     scroll-driven rise effect on top of this */
  transform: translate(-50%, -50%);
}
/* the "first conversation" slide's screenshot — 30% bigger than the
   base .pin__ch1-image size, since it shares that class with the
   phone-screenshot slide but needed its own size */
#pinCh1bImage {
  width: min(26vw, 286px);
}
.pin__ch1-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Chapter Two, slide two — Empire State image rises like the others;
   once it nears center, the hearts fade in above it and the two rise
   together for the rest of the scroll. */
.pin__ch2b-image {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width: min(30.8vw, 364px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* base transform (centering); JS appends a translateY for the
     scroll-driven rise effect on top of this */
  transform: translate(-50%, -50%);
}
.pin__ch2b-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pin__ch2b-hearts {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width: min(18.2vw, 210px);
  opacity: 0; /* stays 0 until JS adds .is-revealed, once the building nears center */
  pointer-events: none;
  transition: opacity 0.6s ease;
  /* sits above the building image; JS appends the same rise transform
     as the building so the two move together once revealed */
  transform: translate(-50%, calc(-50% - 210px));
}
.pin__ch2b-hearts img {
  width: 100%;
  height: auto;
  display: block;
}
.pin.is-chapter2b #pinCh2bHearts.is-revealed { opacity: 1; }

/* Chapter Four, slide one — Africa map rises like the others; a heart
   marking Cape Town is nested INSIDE it, so it automatically moves
   together with the map once revealed (no separate transform needed). */
.pin__ch4-image {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width: min(22vw, 260px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* base transform (centering); JS appends a translateY for the
     scroll-driven rise effect on top of this */
  transform: translate(-50%, -50%);
}
.pin__ch4-image img { width: 100%; height: auto; display: block; }
.pin__ch4-heart {
  position: absolute;
  left: 46%;
  bottom: -2%;
  width: 16%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pin__ch4-heart img { width: 100%; height: auto; display: block; }
.pin.is-chapter4 #pinCh4Heart.is-revealed { opacity: 1; }

/* Chapter Four, slides two + three — videos share the same centered,
   rising treatment as the photos on the other slides */
.pin__ch4-video {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width: min(24vw, 280px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
}
.pin__ch4-video video,
.pin__ch4-video img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
/* the proposal slide's GIF replaces a video, and should read as the
   big, central moment of the whole chapter */
.pin__ch4-video--gif { width: min(38vw, 440px); }

@media (max-width: 720px) {
  .pin__ch4-image { width: min(50.4vw, 276px); }
  .pin__ch4-video { width: min(48vw, 260px); }
  .pin__ch4-video--gif { width: min(70vw, 340px); }
}

@media (max-width: 720px) {
  .pin__ch2b-image { width: min(56vw, 308px); }
  .pin__ch2b-hearts { width: min(33.6vw, 182px); transform: translate(-50%, calc(-50% - 130px)); }
}

.pin__ch-text {
  bottom: 2.6rem;
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
}
.pin__ch-text--right { right: 6vw; text-align: right; }
.pin__ch-text--left { left: 6vw; text-align: left; }
.pin__ch-text--right-mid {
  right: 6vw;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.pin__ch-date {
  left: 0; right: 0;
  bottom: 2.6rem;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #c8c7c6; /* chapter1's color; chapter3 overrides to white below */
}
.pin.is-chapter1b .pin__ch-date,
.pin.is-chapter2 .pin__ch-date,
.pin.is-chapter2b .pin__ch-date,
.pin.is-chapter3 .pin__ch-date,
.pin.is-chapter4 .pin__ch-date,
.pin.is-chapter4b .pin__ch-date,
.pin.is-chapter4c .pin__ch-date { color: var(--white); }

/* Chapter Four's title + paragraph are white on all three slides
   (its burgundy background is dark enough to need it) */
#pinCh4Title, #pinCh4Text,
#pinCh4bTitle, #pinCh4bText,
#pinCh4cTitle, #pinCh4cText { color: var(--white); }

/* chapter2b's title + paragraph are white (its background is dark),
   unlike chapter2's slide one which keeps them black */
#pinCh2bTitle,
#pinCh2bText { color: var(--white); }

@media (max-width: 720px) {
  .pin__ch-title--left, .pin__ch-title--right { left: 6vw; right: 6vw; text-align: center; }
  .pin__ch1-image { width: min(38vw, 200px); top: 42%; }
  #pinCh1bImage { width: min(49vw, 260px); }
  .pin__ch-text--right, .pin__ch-text--left { left: 6vw; right: 6vw; max-width: none; text-align: center; bottom: 5.2rem; }
  .pin__ch-text--right-mid { left: 6vw; right: 6vw; top: auto; bottom: 5.2rem; transform: none; text-align: center; }
  .pin__ch-date { bottom: 2.4rem; }
  /* Chapter Four's paragraph, specifically — lower and a touch smaller,
     to clear the bigger Africa map above it */
  #pinCh4Text { bottom: 3.8rem; font-size: 0.8rem; }
}

/* Chapter Three — a scattered set of "artifact" photos. Each one is a
   black silhouette until you hover (or tap) it, then it reveals in full
   color; all of them also rise upward as you scroll, like other pages. */
.pin__artifacts {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.pin.is-chapter3 .pin__artifacts { opacity: 1; pointer-events: auto; }

.pin__artifact {
  position: absolute;
  cursor: pointer;
}
.pin__artifact img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0);
  opacity: 0.55;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.pin__artifact:hover img,
.pin__artifact:focus-visible img {
  filter: brightness(1);
  opacity: 1;
}

.pin__artifact--plane   { top: 22%; left: 9%;   width: min(27.2vw, 352px); transform: rotate(-4deg); }
.pin__artifact--cube    { top: 12%; left: 50%;  width: min(17.6vw, 240px); transform: translateX(-50%); }
.pin__artifact--mask    { top: 50%; left: 11%;  width: min(20.8vw, 272px); transform: rotate(-6deg); }
.pin__artifact--phone   { top: 56%; left: 50%;  width: min(16vw, 216px); transform: translateX(-50%); }
.pin__artifact--bouquet { top: 26%; right: 11%; width: min(22.4vw, 296px); }
.pin__artifact--bus     { top: 63%; right: 6%;  width: min(27.2vw, 352px); }

@media (max-width: 720px) {
  .pin__artifact--plane   { top: 32%; left: 4%;  width: 54.4vw; }
  .pin__artifact--cube    { top: 20%; left: 50%; width: 35.2vw; }
  .pin__artifact--mask    { top: 40%; left: 4%;  width: 41.6vw; }
  .pin__artifact--phone   { top: 53%; left: 12%; width: 32vw; transform: none; }
  .pin__artifact--bouquet { top: 34%; right: 8%; width: 44.8vw; }
  .pin__artifact--bus     { top: 53%; right: 2%; width: 54.4vw; }
}
@media (hover: none) {
  /* no hover on touch devices — show artifacts at a visible dim state
     by default rather than needing an unreachable hover */
  .pin__artifact img { opacity: 0.85; }
}

/* text block — always in the same spot, content swaps per phase */
.pin__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw 2.6rem;
  text-align: center;
  color: var(--white);
  transition: color 0.9s ease;
}
.pin.is-chapter1 .pin__content,
.pin.is-chapter3 .pin__content { color: var(--charcoal); }

.pin__block {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pin__block.is-active { display: block; opacity: 1; }

.pin__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.pin__name { font-size: clamp(1rem, 2.2vw, 1.3rem); letter-spacing: 0.04em; }
.pin__name:first-child { text-align: left; }
.pin__name:last-child { text-align: right; }

.pin__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--blush);
  margin: 0 0 0.5rem;
  transition: color 0.9s ease;
}
.pin.is-chapter1 .pin__label,
.pin.is-chapter3 .pin__label { color: var(--burgundy-deep); }

.pin__title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 0.7rem;
}
.pin__text {
  max-width: 56ch;
  margin: 0 auto 0.9rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.pin__date {
  font-size: 1.275rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: bob 2.2s ease-in-out infinite;
}
.pin:not(.is-intro) .hero__scroll { opacity: 0; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

@media (max-width: 720px) {
  .pin__monogram { width: min(80vw, 460px); }
  .pin__row { position: static; } /* let the names position independently below */
  .pin__name {
    position: absolute;
    bottom: 29vh; /* a bit lower than before, still close under the monogram */
  }
  .pin__name:first-child { left: 6vw; text-align: left; }
  .pin__name:last-child { right: 6vw; text-align: right; }
  .pin__date {
    position: absolute;
    left: 0; right: 0;
    bottom: 2.6rem; /* matches where the date sits on every other slide */
    text-align: center;
  }
  .pin__content { padding-bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pin__bg-photo, .pin__bg-color, .pin__scrim, .pin__monogram, .pin__content, .pin__label { transition: none; }
}

/* welcome note — sits just below the pinned scroll section, back on normal page background */
/* sits inside the pinned hero, between the monogram and the Pablo/date/
   Naïka row at the bottom — inherits pin__content's color (white by
   default, or dark automatically on lighter chapters) */
.pin__intro-note {
  position: absolute;
  left: 0; right: 0;
  bottom: 6.5rem;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
}
@media (max-width: 720px) {
  /* sits between the names (up near the monogram) and the date (down at
     the bottom, matching the other slides), clear of both */
  .pin__intro-note { bottom: 6rem; }
}

/* ============================================
   OUR STORY (closing line, after the pinned scroll)
   ============================================ */
.story { margin-top: 6rem; }

/* ============================================
   STORY FOOTER — final full-bleed CTA, after all the chapters
   ============================================ */
.story-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* full-bleed, breaks out of the max-width column */
  min-height: 100vh;
  background-color: #f8acc5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-footer__mono {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: min(70vw, 900px);
  aspect-ratio: 1193 / 532;
  background-color: #e99eb5;
  -webkit-mask-image: url('images/monogram.png');
  mask-image: url('images/monogram.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.story-footer__note {
  position: relative;
  z-index: 1;
  display: block;
  width: min(24vw, 300px);
  transition: transform 0.3s ease;
}
.story-footer__note:hover { transform: scale(1.03); }
.story-footer__note img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.18));
}
.story-footer__date {
  position: absolute;
  left: 0; right: 0;
  bottom: 2.6rem;
  z-index: 1;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

@media (max-width: 720px) {
  .story-footer__note { width: min(52vw, 260px); }
}


/* scroll-reveal: fades/slides content in as it enters view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.story__closing {
  border-top: 1px solid var(--grey-light);
  padding-top: 2.5rem;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--burgundy-deep);
}

/* ============================================
   GALLERY — big monogram behind a single click-through photo
   ============================================ */
.gallery-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gallery-mono {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 900px);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}
.gallery-mono-img {
  width: 100%;
  height: auto;
  opacity: 0.6;
  display: block;
  filter: brightness(0); /* renders the (naturally grey) monogram as pure black */
}

.gallery-photo {
  position: relative;
  z-index: 1;
  width: min(420px, 78vw);
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 40px 80px -30px rgba(42,39,36,0.4);
}
.gallery-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-photo__img.is-active { opacity: 1; }


.gallery-counter {
  position: relative; z-index: 1;
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--burgundy);
}
.gallery-hint {
  position: relative; z-index: 1;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--grey);
}

.gallery-bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: 2.2rem;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--charcoal);
}
.gallery-bottom-name {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.04em;
}
.gallery-bottom-name:first-child { text-align: left; }
.gallery-bottom-name:last-child { text-align: right; }
.gallery-bottom-date {
  font-size: 1.275rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .gallery-bottom {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "nameLeft nameRight" "date date";
    row-gap: 0.4rem;
    column-gap: 0.5rem;
    bottom: 1.4rem;
  }
  .gallery-bottom-name:first-child { grid-area: nameLeft; text-align: left; }
  .gallery-bottom-name:last-child { grid-area: nameRight; text-align: right; }
  .gallery-bottom-date { grid-area: date; text-align: center; }
}

/* ============================================
   SCHEDULE
   ============================================ */
.schedule { max-width: 60ch; margin: 0 auto; text-align: center; }
.schedule__day { margin-bottom: 3rem; }
.schedule__day h3 {
  font-size: 1.4rem;
  color: var(--burgundy-deep);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--grey-light);
}
.schedule__item {
  padding: 1rem 0;
}
.schedule__time {
  font-size: 0.85rem;
  color: var(--grey);
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
}
.schedule__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}
.schedule__desc { margin: 0 auto; color: var(--grey); max-width: 50ch; }

/* ============================================
   TRAVEL
   ============================================ */

/* venue block */
.venue {
  margin-bottom: 4.5rem;
}
.venue__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}
.venue__image img { width: 100%; height: 100%; object-fit: cover; }
.venue__info h3 {
  font-size: 1.8rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.4rem;
}
.venue__address { color: var(--grey); margin: 0 0 1.2rem; }

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
  color: var(--burgundy);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { background: var(--burgundy); color: var(--white); }

/* shared block heading style, used by "Where to Stay" and "Explore the Area" */
.travel-block { margin-bottom: 5rem; text-align: center; }
.travel-block__title {
  font-size: 1.7rem;
  color: var(--burgundy-deep);
  margin-bottom: 0.5rem;
}
.travel-block__intro {
  color: var(--grey);
  max-width: 56ch;
  margin: 0 auto 2.2rem;
}

/* hotel cards */
.hotels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left; /* the block above is centered, but card content stays left-aligned */
}
.hotel-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hotel-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
}
.hotel-card__meta {
  font-size: 0.8rem;
  color: var(--burgundy);
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}
.hotel-card p:not(.hotel-card__meta) {
  color: var(--charcoal);
  font-size: 0.92rem;
  margin: 0 0 0.7rem;
}

/* practical info grid (getting there / around / what to pack) */
.travel__grid--practical {
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
  padding: 3rem 0;
  margin-bottom: 5rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.travel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4vw;
}
.travel__block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--burgundy-deep);
}
.travel__block p { color: var(--charcoal); margin: 0 0 0.6rem; max-width: 44ch; }
.link-underline {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--burgundy-deep); border-color: var(--burgundy-deep); }

/* explore the area */
.explore { text-align: center; }
.explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left; /* the block above is centered, but card content stays left-aligned */
}
.explore-card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.explore-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}
.explore-card:hover .explore-card__image img { transform: scale(1.05); }
.explore-card .explore-card__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin: 0 0 0.3rem;
}
.explore-card h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
}
.explore-card p { color: var(--grey); font-size: 0.9rem; margin: 0; }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 70ch; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--grey-light); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.4rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--charcoal);
  text-align: left;
}
.faq__icon {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--burgundy);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__a p { margin: 0 0 1.4rem; color: var(--grey); max-width: 55ch; }
.faq__a ul { margin: 0 0 1.4rem; padding-left: 1.2rem; color: var(--grey); max-width: 55ch; }
.faq__a li { margin-bottom: 0.4rem; }
.faq__a a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.faq__a a:hover { color: var(--burgundy-deep); }
.faq__item.is-open .faq__a { max-height: 700px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 6rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-light);
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
}
.footer__vine { width: 120px; color: var(--blush); margin: 0 auto 1rem; display: block; }

/* ============================================
   TILT — subtle cursor-reactive image interaction
   ============================================ */
.gallery-photo,
.venue__image,
.hotel-card__image,
.explore-card__image {
  transform-style: preserve-3d;
  perspective: 800px;
}
.gallery-photo__img,
.venue__image img,
.hotel-card__image img,
.explore-card__image img {
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1), opacity 0.5s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo__img,
  .venue__image img,
  .hotel-card__image img,
  .explore-card__image img { transition: opacity 0.5s ease; }
}
@media (hover: none) {
  .gallery-photo__img,
  .venue__image img,
  .hotel-card__image img,
  .explore-card__image img { transform: none !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .travel__grid,
  .travel__grid--practical,
  .hotels,
  .explore__grid { grid-template-columns: 1fr; }
  .page { padding: 100px 6vw 80px; }
}
