/* ==========================================================
   Kelsy & Novin — Lilac, Butter Yellow & Ivory
   ========================================================== */

:root {
  /* Palette (from the moodboard) */
  --lilac:       #D6C6E8;
  --butter:      #F3E08D;
  --ivory:       #F7F6EE;
  --cream:       #FFF4D6;
  --lilac-mist:  #E9E1F5;
  --sage:        #8DBB7E;

  /* Deeper tones for text & contrast */
  --plum:        #3B3148;
  --plum-soft:   #5E5470;
  --lilac-deep:  #7A639D;
  --lilac-dark:  #5F4A80;
  --sage-deep:   #4F7A45;
  --butter-deep: #C7A73B;

  --bg: var(--ivory);
  --text: var(--plum);
  --muted: var(--plum-soft);
  --line: rgba(122, 99, 157, .22);
  --card: #FFFFFF;

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

  --radius: 14px;
  --shadow: 0 1px 2px rgba(59,49,72,.04), 0 8px 28px rgba(59,49,72,.07);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lilac-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; color: var(--plum); }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cream); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* Placeholder content still to confirm — easy to spot, search "tbc" */
.tbc { background: linear-gradient(transparent 55%, rgba(243,224,141,.75) 55%); }

/* ---------- Layout ---------- */
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--mist  { background: var(--lilac-mist); }
.section--cream { background: var(--cream); }
.section--lilac { background: linear-gradient(180deg, var(--lilac-mist), var(--lilac)); }

.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; font-weight: 600; color: var(--sage-deep); margin-bottom: .8em;
}
.sprig { width: 120px; height: 40px; color: var(--sage); display: block; margin: 4px auto 0; }
.lede { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--plum); }
.sub-head { text-align: center; margin: 64px 0 24px; font-size: 1.9rem; }
.fine { font-size: .85rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }
.btn-primary { background: var(--lilac-dark); color: #fff; }
.btn-primary:hover { background: var(--plum); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--plum); border-color: var(--lilac-deep); }
.btn-ghost:hover { background: #fff; color: var(--plum); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,238,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav-mark { font-family: var(--serif); font-size: 1.6rem; color: var(--plum); text-decoration: none; letter-spacing: .04em; }
.nav-mark span { font-style: italic; color: var(--lilac-deep); margin: 0 .12em; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  display: block; padding: 8px 12px; text-decoration: none; color: var(--plum);
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px;
}
.nav-links a:hover { background: var(--lilac-mist); }
.nav-links .nav-cta { background: var(--lilac-dark); color: #fff; padding-inline: 18px; margin-left: 6px; }
.nav-links .nav-cta:hover { background: var(--plum); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 1.5px; background: var(--plum); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; box-shadow: 0 16px 30px rgba(59,49,72,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: .85rem; border-radius: 8px; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; padding: 14px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 16px 48px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(243,224,141,.55), transparent 70%),
    radial-gradient(ellipse 55% 50% at 90% 85%, rgba(141,187,126,.28), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(214,198,232,.75), transparent 70%),
    var(--ivory);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.names {
  font-family: var(--script); font-weight: 400; color: var(--plum);
  font-size: clamp(3.6rem, 13vw, 8.2rem); line-height: 1.05; margin: 0;
}
.names .amp { color: var(--lilac-deep); font-size: .7em; padding: 0 .1em; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.75rem); color: var(--plum-soft); margin: .2em 0 .4em; }
.hero-date { font-family: var(--serif); font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 500; margin: 18px 0 4px; letter-spacing: .02em; }
.hero-place { font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin: 0 0 32px; }
.hero-note { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); margin-top: 22px; }

.hero-tulip { position: absolute; color: var(--lilac-deep); opacity: .5; pointer-events: none; }
.hero-tulip--l { width: 110px; height: 220px; left: max(2vw, 8px); bottom: 6%; transform: rotate(-8deg); }
.hero-tulip--r { width: 90px; height: 180px; right: max(3vw, 8px); top: 10%; transform: rotate(10deg) scaleX(-1); color: var(--sage-deep); }
@media (max-width: 640px) {
  .hero-tulip--l { width: 60px; height: 120px; opacity: .35; }
  .hero-tulip--r { width: 52px; height: 104px; opacity: .35; top: 4%; }
}

.countdown { display: flex; justify-content: center; gap: 12px; margin: 0 auto 32px; }
.countdown div {
  min-width: 92px; padding: 14px 10px 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.7); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.countdown span { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--plum); }
.countdown small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 400px) { .countdown div { min-width: 0; flex: 1; } .countdown span { font-size: 2rem; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cal-wrap { position: relative; }
.cal-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 210px; padding: 6px; text-align: left;
}
.cal-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--plum); text-decoration: none; font-size: .92rem; }
.cal-menu a:hover { background: var(--lilac-mist); }


/* ---------- Story ---------- */
.story-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.story-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  border-top: 3px solid var(--lilac);
}
.story-card:nth-child(2) { border-top-color: var(--butter); }
.story-card:nth-child(3) { border-top-color: var(--sage); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

.story-photo {
  margin: 0 auto 40px; max-width: 360px; aspect-ratio: 3/4;
  border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px var(--lilac), var(--shadow);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.g-item {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid; background: var(--lilac-mist); box-shadow: var(--shadow);
}
.g-item img { width: 100%; height: auto; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.03); }
.gallery-note { margin-top: 24px; }
@media (max-width: 640px) { .gallery { columns: 2; column-gap: 10px; } .g-item { margin-bottom: 10px; } }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(35,28,44,.9); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 0 40px; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 118px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--lilac), var(--sage));
}
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 112px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--butter); border: 3px solid var(--ivory); box-shadow: 0 0 0 1.5px var(--lilac-deep);
}
.timeline time { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-align: right; color: var(--lilac-dark); padding-top: 4px; }
.timeline h3 { font-size: 1.45rem; margin-bottom: .1em; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 34px; }
  .timeline li::before { left: 1px; top: 20px; }
  .timeline time { text-align: left; font-size: 1.15rem; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.callout { border-radius: var(--radius); padding: 24px 28px; background: #fff; box-shadow: var(--shadow); }
.callout--sage { border-left: 4px solid var(--sage); }
.callout h3 { font-size: 1.4rem; }
.callout p { margin: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .card-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .card-grid, .card-grid--2, .card-grid--5 { grid-template-columns: 1fr; } }
.info-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card p:last-child { margin-bottom: 0; }
.card-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--sage-deep); margin-bottom: .5em; }
.tip-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.venue-name { font-size: 2.2rem; margin-bottom: .1em; }
.address { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--lilac-mist); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.estate-path { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; align-items: center; gap: 0; }
.estate-path li { flex: 1; text-align: center; position: relative; }
.estate-path li + li::before {
  content: ""; position: absolute; top: 18px; right: 50%; width: 100%; height: 0;
  border-top: 2px dashed var(--lilac); z-index: 0;
}
.estate-path span {
  position: relative; z-index: 1; display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--lilac-mist); font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
}
.estate-path li:nth-child(2) span { background: var(--cream); }
.estate-path li:nth-child(3) span { background: #E3EFDD; }
.estate-path small { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .venue-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .estate-path span { padding: 6px 10px; font-size: 1rem; } }

/* ---------- Stay ---------- */
.stay-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  background: #fff; border-radius: calc(var(--radius) + 4px); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid rgba(199,167,59,.3);
}
.stay-feature h3 { font-size: 2rem; }
.promo { text-align: center; background: var(--lilac-mist); border-radius: var(--radius); padding: 24px 20px; }
.promo-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.promo-code {
  font: 600 1.35rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--plum);
  background: #fff; border: 1.5px dashed var(--lilac-deep); border-radius: 10px; padding: 12px 18px; cursor: pointer;
}
.promo-code:hover { background: var(--cream); }
.promo-hint { font-size: .78rem; color: var(--muted); margin: 6px 0 16px; }
.promo .fine { margin: 14px 0 0; }
.tip { margin-top: 24px; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .stay-feature { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- Dress code ---------- */
.dress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .dress-grid { grid-template-columns: 1fr; } }
.info-card--avoid { background: #FBF9F4; border: 1px dashed rgba(122,99,157,.35); box-shadow: none; }
.avoid-swatches { display: flex; gap: 8px; margin-bottom: 12px; }
.avoid-swatches span {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(59,49,72,.2); position: relative; overflow: hidden;
}
.avoid-swatches span::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 1.5px;
  background: #B4546A; transform: rotate(-45deg);
}
.moodboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.moodboard figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); background: var(--lilac-mist); }
.moodboard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moodboard figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .moodboard { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Food ---------- */
.menu-list { list-style: none; padding: 0; margin: 0 auto 32px; max-width: 520px; text-align: center; }
.menu-list li { font-family: var(--serif); font-size: 1.4rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-list li:last-child { border-bottom: 0; }

/* ---------- RSVP ---------- */
.rsvp-form {
  margin-top: 32px; background: rgba(255,255,255,.88); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow);
}
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.field small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--plum); background: var(--ivory);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--lilac-deep); box-shadow: 0 0 0 3px rgba(122,99,157,.18); }
textarea { resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--ivory); font-size: .92rem; transition: background .2s, border-color .2s;
}
.choice input:checked + span { background: var(--lilac-mist); border-color: var(--lilac-deep); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--lilac-deep); outline-offset: 2px; }
.field.invalid input, .field.invalid textarea, .field.invalid .choice span { border-color: #B4546A; }
.form-status { margin: 14px 0 0; text-align: center; min-height: 1.4em; font-weight: 500; }
.form-status.ok { color: var(--sage-deep); }
.form-status.err { color: #9E3D55; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--lilac-deep); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 64px 16px 48px; background: var(--plum); color: var(--lilac-mist);
}
.monogram {
  width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%;
  border: 1px solid rgba(233,225,245,.4); display: grid; place-items: center; position: relative;
}
.monogram span { font-family: var(--serif); font-size: 2.2rem; color: #fff; letter-spacing: .04em; }
.monogram em { color: var(--butter); margin: 0 .1em; }
.monogram-tulip { position: absolute; width: 22px; height: 44px; bottom: -22px; left: 50%; transform: translateX(-50%); color: var(--sage); background: var(--plum); padding: 0 2px; }
.footer-date { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .25em; margin: 34px 0 4px; color: #fff; }
.footer-place { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.back-top { color: var(--butter); font-size: .85rem; text-decoration: none; }
.back-top:hover { color: #fff; }

.hero-date sup { font-size: .5em; vertical-align: super; line-height: 0; margin-left: .04em; }

/* ---------- Venue photos ---------- */
.venue-banner { margin: 0 0 48px; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21/9; background: var(--lilac-mist); }
.venue-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.spot { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.spot figcaption { padding: 20px 24px 24px; }
.spot figcaption p:last-child { margin: 0; }
@media (max-width: 760px) {
  .venue-banner { aspect-ratio: 4/3; margin-bottom: 32px; }
  .spots { grid-template-columns: 1fr; }
}

/* ==========================================================
   Motion & modern touches
   ========================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* ---------- Opening reveal ---------- */
.intro { position: fixed; inset: 0; z-index: 200; cursor: pointer; }
.intro-panel { position: absolute; left: 0; right: 0; height: 50.5vh; background: var(--lilac-mist); transition: transform 1s var(--ease-out); }
.intro-panel--top { top: 0; background: linear-gradient(180deg, #E2D7F1, var(--lilac-mist)); }
.intro-panel--bottom { bottom: 0; background: linear-gradient(0deg, var(--cream), var(--lilac-mist)); }
.intro-mark { position: absolute; inset: 0; justify-content: center; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .5s ease, transform .8s var(--ease-out); }
.intro-names { font-family: var(--script); font-size: clamp(4rem, 14vw, 7rem); line-height: 1; color: var(--plum); opacity: 0; animation: blurIn 1.1s .15s var(--ease-out) forwards; }
.intro-names em { font-style: normal; color: var(--lilac-deep); font-size: .7em; }
.intro-line { width: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--sage), transparent); animation: lineGrow .9s .7s var(--ease-out) forwards; }
.intro-date { font-family: var(--serif); letter-spacing: .4em; font-size: 1.05rem; color: var(--plum-soft); opacity: 0; animation: fadeUp .8s 1s var(--ease-out) forwards; }
.intro--done { pointer-events: none; }
.intro--done .intro-panel--top { transform: translateY(-101%); }
.intro--done .intro-panel--bottom { transform: translateY(101%); }
.intro--done .intro-mark { opacity: 0; transform: scale(1.08); }
html.intro-playing { overflow: hidden; }

@keyframes blurIn { from { opacity: 0; filter: blur(14px); transform: scale(.94); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { to { width: 160px; } }

/* ---------- Scroll progress & header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lilac-deep), var(--butter), var(--sage)); }
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(59,49,72,.08); background: rgba(247,246,238,.94); }
.nav-links a:not(.nav-cta) { position: relative; }
@media (min-width: 1081px) {
  .nav-links a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
    background: var(--lilac-deep); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
  }
  .nav-links a:not(.nav-cta):hover { background: none; }
  .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0;
}
.hero::before { width: 46vmax; height: 46vmax; background: var(--lilac); top: -18vmax; right: -12vmax; animation: floatA 18s ease-in-out infinite alternate; }
.hero::after { width: 38vmax; height: 38vmax; background: var(--butter); bottom: -16vmax; left: -12vmax; opacity: .45; animation: floatB 22s ease-in-out infinite alternate; }
@keyframes floatA { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes floatB { to { transform: translate(10vmax, -5vmax) scale(1.15); } }

.hero-inner > * { opacity: 0; animation: fadeUp 1s var(--ease-out) forwards; }
.hero-inner > .names { animation-name: blurIn; animation-duration: 1.4s; }
.hero-inner > :nth-child(1) { animation-delay: .1s; }
.hero-inner > :nth-child(2) { animation-delay: .25s; }
.hero-inner > :nth-child(3) { animation-delay: .55s; }
.hero-inner > :nth-child(4) { animation-delay: .7s; }
.hero-inner > :nth-child(5) { animation-delay: .8s; }
.hero-inner > :nth-child(6) { animation-delay: .9s; }
.hero-inner > :nth-child(7) { animation-delay: 1.0s; }
.hero-inner > :nth-child(8) { animation-delay: 1.1s; }
.hero-inner > :nth-child(9) { animation-delay: 1.2s; }
html.intro-playing .hero-inner > * { animation-play-state: paused; }

.names .amp {
  background: linear-gradient(110deg, var(--lilac-deep) 30%, var(--butter-deep) 50%, var(--lilac-deep) 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s 2s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

.hero-tulip--l { animation: sway 6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hero-tulip--r { animation: swayR 7s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes sway { from { transform: rotate(-11deg); } to { transform: rotate(-4deg); } }
@keyframes swayR { from { transform: rotate(13deg) scaleX(-1); } to { transform: rotate(6deg) scaleX(-1); } }

.hero-inner > .sprig { stroke-dasharray: 160; stroke-dashoffset: 160; animation: fadeUp .8s .6s var(--ease-out) forwards, draw 1.8s .6s ease forwards; }
html.intro-playing .hero-inner > .sprig { animation-play-state: paused, paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.petals span {
  position: absolute; top: -20px; border-radius: 100% 0 100% 0; opacity: .75;
  animation-name: fall, flutter; animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite; animation-direction: normal, alternate;
}
@keyframes fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .75; }
  90% { opacity: .6; }
  100% { transform: translate3d(var(--drift), 105vh, 0) rotate(540deg); opacity: 0; }
}
@keyframes flutter { from { margin-left: -12px; } to { margin-left: 12px; } }

/* Countdown: glassy tiles + a pop on each tick */
.countdown div {
  background: rgba(255,255,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.8); transition: transform .3s var(--ease-out);
}
.countdown div:hover { transform: translateY(-3px); }
.countdown div:last-child span { color: var(--lilac-deep); }
.countdown span.tick { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@media (max-width: 480px) {
  .countdown { gap: 8px; }
  .countdown div { min-width: 0; flex: 1; padding: 12px 4px 8px; }
  .countdown span { font-size: 1.9rem; }
  .countdown small { font-size: .6rem; letter-spacing: .14em; }
}


/* ---------- Section heads ---------- */
.section-head .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(141,187,126,.16); border: 1px solid rgba(79,122,69,.18);
}
h2 { letter-spacing: -.01em; }
.sprig { transition: stroke-dashoffset 1.6s ease .2s; }
.reveal .sprig { stroke-dasharray: 160; stroke-dashoffset: 160; }
.reveal.in .sprig { stroke-dashoffset: 0; }

/* ---------- Scroll reveals ---------- */
.reveal { transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.1s var(--ease-out); }
.reveal--photo { clip-path: inset(12% 6% 0 6% round var(--radius)); }
.reveal--photo img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.reveal--photo.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.reveal--photo.in img { transform: scale(1); }
.story-photo.reveal--photo { clip-path: inset(12% 6% 0 6%); }
.story-photo.reveal--photo.in { clip-path: inset(0); }

/* Timeline line fills as you scroll */
.timeline::before { transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .2s linear; }
.timeline::after {
  content: ""; position: absolute; left: 118px; top: 10px; bottom: 10px; width: 2px; z-index: -1;
  background: rgba(122,99,157,.18);
}
.timeline li.in::before { animation: dotPop .6s var(--ease-out); }
@keyframes dotPop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .timeline::after { left: 7px; } }

/* ---------- Hover lift ---------- */
.info-card, .story-card, .spot, .faq details, .stay-feature {
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.info-card:hover, .story-card:hover, .spot:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(59,49,72,.05), 0 18px 40px rgba(59,49,72,.12);
}
.spot img { transition: transform .8s var(--ease-out); }
.spot:hover img { transform: scale(1.04); }
.tip-card:hover .tip-icon { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }

/* ---------- Buttons: shine sweep ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(95,74,128,.3); }
.nav-cta { transition: box-shadow .3s ease, background .2s; }
.nav-cta:hover { box-shadow: 0 6px 16px rgba(95,74,128,.3); }

/* FAQ answer slides in */
.faq details[open] p { animation: fadeUp .5s var(--ease-out); }
.faq details[open] { box-shadow: 0 0 0 1.5px var(--lilac), var(--shadow); }

/* Monogram spins its ring slowly */
.monogram::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed rgba(243,224,141,.45); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-inner > *, .intro-names, .intro-date { opacity: 1 !important; }
  .petals, .intro { display: none !important; }
  .sprig, .hero .sprig { stroke-dashoffset: 0 !important; }
  .timeline::before { transform: none; }
}

/* Layering fixes for the animated pieces */
.hero { isolation: isolate; }
.hero::before, .hero::after { z-index: -1; }
.hero-actions { position: relative; z-index: 3; }
.timeline { isolation: isolate; }

/* Mood board: five across on desktop, swipeable row on phones */
.moodboard { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) and (min-width: 761px) { .moodboard { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .moodboard {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 16px; scrollbar-width: none;
  }
  .moodboard::-webkit-scrollbar { display: none; }
  .moodboard figure { flex: 0 0 68%; scroll-snap-align: center; }
}

/* ==========================================================
   Welcome questionnaire
   ========================================================== */
html.gate-open { overflow: hidden; }
html.gate-open .intro * { animation-play-state: paused !important; }

.gate {
  position: fixed; inset: 0; z-index: 300; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 60% 50% at 12% 10%, rgba(243,224,141,.55), transparent 70%),
    radial-gradient(ellipse 60% 55% at 90% 90%, rgba(141,187,126,.25), transparent 70%),
    radial-gradient(ellipse 70% 60% at 88% 8%, rgba(214,198,232,.85), transparent 70%),
    var(--ivory);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
.gate[hidden] { display: none; }
.gate::before, .gate::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; pointer-events: none;
}
.gate::before { width: 40vmax; height: 40vmax; background: var(--lilac); opacity: .45; top: -16vmax; right: -10vmax; animation: floatA 16s ease-in-out infinite alternate; }
.gate::after { width: 34vmax; height: 34vmax; background: var(--butter); opacity: .4; bottom: -14vmax; left: -10vmax; animation: floatB 20s ease-in-out infinite alternate; }
.gate--leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }

.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

.gate-card {
  position: relative; width: min(580px, 100%); min-height: 400px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 28px 36px; text-align: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(59,49,72,.05), 0 30px 70px rgba(59,49,72,.14);
  animation: cardIn 1s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.gate-badge {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  border: 1.5px solid var(--lilac); box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 0 0 6.5px var(--lilac-mist);
  color: var(--lilac-deep); animation: bob 3.2s ease-in-out infinite;
}
.gate-badge svg { width: 26px; height: 52px; }
@keyframes bob { 50% { transform: translateY(-5px); } }

.gate-steps { display: grid; width: 100%; }
.gate-step { grid-area: 1 / 1; transition: opacity .5s ease, transform .6s var(--ease-out); }

.gate-eyebrow {
  font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep);
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: rgba(141,187,126,.16); border: 1px solid rgba(79,122,69,.18); margin-bottom: 18px;
}
.gate-q { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 7vw, 3.3rem); line-height: 1.08; margin: 0 auto; max-width: 13ch; color: var(--plum); }
.gate-ring { display: inline-block; animation: ringWiggle 2.6s ease-in-out 1.2s infinite; transform-origin: 50% 80%; }
@keyframes ringWiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg) scale(1.1); } 84% { transform: rotate(10deg) scale(1.1); } 92% { transform: rotate(-4deg); } }

.gate-actions { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; min-height: 58px; }
.gate-yes, .gate-no {
  font: 600 .9rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 40px; border-radius: 14px; cursor: pointer; white-space: nowrap;
}
.gate-yes {
  --grow: 1; position: relative; overflow: hidden; z-index: 1;
  border: 0; color: #fff; background: linear-gradient(135deg, var(--lilac-deep), var(--lilac-dark));
  box-shadow: 0 10px 26px rgba(95,74,128,.32);
  transform: scale(var(--grow)); transition: transform .35s var(--ease-out), box-shadow .3s;
  animation: yesGlow 2.4s ease-in-out infinite;
}
.gate-yes:hover { transform: scale(calc(var(--grow) * 1.05)); }
.gate-yes::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%); animation: yesShine 3.2s ease-in-out 1.5s infinite;
}
@keyframes yesGlow { 50% { box-shadow: 0 10px 34px rgba(95,74,128,.5), 0 0 0 6px rgba(214,198,232,.45); } }
@keyframes yesShine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

.gate-no {
  background: rgba(255,255,255,.9); color: var(--plum); border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(59,49,72,.08); z-index: 2; touch-action: none; user-select: none; -webkit-user-select: none;
}
.gate-no.is-loose { position: absolute; margin: 0; transition: left .38s var(--ease-out), top .38s var(--ease-out); }

.gate-hint { min-height: 1.4em; margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.gate-foot { font: 500 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0; }

@media (max-width: 480px) {
  .gate-card { min-height: 440px; padding: 36px 20px 28px; }
  .gate-yes, .gate-no { padding: 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-no.is-loose { transition: none; }
}
.nowrap { white-space: nowrap; }

/* ---------- Questionnaire steps ---------- */
.gate-step {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(46px);
  transition: opacity .45s ease, transform .6s var(--ease-out), visibility 0s linear .6s;
}
.gate-step.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .5s ease .18s, transform .7s var(--ease-out) .18s, visibility 0s;
}
.gate-step.is-leaving { transform: translateX(-46px); }
.gate-q:focus { outline: none; }

.gate-count { font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 12px; }
.gate-progress { width: min(220px, 70%); height: 4px; border-radius: 99px; background: var(--lilac-mist); overflow: hidden; margin-bottom: 26px; }
.gate-progress span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--lilac-deep), var(--butter-deep)); }
.gate-step.is-active .gate-progress span { animation: progressGrow .9s var(--ease-out) .35s both; }
@keyframes progressGrow { from { width: calc((var(--p) - .25) * 100%); } to { width: calc(var(--p) * 100%); } }

.gate-q--quiz { max-width: 15ch; font-size: clamp(2rem, 6.4vw, 3rem); }

.gate-options { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 30px; }
.gate-options button {
  position: relative; width: 100%; text-align: left; cursor: pointer;
  font: 500 1.02rem/1.3 var(--sans); color: var(--plum);
  padding: 19px 54px 19px 22px; border-radius: 16px;
  background: rgba(255,255,255,.85); border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(59,49,72,.04);
  transition: transform .35s var(--ease-out), background .25s, border-color .25s, box-shadow .3s, opacity .3s;
}
.gate-step.is-active .gate-options button { animation: fadeUp .6s var(--ease-out) both; }
.gate-step.is-active .gate-options button:nth-child(1) { animation-delay: .35s; }
.gate-step.is-active .gate-options button:nth-child(2) { animation-delay: .45s; }
.gate-step.is-active .gate-options button:nth-child(3) { animation-delay: .55s; }
.gate-options button::after {
  content: "✓"; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  display: grid; place-items: center; border-radius: 50%; font-size: .8rem; color: #fff;
  background: var(--lilac-dark); transform: scale(0); transition: transform .35s var(--ease-out);
}
.gate-options button:hover { background: var(--lilac-mist); border-color: var(--lilac); transform: translateX(4px); box-shadow: 0 8px 20px rgba(95,74,128,.12); }
.gate-options button:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 2px; }
.gate-options button.is-picked { background: linear-gradient(135deg, #E4D9F2, var(--lilac)); border-color: var(--lilac-deep); transform: scale(1.02); }
.gate-options button.is-picked::after { transform: scale(1); }
.gate-options.is-answered button:not(.is-picked) { opacity: .45; }

/* ---------- "You passed!" ---------- */
.gate-card { transition: background .6s ease, border-color .6s ease, box-shadow .6s ease, backdrop-filter .6s ease; }
.gate-card.is-pass { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gate-pass-icon { font-size: 3.2rem; line-height: 1; margin: 0 0 18px; }
.gate-step--pass.is-active .gate-pass-icon { animation: envelopePop 1s var(--ease-out) .25s both, bob 3s ease-in-out 1.3s infinite; }
@keyframes envelopePop { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
.gate-pass {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(3rem, 11vw, 5.2rem); line-height: 1; margin: 0; color: var(--plum);
}
.gate-step--pass.is-active .gate-pass { animation: blurIn 1s var(--ease-out) .4s both; }
.gate-invited { font-family: var(--script); font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1.2; color: var(--lilac-dark); margin: 6px 0 22px; }
.gate-step--pass.is-active .gate-invited { animation: fadeUp .9s var(--ease-out) .8s both; }
.gate-status {
  font: 600 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--plum);
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid var(--lilac-deep); background: rgba(255,255,255,.7); margin: 0;
}
.gate-step--pass.is-active .gate-status { animation: fadeUp .8s var(--ease-out) 1.15s both; }
.gate-enter {
  margin-top: 30px; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.gate-enter:hover { color: var(--plum); }
.gate-step--pass.is-active .gate-enter { animation: fadeUp .8s var(--ease-out) 1.5s both; }
.gate-arrow { font-size: 1.2rem; animation: arrowBob 1.4s ease-in-out infinite; }
@keyframes arrowBob { 50% { transform: translateY(6px); } }

@media (max-width: 480px) {
  .gate-options button { padding: 17px 48px 17px 18px; font-size: .98rem; }
}

/* ---------- Password step ---------- */
.gate-badge--lock { font-size: 1.9rem; }
.gate-pw {
  display: flex; gap: 10px; width: 100%; max-width: 420px; margin-top: 30px;
  padding: 6px; border-radius: 18px; background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line); box-shadow: 0 6px 20px rgba(59,49,72,.06);
  transition: border-color .25s, box-shadow .25s;
}
.gate-pw:focus-within { border-color: var(--lilac-deep); box-shadow: 0 0 0 4px rgba(122,99,157,.15); }
.gate-pw input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 500 1.05rem/1 var(--sans); color: var(--plum); padding: 12px 14px; letter-spacing: .08em;
}
.gate-pw input::placeholder { color: rgba(94,84,112,.55); letter-spacing: .02em; }
.gate-pw button {
  border: 0; cursor: pointer; border-radius: 12px; padding: 0 24px;
  font: 600 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--lilac-deep), var(--lilac-dark)); transition: transform .2s, box-shadow .2s;
}
.gate-pw button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(95,74,128,.3); }
.gate-pw.is-wrong { animation: shake .45s ease; border-color: #B4546A; }
.gate-pw.is-correct { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(141,187,126,.25); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate { overflow: clip; }
.gate-pw input:focus { box-shadow: none; border: 0; }

/* Keep every questionnaire step inside the card on narrow phones */
.gate-steps { grid-template-columns: minmax(0, 1fr); }
.gate-step { min-width: 0; width: 100%; }
.gate-pass { overflow-wrap: anywhere; }
.gate-status { max-width: 100%; text-align: center; line-height: 1.4; }
@media (max-width: 380px) {
  .gate-pass { font-size: 2.6rem; }
  .gate-status { letter-spacing: .14em; padding: 12px 18px; }
}
