/* ============================================================
   Henri & Flavia — Save the Date
   Standalone site. Shares no navigation with the invitation.
   ============================================================ */

:root {
  /* Palette sampled from the printed save-the-date, lifted lighter and
     warmer for screen: yellow cream ground, olive green, baby blue hints.
     Every text colour below is checked against WCAG AA on cream. */
  --cream:      #FBF6E9;   /* page ground, warm yellow cream */
  --cream-deep: #F4ECD8;   /* alternating sections */
  --stone:      #DEDDD3;
  --sand:       #EADFC6;   /* darker cream, for the Archie module */   /* the print piece's own ground */
  --ink:        #3A3B30;   /* near black olive, taken from the monogram */
  --ink-soft:   #55563F;
  --ink-faint:  #6F6B54;   /* 4.98:1 on cream */
  --olive:      #5A6340;   /* the engraving ink */
  --olive-deep: #414830;
  --gold:       #8A7C55;   /* the script ink. Accents and rules only, 3.8:1 */
  --sky:        #BCD6DF;   /* baby blue, used as a wash */
  --sky-deep:   #4F7383;   /* 4.73:1 on cream */
  --line:       rgba(58, 59, 48, 0.16);
  --line-soft:  rgba(58, 59, 48, 0.09);

  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gut: clamp(1.5rem, 5vw, 5rem);
  --measure: 34rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Type primitives ---------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
}

p { max-width: var(--measure); }

/* ---------- Layout ---------- */

.shell { padding-inline: var(--gut); }

section { position: relative; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Hero: the printed save-the-date, on screen ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: clamp(1.75rem, 5.5vh, 4rem);
  text-align: center;
}

.hero__inner {
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.6vh, 1.75rem);
}

.rule-short {
  width: clamp(3rem, 10vw, 5rem);
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  border: 0;
  margin: 0;
}

.hero .engraving {
  max-width: 41rem;
  margin-block: clamp(0.5rem, 1.5vh, 1.25rem);
}

.hero .script--hero { color: var(--olive); }

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2rem;
  background: currentColor;
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ---------- Countdown ---------- */

.countdown {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  background: var(--olive-deep);
  color: var(--cream);
}

.countdown .eyebrow { color: rgba(251, 246, 233, 0.72); }
.countdown .countdown__label { color: rgba(251, 246, 233, 0.66); }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 3vw, 3rem);
  max-width: 44rem;
  margin: 2rem auto 0;
}

.countdown__num {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  display: block;
}

.countdown__label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.65rem;
  display: block;
}

/* ---------- Story ---------- */

.story { padding-block: clamp(4rem, 10vw, 9rem); }

.story__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 78rem;
  margin-inline: auto;
}

.story__label { grid-column: 1 / -1; }

.story__figure {
  grid-column: 1 / -1;
  order: 2;
}

.story__body {
  grid-column: 1 / -1;
  order: 3;
}

@media (min-width: 56rem) {
  .story__label  { grid-column: 1 / 4; }
  .story__figure { grid-column: 1 / 7; order: 0; position: sticky; top: 3rem; }
  .story__body   { grid-column: 8 / 13; order: 0; }
}

.frame {
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.frame--portrait  { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 3 / 2; }
.frame--square    { aspect-ratio: 1 / 1; }
.frame--tall      { aspect-ratio: 2 / 3; }

figcaption {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.9rem;
}

.story__body h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 1.75rem;
}

.story__body p + p { margin-top: 1.4rem; }

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.9em;
  line-height: 0.78;
  padding-right: 0.09em;
  padding-top: 0.06em;
  color: var(--gold);
  font-weight: 300;
}

blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.35;
  font-weight: 300;
  color: var(--ink);
}

blockquote p { max-width: none; margin: 0; }

/* ---------- Gallery ---------- */

.gallery {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(180deg,
    var(--cream-deep) 0%,
    var(--cream-deep) 14%,
    rgba(188, 214, 223, 0.5) 58%,
    rgba(188, 214, 223, 0.26) 100%);
}

.gallery__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.gallery__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  margin: 0.75rem 0 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.6vw, 1.25rem);
  max-width: 82rem;
  margin-inline: auto;
}

@media (min-width: 56rem) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); align-items: start; }
  /* Alternating drop gives the row a little rhythm */
  .g2, .g4 { margin-top: clamp(1.5rem, 4vw, 3rem); }
}

.gallery .frame { background-color: #E2DACB; }

/* ---------- Venue teaser ---------- */

.venue {
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
  background: var(--olive);
  color: var(--cream);
}

.venue .eyebrow { color: rgba(251, 246, 233, 0.76); }
.venue .display { color: var(--cream); }
.venue .lede    { color: rgba(251, 246, 233, 0.9); }
.venue .divider::before,
.venue .divider::after { background: rgba(251, 246, 233, 0.5); opacity: 1; }
.venue .fleur   { background-color: rgba(251, 246, 233, 0.85); }

.venue h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  margin: 1rem 0 0;
}

.venue__where {
  color: rgba(251, 246, 233, 0.7);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.25rem 0 0;
  padding-left: 0.28em;
}

.venue .lede {
  margin-inline: auto;
  margin-top: 2rem;
  max-width: 36rem;
}

/* ---------- Footer ---------- */

.foot {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.foot__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 300;
  margin: 0 auto;
  max-width: 30rem;
}

.foot__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2.5rem;
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* ============================================================
   BRAND PRIMITIVES
   Taken from the printed save-the-date:
   the F/H monogram, the roundhand script, the engraved masseria,
   and the fleur-de-lis divider.
   ============================================================ */

/* Letterspaced classical caps: "SAVE THE DATE", "8 – 10 JULY 2027" */
.caps {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  padding-left: 0.2em;          /* optical, compensates the tracking */
  max-width: none;
}

.caps--lg  { font-size: clamp(0.6875rem, 1.5vw, 0.875rem); letter-spacing: 0.26em; }
.caps--md  { font-size: clamp(0.75rem, 1.6vw, 0.9375rem); }
.caps--sm  { font-size: clamp(0.8125rem, 1.5vw, 1rem); color: var(--ink-soft); }

/* The roundhand script from the artwork */
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
  color: var(--olive);
  max-width: none;
}

/* Pinyon sits high in its em box; this pulls it back optically */
.script--hero {
  font-size: clamp(3.25rem, 13vw, 8.5rem);
  padding-block: 0.12em;
}

.script--md { font-size: clamp(0.875rem, 1.9vw, 1.0625rem); }

.script .amp { font-style: normal; color: var(--gold); }

/* F over H monogram */
.monogram {
  display: block;
  flex: none;                     /* never let a flex parent collapse it */
  aspect-ratio: 489 / 649;
  background-color: var(--olive);
  -webkit-mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
          mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
  margin-inline: auto;
}

/* Width is stated explicitly as well as the ratio: as a flex item,
   width:auto resolves to zero rather than deriving from aspect-ratio. */
.monogram--sm { height: 2rem;                      width: 1.51rem; }
.monogram--md { height: clamp(3.5rem, 9vw, 6rem);  width: clamp(2.64rem, 6.78vw, 4.52rem); }
.monogram--lg { height: clamp(5rem, 14vw, 9rem);   width: clamp(3.77rem, 10.55vw, 6.78rem); }

/* The engraved masseria in its olive grove.
   Held as an alpha mask so it can be tinted to any brand colour. */
.engraving {
  width: 100%;
  aspect-ratio: 823 / 388;
  background-color: var(--olive);
  -webkit-mask: url("../img/masseria-engraving.png?v=a428a494") center / contain no-repeat;
          mask: url("../img/masseria-engraving.png?v=a428a494") center / contain no-repeat;
}

.engraving--sky { background-color: var(--sky-deep); }

@supports not (-webkit-mask: url("x")) {
  /* No mask support: show the artwork directly, in its own ink */
  .engraving,
  .fleur,
  .monogram {
    background-color: transparent;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .engraving { background-image: url("../img/masseria-engraving.png?v=a428a494"); }
  .fleur     { background-image: url("../img/fleur.png?v=f41c7c94"); }
  .monogram  { background-image: url("../img/monogram.svg?v=684ea156"); }
}

/* Rule, fleur-de-lis, rule */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-inline: auto;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 9vw, 5.5rem);
  background: var(--gold);
  opacity: 0.55;
}

.fleur {
  width: clamp(0.85rem, 2vw, 1.15rem);
  aspect-ratio: 39 / 56;
  background-color: var(--gold);
  -webkit-mask: url("../img/fleur.png?v=f41c7c94") center / contain no-repeat;
          mask: url("../img/fleur.png?v=f41c7c94") center / contain no-repeat;
  flex: none;
}

/* A single fleur with no rules, for section heads */
.fleur--solo { margin-inline: auto; }

/* Baby blue wash, used sparingly to keep things summery */
.wash-sky { background: linear-gradient(180deg, var(--cream) 0%, var(--sky) 480%); }

/* ============================================================
   PRELOADER
   CSS only and self-dismissing, so a JS failure can never leave
   the page trapped behind it.
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--cream);
  animation: preloader-lift 0.75s var(--ease) 2.35s forwards;
}

.preloader__mark {
  position: relative;
  display: block;
  overflow: hidden;
  width: clamp(3.25rem, 9vw, 5rem);
  aspect-ratio: 489 / 649;
  background-color: rgba(90, 99, 64, 0.16);   /* the unfilled outline */
  -webkit-mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
          mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
  animation: mark-in 0.7s var(--ease) both;
}

/* olive rises through the monogram, then a shine passes over it */
.preloader__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--olive);
  animation: mark-fill 1.25s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
}

.preloader__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(251, 246, 233, 0) 35%,
    rgba(251, 246, 233, 0.55) 50%,
    rgba(251, 246, 233, 0) 65%);
  transform: translateX(-120%);
  animation: mark-shine 0.9s var(--ease) 1.5s forwards;
}

@keyframes mark-fill  { to { height: 100%; } }
@keyframes mark-shine { to { transform: translateX(120%); } }

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@keyframes preloader-lift {
  to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   THE SCRIPT WORDMARK
   Lifted from the printed artwork rather than set in a webfont,
   so the texture and the exact letterforms carry over.
   ============================================================ */

.wordmark {
  margin: 0;
  width: min(56%, 11rem);
  aspect-ratio: 440 / 270;
  background: url("../img/wordmark.png?v=688dda96") center / contain no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   THE MASSERIA STAMP
   ============================================================ */

.stamp {
  display: block;
  width: clamp(7rem, 17vw, 10.5rem);
  aspect-ratio: 824 / 591;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  background-color: var(--cream);
  -webkit-mask: url("../img/stamp.png?v=e5d0c842") center / contain no-repeat;
          mask: url("../img/stamp.png?v=e5d0c842") center / contain no-repeat;
}

@supports not (-webkit-mask: url("x")) {
  .stamp, .preloader__mark {
    background-color: transparent;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .stamp          { background-image: url("../img/stamp.png?v=e5d0c842"); }
  .preloader__mark { background-image: url("../img/monogram.svg?v=684ea156"); }
}

/* ============================================================
   SOUND TOGGLE
   ============================================================ */

.vibes {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.75rem);
  bottom: clamp(0.85rem, 2.5vw, 1.75rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.05rem 0.6rem 0.85rem;
  border: 1px solid rgba(58, 59, 48, 0.16);
  border-radius: 999px;
  background: rgba(251, 246, 233, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
          backdrop-filter: saturate(160%) blur(10px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(58, 59, 48, 0.09);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.vibes:hover { border-color: rgba(58, 59, 48, 0.34); }
.vibes:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* Four bars that sit still until the music is playing */
.vibes__icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.85rem;
  flex: none;
}

.vibes__icon i {
  display: block;
  width: 2px;
  height: 22%;
  background: var(--olive);
  transition: height 0.3s var(--ease);
}

.vibes[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}
.vibes[aria-pressed="true"] .vibes__icon i {
  background: var(--cream);
  animation: bar 1s ease-in-out infinite;
}
.vibes[aria-pressed="true"] .vibes__icon i:nth-child(2) { animation-delay: 0.18s; }
.vibes[aria-pressed="true"] .vibes__icon i:nth-child(3) { animation-delay: 0.36s; }
.vibes[aria-pressed="true"] .vibes__icon i:nth-child(4) { animation-delay: 0.09s; }

@keyframes bar {
  0%, 100% { height: 22%; }
  50%      { height: 100%; }
}

@media (max-width: 30rem) {
  .vibes__label { display: none; }
  .vibes { padding: 0.7rem; }
}

/* ============================================================
   CENTRING CORRECTIONS
   Constrained paragraphs inside centred sections were sitting
   hard left, because `p { max-width }` had no auto margins.
   ============================================================ */

.hero p,
.countdown p,
.venue p,
.foot p,
.gallery__head p,
.gallery__head h2 {
  margin-inline: auto;
}

.venue .lede { max-width: 30rem; }

.gallery__head h2 {
  font-family: var(--serif);
  font-weight: 300;
}

/* ============================================================
   A LITTLE MORE INTRIGUE
   Olive hairlines between the light sections, and a sky tint
   under the story so the page is not one flat cream.
   ============================================================ */


.story {
  background:
    radial-gradient(120% 60% at 50% 0%,
      rgba(188, 214, 223, 0.30) 0%,
      rgba(188, 214, 223, 0) 62%),
    var(--cream);
}

.story__body h2 { color: var(--olive-deep); }

blockquote { border-left-color: var(--sky-deep); }
blockquote p { color: var(--olive-deep); }

.foot { background: var(--cream-deep); border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .preloader { animation: preloader-lift 0.01s forwards; }
  .preloader__mark { animation: none; }
  .preloader__fill { height: 100%; animation: none; }
  .preloader__fill::after { animation: none; opacity: 0; }
  .vibes[aria-pressed="true"] .vibes__icon i { animation: none; height: 60%; }
}

/* Venue: the locator had no bottom margin, so the fleur divider
   collided with it. It was also only 3.85:1 on olive; 0.88 alpha
   brings it to 5.0:1. */
.venue__where { color: rgba(251, 246, 233, 0.88); }

.venue .divider { margin-block: clamp(1.4rem, 3.5vw, 2rem); }

.venue .display { margin-top: 0.5rem; }

/* ============================================================
   MONTAS
   The display face. Cormorant's oldstyle figures made "8", "10"
   and "2027" sit at a different height from the JULY capitals;
   Montas has lining figures, so the line reads as one.
   ============================================================ */

@font-face {
  font-family: "Montas";
  src: url("../fonts/Montas-Light.woff2?v=58b5ad4f") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montas";
  src: url("../fonts/Montas-Regular.woff2?v=f77ec998") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montas";
  src: url("../fonts/Montas-Medium.woff2?v=69db7dc7") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root { --display: "Montas", "Cormorant Garamond", serif; }

.caps,
.display,
.story__body h2,
.polaroids h2 {
  font-family: var(--display);
  font-variant-numeric: lining-nums;
}

.caps { font-weight: 400; }
.caps--lg { letter-spacing: 0.24em; font-weight: 400; }
.display, .story__body h2, .polaroids h2 { font-weight: 300; }

/* ============================================================
   POLAROIDS
   Pegged to a line, each at its own angle, tracking sideways
   as the section passes through the viewport.
   ============================================================ */

.polaroids {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg,
    var(--cream-deep) 0%,
    rgba(188, 214, 223, 0.42) 52%,
    var(--cream-deep) 100%);
  overflow: hidden;
}

.polaroids__head {
  text-align: center;
  padding-inline: var(--gut);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.polaroids h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0;
  color: var(--olive-deep);
}

.polaroids__head .divider { margin-top: 1.1rem; }

.ticker {
  --tick-pad: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  padding-block: var(--tick-pad);
}

/* the line the prints are pegged to */
.ticker__line {
  position: absolute;
  left: -5vw;
  right: -5vw;
  /* sits exactly where the pegs bite, whatever the breakpoint */
  top: calc(var(--tick-pad) + 0.15rem);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(90, 99, 64, 0) 0%,
    rgba(90, 99, 64, 0.62) 8%,
    rgba(90, 99, 64, 0.62) 92%,
    rgba(90, 99, 64, 0) 100%);
}

.ticker__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: clamp(1.5rem, 6vw, 6rem);
  width: max-content;
  will-change: transform;
}

.polaroid {
  --rot: 0deg;
  position: relative;
  flex: none;
  margin: 0;
  width: clamp(9.5rem, 20vw, 14rem);
  padding: 0.75rem 0.75rem 3rem;
  background: #FCFAF4;
  border: 1px solid rgba(58, 59, 48, 0.1);
  box-shadow:
    0 1px 2px rgba(58, 59, 48, 0.10),
    0 14px 30px rgba(58, 59, 48, 0.13);
  transform: rotate(var(--rot));
  transform-origin: top center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 2px 4px rgba(58, 59, 48, 0.12),
    0 22px 46px rgba(58, 59, 48, 0.2);
}

/* the peg holding it to the line */
.polaroid__peg {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 0.45rem;
  height: 1.4rem;
  margin-left: -0.225rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #B9A882 0%, #9C8C69 55%, #8A7C55 100%);
  box-shadow: 0 1px 2px rgba(58, 59, 48, 0.3);
}

.polaroid__img {
  display: block;
  aspect-ratio: 4 / 5;
  background-color: var(--stone);
  background-size: cover;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  /* No scroll-driven travel: let people swipe the line instead */
  .ticker__track {
    overflow-x: auto;
    width: auto;
    transform: none !important;
    scrollbar-width: thin;
  }
  .polaroid { transition: none; }
}

/* ============================================================
   THE MOST EXCITING NEWS
   ============================================================ */

.news {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--sand);
  color: var(--ink);
  text-align: center;
}

.news__inner { max-width: 40rem; margin-inline: auto; }

.news .caps {
  color: var(--olive-deep);
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  letter-spacing: 0.16em;
}

.news .divider { margin-block: clamp(1.5rem, 3.5vw, 2.25rem); }
.news .divider::before,
.news .divider::after { background: rgba(90, 99, 64, 0.45); opacity: 1; }
.news .fleur { background-color: var(--gold); }

.news__body {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 34rem;
}

.news__body + .news__body { margin-top: 1.25rem; }

/* ============================================================
   SMALLER VENUE NOTE
   ============================================================ */

.venue__note {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgba(251, 246, 233, 0.86);
  margin: 0 auto;
  max-width: 26rem;
}

/* ============================================================
   HERO: LET THE NAMES LEAD
   The caps, the script and the wordmark were all at full strength
   and fighting each other. Everything except the names steps back.
   ============================================================ */

.hero .caps--md,
.hero .caps--sm { color: rgba(111, 107, 84, 0.72); }
.hero .caps--lg { color: rgba(90, 99, 64, 0.78); }
.hero .script--md { color: rgba(90, 99, 64, 0.72); }
.hero .rule-short,
.hero .divider::before,
.hero .divider::after { opacity: 0.38; }
.hero .fleur { opacity: 0.62; }
.hero .scroll-cue { color: rgba(111, 107, 84, 0.6); }

/* ============================================================
   BODY COPY IN MONTAS LIGHT
   ============================================================ */

.story__body p,
.news__body,
.lede {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.002em;
}

.story__body p { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.dropcap::first-letter { font-family: var(--display); font-weight: 300; }

/* ============================================================
   STORY CAROUSEL
   Advances on a timer, and steps on hover or focus.
   ============================================================ */

.carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
  border-radius: 2px;
}

.carousel:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.carousel__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s var(--ease), transform 6s linear;
}

.carousel__slide.is-on { opacity: 1; transform: scale(1); }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.carousel__dots i {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: rgba(251, 246, 233, 0.5);
  box-shadow: 0 0 3px rgba(58, 59, 48, 0.4);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.carousel__dots i.is-on { background: var(--cream); transform: scale(1.35); }

/* ============================================================
   THE THREE DAYS
   ============================================================ */

.timeline {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  max-width: 34rem;
  text-align: left;
  position: relative;
}

/* the spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: rgba(251, 246, 233, 0.32);
}

.timeline__item {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 1rem;
}

.timeline__item + .timeline__item { margin-top: clamp(1.1rem, 2.6vw, 1.6rem); }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--olive);
}

.timeline__date {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  flex: none;
  min-width: 5.5rem;
}

.timeline__what {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 300;
  color: rgba(251, 246, 233, 0.86);
}

/* ============================================================
   ARCHIE
   ============================================================ */

.news__photo {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 4 / 3;
  background-color: rgba(90, 99, 64, 0.08);
  background-size: cover;
  background-position: center 38%;
  border-radius: 2px;
}

/* ============================================================
   FOOTER — a thin closing rule, not another section
   ============================================================ */

.foot {
  background: var(--olive-deep);
  border-top: 0;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.foot__mark {
  display: block;
  width: 1.1rem;
  aspect-ratio: 489 / 649;
  background-color: rgba(251, 246, 233, 0.75);
  -webkit-mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
          mask: url("../img/monogram.svg?v=684ea156") center / contain no-repeat;
}

.foot__note {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 246, 233, 0.88);
  margin: 0;
  font-style: normal;
}

.foot__meta {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 246, 233, 0.6);
  margin: 0;
}

/* ============================================================
   SOUND: a speaker, waves only once it is playing
   ============================================================ */

.vibes {
  padding: 0;
  width: 2.9rem;
  height: 2.9rem;
  justify-content: center;
  gap: 0;
}

.vibes__svg {
  width: 1.35rem;
  height: 1.35rem;
  overflow: visible;
}

.vibes__cone {
  fill: var(--olive);
  stroke: none;
  transition: fill 0.25s var(--ease);
}

.vibes__waves path {
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: 17px 12px;
  transform: scaleX(0.4);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), stroke 0.25s var(--ease);
}

.vibes__slash {
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), stroke 0.25s var(--ease);
}

.vibes[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); }
.vibes[aria-pressed="true"] .vibes__cone { fill: var(--cream); }
.vibes[aria-pressed="true"] .vibes__slash { opacity: 0; }
.vibes[aria-pressed="true"] .vibes__waves path {
  stroke: var(--cream);
  opacity: 1;
  transform: scaleX(1);
  animation: wave 1.6s ease-in-out infinite;
}
.vibes[aria-pressed="true"] .vibes__w2 { animation-delay: 0.18s; }
.vibes[aria-pressed="true"] .vibes__w3 { animation-delay: 0.36s; }

@keyframes wave {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

@media (max-width: 30rem) {
  .vibes { padding: 0; width: 2.7rem; height: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vibes[aria-pressed="true"] .vibes__waves path { animation: none; opacity: 1; }
  .carousel__slide { transition: opacity 0.2s linear; transform: none; }
}

/* With the names at half size the engraving was dominating the hero
   and pushing it past the viewport. Tightened so the stack reads as
   one composition and fits on screen. */
.hero__inner { gap: clamp(0.7rem, 1.8vh, 1.15rem); }
.hero .engraving { margin-block: clamp(0.35rem, 1vh, 0.8rem); }
.hero .rule-short { width: clamp(2.25rem, 7vw, 3.25rem); }

/* The pressed pill was olive on an olive section and disappeared.
   The pill stays cream over every ground; the icon carries the state. */
.vibes[aria-pressed="true"] {
  background: rgba(251, 246, 233, 0.95);
  border-color: rgba(90, 99, 64, 0.55);
}
.vibes[aria-pressed="true"] .vibes__cone { fill: var(--olive); }
.vibes[aria-pressed="true"] .vibes__waves path { stroke: var(--olive); }

/* ============================================================
   THE THREE DAYS, CENTRED, WITH A SPINE THAT FILLS ON SCROLL
   ============================================================ */

.timeline {
  text-align: center;
  max-width: 30rem;
  padding-top: 0.5rem;
}

.timeline::before { display: none; }   /* replaced by the filling spine */

.timeline__spine {
  position: absolute;
  left: 50%;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  margin-left: -0.5px;
  background: rgba(251, 246, 233, 0.26);
}

.timeline__spine i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  background: var(--cream);
  transition: height 0.15s linear;
}

.timeline__item {
  display: block;
  padding-left: 0;
  padding-block: 0.15rem;
}

.timeline__item::before {
  left: 50%;
  margin-left: -0.325rem;
  top: 0.15rem;
  background: var(--olive);
  box-shadow: 0 0 0 1px rgba(251, 246, 233, 0.45);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline__item.is-lit::before {
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(251, 246, 233, 0.22);
}

.timeline__item + .timeline__item { margin-top: clamp(1.6rem, 3.6vw, 2.4rem); }

.timeline__date {
  display: block;
  min-width: 0;
  margin: 1.1rem 0 0.3rem;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  opacity: 0.82;
}

.timeline__what { display: block; }

/* a quiet close to the section */
.venue__rule {
  width: clamp(3rem, 10vw, 5rem);
  height: 1px;
  border: 0;
  background: rgba(251, 246, 233, 0.35);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto clamp(1.25rem, 3vw, 1.75rem);
}

.venue__more {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 246, 233, 0.78);
  margin: 0 auto;
}

/* ============================================================
   SOUND: say what it does where there is no hover
   ============================================================ */

.vibes__label {
  display: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (hover: none), (max-width: 48rem) {
  .vibes {
    width: auto;
    height: auto;
    padding: 0.6rem 1rem 0.6rem 0.8rem;
    gap: 0.5rem;
  }
  .vibes__label { display: inline; }
}

.vibes[aria-pressed="true"] .vibes__label { color: var(--olive-deep); }

/* The tighter crop means the masseria reads larger at a smaller
   box, so the whole hero still lands inside one screen. */
.hero .engraving { max-width: min(41rem, 88vw, 64vh); }
.hero__inner { gap: clamp(0.6rem, 1.6vh, 1.05rem); }
.hero .scroll-cue::after { height: 1.5rem; }
