/* ============================================================================
   Gurudev's Sacred Space — Cinematic Landing
   ========================================================================== */

:root {
  --bg: #07070c;
  --ink: #f4f1ea;
  --muted: #a39e96;
  --accent: #6a5cf0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --banner-h: 0px;                                   /* synced in JS to the sticky banner */
  --maxframe: min(78vh, calc((100svh - var(--banner-h)) * 0.9));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* clip (not hidden) so it doesn't break position:sticky */
}
body.locked { overflow: hidden; }

img { display: block; }
button { font-family: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---- full-page space backdrop (fixed, behind every section) -------------- */
#sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* faint, dark nebula clouds drifting across the whole page */
  background:
    radial-gradient(38% 30% at 16% 10%, rgba(122,42,48,.12), transparent 60%),
    radial-gradient(40% 32% at 84% 26%, rgba(64,46,122,.11), transparent 60%),
    radial-gradient(46% 34% at 62% 58%, rgba(96,60,122,.09), transparent 60%),
    radial-gradient(48% 36% at 26% 84%, rgba(112,54,64,.08), transparent 60%),
    radial-gradient(60% 50% at 78% 92%, rgba(60,44,120,.08), transparent 60%);
}
#sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- ambient colour wash (fixed, over the sky) --------------------------- */
#ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  transition: background 1.1s cubic-bezier(.4,0,.2,1);
  will-change: background;
}

/* film-grain vignette over the whole thing */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---- scroll progress bar ------------------------------------------------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: background .8s ease; will-change: transform;
  box-shadow: 0 0 14px var(--accent);
}

/* ---- preloader ----------------------------------------------------------- */
#preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center;
  justify-items: center; gap: 18px; background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-mark { font-size: 44px; color: var(--accent); animation: spin 6s linear infinite; }
.pl-logo { width: 96px; aspect-ratio: 1 / 1; margin: 0; }   /* rotating 45-yr emblem in the preloader */
#preloader p { color: var(--muted); letter-spacing: .25em; text-transform: uppercase; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- spine / journey map ------------------------------------------------- */
#spine {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
/* soft scrim behind the spine so the dots stay legible over any content */
#spine::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -18px -16px -18px -28px; border-radius: 26px;
  background: linear-gradient(to left, rgba(6,6,11,.5), rgba(6,6,11,.22) 50%, transparent 92%);
}
/* High-contrast black & white so the spine never merges with any section
   background (works over the bright banner, the cream Smiles panels, and
   the dark rooms alike): white marks with a dark outline + shadow. */
.spine-top {
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: .35em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.95);
}
#spine-list { display: flex; flex-direction: column; gap: 13px; align-items: flex-end; }
.spine-dot {
  display: flex; align-items: center; gap: 10px; opacity: .85; transition: opacity .35s;
}
.spine-dot i {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.4); border: 1.5px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.7);
  transition: all .35s ease;
}
.spine-label {
  font-family: var(--serif); font-size: 15px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.95);
  opacity: 0; transform: translateX(8px); transition: all .35s ease; white-space: nowrap;
}
.spine-dot:hover { opacity: 1; }
.spine-dot:hover .spine-label { opacity: .9; transform: none; }
.spine-dot.active { opacity: 1; }
.spine-dot.active i {
  background: #fff; border-color: #fff; transform: scale(1.4);
  box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 0 10px rgba(255,255,255,.75);
}
.spine-dot.active .spine-label { opacity: 1; transform: none; color: #fff; }

/* ---- hero ---------------------------------------------------------------- */
#hero {
  position: relative; height: 100svh; min-height: 600px; z-index: 2;
  display: grid; place-items: center; overflow: hidden;
  --px: 0; --py: 0;
  --accent: #d6ad48; /* threshold stays golden, regardless of room colour */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* deep-space nebula: faint Milky-Way red + cool indigo clouds over a dark base */
  background:
    radial-gradient(42% 55% at 24% 44%, rgba(150,46,52,.22), transparent 60%),
    radial-gradient(40% 52% at 77% 56%, rgba(72,50,134,.20), transparent 60%),
    radial-gradient(34% 44% at 56% 26%, rgba(96,62,128,.13), transparent 58%),
    radial-gradient(30% 40% at 44% 74%, rgba(120,60,70,.12), transparent 58%),
    radial-gradient(135% 105% at 50% 42%, #110c15 0%, #080510 52%, #030207 100%);
  perspective: 1400px;
}
/* drifting star particles — infinite space */
#starfield {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
/* center panel (World Culture Festival) sitting between the year-doors */
.door-center {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50%; z-index: 1; overflow: hidden;
}
.door-center img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  filter: brightness(.72) contrast(1.06) saturate(1.05);
}
/* feather the edges so it melts into the nebula instead of a hard rectangle */
.door-center::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 82% at 50% 40%, transparent 42%, rgba(7,7,12,.4) 78%, rgba(7,7,12,.85) 100%),
    linear-gradient(to bottom, rgba(7,7,12,.5), transparent 24%, transparent 74%, rgba(7,7,12,.8) 100%);
}

/* the two cosmic year-doors flanking the threshold */
.door {
  position: absolute; top: 0; bottom: 0; width: 42%; z-index: 2;
  display: flex; align-items: center; backface-visibility: hidden;
}
.door img {
  width: 100%; height: auto; max-height: 86%; object-fit: contain; display: block;
  filter: brightness(.62) contrast(1.05) saturate(1.02);
}
/* soft fade toward the centre so the open portal/starfield reads between the years */
.door::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.door-left {
  left: 0; justify-content: flex-start; transform-origin: left center;
  transform: rotateY(6deg) translateX(calc(var(--px) * -12px));
  transition: transform .25s ease-out;
}
.door-left::after {
  background: linear-gradient(to right, transparent 55%, rgba(7,7,12,.85) 100%);
}
.door-right {
  right: 0; justify-content: flex-end; transform-origin: right center;
  transform: rotateY(-6deg) translateX(calc(var(--px) * -12px));
  transition: transform .25s ease-out;
}
.door-right::after {
  background: linear-gradient(to left, transparent 55%, rgba(7,7,12,.85) 100%);
}
@media (max-width: 720px) {
  .door { width: 48%; }
  .door img { max-height: 40%; }
  .door-left { transform: none; } .door-right { transform: none; }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(80% 60% at 50% 55%, transparent 0%, rgba(7,7,12,.7) 75%),
    linear-gradient(to bottom, rgba(7,7,12,.55), rgba(7,7,12,.2) 40%, var(--bg) 98%);
}
.hero-inner {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px));
}
/* 45-year anniversary emblem — outer ring spins, core stays still */
.logo45 {
  position: relative; width: clamp(108px, 13vw, 158px); aspect-ratio: 1 / 1;
  margin: 0 auto 28px; animation: rise .9s .1s both;
}
.logo45 img { position: absolute; object-fit: contain; }
.logo45-ring {
  inset: 0; width: 100%; height: 100%;
  animation: spin45 16s linear infinite;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.5));
  will-change: transform;
}
.logo45-core {
  width: 63%; height: 63%; top: 18.5%; left: 18.5%;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.35));
}
@keyframes spin45 { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.0;
  font-size: clamp(30px, 5.4vw, 72px); letter-spacing: -.005em; max-width: 16ch; margin: 0 auto;
  text-shadow: 0 8px 60px rgba(0,0,0,.6); animation: rise 1s .35s both;
}
.hero-title em {
  display: block; white-space: nowrap; font-size: .56em; line-height: 1.15; margin-top: .35em;
  font-style: italic; color: #e6c463; /* fallback */
  background: linear-gradient(180deg, #f6dd92 0%, #d8ab43 52%, #b07d2a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 560px; margin: 30px auto 40px; color: var(--muted);
  font-size: clamp(15px, 1.7vw, 19px); font-weight: 300; line-height: 1.6;
  animation: rise 1s .55s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.enter-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--ink); padding: 16px 34px; border-radius: 100px;
  font-size: 14px; letter-spacing: .08em; backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: all .4s cubic-bezier(.2,.7,.3,1); animation: rise 1s .75s both;
}
.enter-btn i { font-style: normal; transition: transform .4s; }
.enter-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #07070c;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}
.enter-btn:hover i { transform: translateY(3px); }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
  z-index: 2;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 38px; margin: 10px auto 0;
  background: linear-gradient(var(--muted), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---- full-width welcome banner band -------------------------------------- */
.banner-band {
  position: sticky; top: 0; z-index: 30; width: 100%; line-height: 0;
  background: var(--bg);
  border-top: 1px solid rgba(214, 173, 72, .25);
  border-bottom: 1px solid rgba(214, 173, 72, .25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.banner-band img { width: 100%; height: auto; display: block; }

/* ---- room sections ------------------------------------------------------- */
.room { position: relative; z-index: 2; }
.room-sticky {
  position: sticky; top: var(--banner-h); height: calc(100svh - var(--banner-h)); overflow: hidden;
  display: flex; align-items: center;
}

/* standing intro panel — sits left, fades as rail takes over */
.room-intro {
  position: absolute; left: clamp(24px, 7vw, 130px); top: 50%; z-index: 4;
  transform: translateY(-50%); max-width: min(40vw, 460px); pointer-events: none;
  will-change: opacity, transform;
}
.room-num {
  font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--room);
  opacity: .8;
}
/* big, faded room numeral sitting at the top of the intro, above the title.
   Capped to ~30% of the space left under the banner so the kicker/title/blurb/
   scroll-hint always stay on screen (the number was pushing them off on
   laptop-height desktops). */
.room-intro .room-num {
  display: block; font-weight: 600;
  font-size: clamp(112px, min(27vw, calc((100svh - var(--banner-h)) * 0.34)), 460px);
  line-height: .8; letter-spacing: -.035em; opacity: .34; margin-bottom: 2px;
  color: color-mix(in srgb, var(--room) 76%, #fff 24%);
  text-shadow: 0 0 34px color-mix(in srgb, var(--room) 42%, transparent);
}
.room-kicker {
  display: block; font-size: 12px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 8px;
}
.room-name {
  font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.5vw, 92px);
  line-height: .98; letter-spacing: -.01em;
  text-shadow: 0 6px 50px rgba(0,0,0,.7);
}
.room-blurb {
  margin-top: 18px; color: var(--muted); font-weight: 300; font-size: clamp(15px,1.5vw,18px);
  line-height: 1.6; max-width: 380px;
}
.room-scrollhint {
  display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--room);
}

/* horizontal rail */
.room-rail {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 52px);
  padding: 0 max(8vw, 60px) 0 38vw; height: 100%;
  will-change: transform;
}
@media (max-width: 820px) { .room-rail { padding-left: 80vw; } }

.frame {
  position: relative; flex: none; height: var(--maxframe);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  background: #111119;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  transform: translateY(0) scale(1); transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s;
}
.frame img {
  height: 100%; width: auto; max-width: 78vw; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s;
  filter: saturate(1.02);
}
/* portrait "document" panels stay the same height as every other frame and
   show the whole page (contain = never cropped, centred) even on tall windows
   where the width cap would otherwise force a cover-crop. Zoom to read detail. */
.frame.tall img { object-fit: contain; background: #0c0c14; }
.frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  background: linear-gradient(120deg, transparent 60%, color-mix(in srgb, var(--room) 22%, transparent));
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.frame:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 44px 110px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--room) 30%, transparent);
}
.frame:hover img { transform: scale(1.06); }
.frame:hover::after { opacity: 1; }

/* quote card riding the end of the rail */
.quote-card {
  height: var(--maxframe); width: min(46vh, 520px); cursor: default;
  display: grid; place-items: center; padding: 6vh 5vh;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--room) 16%, #0c0c14), #0a0a10);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px color-mix(in srgb, var(--room) 30%, transparent);
}
.quote-card:hover { transform: none; }
.quote-card blockquote {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35;
  font-style: italic; text-align: center; color: var(--ink);
}
.quote-card cite {
  display: block; margin-top: 26px; font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--room);
}

/* scannable QR card (e.g. VDS → download form) riding the end of a rail */
.qr-card {
  height: var(--maxframe); width: min(46vh, 520px); cursor: default;
  display: grid; place-content: center; gap: 26px; padding: 6vh 5vh; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--room) 16%, #0c0c14), #0a0a10);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px color-mix(in srgb, var(--room) 30%, transparent);
}
.qr-card:hover { transform: none; }
.qr-box {
  width: min(34vh, 280px); aspect-ratio: 1; margin: 0 auto; padding: 14px;
  border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transition: transform .3s, box-shadow .3s;
}
.qr-box:hover { transform: translateY(-3px); box-shadow: 0 24px 60px color-mix(in srgb, var(--room) 35%, transparent); }
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-cap {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3; color: var(--ink); max-width: 16em;
}

/* call-to-action card (Store / App) riding the end of a rail */
.cta-card {
  height: var(--maxframe); width: min(46vh, 520px); cursor: default;
  display: grid; place-content: center; gap: 30px; padding: 6vh 5vh; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--room) 16%, #0c0c14), #0a0a10);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px color-mix(in srgb, var(--room) 30%, transparent);
}
.cta-card:hover { transform: none; }
.cta-lead {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.32; color: var(--ink);
}
.cta-logos { display: grid; gap: 16px; justify-items: center; }
.cta-logo {
  display: grid; place-items: center; width: 100%; max-width: 260px; padding: 16px 24px;
  border-radius: 14px; transition: transform .3s, box-shadow .3s;
}
.cta-logo img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.cta-logo.on-light { background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.cta-logo.on-dark { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); }
.cta-logo:hover { transform: translateY(-3px); box-shadow: 0 16px 40px color-mix(in srgb, var(--room) 35%, rgba(0,0,0,.4)); }
.cta-sub {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--room);
}

/* ---- feedback / exit (room 11) ------------------------------------------- */
#feedback {
  position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding: calc(120px + var(--banner-h)) 24px 90px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.45));
  --accent: #c0a060; /* feedback stays gold regardless of scroll state */
}
.fb-inner { width: 100%; max-width: 600px; }
.finale-kicker {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--accent);
  display: block; margin-top: 10px;
}
.fb-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 78px);
  line-height: 1.02; margin: 22px 0 36px; letter-spacing: -.01em;
}
/* desktop: keep each line unbroken and let the heading break out of the 600px form column */
@media (min-width: 821px) {
  .fb-title {
    white-space: nowrap; width: max-content; max-width: 94vw;
    position: relative; left: 50%; transform: translateX(-50%);
  }
}
.fb-title em { font-style: italic; color: var(--accent); }

#fb-form { display: grid; gap: 18px; text-align: left; }
#fb-form[hidden], .fb-thanks[hidden] { display: none; }
.fb-q { font-family: var(--serif); font-size: 20px; color: var(--ink); text-align: center; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fb-chip {
  padding: 10px 20px; border-radius: 100px; font-size: 13px; letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.16); color: var(--muted);
  transition: all .3s cubic-bezier(.2,.7,.3,1);
}
.fb-chip:hover { border-color: var(--accent); color: var(--ink); }
.fb-chip.on {
  background: var(--accent); border-color: var(--accent); color: #07070c; font-weight: 500;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
#fb-text, .fb-row input {
  width: 100%; background: rgba(255,255,255,.04); color: var(--ink);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px;
  font-family: var(--sans); font-size: 15px; transition: border-color .3s, background .3s;
  resize: vertical;
}
#fb-text:focus, .fb-row input:focus {
  outline: none; border-color: var(--accent); background: rgba(255,255,255,.06);
}
#fb-text::placeholder, .fb-row input::placeholder { color: #6f6a62; }
.fb-row { display: flex; gap: 12px; }
.fb-row input { flex: 1; }
/* both actions on one line; primary filled-gold, secondary ghost */
.fb-actions {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 34px;
}
.fb-actions .enter-btn[hidden] { display: none; }
.fb-submit {
  background: var(--accent); border-color: var(--accent); color: #07070c; font-weight: 600;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 38%, transparent);
}
.fb-submit:hover {
  background: var(--accent); color: #07070c; filter: brightness(1.08);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 50%, transparent);
}

.fb-thanks { display: grid; gap: 14px; justify-items: center; padding: 30px 0; animation: rise .7s both; }
.fb-thanks h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px,4vw,40px); }
.fb-thanks p { color: var(--muted); font-weight: 300; }

.enter-btn.ghost { border-color: rgba(255,255,255,.18); background: transparent; }
.enter-btn.ghost:hover {
  background: var(--accent); border-color: var(--accent); color: #07070c;
}
@media (max-width: 560px) { .fb-row { flex-direction: column; } }

/* ---- Stay Connected footer ----------------------------------------------- */
#connect {
  position: relative; z-index: 2; padding: 86px 24px 64px;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(5,4,9,.82));
  border-top: 1px solid rgba(255,255,255,.06);
}
.connect-inner { max-width: 1000px; margin: 0 auto; }
.connect-head { text-align: center; margin-bottom: 46px; }
.connect-stay {
  display: block; font-family: var(--serif); font-style: italic; line-height: .7;
  font-size: clamp(32px, 5vw, 58px); color: #e6c463;
}
.connect-title {
  font-family: var(--sans); font-weight: 600; letter-spacing: .14em;
  font-size: clamp(28px, 4.6vw, 54px); color: var(--ink);
}
.connect-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 44px; align-items: center;
}
.qna { list-style: none; display: grid; gap: 16px; }
.qna-card {
  display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .3s, background .3s, transform .3s;
}
.qna-card:hover { background: rgba(255,255,255,.06); border-color: rgba(214,173,72,.3); transform: translateY(-2px); }
.qna-icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  transition: transform .3s;
}
.qna-icon:hover { transform: scale(1.08); }
.qna-icon svg { width: 22px; height: 22px; fill: #fff; }
.qna-icon.fb { background: #1877F2; }
.qna-icon.x  { background: #000; border: 1px solid rgba(255,255,255,.22); }
.qna-icon.ig { background: radial-gradient(circle at 30% 110%, #fdf497 5%, #fd5949 45%, #d6249f 65%, #285AEB 95%); }
.qna-text { line-height: 1.35; }
.qna-text .q { color: var(--muted); font-size: 14px; }
.qna-text .g { color: var(--ink); font-size: 15px; margin-top: 2px; }
.qna-text b {
  display: inline-block; width: 1.3em; color: #e6c463; font-weight: 700;
}
.qr { display: grid; justify-items: center; gap: 14px; text-decoration: none; }
.qr img {
  width: min(240px, 72%); background: #fff; padding: 14px; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45); transition: transform .3s, box-shadow .3s;
}
.qr:hover img { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(214,173,72,.25); }
.qr-link { color: #e6c463; font-weight: 600; letter-spacing: .03em; font-size: 16px; }
.connect-copy {
  text-align: center; margin-top: 52px; font-size: 11px; letter-spacing: .15em; color: #6f6a62;
}
@media (max-width: 760px) {
  .connect-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- ambient music: round play/pause button with curved label ----------- */
.music-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; cursor: pointer;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: rgba(12, 12, 20, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12); transition: color .3s, border-color .3s;
}
.music-toggle > * { grid-area: 1 / 1; }            /* stack ring + icon */
.music-toggle:hover { color: var(--ink); border-color: rgba(214, 173, 72, .4); }
.music-toggle .mt-ring {
  width: 100%; height: 100%; animation: mt-spin 18s linear infinite;
}
.music-toggle .mt-ring text {
  font-family: var(--sans); font-size: 8.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; fill: currentColor;
}
.music-toggle .mt-icon {
  font-size: 20px; line-height: 1; place-self: center;
}
.music-toggle.playing { color: #e6c463; border-color: rgba(214, 173, 72, .45); }
#voice-toggle { bottom: 116px; }                  /* stacked above the music button */
.music-toggle .mt-icon svg { display: block; }
@keyframes mt-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .music-toggle { left: 12px; bottom: 12px; width: 78px; height: 78px; }
  #voice-toggle { bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .music-toggle .mt-ring { animation: none; } }

/* ---- lightbox ------------------------------------------------------------ */
#lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(4,4,8,.92); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  padding: 4vh 6vw; overflow: hidden;
}
#lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { display: grid; gap: 22px; justify-items: center; max-width: 100%; max-height: 100%; }
#lb-img {
  max-width: min(86vw, 1200px); max-height: 72svh; width: auto; border-radius: 6px;
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--room,#fff) 30%, transparent),
              0 0 90px color-mix(in srgb, var(--room,#fff) 25%, transparent);
  transform: translate(0,0) scale(1); transition: transform .28s cubic-bezier(.2,.7,.3,1);
  cursor: zoom-in; touch-action: none; will-change: transform;
}
#lightbox.zoomed #lb-img { cursor: grab; }
#lightbox.zoomed #lb-img:active { cursor: grabbing; }
.lb-hint { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); opacity: .65; }
#lightbox.zoomed .lb-hint { visibility: hidden; }
.lb-stage figcaption { text-align: center; max-width: 680px; }
#lb-quote { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 24px); line-height: 1.4; color: var(--ink); }
#lb-cap { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
#lb-close {
  position: absolute; top: 22px; right: 28px; font-size: 34px; line-height: 1; color: var(--muted);
  width: 48px; height: 48px; border-radius: 50%; transition: all .3s;
}
#lb-close:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; color: var(--muted);
  width: 64px; height: 64px; border-radius: 50%; transition: all .3s; z-index: 2;
}
.lb-nav:hover { color: var(--ink); background: rgba(255,255,255,.08); }
#lb-prev { left: 2vw; } #lb-next { right: 2vw; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 820px) {
  /* keep the journey spine on small screens, but compact (dots only) */
  #spine { right: 6px; gap: 4px; }
  .spine-top { display: none; }
  #spine-list { gap: 4px; }
  .spine-dot { gap: 0; padding: 5px 6px; }      /* larger tap target, same dot */
  .spine-dot .spine-label { display: none; }
  .spine-dot i { width: 7px; height: 7px; border-width: 1.25px; }

  /* On mobile, stop the centred intro from overlapping the rail: stack them —
     the title sits as a header at the top, the photo strip fills below it. */
  .room-sticky {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: clamp(12px, 2vh, 22px);
    padding: clamp(18px, 3vh, 30px) 0 clamp(14px, 2.2vh, 24px);
  }
  .room-intro {
    position: static; transform: none !important; opacity: 1 !important;
    left: auto; right: auto; top: auto; max-width: none; flex: none; padding: 0 22px;
  }
  .room-intro { width: 100%; }
  .room-intro .room-num { font-size: clamp(76px, 22vw, 136px); }
  .room-intro .room-blurb { max-width: calc(100vw - 44px); }   /* wrap to viewport */
  .room-rail {
    /* definite height so the frames' height:100% resolves (otherwise images
       fall back to natural px width and blow up the column); width:100% +
       min-width:0 keep the title/blurb wrapping to the viewport */
    width: 100%; min-width: 0; flex: none;
    height: clamp(300px, 52vh, 560px); padding: 0 22px; gap: 14px;
  }
  /* every rail card fills the image-strip height on mobile */
  .frame { height: 100%; }
  .frame img { max-width: 92vw; }
  .lb-nav { width: 48px; height: 48px; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pl-mark, .hero-scroll::after, .logo45-ring { animation: none; }
}
