/* Ivory Jharokha — Shubh Vivah invitation */
:root {
  --ivory: #FBF6EE;
  --cream: #F6ECDF;
  --blush: #F2D6CF;
  --rose: #C9787C;
  --rose-deep: #A85A62;
  --peach: #F4C9A8;
  --gold: #B8914A;
  --gold-light: #E8D2A0;
  --ink: #4B3A31;
  --ink-soft: #7A6556;
  --dusk: #1F2B33;
  --dusk-2: #2E3A44;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --deva: "Tiro Devanagari Hindi", serif;
  --gold-grad: linear-gradient(135deg, #F6E3B4 0%, #C79B52 50%, #8A6430 100%);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --door-ease: cubic-bezier(.45, .05, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--caps);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin: 0 0 .8rem;
  color: var(--gold);
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1.4rem;
}
.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.3rem, 10vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 .8rem;
  color: var(--rose-deep);
}
.script-title--light { color: var(--gold-light); }
.script-title--sm { font-size: 2rem; margin-top: .4rem; }
.hi-line {
  font-family: var(--deva);
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--gold);
  margin: 0 0 .4rem;
}
.knot { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 1.6rem 0 1.2rem; }
.knot span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.knot span:last-child { transform: scaleX(-1); }
.knot i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--gold-light); }

.toran {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: min(118%, 760px); max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(75,58,49,.18));
}
@keyframes sway {
  0%, 100% { transform: translateX(-50%) rotate(-.5deg); }
  50% { transform: translateX(-50%) rotate(.5deg); }
}

/* ================= Intro ================= */
.intro {
  position: fixed; inset: 0; z-index: 50;
  overflow: hidden;
  background: #E9DCCB;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.is-film .intro__film { opacity: 1; }

/* The doors still, cut down the centre seam into two hinged leaves */
.portal {
  position: absolute; inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 45%;
  overflow: hidden;
}
.is-film .portal { visibility: hidden; }
.portal__view {
  position: absolute; inset: 0;
  background: url("media/lake-poster.webp") center / cover;
  transform: scale(1.12);
  transition: transform 4.5s var(--ease) .6s;
}
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  transform-style: preserve-3d;
  transition: transform 3.4s var(--door-ease) .15s;
  will-change: transform;
}
.door--left { left: 0; transform-origin: 0 50%; }
.door--right { right: 0; transform-origin: 100% 50%; }
.door__face {
  position: absolute; inset: 0;
  background: url("img/doors.webp") 0 50% / 200% 100%;
  backface-visibility: hidden;
}
.door--right .door__face { background-position: 100% 50%; }
.door__face::after {
  /* shade deepens as the leaf turns away from the light */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(75,50,30,0), rgba(75,50,30,.55));
  opacity: 0;
  transition: opacity 3.4s var(--door-ease) .15s;
}
.door--right .door__face::after { background: linear-gradient(270deg, rgba(75,50,30,0), rgba(75,50,30,.55)); }
.door__edge {
  /* marble thickness of the leaf, visible once it swings */
  position: absolute; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(90deg, #D9CBB4, #F3EADB 40%, #CDBB9E);
}
.door--left .door__edge { right: 0; transform-origin: 100% 50%; transform: rotateY(-90deg); }
.door--right .door__edge { left: 0; transform-origin: 0 50%; transform: rotateY(90deg); }
.portal__glow {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, #FFE9C4 30%, #FFF6E2 55%, transparent);
  box-shadow: 0 0 22px 6px rgba(255,214,160,.7);
  opacity: .85;
  animation: seam 3s ease-in-out infinite;
  transition: opacity .6s;
}
@keyframes seam { 50% { opacity: .45; } }
.is-swinging .portal__glow { opacity: 0; animation: none; }
.is-swinging .door--left { transform: rotateY(104deg); }
.is-swinging .door--right { transform: rotateY(-104deg); }
.is-swinging .door__face::after { opacity: 1; }
.is-swinging .portal__view { transform: scale(1); }

/* Cover text sits on the doors */
.seal {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 60px;
  text-align: center;
  transition: opacity .7s ease, transform .9s var(--ease);
}
.seal::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(92vw, 440px); height: min(70svh, 520px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(251,246,238,.92), rgba(251,246,238,.75) 55%, rgba(251,246,238,0));
}
.is-playing .seal { opacity: 0; transform: scale(.94); pointer-events: none; }

.medallion {
  position: relative;
  width: min(40vw, 170px); aspect-ratio: 1;
  filter: drop-shadow(0 10px 24px rgba(120,80,40,.35));
  animation: medal-in 1.4s var(--ease) both;
}
.medallion__petals { transform-origin: center; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes medal-in { from { opacity: 0; transform: scale(.8); } }
.medallion__mono, .hero__mono {
  font-family: var(--script);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.medallion__mono {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: min(13vw, 58px);
  padding: 0 .1em .1em 0;
}
.medallion__mono i, .hero__mono i { font-style: normal; margin-left: -.18em; position: relative; top: .14em; }

.seal__guest { margin: 1.2rem 0 0; display: grid; gap: .1rem; animation: rise 1s var(--ease) .4s both; }
.seal__guest[hidden] { display: none; }
.seal__guest-label { font-family: var(--script); font-size: 1.5rem; color: var(--rose-deep); }
.seal__guest-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--gold-light); padding: 0 1rem .2rem; }
.seal__eyebrow {
  font-family: var(--caps); font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  font-size: .62rem; color: var(--gold);
  margin: 1.4rem 0 .1rem;
  animation: rise 1s var(--ease) .5s both;
}
.seal__names {
  font-family: var(--script);
  font-size: clamp(1.6rem, min(10vw, 4.6svh), 3.1rem); /* fits the portrait column on wide screens too */
  line-height: 1.2;
  margin: 0 0 1.5rem;
  white-space: nowrap;
  color: var(--ink);
  animation: rise 1s var(--ease) .75s both;
}
.seal__names span { color: var(--rose); font-size: .75em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.tap {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.7rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(251,246,238,.85);
  color: var(--ink);
  font-family: var(--caps); font-weight: 500; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(120,80,40,.18);
  animation: rise 1s var(--ease) 1s both;
}
.tap:hover, .tap:focus-visible { background: #fff; }
.tap__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 0 rgba(201,120,124,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(201,120,124,0); } 100% { box-shadow: 0 0 0 0 rgba(201,120,124,0); } }

/* ================= Controls ================= */
.controls {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; gap: 10px; align-items: center;
}
.controls[hidden] { display: none; }
.ctl {
  border: 1px solid rgba(184,145,74,.7);
  background: rgba(251,246,238,.82);
  color: var(--ink);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-family: var(--caps); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(75,58,49,.15);
}
.ctl[hidden] { display: none; }
.ctl--round { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.ctl svg { width: 20px; height: 20px; fill: currentColor; }
.ctl .ico-off { display: none; }
.ctl[aria-pressed="false"] .ico-on { display: none; }
.ctl[aria-pressed="false"] .ico-off { display: block; }

.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
  text-align: center;
  background: #E9DCCB;
}
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  /* a soft ivory haze behind the names, leaving the pool clear below */
  background:
    radial-gradient(ellipse 85% 42% at 50% 40%, rgba(251,243,233,.9), rgba(251,243,233,.6) 55%, rgba(251,243,233,0) 100%),
    linear-gradient(180deg, rgba(251,246,238,.35), rgba(251,246,238,0) 45%);
}
.toran--hero { width: min(112%, 640px); }
.toran--hero, .toran--section {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
.hero__text {
  position: relative; z-index: 3;
  padding: min(21svh, 170px) 16px 0;
  max-width: 560px;
}
.hero__mono { font-size: 3.2rem; margin: 0 0 .5rem; }
.hero__mono--ink { font-size: 2.8rem; margin-bottom: .2rem; }
.hero .eyebrow { color: var(--rose-deep); }
.hero__names {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 15vw, 4.8rem);
  line-height: .95;
  margin: .2rem 0 1rem;
  display: flex; flex-direction: column; align-items: center;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(251,240,228,.9);
}
.hero__names small {
  display: block;
  font-family: var(--caps); font-weight: 500;
  font-size: .62rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .55rem;
}
.hero__names em { font-family: var(--script); font-style: normal; font-size: .8em; color: var(--rose); margin: .05em 0 .1em; }
.hero__date {
  display: inline-block;
  font-family: var(--caps); font-weight: 500; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink);
  padding: .55rem 1.1rem;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  background: rgba(251,246,238,.6);
  margin: 0;
}
.scroll-cue {
  position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; z-index: 3;
  width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff;
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.fade { opacity: 0; }
.is-open .fade { animation: fade-up 1.2s var(--ease) var(--d, 0s) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ================= Marble frame panel (9-slice of the carved arch) ================= */
.invite, .family {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244,201,168,.35), transparent 60%),
    linear-gradient(180deg, var(--blush), var(--cream) 30%, var(--cream));
  padding: 3.4rem 16px 3.8rem;
}
.family { background: linear-gradient(180deg, var(--cream), var(--blush)); }
.panel {
  --w: min(calc(100vw - 32px), 540px);
  position: relative; isolation: isolate;
  width: var(--w); margin: 0 auto;
  /* content starts where the arch opens out and stops above the corner florals */
  padding: calc(var(--w) * 400 / 1024) calc(var(--w) * 160 / 1024) calc(var(--w) * 420 / 1024);
  text-align: center;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-style: solid;
  border-width: calc(var(--w) * 600 / 1024) calc(var(--w) * 130 / 1024) calc(var(--w) * 440 / 1024);
  border-image: url("img/frame.webp") 600 130 440 130 fill stretch; /* slices in px of the 1024×1536 art */
  filter: drop-shadow(0 18px 30px rgba(120,80,40,.18));
}
.panel .script-title { font-size: clamp(1.8rem, 7.6vw, 2.6rem); }
.panel__copy { font-style: italic; color: var(--ink-soft); margin: 0 auto 1.2rem; max-width: 20em; font-size: 1.02rem; line-height: 1.45; }
.panel__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1.1; margin: .1rem 0 .5rem; color: var(--ink); }
.panel__with { font-family: var(--script); font-size: 1.9rem; color: var(--rose); margin: .5rem 0 .1rem; line-height: 1; }
.panel__close { font-style: italic; color: var(--ink-soft); margin: 0; }
.kin { margin: 0 0 .5rem; font-size: .98rem; color: var(--ink-soft); line-height: 1.35; }
.kin small { display: block; font-family: var(--caps); font-size: .55rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .1rem; }

/* ================= Story ================= */
.story {
  background: linear-gradient(180deg, var(--cream), var(--ivory));
  padding: 3rem 16px 4.5rem;
  display: grid; gap: 2.2rem;
  justify-items: center;
}
/* The couple film framed by the carved marble jharokha, its cream centre cut away */
.story__arch {
  position: relative;
  width: min(84vw, 380px);
  aspect-ratio: 2 / 3;
  filter: drop-shadow(0 22px 34px rgba(120,80,40,.25));
}
.story__film {
  position: absolute; top: 3%; bottom: 5%; left: 7%; right: 7%;
  width: 86%; height: 92%;
  object-fit: cover; object-position: 50% 40%;
}
.story__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story__text { max-width: 30rem; text-align: center; }
.story__text p { color: var(--ink-soft); }
.story .display { color: var(--ink); }
.countdown { text-align: center; width: 100%; max-width: 30rem; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown__grid div {
  padding: 1.4rem 0 .7rem;
  background: #fff;
  border: 1px solid rgba(184,145,74,.45);
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 10px 24px rgba(120,80,40,.08), inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(232,210,160,.7);
}
.countdown__grid span { display: block; font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--rose-deep); line-height: 1.1; }
.countdown__grid small { font-family: var(--caps); font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ================= Saat Phere ================= */
.phere {
  position: relative;
  background: var(--ivory);
  /* clear the toran: it is min(120%, 700px) wide at a 1200:469 ratio */
  padding: calc(min(120vw, 700px) * .39 + .5rem) 16px 4.5rem;
  text-align: center;
  overflow: hidden;
}
.toran--section { width: min(120%, 700px); }
.phere .display { color: var(--ink); }
.phere__intro { max-width: 30rem; margin: 0 auto 2.4rem; color: var(--ink-soft); }
.vows {
  list-style: none; margin: 0 auto; padding: 0; max-width: 34rem;
  display: grid; gap: .9rem; text-align: left;
  counter-reset: vow;
}
.vow {
  display: grid; grid-template-columns: 58px 1fr; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem 1rem .8rem;
  background: #fff;
  border: 1px solid rgba(184,145,74,.3);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(120,80,40,.07);
}
.vow h3 { font-family: var(--caps); font-weight: 500; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 .15rem; color: var(--gold); }
.vow p { margin: 0; font-size: 1.04rem; color: var(--ink); line-height: 1.4; }
.lotus { width: 58px; height: 46px; overflow: visible; }
.lotus path { fill: #F7EAE6; stroke: var(--rose); stroke-width: 1.1; transform-origin: 30px 40px; transition: transform 1.2s var(--ease), fill 1.2s; }
.lotus .p-l { transform: rotate(28deg) scaleY(.5); }
.lotus .p-r { transform: rotate(-28deg) scaleY(.5); }
.lotus .p-c { transform: scaleY(.45); }
.lotus .flame { fill: #F6B860; stroke: none; opacity: 0; transform-origin: 30px 12px; transition: opacity .8s 1s; }
.vow.is-in .lotus path { transform: none; fill: #F4CFCB; }
.vow.is-in .lotus .p-c { fill: #EDB3B0; }
.vow.is-in .lotus .flame { opacity: 1; animation: flicker 1.6s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(.9, .95); } to { transform: scale(1.05, 1.1); } }

/* ================= Events over the diya pool ================= */
.events { position: relative; color: var(--ivory); text-align: center; background: var(--dusk); }
.events__bg { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; }
.events__film { width: 100%; height: 100%; object-fit: cover; }
.events__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,43,51,.55), rgba(31,43,51,.25) 40%, rgba(31,43,51,.5));
}
.events__inner { position: relative; padding: 4.5rem 16px 5rem; }
.events .eyebrow { color: var(--gold-light); }
.day { max-width: 34rem; margin: 0 auto 2.4rem; }
.day__label {
  display: inline-block;
  font-family: var(--caps); font-weight: 500; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--dusk); background: var(--gold-light);
  padding: .45rem 1rem; border-radius: 999px;
  margin: 0 0 1.1rem;
}
.event {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1.6rem 1.3rem 1.3rem;
  border-radius: 140px 140px 18px 18px;
  background: rgba(251,246,238,.93);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 5px rgba(251,246,238,.93), inset 0 0 0 6px var(--gold-light);
  backdrop-filter: blur(6px);
}
.event__diya { width: 46px; height: 40px; margin: 0 auto .4rem; }
.event__diya .flame { transform-origin: 23px 18px; animation: flicker 1.3s ease-in-out infinite alternate; }
.event__time { font-family: var(--caps); font-weight: 500; font-size: .66rem; letter-spacing: .28em; color: var(--gold); margin: 0 0 .1rem; }
.event__name { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .3rem; }
.event__place { font-weight: 600; margin: 0; }
.event__addr { margin: 0 0 .4rem; color: var(--ink-soft); font-size: .98rem; }
.event__note { margin: 0; font-style: italic; color: var(--ink-soft); font-size: .98rem; }
.event__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: .6rem 1.2rem;
  border: 1px solid var(--rose-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--rose-deep);
  font-family: var(--caps); font-weight: 500; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: var(--rose-deep); color: #fff; }
.btn--solid { background: var(--rose-deep); color: #fff; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--ink); }
.btn--ghost { border-color: var(--gold-light); color: var(--gold-light); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(232,210,160,.15); color: var(--gold-light); }

/* ================= Family ================= */
.panel .hi-line, .panel .hero__mono { margin-top: calc(var(--w) * -150 / 1024); }
.panel .kin { font-size: .92rem; }
.family__cols { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin-top: 1.4rem; }
.family__cols .eyebrow { font-size: .55rem; letter-spacing: .2em; min-height: 2.2em; }
.family__cols ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; line-height: 1.75; color: var(--ink); }
.family__cols em { color: var(--ink-soft); font-size: .9em; }
.family__cols > div + div { border-left: 1px solid rgba(184,145,74,.4); }
.stars { font-size: 1.3rem; margin: 0; color: var(--ink); }
.stars i { color: var(--gold); font-style: normal; margin: 0 .2rem; }

/* ================= RSVP ================= */
.rsvp {
  background: var(--ivory);
  padding: 4.5rem 16px;
  text-align: center;
}
.rsvp__form {
  max-width: 28rem; margin: 0 auto;
  display: grid; gap: 1.1rem;
  text-align: left;
}
.field { display: grid; gap: .35rem; }
.field > span, .choice legend { font-family: var(--caps); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.field small { text-transform: none; letter-spacing: 0; font-family: var(--serif); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1.05rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(184,145,74,.5);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.choice legend { margin-bottom: .4rem; }
.choice label {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(184,145,74,.4); border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.choice input { accent-color: var(--rose-deep); width: 18px; height: 18px; }
.choice label:has(input:checked) { background: #FBEDEA; border-color: var(--rose); }
.choice--chips { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.choice--chips legend { grid-column: 1 / -1; }
.rsvp__actions { display: grid; gap: .6rem; margin-top: .4rem; }

/* ================= Footer ================= */
.foot {
  position: relative;
  background: linear-gradient(180deg, var(--dusk-2), var(--dusk));
  color: var(--ivory);
  text-align: center;
  /* clear the full toran: min(120%, 700px) wide at a 1200:727 ratio */
  padding: calc(min(120vw, 700px) * .6 + 1rem) 16px calc(5rem + env(safe-area-inset-bottom));
  overflow: hidden;
}
.toran--foot { width: min(120%, 700px); }
.foot__host { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.1; margin: 0 0 .3rem; }
.foot__sub { margin: 0; font-style: italic; color: #D9CBBB; }
.foot__sign { margin: 1.8rem 0 1.6rem; color: var(--gold-light); }

/* ================= Reveal + toast ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: .7rem 1.1rem;
  background: var(--ink); color: var(--ivory);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  font-size: .98rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ================= Wider screens ================= */
@media (min-width: 820px) {
  .story { grid-template-columns: auto minmax(0, 30rem); align-items: center; justify-content: center; column-gap: 4rem; }
  .story__text { text-align: left; }
  .countdown { grid-column: 1 / -1; }
  /* keep the tall art centred as a portrait column over a blurred wash of itself */
  .intro { background: url("img/doors.webp") center / cover; }
  .intro::before, .hero::before {
    content: ""; position: absolute; inset: -40px;
    background: inherit;
    filter: blur(30px) brightness(.97);
  }
  .hero { background: url("media/lake-poster.webp") center / cover; }
  .portal, .intro__film { left: 50%; right: auto; width: 56.25svh; transform: translateX(-50%); }
  .hero__film { left: calc(50% - 28.125svh); right: auto; width: 56.25svh; }
  .portal, .intro__film { box-shadow: 0 0 60px rgba(75,58,49,.35); }
}

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