/* KLYMAX — XLNC at Potato Head Beach Club. Invitation overlay.
   House style: gold-on-dark, editorial Inter, warm Bali dusk. */

:root {
  --bg:        #0c0a07;
  --gold:      #e9b94a;
  --gold-soft: #f2cf63;
  --amber:     #ff9a44;
  --ink:       rgba(255, 248, 236, 0.94);
  --ink-soft:  rgba(255, 248, 236, 0.74);
  --ink-mute:  rgba(255, 248, 236, 0.46);
  --gold-glow: rgba(233, 185, 74, 0.55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  position: relative;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* site-wide music visualizer — screen-blended light over the whole world */
#viz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* --- atmospheric scrims for legibility over the bright sky / dark deck --- */
.scrim {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.scrim--top {
  top: 0;
  height: 42vh;
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.66) 0%, rgba(8, 6, 10, 0.28) 46%, transparent 100%);
}
.scrim--bottom {
  bottom: 0;
  height: 40vh;
  background: linear-gradient(0deg, rgba(6, 5, 9, 0.74) 0%, rgba(6, 5, 9, 0.26) 52%, transparent 100%);
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 240px 40px rgba(0, 0, 0, 0.55);
}
/* the portal crossing carries more text low on screen — deepen the base for it */
body.is-confirmed .scrim--bottom {
  height: 66vh;
  background: linear-gradient(0deg, rgba(6, 5, 9, 0.9) 0%, rgba(6, 5, 9, 0.66) 42%, rgba(6, 5, 9, 0.32) 66%, transparent 100%);
}

/* --- invite layout: title pinned high, RSVP pinned low, scene framed between --- */
.invite {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: clamp(2.6rem, 8vh, 6rem) 1.5rem clamp(2.2rem, 6vh, 4.5rem);
  pointer-events: none;
}
.invite a, .invite__rsvp { pointer-events: auto; }

.invite__top {
  animation: rise 2.4s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.invite__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  animation: rise 2.4s cubic-bezier(0.16, 0.84, 0.3, 1) 0.5s both;
}

.invite__kicker {
  font-size: clamp(0.66rem, 1.5vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: clamp(0.7rem, 1.6vh, 1.1rem);
  margin-left: 0.42em; /* optical balance for the tracking */
  text-shadow: 0 1px 18px rgba(255, 154, 68, 0.4);
}

.invite__title {
  font-size: clamp(3.6rem, 15vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.06em;
  margin-left: 0.06em;
  color: var(--gold-soft);
  background: linear-gradient(180deg, #fbe6a4 0%, #e9b94a 52%, #c9912f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px var(--gold-glow)) drop-shadow(0 0 64px rgba(233, 185, 74, 0.28));
}

.invite__venue {
  font-size: clamp(0.95rem, 2.4vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: clamp(1rem, 2.4vh, 1.7rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.invite__when {
  font-size: clamp(0.8rem, 1.9vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 22px rgba(0, 0, 0, 0.6);
}

.invite__act {
  font-size: clamp(0.82rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 2px 22px rgba(0, 0, 0, 0.55);
}
.invite__act-label {
  display: inline-block;
  font-weight: 400;
  font-size: 0.74em;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  margin-right: 0.6em;
}

.dot {
  display: inline-block;
  margin: 0 0.7em;
  color: var(--ink-mute);
}
.dot--gold { color: var(--gold); opacity: 0.85; }

.invite__rsvp {
  display: inline-block;
  padding: 0.95rem 3.1rem;
  font-family: var(--font);
  font-size: clamp(0.74rem, 1.7vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1206;
  background: linear-gradient(180deg, #f6d873 0%, #e9b94a 60%, #d9a441 100%);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(246, 216, 115, 0.4),
    0 0 30px var(--gold-glow),
    0 10px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  margin-top: clamp(0.6rem, 1.6vh, 1.1rem);
}
.invite__rsvp:hover,
.invite__rsvp:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(246, 216, 115, 0.6),
    0 0 48px rgba(233, 185, 74, 0.7),
    0 14px 42px rgba(0, 0, 0, 0.5);
  outline: none;
}
.invite__rsvp:active { transform: translateY(0); }

/* --- confirmed (post-RSVP) state --- */
.invite__state[data-state="confirmed"] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.invite__confirm-kicker {
  font-size: clamp(0.66rem, 1.5vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ffd9a8;
  margin-bottom: 0.55rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 22px rgba(0, 0, 0, 0.7);
}
.invite__confirm-name {
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}
.invite__confirm-note {
  font-size: clamp(0.8rem, 1.8vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}
/* --- the portal crossing: branded gateways to each universe, bound by gold --- */
.portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 30rem;
  margin: 0 auto;
}
.portal {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.85rem 1.05rem;
  text-decoration: none;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--hair-gold, rgba(242, 207, 99, 0.34));
  background:
    linear-gradient(180deg, rgba(20, 15, 9, 0.62), rgba(12, 9, 6, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 236, 0.04), 0 6px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* the world's accent, framed inside XLNC gold */
.portal__aura {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 130%;
  background: radial-gradient(closest-side, var(--accent), transparent 72%);
  opacity: 0.28;
  filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.portal__name {
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  position: relative;
}
.portal__essence {
  font-size: clamp(0.66rem, 1.5vw, 0.74rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
}
.portal::before {
  /* a small accent dot marking the world identity */
  content: "";
  position: absolute;
  top: 0.95rem;
  right: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.portal:hover,
.portal:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(246, 216, 115, 0.7);
  box-shadow: 0 0 0 1px rgba(246, 216, 115, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5);
  outline: none;
}
.portal:hover .portal__aura,
.portal:focus-visible .portal__aura {
  opacity: 0.5;
  transform: scale(1.1);
}
.portal--primary {
  border-color: rgba(246, 216, 115, 0.6);
  background:
    linear-gradient(180deg, rgba(40, 30, 12, 0.72), rgba(18, 13, 8, 0.84));
  box-shadow: inset 0 0 0 1px rgba(246, 216, 115, 0.18), 0 8px 26px rgba(0, 0, 0, 0.45);
}
.portal--primary .portal__name { color: #fbe6a4; }

.invite__foot {
  font-size: clamp(0.7rem, 1.4vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.invite__foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 248, 236, 0.2);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.invite__foot a:hover,
.invite__foot a:focus-visible {
  color: var(--gold);
  border-color: var(--gold-glow);
  outline: none;
}

/* --- music selector --- */
.music {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font);
}
.music__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--hair-gold, rgba(242, 207, 99, 0.34));
  background: linear-gradient(180deg, rgba(18, 13, 8, 0.72), rgba(10, 8, 6, 0.82));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.music__play {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #f6d873, #d9a441);
  position: relative;
  box-shadow: 0 0 18px var(--gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.music__play:hover { transform: scale(1.06); }
.music__play::before {
  content: "";
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 12px solid #1a1206;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.music__play.is-playing::before {
  border: none;
  width: 11px; height: 11px;
  left: 50%;
  border-left: 4px solid #1a1206;
  border-right: 4px solid #1a1206;
  box-sizing: border-box;
}
.music__now {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 56vw;
  padding: 0 0.4rem;
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.78rem; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music__now-text { overflow: hidden; text-overflow: ellipsis; }
.music__eq { display: block; flex: none; width: 38px; height: 14px; }

/* always-visible volume dial */
.music__dial {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: ns-resize; touch-action: none; margin-left: 0.2rem;
  background:
    radial-gradient(circle at 50% 50%, #1a130b 0 56%, transparent 57%),
    conic-gradient(from -135deg,
      var(--gold) calc(var(--v, 0.8) * 270deg),
      rgba(247, 240, 225, 0.14) calc(var(--v, 0.8) * 270deg) 270deg,
      transparent 270deg 360deg);
  box-shadow: 0 0 0 1px rgba(242, 207, 99, 0.3), 0 0 14px -4px var(--gold-glow);
}
.music__dial-tick {
  position: absolute; top: 3px; left: 50%; width: 2px; height: 9px; margin-left: -1px;
  background: var(--gold-soft); border-radius: 2px; transform-origin: 50% 12px;
}

.music__panel {
  width: min(78vw, 19rem);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(18, 13, 8, 0.82), rgba(10, 8, 6, 0.9));
  transition: max-height 0.32s ease, opacity 0.28s ease, border-color 0.28s ease, padding 0.28s ease;
  padding: 0 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.music.is-open .music__panel {
  max-height: 17rem;
  opacity: 1;
  padding: 0.6rem 0.5rem;
  border-color: var(--hair-gold, rgba(242, 207, 99, 0.34));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.music__tabs { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.music__tab {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(247, 240, 225, 0.12);
  background: rgba(255, 248, 236, 0.03);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.music__tab.is-active {
  border-color: var(--hair-gold, rgba(242, 207, 99, 0.34));
  background: rgba(242, 207, 99, 0.1);
  color: var(--gold-soft);
}
.music__list { display: flex; flex-direction: column; gap: 0.2rem; max-height: 12rem; overflow-y: auto; }
.music__row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.18s ease;
}
.music__row:hover { background: rgba(255, 248, 236, 0.05); }
.music__row.is-current { background: rgba(242, 207, 99, 0.12); }
.music__row-title { font-size: 0.82rem; font-weight: 500; }
.music__row.is-current .music__row-title { color: var(--gold-soft); }
.music__row-artist { font-size: 0.68rem; color: var(--ink-mute); letter-spacing: 0.04em; }
.music__row.is-groove .music__row-artist::after { content: " · engine"; opacity: 0.7; }

@media (max-width: 540px) {
  .music { left: 0.8rem; bottom: 0.8rem; }
  .music__now { max-width: 44vw; font-size: 0.72rem; }
}

/* =========================================================================
   THE JOURNEY — station-gated UI (body[data-station] is set by scene.js)
   ========================================================================= */
/* station 0 holds the KLYMAX invite; it fades as you travel onward */
.invite { transition: opacity 0.6s ease; }
body:not([data-station="0"]) .invite { opacity: 0; pointer-events: none; }

/* persistent top bar — brand + always-available sign-in */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(0.9rem, 2.5vw, 1.4rem) clamp(1rem, 3vw, 2rem);
  pointer-events: none;
}
.topbar__logo {
  height: clamp(20px, 3.4vw, 28px); width: auto; display: block;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.topbar__right { display: flex; align-items: center; gap: 0.6rem; pointer-events: none; }
.topbar__viz {
  pointer-events: auto;
  font-family: var(--font); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  padding: 0.55rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(247, 240, 225, 0.22);
  background: linear-gradient(180deg, rgba(20, 15, 9, 0.55), rgba(10, 8, 6, 0.72));
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.topbar__viz:hover { color: var(--gold-soft); border-color: var(--hair-gold, rgba(242, 207, 99, 0.34)); }
.topbar__viz.is-on {
  color: #1a1206; border-color: transparent;
  background: linear-gradient(180deg, #f6d873, #d9a441);
  box-shadow: 0 0 22px var(--gold-glow);
}

.topbar__enter {
  pointer-events: auto;
  font-family: var(--font); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft);
  padding: 0.55rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--hair-gold, rgba(242, 207, 99, 0.34));
  background: linear-gradient(180deg, rgba(20, 15, 9, 0.6), rgba(10, 8, 6, 0.78));
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.topbar__enter:hover { transform: translateY(-1px); border-color: rgba(246, 216, 115, 0.7); color: #fbe6a4; }
.topbar__enter.is-done { color: #9fd9c0; border-color: rgba(127, 227, 218, 0.5); cursor: default; }

/* the room panels — one shown per station */
.journey { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.panel {
  position: absolute; left: 50%; bottom: clamp(3rem, 12vh, 8rem);
  transform: translate(-50%, 24px);
  width: min(90vw, 32rem); text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body[data-station="1"] .panel[data-for="1"],
body[data-station="2"] .panel[data-for="2"],
body[data-station="3"] .panel[data-for="3"],
body[data-station="4"] .panel[data-for="4"] {
  opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
}
.panel__logo {
  height: clamp(26px, 5vw, 40px); width: auto; max-width: 70vw; display: block;
  margin: 0 auto clamp(0.8rem, 2vh, 1.2rem);
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.6));
}
.panel__logo--mark { height: clamp(44px, 9vw, 66px); }
.panel__kicker {
  font-size: clamp(0.64rem, 1.5vw, 0.8rem); font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 0.7rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.panel__title {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.03; color: var(--gold-soft); margin-bottom: 0.9rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}
.panel__copy {
  font-size: clamp(0.9rem, 2vw, 1.08rem); font-weight: 300; line-height: 1.6;
  color: var(--ink); max-width: 30rem; margin: 0 auto 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}
.panel__cta {
  display: inline-block; padding: 0.85rem 2.2rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--accent, var(--gold));
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 26px -8px var(--accent, var(--gold));
  transition: transform 0.25s ease, background 0.25s ease;
}
.panel__cta:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }

/* progress rail */
.progress {
  position: fixed; right: clamp(0.9rem, 2.5vw, 1.6rem); top: 50%;
  transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.progress__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(247, 240, 225, 0.4); background: transparent; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.progress__dot:hover { border-color: var(--gold); }
.progress__dot.is-active {
  background: var(--gold); border-color: var(--gold);
  transform: scale(1.3); box-shadow: 0 0 12px var(--gold-glow);
}

/* scroll hint (station 0 only) */
.scroll-hint {
  position: fixed; left: 50%; bottom: clamp(0.8rem, 2.5vh, 1.5rem);
  transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute); transition: opacity 0.5s ease;
}
body:not([data-station="0"]) .scroll-hint { opacity: 0; pointer-events: none; }
.scroll-hint__chev { font-size: 1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(4px); opacity: 1; } }

@media (max-width: 540px) {
  .progress { right: 0.7rem; gap: 0.55rem; }
  .panel { bottom: clamp(4rem, 17vh, 9rem); width: 92vw; }
  .topbar__brand { font-size: 0.85rem; letter-spacing: 0.28em; }
  .scroll-hint { display: none; } /* swiping is intuitive on touch; declutter the base */
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background: var(--bg);
}
.noscript h1 { color: var(--gold); font-size: 3rem; letter-spacing: 0.08em; }
.noscript a { color: var(--gold); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .invite__top, .invite__bottom { animation: none; }
}

/* --- mobile --- */
@media (max-width: 540px) {
  .invite { padding: clamp(2rem, 6vh, 3.4rem) 1.1rem clamp(1.6rem, 5vh, 2.6rem); }
  .invite__venue { line-height: 1.5; }
  .invite__venue .dot { margin: 0 0.4em; }
  .invite__act-label { display: block; margin: 0 0 0.3em; }
  .invite__rsvp { padding: 0.95rem 0; width: 100%; max-width: 17rem; }
  .portals { grid-template-columns: 1fr; max-width: 19rem; gap: 0.6rem; }
  .portal { padding: 0.8rem 1rem; }
}

@media (max-width: 380px) {
  .invite__when { letter-spacing: 0.16em; }
  .invite__venue { font-size: 0.92rem; }
}
