/* =====================================================================
   Gyan Deep Library
   Concept: lamplight. The diya is the only light source on the page;
   the arch (from the study cubicles and wall niches) is the one shape.
   ===================================================================== */

@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  /* colour */
  --night: #10173a;
  --night-2: #18214d;
  --night-deep: #0a0f2a;
  --chalk: #eef0f5;
  --paper: #f8f9fb;
  --ink: #161b33;
  --ink-2: #4b5170;
  --lamp: #e9ae45;
  --lamp-hi: #ffd889;
  --lamp-lo: #a8711f;
  --seat: #f4d11f;
  --on-night-2: rgba(238, 240, 245, .72);
  --line-dark: rgba(238, 240, 245, .13);
  --line-light: rgba(22, 27, 51, .12);

  /* type */
  --ff-display: "Eczar", "Tiro Devanagari Hindi", Georgia, serif;
  --ff-body: "Anek Latin", "Anek Devanagari", "Segoe UI", system-ui, sans-serif;

  /* layout + motion */
  --gutter: clamp(16px, 4.2vw, 44px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.is-loading { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
::selection { background: var(--lamp); color: var(--night); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 120; left: 12px; top: -80px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--lamp); color: var(--night); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Lenis (smooth scroll) helpers */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ---------- type ---------- */
.display-2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.35rem + 3.1vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.016em;
  max-width: 15ch;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  max-width: 44ch;
  text-wrap: pretty;
}
:lang(hi) body, html:lang(hi) body { line-height: 1.75; }
html:lang(hi) .display-2 { line-height: 1.22; letter-spacing: 0; }
html:lang(hi) .hero-title { line-height: 1.18; letter-spacing: 0; font-size: clamp(2.3rem, .8rem + 4vw, 4.4rem); }
html:lang(hi) .lit-text { line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; font-stretch: 95%; line-height: 1.1;
  white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out), box-shadow .4s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-gold { background: var(--lamp); color: var(--night); box-shadow: 0 10px 30px -12px rgba(233, 174, 69, .7); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 246, 220, .75) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-gold:hover { background: var(--lamp-hi); box-shadow: 0 14px 36px -10px rgba(233, 174, 69, .85); }
.btn-gold:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn-ghost { border-color: rgba(238, 240, 245, .28); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--lamp); color: var(--lamp-hi); background: rgba(233, 174, 69, .07); }
.btn-ink { background: var(--night); color: var(--chalk); }
.btn-ink:hover { background: var(--night-2); }
.btn-ink .icon { color: var(--lamp); }

/* =====================================================================
   LOADER
   ===================================================================== */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.no-js .loader, .is-ready .loader { display: none; }
.loader-night {
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, #18214d 0%, #0a0f2a 72%);
  --mx: 50%; --my: 45%;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r) - 22vmax), #000 var(--r));
          mask: radial-gradient(circle at var(--mx) var(--my), transparent calc(var(--r) - 22vmax), #000 var(--r));
}
.loader-stage { position: relative; display: grid; justify-items: center; gap: 18px; transform: translateY(-2vh); }
.loader-mark { position: relative; width: 132px; height: 132px; transform-origin: 50% 50%; will-change: transform; }
.loader-diya { position: relative; z-index: 2; width: 100%; height: 100%; opacity: 0; transform: scale(.82); animation: diyaIn .9s var(--ease-out) .15s forwards; }
.loader-glow {
  position: absolute; z-index: 0; left: 50%; top: 32%; width: 460px; height: 460px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 214, 130, .55) 0%, rgba(233, 174, 69, .16) 32%, transparent 64%);
  opacity: 0; animation: glowIn 1.4s ease-out .55s forwards, breathe 3.2s ease-in-out 2s infinite;
}
.loader-flame {
  position: absolute; z-index: 3; left: 50%; top: 26%; width: 34px; height: 50px; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 249, 226, .95) 0%, rgba(255, 210, 120, .5) 40%, transparent 72%);
  mix-blend-mode: screen; opacity: 0;
  animation: ignite .5s ease-out .6s forwards, flicker 2.3s steps(1) 1.1s infinite;
}
.loader-rings { position: absolute; z-index: 1; left: 50%; top: 32%; }
.loader-rings i {
  position: absolute; left: 0; top: 0; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: 50%; border: 1px solid rgba(233, 174, 69, .55); opacity: 0;
  animation: ring 2.2s var(--ease-out) .7s infinite;
}
.loader-rings i:nth-child(2) { animation-delay: 1.8s; }
.loader-sparks { position: absolute; z-index: 1; left: 50%; top: 22%; }
.loader-sparks i {
  position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%;
  background: var(--lamp-hi); box-shadow: 0 0 10px 2px rgba(255, 200, 100, .7);
  opacity: 0; animation: rise var(--t) ease-out var(--d) infinite;
}
.loader-wordmark {
  width: 240px; height: auto; margin-top: 6px;
  clip-path: inset(0 100% 0 0); animation: write 1.1s var(--ease-io) .75s forwards;
}
.loader-wick { width: 160px; height: 2px; border-radius: 2px; background: rgba(238, 240, 245, .12); overflow: hidden; margin-top: 4px; }
.loader-wick span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lamp-lo), var(--lamp-hi));
  animation: wick 2.2s var(--ease-io) .2s forwards;
}
.loader-note { font-size: .875rem; color: rgba(238, 240, 245, .55); font-stretch: 92%; letter-spacing: .02em; opacity: 0; animation: fadeIn .8s ease .9s forwards; }

.loader.is-leaving .loader-night { --r: 170vmax; transition: --r 1.25s var(--ease-io) .1s, opacity .6s ease .85s; opacity: 0; }
.loader.is-leaving .loader-wordmark,
.loader.is-leaving .loader-wick,
.loader.is-leaving .loader-note { animation: fadeOut .35s ease forwards; }
.loader.is-leaving .loader-mark { transition: transform 1s var(--ease-io); }
.loader.is-leaving .loader-rings,
.loader.is-leaving .loader-sparks { opacity: 0; transition: opacity .3s; }
.loader.is-leaving .loader-glow { opacity: .35; transition: opacity .8s; animation: none; }
.loader.is-fading .loader-mark { opacity: 0; transform: scale(1.4); transition: opacity .6s ease, transform .8s var(--ease-out); }

@keyframes diyaIn { to { opacity: 1; transform: none; } }
@keyframes glowIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ignite { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: .9; transform: none; } }
@keyframes flicker { 0% { opacity: .9; } 18% { opacity: .7; } 31% { opacity: 1; } 47% { opacity: .78; } 63% { opacity: .95; } 80% { opacity: .72; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: .82; } }
@keyframes ring { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(-1 * var(--h))); } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes wick { to { transform: scaleX(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--chalk);
  transition: background-color .4s, box-shadow .4s, transform .55s var(--ease-out), backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(12, 18, 48, .8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand-diya { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(233, 174, 69, .4)); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.01em; }
.brand-sub { font-size: .8125rem; font-stretch: 88%; color: var(--on-night-2); white-space: nowrap; }
.primary-nav { display: flex; gap: 2px; }
.primary-nav a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font-size: .96875rem; font-weight: 500; color: rgba(238, 240, 245, .78);
  transition: color .25s, background-color .25s;
}
.primary-nav a:hover { color: var(--chalk); background: rgba(238, 240, 245, .06); }
.primary-nav a[aria-current="true"] { color: var(--lamp-hi); }
.primary-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-dark); }
.lang button {
  min-width: 42px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; font-size: .875rem; font-weight: 600; color: var(--on-night-2);
  transition: background-color .25s, color .25s;
}
.lang button { line-height: 1; }
.lang button[lang="hi"] { font-family: "Anek Devanagari", var(--ff-body); padding-top: 3px; }
.lang button[aria-pressed="true"] { background: var(--chalk); color: var(--night); }
.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent;
}
.menu-btn span { position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; transition: opacity .3s; }
.is-scrolled .scroll-progress { opacity: 1; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--lamp-lo), var(--lamp-hi));
  box-shadow: 0 0 10px rgba(233, 174, 69, .6);
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 60% at 85% 0%, #1d2758, var(--night-deep) 70%);
  color: var(--chalk);
  clip-path: circle(0 at calc(100% - var(--gutter) - 22px) 36px);
  transition: clip-path .65s var(--ease-io);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 36px); }
.mobile-nav { display: grid; }
.mobile-nav a {
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.2;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .6s var(--ease-out), color .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--lamp-hi); }
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: .23s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: .33s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: .38s; }
.mobile-menu-foot { display: grid; gap: 10px; }
.mobile-menu-foot a {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-dark); font-weight: 600;
}
.mobile-menu-foot a:last-child { background: var(--lamp); color: var(--night); border-color: transparent; }
.mobile-menu-foot .icon { width: 20px; height: 20px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(24px, 5vh, 56px)) 0 clamp(72px, 11vh, 120px);
  color: var(--chalk);
  background:
    radial-gradient(48% 60% at 74% 70%, rgba(233, 174, 69, .13) 0%, transparent 70%),
    radial-gradient(70% 80% at 72% 60%, #1d2759 0%, transparent 70%),
    linear-gradient(180deg, #0b1130 0%, var(--night) 55%, #111a42 100%);
}
.sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-stretch: 92%; font-weight: 500; color: var(--on-night-2);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(233, 174, 69, .16), 0 0 14px var(--lamp); }
.hero-title {
  margin: .3em 0 .38em;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(2.5rem, .9rem + 4.3vw, 4.75rem);
  line-height: .98; letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.1em; }
.hero-title .line > span {
  display: inline-block;
  color: var(--chalk);
  /* --lg = where the nearest letter sits in the light; gold there, chalk at the far edge */
  background: radial-gradient(circle var(--lr, 760px) at var(--lx, 140%) var(--ly, 170%),
              #fff3d0 0%, #f6c86c calc(var(--lg, 45%) * .55), #e9ae45 var(--lg, 45%),
              #efdab0 calc(var(--lg, 45%) + (100% - var(--lg, 45%)) * .5), var(--chalk) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede { max-width: 40ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--on-night-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; max-width: 560px; }
.fact {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 6px 7px 6px 11px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(238, 240, 245, .035);
  font-size: .9375rem; font-stretch: 94%; color: rgba(238, 240, 245, .86);
  transition: border-color .3s, background-color .3s, color .3s, transform .45s var(--ease-out), box-shadow .45s;
}
.fact .icon { color: var(--lamp); width: 18px; height: 18px; }
.fact-more { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(233, 174, 69, .15); transition: transform .5s var(--ease-back), background-color .3s; }
.fact-more::before, .fact-more::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.6px; margin: -.8px 0 0 -4.5px;
  border-radius: 2px; background: var(--lamp); transition: background-color .3s;
}
.fact-more::after { transform: rotate(90deg); }
.fact:hover, .fact:focus-visible { border-color: rgba(233, 174, 69, .65); background: rgba(233, 174, 69, .09); color: var(--chalk); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(233, 174, 69, .7); }
.fact:hover .fact-more, .fact:focus-visible .fact-more { transform: rotate(90deg); background: var(--lamp); }
.fact:hover .fact-more::before, .fact:hover .fact-more::after,
.fact:focus-visible .fact-more::before, .fact:focus-visible .fact-more::after { background: var(--night); }
.fact.is-pressed { animation: factPress .55s var(--ease-out); }
@keyframes factPress {
  35% { transform: scale(.93); background: var(--lamp); color: var(--night); box-shadow: 0 0 0 10px rgba(233, 174, 69, .16), 0 0 44px rgba(233, 174, 69, .75); }
  100% { transform: none; }
}

/* the niche: arch-framed photo with the diya at its sill */
.hero-visual {
  position: relative; justify-self: center;
  width: min(100%, 430px); margin: 0; padding-bottom: 92px;
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0);
}
.niche-wrap {
  position: relative; container-type: inline-size;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
}
.niche-wrap::before {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid rgba(233, 174, 69, .38);
  border-radius: calc(50cqi + 14px) calc(50cqi + 14px) 34px 34px;
  pointer-events: none;
}
.niche {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 50cqi 50cqi 22px 22px;
  background: var(--night-deep);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75);
}
.niche picture, .niche img { width: 100%; height: 100%; }
.niche img { object-fit: cover; object-position: 40% 50%; }
.niche::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% 108%, rgba(233, 174, 69, .38), transparent 70%),
    linear-gradient(to top, rgba(10, 15, 42, .55), transparent 40%);
}
.seat-sticker {
  position: absolute; z-index: 2; right: -22px; top: 34%;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--seat); color: #15161c;
  font-family: var(--ff-body); font-weight: 700; font-size: 2rem; line-height: 1;
  box-shadow: inset 0 0 0 4px var(--seat), inset 0 0 0 6px #17181e, 0 14px 30px -10px rgba(0, 0, 0, .65);
  transform: rotate(-9deg);
}
.niche-diya {
  position: absolute; z-index: 3; left: 50%; bottom: 0; width: 124px; height: 124px;
  transform: translate3d(calc(-50% + var(--px, 0) * 4px), calc(var(--py, 0) * 3px), 0);
}
.niche-diya img { position: relative; z-index: 2; width: 100%; height: 100%; }
.diya-glow {
  position: absolute; z-index: 1; left: 50%; top: 30%; width: 520px; height: 520px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 214, 130, .42) 0%, rgba(233, 174, 69, .14) 30%, transparent 62%);
  pointer-events: none; animation: breathe 4.2s ease-in-out infinite;
}
.diya-flicker {
  position: absolute; z-index: 3; left: 50%; top: 26%; width: 34px; height: 48px; translate: -50% -50%;
  border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 249, 226, .9) 0%, rgba(255, 210, 120, .45) 42%, transparent 72%);
  animation: flicker 2.3s steps(1) infinite;
}
.halo { position: absolute; z-index: 1; left: 50%; bottom: 82px; pointer-events: none; }
.halo span {
  position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border-radius: 50%; border: 1px solid rgba(233, 174, 69, .4);
  opacity: 0; animation: halo 7.5s ease-out infinite;
}
.halo span:nth-child(2) { animation-delay: 2.5s; }
.halo span:nth-child(3) { animation-delay: 5s; }
@keyframes halo { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: .55; } 100% { opacity: 0; transform: scale(1.7); } }
.niche-caption {
  position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(26px);
  text-align: center; font-size: .8125rem; font-stretch: 92%; color: rgba(238, 240, 245, .5);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 28px; height: 46px; border-radius: 999px; border: 1px solid rgba(238, 240, 245, .25);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--lamp); animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* hero entrance: hidden until the lamp reveal starts */
.hero-title .line > span { transition: transform 1.15s var(--ease-out); }
.hero-title .line:nth-child(2) > span { transition-delay: .14s; }
.hero [data-anim] { transition: opacity .9s ease, transform 1s var(--ease-out); }
.hero [data-anim="1"] { transition-delay: .05s; }
.hero [data-anim="2"] { transition-delay: .4s; }
.hero [data-anim="3"] { transition-delay: .52s; }
.hero [data-anim="4"] { transition-delay: .64s; }
.niche { transition: clip-path 1.3s var(--ease-io) .05s; clip-path: inset(0 0 0 0 round 50cqi 50cqi 22px 22px); }
.niche-wrap::before { transition: opacity 1s ease .7s; }
.seat-sticker { transition: opacity .2s ease 1.05s, transform .55s var(--ease-back) 1.05s; }
.niche-caption, .scroll-cue { transition: opacity .8s ease 1.1s; }
.site-header { transition-property: background-color, box-shadow, transform, backdrop-filter, opacity; }

html.js:not(.is-revealing):not(.is-ready) .hero-title .line > span { transform: translateY(108%); }
html.js:not(.is-revealing):not(.is-ready) .hero [data-anim] { opacity: 0; transform: translateY(18px); }
html.js:not(.is-revealing):not(.is-ready) .niche { clip-path: inset(100% 0 0 0 round 50cqi 50cqi 22px 22px); }
html.js:not(.is-revealing):not(.is-ready) .niche-wrap::before,
html.js:not(.is-revealing):not(.is-ready) .niche-caption,
html.js:not(.is-revealing):not(.is-ready) .scroll-cue { opacity: 0; }
html.js:not(.is-revealing):not(.is-ready) .seat-sticker { opacity: 0; transform: scale(1.8) rotate(-40deg); }
html.js:not(.is-revealing):not(.is-ready) .site-header { transform: translateY(-100%); }
html.js:not(.is-ready) .niche-diya { opacity: 0; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: clamp(84px, 11vw, 156px) 0; }

/* about (light) */
.about { background: var(--chalk); color: var(--ink); }
.about-title { max-width: 20ch; }
.lit-text {
  max-width: 28ch; margin: clamp(28px, 4vw, 52px) 0 clamp(64px, 8vw, 112px) clamp(0px, 28vw, 400px);
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.5rem, .95rem + 2.05vw, 2.55rem); line-height: 1.3; letter-spacing: -.005em;
  color: var(--ink);
}
.lit-text .w { color: rgba(22, 27, 51, .17); transition: color .45s ease; }
.lit-text .w.on { color: var(--ink); }
.lit-text .w.edge { color: var(--lamp-lo); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 112px); align-items: end;
}
.about-photo { container-type: inline-size; max-width: 440px; }
.about-photo picture { overflow: hidden; border-radius: 50cqi 50cqi 18px 18px; box-shadow: 0 40px 80px -48px rgba(22, 27, 51, .55); }
.about-photo img { width: 100%; aspect-ratio: 26 / 30; object-fit: cover; }
figcaption { font-size: .875rem; font-stretch: 94%; }
.about-photo figcaption { margin-top: 14px; color: var(--ink-2); }
.about-body { display: grid; gap: 20px; padding-bottom: 8px; }
.about-copy { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); max-width: 46ch; }
.owner-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 12px; padding: 18px 18px 18px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line-light);
  box-shadow: 0 24px 50px -36px rgba(22, 27, 51, .45);
}
.owner-who { display: grid; }
.owner-label { font-size: .875rem; color: var(--ink-2); font-stretch: 94%; }
.owner-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }

/* facilities (dark) */
.facilities { background: var(--night); color: var(--chalk); }
.facilities .section-lede { color: var(--on-night-2); margin-top: 22px; }
.fac-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.fac-intro { position: sticky; top: calc(var(--header-h) + 36px); }
.fac-photo { margin-top: 40px; }
.fac-photo picture { overflow: hidden; border-radius: 18px; }
.fac-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fac-photo figcaption { margin-top: 12px; color: rgba(238, 240, 245, .55); }
.fac-list { list-style: none; padding: 0; border-top: 1px solid var(--line-dark); }
.fac {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark);
}
.fac-icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(233, 174, 69, .32); color: var(--lamp);
  background: radial-gradient(circle at 50% 30%, rgba(233, 174, 69, .14), transparent 72%);
  transition: background-color .4s, border-color .4s, box-shadow .5s, transform .5s var(--ease-out);
}
.fac-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fac h3 { margin: 6px 0 8px; font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.fac p { color: var(--on-night-2); max-width: 44ch; }
.fac:hover .fac-icon { border-color: var(--lamp); background-color: rgba(233, 174, 69, .12); box-shadow: 0 0 44px -8px rgba(233, 174, 69, .55); transform: scale(1.06); }
.fac .air { stroke-dasharray: 2.4 2.6; }
.fac:hover .air { animation: airflow .7s linear infinite; }
.fac:hover .arc { animation: wifi 1.4s ease-in-out infinite; }
.fac:hover .arc-2 { animation-delay: .15s; }
.fac:hover .arc-3 { animation-delay: .3s; }
.fac:hover .cursor { animation: blink .9s steps(1) infinite; }
.fac .lean { transform-origin: 18px 20px; transition: transform .5s var(--ease-back); }
.fac:hover .lean { transform: rotate(-12deg); }
.fac .spark { transform-origin: 18.5px 4.8px; }
.fac:hover .spark { animation: twinkle 1s ease-in-out infinite; }
@keyframes airflow { to { stroke-dashoffset: -10; } }
@keyframes wifi { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }

/* who it's for (light) */
.learners { background: var(--paper); color: var(--ink); }
.learners-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.learners-head .section-lede, .photos-head .section-lede { color: var(--ink-2); justify-self: end; }
.learner-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-light);
}
.learner { padding: 36px 28px 8px; border-left: 1px solid var(--line-light); }
.learner:first-child { border-left: 0; padding-left: 0; }
.learner-art {
  width: 76px; height: 76px; margin-bottom: 28px; overflow: visible;
  fill: none; stroke: var(--lamp-lo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-back);
}
.learner-art .fill, .learner-art .flame { fill: var(--lamp); stroke: none; }
.learner-art .tick { stroke: var(--lamp); stroke-width: 2.4; }
.learner:hover .learner-art { transform: translateY(-4px) rotate(-4deg); }
.learner h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.4375rem; line-height: 1.18; margin-bottom: 10px; }
.learner p { color: var(--ink-2); }
.learner .flame { transform-origin: 32px 16px; animation: flame 2.6s ease-in-out infinite; }
@keyframes flame { 0%, 100% { transform: scale(1); } 40% { transform: scale(.92, 1.08); } 70% { transform: scale(1.05, .95); } }

/* photos (dark) */
.photos { background: var(--night-deep); color: var(--chalk); }
.photos-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.photos-head .section-lede { color: var(--on-night-2); }
.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 250px);
  grid-template-areas: "d d e s" "d d e t" "n n g g";
}
.shot-desks { grid-area: d; } .shot-entrance { grid-area: e; } .shot-sign { grid-area: s; }
.shot-stairs { grid-area: t; } .shot-night { grid-area: n; } .shot-gate { grid-area: g; }
.shot {
  position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 16px;
  background: var(--night-2); text-align: left; cursor: zoom-in;
}
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 42, .55), transparent 45%); pointer-events: none; }
.shot-cap {
  position: absolute; z-index: 1; left: 12px; bottom: 12px; right: 12px; width: max-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 15, 42, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .875rem; font-weight: 500; font-stretch: 94%; color: var(--chalk);
}
.shot-entrance img { object-position: 50% 30%; }
.shot-gate img { object-position: 50% 35%; }

/* join (light) */
.join { background: var(--chalk); color: var(--ink); }
.steps { --gap: clamp(28px, 4vw, 56px); position: relative; list-style: none; padding: 0; margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 33px; left: 76px; right: calc(10px - var(--gap)); border-top: 2px dashed rgba(22, 27, 51, .2); }
.step { position: relative; }
.sticker {
  position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 26px;
  background: var(--seat); color: #15161c; font-weight: 700; font-size: 1.875rem; line-height: 1;
  box-shadow: inset 0 0 0 4px var(--seat), inset 0 0 0 6px #17181e, 0 10px 22px -10px rgba(22, 27, 51, .55);
  transform: rotate(var(--rot, -6deg));
}
.step:nth-child(2) .sticker { --rot: 5deg; }
.step:nth-child(3) .sticker { --rot: -3deg; }
.step h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 32ch; }
.plan-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px;
  margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 44px);
  border-radius: 28px; background: var(--night); color: var(--chalk);
}
.plan-card::before {
  content: ""; position: absolute; z-index: -1; left: -10%; top: -60%; width: 60%; height: 220%;
  background: radial-gradient(closest-side, rgba(233, 174, 69, .22), transparent);
}
.plan-text { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.35; max-width: 32ch; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* visit (dark) */
.visit { background: var(--night); color: var(--chalk); overflow: hidden; isolation: isolate; }
.visit-bg { position: absolute; inset: 0; z-index: -1; opacity: .3; }
.visit-bg picture, .visit-bg img { width: 100%; height: 100%; }
.visit-bg img { object-fit: cover; }
.visit-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--night) 28%, rgba(16, 23, 58, .7) 70%, rgba(16, 23, 58, .85)); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.visit .section-lede { color: var(--on-night-2); margin-top: 22px; }
.address { margin: 28px 0 30px; font-style: normal; font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.45; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 460px; }
.contact-list a {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px;
  border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(238, 240, 245, .035);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-out);
}
.contact-list a:hover { border-color: rgba(233, 174, 69, .6); background: rgba(233, 174, 69, .08); transform: translateX(6px); }
.c-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lamp); color: var(--night); }
.c-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-text { display: grid; line-height: 1.3; }
.c-text small { font-size: .8125rem; color: var(--on-night-2); font-stretch: 94%; }
.c-text span { font-weight: 600; font-size: 1.0625rem; }
.visit-map {
  position: relative; overflow: hidden; aspect-ratio: 6 / 5;
  border-radius: 28px; border: 1px solid rgba(233, 174, 69, .3);
  background: var(--night-2); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-sign {
  position: absolute; left: 14px; bottom: 14px; width: min(220px, 52%);
  padding: 8px 8px 10px; border-radius: 16px;
  background: rgba(10, 15, 42, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--chalk);
}
.visit-sign img { border-radius: 10px; }
.visit-sign figcaption { margin-top: 8px; padding: 0 4px; font-size: .8125rem; line-height: 1.35; }

/* footer (light) */
.site-footer { background: var(--chalk); color: var(--ink); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer-brand img { width: 230px; }
.footer-brand p { margin-top: 18px; color: var(--ink-2); }
.footer-col { display: grid; align-content: start; gap: 4px; }
.footer-col h3 { margin-bottom: 10px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.footer-col a { justify-self: start; padding: 4px 0; font-weight: 500; transition: color .2s; }
.footer-col a:hover { color: var(--lamp-lo); }
.footer-addr { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0 30px; font-size: .875rem; color: var(--ink-2); }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.to-top .icon { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.to-top:hover .icon { transform: translateY(-3px); }

/* designer credit (darkest strip at the very bottom) */
.footer-credit { background: var(--night); color: var(--on-night-2); font-size: .875rem; }
.footer-credit-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 18px 0; }
.footer-credit p a { color: var(--lamp); font-weight: 600; transition: color .2s; }
.credit-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.credit-links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(238, 240, 245, .84); transition: color .2s; }
.credit-links .icon { width: 16px; height: 16px; color: var(--lamp); }
.footer-credit p a:hover, .credit-links a:hover { color: var(--lamp-hi); }

/* mobile quick contact bar */
.quickbar { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--chalk); overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 9, 26, .94); }
.lb-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 72px 84px 36px; }
.lb-figure { display: grid; justify-items: center; gap: 14px; max-width: 1200px; opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .5s var(--ease-out); }
.lightbox.is-open .lb-figure { opacity: 1; transform: none; }
.lb-media img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 170px); border-radius: 14px; object-fit: contain; box-shadow: 0 40px 100px -30px #000; }
.lb-media.is-swapping img { opacity: .2; transition: opacity .15s; }
.lb-caption { display: flex; gap: 14px; align-items: baseline; font-size: 1rem; }
.lb-count { color: rgba(238, 240, 245, .5); font-size: .875rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(238, 240, 245, .22); background: rgba(16, 23, 58, .7);
  transition: background-color .25s, border-color .25s;
}
.lb-btn:hover { background: var(--lamp); color: var(--night); border-color: var(--lamp); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-close { right: 18px; top: 18px; }

/* =====================================================================
   FACILITY POP-UP: the chip lights up, the night spreads from it,
   the gold pill blooms into the panel, then the content arrives.
   ===================================================================== */
.fmodal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--chalk); overflow: hidden;
}
.fmodal[open] { display: grid; place-items: center; }
.fmodal::backdrop { background: transparent; }
.fm-veil {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(233, 174, 69, .18), transparent 45%), rgba(6, 9, 26, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fm-panel {
  position: relative; z-index: 1; isolation: isolate;
  width: min(1000px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "visual body" "visual foot"; column-gap: clamp(28px, 4vw, 56px);
  padding: clamp(16px, 2vw, 24px) clamp(24px, 4vw, 52px) clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
  border-radius: 28px; border: 1px solid rgba(233, 174, 69, .28);
  background: linear-gradient(155deg, #1c2659 0%, #121a42 55%, #0e1536 100%);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.fm-flash { position: absolute; inset: 0; z-index: 30; border-radius: inherit; background: linear-gradient(120deg, #ffe3a3, #e9ae45 60%, #d4952f); opacity: 0; pointer-events: none; }
.fm-slide { display: contents; }
.fm-slide[hidden] { display: none; }

/* background patterns, one per facility */
.fm-pattern {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  -webkit-mask: linear-gradient(100deg, transparent 28%, #000 72%); mask: linear-gradient(100deg, transparent 28%, #000 72%);
}
.fm-slide.is-live .fm-pattern { opacity: 1; transition: opacity 1.4s ease .35s; }
.fm-pattern[data-p="desk"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='84'%3E%3Cpath d='M10 84V36a26 26 0 0 1 52 0v48' fill='none' stroke='%23E9AE45' stroke-opacity='.13' stroke-width='1.3'/%3E%3C/svg%3E");
  background-size: 72px 84px; animation: fmDrift 46s linear infinite;
}
.fm-pattern[data-p="ac"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='38'%3E%3Cpath d='M0 19c23-14 47-14 70 0s47 14 70 0' fill='none' stroke='%23E9AE45' stroke-opacity='.14' stroke-width='1.3'/%3E%3C/svg%3E");
  background-size: 140px 38px; animation: fmWave 9s linear infinite;
}
.fm-pattern[data-p="wifi"] { background-image: repeating-radial-gradient(circle at 80% 112%, rgba(233, 174, 69, .12) 0 1.3px, transparent 1.8px 36px); }
.fm-pattern[data-p="laptop"] { background-image: radial-gradient(rgba(233, 174, 69, .26) 1.1px, transparent 1.7px); background-size: 24px 24px; animation: fmDrift 46s linear infinite; }
.fm-pattern[data-p="books"] { background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(233, 174, 69, .12) 33px 34px); }
.fm-pattern[data-p="washroom"] {
  background-image: linear-gradient(rgba(233, 174, 69, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 174, 69, .1) 1px, transparent 1px);
  background-size: 44px 44px;
}
@keyframes fmDrift { to { background-position: 144px 168px; } }
@keyframes fmWave { to { background-position: 280px 0; } }

/* the AI image in an arch */
.fm-visual { grid-area: visual; margin: 0; align-self: center; container-type: inline-size; }
.fm-arch {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: calc(100dvh - 90px);
  border-radius: 50cqi 50cqi 20px 20px; background: var(--night-deep);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
}
.fm-arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(233, 174, 69, .3);
  background: linear-gradient(to top, rgba(10, 15, 42, .45), transparent 35%);
}
.fm-arch picture, .fm-arch img, .fm-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-arch img { object-fit: cover; }
.fm-over { pointer-events: none; }
.fm-over .motes circle { fill: #ffe3a3; filter: drop-shadow(0 0 4px #ffcf6e); animation: mote 6s ease-in-out infinite; }
.fm-over .motes circle:nth-child(2) { animation-delay: -1.2s; }
.fm-over .motes circle:nth-child(3) { animation-delay: -2.4s; }
.fm-over .motes circle:nth-child(4) { animation-delay: -3.6s; }
.fm-over .motes circle:nth-child(5) { animation-delay: -4.8s; }
@keyframes mote { 0% { transform: translateY(20px); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
.fm-over .sparkles path { fill: #fff6d8; transform-box: fill-box; transform-origin: center; animation: twinkle-big 2.4s ease-in-out infinite; }
.fm-over .sparkles path:nth-child(2) { animation-delay: -.6s; }
.fm-over .sparkles path:nth-child(3) { animation-delay: -1.2s; }
.fm-over .sparkles path:nth-child(4) { animation-delay: -1.8s; }
@keyframes twinkle-big { 0%, 100% { transform: scale(.2) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* text column */
.fm-body { grid-area: body; align-self: end; padding-top: 64px; }
.fm-icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(233, 174, 69, .4); color: var(--lamp);
  background: radial-gradient(circle at 50% 30%, rgba(233, 174, 69, .2), transparent 72%);
  box-shadow: 0 0 44px -10px rgba(233, 174, 69, .65);
}
.fm-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fm-title { margin: 22px 0 12px; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.05; letter-spacing: -.015em; }
html:lang(hi) .fm-title { line-height: 1.25; letter-spacing: 0; }
.fm-desc { color: var(--on-night-2); font-size: 1.0625rem; max-width: 42ch; }
.fm-points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fm-points li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px;
  background: rgba(238, 240, 245, .05); border: 1px solid var(--line-dark); font-size: .9375rem;
}
.fm-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.fm-foot {
  grid-area: foot; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 28px; padding: 22px 0 6px; border-top: 1px solid var(--line-dark);
}
.fm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-nav { display: flex; align-items: center; gap: 8px; }
.fm-count { min-width: 3.4em; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; color: rgba(238, 240, 245, .6); }
.fm-nav button, .fm-close {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(238, 240, 245, .22); background: rgba(16, 23, 58, .7); color: var(--chalk);
  transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--ease-out);
}
.fm-nav button:hover, .fm-close:hover { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.fm-close:hover { transform: rotate(90deg); }
.fm-nav svg, .fm-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-close { position: absolute; z-index: 10; top: 16px; right: 16px; }

/* content choreography: leaving is quick, arriving is staged */
.fm-visual { clip-path: inset(100% 0 0 0); opacity: 0; transition: clip-path .3s var(--ease-io), opacity .3s ease; }
.fm-visual img { transform: scale(1.18); transition: transform .3s ease; }
.fm-slide.is-live .fm-visual { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path 1.15s var(--ease-io), opacity .4s ease; }
.fm-slide.is-live .fm-visual img { transform: none; transition: transform 1.8s var(--ease-out); }
.fm-body > * { opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .25s ease; }
.fm-slide.is-live .fm-body > * { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease-out); }
.fm-slide.is-live .fm-body > :nth-child(1) { transition-delay: .3s; }
.fm-slide.is-live .fm-body > :nth-child(2) { transition-delay: .4s; }
.fm-slide.is-live .fm-body > :nth-child(3) { transition-delay: .5s; }
.fm-slide.is-live .fm-body > :nth-child(4) { transition-delay: .58s; }
.fm-points li { opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.fm-slide.is-live .fm-points li { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease-back); }
.fm-slide.is-live .fm-points li:nth-child(1) { transition-delay: .7s; }
.fm-slide.is-live .fm-points li:nth-child(2) { transition-delay: .78s; }
.fm-slide.is-live .fm-points li:nth-child(3) { transition-delay: .86s; }
.fm-icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s; }
.fm-slide.is-live .fm-icon [pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-io) .45s; }
.fm-foot, .fm-close { opacity: 0; transition: opacity .2s ease; }
.fmodal.is-open .fm-foot, .fmodal.is-open .fm-close { opacity: 1; transition: opacity .6s ease .75s; }

@media (max-width: 760px) {
  .fmodal[open] { place-items: end center; }
  .fm-panel {
    width: 100%; max-height: 94dvh; border-radius: 26px 26px 0 0; border-bottom: 0;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "visual" "body" "foot";
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .fm-arch { aspect-ratio: auto; height: min(36dvh, 320px); }
  .fm-body { padding-top: 22px; align-self: start; }
  .fm-icon { width: 48px; height: 48px; }
  .fm-icon svg { width: 24px; height: 24px; }
  .fm-title { margin-top: 14px; }
  .fm-foot { margin-top: 20px; padding-top: 18px; }
  .fm-actions, .fm-actions .btn { width: 100%; }
  .fm-nav { width: 100%; justify-content: space-between; }
  .fm-close { top: 24px; right: 28px; }
  .fm-pattern { -webkit-mask: linear-gradient(180deg, transparent 35%, #000 75%); mask: linear-gradient(180deg, transparent 35%, #000 75%); }
}

/* =====================================================================
   SCROLL REVEALS (only when JS has set up the observer)
   ===================================================================== */
.reveal-on [data-reveal=""] { transition: opacity 1s ease, filter 1.1s ease, transform 1.1s var(--ease-out); }
.reveal-on [data-reveal=""]:not(.is-in) { opacity: .15; filter: blur(10px); transform: translateY(14px); }
.reveal-on [data-reveal="clip"] { transition: clip-path 1.3s var(--ease-io); clip-path: inset(0 0 0 0); }
.reveal-on [data-reveal="clip"] img { transition: transform 1.6s var(--ease-out); }
.reveal-on [data-reveal="clip"]:not(.is-in) { clip-path: inset(14% 8% 14% 8%); }
.reveal-on [data-reveal="clip"]:not(.is-in) img { transform: scale(1.18); }
.reveal-on [data-reveal="stick"] .sticker { transition: opacity .25s ease, transform .6s var(--ease-back); }
.reveal-on [data-reveal="stick"]:not(.is-in) .sticker { opacity: 0; transform: scale(1.9) rotate(-35deg); }
.reveal-on [data-reveal="stick"] h3, .reveal-on [data-reveal="stick"] p { transition: opacity .8s ease .2s; }
.reveal-on [data-reveal="stick"]:not(.is-in) h3, .reveal-on [data-reveal="stick"]:not(.is-in) p { opacity: 0; }
.reveal-on .steps .step:nth-child(2) .sticker { transition-delay: .18s; }
.reveal-on .steps .step:nth-child(3) .sticker { transition-delay: .36s; }
.reveal-on .bento .shot:nth-child(2) { transition-delay: .08s; }
.reveal-on .bento .shot:nth-child(3) { transition-delay: .16s; }
.reveal-on .bento .shot:nth-child(4) { transition-delay: .24s; }
.reveal-on .bento .shot:nth-child(5) { transition-delay: .1s; }
.reveal-on .bento .shot:nth-child(6) { transition-delay: .2s; }
/* learner line art draws itself */
.reveal-on .learner-art [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-io); }
.reveal-on .learner:not(.is-in) .learner-art [pathLength] { stroke-dashoffset: 1; }
.reveal-on .learner .learner-art .fill, .reveal-on .learner .learner-art .flame { transition: opacity .6s ease 1s; }
.reveal-on .learner:not(.is-in) .learner-art .fill, .reveal-on .learner:not(.is-in) .learner-art .flame { opacity: 0; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .fac-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .fac-intro { position: static; }
  .fac-photo { max-width: 560px; }
  .learner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learner:nth-child(3) { border-left: 0; padding-left: 0; }
  .learner:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .learners-head, .photos-head { grid-template-columns: minmax(0, 1fr); }
  .learners-head .section-lede, .photos-head .section-lede { justify-self: start; }
  .about-photo { max-width: 380px; }
  .lit-text { margin-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  /* hero: visual first, so the lamp is on screen when it lands */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero-visual { order: -1; width: min(64vw, 340px); padding-bottom: 76px; }
  .niche-diya { width: 104px; height: 104px; }
  .halo { bottom: 66px; }
  .halo span { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .niche-caption { display: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .brand-diya { width: 36px; height: 36px; }
  .brand-name { font-size: 1.25rem; }
  .lang button { min-width: 38px; padding: 0 8px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-facts { gap: 6px; margin-top: 28px; }
  .fact { font-size: .875rem; padding: 5px 6px 5px 9px; min-height: 38px; }
  .seat-sticker { width: 52px; height: 52px; right: -16px; font-size: 1.6rem; }
  .fac { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 24px 0; }
  .fac-icon { width: 52px; height: 52px; }
  .fac-icon svg { width: 26px; height: 26px; }
  .fac h3 { font-size: 1.3rem; margin-top: 2px; }
  .learner-grid { grid-template-columns: minmax(0, 1fr); }
  .learner, .learner:first-child, .learner:nth-child(3) { padding: 28px 0 4px; border-left: 0; }
  .learner + .learner { border-top: 1px solid var(--line-light); }
  .learner { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
  .learner-art { grid-row: span 2; width: 60px; height: 60px; margin: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; grid-template-areas: "d d" "e s" "e t" "n n" "g g"; gap: 8px; }
  .shot { border-radius: 12px; }
  .shot-cap { left: 8px; bottom: 8px; font-size: .8125rem; padding: 5px 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .step:not(:last-child)::after { top: 76px; bottom: -20px; left: 32px; right: auto; border-top: 0; border-left: 2px dashed rgba(22, 27, 51, .2); }
  .step { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 20px; }
  .step .sticker { grid-row: span 2; margin: 0; }
  .plan-actions, .plan-actions .btn { width: 100%; }
  .visit-map { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-credit-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 0 10px; }
  .credit-links { flex-direction: column; gap: 10px; }
  .lb-stage { padding: 64px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-media img { max-height: calc(100dvh - 210px); border-radius: 10px; }

  .quickbar {
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; padding: 6px;
    border-radius: 999px; border: 1px solid var(--line-dark);
    background: rgba(12, 18, 48, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6);
    transition: transform .6s var(--ease-out) .9s;
  }
  html.js:not(.is-revealing):not(.is-ready) .quickbar { transform: translateY(160%); }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
    border-radius: 999px; color: var(--chalk); font-size: .9375rem; font-weight: 600;
  }
  .quickbar .icon { width: 19px; height: 19px; color: var(--lamp); }
  .quickbar a.is-primary { background: var(--lamp); color: var(--night); }
  .quickbar a.is-primary .icon { color: var(--night); }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
  .hero-title, html:lang(hi) .hero-title { font-size: clamp(2.05rem, 10.2vw, 2.6rem); }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .halo, .loader-rings, .loader-sparks, .sparks { display: none; }
  .lit-text .w { color: var(--ink) !important; }
  .lit-text .w.edge { color: var(--ink) !important; }
}
