/* =========================================================
   Lejla & Salko — pozivnica
   Mobile-first. Light editorial: cream paper, ink, warm gold.
   ========================================================= */

:root {
  --paper: #F5EFE6;
  --paper-2: #EDE4D6;
  --ivory: #FBF8F2;
  --ink: #2A2420;
  --ink-soft: #5E534A;
  --muted: #8E8174;
  --gold: #A8875A;
  --gold-soft: #C9B08A;
  --line: rgba(42, 36, 32, .14);

  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --display: "Libre Caslon Display", "Bodoni 72", Didot, Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6vw, 48px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --vh: 1svh;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
section { position: relative; }

/* ---------- type atoms ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  padding-left: .38em; /* optical center for tracking */
}
.eyebrow--light { color: rgba(255, 248, 236, .85); }
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 12vw, 76px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0 0 28px;
}
.h2--light { color: #FFF8EC; }
.script { font-family: var(--script); font-weight: 400; }

.section-paper {
  background: var(--paper);
  padding: clamp(88px, 22vw, 160px) var(--gutter);
  text-align: center;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* =========================================================
   OVERTURE
   ========================================================= */
.overture {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  text-align: center;
  padding: env(safe-area-inset-top, 0) var(--gutter) env(safe-area-inset-bottom, 0);
}
.overture__panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(255,255,255,.55), transparent 70%),
    var(--paper);
  transition: transform 1.5s var(--ease);
}
.overture__panel--l { left: 0; box-shadow: inset -1px 0 0 rgba(168,135,90,.25); }
.overture__panel--r { right: 0; box-shadow: inset 1px 0 0 rgba(168,135,90,.25); }
.overture__content { position: relative; z-index: 2; transition: opacity .6s ease, transform .9s var(--ease); }
.overture__names {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(30px, 9vw, 46px); margin: 0 0 40px; letter-spacing: .01em;
  opacity: 0; animation: rise 1.4s var(--ease) .3s forwards;
}
.overture__names .amp { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 1.15em; padding: 0 .1em; }
.overture .eyebrow { opacity: 0; animation: rise 1.2s var(--ease) .1s forwards; }
.overture__hint {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 0; padding-left: .35em;
  opacity: 0; animation: rise 1s var(--ease) 1.2s forwards, breathe 2.6s ease-in-out 2.2s infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .35; } }

.seal {
  position: relative; width: 148px; height: 148px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto;
  background: radial-gradient(circle at 35% 30%, #C2A273, #9C7A4C 55%, #7E6038);
  box-shadow: 0 18px 40px -12px rgba(94, 70, 38, .55), inset 0 2px 6px rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.25);
  opacity: 0; animation: sealIn 1.3s var(--ease) .6s forwards;
  transition: transform .5s var(--ease);
}
.seal:active { transform: scale(.96); }
.seal::after { /* pulse halo */
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(168,135,90,.5);
  animation: halo 2.6s ease-out 2s infinite;
}
@keyframes halo { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.6) rotate(-30deg); } to { opacity: 1; transform: none; } }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__ring text { font-family: var(--sans); font-size: 7.4px; letter-spacing: 2.1px; fill: rgba(255, 244, 222, .75); }
@keyframes spin { to { transform: rotate(360deg); } }
.seal__mono {
  font-family: var(--display);
  font-style: italic; font-weight: 400; font-size: 40px;
  color: #FFF3DD; text-shadow: 0 1px 1px rgba(0,0,0,.25); letter-spacing: .02em;
}
.seal__mono i { font-family: var(--script); font-style: normal; font-size: .8em; margin: 0 .05em; opacity: .85; }

.overture.is-open .overture__content { opacity: 0; transform: scale(1.08); }
.overture.is-open .overture__panel--l { transform: translateX(-101%); }
.overture.is-open .overture__panel--r { transform: translateX(101%); }
.overture.is-gone { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  height: 100svh; min-height: 560px;
  overflow: hidden; color: #FFF8EC;
  text-align: center;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  transform: scale(1.18);
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 45% at 50% 22%, rgba(20,14,8,.42), rgba(20,14,8,0) 70%),
    linear-gradient(to bottom, rgba(20, 14, 8, .5) 0%, rgba(20,14,8,.15) 30%, rgba(20,14,8,0) 50%, rgba(20,14,8,0) 78%, rgba(20,14,8,.45) 100%);
}
.hero__text {
  position: absolute; inset: 0; z-index: 2; margin: 0; font-weight: 400;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 7svh) var(--gutter) 0;
}
.hero__group { display: flex; flex-direction: column; align-items: center; }
/* staggered monogram-like name block: Lejla left, Salko right, & woven between */
.hero__names {
  position: relative; display: grid; justify-items: center;
  width: min(86vw, 640px);
  text-shadow: 0 2px 30px rgba(20, 14, 8, .35);
}
.hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(70px, 21vw, 150px);
  line-height: .9;
  letter-spacing: -.02em;
  display: block; overflow: hidden; padding: .05em .06em .14em;
}
.hero__name--1 { justify-self: start; }
.hero__name--2 { justify-self: end; margin-top: -.34em; }
.hero__name .ch { display: inline-block; will-change: transform; }
.hero__amp {
  position: relative; z-index: 1;
  font-family: var(--script); color: var(--gold-soft);
  font-size: clamp(78px, 24vw, 170px); line-height: .7;
  margin: -.32em 0 0 -.2em;
  text-shadow: 0 2px 18px rgba(20, 14, 8, .45);
}
.hero__date {
  margin: 14px 0 0;
  font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .45em;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding-left: .45em;
}
.hero__date i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); display: block; }
.hero__eyebrow { margin-bottom: 10px; display: block; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 1px; height: 46px; transform: translateX(-50%);
  background: rgba(255, 248, 236, .25); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #FFF8EC; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 560px; margin: 8px auto 0;
}
.cd { position: relative; padding: 6px 0; }
.cd + .cd::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 30%; width: 1px; background: var(--line);
}
.cd__n {
  font-family: var(--display);
  display: block; font-weight: 400;
  font-size: clamp(38px, 11.5vw, 72px); line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cd__l {
  display: block; margin-top: 10px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.countdown__day {
  margin: 34px 0 0; font-style: italic; font-size: 20px; color: var(--ink-soft);
}

/* =========================================================
   STORY DECK
   ========================================================= */
.deck { background: var(--paper-2); overflow: hidden; }
.deck__inner {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 64px var(--gutter) 48px;
}
.deck__head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.deck__head .eyebrow { margin: 0; }
.deck__counter { margin: 0; font-style: italic; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.deck__stage {
  position: relative;
  width: min(80vw, 400px, 52svh);
  aspect-ratio: 4 / 5.35;
  touch-action: pan-y;          /* vertical page scroll stays native */
  margin-bottom: 30px;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.deck__stage:active { cursor: grabbing; }
.card {
  position: absolute; inset: 0; margin: 0;
  background: var(--ivory);
  padding: 10px 10px 60px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 50px -22px rgba(60, 42, 20, .45);
  border-radius: 3px;
  will-change: transform;
  transform-origin: 50% 85%;
}
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; pointer-events: none; -webkit-user-drag: none; }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.card figcaption b {
  font-weight: 400; font-family: var(--sans); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink); padding-left: .32em; line-height: 1.5;
}
.card figcaption b.script { font-family: var(--script); font-size: 25px; letter-spacing: 0; text-transform: none; color: var(--gold); padding: 0; line-height: 1.05; }
.card figcaption i { font-family: var(--display); font-style: normal; font-size: 24px; letter-spacing: .04em; color: var(--ink); line-height: 1.1; }
.card figcaption b.script + i { font-size: 15px; font-family: var(--serif); font-style: italic; color: var(--muted); letter-spacing: 0; }
.deck__nav { display: flex; align-items: center; gap: 18px; }
.deck__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(42,36,32,.22); transition: background .3s, transform .3s var(--ease);
}
.deck__btn:active { transform: scale(.92); background: rgba(42,36,32,.06); }
.deck__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.deck__hint {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  margin: 0; padding-left: .3em; animation: breathe 2.6s ease-in-out infinite;
}

/* =========================================================
   YES / VIDEO
   ========================================================= */
.yes { background: var(--paper-2); padding: 0 0 0; overflow: hidden; }
.yes__frame {
  position: relative; height: 100svh; overflow: hidden;
  clip-path: inset(8% 7% 8% 7% round 200px 200px 6px 6px);
  will-change: clip-path;
}
.yes__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yes__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.05) 50%, rgba(18,12,6,.6)); }
.yes__text {
  position: absolute; left: 0; right: 0; bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: #FFF8EC; padding: 0 var(--gutter);
}
.yes__title {
  font-family: var(--display);
  margin: 0; font-weight: 400; font-size: clamp(54px, 16vw, 120px); line-height: .95; letter-spacing: -.01em;
}
.yes__title em { font-family: var(--script); font-style: normal; color: var(--gold-soft); font-size: 1.1em; padding-left: .05em; }
.sound-btn {
  position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 248, 236, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 248, 236, .35);
  display: grid; place-items: center;
}
.sound-btn svg { width: 22px; height: 22px; fill: none; stroke: #FFF8EC; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .ic-on { display: none; }
.sound-btn.is-on .ic-on { display: inline; }
.sound-btn.is-on .ic-off { display: none; }

/* =========================================================
   STATEMENT + FLOATING
   ========================================================= */
.statement {
  min-height: 0; height: clamp(520px, 78svh, 760px); overflow: hidden;
  display: grid; place-items: center;
  padding-top: 0; padding-bottom: 0;
}
.statement__text {
  font-family: var(--display);
  position: relative; z-index: 2; margin: 0 auto; max-width: 11ch;
  font-weight: 400; font-size: clamp(34px, 9.6vw, 68px); line-height: 1.08; letter-spacing: -.01em;
}
.statement__text em { font-style: italic; color: var(--gold); }
.statement__text .w { display: inline-block; opacity: .12; transition: none; }
.float { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 16px 32px -20px rgba(60,42,20,.5); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.float--a { width: 25vw; max-width: 170px; aspect-ratio: 4/5; left: 7vw; top: 14%; border-radius: 999px 999px 4px 4px; }
.float--b { width: 22vw; max-width: 150px; aspect-ratio: 4/5; right: 8vw; top: 11%; }
.float--c { width: 24vw; max-width: 160px; aspect-ratio: 4/5; right: 9vw; bottom: 12%; border-radius: 999px 999px 4px 4px; }
.float--d { width: 22vw; max-width: 150px; aspect-ratio: 1/1; left: 9vw; bottom: 15%; border-radius: 50%; }

/* =========================================================
   WHERE
   ========================================================= */
.where {
  min-height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  padding: 90px var(--gutter);
}
/* fine-art backdrop: warm paper, soft watercolour washes, gold olive branches */
.where__bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(130% 90% at 50% 50%, rgba(255, 252, 246, .65), rgba(255,252,246,0) 70%),
    linear-gradient(170deg, #ECE1D2 0%, #E2D3C0 55%, #D8C5AF 100%);
}
.wash { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .85; }
.wash--1 { width: 70vw; height: 52vw; max-width: 520px; max-height: 380px; left: -18vw; top: 4%; background: radial-gradient(circle, rgba(170, 182, 150, .75), rgba(170,182,150,0) 70%); }
.wash--2 { width: 76vw; height: 56vw; max-width: 560px; max-height: 420px; right: -22vw; bottom: 2%; background: radial-gradient(circle, rgba(214, 178, 164, .7), rgba(214,178,164,0) 70%); }
.wash--3 { width: 50vw; height: 40vw; max-width: 380px; max-height: 300px; right: -6vw; top: 8%; background: radial-gradient(circle, rgba(201, 176, 138, .55), rgba(201,176,138,0) 70%); }
.botanic { position: absolute; width: min(92vw, 620px); height: auto; overflow: visible; }
.botanic--tl { left: -6vw; top: -2%; transform-origin: 0 0; animation: sway 9s ease-in-out infinite alternate; }
.botanic--br { right: -6vw; bottom: -2%; transform: rotate(180deg); transform-origin: 50% 50%; animation: sway-r 10s ease-in-out infinite alternate; }
.botanic path { fill: none; stroke: #A8875A; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.botanic .leaf { fill: rgba(150, 162, 128, .16); }
.botanic .berry { fill: rgba(168, 135, 90, .55); stroke: none; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes sway-r { from { transform: rotate(178.8deg); } to { transform: rotate(181.3deg); } }
.where__card {
  position: relative; z-index: 2; text-align: center;
  width: min(100%, 420px);
  background: rgba(251, 248, 242, .9);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 48px 28px 34px;
  border-radius: 220px 220px 6px 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -40px rgba(80, 58, 30, .45);
}
.where__card::before { /* inner hairline */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(168,135,90,.35);
  border-radius: 212px 212px 3px 3px; pointer-events: none;
}
.where__card .eyebrow { margin-top: 26px; }
.where__day { margin: 6px 0 0; font-style: italic; font-size: 22px; color: var(--ink-soft); }
.where__date {
  font-family: var(--display); margin: 0; font-weight: 400; font-size: clamp(40px, 11vw, 56px); line-height: 1.05; }
.rule { display: flex; align-items: center; gap: 14px; margin: 22px auto; width: 70%; color: var(--gold); font-size: 12px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: rgba(168,135,90,.45); }
.where__place {
  font-family: var(--display); margin: 0; font-weight: 400; font-size: clamp(32px, 9vw, 44px); line-height: 1.05; letter-spacing: .01em; }
.where__city { margin: 4px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); padding-left: .4em; }
.where__btns { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--ghost { border: 1px solid rgba(42,36,32,.3); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--solid { background: var(--ink); color: var(--ivory); width: 100%; min-height: 56px; position: relative; overflow: hidden; }
.btn--solid::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  animation: sheen 3.4s ease-in-out 1s infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn--solid[disabled] { opacity: .6; }

/* =========================================================
   TIMELINE
   ========================================================= */
.tl { position: relative; max-width: 460px; margin: 10px auto 0; padding: 10px 0; text-align: left; }
.tl__line { position: absolute; left: 27px; top: 34px; bottom: 34px; width: 1px; background: var(--line); }
.tl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.tl__item {
  position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: center;
  padding: 16px 0;
}
.tl__dot {
  grid-row: span 2; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 1px solid rgba(168,135,90,.45);
  display: grid; place-items: center; position: relative; z-index: 1;
  transition: background .5s, border-color .5s;
}
.tl__dot svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.tl__item.is-on .tl__dot { background: var(--ink); border-color: var(--ink); }
.tl__item.is-on .tl__dot svg { stroke: var(--gold-soft); }
.tl__time { margin: 0; font-family: var(--sans); font-size: 13px; letter-spacing: .25em; color: var(--gold); align-self: end; }
.tl__what { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 400; align-self: start; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--paper); padding: 0 0 clamp(70px, 18vw, 120px); overflow: hidden; display: grid; gap: 12px; }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marquee__track img {
  height: clamp(190px, 52vw, 340px); width: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px;
}
.marquee__row:nth-child(2) .marquee__track img:nth-child(odd) { border-radius: 999px 999px 3px 3px; }
.marquee__row:nth-child(1) .marquee__track img:nth-child(even) { border-radius: 999px 999px 3px 3px; }

/* =========================================================
   NOTES
   ========================================================= */
.notes { background: var(--ivory); }
.notes__arch, .rsvp__arch {
  width: min(62vw, 300px); aspect-ratio: 3/4; margin: 6px auto 48px; overflow: hidden;
  border-radius: 999px 999px 4px 4px;
}
.notes__arch img, .rsvp__arch img { width: 100%; height: 100%; object-fit: cover; }
.notes__list { max-width: 480px; margin: 0 auto; text-align: left; display: grid; gap: 14px; }
.note {
  display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start;
  padding: 22px 20px; background: var(--paper); border-radius: 4px; border: 1px solid rgba(168,135,90,.18);
}
.note__ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); border: 1px solid rgba(168,135,90,.35); }
.note__ic svg { width: 23px; height: 23px; fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.note__t { margin: 2px 0 4px; font-weight: 500; font-size: 24px; line-height: 1.15; }
.note__p { margin: 0; font-size: 17.5px; line-height: 1.45; color: var(--ink-soft); }

/* =========================================================
   SONG
   ========================================================= */
.song { min-height: 100svh; overflow: hidden; color: #FFF8EC; text-align: center; display: grid; place-items: center; }
.song__bg { position: absolute; inset: -10% 0; }
.song__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.song__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(24,16,10,.72), rgba(24,16,10,.55) 50%, rgba(24,16,10,.85)); }
.song__inner { position: relative; z-index: 2; padding: 100px var(--gutter); width: 100%; }
.vinyl { position: relative; width: min(66vw, 300px); aspect-ratio: 1; margin: 10px auto 34px; }
.vinyl__disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #1b1714 0 30%, #0d0b0a 31% 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: spin 3.2s linear infinite; animation-play-state: paused;
}
.vinyl.is-playing .vinyl__disc { animation-play-state: running; }
.vinyl__grooves {
  position: absolute; inset: 4%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.045) 0 1px, transparent 1px 4px),
    conic-gradient(from 30deg, transparent 0 15%, rgba(255,255,255,.10) 20%, transparent 26% 64%, rgba(255,255,255,.08) 70%, transparent 76%);
}
.vinyl__label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold-soft); }
.vinyl__label img { width: 100%; height: 100%; object-fit: cover; }
.vinyl__hole { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #E8DFD2; }
.vinyl__arm {
  position: absolute; right: -6%; top: -4%; width: 8%; height: 58%;
  transform-origin: 50% 6%; transform: rotate(-26deg); transition: transform 1s var(--ease);
}
.vinyl__arm::before { /* pivot */
  content: ""; position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #E7D3B0, #A8875A); box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.vinyl__arm::after { /* arm */
  content: ""; position: absolute; left: 50%; top: 12px; width: 3px; height: 100%; margin-left: -1.5px;
  background: linear-gradient(#E7D3B0, #A8875A); border-radius: 2px;
}
.vinyl.is-playing .vinyl__arm { transform: rotate(4deg); }
.song__title { margin: 0; font-weight: 400; font-style: italic; font-size: clamp(42px, 12vw, 72px); line-height: 1; }
.song__artist { margin: 10px 0 30px; font-family: var(--sans); font-size: 11px; letter-spacing: .45em; text-transform: uppercase; color: var(--gold-soft); padding-left: .45em; }
.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 28px 0 22px; border-radius: 999px;
  background: #FFF8EC; color: var(--ink);
  font-family: var(--sans); font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.6);
  transition: transform .3s var(--ease);
}
.play-btn:active { transform: scale(.96); }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: inline; }
.song__note { margin: 30px auto 0; max-width: 30ch; font-style: italic; font-size: 19px; line-height: 1.5; color: rgba(255,248,236,.82); }
.yt-wrap { width: min(100%, 420px); margin: 28px auto 0; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.yt-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { background: var(--paper); }
.rsvp__arch { width: min(48vw, 230px); margin-bottom: 40px; }
.rsvp__deadline { margin: -14px 0 36px; font-style: italic; font-size: 20px; color: var(--ink-soft); }
.rsvp__deadline strong { font-style: normal; font-weight: 500; color: var(--ink); }

.form { max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.field { display: grid; gap: 8px; }
.field__l, .choice legend {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  padding: 0;
}
.field__l em { text-transform: none; letter-spacing: .05em; font-style: italic; font-family: var(--serif); font-size: 14px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 20px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(42,36,32,.25);
  padding: 8px 0 10px; border-radius: 0; outline: none; resize: vertical;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 56px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: rgba(94,83,74,.45); font-style: italic; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #B4553F; }
.field.is-invalid .field__l { color: #B4553F; }
.field__hint { font-size: 15px; font-style: italic; color: var(--gold); line-height: 1.35; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(42,36,32,.25); font-size: 18px; transition: all .3s var(--ease); cursor: pointer;
}
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__status { margin: 0; min-height: 1.4em; font-style: italic; text-align: center; color: var(--ink-soft); }
.form__status.is-error { color: #B4553F; }

.thanks { text-align: center; padding: 20px 0 10px; }
.thanks__script { margin: 0; font-family: var(--script); font-size: 84px; line-height: 1.1; color: var(--gold); }
.thanks__p { margin: 6px 0 0; font-size: 21px; font-style: italic; color: var(--ink-soft); }

.contact { max-width: 460px; margin: 56px auto 0; }
.contact__or { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-style: italic; color: var(--muted); font-size: 17px; }
.contact__or::before, .contact__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact__people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person { background: var(--ivory); border-radius: 4px; padding: 20px 12px 16px; border: 1px solid rgba(168,135,90,.18); }
.person__n { margin: 0; font-family: var(--script); font-size: 38px; line-height: 1; color: var(--ink); }
.person__tel { margin: 6px 0 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.person__btns { display: grid; gap: 8px; }
.pill {
  display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(42,36,32,.2); transition: background .3s, color .3s;
}
.pill--wa:hover, .pill--wa:active { background: #2D6A4F; border-color: #2D6A4F; color: #fff; }
.pill--vb:hover, .pill--vb:active { background: #6F4E9C; border-color: #6F4E9C; color: #fff; }

/* =========================================================
   FINALE
   ========================================================= */
.finale { height: 100svh; min-height: 560px; overflow: hidden; color: #FFF8EC; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.finale__media { position: absolute; inset: 0; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.finale__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,14,8,0) 40%, rgba(20,14,8,.75)); }
.finale__text { position: relative; z-index: 2; padding: 0 var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px)); }
.finale__names { margin: 0; font-family: var(--script); font-size: clamp(64px, 19vw, 130px); line-height: 1.05; }
.finale__names span { color: var(--gold-soft); }
.finale__date { margin: 14px 0 0; font-family: var(--sans); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,248,236,.8); padding-left: .32em; }

/* =========================================================
   REVEAL BASE (JS adds .js to <html>)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal-img { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); }
.js .reveal-img img { transform: scale(1.25); }
.js [data-hero-fade] { opacity: 0; }

/* =========================================================
   LARGER SCREENS — secondary
   ========================================================= */
@media (min-width: 760px) {
  body { font-size: 19px; }
  .hero__text { padding-top: 6vh; }
  .yes__frame { clip-path: inset(6% 22% 6% 22% round 300px 300px 8px 8px); }
  .notes__list { max-width: 560px; }
  .float--a { left: calc(50% - 440px); } .float--b { right: calc(50% - 420px); }
  .float--c { right: calc(50% - 400px); } .float--d { left: calc(50% - 400px); }
}

/* wide landscape screens */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero__img { object-position: 50% 55%; }
  .hero__name { font-size: clamp(90px, 9vw, 150px); }
  .hero__names { width: min(52vw, 640px); }
  /* video: wide crop focused on the proposal (kneeling) moment */
  .yes__video { object-position: 50% 70%; }
  .yes__text { left: 6vw; right: auto; bottom: 60px; text-align: left; padding: 0; }
  .yes__title { font-size: clamp(54px, 6vw, 96px); }
  .yes__shade { background: linear-gradient(to right, rgba(18,12,6,.55), rgba(18,12,6,0) 45%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .grain { display: none; }
}
