/* ============================================================
   LUMIÈRE — styles (cozy candlelit · sticky split cinema)
   ============================================================ */
:root {
  --cream: #faf4ea;
  --warm: #f3e7d3;
  --espresso: #2e231b;
  --espresso-soft: #6b5a49;
  --gold: #c19a5b;
  --gold-deep: #a07d42;
  --blush: #d9a89a;
  --line: #e6dac6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif); font-weight: 400;
  background: var(--cream); color: var(--espresso);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100dvh; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- candle embers ---------- */
.embers { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,150,0.95), rgba(255,180,90,0));
  opacity: 0; animation: ember-rise var(--dur,16s) linear var(--del,0s) infinite; }
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-106vh) translateX(var(--dx,30px)) scale(1.1); opacity: 0; }
}

/* ---------- intro overlay ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(120% 85% at 50% 32%, rgba(193,154,91,0.20), transparent 58%),
    linear-gradient(180deg, rgba(24,17,10,0.55), rgba(20,14,8,0.74) 55%, rgba(16,11,6,0.92)),
    url("media/walk-hero.jpg") center / cover no-repeat;
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  text-align: center; cursor: pointer;
  transition: opacity 1s var(--ease) 0.3s, visibility 1s 0.3s;
}
.intro::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 50%, transparent 60%, rgba(16,11,6,0.5)); pointer-events: none; }
.intro.open { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-mono { width: 84px; height: 84px; border: 1px solid rgba(193,154,91,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-size: 1.3rem; color: var(--gold); letter-spacing: 0.08em; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(193,154,91,0.0), 0 0 30px rgba(193,154,91,0.15); } 50% { box-shadow: 0 0 0 12px rgba(193,154,91,0.04), 0 0 55px rgba(193,154,91,0.28); } }
.intro-kicker { font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.46em; text-transform: uppercase; color: rgba(250,244,234,0.7); }
.intro-names { font-family: var(--script); font-size: clamp(2.6rem, 9vw, 4rem); color: var(--gold); line-height: 1.2; }
.intro-enter { background: linear-gradient(135deg, #d8b46f, var(--gold)); border: none; border-radius: 999px;
  color: #2a1f12; font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.3em;
  text-transform: uppercase; padding: 1rem 2.6rem; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.intro-enter:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(193,154,91,0.35); }
.intro-hint { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(250,244,234,0.45); }

/* ---------- controls ---------- */
.controls { position: fixed; top: 1.1rem; right: 1.1rem; z-index: 200; display: flex; gap: 0.5rem; opacity: 0; pointer-events: none; transition: opacity 0.6s ease 1.2s; }
body.entered .controls { opacity: 1; pointer-events: auto; }
.ctrl-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(250,244,234,0.8); border: 1px solid var(--line); color: var(--gold-deep); font-family: var(--sans); font-size: 0.72rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: border-color 0.3s; }
.ctrl-btn:hover { border-color: var(--gold); }
.ctrl-btn.playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lang-bar { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; gap: 0.2rem; background: rgba(250,244,234,0.85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem; opacity: 0; pointer-events: none; transition: opacity 0.6s ease 1.2s; }
body.entered .lang-bar { opacity: 1; pointer-events: auto; }
.lang-bar button { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--espresso-soft); padding: 0.4rem 0.85rem; border-radius: 999px; transition: 0.3s; }
.lang-bar button.active { background: var(--gold-deep); color: #fff; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; }

/* left sticky media stage */
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #1c150e; }
.stage-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.stage-layer.active { opacity: 1; }
.stage-layer img, .stage-layer video { width: 100%; height: 100%; object-fit: cover; }
.stage-layer.active img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translateY(-2%); } }
.stage-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(20,15,9,0.5) 100%),
    linear-gradient(180deg, rgba(20,15,9,0.15), rgba(20,15,9,0.30)); }
.stage-mono { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.6rem; text-align: center;
  font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.4em; color: rgba(250,244,234,0.85); text-transform: uppercase; }

/* right scrolling content */
.flow { position: relative; z-index: 1; }
.block { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) clamp(1.6rem, 6vw, 5rem); }
.block-media { display: none; } /* desktop: stage shows it; mobile: inline */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; }

.eyebrow { font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.block-title { font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 1rem 0; }
.block-text { font-size: 1.1rem; color: var(--espresso-soft); max-width: 30rem; }
.block-script { font-family: var(--script); color: var(--gold-deep); font-size: 1.7rem; }

/* hero block */
.hero-block .hero-names { font-family: var(--script); font-size: clamp(3rem, 8vw, 4.6rem); color: var(--gold-deep); line-height: 1.15; }
.hero-block .hero-date { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--espresso-soft); margin-top: 0.6rem; }
.hero-block .hero-intro { font-size: 1.12rem; color: var(--espresso-soft); margin-top: 1.4rem; max-width: 30rem; }
.scroll-cue { margin-top: 2rem; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); display: flex; align-items: center; gap: 0.6rem; }
.scroll-cue::after { content: "↓"; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* countdown */
.count-grid { display: flex; gap: clamp(1rem,3vw,2rem); margin-top: 1.6rem; }
.cd-cell { text-align: center; }
.cd-num { font-weight: 500; font-size: clamp(2.2rem,6vw,3.2rem); line-height: 1; color: var(--gold-deep); }
.cd-lab { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--espresso-soft); margin-top: 0.4rem; }

/* schedule */
.sched { margin-top: 1.6rem; max-width: 30rem; }
.sched-row { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.3rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sched-row:first-child { border-top: 1px solid var(--line); }
.sched-time { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold-deep); padding-top: 0.4rem; }
.sched-name { font-size: 1.3rem; font-weight: 500; }
.sched-detail { grid-column: 2; font-size: 0.92rem; font-style: italic; color: var(--espresso-soft); }

/* venue / details */
.venue-name { font-weight: 500; font-size: clamp(1.7rem,4vw,2.3rem); }
.venue-addr { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--espresso-soft); margin-top: 0.3rem; }
.venue-note { font-style: italic; color: var(--espresso-soft); margin-top: 1rem; max-width: 30rem; }
.btn { display: inline-block; margin-top: 1.5rem; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--gold); padding: 0.85rem 2rem; text-decoration: none; transition: 0.35s var(--ease); }
.btn:hover { background: var(--gold); color: #fff; }
.duo { display: grid; gap: 1.6rem; margin-top: 1.4rem; max-width: 32rem; }
.duo h3 { font-weight: 500; font-size: 1.35rem; }
.duo h3::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 0.6rem 0 0.7rem; }
.duo p { font-style: italic; color: var(--espresso-soft); }

/* rsvp */
.rsvp-card { margin-top: 1.6rem; background: #fff; border: 1px solid var(--line); padding: clamp(1.8rem,4vw,2.4rem); max-width: 32rem; box-shadow: 0 24px 50px rgba(46,35,27,0.12); }
.rsvp-deadline { font-style: italic; color: var(--espresso-soft); margin-top: 0.8rem; }
.r-field { margin-bottom: 1.1rem; }
.r-field label { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--espresso-soft); margin-bottom: 0.35rem; }
.r-field input, .r-field select, .r-field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--serif); font-size: 1.06rem; color: var(--espresso); padding: 0.45rem 0.1rem; transition: border-color 0.3s; }
.r-field input:focus, .r-field select:focus, .r-field textarea:focus { outline: none; border-color: var(--gold); }
.r-field textarea { min-height: 64px; resize: vertical; }
.r-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.attend-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.1rem; }
.attend-btn { background: none; border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--espresso-soft); padding: 0.8rem 0.5rem; cursor: pointer; transition: 0.3s; }
.attend-btn.selected { border-color: var(--gold); color: var(--espresso); background: rgba(193,154,91,0.1); }
.rsvp-submit { width: 100%; background: var(--espresso); border: 1px solid var(--espresso); color: var(--cream); font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; padding: 1rem; cursor: pointer; margin-top: 0.3rem; transition: 0.35s; }
.rsvp-submit:hover { background: transparent; color: var(--espresso); }
.rsvp-submit:disabled { opacity: 0.5; cursor: wait; }
.rsvp-status { margin-top: 1rem; font-size: 0.92rem; display: none; font-family: var(--sans); text-align: center; }
.rsvp-status.ok { display: block; color: #5a7a52; }
.rsvp-status.err { display: block; color: #a05252; }

/* footer block */
.foot-block { text-align: center; align-items: center; }
.foot-script { font-family: var(--script); font-size: clamp(2.2rem,6vw,3rem); color: var(--gold-deep); }
.foot-brand { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--espresso-soft); margin-top: 1.4rem; }
.foot-brand a { color: var(--gold-deep); text-decoration: none; }

/* admin */
.admin-panel { position: fixed; inset: auto 0 0 0; z-index: 600; background: #fff; border-top: 2px solid var(--espresso); padding: 1.4rem 1.6rem 1.8rem; max-height: 50vh; overflow: auto; display: none; font-family: var(--sans); }
.admin-panel.show { display: block; }
.admin-panel h3 { font-family: var(--serif); margin-bottom: 0.7rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 0.45rem 0.65rem; text-align: left; }
.admin-table th { color: var(--gold-deep); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; }
.admin-actions { margin-top: 0.9rem; display: flex; gap: 0.8rem; }
.admin-actions button { background: none; border: 1px solid var(--espresso); color: var(--espresso); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.5rem 1.2rem; cursor: pointer; }

/* ============================================================
   MOBILE — stack, hide sticky stage, inline images per block
   ============================================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .stage { display: none; }
  .block { min-height: auto; padding: clamp(2.4rem,7vw,3.5rem) 1.5rem; }
  .block-media { display: block; overflow: hidden; border-radius: 4px; margin-bottom: 1.6rem; box-shadow: 0 22px 44px rgba(46,35,27,0.16); aspect-ratio: 4/5; }
  .block-media img, .block-media video { width: 100%; height: 100%; object-fit: cover; }
  .r-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-layer.active img, .ember { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   FULL-BLEED FORMAT (v2) — media fills the screen edge-to-edge,
   content overlaid; couple names sit on the hero animation.
   ============================================================ */
.split { display: block; position: relative; }
.stage { position: fixed; inset: 0; top: 0; width: 100%; height: 100svh; z-index: 0; display: block; }
.stage-veil {
  background:
    linear-gradient(180deg, rgba(16,11,6,0.48), rgba(16,11,6,0.12) 28%, rgba(16,11,6,0.22) 60%, rgba(16,11,6,0.78));
}
.flow { position: relative; z-index: 1; }
.block {
  position: relative; min-height: 100svh; max-width: none;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: clamp(3rem, 8vw, 6rem) 1.5rem; color: var(--cream);
}
.block::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(135% 80% at 50% 50%, rgba(16,11,6,0.08), rgba(16,11,6,0.52));
}
.block > * { max-width: 40rem; width: 100%; }
.block-media { display: none !important; }

/* light text for legibility over the media */
.eyebrow { color: var(--gold); justify-content: center; }
.block-title, .venue-name, .duo h3 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.55); }
.hero-block .hero-names { color: var(--gold); text-shadow: 0 3px 26px rgba(0,0,0,0.6); }
.block-text, .hero-block .hero-intro, .venue-note, .duo p { color: rgba(246,238,219,0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-block .hero-date, .venue-addr, .rsvp-deadline, .scroll-cue, .foot-brand { color: rgba(246,238,219,0.82); }
.cd-num { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
.cd-lab { color: rgba(246,238,219,0.85); }
.sched { width: 100%; max-width: 30rem; }
.sched-row { border-color: rgba(246,238,219,0.28); }
.sched-time { color: var(--gold); }
.sched-name { color: #fff; }
.sched-detail { color: rgba(246,238,219,0.85); }
.btn { color: #fff; border-color: rgba(255,255,255,0.65); }
.btn:hover { background: #fff; color: var(--espresso); }
.foot-script { color: var(--gold); }
.stage-mono { color: rgba(255,255,255,0.85); }

/* keep full-bleed on mobile too (show the fixed stage, drop inline media) */
@media (max-width: 900px) {
  .stage { display: block; }
}
