/* =========================================================
   School for Self Ascension styles
   ========================================================= */

/* The browser's own rule for [hidden] is display:none at the lowest possible
   priority, so ANY class that sets display beats it. Several here do - .btn is
   inline-flex, .auth-field and .f-row are grid - which left elements marked
   hidden fully visible: the account menu sat permanently open under the header
   showing the signed-in email and a Sign out link, the sign-in dialog showed
   two fields it then ignored, and a dead button appeared on the not-found
   panel. One rule fixes all of them. */
[hidden] { display: none !important; }

:root {
  --cream: #FAF6F0;
  --paper: #F3EBE1;
  --blush: #F1E4EA;
  --lav: #E6DCF0;
  --ink: #261A2E;
  --ink-2: #4A3B52;
  --muted: #85768B;
  --plum: #3F1E4C;
  --violet: #7E3AA6;
  --gold: #B8873F;
  --gold-soft: #E9D3AE;
  --line: rgba(38, 26, 46, .14);
  --hdr: 76px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dev: "Tiro Devanagari Sanskrit", "Nirmala UI", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: calc(var(--hdr) + 8px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

.muted { color: var(--muted); }

h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
h2 em, blockquote em { color: var(--violet); }

.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head.center { text-align: center; }
.sec-note { max-width: 380px; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .04em;
  transition: background .35s, color .35s, border-color .35s;
}
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #fff; color: var(--plum); }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.btn:hover .roll > span { transform: translateY(-100%); }

.link-arrow { position: relative; display: inline-flex; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .03em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
/* invisible hit areas: comfortable tap targets without changing the look */
.link-arrow::before, .contact-meta a::before, .foot-top a::before { content: ""; position: absolute; inset: -12px -6px; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* Split-text reveal */
.swm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.sw { display: inline-block; transform: translateY(110%) rotate(3deg); transition: transform 1s var(--ease); }
.split.in .sw { transform: none; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Curtain, progress, header
   ========================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--plum); color: var(--cream);
  display: grid; place-items: center;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
}
.curtain.up { transform: translateY(-101%); }
.curtain-inner { text-align: center; }
.curtain-dev { display: block; margin-bottom: 14px; font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); opacity: 0; animation: fadeUp .8s .1s var(--ease) forwards; }
.curtain-word { display: block; font: italic 400 clamp(3rem, 9vw, 6rem)/1.1 var(--serif); opacity: 0; animation: fadeUp .9s .25s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--violet); transform-origin: left; transform: scaleX(0); }

.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 48px);
  transition: transform .5s var(--ease), background .4s, box-shadow .4s;
}
.hdr.scrolled { background: rgba(250, 246, 240, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font: italic 500 1.6rem/1 var(--serif); color: var(--plum); }
.brand-text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-text small { font: 600 10px/1 var(--sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--violet); }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav a:not(.nav-cta) { position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--violet); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav a.active { color: var(--violet); }
.nav-cta { padding: 11px 20px; border-radius: 999px; background: var(--plum); color: var(--cream); transition: background .3s; }
.nav-cta:hover { background: var(--violet); }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Hero — arch window grows to full bleed
   ========================================================= */
.hero { position: relative; height: 290vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-frame {
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden;
  clip-path: inset(30% 38% 10% 38% round 200px 200px 16px 16px);
  will-change: clip-path;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); will-change: transform; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 26, 46, 0) 40%, rgba(38, 26, 46, .38)); opacity: var(--shade, 0); pointer-events: none; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(48px, 10vh, 110px); z-index: 2;
  text-align: center; color: #fff; padding-inline: 20px;
  opacity: 0; transform: translateY(30px);
}
.hero-caption .dev { font: 600 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #fff; opacity: .9; }
.hero-caption-title { font: 400 clamp(2.6rem, 6.4vw, 6rem)/1.05 var(--serif); margin: 10px 0 14px; text-shadow: 0 2px 30px rgba(38, 26, 46, .25); }
.hero-caption-sub { font-size: clamp(14px, 1.3vw, 17px); letter-spacing: .02em; opacity: .92; }

.hero-title { position: absolute; inset: 0; z-index: 3; pointer-events: none; font: 400 clamp(3rem, 6.6vw, 7.4rem)/.95 var(--serif); letter-spacing: -.02em; }
.hero-word { position: absolute; top: 50%; white-space: nowrap; will-change: transform, opacity; }
.hero-word em { color: var(--violet); }
.hw-l { right: calc(50% + var(--aw, 200px) / 2 + 3vw); text-align: right; }
.hw-r { left: calc(50% + var(--aw, 200px) / 2 + 3vw); }
.hero-word > span, .hero-word > em { display: inline-block; }
.hero-sub {
  position: absolute; z-index: 3; left: clamp(20px, 4vw, 48px); bottom: 7vh;
  max-width: 300px; font-size: 15px; color: var(--ink-2);
}
.hero-cue {
  position: absolute; z-index: 3; right: clamp(20px, 4vw, 48px); bottom: 7vh;
  display: flex; align-items: center; gap: 14px;
  font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2);
}
.cue-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--violet); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { overflow: hidden; padding: 34px 0; border-block: 1px solid var(--line); background: var(--cream); }
.marquee-track { display: flex; width: max-content; will-change: transform; font: italic 400 clamp(2rem, 4vw, 3.4rem)/1 var(--serif); color: var(--plum); }
.marquee-track span { padding-inline: 28px; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--gold); font-size: .5em; align-self: center; }

/* =========================================================
   Manifesto word fill
   ========================================================= */
.manifesto { padding-block: clamp(100px, 16vw, 200px); }
.fill { font: 400 clamp(1.9rem, 4vw, 3.5rem)/1.22 var(--serif); max-width: 1080px; }
.fw { color: rgba(38, 26, 46, .16); transition: color .3s linear; }
.fw.lit { color: var(--ink); }
.fw.acc { font-style: italic; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 94% / 0% 1.5px; transition: color .3s, background-size .6s var(--ease); }
.fw.acc.lit { color: var(--violet); background-size: 100% 1.5px; }
.fill-sign { margin-top: 40px; font-size: 14px; letter-spacing: .06em; color: var(--muted); }

/* =========================================================
   Healing — sticky stacked cards
   ========================================================= */
.healing { padding-bottom: clamp(80px, 12vw, 160px); }
.stack { position: relative; }
.stack-card {
  position: sticky; top: calc(var(--hdr) + 16px + var(--i) * 18px);
  min-height: min(76vh, 660px);
  margin-bottom: 8vh;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: 28px;
  transform-origin: 50% 0;
  box-shadow: 0 -10px 40px rgba(38, 26, 46, .06);
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(38, 26, 46, var(--veil, 0)); pointer-events: none; }
.c-lav { background: var(--lav); }
.c-gold { background: #F2E6D3; }
.c-blush { background: var(--blush); }
.c-plum { background: var(--plum); color: var(--cream); }
.c-plum .sc-num, .c-plum .sc-tags li { color: var(--gold-soft); border-color: rgba(233, 211, 174, .35); }
.c-plum .sc-text p { color: rgba(250, 246, 240, .82); }
.sc-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.sc-num { font: 500 14px/1 var(--sans); letter-spacing: .2em; color: var(--violet); }
.sc-text h3 { font: 400 clamp(2.2rem, 4.2vw, 3.8rem)/1 var(--serif); }
.sc-text p { color: var(--ink-2); max-width: 460px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.sc-tags li { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.sc-media { border-radius: 20px; overflow: hidden; min-height: 280px; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }

/* =========================================================
   Lotus band
   ========================================================= */
.band { position: relative; height: 120vh; overflow: hidden; display: grid; place-items: center; color: #fff; }
.band-media { position: absolute; inset: 0; }
.band-media img { position: absolute; left: 0; width: 100%; top: -12%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(38, 26, 46, .45), rgba(38, 26, 46, .15) 70%); }
.band-copy { position: relative; z-index: 2; max-width: 960px; padding-inline: 24px; text-align: center; }
.band blockquote { margin: 0; font: 400 clamp(2rem, 4.6vw, 4.2rem)/1.12 var(--serif); text-shadow: 0 2px 40px rgba(38, 26, 46, .35); }
.band blockquote em { color: var(--gold-soft); }
.band-attrib {
  margin-top: clamp(20px, 3vw, 34px);
  font: 400 clamp(15px, 1.4vw, 18px)/1 var(--sans);
  letter-spacing: .08em;
  color: var(--gold-soft);
  opacity: .9;
}

/* =========================================================
   Journey rail
   ========================================================= */
.journey { padding-block: clamp(100px, 14vw, 180px); }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.journey-intro { position: sticky; top: calc(var(--hdr) + 60px); }
.journey-intro h2 { margin-bottom: 28px; }
.lead { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.45 var(--serif); margin-bottom: 20px; }
.rail-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.rail-fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.rail-fill span { position: absolute; inset: 0; background: var(--violet); transform-origin: top; transform: scaleY(0); }
.rail-item { position: relative; padding-bottom: clamp(56px, 8vw, 96px); opacity: .35; transition: opacity .6s var(--ease); }
.rail-item:last-child { padding-bottom: 0; }
.rail-item.hit { opacity: 1; }
.rail-dot { position: absolute; left: -44px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--violet); background: var(--cream); transition: background .5s, box-shadow .5s; }
.rail-item.hit .rail-dot { background: var(--violet); box-shadow: 0 0 0 6px rgba(126, 58, 166, .12); }
.rail-k { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.rail-item h3 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); margin-bottom: 10px; }
.rail-item p:last-child { color: var(--ink-2); }

.creds { font: 600 11.5px/1.7 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: -10px 0 24px; max-width: 460px; }

/* =========================================================
   Teacher trainings — pinned horizontal gallery
   ========================================================= */
.trainings { position: relative; background: var(--plum); color: var(--cream); }
.tr-pin { padding-block: clamp(90px, 12vw, 150px); }
.trainings.is-pinned .tr-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding-block: calc(var(--hdr) + 2vh) 3vh;
}
.tr-head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vh, 44px); }
.tr-head h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.tr-head h2 em { color: var(--gold-soft); }
.tr-head .sec-note { color: rgba(250, 246, 240, .74); max-width: 440px; font-size: 15px; }
.tr-track {
  display: flex; gap: clamp(16px, 1.8vw, 28px);
  width: max-content;
  padding-inline: max(clamp(20px, 4vw, 48px), calc((100vw - 1240px) / 2 + 48px));
  will-change: transform;
}
.trainings.is-pinned .tr-track { flex: 1 1 auto; min-height: 0; max-height: 640px; }
.tr-card {
  position: relative; flex: none; height: 100%; aspect-ratio: 18 / 25;
  border-radius: 22px; overflow: hidden; cursor: pointer; isolation: isolate;
  background: #2a1433; transform-origin: 50% 100%;
}
.tr-media { position: absolute; inset: 0; overflow: hidden; transition: transform .9s var(--ease); }
.tr-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.tr-card:hover .tr-media { transform: scale(1.04); }
.tr-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(24, 10, 30, 0) 30%, rgba(24, 10, 30, .55) 58%, rgba(24, 10, 30, .92)); }
.tr-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 1.8vw, 28px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tr-kicker { width: 100%; display: flex; justify-content: space-between; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.tr-body h3 { font: 400 clamp(1.7rem, 2.3vw, 2.4rem)/1.02 var(--serif); color: #fff; }
.tr-body > p:not(.tr-kicker) { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.tr-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-size: 13px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.tr-more span { font-size: 17px; line-height: 1; transition: transform .4s var(--ease); }
.tr-card:hover .tr-more, .tr-more:focus-visible { background: #fff; color: var(--plum); border-color: #fff; }
.tr-card:hover .tr-more span { transform: rotate(90deg); }
.tr-hud { flex: none; display: flex; align-items: center; gap: 14px; margin-top: clamp(18px, 3vh, 36px); font: 600 12px/1 var(--sans); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgba(250, 246, 240, .8); }
.tr-bar { flex: 1; max-width: 360px; height: 1px; background: rgba(250, 246, 240, .2); position: relative; }
.tr-bar i { position: absolute; inset: 0; background: var(--gold-soft); transform-origin: left; transform: scaleX(0); }
.tr-hint { margin-left: auto; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.tr-hint b { display: inline-block; font-weight: 400; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
/* not pinned (phones, reduced motion): native swipe */
.trainings:not(.is-pinned) .tr-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 4vw, 48px); padding-bottom: 8px; scrollbar-width: none; }
.trainings:not(.is-pinned) .tr-track::-webkit-scrollbar { display: none; }
.trainings:not(.is-pinned) .tr-card { height: auto; width: min(78vw, 340px); scroll-snap-align: start; }
@media (hover: hover) and (pointer: fine) {
  .trainings:not(.is-pinned) .tr-track { scrollbar-width: thin; scrollbar-color: rgba(233, 211, 174, .45) transparent; }
}

/* =========================================================
   Sound healing course
   ========================================================= */
.sound { padding-block: clamp(90px, 12vw, 160px); background: var(--paper); }
.sound-tag { font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--serif); color: var(--plum); }
.wipe { position: relative; aspect-ratio: 16 / 7; max-width: 100%; border-radius: 24px; overflow: hidden; clip-path: inset(0 100% 0 0 round 24px); margin-bottom: clamp(40px, 6vw, 80px); }
.wipe img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.wipe-label { position: absolute; left: 24px; bottom: 22px; padding: 8px 16px; border-radius: 999px; background: rgba(250, 246, 240, .9); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sound-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sound-lead { font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.15 var(--serif); }
.sound-by { margin-top: 20px; font-size: 14px; color: var(--muted); }
.sound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sound-dev { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sound-dev li { display: flex; align-items: baseline; gap: 14px; padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--serif); }
.sound-dev span { font: 500 11px/1 var(--sans); letter-spacing: .18em; color: var(--gold); }
.dlg-list-title { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }

/* =========================================================
   Sacred journeys — portal reveal
   ========================================================= */
.journeys { padding-block: clamp(100px, 14vw, 180px); overflow-x: clip; }
.jr { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.jr + .jr { margin-top: clamp(100px, 14vw, 180px); }
.jr-flip .jr-media { order: 2; }
.jr-flip .jr-word { left: auto; right: -3%; }
.jr-media { position: relative; }
.jr-word {
  position: absolute; top: 0; left: -3%; z-index: 0; translate: 0 -58%;
  font: italic 400 clamp(5rem, 15vw, 15rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(126, 58, 166, .28);
  pointer-events: none; user-select: none; will-change: transform;
}
.jr-portal { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; clip-path: inset(10% 18% round 999px); will-change: clip-path; }
.jr-portal img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.jr-when { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 20px; }
.jr-when span { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.jr-when span:first-child { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.jr-text h3 { font: 400 clamp(2.2rem, 3.8vw, 3.4rem)/1.05 var(--serif); margin-bottom: 14px; }
.jr-text h3 em { color: var(--violet); }
.jr-sub { font: italic 400 1.35rem/1.3 var(--serif); color: var(--gold); margin-bottom: 12px; }
.jr-lead { color: var(--ink-2); max-width: 480px; margin-bottom: 22px; }
.jr-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.jr-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.jr-list li::before { content: "✦"; position: absolute; left: 0; top: .15em; font-size: 11px; color: var(--gold); }
.jr-quote { font: italic 400 1.15rem/1.45 var(--serif); color: var(--muted); border-left: 1px solid var(--gold-soft); padding-left: 18px; margin: -6px 0 28px; max-width: 480px; }

/* =========================================================
   Programme dialog
   ========================================================= */
html.locked { overflow: hidden; }
.dlg {
  width: min(980px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 760px);
  margin: auto; padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 120px -40px rgba(20, 8, 26, .6);
}
.dlg::backdrop { background: rgba(29, 15, 36, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open] { display: grid; grid-template-columns: 5fr 7fr; animation: dlgIn .55s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dlg-media { position: relative; min-height: 0; background: var(--plum); }
.dlg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlg-inner { overflow-y: auto; max-height: min(88vh, 760px); padding: clamp(28px, 4vw, 52px); overscroll-behavior: contain; }
.dlg-kicker { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 16px; }
.dlg-inner h3 { font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); margin-bottom: 18px; padding-right: 36px; }
.dlg-lead { font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.4 var(--serif); margin-bottom: 14px; }
#dlgBody > p:not([class]) { color: var(--ink-2); margin-bottom: 14px; }
#dlgBody .dlg-list-title { margin-top: 24px; }
.dlg-note { font-size: 14px; color: var(--ink-2); padding: 12px 16px; border-radius: 12px; background: var(--paper); margin: 6px 0 14px; }
.dlg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dlg-list li { position: relative; padding-left: 24px; line-height: 1.5; }
.dlg-list li::before { content: "✦"; position: absolute; left: 0; top: .15em; font-size: 10px; color: var(--gold); }
.dlg-by { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dlg-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 246, 240, .94); box-shadow: 0 4px 20px rgba(20, 8, 26, .15); transition: background .3s, transform .4s var(--ease); }
.dlg-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.dlg-close:hover { transform: rotate(90deg); background: #fff; }

/* =========================================================
   Apothecary
   ========================================================= */
.apothecary { padding-block: clamp(100px, 14vw, 180px); }
.apo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.apo-visual { position: relative; }
.apo-frame {
  position: sticky; top: calc(var(--hdr) + 24px);
  height: calc(100vh - var(--hdr) - 48px); max-height: 760px;
  border-radius: 26px; overflow: hidden; background: var(--paper);
}
.apo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, clip-path; }
.apo-img + .apo-img { clip-path: inset(100% 0 0 0); }
.apo-hud {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(250, 246, 240, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 12px/1 var(--sans); letter-spacing: .14em; font-variant-numeric: tabular-nums;
}
.apo-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.apo-bar i { position: absolute; inset: 0; background: var(--violet); transform-origin: left; transform: scaleX(0); }
.apo-steps { display: flex; flex-direction: column; }
.apo-step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s var(--ease); }
.apo-step.active { opacity: 1; }
.apo-step h3 { font: 400 clamp(3rem, 6vw, 5.6rem)/1 var(--serif); margin-bottom: 20px; }
.apo-step p:last-child { font-size: 17px; color: var(--ink-2); max-width: 420px; }

.collection { margin-top: clamp(80px, 12vw, 160px); }
.collection .sec-head { margin-bottom: 40px; align-items: center; }
.col-title { font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--serif); }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.col-card { display: block; padding: 14px 14px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: opacity .9s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); transform-style: preserve-3d; }
.col-card:hover { box-shadow: 0 30px 60px -30px rgba(63, 30, 76, .35); }
.col-ph { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; }
.col-ph svg { width: 34%; fill: none; stroke: var(--plum); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease); }
.col-card:hover .col-ph svg { transform: scale(1.12) rotate(-4deg); }
.ph-1 { background: radial-gradient(circle at 50% 35%, #FBE9C8, #EBD2E4); }
.ph-2 { background: radial-gradient(circle at 50% 35%, #E9DDF3, #D6C3E6); }
.ph-3 { background: radial-gradient(circle at 50% 35%, #FDEBDD, #F2D5C4); }
.ph-4 { background: radial-gradient(circle at 50% 35%, #E6EFD9, #CFDFC0); }
.ph-5 { background: radial-gradient(circle at 50% 35%, #F7E4EC, #E8CBD8); }
.ph-6 { background: radial-gradient(circle at 50% 35%, #DCD8EE, #B9B0D8); }
.col-card h4 { font: 400 1.7rem/1.1 var(--serif); padding-inline: 10px; }
.col-card p { font-size: 14px; color: var(--muted); padding-inline: 10px; margin-top: 4px; }

/* =========================================================
   Film
   ========================================================= */
.film { padding-block: clamp(80px, 12vw, 160px); background: var(--plum); color: var(--cream); }
.film h2 em { color: var(--gold-soft); }
.film-seat { padding-inline: clamp(12px, 3vw, 40px); }
.film-frame {
  position: relative; width: 100%; max-width: 1500px; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #140a19;
  transform: scale(.78); transform-origin: 50% 0; will-change: transform;
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(circle, rgba(20, 10, 25, .1), rgba(20, 10, 25, .45));
  transition: opacity .5s;
}
.film-frame.playing .film-play { opacity: 0; pointer-events: none; }
.film-play-ring { width: clamp(76px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 246, 240, .92); transition: transform .6s var(--ease), background .3s; }
.film-play-ring svg { width: 30%; fill: var(--plum); margin-left: 6%; }
.film-play:hover .film-play-ring { transform: scale(1.1); background: var(--gold-soft); }
.film-play-label { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }

/* =========================================================
   Contact
   ========================================================= */
.contact { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 180px); color: var(--cream); background: #1d0f24; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .55; will-change: transform; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 15, 36, .92) 20%, rgba(29, 15, 36, .55)); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact h2 { margin-bottom: 28px; }
.contact h2 em { color: var(--gold-soft); }
.contact-copy > p { color: rgba(250, 246, 240, .8); max-width: 460px; }
.contact-meta { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.contact-meta li { display: flex; gap: 20px; font-size: 15px; }
.contact-meta span { width: 124px; flex: none; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); padding-top: 4px; }
.contact-meta a { position: relative; border-bottom: 1px solid rgba(233, 211, 174, .35); transition: color .3s, border-color .3s; }
.contact-meta a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: rgba(250, 246, 240, .07); border: 1px solid rgba(250, 246, 240, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(250, 246, 240, .7); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgba(250, 246, 240, .3);
  padding: 8px 0; border-radius: 0; transition: border-color .3s;
}
.form select option { color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-soft); }
.form .invalid { border-color: #f3a5a5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 8px; }
.form-alt { padding-block: 10px; font-size: 14px; color: rgba(250, 246, 240, .8); text-decoration: underline; text-underline-offset: 4px; transition: color .3s; }
.form-alt:hover { color: var(--gold-soft); }
.form-note { min-height: 1.4em; font-size: 14px; color: var(--gold-soft); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Footer wordmark
   ========================================================= */
.foot { background: #1d0f24; color: rgba(250, 246, 240, .7); overflow: hidden; padding-top: 40px; border-top: 1px solid rgba(250, 246, 240, .1); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; font-size: 14px; line-height: 1.9; }
.foot-top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-top a { position: relative; }
.foot-top a:hover { color: var(--gold-soft); }
.foot-legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(233, 211, 174, .16); }
.foot-legal nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; opacity: .72; }
.foot-legal a { position: relative; }
.foot-legal a:hover { color: var(--gold-soft); opacity: 1; }
.wordmark {
  font: italic 400 clamp(2.6rem, 13.4vw, 14rem)/.9 var(--serif);
  text-align: center; letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 211, 174, .4);
  padding: 4vw 0 0; margin-bottom: -.12em; user-select: none;
}
.wordmark span { display: inline-block; transition: color .4s, transform .6s var(--ease); }
.wordmark span:hover { color: var(--gold-soft); transform: translateY(-4%); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .journey-grid, .contact-grid { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .sound-grid, .jr { grid-template-columns: 1fr; }
  .jr-flip .jr-media { order: 0; }
  .jr-word { font-size: clamp(4.5rem, 24vw, 11rem); }
}

@media (max-width: 860px) {
  :root { --hdr: 64px; }
  .burger { display: block; }
  /* The header is transformed (hide-on-scroll), which would trap a position:fixed
     overlay inside it — so the menu hangs below the header with absolute positioning. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
    height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr));
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--cream); font: 400 2.2rem/1 var(--serif);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav-cta { font: 600 15px/1 var(--sans); padding: 16px 28px; margin-top: 10px; }
  body.menu-open .hdr { background: var(--cream); box-shadow: none; transform: none !important; }

  .stack-card { grid-template-columns: 1fr; min-height: 0; gap: 22px; top: calc(var(--hdr) + 10px + var(--i) * 12px); }
  .sc-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .sc-text { gap: 14px; }

  .apo { grid-template-columns: 1fr; gap: 0; }
  .apo-visual { position: sticky; top: calc(var(--hdr) + 12px); z-index: 3; height: 44vh; }
  .apo-frame { position: relative; top: 0; height: 100%; }
  .apo-step { min-height: 58vh; justify-content: flex-end; padding-bottom: 6vh; }

  .wipe { aspect-ratio: 4 / 3; }
}

/* hero stacked layout (class set from JS below 900px) */
.hero.is-small .hero-title { font-size: clamp(2.8rem, 12vw, 5.4rem); }
.hero.is-small .hero-word { top: calc(var(--hdr) + 7vh); left: 0; right: 0; text-align: center; }
.hero.is-small .hw-r { top: calc(var(--hdr) + 7vh + 1em); }
.hero.is-small .hero-sub { display: none; }
.hero.is-small .hero-cue { right: auto; left: 20px; bottom: 3vh; }

@media (max-width: 760px) {
  .tr-head .sec-note { font-size: 14px; }
  .sound-dev li { font-size: 1.45rem; padding-block: 18px; }
  .contact-meta li { flex-direction: column; gap: 4px; }
  .contact-meta span { width: auto; }
  .dlg { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dlg[open] { grid-template-columns: 1fr; grid-template-rows: 170px auto; animation-name: dlgUp; }
  .dlg-inner { max-height: calc(92vh - 170px); padding: 24px 20px 28px; }
  .dlg-actions .btn { flex: 1 1 auto; }
  .col-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .col-card { padding: 8px 8px 18px; border-radius: 16px; }
  .col-card h4 { font-size: 1.3rem; padding-inline: 6px; }
  .col-card p { font-size: 12.5px; padding-inline: 6px; }
  .film-frame { aspect-ratio: 4 / 5; border-radius: 20px; }
}

@keyframes dlgUp { from { opacity: 0; transform: translateY(40px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .sw { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
