/* ==========================================================================
   Mystified Seeker — Edition IV
   Quiet-luxury editorial system. Ivory paper, temple charcoal, indigo night,
   antique gold hairlines, a single burnt-saffron sun.
   ========================================================================== */

/* ---------- Three typefaces, three jobs (self-hosted subset WOFF2; OFL licences in /assets/fonts/licenses) ----------
   EB Garamond              — every headline and all reading text (full IAST coverage: ā ś ṣ ṛ ṃ …)
   Philosopher              — interface only: nav, labels, buttons, tabs, filters (Latin-only; no IAST)
   Tiro Devanagari Sanskrit — Devanagari script only
   Philosopher's capital I is drawn like a lowercase l ("ls there…"), so U+0049 is excluded from its
   unicode-range and falls through to a plain humanist stroke from the next font in --f-ui. */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Philosopher"; src: url("/assets/fonts/philosopher.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0020-0048, U+004A-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Philosopher"; src: url("/assets/fonts/philosopher-bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; unicode-range: U+0020-0048, U+004A-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; }
@font-face { font-family: "Tiro Devanagari Sanskrit"; src: url("/assets/fonts/tiro-devanagari-sanskrit.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Typographic system ----------------------------------------------------------------
   Rules applied across the site:
   1. Six roles only. Every piece of text is one of: Kicker, Title (display/h1/h2/h3), Item title,
      Body, Secondary, Meta. Each role has one font, size step, weight and ink tier.
   2. One lead per block: the item title is the largest, darkest element; supporting lines step down.
   3. Meta is sentence case (no tracked capitals). Tracked capitals are reserved for short kickers
      that sit above a heading. Fixed interface labels use Philosopher; meta that comes from the
      library (dates, titles, names) uses EB Garamond, because it can contain Sanskrit letters.
      Cards in a grid share rows (subgrid) so the same role sits on the same line across a row.
   4. Three ink tiers: --ink (titles, body), --ink-2 (secondary), --muted (meta). Colour is never the
      only signal; size or position also changes.
   5. Reading measure: body and notes are capped at ~68 characters per line.
   6. Proximity: lines that belong together sit 4-8px apart; separate items 24-32px apart.
   Scale (1.2 ratio from 16px): 13.5 / 16 / 17.5 / 19 / 22 / 26 / 32 … */
:root {
  --t-meta: 13.5px; --t-small: 16px; --t-secondary: 17.5px; --t-body: 19px; --t-item: 22px;
  --measure: 68ch;
  --ivory: #efe7d6;
  --ivory-2: #e8ddc4;
  --paper: #f6f1e6;
  --bone: #fbf8f1;
  --ink: #20231f;
  --ink-2: #3a3b34;
  --muted: #6f6a5c;
  --line: rgba(32, 35, 31, .16);
  --line-strong: rgba(32, 35, 31, .32);
  --gold: #b88a44;
  --gold-2: #d2ae6d;
  --gold-deep: #8e6a31;
  --saffron: #c65227;
  --indigo: #24344a;
  --night: #141c29;
  --night-2: #1b2638;
  --night-line: rgba(232, 221, 196, .16);

  --f-display: "EB Garamond", Georgia, serif;
  --f-text: "EB Garamond", Georgia, serif;
  --f-ui: "Philosopher", "Gill Sans", "Gill Sans MT", "Helvetica Neue", Arial, sans-serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1440px;
  --read: 680px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bone); }
[lang="sa"], .deva { font-family: var(--f-deva); font-weight: 400; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Paper grain — a whisper of texture over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--f-ui); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography primitives ---------- */
.eyebrow, .label {
  font-family: var(--f-ui); font-size: 11.5px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.no-rule::before { display: none; }
.display {
  font-family: var(--f-display); font-weight: 400; line-height: 1; letter-spacing: -.022em;
  font-size: clamp(46px, 7vw, 120px); margin: 0;
}
.display em, .h1 em, .h2 em, .h3 em { font-style: normal; font-weight: 400; color: var(--gold-deep); }
.on-night .display em, .on-night .h1 em, .on-night .h2 em, .on-night .h3 em { color: var(--gold-2); }
.h1 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; font-size: clamp(40px, 5.4vw, 90px); margin: 0; }
.h2 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.016em; font-size: clamp(34px, 4.1vw, 64px); margin: 0; }
.h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; font-size: clamp(24px, 2.1vw, 32px); margin: 0; }
.lede { font-family: var(--f-text); font-weight: 400; font-size: clamp(19px, 1.42vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.on-night .lede { color: rgba(239, 231, 214, .82); }
.small { font-size: 15px; color: var(--muted); }
.num { font-family: var(--f-ui); font-size: 11px; letter-spacing: .22em; color: var(--gold-deep); font-weight: 500; }
.on-night .num { color: var(--gold-2); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { position: relative; padding: clamp(96px, 13vw, 200px) 0; }
.section.tight { padding: clamp(64px, 8vw, 120px) 0; }
.on-night { background: var(--night); color: var(--ivory); }
.on-night .eyebrow, .on-night .label { color: rgba(239, 231, 214, .6); }
.on-ivory { background: var(--ivory); }
.on-bone { background: var(--bone); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-night .rule { background: var(--night-line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px var(--gutter); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .lede { justify-self: end; max-width: 30em; }
.section-meta { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.on-night .section-meta { border-color: var(--night-line); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  height: 58px; padding: 0 30px; background: var(--bg); color: var(--fg);
  font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--night); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 32px; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.gold { --bg: var(--gold); --fg: var(--night); }
.btn.gold::before { background: var(--bone); }
.on-night .btn.ghost { --fg: var(--ivory); box-shadow: inset 0 0 0 1px rgba(239, 231, 214, .35); }
.on-night .btn:not(.ghost):not(.gold) { --bg: var(--ivory); --fg: var(--night); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 8px;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link.plain::after { transform: scaleX(0); transform-origin: left; }
.link.plain:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 800; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease), color .4s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header.is-solid { background: rgba(246, 241, 230, .86); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark:not(.is-solid) { color: var(--ivory); }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: filter .4s; }
/* Monochrome ivory stamp (from the brand kit) wherever the header sits on night. */
.site-header.on-dark:not(.is-solid) .brand img, body.menu-open .brand img { filter: brightness(0) invert(.9) sepia(.25); }
.brand-word { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .24em; line-height: 1.02; text-transform: uppercase; }
.brand-word span { display: block; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.nav a { position: relative; font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .circle-link { padding: 12px 20px; box-shadow: inset 0 0 0 1px var(--gold); color: inherit; }
.nav .circle-link::after { display: none; }
.nav .circle-link:hover { background: var(--gold); color: var(--night); }
.header-tools { display: flex; align-items: center; gap: 22px; }
.icon-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.icon-btn svg { width: 18px; height: 18px; }
.kbd { font-family: var(--f-ui); font-size: 10px; letter-spacing: .08em; padding: 3px 6px; border: 1px solid currentColor; opacity: .5; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
body.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.menu-panel {
  position: fixed; inset: 0; z-index: 790; background: var(--night); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 36px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; overflow-y: auto;
}
body.menu-open .menu-panel { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-panel nav a { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-display); font-weight: 300; font-size: clamp(38px, 10vw, 64px); line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu-panel nav a small { font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; color: var(--gold-2); }
body.menu-open .menu-panel nav a { opacity: 1; transform: none; }
body.menu-open .menu-panel nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .menu-panel nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .menu-panel nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .menu-panel nav a:nth-child(5) { transition-delay: .2s; }
body.menu-open .menu-panel nav a:nth-child(6) { transition-delay: .25s; }
body.menu-open .menu-panel nav a:nth-child(7) { transition-delay: .3s; }
.menu-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--night-line); font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 231, 214, .6); }

/* ---------- Intro curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 2000; background: var(--night); display: grid; place-items: center; pointer-events: none; }
.curtain-inner { display: grid; justify-items: center; gap: 26px; color: var(--ivory); }
.curtain svg { width: 96px; height: 120px; }
.curtain svg path { fill: none; stroke: var(--gold-2); stroke-width: 1.2; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.7s var(--ease) forwards; }
.curtain svg circle { fill: var(--saffron); transform-origin: center; transform: scale(0); animation: sun .9s .9s var(--ease) forwards; }
.curtain .curtain-word { font-family: var(--f-display); font-weight: 500; font-size: 14px; letter-spacing: .5em; text-transform: uppercase; opacity: 0; animation: fade .9s 1s forwards; padding-left: .5em; }
.curtain.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
.curtain.is-gone { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sun { to { transform: scale(1); } }
@keyframes fade { to { opacity: .9; } }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
/* The clip lives on the child so the (unclipped) parent stays observable. */
.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-in > * { clip-path: inset(0 0 0 0); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.no-js .split-line > span { transform: none; }

/* ---------- Arch frame (brand motif) ---------- */
.arch { clip-path: url(#arch-clip); -webkit-clip-path: url(#arch-clip); }
.arch-outline { position: absolute; left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; overflow: visible; pointer-events: none; }
.arch-outline path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: #efe6d3; overflow: hidden; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: url("/assets/media/hero2-poster.jpg") 80% 50% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(239, 230, 211, .95), rgba(239, 230, 211, 0) 24%); }
.hero-copy { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
.hero-copy .display { margin: 28px 0 32px; max-width: 8.4em; font-size: clamp(46px, 6.3vw, 116px); }
.hero-copy .lede { max-width: 25em; margin: 0 0 44px; }
.hero-actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-foot { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.hero-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; height: 76px; }
.hero-foot .label { color: var(--ink-2); }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 64px); }
.hero-stats span { font-family: var(--f-ui); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hero-stats b { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: 0; color: var(--gold-deep); margin-right: 8px; }
.scroll-cue { display: flex; align-items: center; gap: 14px; font-family: var(--f-ui); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 36px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-deep); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--paper); }
.manifesto-text { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.7vw, 58px); line-height: 1.2; letter-spacing: -.015em; margin: 0; max-width: 17em; }
.manifesto-text .w { color: rgba(32, 35, 31, .14); transition: color .5s linear; }
.manifesto-text .w.lit { color: var(--ink); }
.manifesto-text em .w.lit { color: var(--gold-deep); }
.manifesto-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 110px); }
.manifesto-foot p { grid-column: 7 / span 5; margin: 0; font-size: 20px; color: var(--ink-2); }
.manifesto-foot .label { grid-column: 1 / span 4; }

/* ---------- Verse (quote interlude) ---------- */
.verse { position: relative; overflow: hidden; text-align: center; }
.verse::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(80vw, 820px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(198, 82, 39, .22), rgba(198, 82, 39, 0) 62%); pointer-events: none; }
.verse-sun { width: 18px; height: 18px; border-radius: 50%; background: var(--saffron); margin: 0 auto 48px; box-shadow: 0 0 60px 10px rgba(198, 82, 39, .35); }
.verse-deva { font-family: var(--f-deva); color: var(--gold-2); font-size: clamp(24px, 3vw, 42px); line-height: 1.7; margin: 0 auto; max-width: 22em; }
.verse-iast { font-family: var(--f-display); font-style: italic; font-size: clamp(17px, 1.4vw, 21px); color: rgba(239, 231, 214, .6); margin: 28px auto 0; max-width: 40em; }
.verse-en { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.1vw, 48px); line-height: 1.2; margin: clamp(48px, 5vw, 72px) auto 0; max-width: 18em; }
.verse-en em { color: var(--gold-2); }
.verse cite { display: block; margin-top: 40px; font-style: normal; }

.d-card-art { position: relative; aspect-ratio: 3 / 4.3; }
.d-card-art .arch { position: absolute; inset: 0; overflow: hidden; background: var(--ivory-2); }
.d-card-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.d-card-art .arch-outline { opacity: 0; transform: scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.d-card-meta { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.d-card-meta .deva { font-size: 17px; color: var(--gold-deep); }
/* ---------- Feature (full-bleed essay) ---------- */
.feature { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--night); }
.feature-media { position: absolute; inset: -8% 0; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 28, 41, .92) 0%, rgba(20, 28, 41, .35) 45%, rgba(20, 28, 41, .15) 100%); }
.feature .wrap { position: relative; z-index: 2; padding-bottom: clamp(64px, 9vw, 130px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gutter); align-items: end; }
.feature .h1 { margin: 26px 0 0; max-width: 11em; }
.feature p { margin: 0 0 32px; color: rgba(239, 231, 214, .82); font-size: 20px; }

/* ---------- Four aims ---------- */
.aims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.aim { position: relative; padding: 44px 32px 48px 0; border-right: 1px solid var(--line); }
.aim + .aim { padding-left: 32px; }
.aim:last-child { border-right: 0; }
.aim .deva { font-size: 46px; line-height: 1.2; color: var(--gold-deep); display: block; margin: 28px 0 14px; }
.aim h3 { font-family: var(--f-display); font-weight: 400; font-style: normal; font-size: 30px; margin: 0 0 6px; }
.aim .label { display: block; margin-bottom: 18px; }
.aim p { margin: 0; font-size: 17.5px; color: var(--ink-2); }
.aim.highlight::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--saffron); }
.aim.highlight + .aim { }

/* ---------- Journeys ---------- */
.journeys { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.journeys-art { position: sticky; top: calc(var(--header-h) + 32px); }
.journeys-art .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.journeys-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.journey-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.journey-row { border-bottom: 1px solid var(--line); }
.journey-row a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 28px 0; transition: padding .6s var(--ease); }
.journey-row h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); margin: 0; line-height: 1.15; }
.journey-row p { margin: 6px 0 0; font-size: 16.5px; color: var(--muted); }
.journey-row .go { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; transition: background .5s var(--ease), box-shadow .5s; }
.journey-row .go svg { width: 16px; }
.journey-row a:hover { padding-left: 14px; }
.journey-row a:hover .go { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------- The twelve darshanas (interactive compare, with art) ---------- */
.compare-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(44px, 5vw, 72px); }
.compare-tabs button { padding: 13px 20px; font-family: var(--f-ui); font-size: 15px; letter-spacing: .02em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, box-shadow .4s; white-space: nowrap; }
.compare-tabs button:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }
.compare-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.dx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(48px, 5vw, 76px) clamp(24px, 2.6vw, 44px); }
.dx-card { display: flex; flex-direction: column; gap: 12px; }
.dx-card .d-card-art { aspect-ratio: 5 / 6; margin-bottom: 8px; }
.dx-card:hover .d-card-art img { transform: scale(1.12); }
.dx-card:hover .arch-outline { opacity: 1; transform: none; }
.dx-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 1.9vw, 29px); line-height: 1.1; margin: 2px 0 0; }
.dx-answer { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); min-height: 4.65em; }
.dx-answer.swap { animation: swap .7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.dx-card .go { margin-top: auto; padding-top: 6px; color: var(--gold-deep); }
.dx-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }

/* Placeholder art for a school still waiting on its illustration: night arch, Devanagari in gold, the sun. */
.arch.ph { background: radial-gradient(120% 70% at 50% 34%, #22324a 0%, var(--night) 70%); display: grid; place-items: center; }
.arch.ph::before { content: ""; position: absolute; top: 27%; left: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--saffron); transform: translateX(-50%); box-shadow: 0 0 40px 6px rgba(198, 82, 39, .35); }
.arch.ph span { position: relative; top: 8%; font-family: var(--f-deva); color: var(--gold-2); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.5; text-align: center; padding: 0 12%; }
.article-art .arch.ph span { font-size: clamp(40px, 4.4vw, 68px); }
.next-card .arch.ph span { font-size: 15px; padding: 0 6%; }

/* ---------- Thinkers marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 90s linear infinite; padding-left: 48px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font-family: var(--f-display); font-style: normal; font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); display: inline-flex; align-items: center; gap: 48px; transition: color .4s; }
.marquee a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); opacity: .7; }
.marquee a:hover { color: var(--gold-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

.split-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.split-feature.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split-feature.reverse .split-media { order: 2; }
.split-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.split-media img { width: 100%; height: 118%; object-fit: cover; }
.split-copy .h2 { margin: 24px 0 28px; }
.split-copy p { color: var(--ink-2); margin: 0 0 20px; }
.on-night .split-copy p { color: rgba(239, 231, 214, .78); }
.split-copy .btn, .split-copy .link { margin-top: 20px; }

/* ---------- Anvesha ---------- */
.anvesha-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.anvesha-points { list-style: none; margin: 40px 0 44px; padding: 0; border-top: 1px solid var(--night-line); }
.anvesha-points li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--night-line); font-size: 18px; color: rgba(239, 231, 214, .82); }
.anvesha-points .num { padding-top: 5px; }
.dialogue { position: relative; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line), 0 60px 120px -40px rgba(0, 0, 0, .6); padding: clamp(28px, 3vw, 48px); }
.dialogue-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--night-line); }
.dialogue-head .deva { color: var(--gold-2); font-size: 20px; }
.dialogue .q { font-family: var(--f-display); font-style: normal; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; margin: 0 0 30px; min-height: 1.3em; }
.dialogue .q::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--gold-2); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.dialogue .q.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.dialogue .a p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: rgba(239, 231, 214, .85); opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.dialogue .a p.in { opacity: 1; transform: none; }
.dialogue .a sup { color: var(--gold-2); font-family: var(--f-ui); font-size: 10px; margin-left: 2px; }
.dialogue .src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; opacity: 0; transition: opacity .9s var(--ease); }
.dialogue .src.in { opacity: 1; }
.dialogue .src span { font-family: var(--f-ui); font-size: 11px; letter-spacing: .08em; padding: 7px 12px; box-shadow: inset 0 0 0 1px var(--night-line); color: rgba(239, 231, 214, .7); }
.dialogue-note { margin-top: 18px; font-family: var(--f-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239, 231, 214, .4); }

/* ---------- Inner Circle ---------- */
.circle-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); background: var(--night); overflow: hidden; }
.circle-hero .media { position: absolute; inset: 0; }
.circle-hero .media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.circle-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 4%, rgba(20, 28, 41, .4) 60%, rgba(20, 28, 41, .6)); }
.circle-hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(64px, 9vw, 130px); padding-top: calc(var(--header-h) + 60px); }
.circle-hero .display { margin: 30px 0 34px; max-width: 10em; }

.offerings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.offering { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 48px 48px 56px 0; border-bottom: 1px solid var(--line); }
.offering:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.offering h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 6px; line-height: 1.1; }
.offering .sub { font-family: var(--f-display); font-style: normal; color: var(--gold-deep); font-size: 20px; margin: 0 0 18px; }
.offering p { margin: 0; color: var(--ink-2); font-size: 18px; }
.offering ul { margin: 18px 0 0; padding: 0; list-style: none; }
.offering li { font-size: 16.5px; color: var(--muted); padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.offering li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 1px; background: var(--gold); }

.teaser-circle { position: relative; overflow: hidden; }
.teaser-list { list-style: none; padding: 0; margin: 36px 0 44px; }
.teaser-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--night-line); font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 28px); }
.teaser-list li:first-child { border-top: 1px solid var(--night-line); }
.teaser-list li span { font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 231, 214, .5); text-align: right; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 36px 28px 40px 0; border-top: 1px solid var(--night-line); position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--night-line); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 22px 0 12px; }
.step p { margin: 0; font-size: 17px; color: rgba(239, 231, 214, .72); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.principle h3 { font-family: var(--f-display); font-style: normal; font-weight: 400; font-size: 30px; margin: 18px 0 12px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 17.5px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 0; }
.on-night .field label, .on-night .field legend { color: rgba(239, 231, 214, .6); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 14px; font-family: var(--f-text); font-size: 21px; line-height: 1.3; outline: none; transition: border-color .4s;
}
.on-night .field input, .on-night .field textarea, .on-night .field select { border-color: rgba(239, 231, 214, .3); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: rgba(111, 106, 92, .55); font-style: normal; }
.on-night .field input::placeholder, .on-night .field textarea::placeholder { color: rgba(239, 231, 214, .32); }
.field select option { color: var(--ink); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 12px 18px; font-family: var(--f-ui); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; transition: background .4s, color .4s, box-shadow .4s; }
.on-night .chip span { box-shadow: inset 0 0 0 1px rgba(239, 231, 214, .28); color: var(--ivory); }
.chip input:checked + span { background: var(--gold); color: var(--night); box-shadow: none; }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.form-foot .small { max-width: 30em; margin: 0; }
.on-night .form-foot .small { color: rgba(239, 231, 214, .55); }
.form-status { grid-column: 1 / -1; font-family: var(--f-display); font-style: normal; font-size: 22px; color: var(--gold-deep); min-height: 1em; margin: 0; }
.on-night .form-status { color: var(--gold-2); }
.inline-form { display: flex; gap: 0; max-width: 520px; border-bottom: 1px solid rgba(239, 231, 214, .35); }
.inline-form input { flex: 1; background: transparent; border: 0; padding: 16px 0; font-family: var(--f-text); font-size: 21px; outline: none; color: inherit; min-width: 0; }
.inline-form input::placeholder { color: rgba(239, 231, 214, .4); font-style: normal; }
.inline-form button { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 0 0 0 20px; color: var(--gold-2); }
.inline-form button:hover { color: var(--ivory); }

/* ---------- Letter (newsletter) ---------- */
.letter { position: relative; min-height: 88vh; display: flex; align-items: center; background: #1c2a3d; color: var(--ivory); overflow: hidden; }
.letter .media { position: absolute; inset: 0; }
.letter .media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.letter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 30, 46, .96) 0%, rgba(20, 30, 46, .82) 38%, rgba(20, 30, 46, .1) 70%); }
.letter .wrap { position: relative; z-index: 2; }
.letter .h2 { margin: 26px 0 26px; max-width: 9em; }
.letter p { max-width: 27em; color: rgba(239, 231, 214, .8); margin: 0 0 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--ivory); padding: clamp(80px, 10vw, 150px) 0 40px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: clamp(60px, 7vw, 110px); }
.footer-top .h3 { max-width: 13em; margin: 26px 0 32px; font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); }
.footer-col h4 { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 22px; }
.footer-col a { display: block; font-family: var(--f-text); font-size: 19px; padding: 5px 0; color: rgba(239, 231, 214, .8); transition: color .3s, transform .5s var(--ease); }
.footer-col a:hover { color: var(--ivory); transform: translateX(6px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--night-line); font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 231, 214, .5); }
.footer-bottom a:hover { color: var(--ivory); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { position: relative; padding: calc(var(--header-h) + clamp(60px, 9vw, 140px)) 0 clamp(60px, 7vw, 110px); overflow: hidden; }
.page-intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.page-intro .h1 { margin: 26px 0 30px; }
.page-intro .lede { margin: 0; }
.page-intro-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.page-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner { position: relative; height: clamp(360px, 62vh, 720px); overflow: hidden; }
.page-banner img { width: 100%; height: 120%; object-fit: cover; }

.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { color: var(--gold); }
.on-night .breadcrumbs { color: rgba(239, 231, 214, .55); }

/* ---------- Library index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 56px; }
.filters .label { margin-right: 12px; }
.filter { padding: 11px 18px; font-family: var(--f-ui); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); transition: all .4s var(--ease); }
.filter:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px); }
.lib-card { display: flex; flex-direction: column; gap: 16px; transition: opacity .5s var(--ease); }
.lib-card[hidden] { display: none; }
.lib-card .d-card-art { aspect-ratio: 4 / 5; }
.lib-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 31px; line-height: 1.05; margin: 4px 0 0; }
.lib-card p { margin: 0; color: var(--ink-2); font-size: 17.5px; }
.lib-card .tags { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lib-card .tags span { font-family: var(--f-ui); font-size: var(--t-meta); letter-spacing: .01em; color: var(--muted); }
.lib-card:hover .d-card-art img { transform: scale(1.12); }
.lib-card:hover .arch-outline { opacity: 1; transform: none; }

/* ---------- Article (darshana / essay / thinker) ---------- */
.article-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(60px, 7vw, 100px); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.article-hero .deva-title { font-family: var(--f-deva); font-size: clamp(30px, 3.4vw, 50px); color: var(--gold-deep); margin: 8px 0 24px; line-height: 1.4; }
.article-hero .h1 { margin: 24px 0 10px; }
.article-hero .tagline { font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.3; color: var(--ink-2); margin: 0; max-width: 20em; }
.article-art { position: relative; aspect-ratio: 3 / 4; }
.article-art .arch { position: absolute; inset: 0; overflow: hidden; }
.article-art img { width: 100%; height: 100%; object-fit: cover; }
.article-art .arch-outline { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 6vw, 90px); }
.fact { padding: 22px 24px 24px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .label { display: block; margin-bottom: 8px; font-size: 10.5px; }
.fact span:last-child { font-family: var(--f-display); font-size: 20px; line-height: 1.3; }

.reader { display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; padding-right: 8px; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc .label { display: block; margin-bottom: 18px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: flex; gap: 12px; padding: 7px 0; font-family: var(--f-ui); font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .3s; }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--f-ui); font-size: 10px; letter-spacing: .1em; padding-top: 4px; color: rgba(111, 106, 92, .6); min-width: 18px; }
.toc li a:hover, .toc li a.active { color: var(--ink); }
.toc li a.active::before { color: var(--gold-deep); }

.mode-bar { position: sticky; top: calc(var(--header-h) - 1px); z-index: 50; background: rgba(246, 241, 230, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: transform .6s var(--ease); }
.site-header.is-hidden ~ main .mode-bar { transform: translateY(calc(1px - var(--header-h))); }
.hero-meta { font-family: var(--f-text); font-size: var(--t-secondary); line-height: 1.45; color: var(--muted); margin: 0; }
.mode-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 62px; }
.modes { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); }
.modes button { padding: 9px 18px; font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: all .35s; }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold-deep); transform-origin: left; transform: scaleX(0); }
.mode-bar .meta { font-family: var(--f-ui); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.prose { max-width: var(--read); font-size: 20.5px; line-height: 1.7; }
.prose section { padding-top: 18px; margin-bottom: clamp(56px, 6vw, 88px); scroll-margin-top: calc(var(--header-h) + 90px); }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.12; margin: 14px 0 26px; }
.prose h2 + .num { display: none; }
.prose p { margin: 0 0 1.1em; }
.prose a { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.prose a:hover { color: var(--gold-deep); }
.prose .first p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 4.4em; line-height: .8; padding: .07em .1em 0 0; color: var(--gold-deep); font-weight: 400; }
.prose .scholarly { margin-top: 22px; padding: 22px 26px; background: var(--ivory); border-left: 1px solid var(--gold); font-size: 18px; color: var(--ink-2); }
.prose .scholarly .label { display: block; margin-bottom: 10px; color: var(--gold-deep); }
.prose .refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.prose .refs a { background: none; font-family: var(--f-ui); font-size: 11px; letter-spacing: .08em; padding: 6px 11px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.prose .refs a:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }
.prose blockquote { margin: 0 0 1.2em; padding: 0; font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.3; color: var(--ink); }
.prose .analogy { position: relative; padding: 44px 0 20px; border-top: 1px solid var(--gold); }
.prose .analogy blockquote::before { content: "“"; display: block; font-size: 90px; line-height: .6; color: var(--gold); height: 40px; }
.prose ul.plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.prose ul.plain li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.prose dl { margin: 0; border-top: 1px solid var(--line); }
.prose dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prose dt { font-family: var(--f-display); font-style: normal; font-size: 21px; line-height: 1.3; }
.prose dd { margin: 0; font-size: 18px; color: var(--ink-2); }

/* Reading modes */
[data-mode="simple"] .m-detailed, [data-mode="simple"] .m-scholarly { display: none; }
[data-mode="detailed"] .m-simple, [data-mode="detailed"] .m-scholarly:not(.m-detailed) { display: none; }
[data-mode="scholarly"] .m-simple { display: none; }
.m-simple { font-family: var(--f-display); font-size: 1.16em; line-height: 1.5; font-weight: 400; }

.aside-card { position: sticky; top: calc(var(--header-h) + 90px); display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-card .label { font-size: 10.5px; }
.aside-card p { margin: 0; font-family: var(--f-display); font-style: normal; font-size: 21px; line-height: 1.35; }
.aside-card a.link { align-self: flex-start; }

.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { padding: 11px 16px; font-family: var(--f-ui); font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line); transition: all .4s; }
.chip-links a:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

.source-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.source-list > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 32px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 90px); }
.source-list > li:target { background: linear-gradient(90deg, rgba(184, 138, 68, .12), transparent 70%); }
.src-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 5px; }
.src-lang { font-family: var(--f-ui); font-size: var(--t-meta); line-height: 1.4; color: var(--muted); }
.src-main { min-width: 0; }
.source-list .src-title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: var(--t-item); line-height: 1.3; color: var(--ink); }
.source-list .src-title a { background: none; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .3s, color .3s; }
.source-list .src-title a:hover, .source-list .src-title a:focus-visible { color: var(--gold-deep); text-decoration-color: var(--gold); }
.source-list .src-title .ext { font-family: var(--f-ui); font-size: .62em; color: var(--gold-deep); margin-left: 6px; vertical-align: .15em; }
.source-list .src-inst { margin: 6px 0 0; font-family: var(--f-ui); font-size: var(--t-meta); line-height: 1.45; letter-spacing: .01em; color: var(--muted); }
.source-list .src-note { margin: 16px 0 0; max-width: var(--measure); padding-left: 14px; border-left: 2px solid rgba(184, 138, 68, .35); font-family: var(--f-text); font-size: var(--t-secondary); line-height: 1.6; color: var(--ink-2); }
.source-list .src-note-label { display: block; margin-bottom: 2px; font-family: var(--f-ui); font-size: 12.5px; letter-spacing: .02em; color: var(--gold-deep); }

/* Kind badges: sentence case, tinted by role of the source */
.badge { display: inline-block; padding: 6px 11px; border-radius: 999px; font-family: var(--f-ui); font-size: 12.5px; line-height: 1; letter-spacing: .02em; color: var(--ink-2); background: rgba(32, 35, 31, .07); white-space: nowrap; }
.badge-original-text { color: #6a4a19; background: rgba(184, 138, 68, .2); }
.badge-translation { color: #24344a; background: rgba(36, 52, 74, .11); }
.badge-commentary { color: #8a3417; background: rgba(198, 82, 39, .13); }
.badge-university-guide { color: #3a4a32; background: rgba(90, 110, 70, .13); }

.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.next-card { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.next-card .thumb { aspect-ratio: 3 / 4; position: relative; }
.next-card .thumb .arch { position: absolute; inset: 0; overflow: hidden; }
.next-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-card:hover .thumb img { transform: scale(1.1); }
.next-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 25px; margin: 6px 0 6px; line-height: 1.1; }
.next-card p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Thinkers ---------- */
.t-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.t-card { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; padding: 30px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .6s var(--ease), color .6s; }
.t-card[hidden] { display: none; }
.t-card .initial { font-family: var(--f-display); font-style: normal; font-weight: 400; font-size: 72px; line-height: .8; color: var(--gold); opacity: .8; margin-bottom: 18px; transition: transform 1s var(--ease), color .6s; }
.t-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; }
.t-card .period { font-family: var(--f-text); font-size: 15.5px; line-height: 1.4; color: var(--muted); }
.t-card p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.t-card .school { align-self: end; padding-top: 18px; font-family: var(--f-ui); font-size: var(--t-meta); letter-spacing: .01em; color: var(--gold-deep); }
.t-card:hover { background: var(--night); color: var(--ivory); }
.t-card:hover p, .t-card:hover .period { color: rgba(239, 231, 214, .7); }
.t-card:hover .initial { transform: translateY(-6px); color: var(--gold-2); }
.t-card:hover .school { color: var(--gold-2); }

.monogram { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; }
.monogram .arch { position: absolute; inset: 0; background: var(--night); }
.monogram span { position: relative; font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: clamp(120px, 14vw, 220px); color: var(--gold-2); line-height: 1; }
.monogram::after { content: ""; position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--saffron); top: 22%; right: 26%; }

.question-card { padding: clamp(36px, 4vw, 56px); background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.question-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 82, 39, .5), transparent 65%); }
.question-card p { font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.3; margin: 18px 0 0; position: relative; }

/* ---------- Glossary ---------- */
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 48px; }
.alpha a { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--f-ui); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.alpha a:hover { background: var(--ink); color: var(--paper); }
.gloss-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.gloss-group > span { font-family: var(--f-display); font-style: normal; font-size: 64px; line-height: .9; color: var(--gold); }
.gloss-group dl { margin: 0; }
.gloss-group dl > div { display: grid; grid-template-columns: 220px minmax(0, 1fr) 150px; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.gloss-group dd.s { text-align: right; }
.gloss-group dl > div:last-child { border-bottom: 0; }
.gloss-group dt { font-family: var(--f-display); font-size: 22px; }
.gloss-group dd { margin: 0; font-size: 17px; color: var(--ink-2); }
.gloss-group dd.s a { font-family: var(--f-ui); font-size: var(--t-meta); letter-spacing: .01em; color: var(--gold-deep); white-space: nowrap; }
.gloss-search { width: 100%; max-width: 520px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 12px 0; font-family: var(--f-text); font-size: 22px; outline: none; margin-bottom: 36px; }
.gloss-search:focus { border-color: var(--gold); }

/* ---------- Journal ---------- */
.j-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(60px, 7vw, 110px); border-bottom: 1px solid var(--line); margin-bottom: clamp(60px, 7vw, 110px); }
.j-lead .media { aspect-ratio: 16 / 11; overflow: hidden; }
.j-lead .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.j-lead:hover .media img { transform: scale(1.05); }
.j-lead .h2 { margin: 20px 0 22px; }
.j-lead p { color: var(--ink-2); margin: 0 0 28px; }
.j-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px); }
.j-card .media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; }
.j-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.j-card:hover .media img { transform: scale(1.06); }
.j-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 27px; line-height: 1.12; margin: 12px 0 12px; }
.j-card p { margin: 0; color: var(--ink-2); font-size: 17px; }

.essay-head { padding: calc(var(--header-h) + clamp(60px, 8vw, 120px)) 0 clamp(48px, 6vw, 80px); text-align: center; }
.essay-head .h1 { max-width: 14em; margin: 26px auto 26px; }
.essay-head .tagline { font-family: var(--f-display); font-style: normal; font-size: clamp(22px, 2vw, 30px); color: var(--ink-2); max-width: 26em; margin: 0 auto; }
.essay-body { max-width: var(--read); margin: 0 auto; }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 1500; background: rgba(20, 28, 41, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search.open { display: flex; animation: fade-in .4s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.search-box { width: 100%; max-width: 760px; background: var(--paper); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); max-height: 72vh; display: flex; flex-direction: column; }
.search-box header { display: flex; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.search-box header svg { width: 20px; color: var(--gold-deep); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--f-text); font-size: 24px; outline: none; }
.search-results { overflow-y: auto; padding: 10px 0; }
.search-results a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 14px 28px; }
.search-results a:hover, .search-results a.sel { background: var(--ivory); }
.search-results strong { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.search-results em { font-style: normal; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); align-self: center; }
.search-results span { grid-column: 1 / -1; font-size: 15.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 28px; font-family: var(--f-display); font-style: normal; font-size: 20px; color: var(--muted); margin: 0; }
.search-hint { padding: 12px 28px; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 20px; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 1900; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--saffron); transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, opacity .3s; display: grid; place-items: center; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(32, 35, 31, .86); }
.cursor span { font-family: var(--f-ui); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); opacity: 0; transition: opacity .3s; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-l { margin-top: clamp(48px, 6vw, 96px); }
.stack > * + * { margin-top: 20px; }
.notice { font-family: var(--f-ui); font-size: 12px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 14px 18px; }
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .icon-btn .kbd, .icon-btn .t { display: none; }
  .reader { grid-template-columns: minmax(0, 1fr); }
  .toc, .reader > aside { display: none; }
  .prose { margin: 0 auto; }
  .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 18px; }
  .section-head, .page-intro-grid, .article-hero-grid, .split-feature, .split-feature.reverse, .journeys, .anvesha-grid, .j-lead, .feature .wrap { grid-template-columns: minmax(0, 1fr); }
  .split-feature.reverse .split-media { order: 0; }
  .section-head .lede { justify-self: start; }
  .hero-media { width: 100%; bottom: auto; height: 60svh; background-position: 86% 50%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 38%); mask-image: linear-gradient(0deg, transparent 0, #000 38%); }
  .hero-media video, .hero-media img { object-position: 86% 50%; }
  .hero-media::after { display: none; }
  .hero-copy { justify-content: flex-end; padding-top: 44svh; padding-bottom: 36px; }
  .hero-copy .display { margin: 20px 0 24px; }
  .hero-copy .lede { margin-bottom: 32px; }
  .hero-stats { display: none; }
  .manifesto-foot p, .manifesto-foot .label { grid-column: 1 / -1; }
  .aims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aim:nth-child(2) { border-right: 0; }
  .aim:nth-child(3) { padding-left: 0; }
  .aim:nth-child(n+3) { border-top: 1px solid var(--line); }
  .journeys-art { position: relative; top: 0; }
  .journeys-art .frame { aspect-ratio: 16 / 10; }
  .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .compare-tabs::-webkit-scrollbar { display: none; }
  .compare-tabs button { flex: 0 0 auto; }
  .offerings { grid-template-columns: minmax(0, 1fr); }
  .offering, .offering:nth-child(even) { padding: 40px 0; border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .lib-grid, .j-grid, .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .article-art { max-width: 420px; }
  .letter::after { background: linear-gradient(0deg, rgba(20, 30, 46, .97) 30%, rgba(20, 30, 46, .55) 70%, rgba(20, 30, 46, .3)); }
  .letter { align-items: flex-end; padding-bottom: 72px; }
  .gloss-group dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gloss-group dd.s { text-align: left; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .brand-word { font-size: 14px; letter-spacing: .2em; }
  .brand img { width: 32px; height: 32px; }
  .icon-btn { display: none; }
  .aims, .lib-grid, .j-grid, .next-grid, .t-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .aim, .aim + .aim { padding: 36px 0; border-right: 0; border-top: 1px solid var(--line); }
  .step, .step + .step { padding: 32px 0; border-left: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gloss-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prose dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mode-bar .meta { display: none; }
  .journey-row a { grid-template-columns: 36px 1fr; }
  .journey-row .go { display: none; }
  .hero-foot .label { display: none; }
  .hero-media { height: 54svh; }
  .hero-copy { padding-top: 46svh; }
  .hero-copy > .eyebrow { display: none; }
  .hero-copy .display { margin-top: 0; }
  .hero-copy .lede { font-size: 19px; line-height: 1.5; }
  .hero-actions { gap: 24px; }
  .dx-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .dx-grid::-webkit-scrollbar { display: none; }
  .dx-card { scroll-snap-align: start; }
  .btn { height: 54px; padding: 0 24px; }
  .source-list > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .src-side { flex-direction: row; align-items: center; flex-wrap: wrap; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal="mask"] > *, .split-line > span, .dx-answer { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .manifesto-text .w { color: var(--ink); }
  .curtain { display: none; }
}
@media print {
  .site-header, .site-footer, .mode-bar, .toc, .cursor, .search, .menu-panel { display: none !important; }
  body::after { display: none; }
  [data-mode] .m-simple, [data-mode] .m-detailed, [data-mode] .m-scholarly { display: block !important; }
}

/* ==========================================================================
   Anvesha mascot — a flame spirit above a clay diya
   ========================================================================== */
.mascot { display: block; overflow: visible; --lx: 0px; --ly: 0px; filter: drop-shadow(0 6px 14px rgba(198, 82, 39, .35)); }
.mascot .m-float { animation: m-bob 3.4s ease-in-out infinite; transform-box: view-box; }
.mascot .m-flame { transform-origin: 60px 50px; animation: m-flicker 1.7s ease-in-out infinite; }
.mascot .m-face { transition: transform .5s var(--ease); transform-origin: 60px 82px; }
.mascot .m-look { transform: translate(var(--lx), var(--ly)); transition: transform .25s ease-out; }
.mascot .m-eyes { transition: transform .4s var(--ease), opacity .2s; }
.mascot .m-eye { transform-box: fill-box; transform-origin: center; transition: transform .12s ease; }
.mascot .m-eye ellipse { fill: #2a1206; }
.mascot .m-glint { fill: #fff; }
.mascot .m-alt, .mascot .m-mouth, .mascot .m-brow, .mascot .m-diya-rim, .mascot .m-zz path { fill: none; stroke: #2a1206; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mascot .m-mouth-grin, .mascot .m-mouth-o { fill: #4a170a; stroke: #2a1206; stroke-width: 1.6; }
.mascot .m-diya-rim { stroke: rgba(255, 210, 160, .45); stroke-width: 1.2; }
.mascot .m-cheek { fill: #ff8a74; opacity: .38; }
.mascot .m-alt, .mascot .m-mouth, .mascot .m-brows, .mascot .m-dots, .mascot .m-zz { opacity: 0; transition: opacity .25s; }
.mascot .m-mouth-smile { opacity: 1; }
.mascot .m-dots circle { fill: rgba(255, 228, 190, .9); }
.mascot .m-zz path { stroke: rgba(255, 228, 190, .9); stroke-width: 2; }
.mascot.blink .m-eye { transform: scaleY(.08); }
@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes m-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.96, 1.06) skewX(-3deg); } 50% { transform: scale(1.03, .95) skewX(2deg); } 75% { transform: scale(.98, 1.04) skewX(-1deg); } }

.mascot.mood-happy .m-eyes { opacity: 0; }
.mascot.mood-happy .m-eyes-happy, .mascot.mood-happy .m-mouth-grin { opacity: 1; }
.mascot.mood-happy .m-mouth-smile { opacity: 0; }
.mascot.mood-happy .m-cheek { opacity: .6; }
.mascot.mood-curious .m-face { transform: rotate(-8deg); }
.mascot.mood-curious .m-brows, .mascot.mood-curious .m-mouth-o { opacity: 1; }
.mascot.mood-curious .m-brow-l { transform: translateY(-2px); }
.mascot.mood-curious .m-mouth-smile { opacity: 0; }
.mascot.mood-thinking .m-eyes { transform: translate(3px, -3.5px); }
.mascot.mood-thinking .m-look { transform: none; }
.mascot.mood-thinking .m-mouth-flat, .mascot.mood-thinking .m-dots { opacity: 1; }
.mascot.mood-thinking .m-mouth-smile { opacity: 0; }
.mascot.mood-thinking .m-dots circle { animation: m-dot 1.4s ease-in-out infinite; }
.mascot.mood-thinking .m-dots circle:nth-child(2) { animation-delay: .2s; }
.mascot.mood-thinking .m-dots circle:nth-child(3) { animation-delay: .4s; }
.mascot.mood-thinking .m-flame { animation-duration: .8s; }
@keyframes m-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.mascot.mood-talking .m-mouth-smile { animation: m-talk-a .34s steps(1) infinite; }
.mascot.mood-talking .m-mouth-o { animation: m-talk-b .34s steps(1) infinite; }
@keyframes m-talk-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes m-talk-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.mascot.mood-concerned .m-brows, .mascot.mood-concerned .m-mouth-frown { opacity: 1; }
.mascot.mood-concerned .m-mouth-smile { opacity: 0; }
.mascot.mood-concerned .m-brow-l { transform: rotate(12deg); transform-box: fill-box; transform-origin: right center; }
.mascot.mood-concerned .m-brow-r { transform: rotate(-12deg); transform-box: fill-box; transform-origin: left center; }
.mascot.mood-concerned .m-face { transform: translateY(1.5px); }
.mascot.mood-surprised .m-brows, .mascot.mood-surprised .m-mouth-o { opacity: 1; }
.mascot.mood-surprised .m-brows { transform: translateY(-3px); }
.mascot.mood-surprised .m-eye { transform: scale(1.18); }
.mascot.mood-surprised .m-mouth-smile { opacity: 0; }
.mascot.mood-sleepy .m-eyes { opacity: 0; }
.mascot.mood-sleepy .m-eyes-sleepy, .mascot.mood-sleepy .m-zz { opacity: 1; }
.mascot.mood-sleepy .m-zz { animation: m-zz 2.6s ease-in-out infinite; }
.mascot.mood-sleepy .m-flame { animation-duration: 3.4s; opacity: .8; }
.mascot.mood-sleepy .m-float { animation-duration: 5s; }
@keyframes m-zz { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(4px, -6px); opacity: 0; } }
.mascot.hop .m-float { animation: m-hop .6s var(--ease); }
@keyframes m-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.04, .96); } 70% { transform: translateY(2px) scale(.98, 1.03); } }

/* Floating companion (every page except Anvesha's own) */
.anv-companion { position: fixed; right: 22px; bottom: 18px; z-index: 760; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.anv-companion.is-in { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .anv-companion, body.is-locked .anv-companion, .search.open ~ .anv-companion { opacity: 0; pointer-events: none; }
.anv-companion-btn { width: 78px; height: 98px; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 40px; }
.anv-companion-btn .mascot { width: 100%; height: 100%; transition: transform .4s var(--ease); }
.anv-companion-btn:hover .mascot, .anv-companion-btn:focus-visible .mascot { transform: scale(1.06) rotate(-3deg); }
.anv-companion-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.anv-bubble { position: relative; max-width: 240px; margin: 0; padding: 12px 16px; background: var(--night); color: var(--ivory);
  font-family: var(--f-text); font-size: 15.5px; line-height: 1.45; border-radius: 14px 14px 4px 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(210, 174, 109, .3);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity .4s var(--ease), transform .45s var(--ease); pointer-events: none; }
.anv-companion.greet .anv-bubble { opacity: 1; transform: none; }
@media (hover: hover) { .anv-companion:not(.is-open):hover .anv-bubble { opacity: 1; transform: none; } }
.anv-companion.is-open .anv-bubble { display: none; }
.anv-mini { width: min(360px, calc(100vw - 32px)); padding: 18px 18px 16px; background: var(--night); color: var(--ivory); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(210, 174, 109, .35); animation: anv-mini-in .4s var(--ease); }
@keyframes anv-mini-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.anv-mini-head { display: flex; justify-content: space-between; align-items: center; }
.anv-mini-title { margin: 0; font-family: var(--f-display); font-size: 22px; }
.anv-mini-title span { margin-left: 10px; font-family: var(--f-deva); font-size: 15px; color: var(--gold-2); }
.anv-mini-close { width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: rgba(239, 231, 214, .7); }
.anv-mini-close:hover { background: rgba(239, 231, 214, .08); color: var(--ivory); }
.anv-mini-intro { margin: 8px 0 14px; font-size: 16px; line-height: 1.5; color: rgba(239, 231, 214, .78); }
.anv-mini-form { display: flex; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 999px; background: rgba(239, 231, 214, .07); box-shadow: inset 0 0 0 1px rgba(210, 174, 109, .35); }
.anv-mini-form:focus-within { box-shadow: inset 0 0 0 1px var(--gold-2); }
.anv-mini-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ivory); font-family: var(--f-text); font-size: 16px; }
.anv-mini-form input::placeholder { color: rgba(239, 231, 214, .45); }
.anv-mini-form button { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--night); background: radial-gradient(circle at 38% 34%, #ffd9a0, #e09a55 45%, #c65227); }
.anv-mini-form button svg { width: 18px; height: 18px; }
.anv-mini-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0 10px; }
.anv-mini-chips button { font-family: var(--f-text); font-size: 15px; line-height: 1.35; text-align: left; color: rgba(239, 231, 214, .88); padding: 7px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--night-line); }
.anv-mini-chips button:hover, .anv-mini-chips button:focus-visible { box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--ivory); }
.anv-mini-more { font-family: var(--f-ui); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.anv-mini-more:hover { color: var(--ivory); }
.anv-mini-fine { margin: 10px 0 0; font-size: 12.5px; color: rgba(239, 231, 214, .45); }
@media (max-width: 600px) {
  .anv-companion { right: 12px; bottom: 10px; }
  .anv-companion-btn { width: 62px; height: 78px; }
  .anv-bubble { max-width: 210px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot .m-float, .mascot .m-flame, .mascot .m-dots circle, .mascot .m-zz, .mascot.mood-talking .m-mouth-smile, .mascot.mood-talking .m-mouth-o { animation: none !important; }
}
@media print { .anv-companion { display: none !important; } }
