/* ==========================================================================
   Nishchalananda Saraswati — design system
   Palette: Puri night-sky indigo · temple-ivory · laterite stone · muted saffron · copper
   ========================================================================== */

:root {
  --night: #12152b;
  --indigo: #1b2045;
  --indigo-2: #262c5a;
  --slate: #3c4769;
  --ivory: #f6f1e7;
  --parchment: #ede4d3;
  --stone: #d6cab4;
  --stone-dk: #6f6452;
  --ink: #1c1a26;
  --ink-soft: #4a4553;
  --saffron: #c4692a;
  --saffron-lt: #e0a36f;
  --saffron-btn: #a9541c;
  --copper: #9b5a2f;
  --copper-dk: #7f4520;
  --gold: #b99658;
  --on-dark: #efe8da;
  --on-dark-muted: #b9b5c6;
  --line-dark: rgba(239, 232, 218, .16);
  --line-light: rgba(28, 26, 38, .14);

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --fs-body: clamp(1.0625rem, .92rem + .4vw, 1.1875rem);
  --fs-small: clamp(.875rem, .84rem + .15vw, .9375rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 3.6vw, 5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2vw, 3.3rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  --fs-lede: clamp(1.2rem, 1rem + .7vw, 1.55rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section: clamp(72px, 9vw, 148px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.gate-locked body { visibility: hidden; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-dk); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--saffron); }
p { margin: 0 0 1.15em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; color: inherit; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: 1.25rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .01em; }
em, i { font-style: italic; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
dl, dd { margin: 0; }
button { font: inherit; }
::selection { background: var(--saffron-lt); color: var(--night); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--saffron-lt); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px;
  background: var(--ivory); color: var(--night); font-weight: 600; border-radius: 2px; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(56px, 6vw, 96px); position: relative; }

.dark { background: var(--night); color: var(--on-dark); }
.dark a { color: var(--saffron-lt); }
.dark a:hover { color: #f3c79d; }
.indigo { background: var(--indigo); color: var(--on-dark); }
.indigo a { color: var(--saffron-lt); }
.parchment { background: var(--parchment); }
.stone { background: var(--stone); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain);
  opacity: .05; mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em; margin: 0 0 1.3rem;
  font-family: var(--f-body); font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--copper-dk);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow, .indigo .eyebrow { color: var(--saffron-lt); }
.lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.45; font-weight: 400; color: var(--ink-soft); }
.dark .lede, .indigo .lede { color: var(--on-dark); opacity: .9; }
.muted { color: var(--ink-soft); }
.dark .muted, .indigo .muted { color: var(--on-dark-muted); }
.deva { font-family: var(--f-deva); font-weight: 400; letter-spacing: 0; }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.measure { max-width: 68ch; }
.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; color: var(--copper);
}
.term { font-style: italic; font-family: var(--f-display); font-size: 1.12em; }

.rule-orn { display: flex; align-items: center; gap: 18px; color: var(--gold); margin-block: 0 2rem; }
.rule-orn::before, .rule-orn::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.rule-orn span { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em; min-height: 52px; padding: 14px 28px;
  border: 1px solid var(--saffron-btn); background: var(--saffron-btn); color: #fff; text-decoration: none; border-radius: 1px;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: background .3s var(--ease), color .3s, border-color .3s;
}
.btn:hover { background: var(--copper-dk); border-color: var(--copper-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(239,232,218,.45); }
.btn-ghost:hover { background: var(--on-dark); color: var(--night); border-color: var(--on-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn.btn-ghost { color: var(--on-dark); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .7em; font-weight: 600; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--copper-dk); padding-block: 8px;
}
.link-arrow::after { content: "→"; font-size: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.dark .link-arrow, .indigo .link-arrow { color: var(--saffron-lt); }

/* ---------- Figures (never cropped) ---------- */
.frame { margin: 0; position: relative; }
.frame img { width: 100%; height: auto; }
.frame-offset { padding: 0 14px 14px 0; }
.frame-offset::before {
  content: ""; position: absolute; inset: 14px 0 0 14px; border: 1px solid var(--gold); opacity: .7; pointer-events: none;
}
.frame-offset img { position: relative; z-index: 1; }
.frame figcaption, .caption {
  position: relative; margin-top: 14px; padding-left: 34px; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft);
}
.frame figcaption::before { content: ""; position: absolute; left: 0; top: .78em; width: 22px; height: 1px; background: var(--gold); }
.dark .frame figcaption, .indigo .frame figcaption { color: var(--on-dark-muted); }
.frame-mat { background: var(--parchment); padding: clamp(12px, 2vw, 22px); }
.dark .frame-mat, .indigo .frame-mat { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--on-dark);
  transition: background .45s var(--ease), box-shadow .45s, height .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,14,30,.55), rgba(12,14,30,0)); transition: opacity .4s;
}
.site-header.is-solid { background: rgba(18, 21, 43, .96); box-shadow: 0 1px 0 var(--line-dark); --header-h: 70px; height: 70px; }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid { background: rgba(18, 21, 43, .88); backdrop-filter: blur(12px) saturate(1.2); } }
.site-header.is-solid::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--on-dark); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--on-dark); }
.brand svg { flex: 0 0 auto; width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--f-display); font-size: 1.36rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 5px; white-space: nowrap; }

.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.35vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  position: relative; display: inline-block; padding: 10px 0; color: var(--on-dark); text-decoration: none;
  font-size: .74rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; opacity: .86; transition: opacity .25s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--saffron-lt);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-list a:hover { opacity: 1; color: var(--on-dark); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="page"] { opacity: 1; color: #fff; }

.nav-toggle {
  display: none; position: relative; z-index: 120; width: 48px; height: 48px; margin-right: -8px; border: 0; background: transparent;
  color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; width: 18px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); width: 26px; }

@media (max-width: 1239px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 110; background: var(--night); overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
  }
  .site-nav::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; pointer-events: none; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; counter-reset: nav; max-width: 560px; margin-inline: auto; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); counter-increment: nav; }
  .nav-list a {
    display: flex; align-items: baseline; gap: 18px; padding: 15px 0; font-family: var(--f-display); font-size: clamp(1.55rem, 5.5vw, 2rem);
    letter-spacing: .01em; text-transform: none; font-weight: 500; opacity: 1;
  }
  .nav-list a::before { content: counter(nav, decimal-leading-zero); font-family: var(--f-body); font-size: .72rem; letter-spacing: .15em; color: var(--saffron-lt); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--saffron-lt); }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--night); }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.14rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .2em; }
  .brand svg { width: 34px; height: 34px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--saffron-lt); }
.footer-invocation {
  padding-block: clamp(64px, 8vw, 110px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end;
}
.footer-invocation .deva { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); line-height: 1.15; color: var(--saffron-lt); margin: 0 0 .3em; }
.footer-invocation p { color: var(--on-dark-muted); margin: 0; max-width: 46ch; }
.footer-invocation .translit { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--on-dark); margin-bottom: .4em; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 80px);
}
.footer-grid h2 { font-family: var(--f-body); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--saffron-lt); margin-bottom: 1.3em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .2em; }
.footer-grid li a { display: inline-block; padding: 5px 0; color: var(--on-dark-muted); font-size: .98rem; }
.footer-grid li a:hover { color: var(--on-dark); }
.footer-about p { color: var(--on-dark-muted); font-size: .98rem; }
.footer-about .footer-brand { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.15; margin-bottom: .6em; color: var(--on-dark); }
.contact-lines { display: grid; gap: 14px; font-size: .98rem; }
.contact-lines span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2px; }
.contact-lines a, .contact-lines strong { color: var(--on-dark); font-weight: 500; word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.socials li { margin: 0; }
.footer-grid .socials a {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%;
  color: var(--on-dark); transition: background .3s, border-color .3s, color .3s;
}
.footer-grid .socials a:hover { background: var(--on-dark); color: var(--night); border-color: var(--on-dark); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials-note { font-size: .82rem; color: var(--on-dark-muted); margin-top: 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding-block: 26px 30px; border-top: 1px solid var(--line-dark); font-size: .86rem; color: var(--on-dark-muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark); border-bottom: 1px solid rgba(239,232,218,.3); }
.footer-bottom a:hover { border-color: var(--saffron-lt); }
.signout {
  background: none; border: 1px solid var(--line-dark); color: var(--on-dark-muted); padding: 10px 16px; min-height: 44px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; border-radius: 1px;
}
.signout:hover { color: var(--on-dark); border-color: var(--on-dark); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-invocation { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Page hero variants
   ========================================================================== */
.hero { position: relative; background: var(--night); color: var(--on-dark); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fbf6ec; }
.hero .lede { color: var(--on-dark); opacity: .92; }
.hero .muted { color: var(--on-dark-muted); }
.hero .eyebrow { color: var(--saffron-lt); }
.hero a:not(.btn) { color: var(--saffron-lt); }
.hero a:not(.btn):hover { color: #f3c79d; }
.hero .frame figcaption { color: var(--on-dark-muted); }
.hero .crumbs a { color: var(--on-dark-muted); }
.hero .crumbs a:hover { color: var(--on-dark); }
.hero-light .eyebrow { color: var(--copper-dk); }
.hero-light a:not(.btn) { color: var(--copper-dk); }
.hero-light .frame figcaption { color: var(--ink-soft); }
.hero .subtitle { font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.35; color: var(--on-dark); margin: 0 0 1.4rem; font-style: italic; }
.crumbs { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; gap: .5em; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs [aria-current] { color: var(--saffron-lt); }

/* Home hero */
.hero-home { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 40px) 72px; }
.hero-home .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero-home h1 { font-size: clamp(2.9rem, 1.7rem + 4.2vw, 5.6rem); line-height: 1; margin-bottom: .35em; }
.hero-home h1 .l2 { display: block; font-style: italic; font-weight: 400; color: var(--saffron-lt); }
.hero-home .intro { color: var(--on-dark-muted); max-width: 48ch; margin-bottom: 2.2rem; }
.hero-home .deva-line { font-family: var(--f-deva); color: var(--gold); font-size: 1.15rem; letter-spacing: .04em; margin-bottom: 1.6rem; }
.hero-halo { position: absolute; width: 58vw; max-width: 900px; aspect-ratio: 1; right: -12vw; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(196,105,42,.20) 0%, rgba(38,44,90,.35) 40%, rgba(18,21,43,0) 70%); pointer-events: none; z-index: 0; }
.hero-home .frame img { box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--saffron-lt), transparent); z-index: 1; }

@media (max-width: 1023px) {
  .hero-home { min-height: 0; }
  .hero-home .wrap { grid-template-columns: 1fr; }
  .hero-home .frame { max-width: 720px; }
  .scroll-cue { display: none; }
}

/* Split hero (about) */
.hero-split { padding-block: calc(var(--header-h) + 56px) clamp(64px, 8vw, 120px); }
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.hero-split .portrait-col { justify-self: end; width: 100%; max-width: 470px; }
.hero-split .portrait-col img { max-height: 78vh; width: auto; margin-left: auto; }
@media (max-width: 900px) {
  .hero-split .wrap { grid-template-columns: 1fr; }
  .hero-split .portrait-col { justify-self: start; max-width: 440px; }
  .hero-split .portrait-col img { max-height: none; width: 100%; margin-left: 0; }
}

/* Typographic hero (philosophy) */
.hero-type { padding-block: calc(var(--header-h) + 60px) 0; }
.hero-type .giant {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(4.2rem, 1rem + 13vw, 13rem); line-height: .85; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(224,163,111,.55); margin: 0; user-select: none; white-space: nowrap;
}
.hero-type .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-top: -2vw; padding-bottom: clamp(64px, 8vw, 120px); }
.hero-type .hero-grid .frame { max-width: 380px; justify-self: end; }
@media (max-width: 900px) {
  .hero-type .hero-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .hero-type .hero-grid .frame { justify-self: start; max-width: 320px; }
}

/* Institutional hero (peetha) */
.hero-inst { padding-block: calc(var(--header-h) + 56px) 0; background: var(--indigo); }
.hero-inst .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.hero-inst .coords { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); text-align: right; line-height: 2; }
.hero-inst .bottom { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); padding-block: 48px clamp(64px, 8vw, 110px); align-items: start; }
.hero-inst .bottom .frame { max-width: 400px; }
@media (max-width: 900px) {
  .hero-inst .top, .hero-inst .bottom { grid-template-columns: 1fr; }
  .hero-inst .coords { text-align: left; }
  .hero-inst .bottom .frame { max-width: 360px; order: 2; }
}

/* Wide-image hero (discourses) */
.hero-wide { padding-block: calc(var(--header-h) + 48px) clamp(56px, 7vw, 100px); }
.hero-wide .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.hero-wide .head p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 900px) { .hero-wide .head { grid-template-columns: 1fr; } }

/* Compact hero (publications, lineage, contact, gallery, teachings) */
.hero-compact { padding-block: calc(var(--header-h) + 64px) clamp(56px, 7vw, 96px); }
.hero-compact .measure { max-width: 60ch; }
.hero-compact p.lede { max-width: 52ch; }
.hero-light { background: var(--parchment); color: var(--ink); }
.hero-light::after { opacity: .08; mix-blend-mode: multiply; }
.hero-light h1 { color: var(--ink); }
.hero-light .crumbs, .hero-light .crumbs a { color: var(--ink-soft); }
.hero-light .crumbs [aria-current] { color: var(--copper-dk); }
.hero-light .lede { color: var(--ink-soft); }

/* ==========================================================================
   Home sections
   ========================================================================== */
/* Introduction split */
.intro-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); }
.intro-split .statement { font-family: var(--f-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.18; font-weight: 400; margin: 0; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.intro-split .statement em { color: var(--copper); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); margin-top: 2.4rem; }
.ledger > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line-light); }
.ledger > div:nth-child(odd) { padding-right: 24px; }
.ledger dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 4px; }
.ledger dd { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; }
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-split .statement { position: static; }
}
@media (max-width: 480px) { .ledger { grid-template-columns: 1fr; } }

/* Tradition — horizontal timeline */
.tradition-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.tradition-head .frame { max-width: 360px; justify-self: end; }
.htl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.htl::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--copper); opacity: .45; }
.htl li { position: relative; padding: 42px 22px 0 0; margin: 0; }
.htl li::before { content: ""; position: absolute; top: 5px; left: 0; width: 13px; height: 13px; border: 1px solid var(--copper); background: var(--parchment); transform: rotate(45deg); }
.htl .when { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--copper-dk); margin-bottom: .4em; }
.htl h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; letter-spacing: .01em; margin-bottom: .4em; }
.htl p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
@media (max-width: 1023px) {
  .tradition-head { grid-template-columns: 1fr; }
  .tradition-head .frame { justify-self: start; }
  .htl { grid-template-columns: 1fr; padding-left: 28px; }
  .htl::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .htl li { padding: 0 0 32px 10px; }
  .htl li::before { left: -28px; top: 10px; }
}

/* Philosophy index (typographic list) */
.concepts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.concepts li { margin: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line-dark); transition: background .4s; }
.concepts li:hover { background: linear-gradient(90deg, rgba(224,163,111,.06), transparent 70%); }
.concepts .num { font-size: .78rem; letter-spacing: .2em; color: var(--saffron-lt); }
.concepts .name { display: flex; flex-direction: column; gap: 4px; }
.concepts .name .deva { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--gold); line-height: 1.3; }
.concepts .name h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin: 0; font-style: italic; font-weight: 400; }
.concepts p { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 767px) {
  .concepts li { grid-template-columns: 1fr; gap: 8px; }
  .concepts .num { order: -1; }
}

/* Peetha feature */
.peetha-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.peetha-visual { display: grid; gap: 28px; }
.compass { width: 100%; max-width: 420px; height: auto; }
.compass text { font-family: var(--f-body); }
@media (max-width: 900px) { .peetha-feature { grid-template-columns: 1fr; } }

/* Themes (staggered numbered) */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(36px, 6vw, 110px); counter-reset: theme; }
.themes article { counter-increment: theme; padding: 32px 0 36px; border-top: 1px solid var(--line-light); }
.themes article:nth-child(even) { transform: translateY(clamp(0px, 6vw, 90px)); }
.themes article::before { content: counter(theme, upper-roman); display: block; font-family: var(--f-display); font-size: 1.1rem; color: var(--copper); margin-bottom: 10px; letter-spacing: .1em; }
.themes h3 { margin-bottom: .45em; }
.themes p { color: var(--ink-soft); margin: 0; }
.themes-wrap { padding-bottom: clamp(0px, 6vw, 90px); }
@media (max-width: 767px) {
  .themes { grid-template-columns: 1fr; }
  .themes article:nth-child(even) { transform: none; }
}

/* Quote band */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 980px; }
.quote-band .deva { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); color: var(--saffron-lt); line-height: 1.2; margin: 0 0 .25em; }
.quote-band .translit { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); margin: 0 0 .5em; }
.quote-band cite { font-style: normal; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted); }
.continuity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(56px, 7vw, 100px); text-align: left; }
.continuity h3 { font-size: 1.5rem; color: var(--on-dark); }
.continuity p { color: var(--on-dark-muted); font-size: var(--fs-small); margin: 0; }
.continuity > div { padding-top: 22px; border-top: 1px solid var(--line-dark); }
@media (max-width: 900px) { .continuity { grid-template-columns: 1fr; } }

/* Explore (varied treatments) */
.explore { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.explore a { text-decoration: none; color: inherit; }
.explore .ex-feature {
  grid-column: span 7; grid-row: span 2; background: var(--night); color: var(--on-dark); padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; position: relative; overflow: hidden;
}
.explore .ex-feature .deva { font-size: clamp(3rem, 2rem + 5vw, 7rem); color: rgba(224,163,111,.22); position: absolute; right: -10px; bottom: -20px; line-height: 1; pointer-events: none; }
.ex-feature h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem); }
.ex-feature p { color: var(--on-dark-muted); max-width: 42ch; }
.ex-feature:hover .link-arrow::after { transform: translateX(6px); }
.ex-list { grid-column: span 5; border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.ex-list li { margin: 0; border-bottom: 1px solid var(--line-light); }
.ex-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 4px; transition: padding .35s var(--ease), background .35s; }
.ex-list a:hover { padding-left: 14px; background: var(--parchment); }
.ex-list strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; display: block; line-height: 1.2; }
.ex-list span.d { font-size: var(--fs-small); color: var(--ink-soft); }
.ex-list .arr { font-size: 1.3rem; color: var(--copper); }
.ex-band {
  grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 40px) clamp(24px, 3vw, 44px); border: 1px solid var(--gold); background: linear-gradient(90deg, var(--parchment), var(--ivory));
}
.ex-band h3 { margin: 0 0 .2em; }
.ex-band p { margin: 0; color: var(--ink-soft); }
@media (max-width: 1023px) {
  .explore .ex-feature, .ex-list { grid-column: span 12; }
  .explore .ex-feature { min-height: 340px; }
}
@media (max-width: 600px) { .ex-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.toc p { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-light); }
.toc li { margin: 0; }
.toc a { display: block; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--stone-dk); }
.toc a.is-active { color: var(--copper-dk); border-left-color: var(--copper); }
.bio > section { padding-bottom: clamp(56px, 7vw, 100px); margin-bottom: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line-light); }
.bio > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.bio h2 { margin-bottom: .6em; }
.bio .prose { max-width: 70ch; }
.bio-figure-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-block: 2.4rem; }
.pull { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.3; border-left: 2px solid var(--saffron); padding: 4px 0 4px 26px; margin: 2rem 0; color: var(--ink); }
@media (max-width: 1023px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--line-light); padding: 8px 14px; margin: 0; border-radius: 100px; font-size: .88rem; }
}
@media (max-width: 700px) { .bio-figure-row { grid-template-columns: 1fr; } }

.chronicle { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.chronicle::before { content: ""; position: absolute; left: 104px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--copper), var(--stone)); }
.chronicle li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 42px; margin: 0; padding-bottom: 30px; position: relative; }
.chronicle li::after { content: ""; position: absolute; left: 100px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--copper); }
.chronicle .yr { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.1; color: var(--copper-dk); text-align: right; }
.chronicle h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; margin-bottom: .3em; }
.chronicle p { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 520px) {
  .chronicle::before { left: 6px; }
  .chronicle li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .chronicle li::after { left: 2px; }
  .chronicle .yr { text-align: left; }
}

/* ==========================================================================
   Govardhana Peetha
   ========================================================================== */
.profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table caption { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-dk); padding-bottom: 16px; }
.profile-table th, .profile-table td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.profile-table th { width: 38%; font-weight: 500; font-size: var(--fs-small); color: var(--ink-soft); padding-right: 20px; }
.profile-table td { font-family: var(--f-display); font-size: 1.28rem; line-height: 1.35; }
.profile-table td .deva { font-size: 1.05rem; color: var(--copper); display: block; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }

.columns-2 { columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.columns-2 p { break-inside: avoid-column; }

.succession { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.succession li { margin: 0; padding: 30px 26px 30px 0; border-right: 1px solid var(--line-dark); }
.succession li + li { padding-left: 26px; }
.succession li:last-child { border-right: 0; background: linear-gradient(180deg, rgba(224,163,111,.08), transparent); }
.succession .yrs { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--saffron-lt); display: block; margin-bottom: 12px; }
.succession h3 { font-size: 1.5rem; margin-bottom: .4em; }
.succession p { font-size: var(--fs-small); color: var(--on-dark-muted); margin: 0; }
@media (max-width: 1023px) {
  .succession { grid-template-columns: 1fr 1fr; }
  .succession li { border-bottom: 1px solid var(--line-dark); padding: 26px 20px 26px 0; }
  .succession li + li { padding-left: 0; }
  .succession li:nth-child(even) { padding-left: 20px; border-right: 0; }
}
@media (max-width: 600px) {
  .succession { grid-template-columns: 1fr; }
  .succession li, .succession li:nth-child(even) { border-right: 0; padding: 24px 0; }
}

.org-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; }
.org-list > div { padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.org-list dt { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: .2em; }
.org-list dd { color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 700px) { .org-list { grid-template-columns: 1fr; } }

.note {
  border: 1px solid var(--gold); padding: clamp(22px, 3vw, 36px); background: rgba(185,150,88,.07); position: relative;
}
.note .label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-dk); margin-bottom: .6rem; display: block; }
.note p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.chapter { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line-light); }
.chapter:first-of-type { border-top: 0; }
.chapter .ch-mark { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.chapter .ch-num { font-family: var(--f-display); font-size: 4.2rem; line-height: 1; color: var(--stone); font-weight: 300; }
.chapter .ch-deva { font-family: var(--f-deva); font-size: 1.5rem; color: var(--copper); display: block; margin-top: 6px; }
.chapter .prose { max-width: 70ch; }
.chapter h2 { margin-bottom: .2em; }
.chapter .gloss { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--stone-dk); margin-bottom: 1.4rem; }
@media (max-width: 767px) {
  .chapter { grid-template-columns: 1fr; gap: 8px; }
  .chapter .ch-mark { position: static; display: flex; align-items: baseline; gap: 16px; }
  .chapter .ch-num { font-size: 3rem; }
}
.mahavakyas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.mahavakyas > div { padding: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px); border-right: 1px solid var(--line-dark); }
.mahavakyas > div:last-child { border-right: 0; }
.mahavakyas .deva { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--saffron-lt); display: block; line-height: 1.35; }
.mahavakyas .tr { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; display: block; margin: 6px 0 12px; }
.mahavakyas p { font-size: var(--fs-small); color: var(--on-dark-muted); margin: 0; }
.mahavakyas .src { display: block; margin-top: 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.mahavakyas .is-east { background: rgba(224,163,111,.07); }
@media (max-width: 1023px) {
  .mahavakyas { grid-template-columns: 1fr 1fr; }
  .mahavakyas > div:nth-child(2) { border-right: 0; }
  .mahavakyas > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .mahavakyas { grid-template-columns: 1fr; }
  .mahavakyas > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .mahavakyas > div:last-child { border-bottom: 0; }
}
.qualities { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.qualities li { padding: 16px 0; border-top: 1px solid var(--line-light); margin: 0; }
.qualities b { display: block; font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; font-style: italic; }
.qualities span { color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 600px) { .qualities { grid-template-columns: 1fr; } }
.inline-figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-block: 2.6rem; }
@media (max-width: 700px) { .inline-figure { grid-template-columns: 1fr; } }

/* ==========================================================================
   Teachings
   ========================================================================== */
.teach-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); }
.teach-index { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.teach-index ol { list-style: none; margin: 0; padding: 0; counter-reset: ti; }
.teach-index li { counter-increment: ti; margin: 0; }
.teach-index a { display: grid; grid-template-columns: 38px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line-light); color: var(--ink-soft); text-decoration: none; font-size: .96rem; line-height: 1.35; transition: color .3s; }
.teach-index a::before { content: counter(ti, decimal-leading-zero); font-size: .74rem; letter-spacing: .12em; color: var(--stone-dk); padding-top: 3px; }
.teach-index a:hover, .teach-index a.is-active { color: var(--copper-dk); }
.teach-index a.is-active::before { color: var(--copper); }
.theme-block { padding-bottom: clamp(56px, 7vw, 96px); }
.theme-block + .theme-block { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-light); }
.theme-block .kicker { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: .8rem; }
.theme-block .prose { max-width: 70ch; }
.theme-wide-figure { margin: 2.4rem 0; }
@media (max-width: 1023px) {
  .teach-layout { grid-template-columns: 1fr; }
  .teach-index { position: static; }
  .teach-index ol { columns: 2 220px; column-gap: 32px; }
  .teach-index li { break-inside: avoid; }
}
.theme-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 800px) { .theme-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   Discourses — archival
   ========================================================================== */
.formats { counter-reset: fmt; }
.format { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(34px, 4vw, 52px); border-top: 1px solid var(--line-light); counter-increment: fmt; }
.format:last-child { border-bottom: 1px solid var(--line-light); }
.format .cat { font-family: var(--f-display); font-size: 1rem; color: var(--stone-dk); letter-spacing: .1em; }
.format .cat::before { content: "Format " counter(fmt, upper-roman); display: block; font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); margin-bottom: 6px; }
.format .cat .deva { font-size: 1.3rem; color: var(--copper-dk); }
.format h3 { margin-bottom: .4em; }
.format aside { font-size: var(--fs-small); color: var(--ink-soft); border-left: 1px solid var(--gold); padding-left: 20px; }
.format aside b { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-dk); margin-bottom: 6px; }
@media (max-width: 1023px) { .format { grid-template-columns: 100px minmax(0, 1fr); } .format aside { grid-column: 2; } }
@media (max-width: 600px) { .format { grid-template-columns: 1fr; } .format aside { grid-column: auto; } }

.anatomy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; counter-reset: an; }
.anatomy li { counter-increment: an; margin: 0; padding: 28px 20px; background: rgba(255,255,255,.04); border-top: 2px solid var(--saffron); }
.anatomy li::before { content: counter(an); font-family: var(--f-display); font-size: 2.4rem; color: var(--saffron-lt); display: block; line-height: 1; margin-bottom: 14px; }
.anatomy h3 { font-size: 1.3rem; margin-bottom: .35em; }
.anatomy p { font-size: var(--fs-small); color: var(--on-dark-muted); margin: 0; }
@media (max-width: 1100px) { .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .anatomy { grid-template-columns: 1fr; } }

.listen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.channel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.channel-list li { margin: 0; border-bottom: 1px solid var(--line-light); }
.channel-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.channel-list a:hover { color: var(--copper-dk); }
.channel-list strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; }
.channel-list span { font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 800px) { .listen { grid-template-columns: 1fr; } }

/* ==========================================================================
   Publications — library
   ========================================================================== */
.shelf-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-light); }
.shelf-group > header h3 { margin-bottom: .3em; }
.shelf-group > header p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
.catalogue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catalogue li { margin: 0; position: relative; padding: 22px 22px 22px 34px; background: var(--ivory); border: 1px solid var(--line-light); }
.catalogue li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, var(--indigo-2), var(--indigo)); }
.catalogue li::after { content: ""; position: absolute; left: 3px; top: 14px; bottom: 14px; width: 1px; background: var(--gold); opacity: .8; }
.catalogue .deva { font-size: 1.35rem; color: var(--ink); display: block; line-height: 1.4; }
.catalogue .tr { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; display: block; color: var(--copper-dk); }
.catalogue p { margin: 8px 0 0; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.55; }
.catalogue .meta { display: block; margin-top: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-dk); }
@media (max-width: 1023px) { .shelf-group { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .catalogue { grid-template-columns: 1fr; } }

.texts-studied { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.texts-studied > div { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.texts-studied .deva { font-size: 1.6rem; color: var(--saffron-lt); display: block; }
.texts-studied h3 { font-size: 1.45rem; margin: .2em 0 .4em; }
.texts-studied p { color: var(--on-dark-muted); font-size: var(--fs-small); margin: 0; }
@media (max-width: 900px) { .texts-studied { grid-template-columns: 1fr; } }

/* ==========================================================================
   Lineage
   ========================================================================== */
.amnaya-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line-light); border: 1px solid var(--line-light); }
.amnaya { background: var(--ivory); padding: clamp(24px, 3vw, 40px); position: relative; }
.amnaya.is-east { background: var(--night); color: var(--on-dark); }
.amnaya .dir { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); }
.amnaya.is-east .dir { color: var(--saffron-lt); }
.amnaya h3 { margin: .35em 0 .15em; }
.amnaya .place { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--stone-dk); margin-bottom: 1rem; display: block; }
.amnaya.is-east .place { color: var(--on-dark-muted); }
.amnaya dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: var(--fs-small); }
.amnaya dt { color: var(--ink-soft); }
.amnaya.is-east dt { color: var(--on-dark-muted); }
.amnaya dd { font-weight: 500; }
@media (max-width: 700px) { .amnaya-grid { grid-template-columns: 1fr; } }

.dashanami { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.dashanami li { margin: 0; padding: 24px 18px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.dashanami .deva { font-size: 1.6rem; color: var(--saffron-lt); display: block; line-height: 1.3; }
.dashanami b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; display: block; }
.dashanami span.m { font-size: .8rem; color: var(--on-dark-muted); letter-spacing: .04em; }
.dashanami li.is-east { background: rgba(224,163,111,.10); }
@media (max-width: 900px) { .dashanami { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vline { list-style: none; margin: 0; padding: 0 0 0 clamp(28px, 4vw, 48px); border-left: 1px solid var(--copper); }
.vline li { position: relative; margin: 0 0 clamp(28px, 3.5vw, 44px); }
.vline li::before { content: ""; position: absolute; left: calc(-1 * clamp(28px, 4vw, 48px) - 7px); top: 8px; width: 13px; height: 13px; background: var(--ivory); border: 1px solid var(--copper); transform: rotate(45deg); }
.vline .when { font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: 4px; }
.vline h3 { margin-bottom: .3em; }
.vline p { margin: 0; color: var(--ink-soft); }
.lineage-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.lineage-split .frame { position: sticky; top: calc(var(--header-h) + 28px); max-width: 420px; }
@media (max-width: 900px) { .lineage-split { grid-template-columns: 1fr; } .lineage-split .frame { position: static; } }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-page { background: var(--night); color: var(--on-dark); }
.gallery-grid { columns: 3 300px; column-gap: clamp(16px, 2vw, 28px); }
.g-item { break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 28px); }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; overflow: hidden; }
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.g-item button:hover img { transform: scale(1.025); }
.g-item button::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(224,163,111,0); transition: border-color .4s; pointer-events: none; }
.g-item button:hover::after, .g-item button:focus-visible::after { border-color: rgba(224,163,111,.7); }
.g-item figcaption { padding-top: 12px; font-size: var(--fs-small); color: var(--on-dark-muted); display: flex; gap: 12px; }
.g-item figcaption span { color: var(--saffron-lt); font-size: .74rem; letter-spacing: .16em; padding-top: 3px; }
.g-lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 900px) { .g-lead { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: rgba(10, 11, 24, .97); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(10, 11, 24, .94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 64px clamp(16px, 6vw, 96px) 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 48px) 24px; }
.lb-bar p { margin: 0; font-size: var(--fs-small); color: var(--on-dark-muted); }
.lb-btn { width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(18,21,43,.6); color: var(--on-dark); cursor: pointer; font-size: 1.2rem; display: inline-grid; place-items: center; }
.lb-btn:hover { background: var(--on-dark); color: var(--night); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-nav { display: flex; gap: 10px; flex: 0 0 auto; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact-emblem { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 2rem; }
.contact-emblem img { width: 150px; flex: 0 0 auto; }
.contact-card { border-top: 1px solid var(--ink); }
.contact-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.contact-row dt { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-dk); }
.contact-row dd { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.25; word-break: break-word; }
.contact-row dd a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--saffron), var(--saffron)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease), color .3s; }
.contact-row dd a:hover { background-size: 100% 1px; color: var(--copper-dk); }
.contact-row dd small { display: block; font-family: var(--f-body); font-size: var(--fs-small); color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; gap: 6px; } }
.guidance { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guidance li { counter-increment: g; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line-dark); margin: 0; color: var(--on-dark-muted); }
.guidance li::before { content: counter(g, decimal-leading-zero); color: var(--saffron-lt); font-size: .8rem; letter-spacing: .12em; padding-top: 4px; }
.official-channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .official-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .official-channels { grid-template-columns: 1fr; } }
.official-channels li { margin: 0; }
.official-channels a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-light); text-decoration: none; color: var(--ink); transition: border-color .3s, background .3s; min-height: 64px; }
.official-channels a:hover { border-color: var(--copper); background: var(--ivory); color: var(--ink); }
.official-channels svg { width: 20px; height: 20px; fill: var(--copper-dk); flex: 0 0 auto; }
.official-channels span { font-size: .95rem; line-height: 1.3; }
.official-channels small { display: block; color: var(--ink-soft); font-size: .8rem; }

/* ==========================================================================
   Generic blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.next-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-light); }
.next-page a { padding: clamp(32px, 4vw, 56px) var(--gutter); text-decoration: none; color: var(--ink); display: block; transition: background .35s; }
.next-page a + a { border-left: 1px solid var(--line-light); text-align: right; }
.next-page a:hover { background: var(--parchment); }
.next-page small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.next-page strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.1; }
@media (max-width: 600px) { .next-page { grid-template-columns: 1fr; } .next-page a + a { border-left: 0; border-top: 1px solid var(--line-light); text-align: left; } }

/* ==========================================================================
   Motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .12s; }
.js .reveal-d2 { transition-delay: .24s; }
.js .reveal-d3 { transition-delay: .36s; }
.js .hero-img-in img { animation: settle 1.8s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.js .line-grow { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .line-grow.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .themes article:nth-child(even) { transform: none; }
}

@media print {
  .site-header, .site-footer, .scroll-cue, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .dark, .indigo { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   Language switcher (EN | हिन्दी)
   ========================================================================== */
.site-nav { order: 1; margin-left: auto; }
.lang-switch { order: 2; position: relative; z-index: 120; display: flex; align-items: center; gap: 6px; margin-left: clamp(16px, 1.6vw, 28px); padding-left: clamp(14px, 1.4vw, 22px); border-left: 1px solid var(--line-dark); }
.nav-toggle { order: 3; }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--on-dark-muted); text-decoration: none;
  font-size: .74rem; font-weight: 500; letter-spacing: .12em; transition: color .25s;
}
.lang-switch a[lang="hi"] { font-family: "Mukta", "Tiro Devanagari Sanskrit", var(--f-body); font-size: .9rem; letter-spacing: 0; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { color: var(--saffron-lt); }
.lang-switch span { color: var(--line-dark); font-size: .8rem; }
@media (max-width: 1239px) {
  .lang-switch { margin-left: auto; margin-right: 6px; padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   Hindi (Devanagari) typography — same design, script-appropriate metrics
   ========================================================================== */
html[lang="hi"] {
  --f-display: "Tiro Devanagari Hindi", "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --f-body: "Figtree", "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --fs-h1: clamp(2.3rem, 1.45rem + 3.1vw, 4.3rem);
  --fs-h2: clamp(1.8rem, 1.3rem + 1.75vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 1.12rem + .7vw, 1.7rem);
  --fs-lede: clamp(1.12rem, .98rem + .55vw, 1.4rem);
}
html[lang="hi"] body { line-height: 1.85; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 { line-height: 1.35; }
html[lang="hi"] .lede, html[lang="hi"] .hero .subtitle, html[lang="hi"] .pull, html[lang="hi"] .intro-split .statement { line-height: 1.6; }
/* Tracking breaks Devanagari conjunct shaping: remove it everywhere on Hindi pages. */
html[lang="hi"] body * { letter-spacing: 0 !important; }
html[lang="hi"] .hero-home h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.8rem); line-height: 1.2; }
html[lang="hi"] .hero-type .giant { line-height: 1.2; font-size: clamp(3.6rem, 1rem + 11vw, 11rem); }
html[lang="hi"] .brand-name { font-size: 1.3rem; }
html[lang="hi"] .brand-sub { font-size: .76rem; margin-top: 3px; }
/* Small uppercase labels become legible Devanagari labels. */
html[lang="hi"] .eyebrow, html[lang="hi"] .btn, html[lang="hi"] .link-arrow, html[lang="hi"] .ledger dt,
html[lang="hi"] .toc p, html[lang="hi"] .theme-block .kicker, html[lang="hi"] .note .label, html[lang="hi"] .format aside b,
html[lang="hi"] .format .cat::before, html[lang="hi"] .contact-row dt, html[lang="hi"] .footer-grid h2, html[lang="hi"] .contact-lines span,
html[lang="hi"] .crumbs, html[lang="hi"] .next-page small, html[lang="hi"] .succession .yrs, html[lang="hi"] .amnaya .dir,
html[lang="hi"] .vline .when, html[lang="hi"] .mahavakyas .src, html[lang="hi"] .catalogue .meta, html[lang="hi"] .profile-table caption,
html[lang="hi"] .signout, html[lang="hi"] .hero-inst .coords, html[lang="hi"] .quote-band cite, html[lang="hi"] .scroll-label {
  font-size: .9rem; line-height: 1.5;
}
html[lang="hi"] .btn { font-size: .98rem; font-weight: 500; }
html[lang="hi"] .eyebrow { font-weight: 500; }
html[lang="hi"] .format .cat::before { content: "प्रारूप " counter(fmt, upper-roman); }
@media (min-width: 1240px) {
  html[lang="hi"] .nav-list a { font-size: .95rem; padding-block: 8px; }
}
html[lang="hi"] .dropcap::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }
html[lang="hi"] .htl .when, html[lang="hi"] .chronicle .yr { line-height: 1.3; }
html[lang="hi"] .concepts .name h3, html[lang="hi"] .mahavakyas .tr, html[lang="hi"] .catalogue .tr, html[lang="hi"] .qualities b { font-style: normal; }
/* Mukta has no true italic; emphasis in Hindi body text uses weight instead of slanted glyphs. */
html[lang="hi"] em, html[lang="hi"] i { font-style: normal; font-weight: 500; }
html[lang="hi"] h1 em, html[lang="hi"] h2 em, html[lang="hi"] .statement em { font-weight: inherit; }
/* Keep the English header intact on 1240–1439px laptops now that the switcher shares the row. */
.brand { flex-shrink: 0; }
@media (min-width: 1240px) and (max-width: 1439px) {
  .nav-list { gap: 13px; }
  .nav-list a { letter-spacing: .12em; }
  .lang-switch { margin-left: 14px; padding-left: 12px; }
  .lang-switch a[aria-current], .lang-switch span { display: none; }
}
html[lang="hi"] body { font-variant-numeric: lining-nums; }
html[lang="hi"] .dashanami b { display: none; }
