/* =========================================================
   TRUE 1 · "Under the light"
   Ash + black. Warm halogen appears ONLY as light (glows,
   light sweeps), never as a fill colour.
   Display: Archivo Expanded · Mark: Michroma · Body: Inter
   ========================================================= */
:root {
  --k0: #090909;
  --k1: #101010;
  --k2: #161616;
  --k3: #1e1e1e;
  --line: rgba(238, 236, 232, .10);
  --line-2: rgba(238, 236, 232, .2);
  --ash: #8d8b87;        /* muted text on black: 6.0:1 */
  --ash-2: #bcb9b3;      /* secondary text */
  --white: #eeece8;
  --halo: 255, 184, 108;
  --disp: "Archivo", "Arial Black", sans-serif;
  --mark: "Michroma", "Archivo", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 4.6vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--k0); color: var(--white); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--white); color: var(--k0); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--k0); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.wrap-x { padding: 0 var(--pad); }

/* ---------- type ---------- */
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px 2px rgba(var(--halo), .55); }
.disp, .h2, .hero-title, .hero-statement, .mline, .clock, .floor-bgword, .prow h3, .plan-term b {
  font-family: var(--disp); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.012em;
}
.h2 { font-size: clamp(38px, min(5.4vw, 10vh), 92px); line-height: .92; margin-top: 18px; }
.muted { color: var(--ash); }
.ph { color: var(--ash); font-style: italic; }
.mark { font-family: var(--mark); font-weight: 400; font-stretch: normal; letter-spacing: .03em; font-size: .8em; color: var(--white);
  text-shadow: 0 0 .05em rgba(var(--halo), .7), 0 0 .3em rgba(var(--halo), .4); }
/* word masks for .split headings (built by JS) */
.w { display: inline-block; clip-path: inset(0 -.2em 0 -.2em); vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; font: 600 14px/1 var(--body); letter-spacing: .02em; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.btn i { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn-light { background: var(--white); color: var(--k0); }
.btn-light::before { background: #fff; }
.btn-light:hover { box-shadow: 0 12px 40px -12px rgba(var(--halo), .65); }   /* lit, not coloured */
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { color: var(--k0); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- cursor (desktop) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; }
  .cursor.on { opacity: 1; }
  .c-dot, .c-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); }
  .c-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center; }
  .c-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(238,236,232,.45); transition: transform .45s var(--ease), background .3s, border-color .3s; }
  .c-ring em { position: relative; font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--k0); opacity: 0; transition: opacity .25s; }
  .cursor.link .c-ring::before { transform: scale(1.5); border-color: var(--white); }
  .cursor.view .c-ring::before { transform: scale(2.3); background: var(--white); border-color: var(--white); }
  .cursor.view .c-ring em { opacity: 1; }
  .cursor.view .c-dot { opacity: 0; }
}

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px; display: flex; align-items: center; gap: 36px; padding: 0 var(--pad);
  transition: transform .6s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(9,9,9,.9); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { font: 400 18px/1 var(--mark); letter-spacing: .06em; color: var(--white); text-shadow: 0 0 16px rgba(var(--halo), .35); white-space: nowrap; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; color: var(--ash-2); padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.chapter { font: 500 12px/1 var(--body); letter-spacing: .14em; color: var(--ash); font-variant-numeric: tabular-nums; }
.chapter b { color: var(--white); font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--k3); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform .45s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--k0); padding: 110px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 800 clamp(34px, 9vw, 56px)/1 var(--disp); font-stretch: 125%; text-transform: uppercase; }
.menu-links i { font: 500 12px var(--body); color: var(--ash); font-style: normal; letter-spacing: .12em; }
.menu-foot { display: grid; gap: 6px; color: var(--ash-2); font-size: 15px; }

/* =========================================================
   01 · HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--k0); }
.hero-photo, .hero-reveal, .hero-zoom { position: absolute; inset: 0; }
.hero-reveal { overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,9,.92) 0%, rgba(9,9,9,.35) 55%, rgba(9,9,9,.45) 100%); }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 96px; z-index: 2; }
.hero-copy .label { margin-bottom: 20px; }
.hero-title { font-size: clamp(42px, min(6.3vw, 15vh), 136px); line-height: .88; }  /* "STRONGER" ≈ 7.3em → always narrower than the copy column */
/* line masks clip top/bottom only (for the rise), never the sides, so wide letters are never cut */
.ln { display: block; clip-path: inset(0 -100vw 0 -100vw); padding-bottom: .07em; margin-bottom: -.07em; }
.ln > span { display: inline-block; }
.hero-sub { max-width: 420px; margin: min(26px, 3.4vh) 0 min(30px, 4vh); color: var(--ash-2); font-size: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-statement { display: none; }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 2; display: none; justify-content: space-between; align-items: center;
  font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.scroll-cue i { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-cue b { position: absolute; inset: 0; background: var(--white); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

@media (min-width: 861px) {
  .motion .hero { height: 270vh; }
  .motion .hero-pin { position: sticky; top: 0; }
  /* split frame: copy on black, photo panel on the right (opens to full frame on scroll) */
  .hero-photo { clip-path: inset(0 0 0 54%); }
  /* square image box (source is ~square): shown at .62 in the panel (sharp, whole sign visible),
     grows to 1 = full frame. Origin = the sign, so scaling keeps it centred. */
  .hero-photo img { position: absolute; left: 0; top: calc(50% - 42vw); width: 100vw; height: 100vw; max-width: none; object-fit: cover;
    transform-origin: 50% 42%; transform: translateX(27%) scale(.62); }
  .hero-shade { opacity: .45; }
  .hero-copy { top: 0; bottom: 0; right: auto; width: 50vw; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
  .hero-statement { display: grid; align-content: end; justify-content: start; position: absolute; inset: 0; z-index: 2; text-align: left; pointer-events: none;
    padding: 0 var(--pad) 11vh; font-size: clamp(40px, min(6.4vw, 12vh), 120px); line-height: .9; }
  .hero-statement .ln > span { transform: translateY(110%); }
  .hero-foot { display: flex; }
}

/* intro (before JS runs): slit of light, heading below its edge */
.motion .hero-title .ln > span { transform: translateY(110%); }
.motion .hero-copy .label, .motion .hero-sub, .motion .hero-ctas, .motion .hero-foot > * { opacity: 0; }
.motion .hero-reveal { clip-path: inset(50% 0 50% 0); }
/* failsafe if scripts never load */
@keyframes failsafe { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.motion:not(.ready) .hero-title .ln > span, .motion:not(.ready) .hero-copy .label, .motion:not(.ready) .hero-sub,
.motion:not(.ready) .hero-ctas, .motion:not(.ready) .hero-reveal, .motion:not(.ready) .hero-foot > * { animation: failsafe .5s ease 3s forwards; }

/* =========================================================
   02 · WALLS: halogen sweep across their own words
   ========================================================= */
.motto { position: relative; padding: 16vh 0 14vh; overflow: hidden; }
.motto .label { display: flex; margin-bottom: 4vh; }
.mline { white-space: nowrap; font-size: clamp(60px, 11.5vw, 210px); line-height: .98; will-change: transform; padding-left: var(--pad); }
.lit { display: inline-block; padding-right: .12em; color: transparent;
  background: linear-gradient(100deg, #3b3a38 0 36%, #8d8b87 44%, #fff4e6 50%, #8d8b87 56%, #3b3a38 64% 100%);
  background-size: 280% 100%; background-position: 50% 0; -webkit-background-clip: text; background-clip: text; }
.motion .lit { background-position: 100% 0; }

/* =========================================================
   03 · THE FLOOR: pinned sideways walk (desktop)
   ========================================================= */
.floor { position: relative; background: var(--k0); }
.floor-pin { position: relative; overflow: hidden; }
.floor-bgword { position: absolute; left: 0; bottom: -2vh; z-index: 0; white-space: nowrap; font-size: 24vw; line-height: .8; color: #121212; pointer-events: none; }
.floor-track { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 56px; padding: 14vh var(--pad); }
.floor-head .muted { margin-top: 18px; max-width: 340px; }
.panel { position: relative; }
.panel-img { overflow: hidden; border-radius: 4px; aspect-ratio: var(--ar); background: var(--k2); }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font-size: 13px; color: var(--ash-2); }
.panel figcaption b { font: 700 12px var(--disp); font-stretch: 125%; color: var(--ash); letter-spacing: .06em; }
.floor-ui { display: none; }

@media (min-width: 861px) {
  .floor-pin { height: 100vh; }
  .floor-track { flex-direction: row; align-items: center; height: 100%; gap: 5vw; padding: 40px 12vw 40px var(--pad); width: max-content; will-change: transform; }
  .floor-head { flex: 0 0 min(30vw, 470px); }
  .panel { flex: 0 0 auto; }
  .panel-img { height: min(62vh, 600px); width: auto; }
  .panel-wide .panel-img { height: min(42vh, 400px); }
  .panel:nth-of-type(2n) { transform: translateY(-5vh); }
  .panel:nth-of-type(2n+1) { transform: translateY(5vh); }
  .panel-img img { transform: scale(1.18); }
  .floor-ui { display: flex; align-items: center; gap: 18px; position: absolute; left: var(--pad); bottom: 28px; z-index: 2; font: 500 12px var(--body); letter-spacing: .14em; color: var(--ash); font-variant-numeric: tabular-nums; }
  .floor-count b { color: var(--white); font-weight: 600; }
  .floor-bar { position: relative; width: 180px; height: 1px; background: var(--line-2); }
  .floor-bar b { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
}
.no-anim .floor-track { width: auto; overflow-x: auto; }

/* =========================================================
   04 · PROGRAMS: list with a photo that follows the cursor
   ========================================================= */
.programs { position: relative; padding: 16vh 0; background: var(--k1); }
.sec-head { margin-bottom: 7vh; }
.sec-head .muted { margin-top: 16px; }
.plist { list-style: none; border-top: 1px solid var(--line); }
.prow { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: 3.4vh 0; border-bottom: 1px solid var(--line); }
.prow::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--halo), .07), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.prow h3 { font-size: clamp(26px, min(3.4vw, 7vh), 58px); line-height: .95; transition: translate .7s var(--ease); }  /* hover uses `translate`, GSAP owns `transform` */
.prow p { color: var(--ash); font-size: 15px; max-width: 380px; transition: color .4s; }
.pnum { font: 600 12px var(--disp); font-stretch: 125%; color: var(--ash); letter-spacing: .08em; }
.pthumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .prow:hover::before { opacity: 1; }
  .prow:hover h3 { translate: 16px 0; }
  .prow:hover p { color: var(--ash-2); }
}
.pfloat { position: fixed; left: 0; top: 0; z-index: 40; width: min(22vw, 300px); aspect-ratio: 3 / 4; pointer-events: none; visibility: hidden; }
.pfloat-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease-io); }
.pfloat.show { visibility: visible; }
.pfloat.show .pfloat-in { clip-path: inset(0 0 0 0); }
.pfloat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .9s var(--ease), opacity .3s; }
.pfloat.show img { transform: scale(1); }

/* =========================================================
   05 · 05:00
   ========================================================= */
.dawn { position: relative; }
.dawn-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-content: center; justify-items: center; text-align: center; gap: 2vh; background: var(--k0); }
.motion .dawn { height: 230vh; }
.motion .dawn-pin { position: sticky; top: 0; }
.dawn-glow { position: absolute; left: 50%; top: 52%; width: 130vmax; height: 130vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(var(--halo), .26) 0%, rgba(var(--halo), .09) 22%, transparent 48%); opacity: 1; }
.motion .dawn-glow { opacity: 0; }
.clock { position: relative; display: flex; align-items: baseline; font-size: min(25vw, 44vh); line-height: .84; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; color: var(--white); transition: text-shadow .6s; }
.clock i { font-style: normal; opacity: .55; margin: 0 .02em; }
.clock small { font: 600 clamp(14px, 2vw, 22px)/1 var(--body); letter-spacing: .16em; color: var(--ash); margin-left: .6em; }
.dawn.on .clock { text-shadow: 0 0 .06em rgba(var(--halo), .45), 0 0 .3em rgba(var(--halo), .25); }
.dawn-line { position: relative; font-size: clamp(16px, 1.6vw, 20px); color: var(--ash-2); }
.dawn .label { position: relative; }

/* =========================================================
   06 · MEMBERSHIP (calm)
   ========================================================= */
.membership { padding: 16vh 0; background: var(--k1); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; padding: 5vh 3vw 5vh 0; }
.plan + .plan { padding-left: 3vw; border-left: 1px solid var(--line); }
.plan-lit::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--white); box-shadow: 0 0 18px 1px rgba(var(--halo), .6); }
.plan-term { display: flex; align-items: baseline; gap: 14px; font: 500 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.plan-term b { font-size: clamp(56px, 6vw, 104px); line-height: .85; color: var(--white); letter-spacing: -.02em; }
.price { margin: 26px 0 20px; font: 600 22px var(--disp); font-stretch: 110%; color: var(--ash); }
.price span { color: var(--white); font-size: 32px; }
.plan ul { list-style: none; flex: 1; margin-bottom: 28px; }
.plan li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ash-2); }
.plan .btn { align-self: flex-start; }
.note { margin-top: 5vh; color: var(--ash); font-size: 15px; }

/* =========================================================
   07 · VISIT
   ========================================================= */
.visit { padding: 16vh 0 12vh; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.visit dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.visit dt { font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
.visit dd { font-size: 18px; line-height: 1.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.vform { background: var(--k2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.vform h3 { font: 800 clamp(26px, 2.4vw, 36px)/1 var(--disp); font-stretch: 125%; text-transform: uppercase; }
.vform .muted { margin: 10px 0 14px; font-size: 15px; }
.vform label { display: block; margin: 14px 0 7px; font-size: 13px; font-weight: 500; color: var(--ash-2); }
.vform input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--k1); color: var(--white); font: 500 16px var(--body); color-scheme: dark; transition: border-color .3s, box-shadow .3s; }
.vform input:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 4px rgba(var(--halo), .14); }
.vform input[aria-invalid="true"] { border-color: #e5675c; }
.form-error { min-height: 22px; margin: 10px 0 6px; font-size: 14px; color: #f08a80; }
.map { margin-top: 9vh; height: min(48vh, 460px); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.9) brightness(.85); }

/* =========================================================
   FOOTER: the sign switches on
   ========================================================= */
.footer { padding: 14vh var(--pad) 36px; background: var(--k0); overflow: hidden; }
.sign { position: relative; display: block; width: fit-content; margin: 0 auto 11vh; font: 400 clamp(56px, 15vw, 270px)/1 var(--mark); letter-spacing: .02em; white-space: nowrap; }
.sign-txt { position: relative; color: #141414; }
.sign-glow { position: absolute; inset: 0; color: rgba(var(--halo), .85);
  text-shadow: 0 0 .02em #fff1d6, 0 0 .06em rgba(var(--halo), .9), 0 0 .18em rgba(var(--halo), .5), 0 0 .45em rgba(var(--halo), .22); }
.motion .sign-glow { opacity: 0; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer h4 { font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); margin-bottom: 12px; }
.footer p { color: var(--ash-2); font-size: 15px; margin-bottom: 4px; }
.footer a:hover { color: var(--white); }
/* three columns: equal side columns keep the credit exactly in the centre */
.foot-base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 24px; margin-top: 7vh; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); }
.foot-base > :first-child { justify-self: start; }
.foot-base > .credit { justify-self: center; }
.foot-base > :last-child { justify-self: end; }

.mobile-book { display: none; }
.motion .fade { opacity: 0; transform: translateY(24px); }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 860px) {
  .nav { height: 64px; }
  .nav-links, .chapter { display: none; }
  .nav-right .btn { display: none; }
  .menu-btn { display: block; }
  .nav-right { margin-left: auto; }
  .hero-copy { bottom: 92px; }
  .hero-photo img { object-position: 50% 34%; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,9,9,.96) 0%, rgba(9,9,9,.82) 38%, rgba(9,9,9,.25) 66%, rgba(9,9,9,.5) 100%); }
  .mline { font-size: 15vw; }
  .prow { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 18px; padding: 20px 0; }
  .pthumb { display: block; grid-row: span 2; width: 76px; height: 96px; object-fit: cover; border-radius: 4px; }
  .pnum { display: none; }
  .prow h3 { font-size: clamp(22px, 6.4vw, 30px); }
  .prow p { font-size: 14px; }
  .pfloat { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 30px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: 96px; }
  .foot-base { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-base > :first-child, .foot-base > :last-child { justify-self: center; }
  .mobile-book { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(9,9,9,.94); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
  .mobile-book.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- program hover cards (designed, for programs without a matching photo) ---------- */
.pcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--halo), .2), transparent 70%), var(--k2); border: 1px solid var(--line); border-radius: 4px; opacity: 0; transition: opacity .35s; }
.pcard-glow { position: absolute; left: 50%; top: -30%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--halo), .28), transparent 65%); pointer-events: none; }
.pcard-big { position: relative; font: 800 clamp(70px, 7vw, 110px)/.9 var(--disp); font-stretch: 125%; color: var(--white); text-shadow: 0 0 .08em rgba(var(--halo), .55), 0 0 .3em rgba(var(--halo), .25); }
.pcard-cap { position: relative; font: 800 18px/1 var(--disp); font-stretch: 125%; text-transform: uppercase; }
.pcard-sub { position: relative; font-size: 13px; color: var(--ash); }
.pcard .chart { position: relative; width: 86%; margin-bottom: 6px; overflow: visible; }
.chart-grid { stroke: var(--line-2); stroke-width: 1; fill: none; stroke-dasharray: 3 5; }
.chart-line { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(var(--halo), .75)); transition: stroke-dashoffset 1.3s var(--ease) .15s; }
.chart-dot { fill: var(--white); filter: drop-shadow(0 0 6px rgba(var(--halo), .9)); opacity: 0; transition: opacity .4s 1.2s; }
.pfloat-in[data-show="img"] img { opacity: 1; }
.pfloat-in:not([data-show="img"]) img { opacity: 0; }
.pfloat-in[data-show="loss"] .pcard[data-card="loss"], .pfloat-in[data-show="pt"] .pcard[data-card="pt"] { opacity: 1; }
.pfloat.show .pfloat-in[data-show="loss"] .chart-line { stroke-dashoffset: 0; }
.pfloat.show .pfloat-in[data-show="loss"] .chart-dot { opacity: 1; }
.pthumb-card { place-items: center; background: radial-gradient(ellipse at 50% 0%, rgba(var(--halo), .22), transparent 70%), var(--k2); border: 1px solid var(--line); }
.pthumb-card b { font: 800 24px/1 var(--disp); font-stretch: 125%; color: var(--white); text-shadow: 0 0 8px rgba(var(--halo), .5); }
.pthumb-card .chart { width: 70px; }
.pthumb-card .chart-line { stroke-dashoffset: 0; stroke-width: 6; }
.pthumb-card .chart-grid { display: none; }
.pthumb-card .chart-dot { opacity: 1; r: 9; }
@media (max-width: 860px) { .pthumb-card { display: grid; } }

/* =========================================================
   STEAM BATH: steam rising through a warm downlight
   ========================================================= */
.steam { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--k0); }
.steam-fx { position: absolute; inset: 0; pointer-events: none; }
/* giant word half-hidden behind the steam */
.steam-word { position: absolute; right: -2vw; bottom: 4vh; font: 800 clamp(120px, 26vw, 460px)/.8 var(--disp); font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -.03em; color: #161616; white-space: nowrap; }
/* lamp glow: also the fallback when WebGL / motion is off */
.steam-lamp { position: absolute; left: 68%; top: -30%; width: 80vmax; height: 95vmax; transform: translateX(-50%);
  background: radial-gradient(ellipse 45% 40% at 50% 22%, rgba(var(--halo), .22), rgba(var(--halo), .06) 48%, transparent 74%); }
/* real-time steam (WebGL), rendered at half resolution: steam is soft anyway */
#steamGL { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.steam.gl-on #steamGL { opacity: 1; }
/* condensation on the glass: drops bead, grow, run down; the cursor wipes them */
#steamDrops { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease .3s; }
.steam.drops-on #steamDrops { opacity: 1; }
.steam.drops-on { cursor: crosshair; }
.steam-in { position: relative; z-index: 1; min-width: 0; width: 100%; padding: 18vh var(--pad); max-width: 860px; }
.steam .h2 { margin-bottom: 26px; }
.steam-copy { max-width: 460px; color: var(--ash-2); font-size: 17px; margin-bottom: 30px; }
@media (max-width: 860px) {
  .steam-lamp { left: 60%; }
  .steam-word { bottom: auto; top: 6vh; right: -4vw; font-size: 34vw; }
  .steam .h2 { font-size: min(7.6vw, 40px); }   /* "MAHESHWARAM." must fit a phone width */
}

/* ---------- developer credit ---------- */
.credit { display: inline-flex; align-items: center; gap: 12px; color: var(--ash); transition: color .3s; }
.credit-logo { height: 34px; width: auto; display: block; opacity: .85; transition: opacity .3s; }
.credit:hover { color: var(--ash-2); }
.credit:hover .credit-logo { opacity: 1; }
