/* ═══════════════════════════════════════════════════════════════════════════
   IBROHIM & HANIYA — WEDDING INVITATION
   Design system: "Ink & Silk" — rice-paper ivory, deep ink, gold hairlines,
   muted vermillion. Typography: Cormorant Garamond / Great Vibes / Jost.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────── 1. TOKENS ─────────────────────────────── */
:root {
  /* Day — luminous rice paper */
  --bg:        #fffdf8;
  --bg-soft:   #f8f1e6;
  --surface:   rgba(255, 255, 252, 0.86);
  --card:      #ffffff;
  --ink:       #2b2319;
  --ink-soft:  #756652;
  --gold:      #a8853f;
  --gold-soft: #d4bc8b;
  --gold-deep: #8a6c30;
  --crimson:   #a63d2f;
  --blush:     #e8c8c0;
  --line:      rgba(36, 28, 18, 0.14);
  --line-soft: rgba(36, 28, 18, 0.08);
  --shadow:    0 24px 60px -24px rgba(52, 38, 18, 0.25);
  --shadow-sm: 0 10px 30px -14px rgba(52, 38, 18, 0.22);
  --veil-top:  rgba(20, 14, 8, 0.42);
  --veil-bot:  rgba(20, 14, 8, 0.62);
  --glass:     rgba(255, 253, 248, 0.78);
  --glass-brd: rgba(168, 133, 63, 0.22);

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 4.25rem;
}

html.dark {
  /* Night — warm espresso silk, softer than black */
  --bg:        #211b14;
  --bg-soft:   #2a231a;
  --surface:   rgba(43, 36, 27, 0.78);
  --card:      #30281e;
  --ink:       #ece3d0;
  --ink-soft:  #a3947c;
  --gold:      #c9a55e;
  --gold-soft: #8a6c30;
  --gold-deep: #e0c286;
  --crimson:   #d26a55;
  --blush:     #7a4a40;
  --line:      rgba(236, 227, 208, 0.16);
  --line-soft: rgba(236, 227, 208, 0.08);
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  --veil-top:  rgba(8, 6, 3, 0.5);
  --veil-bot:  rgba(8, 6, 3, 0.72);
  --glass:     rgba(33, 27, 20, 0.68);
  --glass-brd: rgba(201, 165, 94, 0.24);
}

/* ─────────────────────────────── 2. BASE ─────────────────────────────── */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { touch-action: pan-x pan-y; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
h1, h2, h3, h4, h5, h6, p, figure, fieldset { margin: 0; }
ol, ul { margin: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  font-family: Jost, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Small utilities formerly supplied by the Tailwind CDN. */
.font-serifd { font-family: "Cormorant Garamond", Georgia, serif; }
.font-script { font-family: "Great Vibes", cursive; }
.font-sans { font-family: Jost, ui-sans-serif, system-ui, sans-serif; }
.text-center { text-align: center; }

::selection { background: var(--gold-soft); color: #241c12; }

/* Elegant thin scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 8px; border: 3px solid var(--bg); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--card); color: var(--ink); padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold); border-radius: 99px; transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Hide reveal targets only when JS + motion available (GSAP animates them in) */
html.js:not(.no-motion) [data-reveal] { opacity: 0; }

/* ───────────────────────────── 3. TYPOGRAPHY ───────────────────────────── */
.kicker {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.kicker-sm {
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400;
}
.h-display {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.12;
}
.h-display em { font-style: italic; color: var(--gold); }
.sec-sub {
  max-width: 34rem; margin: 1.1rem auto 0; color: var(--ink-soft);
  font-size: 0.98rem;
}
.sec-sub strong { color: var(--gold); font-weight: 500; }

/* ───────────────────────────── 4. LAYOUT SHELL ───────────────────────────── */
.wrap        { width: min(72rem, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(46rem, 92vw); margin-inline: auto; }
.section     { padding: clamp(5rem, 12vh, 8.5rem) 0; position: relative; }
.section-tint{ background: var(--bg-soft); transition: background-color 0.6s ease; }
.sec-head    { text-align: center; margin-bottom: clamp(2.6rem, 6vw, 4.2rem); }

/* Gold divider: line ◆ line */
.orn-divider { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 1.3rem auto 0; }
.orn-divider i { display: block; width: clamp(3rem, 8vw, 5.5rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.orn-divider i:last-child { transform: scaleX(-1); }
.orn-divider svg { width: 12px; height: 12px; }
.orn-divider rect { fill: none; stroke: var(--gold); stroke-width: 1; }

/* ───────────────────────────── 5. BUTTONS ───────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; padding: 0.95rem 2.3rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.35s var(--ease-out), border-color 0.35s, background-color 0.35s,
              transform 0.35s var(--ease-out), box-shadow 0.35s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before { /* gold sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, var(--gold-deep), var(--gold) 55%, var(--gold-soft));
  transform: translateX(-101%); transition: transform 0.5s var(--ease-luxe);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-solid { background: var(--ink); color: var(--bg); }
html.dark .btn-solid { background: var(--gold); color: #131009; }
.btn-solid:hover, .btn-solid:focus-visible { color: #fffdf7; }

.btn-ghost { border: 1px solid var(--gold); color: var(--gold-deep); background: transparent; }
html.dark .btn-ghost { color: var(--gold); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fffdf7; border-color: transparent; }

.btn-sm   { padding: 0.7rem 1.6rem; font-size: 0.72rem; }
.btn-wide { width: 100%; }
.btn-ico  { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Submit button loading state */
.btn-spin {
  width: 1.1em; height: 1.1em; border-radius: 50%; display: none;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-spin { display: inline-block; }
.btn.loading .btn-txt { opacity: 0.6; }
.btn.loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────────── 6. PRELOADER ───────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg);
}
.pre-inner { position: relative; display: grid; place-items: center; width: 170px; height: 170px; }
.pre-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pre-ring circle { fill: none; stroke-width: 1; }
.pre-ring-track { stroke: var(--line); }
.pre-ring-draw {
  stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ringdraw 2.2s var(--ease-luxe) forwards;
}
@keyframes ringdraw { to { stroke-dashoffset: 0; } }
.pre-mono { font-size: 2rem; letter-spacing: 0.14em; color: var(--ink); animation: fadein 1.2s 0.3s both; }
.pre-word {
  position: absolute; bottom: -2.6rem; width: max-content;
  font-size: 1.5rem; color: var(--gold); animation: fadein 1.2s 0.8s both;
}
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────────────────────────── 7. CURSOR ───────────────────────────── */
#cursor-dot, #cursor-ring { display: none; }
@media (pointer: fine) {
  html.js:not(.no-motion) #cursor-dot,
  html.js:not(.no-motion) #cursor-ring { display: block; position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; }
  html.js:not(.no-motion) { cursor: none; }
  html.js:not(.no-motion) a, html.js:not(.no-motion) button,
  html.js:not(.no-motion) input, html.js:not(.no-motion) textarea,
  html.js:not(.no-motion) select, html.js:not(.no-motion) label { cursor: none; }

  #cursor-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    transform: translate(-50%, -50%);
  }
  #cursor-ring {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--gold);
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                background-color 0.3s, border-color 0.3s;
  }
  #cursor-ring.is-link { width: 56px; height: 56px; background: rgba(168, 133, 63, 0.12); }
  #cursor-ring.is-label { width: 74px; height: 74px; background: var(--gold); border-color: var(--gold); }
  #cursor-label {
    font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: #fffdf7; opacity: 0; transition: opacity 0.25s;
  }
  #cursor-ring.is-label #cursor-label { opacity: 1; }
  #cursor-ring.is-down { transform: translate(-50%, -50%) scale(0.82); }
}

/* ───────────────────────────── 8. NAVIGATION ───────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding-inline: clamp(1.2rem, 4vw, 3rem);
  opacity: 0; transform: translateY(-100%);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#site-nav.visible { opacity: 1; transform: none; }
#site-nav.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--glass-brd);
}
.nav-mono {
  font-size: 1rem; letter-spacing: 0.05em; white-space: nowrap; color: var(--gold);
  border: 1px solid var(--glass-brd); border-radius: 50%;
  width: 2.7rem; height: 2.7rem; display: grid; place-items: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.nav-mono:hover { transform: rotate(-8deg) scale(1.06); border-color: var(--gold); }

.nav-links { display: none; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
@media (min-width: 768px) { .nav-links { display: flex; } #nav-burger { display: none; } }
.nav-links a {
  position: relative; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.4rem 0; color: var(--ink-soft); transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-luxe);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.nav-cta {
  border: 1px solid var(--gold); border-radius: 999px; padding: 0.5rem 1.4rem;
  color: var(--gold-deep); transition: background-color 0.35s, color 0.35s;
}
html.dark .nav-links a.nav-cta { color: var(--gold); }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold); color: #fffdf7; }

/* Burger */
#nav-burger { position: relative; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; }
#nav-burger span {
  position: absolute; width: 1.5rem; height: 1px; background: var(--ink);
  transition: transform 0.4s var(--ease-luxe), width 0.3s;
}
#nav-burger span:first-child { transform: translateY(-4px); }
#nav-burger span:last-child  { transform: translateY(4px); width: 1rem; margin-left: 0.5rem; }
body.menu-open #nav-burger span:first-child { transform: rotate(45deg); }
body.menu-open #nav-burger span:last-child  { transform: rotate(-45deg); width: 1.5rem; margin-left: 0; }

/* Mobile menu overlay */
#mobile-menu[hidden] { display: none; }
#mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
  display: grid; place-items: center; text-align: center;
}
.mm-inner { display: grid; gap: 1.4rem; }
.mm-inner a {
  font-family: "Cormorant Garamond", serif; font-size: 2rem; letter-spacing: 0.06em;
  color: var(--ink); opacity: 0; transform: translateY(18px);
}
.mm-inner a.mm-cta { color: var(--gold); font-style: italic; }
.mm-foot { color: var(--gold); font-size: 1.4rem; margin-top: 1rem; opacity: 0; }

/* ───────────────────────────── 9. HERO ───────────────────────────── */
#hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 1rem) 4vw 5rem;
}
.hero-bg { position: absolute; inset: -8% 0; z-index: -3; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
@media (max-width: 760px) {
  .hero-bg { inset: 0; }
  .hero-bg img { object-position: center center; }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--veil-top) 0%, rgba(16, 11, 6, 0.28) 42%, var(--veil-bot) 100%);
}
.hero-grain { /* subtle film grain via repeating radial dots */
  position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px);
  background-size: 5px 5px; pointer-events: none;
}

.hero-orn { position: absolute; width: clamp(110px, 16vw, 200px); opacity: 0.85; z-index: 1; pointer-events: none; }
.hero-orn-tl { top: calc(var(--nav-h) + 0.6rem); left: 4vw; }
.hero-orn-br { bottom: 1.4rem; right: 4vw; transform: rotate(180deg); }
.orn-branch { stroke: var(--gold-soft); stroke-width: 1.4; opacity: 0.9; }
.orn-branch-thin { stroke-width: 0.9; opacity: 0.6; }
.orn-bloom ellipse { fill: rgba(232, 200, 192, 0.85); stroke: rgba(255, 245, 238, 0.6); stroke-width: 0.5; }
.orn-bloom .orn-core { fill: var(--gold-soft); stroke: none; }

.hero-content {
  width: min(58rem, 92vw); text-align: center; color: #f7f1e6;
  text-shadow: 0 2px 30px rgba(10, 6, 2, 0.45);
}
.hero-kicker {
  font-size: clamp(0.62rem, 1.15vw, 0.76rem); letter-spacing: 0.46em; line-height: 1.6;
  text-transform: uppercase; color: rgba(247, 241, 230, 0.82);
  margin-bottom: clamp(1rem, 2.4vh, 1.65rem);
}
.hero-kicker.is-personal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #fff7e6;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}
.hero-invitee-name {
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.035em;
}
.hero-invitee-line {
  font-family: Jost, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-names {
  display: flex; flex-direction: column; align-items: center; gap: 0.2em;
  font-size: clamp(3rem, 8vw, 5.8rem); font-weight: 400; line-height: 0.98;
  letter-spacing: 0.025em;
}
.hero-name { display: inline-block; }
.hero-name .ch { display: inline-block; will-change: transform; }
.hero-amp { font-size: 0.52em; color: var(--gold-soft); line-height: 0.8; }
.hero-bride-lockup { display: contents; }
.hero-name-flower { display: none; }
@media (min-width: 900px) {
  .hero-names { flex-direction: row; align-items: baseline; gap: 0.35em; }
}
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: clamp(1.4rem, 3.5vh, 2.4rem) auto; }
.hero-rule i { width: clamp(3.5rem, 10vw, 7rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); display: block; }
.hero-rule i:last-child { transform: scaleX(-1); }
.hero-rule b { width: 5px; height: 5px; background: var(--gold-soft); transform: rotate(45deg); display: block; }
.hero-date { font-size: clamp(0.98rem, 2.15vw, 1.28rem); line-height: 1.55; letter-spacing: 0.17em; font-weight: 400; }
.hero-dot { margin-inline: 0.6rem; color: var(--gold-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: clamp(1.8rem, 4.5vh, 3rem); }
#hero .btn-ghost { border-color: rgba(212, 188, 139, 0.75); color: #f2e7d2; }
#hero .btn-solid { background: rgba(247, 241, 230, 0.96); color: #241c12; }
#hero .btn-solid:hover { color: #fffdf7; }

@media (max-width: 760px) {
  #hero { display: block; }
  .hero-content {
    --hero-action-bottom: clamp(6.4rem, 11vh, 6.8rem);
    position: absolute; inset: 0; width: auto; pointer-events: none;
    display: block; text-align: left;
    text-shadow: 0 2px 20px rgba(8, 5, 3, 0.78), 0 1px 2px rgba(8, 5, 3, 0.9);
  }
  .hero-kicker {
    position: absolute; top: clamp(0.8rem, 2.2vh, 1.35rem); left: 1rem; right: 1rem;
    max-width: none; margin: 0; text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(0.72rem, 3vw, 0.86rem); font-style: italic; font-weight: 600;
    line-height: 1.35; letter-spacing: 0.16em; text-transform: none;
  }
  .hero-kicker.is-personal {
    gap: 0.1rem;
    letter-spacing: 0;
  }
  .hero-invitee-name { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero-invitee-line { font-size: 0.56rem; letter-spacing: 0.22em; }
  .hero-names {
    position: absolute; top: clamp(2.15rem, 4.8vh, 3rem); left: 50%;
    width: max-content; transform: translateX(-50%);
    flex-direction: row; align-items: baseline; gap: 0.2em;
    font-size: clamp(2rem, 9.6vw, 2.75rem); line-height: 1; letter-spacing: 0.005em;
  }
  .hero-amp { font-size: 0.48em; }
  .hero-bride-lockup { display: inline-flex; align-items: baseline; position: relative; }
  .hero-name-flower {
    display: block; position: absolute; z-index: 2;
    width: 1rem; height: 1rem; left: 0.45rem; top: -0.72rem;
    overflow: visible; transform-origin: 50% 50%;
    filter: drop-shadow(0 2px 5px rgba(16, 9, 4, 0.28));
  }
  .hero-orn-tl { display: none; }
  .hero-rule {
    position: absolute; left: clamp(1.15rem, 5.5vw, 1.75rem);
    bottom: calc(var(--hero-action-bottom) + 7.5rem);
    justify-content: flex-start; gap: 0.55rem; margin: 0;
  }
  .hero-rule i { width: clamp(2.4rem, 12vw, 3.3rem); }
  .hero-date {
    position: absolute; left: clamp(1.15rem, 5.5vw, 1.75rem); right: clamp(1.15rem, 5.5vw, 1.75rem);
    bottom: calc(var(--hero-action-bottom) + 4.2rem);
    display: grid; gap: 0.12rem; text-align: left;
    font-size: clamp(0.76rem, 3.2vw, 0.9rem); line-height: 1.45; letter-spacing: 0.13em;
  }
  .hero-date > span:first-child { font-weight: 600; font-style: italic; font-size: 1.08em; letter-spacing: 0.15em; }
  .hero-date > span:last-child { font-weight: 500; }
  .hero-dot { display: none; }
  .hero-actions {
    position: absolute; left: clamp(1.15rem, 5.5vw, 1.75rem); right: clamp(1.15rem, 5.5vw, 1.75rem);
    bottom: var(--hero-action-bottom); width: auto; pointer-events: auto;
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 0.65rem; justify-content: stretch; margin: 0;
  }
  #hero .hero-actions .btn {
    min-width: 0; padding: 0.82rem 0.7rem;
    font-size: clamp(0.56rem, 2.25vw, 0.68rem); letter-spacing: 0.2em;
  }
  html.js:not(.no-motion) .hero-kicker,
  html.js:not(.no-motion) .hero-names,
  html.js:not(.no-motion) .hero-rule,
  html.js:not(.no-motion) .hero-date,
  html.js:not(.no-motion) .hero-actions,
  html.js:not(.no-motion) .hero-scroll,
  html.js:not(.no-motion) .hero-orn-br { opacity: 0; }
}

@media (max-width: 350px) {
  .hero-actions { gap: 0.45rem; }
  #hero .hero-actions .btn { padding-block: 0.72rem; }
}

.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.55rem; color: rgba(247, 241, 230, 0.75);
}
.hero-scroll-txt { font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; }
.hero-scroll-line { width: 1px; height: 3rem; background: rgba(247, 241, 230, 0.5); overflow: hidden; position: relative; }
.hero-scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-soft);
  animation: scrolldrip 2.2s var(--ease-luxe) infinite;
}
@keyframes scrolldrip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ───────────────────────────── 10. COUNTDOWN ───────────────────────────── */
.cd-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(0.7rem, 3vw, 1.8rem); margin-top: clamp(2.2rem, 5vw, 3.4rem);
}
.cd-cell {
  display: grid; gap: 0.5rem; justify-items: center;
  min-width: clamp(4.2rem, 14vw, 7rem); padding: clamp(1rem, 3vw, 1.8rem) 0;
  border: 1px solid var(--line-soft); border-radius: 1rem;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: background-color 0.6s, border-color 0.6s;
}
.cd-num {
  font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: transform 0.3s var(--ease-out);
}
.cd-num.tick { animation: numtick 0.5s var(--ease-out); }
@keyframes numtick { 0% { opacity: 0; transform: translateY(-0.5em); } 100% { opacity: 1; transform: none; } }
.cd-lbl { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.cd-sep { font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--gold-soft); padding-top: clamp(1rem, 3vw, 1.8rem); }
.cd-note { margin-top: 2rem; color: var(--ink-soft); font-size: 0.95rem; letter-spacing: 0.06em; }
#btn-calendar { margin-top: 1.4rem; }

/* ═══════════════════════ 11. CINEMA — OUR STORY ═══════════════════════
   A self-playing film sequence. The stage fills one viewport while GSAP
   directs the scenes on a time-based master timeline.                      */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

#cinema { position: relative; height: 100vh; height: 100svh; background: #0b0d14; }

.cine-stage {
  position: relative; height: 100%; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, #1a1c2c 0%, #12141f 45%, #0b0d14 100%);
  color: #ece3d0;
}

/* ——— overlays ——— */
.cine-vignette {
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(115% 100% at 50% 46%, transparent 58%, rgba(4, 5, 10, 0.55) 100%);
}
.cine-grain {
  position: absolute; inset: 0; z-index: 41; pointer-events: none; opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 4px 4px;
}
.light-leak {
  position: absolute; inset: -10%; z-index: 30; pointer-events: none; opacity: 0;
  background:
    radial-gradient(42% 30% at 24% 18%, rgba(232, 217, 184, 0.32), transparent 70%),
    radial-gradient(30% 26% at 78% 70%, rgba(212, 158, 120, 0.2), transparent 70%);
  mix-blend-mode: screen;
}

/* ——— scene 1 · sky ——— */
.cine-sky { position: absolute; inset: 0; z-index: 1; }
.cine-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-horizon {
  position: absolute; left: -12%; right: -12%; bottom: -34%; height: 56%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #171a28 0%, #0d0f18 60%);
  box-shadow: 0 -1px 0 rgba(212, 188, 139, 0.22), 0 -18px 60px -12px rgba(146, 158, 210, 0.14);
}
.cine-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 30, 0.85) 80%);
}
.cine-cloud {
  position: absolute; width: 46vw; height: 18vh; border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(196, 205, 235, 0.13), transparent 72%);
  filter: blur(26px);
}
.cloud-1 { top: 16%; left: -6%;  transform: scale(1.25); }
.cloud-2 { top: 34%; right: -10%; transform: scale(1.5); opacity: 0.8; }
.cloud-3 { top: 56%; left: 14%;  transform: scale(1.1); opacity: 0.7; }
.cloud-4 { top: 8%;  right: 24%; transform: scale(0.8); opacity: 0.6; }

.cine-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-city { fill: #e8d9b8; }
.route-city-halo { opacity: 0; transform-origin: center; transform-box: fill-box; }
.route-specks circle { fill: rgba(232, 217, 184, 0.75); }
.route-line {
  stroke: url(#routeGrad); stroke-width: 1.6; stroke-linecap: round;
}
.route-glow {
  stroke: rgba(232, 217, 184, 0.5); stroke-width: 6; stroke-linecap: round;
  filter: blur(6px);
}
.cine-plane .plane-fuselage { fill: rgba(240, 233, 216, 0.95); }
.cine-plane .plane-tail,
.plane-lander .plane-tail { fill: rgba(214, 205, 184, 0.9); }
.cine-plane .plane-wing,
.plane-lander .plane-wing { fill: rgba(196, 187, 166, 0.9); }
.cine-plane .plane-engine,
.plane-lander .plane-engine {
  fill: rgba(150, 143, 128, 0.96); stroke: rgba(244, 238, 222, 0.34); stroke-width: 0.45;
}
.cine-plane .plane-cockpit,
.plane-lander .plane-cockpit {
  fill: none; stroke: rgba(105, 119, 126, 0.9); stroke-width: 0.85; stroke-linecap: round;
}
.plane-lander .plane-fuselage { fill: rgba(240, 233, 216, 0.95); }
.plane-trail {
  stroke: rgba(232, 217, 184, 0.5); stroke-width: 1.1; stroke-linecap: round;
  filter: blur(1px);
}
.cine-plane { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }

/* ——— scenes 2–3 · book ——— */
.cine-bookscene {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  perspective: 1200px; opacity: 0; /* the timeline brings it in after the flight */
}
.book-glow {
  position: absolute; width: 78vmin; height: 50vmin; top: 54%; left: 50%;
  transform: translate(-50%, -50%); opacity: 0;
  background:
    radial-gradient(46% 42% at 50% 48%, rgba(244, 213, 160, 0.2), transparent 70%),
    radial-gradient(70% 52% at 50% 58%, rgba(119, 78, 42, 0.13), transparent 76%);
}
.book-wrap { position: relative; transform-style: preserve-3d; }
.book {
  position: relative; width: clamp(250px, 42vmin, 410px); aspect-ratio: 4 / 2.9;
  transform: rotateX(9deg) rotateZ(-0.8deg); transform-style: preserve-3d;
}
/* ── the hardcover board: a real spine-hinged cover with two faces ── */
.book-cover3d {
  position: absolute; inset: -3px -4px -3px -1px;
  transform: translateZ(17px); /* depth ordering comes from translateZ alone */
  transform-origin: left center; transform-style: preserve-3d;
  will-change: transform;
}
.cover-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.book-cover {
  isolation: isolate; overflow: hidden;
  border-radius: 7px 16px 16px 7px;
  background:
    radial-gradient(120% 86% at 24% -12%, rgba(255, 229, 188, 0.15), transparent 52%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.035), transparent 28%, rgba(0, 0, 0, 0.14) 78%),
    radial-gradient(120% 130% at 20% 0%, #463325 0%, #2d2017 48%, #1b120d 100%);
  box-shadow:
    inset 0 1px 0 rgba(242, 216, 174, 0.23),
    inset 1px 0 0 rgba(242, 216, 174, 0.08),
    inset 0 -10px 24px rgba(5, 3, 2, 0.44),
    0 4px 0 #120b07,
    0 24px 58px -14px rgba(0, 0, 0, 0.78);
  display: grid; place-content: center; gap: clamp(0.38rem, 1.15vmin, 0.7rem); text-align: center;
  padding: clamp(1.15rem, 3.6vmin, 1.85rem);
}
.book-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(2deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 5px),
    radial-gradient(rgba(255, 236, 202, 0.055) 0.55px, transparent 0.9px) 0 0 / 5px 5px;
  mix-blend-mode: soft-light; opacity: 0.72;
}
.book-cover::after {
  content: ""; position: absolute; inset: 3px; z-index: 0; pointer-events: none;
  border-radius: 5px 13px 13px 5px;
  box-shadow: inset 0 0 0 1px rgba(232, 202, 145, 0.08), inset 0 0 28px rgba(0, 0, 0, 0.2);
}
.book-cover > * { z-index: 1; }
.cover-fore-edge { /* board thickness hinted along the fore-edge */
  position: absolute; top: 3px; bottom: 3px; right: 0; width: 5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #38271b, #160e09 72%);
  box-shadow: inset -1px 0 0 rgba(232, 200, 150, 0.14), -2px 0 4px rgba(0,0,0,0.32);
}
.cover-back { /* cream endpaper lining, visible once the cover lies open */
  transform: rotateY(180deg);
  border-radius: 14px 6px 6px 14px;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(120, 92, 55, 0.14), transparent 60%),
    linear-gradient(125deg, #f3ecda, #ddd0b4);
  box-shadow:
    inset 0 0 0 1px rgba(150, 113, 57, 0.16),
    inset -14px 0 24px -18px rgba(37, 25, 14, 0.8);
}
.cover-back span {
  position: absolute; inset: 7%;
  border: 1px solid rgba(150, 113, 57, 0.2); border-radius: 3px;
}
.book-frame {
  position: absolute; inset: clamp(0.62rem, 2vmin, 0.9rem); border: 1px solid rgba(220, 193, 137, 0.45);
  border-radius: 4px 11px 11px 4px; pointer-events: none;
  box-shadow: 0 0 12px rgba(202, 169, 106, 0.05), inset 0 0 12px rgba(202, 169, 106, 0.04);
}
.book-frame::after {
  content: ""; position: absolute; inset: 0.3rem;
  border: 1px solid rgba(212, 188, 139, 0.16); border-radius: 3px 8px 8px 3px;
}
.book-monogram {
  width: clamp(1.75rem, 5vmin, 2.4rem); aspect-ratio: 1; margin: 0 auto 0.08rem;
  display: grid; place-items: center; border: 1px solid rgba(224, 198, 145, 0.46);
  transform: rotate(45deg); color: rgba(239, 216, 171, 0.9);
  font-family: "Cormorant Garamond", serif; font-size: clamp(0.48rem, 1.2vmin, 0.62rem); letter-spacing: 0.08em;
}
.book-monogram b { display: block; font: inherit; transform: rotate(-45deg); }
.book-eyebrow {
  font-size: clamp(0.45rem, 1vmin, 0.57rem); letter-spacing: 0.46em; text-transform: uppercase;
  color: rgba(218, 191, 139, 0.7); padding-left: 0.46em;
}
.book-title {
  font-size: clamp(0.78rem, 2.05vmin, 1.08rem); line-height: 1.18;
  font-weight: 500; letter-spacing: 0.035em;
  background: linear-gradient(100deg, #caa96a 0%, #f0dfae 28%, #caa96a 55%, #f0dfae 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance; text-shadow: 0 7px 28px rgba(0,0,0,0.22);
}
.book-title span { display: block; }
.book-title-em { margin-top: 0.12em; font-size: 1.17em; font-style: italic; letter-spacing: 0.025em; }
.book-diamond {
  width: 5px; height: 5px; margin: 0.1rem auto 0; transform: rotate(45deg);
  background: rgba(221, 194, 140, 0.82); box-shadow: 0 0 10px rgba(212, 188, 139, 0.3);
}
/* ── right block: base page, page-block thickness, turnable leaves ── */
.book-block {
  position: absolute; inset: 0; transform-style: preserve-3d;
}
.book-pages {
  position: absolute; inset: 3px -7px -12px 5px; border-radius: 4px 13px 13px 4px;
  background:
    repeating-linear-gradient(180deg, #efe5d0 0 1.2px, #d3c6a9 1.2px 2.4px);
  z-index: 1; transform: translateZ(5px);
  box-shadow: 0 18px 34px -8px rgba(0, 0, 0, 0.72), inset 0 -2px 3px rgba(86,58,31,0.2);
}
.book-pages::before {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 10px;
  border-radius: 0 0 8px 4px;
  background: repeating-linear-gradient(180deg, #d9ccb0 0 1px, #f0e6d1 1px 2.2px);
  box-shadow: inset 0 -3px 4px rgba(74, 50, 27, 0.22);
}
.book-pages::after { /* fore-edge sheet strata */
  content: ""; position: absolute; top: 1px; bottom: 3px; right: 0; width: 6px;
  border-radius: 0 10px 10px 0;
  background: repeating-linear-gradient(90deg, #efe4cd 0 1px, #cbbfa2 1px 2.1px);
  box-shadow: inset -2px 0 3px rgba(90, 66, 38, 0.35);
}
.book-page {
  overflow: hidden;
  background:
    radial-gradient(rgba(120, 92, 55, 0.055) 0.55px, transparent 0.9px) 0 0 / 6px 6px,
    repeating-linear-gradient(4deg, rgba(98, 72, 41, 0.022) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(84, 63, 36, 0.14), transparent 14%, transparent 88%, rgba(84, 63, 36, 0.09)),
    linear-gradient(135deg, #faf4e6, #e2d5ba);
}
.book-page-left {
  border-radius: 12px 0 0 12px;
  box-shadow: inset -14px 0 22px -18px rgba(37, 25, 14, 0.9);
}
.book-page-right {
  border-radius: 0 12px 12px 0;
  box-shadow: inset 14px 0 22px -18px rgba(37, 25, 14, 0.9);
}
.book-page span {
  position: absolute; inset: 16% 16%; border: 1px solid rgba(150, 113, 57, 0.22);
}
.book-page span::before,
.book-page span::after {
  content: ""; position: absolute; left: 18%; right: 18%; height: 1px;
  background: rgba(150, 113, 57, 0.22);
}
.book-page span::before { top: 37%; }
.book-page span::after { bottom: 37%; }
.book-page-base {
  position: absolute; inset: 3px 2px 1px 4px; z-index: 3;
  transform: translateZ(6px); opacity: 0; /* revealed as the cover opens */
}

/* left wing: appears under the opening cover, completing the spread */
.book-leftwing {
  position: absolute; top: 3px; bottom: 1px; left: 4px; width: calc(100% - 6px);
  transform: translateX(-100%) translateZ(2px); opacity: 0;
}
.book-leftwing .book-page-left { position: absolute; inset: 0; }
.wing-shadow { /* the cover's travelling shadow as it lands */
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(96deg, rgba(15, 9, 4, 0.55), rgba(15, 9, 4, 0.18) 45%, transparent 70%);
}

/* turnable leaves — thin sheets hinged at the gutter */
.book-leaf {
  position: absolute; inset: 3px 2px 1px 4px;
  transform-origin: left center; transform-style: preserve-3d;
  will-change: transform; --sheen: 0;
}
.book-leaf.leaf-1 { transform: translateZ(9px); }
.book-leaf.leaf-2 { transform: translateZ(8px); }
.book-leaf.leaf-3 { transform: translateZ(7px); }
.leaf-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(rgba(120, 92, 55, 0.045) 0.6px, transparent 1px) 0 0 / 7px 7px,
    linear-gradient(135deg, #f9f3e4, #e3d6bb);
}
.leaf-front {
  border-radius: 0 11px 11px 0;
  box-shadow: inset 12px 0 20px -17px rgba(37, 25, 14, 0.85);
}
.leaf-back {
  transform: rotateY(180deg); border-radius: 11px 0 0 11px;
  box-shadow: inset -12px 0 20px -17px rgba(37, 25, 14, 0.85);
}
.leaf-face::after { /* moving curl highlight while the sheet bends */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(102deg, transparent 26%, rgba(255, 252, 240, 0.9) 47%, transparent 64%);
  opacity: calc(var(--sheen, 0)); pointer-events: none;
}
.leaf-shadow { /* cast onto the page beneath a turning leaf */
  position: absolute; inset: 3px 2px 1px 4px; z-index: 2;
  transform: translateZ(5px); opacity: 0; pointer-events: none;
  border-radius: 0 11px 11px 0;
  background: linear-gradient(83deg, rgba(20, 12, 5, 0.45), rgba(20, 12, 5, 0.14) 45%, transparent 72%);
}
.book-memory-light {
  position: absolute; left: 0; top: 50%; z-index: 4;
  width: 70%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 192, 0.98) 0%, rgba(230, 189, 112, 0.48) 33%, transparent 72%);
  filter: blur(7px); mix-blend-mode: screen; will-change: transform, opacity;
}
.book-spine {
  position: absolute; left: -9px; top: -1px; bottom: -10px; width: 19px;
  border-radius: 9px 2px 2px 9px;
  background:
    linear-gradient(180deg, transparent 9%, rgba(218,184,122,0.22) 10%, transparent 12%, transparent 87%, rgba(218,184,122,0.18) 89%, transparent 91%),
    linear-gradient(90deg, #110a06, #38271b 48%, #1d130d 100%);
  transform: translateZ(11px);
  box-shadow: inset 2px 0 3px rgba(255,231,191,0.07), -4px 5px 10px rgba(0,0,0,0.35);
}
.book-shadow {
  position: absolute; left: 50%; top: 93%; width: 132%; height: 31%;
  transform: translate(-50%, 0); border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.68), transparent 72%);
  filter: blur(13px);
}
.book-flight-path { position: absolute; inset: -28% -22%; width: 144%; height: 156%; overflow: visible; pointer-events: none; }
.book-flight-path path { fill: none; stroke: rgba(217, 185, 126, 0.18); stroke-width: 1; stroke-dasharray: 4 10; }
.plane-lander {
  position: absolute; left: 50%; top: 50%; width: clamp(78px, 13.5vmin, 128px);
  transform: translate(-50%, -50%); opacity: 0;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}
.plane-lander svg { width: 100%; height: auto; overflow: visible; }

/* ——— scenes 4–6 · memories ——— */
.cine-field {
  position: absolute; inset: 0; z-index: 6; overflow: hidden;
}
.cine-camera { position: absolute; inset: 0; }
.mem {
  position: absolute; left: var(--mx, 50%); top: var(--my, 50%);
  width: var(--mw, 24vmin); will-change: transform, opacity;
  opacity: 0; /* each memory enters via its own timeline segment */
}
.mem-inner { width: 100%; }
.mem-card {
  margin: 0; background: #f6efdf; padding: 3.2% 3.2% 9%;
  border-radius: 3px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.66);
  transform: rotate(var(--mr, 0deg));
  position: relative;
}
.mem-card::after { /* soft sheen on the print */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,0.16) 0%, transparent 34%, transparent 72%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}
.mem-card img {
  width: 100%; aspect-ratio: var(--mar, 4 / 3); object-fit: cover; display: block;
  background: #241f18; opacity: 0; transition: opacity 0.28s ease-out;
}
.mem-card img.loaded { opacity: 1; }

/* The prints resolve into a dimensional globe with the open book at its heart. */
.cine-globe-halo {
  position: absolute; z-index: 1; left: 50%; top: 49%;
  width: min(76vw, 900px); height: min(64vh, 610px);
  translate: -50% -50%; opacity: 0; pointer-events: none;
  border: 1px solid rgba(220, 191, 137, 0.16); border-radius: 50%;
  box-shadow: inset 0 0 72px rgba(210, 173, 111, 0.04), 0 0 90px rgba(210, 173, 111, 0.035);
  will-change: transform, opacity;
}
.cine-globe-halo::before,
.cine-globe-halo::after,
.cine-globe-halo i {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(224, 196, 143, 0.11);
}
.cine-globe-halo::before { transform: rotate(58deg) scaleX(0.38); }
.cine-globe-halo::after { transform: rotate(-58deg) scaleX(0.38); }
.cine-globe-halo i:nth-child(1) { transform: scaleY(0.38); }
.cine-globe-halo i:nth-child(2) { transform: rotate(24deg) scaleY(0.72); opacity: 0.45; }
.cine-globe-halo i:nth-child(3) { transform: rotate(-24deg) scaleY(0.72); opacity: 0.45; }

.cine-orbit-story {
  position: absolute; z-index: 28; left: 50%; top: 49%; translate: -50% -50%;
  width: min(52vw, 34rem); display: grid; justify-items: center; gap: clamp(0.48rem, 1.6vmin, 0.85rem);
  text-align: center; opacity: 0; pointer-events: none;
  text-shadow: 0 2px 16px rgba(5, 5, 8, 0.86), 0 10px 38px rgba(0, 0, 0, 0.68);
  will-change: transform, opacity;
}
.cine-orbit-story::before {
  content: ""; position: absolute; z-index: 0; inset: -56% -28%;
  background: radial-gradient(ellipse, rgba(8, 9, 14, 0.54) 0%, rgba(8, 9, 14, 0.26) 44%, transparent 74%);
  filter: blur(8px);
}
.orbit-story-rule {
  position: relative; z-index: 1; display: block; width: clamp(3.2rem, 8vw, 5.5rem); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 198, 145, 0.78), transparent);
  transform-origin: center;
}
.cine-orbit-title {
  position: relative; z-index: 1;
  font-size: clamp(1.25rem, 3.15vw, 2.35rem); line-height: 1.04; font-weight: 400;
  letter-spacing: 0.035em; color: #f1e4ca; text-wrap: balance;
}
.cine-orbit-title .orbit-line { display: block; will-change: transform, opacity; }
.cine-orbit-title .orbit-line-em {
  margin-top: 0.15em; color: #dfbd7c; font-size: 1.1em; font-style: italic; letter-spacing: 0.02em;
}

/* ——— captions ——— */
.cine-caps { position: absolute; inset: 0; z-index: 32; pointer-events: none; transform: translateZ(0); }
.cap {
  position: absolute; left: 50%; top: var(--cy, 50%); transform: translate(-50%, -50%);
  width: min(88vw, 46rem); text-align: center;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3.1rem); letter-spacing: 0.05em; line-height: 1.25;
  color: #f3ead6;
  text-shadow: 0 1px 2px rgba(6, 8, 14, 0.9), 0 0 14px rgba(6, 8, 14, 0.6), 0 2px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
}
.cap::before { /* soft dark halo so lines stay readable over bright photo borders */
  content: ""; position: absolute; inset: -55% -10%; z-index: -1;
  background: radial-gradient(50% 62% at 50% 50%, rgba(6, 8, 14, 0.52), transparent 74%);
  filter: blur(8px);
}
.cap .ch { display: inline-block; will-change: transform, opacity; }

/* ——— scene 7 · reveal ——— */
.cine-reveal {
  position: absolute; inset: 0; z-index: 24; display: grid; place-items: center;
  opacity: 0; visibility: hidden; /* the timeline unlocks it at the finale */
}
.reveal-bg { position: absolute; inset: 0; opacity: 0; }
.reveal-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: saturate(0.94);
}
.reveal-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(72% 52% at 50% 46%, rgba(15, 11, 6, 0.5), transparent 78%),
    linear-gradient(180deg, rgba(19, 14, 8, 0.66), rgba(19, 14, 8, 0.44) 45%, rgba(19, 14, 8, 0.74));
}
.reveal-warm {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(90% 70% at 50% 30%, rgba(214, 164, 94, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(58, 38, 16, 0.25), rgba(19, 14, 8, 0.4));
  mix-blend-mode: screen;
}
.reveal-content { position: relative; text-align: center; padding: 0 6vw; }
.reveal-kicker { font-size: clamp(1.5rem, 3.6vw, 2.3rem); color: #d9b97e; opacity: 0; }
.reveal-names {
  margin-top: 0.4rem; font-size: clamp(2.7rem, 8.4vw, 5.6rem); font-weight: 400;
  letter-spacing: 0.05em; line-height: 1.08; color: #f6edda;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.32em;
  text-shadow: 0 3px 34px rgba(0, 0, 0, 0.5);
}
.reveal-names .ch { display: inline-block; }
.reveal-amp { font-size: 0.5em; color: #d9b97e; }
.reveal-rule { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.4rem 0 1.2rem; opacity: 0; }
.reveal-rule i { width: clamp(3rem, 9vw, 6rem); height: 1px; background: linear-gradient(90deg, transparent, #d9b97e); display: block; }
.reveal-rule i:last-child { transform: scaleX(-1); }
.reveal-rule b { width: 5px; height: 5px; background: #d9b97e; transform: rotate(45deg); display: block; }
.reveal-venue {
  font-size: clamp(0.9rem, 2.4vw, 1.1rem); letter-spacing: 0.32em; text-transform: uppercase;
  color: #f3e9cf; opacity: 0; text-shadow: 0 1px 3px rgba(10, 7, 3, 0.85), 0 2px 18px rgba(0, 0, 0, 0.5);
}
.reveal-addr {
  margin-top: 0.5rem; color: #eee4cd; font-size: clamp(0.85rem, 2.1vw, 1rem); letter-spacing: 0.08em;
  opacity: 0; text-shadow: 0 1px 3px rgba(10, 7, 3, 0.85), 0 2px 18px rgba(0, 0, 0, 0.5);
}
.reveal-date {
  margin-top: 1.1rem; font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: 0.42em; color: #e2c48c;
  opacity: 0; text-shadow: 0 1px 3px rgba(10, 7, 3, 0.8);
}

/* ——— dust FX canvas ——— */
.cine-dust { position: absolute; inset: 0; z-index: 26; width: 100%; height: 100%; pointer-events: none; }

/* ——— unobtrusive film controls ——— */
.cine-controls {
  position: absolute; inset: 0; z-index: 50; pointer-events: none;
  display: flex; align-items: flex-end; gap: 0.55rem;
  padding: 0 clamp(1rem, 3vw, 2rem) 2.25rem;
}
.cine-control {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.65rem; padding: 0.58rem 1rem; border-radius: 999px;
  border: 1px solid rgba(217, 185, 126, 0.4); color: rgba(236, 227, 208, 0.85);
  background: rgba(11, 13, 20, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.3s, color 0.3s;
}
#cinema.cine-active .cine-control { opacity: 1; transform: none; }
.cine-control:hover { border-color: #d9b97e; color: #f6edda; }
.cine-pause-icon { width: 0.7rem; height: 0.72rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.cine-control.is-paused .cine-pause-icon { border: 0; width: 0; height: 0; border-top: 0.38rem solid transparent; border-bottom: 0.38rem solid transparent; border-left: 0.62rem solid currentColor; }
.cine-progress {
  position: absolute; left: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); bottom: 1.2rem;
  height: 1px; background: rgba(236, 227, 208, 0.18);
  opacity: 0; transition: opacity 0.5s;
}
#cinema.cine-active .cine-progress { opacity: 1; }
.cine-progress i {
  position: absolute; inset: 0; background: #d9b97e;
  transform: scaleX(0); transform-origin: left;
}

/* ——— mobile tuning: lighter effects, same story ——— */
@media (max-width: 768px) {
  .cine-cloud { filter: blur(18px); }
  .cloud-3, .cloud-4 { display: none; }
  .mem-card { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
  .book { width: min(76vw, 326px); transform: rotateX(6deg) rotateZ(-0.8deg); }
  .cine-globe-halo { width: 88vw; height: 58vh; }
  .cine-orbit-story { width: min(64vw, 18rem); top: 48.5%; gap: 0.42rem; }
  .cine-orbit-title { font-size: clamp(1.02rem, 5.2vw, 1.38rem); line-height: 1.08; }
  .cine-orbit-story::before { inset: -38% -18%; background: radial-gradient(ellipse, rgba(7, 8, 12, 0.58), rgba(7, 8, 12, 0.26) 48%, transparent 76%); }
  .cine-orbit-title .orbit-line-em { color: #e8c986; text-shadow: 0 1px 3px #07070a, 0 4px 18px rgba(0,0,0,0.9); }
  .orbit-story-rule { width: 3.4rem; }
  .cap[data-at^="travel"] { top: 82%; width: 82vw; font-size: clamp(1.25rem, 6vw, 1.65rem); }
  .cine-controls { gap: 0.4rem; padding-inline: 0.75rem; }
  .cine-control { min-height: 2.75rem; padding-inline: 0.82rem; letter-spacing: 0.12em; }
  .cine-control-label { display: none; }
  .mem:nth-child(n+11) { display: none; }
}

/* ——— reduced motion: an elegant still composition ——— */
html.no-motion #cinema { height: auto; background: #10121c; }
html.no-motion .cine-stage { position: static; height: auto; overflow: visible; padding: 5rem 0 4rem; }
html.no-motion .cine-sky, html.no-motion .cine-dust, html.no-motion .cine-controls,
html.no-motion .impact-ring, html.no-motion .plane-lander, html.no-motion .light-leak,
html.no-motion .cine-vignette { display: none; }
html.no-motion .cine-bookscene { position: static; perspective: none; padding: 0 6vw 3rem; }
html.no-motion .book { transform: rotateX(4deg) rotateZ(-1deg); margin: 0 auto; }
html.no-motion .cine-field { position: static; perspective: none; overflow: visible; }
html.no-motion .cine-camera {
  position: static; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem; padding: 1rem 6vw 3rem;
}
html.no-motion .mem { position: static; width: clamp(9rem, 26vw, 14rem); opacity: 1; }
html.no-motion .mem-card img { opacity: 1; }
html.no-motion .cine-bookscene, html.no-motion .book-glow { opacity: 1; }
html.no-motion .cine-caps { position: static; display: grid; gap: 0.7rem; padding: 0 6vw 3rem; }
html.no-motion .cap { position: static; transform: none; opacity: 1; font-size: clamp(1.2rem, 3vw, 1.7rem); }
html.no-motion .cap::before { display: none; }
html.no-motion .cine-reveal { position: static; padding: 2rem 6vw 3rem; opacity: 1; visibility: visible; }
html.no-motion .reveal-bg { display: none; }
html.no-motion .reveal-kicker, html.no-motion .reveal-rule, html.no-motion .reveal-venue,
html.no-motion .reveal-addr, html.no-motion .reveal-date { opacity: 1; }
/* reduced motion: the film's book stays closed (cover + title only) */
html.no-motion .book-leaf, html.no-motion .book-leftwing,
html.no-motion .leaf-shadow, html.no-motion .book-page-base { display: none; }
/* the album still works, with instant page changes */
html.no-motion .album-edge { transition: none; }

/* ───────────────────────────── PHOTO CHAPTERS ───────────────────────────── */
.culture-section {
  background:
    radial-gradient(55% 28% at 50% 0%, rgba(166, 61, 47, 0.08), transparent 72%),
    var(--bg);
}
.chapter-gallery { display: grid; gap: clamp(0.65rem, 1.5vw, 1.2rem); }
.culture-gallery { grid-template-columns: repeat(12, 1fr); align-items: start; }
.culture-gallery .chapter-photo { grid-column: span 3; aspect-ratio: 2 / 3; }
.culture-gallery .chapter-wide { grid-column: span 6; aspect-ratio: 3 / 2; }
.culture-gallery .chapter-photo:nth-child(4),
.culture-gallery .chapter-photo:nth-child(5) { grid-column: span 3; }
.chapter-bridge {
  display: grid; grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  align-items: center; gap: clamp(1rem, 3vw, 2rem);
  margin: clamp(4.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.chapter-bridge > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 133, 63, 0.48));
}
.chapter-bridge > span:last-child { transform: scaleX(-1); }
.chapter-bridge .kicker { margin-bottom: 0.35rem; }
.chapter-bridge h3 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); font-weight: 400; }
.celebration-gallery { grid-template-columns: repeat(5, 1fr); }
.celebration-gallery .chapter-photo { aspect-ratio: 2 / 3; min-height: 0; }
.chapter-photo {
  position: relative; margin: 0; overflow: hidden; min-height: 15rem;
  border-radius: clamp(0.55rem, 1.4vw, 1.1rem); background: var(--card);
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.chapter-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.chapter-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s ease;
}
.chapter-photo:hover img { transform: scale(1.035); }
.culture-gallery .chapter-wide img { object-position: center 44%; }

/* ═══════════════ THE KOREAN WEDDING ALBUM (interactive flipbook) ═══════════════
   A physical printed album: leather boards, thick sheet edges that transfer
   from right to left as pages turn, leaves hinged at the gutter.            */
.album-scene { margin-top: clamp(2.2rem, 5vw, 3.4rem); display: grid; justify-items: center; gap: 1.15rem; }
.album-stage { width: 100%; display: grid; justify-items: center; perspective: 1700px; }
.kr-album {
  position: relative; width: min(92vw, 780px); aspect-ratio: 2 / 1.36;
  transform-style: preserve-3d; border-radius: 10px;
  --edges-left: 0; --edges-right: 5;
}
.kr-album:focus-visible { outline: 2px solid var(--gold); outline-offset: 10px; }

.album-board {
  position: absolute; inset: -10px -13px -15px; border-radius: 16px;
  background:
    radial-gradient(140% 90% at 30% -20%, rgba(255, 226, 178, 0.1), transparent 55%),
    radial-gradient(120% 130% at 22% 0%, #3a2c22 0%, #241a13 55%, #17100b 100%);
  box-shadow:
    inset 0 1px 0 rgba(232, 200, 150, 0.16),
    inset 0 -5px 14px rgba(0, 0, 0, 0.5),
    0 30px 70px -22px rgba(20, 12, 4, 0.65);
}
.album-board::before {
  content: ""; position: absolute; inset: 7px; border-radius: 10px;
  border: 1px solid rgba(212, 188, 139, 0.3); pointer-events: none;
}

.album-edge { /* remaining sheet thickness on each side */
  position: absolute; top: 5px; bottom: 7px; z-index: 1;
  background: repeating-linear-gradient(90deg, #efe4cd 0 1px, #d2c4a7 1px 2.2px);
  box-shadow: inset 0 0 4px rgba(90, 66, 38, 0.42);
  transition: width 0.9s var(--ease-luxe);
}
.album-edge-left  { right: 100%; width: calc(var(--edges-left)  * 1.6px); border-radius: 3px 0 0 3px; }
.album-edge-right { left: 100%;  width: calc(var(--edges-right) * 1.6px); border-radius: 0 3px 3px 0; }

.album-leaves {
  position: absolute; left: 50%; top: 0; width: 50%; height: 100%;
  transform-style: preserve-3d;
}
.album-leaf {
  position: absolute; inset: 0;
  transform-origin: left center; transform-style: preserve-3d;
  will-change: transform; --sheen: 0;
}
.album-face {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(rgba(120, 92, 55, 0.05) 0.6px, transparent 1px) 0 0 / 7px 7px,
    linear-gradient(130deg, #f8f1e2, #e6dabf);
  border-radius: 0 9px 9px 0;
  box-shadow: inset 16px 0 26px -20px rgba(37, 25, 14, 0.85);
}
.album-face.face-back {
  transform: rotateY(180deg); border-radius: 9px 0 0 9px;
  box-shadow: inset -16px 0 26px -20px rgba(37, 25, 14, 0.85);
}
.album-face::after { /* curl highlight while turning */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(102deg, transparent 26%, rgba(255, 252, 240, 0.85) 47%, transparent 64%);
  opacity: calc(var(--sheen, 0)); pointer-events: none;
}

/* page contents */
.af-photo {
  position: absolute; inset: 6% 7% 10%;
  background: #fffdf6; padding: 2.8%;
  box-shadow: 0 7px 20px -9px rgba(40, 28, 14, 0.4), 0 0 0 1px rgba(150, 113, 57, 0.12);
}
.af-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.af-photo-landscape {
  top: 28%; right: 7%; bottom: auto; left: 7%; height: 42%;
  padding: 2.2%;
}
.af-photo-landscape img { object-fit: contain; object-position: center; }
.af-num {
  position: absolute; bottom: 3.2%; left: 0; right: 0; text-align: center;
  font-size: 0.6rem; letter-spacing: 0.22em; color: rgba(110, 86, 52, 0.6);
}
.af-cover { /* leather front of the album */
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.65rem;
  text-align: center; padding: 8%;
  background:
    radial-gradient(140% 90% at 30% -20%, rgba(255, 226, 178, 0.12), transparent 55%),
    radial-gradient(120% 130% at 22% 0%, #403125 0%, #271c14 55%, #1a120c 100%);
  border-radius: inherit;
}
.af-frame {
  position: absolute; inset: 6.5%; pointer-events: none;
  border: 1px solid rgba(212, 188, 139, 0.42); border-radius: 4px;
}
.af-frame::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(212, 188, 139, 0.18); border-radius: 3px;
}
.af-eyebrow {
  font-size: clamp(0.5rem, 1.3vmin, 0.62rem); letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(212, 188, 139, 0.75);
}
.af-title {
  font-size: clamp(1.1rem, 3.4vmin, 1.7rem); font-style: italic; font-weight: 500;
  letter-spacing: 0.04em; line-height: 1.3;
  background: linear-gradient(100deg, #caa96a 0%, #f0dfae 40%, #caa96a 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.af-ornament {
  width: 6px; height: 6px; margin: 0.25rem auto 0; transform: rotate(45deg);
  background: rgba(212, 188, 139, 0.8);
}
.af-quiet { /* flyleaf / closing pages */
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.8rem;
  text-align: center; padding: 10%;
}
.af-quiet .af-line { width: 3.2rem; height: 1px; margin: 0 auto; background: rgba(150, 113, 57, 0.4); }
.af-quiet p {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(0.95rem, 2.6vmin, 1.3rem); color: rgba(96, 74, 44, 0.85); line-height: 1.5;
}
.af-heritage {
  position: absolute; inset: 7% 9%;
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  text-align: center; gap: clamp(0.35rem, 1.3vmin, 0.75rem);
}
.af-heritage-symbol { display: block; object-fit: contain; }
.af-heritage-doppa {
  width: clamp(2.7rem, 9.5vmin, 5.2rem); height: clamp(2.7rem, 9.5vmin, 5.2rem);
  align-self: end;
}
.af-heritage-hanbok {
  width: auto; height: clamp(3.8rem, 13.5vmin, 7rem);
  align-self: start;
}
.af-heritage-title { display: grid; justify-items: center; gap: clamp(0.35rem, 1vmin, 0.65rem); }
.af-heritage-title .af-line { width: clamp(2.4rem, 8vmin, 3.8rem); height: 1px; background: rgba(150, 113, 57, 0.4); }
.af-heritage-title p {
  max-width: 14rem;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  font-size: clamp(0.82rem, 2.45vmin, 1.22rem); color: rgba(96, 74, 44, 0.88); line-height: 1.35;
}
.album-under-shadow { /* soft shadow swept across the page beneath a turn */
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(84deg, rgba(20, 12, 5, 0.4), rgba(20, 12, 5, 0.12) 45%, transparent 70%);
  border-radius: 0 9px 9px 0;
}
.album-gutter {
  position: absolute; left: 50%; top: 3px; bottom: 5px; width: 30px; z-index: 40;
  transform: translateX(-50%); pointer-events: none; border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(31, 20, 10, 0.32) 38%, rgba(31, 20, 10, 0.46) 50%, rgba(31, 20, 10, 0.32) 62%, transparent);
  mix-blend-mode: multiply;
}

.album-controls { display: flex; align-items: center; gap: 1.1rem; }
.album-btn {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-deep);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out), opacity 0.3s;
  touch-action: manipulation;
}
html.dark .album-btn { color: var(--gold); }
.album-btn:hover:not(:disabled) { background: var(--gold); color: #fffdf7; transform: translateY(-2px); }
.album-btn:disabled { opacity: 0.32; pointer-events: none; }
.album-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#kr-next.is-inviting:not(:disabled) {
  animation: album-next-pulse 2.8s ease-in-out infinite;
}
#kr-next.is-inviting:not(:disabled) svg {
  animation: album-arrow-pulse 2.8s ease-in-out infinite;
}
@keyframes album-next-pulse {
  0%, 100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(203, 164, 87, 0), 0 0 0 rgba(203, 164, 87, 0);
  }
  46% {
    background: rgba(203, 164, 87, 0.14);
    box-shadow: 0 0 0 5px rgba(203, 164, 87, 0.08), 0 0 22px rgba(203, 164, 87, 0.34);
  }
  68% {
    background: rgba(203, 164, 87, 0.05);
    box-shadow: 0 0 0 2px rgba(203, 164, 87, 0.03), 0 0 10px rgba(203, 164, 87, 0.12);
  }
}
@keyframes album-arrow-pulse {
  0%, 100% { opacity: 0.68; filter: drop-shadow(0 0 0 rgba(227, 194, 126, 0)); }
  46% { opacity: 1; filter: drop-shadow(0 0 5px rgba(227, 194, 126, 0.78)); }
  68% { opacity: 0.78; filter: drop-shadow(0 0 2px rgba(227, 194, 126, 0.24)); }
}
.album-count {
  min-width: 9.5rem; text-align: center;
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 1.06rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.album-hint { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-soft); opacity: 0.75; }

/* ── single-page mode (phones) ──────────────────────────────────────────
   One portrait page fills the frame, so a photograph renders at roughly
   4.5× the area it had in a shrunken two-page spread. Sheets are hinged
   at the left binding and sweep away to the left, revealing the next.  */
.album-page {
  position: absolute; inset: 0;
  transform-origin: left center; transform-style: preserve-3d;
  will-change: transform; --sheen: 0;
}
.kr-album.is-single .album-leaves { left: 0; width: 100%; }
.kr-album.is-single .album-gutter {
  left: 0; width: 16px; transform: none;
  background: linear-gradient(90deg, rgba(31, 20, 10, 0.5), rgba(31, 20, 10, 0.16) 60%, transparent);
}
@media (max-width: 640px) {
  /* the turning sheet sweeps left and leaves the frame at the binding */
  .album-stage { overflow: hidden; padding-block: 6px; }
  .kr-album { width: min(88vw, 420px); aspect-ratio: 3 / 3.9; }
  .album-btn { width: 3.15rem; height: 3.15rem; }
  .album-count { min-width: 7.5rem; font-size: 0.95rem; }
  /* a single page is taller, so the photo can breathe */
  .is-single .af-photo { inset: 5% 6% 8%; }
  /* a landscape print is mounted in the middle of the taller page,
     rather than pinned to the top with dead paper beneath it */
  .is-single .af-photo-landscape {
    top: 50%; bottom: auto; height: 46%;
    transform: translateY(-50%);
  }
  .is-single .af-num { bottom: 2.4%; }
}

/* ── full-screen photograph viewer ── */
#kr-viewer {
  position: fixed; inset: 0; z-index: 260; display: none;
  place-items: center; padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 7, 4, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
#kr-viewer.is-open { display: grid; }
#kr-viewer img {
  max-width: 100%; max-height: 84svh; width: auto; height: auto;
  border-radius: 4px; background: #f6efdf; padding: 8px;
  box-shadow: 0 36px 90px -28px rgba(0, 0, 0, 0.85);
}
.kr-viewer-close {
  position: absolute; top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  color: #f3ead6; border: 1px solid rgba(217, 185, 126, 0.45);
  background: rgba(20, 14, 8, 0.5);
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.kr-viewer-close:hover { background: rgba(168, 133, 63, 0.55); transform: scale(1.06); }
.kr-viewer-close svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  #kr-next.is-inviting:not(:disabled),
  #kr-next.is-inviting:not(:disabled) svg { animation: none; }
  #kr-next.is-inviting:not(:disabled) { box-shadow: 0 0 14px rgba(203, 164, 87, 0.2); }
}

.guestbook-with-rsvp { margin-top: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.guestbook-title { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 400; }
.guestbook-with-rsvp .gb-list { text-align: left; }

@media (max-width: 820px) {
  .culture-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .culture-gallery .chapter-photo { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 4; }
  .culture-gallery .chapter-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .chapter-bridge { margin-top: 4rem; }
  .celebration-gallery { grid-template-columns: repeat(2, 1fr); }
  .celebration-gallery .chapter-photo:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}

@media (min-width: 768px) {
  #site-nav #nav-burger { display: none; }
}

/* ───────────────────────────── 15. DETAILS ───────────────────────────── */
.venue-card {
  display: grid; overflow: hidden; border-radius: 1.3rem;
  background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, background-color 0.6s;
}
.venue-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@media (min-width: 820px) { .venue-card { grid-template-columns: 0.9fr 1.1fr; } }
.venue-photo { margin: 0; position: relative; min-height: 16rem; overflow: hidden; }
.venue-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015);
  transition: opacity 0.9s ease, transform 5.4s ease;
}
.venue-photo img.is-active { opacity: 1; transform: scale(1); }
.venue-card:hover .venue-photo img.is-active { transform: scale(1.045); }
.venue-photo::after {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(20, 12, 5, 0.34));
  pointer-events: none;
}
.venue-carousel-dots {
  position: absolute; z-index: 2; left: 50%; bottom: 1rem;
  display: flex; gap: 0.55rem; transform: translateX(-50%);
}
.venue-carousel-dots button {
  width: 0.62rem; height: 0.62rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 250, 240, 0.82); background: rgba(20, 14, 8, 0.34);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, background-color 0.3s;
}
.venue-carousel-dots button.is-active { background: #fffaf0; transform: scale(1.22); }
.venue-info {
  position: relative; text-align: center; padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 2.6rem);
}
.venue-info::before {
  content: ""; position: absolute; inset: 0.65rem; border: 1px solid var(--line-soft);
  border-radius: 0.8rem; pointer-events: none;
}
.venue-info h3 { font-size: 1.7rem; font-weight: 500; letter-spacing: 0.05em; }
.venue-note { color: var(--ink-soft); font-size: 0.88rem; margin: 0.9rem 0 1.4rem; font-style: italic; }
.d-ico { width: 3.4rem; height: 3.4rem; margin: 0 auto 1.2rem; color: var(--gold); }
.d-ico svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.d-time { font-size: 2.1rem; color: var(--gold); margin-top: 0.5rem; font-weight: 400; }
.d-name { margin-top: 0.9rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
.d-addr { color: var(--ink-soft); font-size: 0.9rem; margin: 0.3rem 0 1.5rem; }

.dress { text-align: center; margin-top: clamp(2.6rem, 6vw, 4rem); }
.dress-val { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--ink); margin-top: 0.6rem; font-style: italic; }
.dress-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.4rem; }
.dress-dots { display: flex; justify-content: center; gap: 0.7rem; margin-top: 1.1rem; }
.dress-dots span {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--c);
  border: 1px solid var(--line); box-shadow: inset 0 -2px 5px rgba(0,0,0,0.12);
  transition: transform 0.3s var(--ease-out);
}
.dress-dots span:hover { transform: scale(1.25); }

/* ───────────────────────────── 16. SCHEDULE ───────────────────────────── */
.sch-list { list-style: none; margin: 0; padding: 0; position: relative; }
.sch-list::before {
  content: ""; position: absolute; left: 5.4rem; top: 0.4rem; bottom: 0.4rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 6%, var(--gold-soft) 94%, transparent);
}
.sch-item { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 2.6rem; padding: 1.15rem 0; }
.sch-item::before {
  content: ""; position: absolute; left: 5.4rem; top: 1.75rem; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--gold); opacity: 0.9;
}
.sch-time {
  font-family: "Cormorant Garamond", serif; font-size: 1.25rem; color: var(--gold);
  text-align: right; padding-top: 0.15rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sch-title { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.sch-desc { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.2rem; }

/* ───────────────────────────── 17. FORMS (RSVP + Guest book) ───────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 1.3rem;
  box-shadow: var(--shadow-sm); padding: clamp(1.8rem, 5vw, 2.8rem);
  transition: background-color 0.6s, border-color 0.6s;
}
.form-card { display: grid; gap: 1.55rem; }
.f-row { display: grid; gap: 1.55rem; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }

.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 1.15rem 0 0.6rem; font: inherit; font-weight: 300;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 4.6rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field label {
  position: absolute; left: 0; top: 1.05rem; color: var(--ink-soft);
  pointer-events: none; transition: all 0.3s var(--ease-out); font-size: 0.95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.lbl-static {
  top: -0.35rem; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.field select { background-image: none; }
.field::has(select)::after { content: none; }
.field:has(select)::after {
  content: ""; position: absolute; right: 0.2rem; top: 1.45rem;
  width: 0.55rem; height: 0.55rem; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg); pointer-events: none;
}

.f-err { display: none; color: var(--crimson); font-size: 0.74rem; letter-spacing: 0.06em; margin-top: 0.4rem; }
.field.invalid .f-err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--crimson); }

.rsvp-sync-status {
  min-height: 1.1rem;
  margin-top: -0.75rem;
  color: var(--crimson);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

/* Success card */
.success-card { text-align: center; display: grid; justify-items: center; gap: 0.7rem; }
.success-card h3 { font-size: 2rem; font-weight: 500; }
.success-card p { color: var(--ink-soft); max-width: 26rem; }
.ok-ring { width: 6rem; height: 6rem; }
.ok-ring circle, .ok-ring path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ok-circle { stroke: var(--gold-soft); stroke-dasharray: 100; stroke-dashoffset: 100; }
.ok-check  { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100; }
#rsvp-success.show .ok-circle { animation: ringdraw 0.9s var(--ease-luxe) forwards; }
#rsvp-success.show .ok-check  { animation: ringdraw 0.6s 0.7s var(--ease-luxe) forwards; }
.success-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 0.8rem; }

/* ───────────────────────────── 18. GUEST BOOK ───────────────────────────── */
.gb-list { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.gb-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 1.1rem;
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm);
}
.gb-ava {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #fffdf7;
  font-family: "Cormorant Garamond", serif; font-size: 1.2rem; font-weight: 500;
}
.gb-meta { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.gb-name { font-weight: 400; letter-spacing: 0.04em; }
.gb-time { color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.08em; }
.gb-text { color: var(--ink-soft); font-size: 0.93rem; margin-top: 0.25rem; overflow-wrap: anywhere; }
.gb-delete {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2rem;
  transition: color 0.2s;
}
.gb-delete:hover, .gb-delete:focus-visible { color: var(--crimson); }
.gb-delete.is-confirming { color: var(--crimson); font-weight: 500; }
.gb-delete:disabled { opacity: 0.55; cursor: wait; }

/* ───────────────────────────── 19. FOOTER ───────────────────────────── */
#site-footer {
  position: relative; padding: clamp(4.5rem, 10vw, 7rem) 0 3rem; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(168, 133, 63, 0.14), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
  transition: background-color 0.6s;
}
.foot-ring { width: 5.4rem; height: 5.4rem; margin: 0 auto 1.2rem; }
.foot-ring circle { fill: none; stroke: var(--gold-soft); stroke-width: 1; stroke-dasharray: 78 22; }
.foot-script { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--gold); line-height: 1.15; }
.foot-date { letter-spacing: 0.4em; color: var(--ink-soft); margin-top: 0.7rem; font-size: 1.05rem; }
.foot-msg { color: var(--ink-soft); margin-top: 1.6rem; font-size: 0.95rem; }
.foot-actions { margin-top: 1.8rem; }
.foot-tag { margin-top: 2.2rem; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--gold); font-style: italic; }
.foot-fineprint { margin-top: 2.6rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.65; }

/* ───────────────────────────── 20. DOCK / TOAST / CANVASES ───────────────────────────── */
#dock {
  position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: clamp(1rem, 4vh, 1.8rem);
  z-index: 110; display: grid; gap: 0.7rem;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#dock.visible { opacity: 1; transform: none; pointer-events: auto; }
.dock-btn {
  position: relative; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--gold); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s;
}
.dock-btn:hover { transform: translateY(-3px); }
.dock-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn[hidden] { display: none; }

/* music button: bars replace note when playing */
.music-bars { display: none; align-items: flex-end; gap: 2.5px; height: 1rem; }
.music-bars i { width: 2.5px; background: currentColor; border-radius: 2px; animation: eq 0.9s var(--ease-luxe) infinite alternate; }
.music-bars i:nth-child(1) { height: 45%; animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 95%; animation-delay: 0.18s; }
.music-bars i:nth-child(3) { height: 65%; animation-delay: 0.34s; }
@keyframes eq { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
#btn-music.playing .ico-music { display: none; }
#btn-music.playing .music-bars { display: flex; }

/* theme icons crossfade */
#btn-theme { overflow: hidden; }
#btn-theme svg { position: absolute; transition: transform 0.5s var(--ease-luxe), opacity 0.4s; }
#btn-theme .ico-sun  { opacity: 0; transform: translateY(120%) rotate(90deg); }
#btn-theme .ico-moon { opacity: 1; transform: none; }
html.dark #btn-theme .ico-sun  { opacity: 1; transform: none; }
html.dark #btn-theme .ico-moon { opacity: 0; transform: translateY(-120%) rotate(-90deg); }

/* back-to-top progress ring */
#btn-top .top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#btn-top .top-ring circle { stroke-width: 1.6; }
#btn-top .top-track { stroke: var(--line-soft); }
#btn-top .top-prog { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.2s linear; }
#btn-top .ico-arrow { width: 0.95rem; height: 0.95rem; }

#toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 180%);
  z-index: 260; background: var(--ink); color: var(--bg);
  padding: 0.8rem 1.6rem; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.12em;
  box-shadow: var(--shadow); transition: transform 0.5s var(--ease-luxe);
  max-width: 88vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); }

#petals-canvas, #confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 60;
}
#petals-canvas { z-index: 40; opacity: 0.8; }

/* ───────────────────────────── 21. MOTION & MISC ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* keyboard-visible focus on dark backdrops */
#mobile-menu :focus-visible, #cinema :focus-visible { outline-color: var(--gold-soft); }

@media (max-width: 480px) {
  .hero-date { display: grid; gap: 0.22rem; font-size: 0.98rem; line-height: 1.35; }
  .hero-dot { display: none; }
  .cd-sep { display: none; }
  .cd-grid { flex-wrap: wrap; }
  .sch-list::before { left: 4.6rem; }
  .sch-item { grid-template-columns: 3.4rem 1fr; gap: 2rem; }
  .sch-item::before { left: 4.6rem; }
  .hero-orn-tl { left: 2vw; }
  .hero-orn-br { right: 2vw; }
}

/* a gentle explanation when a visitor has no personal invitation link */
.f-hint {
  margin-top: 0.55rem; font-size: 0.78rem; line-height: 1.5;
  color: var(--ink-soft); font-style: italic;
}
.field:has(textarea:disabled) label { opacity: 0.55; }
.guestbook-link { margin: 0.5rem 0 1.6rem; }
.guestbook-link a {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep); border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.2rem; transition: color 0.3s, border-color 0.3s;
}
html.dark .guestbook-link a { color: var(--gold); }
.guestbook-link a:hover { color: var(--ink); border-color: var(--gold); }
