/* ==========================================================
   Devent & Gyta — Wedding Invitation
   Editorial monochrome / warm cream + onyx / soft blush
   ========================================================== */

:root {
  --ink: #1a1714;
  --ink-soft: #2a2520;
  --paper: #f6f1e8;
  --paper-warm: #efe7d7;
  --paper-deep: #e7dcc6;
  --cream: #fbf7ee;
  --rose: #c89b8c;
  --rose-soft: #e9d3c8;
  --sand: #b8a37e;
  --sand-deep: #8a7553;
  --line: rgba(26, 23, 20, 0.14);
  --line-strong: rgba(26, 23, 20, 0.28);
  --shadow-1: 0 14px 40px rgba(26, 23, 20, 0.10);
  --shadow-2: 0 30px 80px rgba(26, 23, 20, 0.22);

  --serif: "Cormorant Garamond", "Cormorant", serif;
  --script: "Italianno", cursive;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cover-open { overflow: hidden; height: 100vh; }

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Subtle paper grain across the whole document */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184, 163, 126, 0.10), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgba(200, 155, 140, 0.08), transparent 28rem);
  mix-blend-mode: multiply;
}

/* ============== Type primitives ============== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center { display: inline-flex; }
.eyebrow--solo::before, .eyebrow--solo::after { display: none; }
.eyebrow--light { color: var(--rose-soft); }

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.005em;
}

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

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: 1.4em;
  line-height: 0.7;
  display: inline-block;
  margin: 0 0.05em;
  vertical-align: -0.05em;
  color: var(--ink);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.4rem auto;
}
.divider span {
  width: clamp(2.5rem, 8vw, 4.2rem);
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.divider svg { width: 16px; height: 16px; opacity: 0.7; }

/* ============== Cover (opening envelope) ============== */

.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 248, 232, 0.18), transparent 55%),
    linear-gradient(180deg, #14110e 0%, #1a1714 60%, #221c16 100%);
  overflow: hidden;
  transition: opacity 1100ms cubic-bezier(.7,0,.3,1), visibility 1100ms;
}
.cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Ghost ring like the spotlight in the prewed photos */
.cover__spot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 38rem);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 247, 230, 0.16) 0%, rgba(255, 247, 230, 0.06) 38%, transparent 62%);
  filter: blur(2px);
  pointer-events: none;
}
.cover__spot::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 230, 0.18);
}

/* Decorative tall-flower silhouettes */
.cover__flora {
  position: absolute;
  bottom: -2rem;
  width: 38vw;
  max-width: 220px;
  opacity: 0.65;
  pointer-events: none;
}
.cover__flora--l { left: -3vw; transform: rotate(-6deg); }
.cover__flora--r { right: -3vw; transform: rotate(6deg) scaleX(-1); }

.cover__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 30rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  animation: cover-rise 1200ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes cover-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover__eyebrow {
  color: rgba(233, 211, 200, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.cover__date-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: rgba(233, 211, 200, 0.86);
}
.cover__date-line span { width: 2rem; height: 1px; background: rgba(233, 211, 200, 0.5); }

.cover__names {
  font-family: var(--script);
  font-size: clamp(5.5rem, 22vw, 9rem);
  line-height: 0.78;
  color: var(--cream);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}
.cover__names .amp {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.32em;
  color: var(--sand);
  margin: 0.3em 0;
  font-weight: 300;
}

.cover__rule {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(rgba(233, 211, 200, 0.7), transparent);
  margin: 1.6rem 0 0.4rem;
}

.cover__to {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(233, 211, 200, 0.6);
}
.cover__guest {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 400;
  color: var(--cream);
  margin-top: 0.2rem;
}

.cover__open {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(233, 211, 200, 0.55);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 247, 230, 0.04);
  backdrop-filter: blur(8px);
  transition: all 360ms cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.cover__open::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(101%);
  transition: transform 460ms cubic-bezier(.7,0,.3,1);
  z-index: -1;
}
.cover__open:hover { color: var(--ink); border-color: var(--cream); }
.cover__open:hover::before { transform: translateY(0); }
.cover__share {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(233, 211, 200, 0.7);
  padding: 0.5rem 1rem;
  transition: color 220ms ease;
}
.cover__share:hover { color: var(--cream); }
.cover__share svg { width: 14px; height: 14px; }

/* Letter section */
.letter {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 163, 126, 0.12), transparent 50%),
    var(--paper-warm);
}
.letter__paper {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.4rem, 5vw, 3rem);
  position: relative;
  box-shadow: var(--shadow-1);
  max-width: 36rem;
  margin: 0 auto;
}
.letter__paper::before, .letter__paper::after {
  content: "";
  position: absolute;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--sand);
  pointer-events: none;
}
.letter__paper::before { top: 0.7rem; left: 0.7rem; border-right: 0; border-bottom: 0; }
.letter__paper::after { bottom: 0.7rem; right: 0.7rem; border-left: 0; border-top: 0; }
.letter__greet {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sand-deep);
  margin-bottom: 1.2rem;
}
.letter__body {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: pretty;
}
.letter__sign {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.letter__names {
  font-family: var(--script);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
  margin-top: 0.2rem;
}
/* Confetti */
.confetti { position: fixed; pointer-events: none; inset: 0; z-index: 700; overflow: hidden; }
.confetti i {
  position: absolute;
  width: 8px; height: 12px;
  background: var(--sand);
  opacity: 0;
  animation: confetti-fall 2.6s cubic-bezier(.2,.7,.4,1) forwards;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--cx, 0), 100vh) rotate(720deg); }
}

/* ============== Floating chrome (music + nav) ============== */

.chrome-music {
  position: fixed;
  right: 1.1rem;
  bottom: 5.4rem;
  z-index: 200;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(26, 23, 20, 0.35);
  transition: transform 300ms ease;
}
.chrome-music:hover { transform: scale(1.06); }
.chrome-music svg { width: 18px; height: 18px; }
.chrome-music__bars {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 14px;
}
.chrome-music__bars i {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  height: 30%;
  animation: bars 900ms ease-in-out infinite;
  animation-play-state: paused;
}
.chrome-music__bars i:nth-child(2) { animation-delay: 120ms; height: 70%; }
.chrome-music__bars i:nth-child(3) { animation-delay: 240ms; height: 50%; }
.chrome-music__bars i:nth-child(4) { animation-delay: 360ms; height: 90%; }
.chrome-music.is-playing .chrome-music__bars i { animation-play-state: running; }
@keyframes bars {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.chrome-nav {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 200;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(26, 23, 20, 0.32);
  border: 1px solid rgba(255, 247, 230, 0.08);
}
.chrome-nav button {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(246, 241, 232, 0.55);
  transition: all 220ms ease;
}
.chrome-nav button.is-active,
.chrome-nav button:hover { color: var(--cream); background: rgba(255, 247, 230, 0.08); }
.chrome-nav button svg { width: 16px; height: 16px; }
.chrome-nav__label {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  box-shadow: var(--shadow-1);
}
.chrome-nav button:hover .chrome-nav__label { opacity: 1; }

/* ============== Site (hidden until cover opened) ============== */

.site {
  opacity: 0;
  transition: opacity 900ms ease;
}
.site.is-visible { opacity: 1; }

/* ============== Hero ============== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.55;
  filter: contrast(1.05) brightness(0.85);
  animation: hero-breathe 14s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0.2) 35%, rgba(20, 17, 14, 0.85) 100%);
}

.hero__top {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.78);
}
.hero__top span { width: 1.5rem; height: 1px; background: currentColor; opacity: 0.5; }

.hero__center {
  align-self: center;
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 5.5rem 1.4rem 7rem;
  width: 100%;
}

.hero__joining {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--rose-soft);
  margin-bottom: 0.6rem;
}

.hero__names {
  font-family: var(--script);
  font-size: clamp(5.5rem, 26vw, 12rem);
  line-height: 0.78;
  color: var(--cream);
  display: grid;
  justify-items: center;
}
.hero__names .amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.18em;
  font-weight: 300;
  color: var(--sand);
  margin: 0.05em 0;
  letter-spacing: 0.1em;
}
.hero__names span { display: block; animation: fade-up 1100ms cubic-bezier(.22,1,.36,1) both; }
.hero__names span:nth-child(1) { animation-delay: 200ms; }
.hero__names span:nth-child(2) { animation-delay: 380ms; }
.hero__names span:nth-child(3) { animation-delay: 560ms; }
@keyframes hero-breathe {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-0.6%, 0.4%); }
  100% { transform: scale(1.05) translate(0.4%, -0.4%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__date {
  margin-top: 8rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 232, 0.86);
  animation: fade-up 1100ms cubic-bezier(.22,1,.36,1) 700ms both;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__date b { font-weight: 400; color: var(--cream); letter-spacing: 0.22em; font-style: normal; font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; }
.hero__date i { width: 4px; height: 4px; border-radius: 50%; background: var(--sand); }

/* Marquee ticker at bottom of hero */
.hero__ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(246, 241, 232, 0.16);
  border-bottom: 1px solid rgba(246, 241, 232, 0.16);
  overflow: hidden;
  padding: 0.85rem 0;
  background: rgba(20, 17, 14, 0.45);
  backdrop-filter: blur(4px);
}
.hero__ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.hero__ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: rgba(246, 241, 232, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.hero__ticker span::after {
  content: "✦";
  font-style: normal;
  color: var(--sand);
  font-size: 0.7em;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  right: 1.2rem;
  bottom: 5rem;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.72);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(rgba(246, 241, 232, 0.6), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============== Section primitives ============== */

.section {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 1.4rem;
  z-index: 2;
}
.section__inner {
  width: min(100%, 44rem);
  margin: 0 auto;
}
.section__inner--wide { width: min(100%, 64rem); }

.section__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  justify-items: center;
}
.section__head .eyebrow { margin-bottom: 1.2rem; }
.section__head .divider { color: var(--sand); }

.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .divider { color: var(--sand); }

/* ============== Opening / Bismillah ============== */

.opening {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 163, 126, 0.14), transparent 50%),
    var(--paper-warm);
}
.opening__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 4.2vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
  max-width: 36rem;
  margin: 0 auto;
}
.opening__quote em {
  font-family: var(--script);
  font-size: 1.6em;
  font-style: normal;
  color: var(--sand-deep);
  display: inline-block;
  line-height: 0.7;
  vertical-align: -0.1em;
  margin: 0 0.04em;
}
.opening__by {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

/* ============== Couple ============== */

.couple { background: var(--paper); }

.couple__grid {
  display: grid;
  gap: 3rem;
}

.person {
  display: grid;
  gap: 1.2rem;
  text-align: center;
  position: relative;
}

.person__photo-wrap {
  position: relative;
  width: min(70vw, 18rem);
  margin: 0 auto;
}
.person__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  background: var(--paper-deep);
  box-shadow: var(--shadow-2);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(0.15) contrast(1.02);
  transition: transform 800ms cubic-bezier(.22,1,.36,1), filter 600ms ease;
}
.person:hover .person__photo img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }

.person__photo::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(246, 241, 232, 0.5);
  pointer-events: none;
}

.person__tag {
  position: absolute;
  top: 1rem;
  left: -0.5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.8rem;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.person__num {
  position: absolute;
  bottom: -1.4rem;
  right: -0.3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  opacity: 0.8;
}

.person__role {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.person__name {
  font-family: var(--script);
  font-size: clamp(3.6rem, 14vw, 5.4rem);
  line-height: 0.85;
  color: var(--ink);
}
.person__full {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.person__parents {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}
.person__parents b { font-weight: 400; }
.person__parents .label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: 0.4rem;
}

.couple__amp {
  display: grid;
  place-items: center;
  font-family: var(--script);
  font-size: 5rem;
  line-height: 1;
  color: var(--sand);
}
.couple__amp::before, .couple__amp::after {
  content: "";
  width: 4rem;
  height: 1px;
  background: var(--line);
  margin: 0.3rem 0;
}

/* ============== Story timeline ============== */

.story {
  background: var(--paper-warm);
  position: relative;
}
.story__timeline {
  position: relative;
  padding-left: 1.6rem;
  display: grid;
  gap: 2.4rem;
  margin-top: 1rem;
}
.story__timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--line) 100%);
}
.story__item { position: relative; }
.story__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1.5px solid var(--sand-deep);
}
.story__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sand-deep);
  letter-spacing: 0.04em;
}
.story__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.3rem;
  color: var(--ink);
}
.story__body {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 28rem;
}

/* ============== Save the Date / Big date moment ============== */

.savethedate {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.savethedate::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 230, 0.10), transparent 60%);
  pointer-events: none;
}
.savethedate__inner { position: relative; z-index: 1; }
.savethedate__day {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.savethedate__big {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem auto 1.2rem;
  max-width: 24rem;
}
.savethedate__big > span:nth-child(1),
.savethedate__big > span:nth-child(3) {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7);
  white-space: nowrap;
}
.savethedate__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5.5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: lining-nums;
}
.savethedate__num-line { display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.savethedate__num-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
.savethedate__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--sand);
}
.savethedate__sub {
  margin-top: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7);
}

/* ============== Events ============== */

.events { background: var(--paper); }
.events__grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
.event-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2.4rem 1.6rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: transform 360ms cubic-bezier(.22,1,.36,1), box-shadow 360ms ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
/* ticket-stub notch */
.event-card::before, .event-card::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.event-card::before { left: -0.7rem; top: 50%; transform: translateY(-50%); }
.event-card::after { right: -0.7rem; top: 50%; transform: translateY(-50%); }

.event-card__kind {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.event-card__name {
  font-family: var(--script);
  font-size: 4.2rem;
  line-height: 0.85;
  margin: 0.6rem 0 1.4rem;
  color: var(--ink);
}
.event-card__rule {
  width: 3rem;
  height: 1px;
  background: var(--sand);
  margin: 0 auto 1.4rem;
}
.event-card__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.event-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}
.event-card__time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}
.event-card__addr {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
  font-style: normal;
}
.event-card__addr b { display: block; font-weight: 400; font-style: italic; font-family: var(--serif); font-size: 1rem; margin-bottom: 0.3rem; color: var(--ink); }

.events__map {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.6rem;
  display: grid;
  gap: 0.6rem;
}
.events__map iframe {
  width: 100%;
  height: 16rem;
  border: 0;
  filter: grayscale(0.4) contrast(0.95);
}
.events__map a {
  text-align: center;
  padding: 0.95rem 1rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 240ms ease;
}
.events__map a:hover { background: var(--ink-soft); }
.events__map a svg { width: 14px; height: 14px; }

/* ============== Countdown ============== */

.countdown {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(200, 155, 140, 0.16), transparent 50%),
    var(--paper-warm);
  text-align: center;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  max-width: 30rem;
  margin: 2.4rem auto 0;
}
.countdown__cell {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.4rem 0.4rem 1rem;
  position: relative;
  overflow: hidden;
}
.countdown__cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sand);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 800ms cubic-bezier(.4,0,.2,1);
}
.countdown__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

/* ============== Gallery (collage frame) ============== */

.gallery { background: var(--paper); overflow: hidden; }
.gallery__frame {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(0.6rem, 2vw, 1rem);
  box-shadow: var(--shadow-1);
  position: relative;
}
.gallery__frame::before, .gallery__frame::after {
  content: "";
  position: absolute;
  width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--sand);
  pointer-events: none;
}
.gallery__frame::before { top: 0.4rem; left: 0.4rem; border-right: 0; border-bottom: 0; }
.gallery__frame::after { bottom: 0.4rem; right: 0.4rem; border-left: 0; border-top: 0; }

.gcollage {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .gcollage { gap: 0.7rem; grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .gcollage { gap: 0.8rem; grid-template-columns: repeat(3, 1fr); }
}

/* Two cell types only — landscape & portrait — kept at native ratios */
.gc-l { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.gc-p { aspect-ratio: 2 / 3; }

.gc {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  cursor: pointer;
  transition: transform 360ms cubic-bezier(.22,1,.36,1);
}
.gc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 700ms cubic-bezier(.22,1,.36,1), filter 500ms ease;
}

.gc:hover img { transform: scale(1.04); filter: brightness(0.92); }
.gc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 23, 20, 0.6));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.gc:hover::after { opacity: 1; }
.gc__cap {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: all 300ms ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.gc__cap b {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--sand);
}
.gc:hover .gc__cap { opacity: 1; transform: translateY(0); }

/* ============== Gift / RSVP ============== */

.gift { background: var(--ink); color: var(--cream); }
.gift__intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: rgba(246, 241, 232, 0.78);
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.gift__grid {
  display: grid;
  gap: 1rem;
}
.bank {
  position: relative;
  border: 1px solid rgba(246, 241, 232, 0.18);
  padding: 1.6rem 1.4rem;
  background: rgba(246, 241, 232, 0.02);
  display: grid;
  gap: 0.5rem;
  transition: border-color 240ms ease;
}
.bank:hover { border-color: rgba(184, 163, 126, 0.55); }
.bank__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bank__label {
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--sand);
}
.bank__chip {
  width: 2rem;
  height: 1.4rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  position: relative;
}
.bank__chip::before, .bank__chip::after {
  content: "";
  position: absolute;
  inset: 30% 20%;
  border-top: 1px solid rgba(26, 23, 20, 0.3);
  border-bottom: 1px solid rgba(26, 23, 20, 0.3);
}
.bank__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.bank__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
}
.bank__holder {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(246, 241, 232, 0.78);
}
.bank__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(246, 241, 232, 0.3);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  transition: all 220ms ease;
}
.bank__copy:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.bank__copy.is-copied { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.bank__copy svg { width: 12px; height: 12px; }

/* ============== RSVP ============== */

.rsvp {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(184, 163, 126, 0.16), transparent 60%),
    var(--paper);
}

.rsvp__form {
  display: grid;
  gap: 1.1rem;
  max-width: 32rem;
  margin: 0 auto;
}
.rsvp__field { display: grid; gap: 0.5rem; }
.rsvp__field label {
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.rsvp__input,
.rsvp__textarea,
.rsvp__select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.rsvp__input:focus,
.rsvp__textarea:focus,
.rsvp__select:focus {
  border-color: var(--sand-deep);
  box-shadow: 0 0 0 3px rgba(184, 163, 126, 0.18);
}
.rsvp__textarea { resize: vertical; min-height: 6rem; font-style: italic; }

.rsvp__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.rsvp__choice {
  position: relative;
  cursor: pointer;
}
.rsvp__choice input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp__choice span {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
}
.rsvp__choice input:checked + span {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.rsvp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.rsvp__submit {
  margin-top: 0.5rem;
  padding: 1.15rem 1.4rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: background 240ms ease, transform 240ms ease;
  position: relative;
  overflow: hidden;
}
.rsvp__submit:hover { background: var(--sand-deep); }
.rsvp__submit svg { width: 14px; height: 14px; transition: transform 240ms ease; }
.rsvp__submit:hover svg { transform: translateX(4px); }

.rsvp__thanks {
  text-align: center;
  margin-top: 2.5rem;
  padding: 3rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  position: relative;
}
.rsvp__thanks::before, .rsvp__thanks::after {
  content: "";
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--sand);
}
.rsvp__thanks::before { top: 0.6rem; left: 0.6rem; border-right: 0; border-bottom: 0; }
.rsvp__thanks::after { bottom: 0.6rem; right: 0.6rem; border-left: 0; border-top: 0; }
.rsvp__thanks .script {
  font-size: 4rem;
  line-height: 1;
  color: var(--sand-deep);
  padding: 0.6rem 0 0.4rem;
}
.rsvp__thanks p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 22rem;
}

/* ============== Wishes wall ============== */

.wishes { background: var(--paper-warm); }
.wishes__list {
  display: grid;
  gap: 0.9rem;
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.4rem;
  margin-top: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
.wish {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.4rem;
  animation: wish-in 500ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes wish-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wish__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.wish__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}
.wish__chip {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  background: var(--paper-warm);
  color: var(--sand-deep);
  border: 1px solid var(--line);
}
.wish__chip.attending { color: var(--ink); background: var(--sand); border-color: var(--sand); }
.wish__msg {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.wish__time {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

/* ============== Closing ============== */

.closing {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: clamp(6rem, 14vw, 9rem) 1.4rem;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 230, 0.08), transparent 65%);
}
.closing__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}
.closing__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(246, 241, 232, 0.84);
  text-wrap: balance;
}
.closing__names {
  font-family: var(--script);
  font-size: clamp(5rem, 22vw, 8rem);
  line-height: 0.78;
  color: var(--cream);
  margin: 2rem 0 3rem;
}
.closing__names .amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.18em;
  color: var(--sand);
  display: block;
  font-weight: 300;
}
.closing__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--sand);
}
.closing__sig {
  margin-top: 2.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
}

/* ============== Lightbox ============== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  place-items: center;
  background: rgba(20, 17, 14, 0.94);
  backdrop-filter: blur(10px);
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(92vw, 60rem);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lb-in 400ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 232, 0.3);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.4);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 232, 0.3);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.4);
}
.lightbox__nav.prev { left: 1.2rem; }
.lightbox__nav.next { right: 1.2rem; }
.lightbox__nav svg, .lightbox__close svg { width: 16px; height: 16px; }
.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  color: rgba(246, 241, 232, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ============== Reveal animation ============== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.22,1,.36,1), transform 900ms cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.22,1,.36,1), transform 800ms cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* ============== Falling petals (small, monochrome dots) ============== */

.petals { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.petal {
  position: absolute;
  top: -2rem;
  width: 6px;
  height: 6px;
  border-radius: 50% 0 50% 0;
  background: var(--sand);
  opacity: 0;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translate3d(var(--drift), 110vh, 0) rotate(720deg); }
}

/* ============== Responsive ============== */

@media (min-width: 720px) {
  .couple__grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.4rem;
  }
  .couple__amp::before, .couple__amp::after { display: none; }

  .events__grid { grid-template-columns: 1fr 1fr; }

  .gift__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .rsvp__choices { grid-template-columns: 1fr; }
  .rsvp__row { grid-template-columns: 1fr; }
  .savethedate__big { grid-template-columns: 1fr; gap: 0.4rem; }
  .savethedate__big > span { font-size: 0.75rem; }
}

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