/* ==========================================================================
   The Center for Compassion & Wisdom — design system
   Palette drawn from Gelug robes (maroon + saffron), gold leaf and
   thangka mineral pigments (lapis, malachite).
   ========================================================================== */

:root {
  /* colour */
  --night: #22050A;          /* deepest maroon, near-black */
  --maroon-800: #3D0811;
  --maroon: #6A0E19;         /* robe maroon */
  --brand: #8E000C;          /* logo maroon */
  --saffron: #E9A23B;        /* Gelug yellow */
  --saffron-deep: #C97F16;
  --gold: #D9AE5F;
  --gold-hi: #F6DFA4;
  --butter: #F6EBD2;         /* butter-lamp light, page background */
  --butter-2: #EFDFBE;
  --khata: #FFFBF2;          /* offering scarf white */
  --ink: #2A1712;
  --ink-soft: #5B4636;
  --lapis: #1E3A6E;
  --malachite: #2F6B5A;
  --line: rgba(42, 23, 18, .14);
  --line-light: rgba(246, 223, 164, .22);

  --gold-leaf: linear-gradient(100deg, #B9832E 0%, #F6DFA4 38%, #D9AE5F 55%, #9C6A1E 100%);

  /* type */
  --f-display: "Alegreya", "Iowan Old Style", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --f-tib: "Jomolhari", "Noto Serif Tibetan", "Kailasa", serif;
  --f-tib-body: "Noto Serif Tibetan", "Jomolhari", "Kailasa", serif;

  /* modular scale 1.25 */
  --t-xs: .8rem;
  --t-sm: .9rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  --t-xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  --t-hero: clamp(2.7rem, 1.4rem + 5.4vw, 6.2rem);

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-arch: 999px 999px 18px 18px; /* temple-window arch */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--butter) url("../assets/img/paper.webp") repeat;
  background-size: 520px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
svg:has(> use) { aspect-ratio: 1 / 1; flex: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--saffron); color: var(--night); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
a:not([class]):focus-visible, .footer a:focus-visible, .toc a:focus-visible, .crumbs a:focus-visible { border-radius: 3px; }
.on-dark :focus-visible, .footer :focus-visible, .hero :focus-visible, .phero :focus-visible, .drawer :focus-visible { outline-color: var(--gold-hi); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--saffron); color: var(--night); padding: .6rem 1rem; border-radius: var(--radius-s); font-weight: 700; transition: top .2s; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* ---------- language-specific typography ---------- */
.tib { font-family: var(--f-tib); line-height: 1.9; letter-spacing: 0; }
html[lang="bo"] body { font-family: var(--f-tib-body); font-size: 1.12rem; line-height: 2; font-synthesis: none; }
html[lang="bo"] :is(em, i, cite, blockquote, figcaption, .teacher__caption, .offer__means, .footer__verse p, .pull, .wisdom__text) { font-style: normal; }
html[lang="bo"] h1, html[lang="bo"] h2, html[lang="bo"] h3, html[lang="bo"] h4 { font-family: var(--f-tib); line-height: 1.55; letter-spacing: 0; }
html[lang="bo"] .hero__title { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); line-height: 1.45; }
html[lang="bo"] .hero__title .line { padding-bottom: .12em; }
html[lang="bo"] .btn, html[lang="bo"] .nav__link, html[lang="bo"] .lang__btn { font-family: var(--f-tib-body); }
html[lang="mn"] .hero__title { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.4rem); }

/* ---------- ornaments ---------- */
.knot { width: 1.1em; height: 1.1em; flex: none; color: var(--saffron); }
.rule-ornament { display: flex; align-items: center; gap: 1rem; color: var(--gold); }
.rule-ornament::before, .rule-ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__kicker { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-style: italic; font-size: var(--t-md); color: var(--brand); margin-bottom: .8rem; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { font-size: var(--t-md); color: var(--ink-soft); margin-top: 1.1rem; max-width: 38rem; }
.on-dark .section-head__kicker { color: var(--saffron); }
.on-dark .section-head p { color: rgba(255, 251, 242, .72); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--saffron); --fg: var(--night);
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.55rem; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  -webkit-tap-highlight-color: transparent; min-height: 44px; line-height: 1.25; text-align: center;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform .35s var(--ease-out), translate .6s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
}
.btn::after { /* gold sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(201, 127, 22, .7); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .12s; }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .45s var(--ease-out); }
.btn:hover svg:has(use[href="#i-arrow"]) { transform: translateX(3px); }
.btn:hover svg:has(use[href="#i-refresh"]) { transform: rotate(90deg); }
.btn--ghost { --bg: transparent; --fg: var(--khata); box-shadow: inset 0 0 0 1px rgba(255, 251, 242, .55); }
.btn--ghost:hover { --bg: rgba(255, 251, 242, .1); box-shadow: inset 0 0 0 1px var(--khata); }
.btn--maroon { --bg: var(--maroon); --fg: var(--khata); }
.btn--maroon:hover { box-shadow: 0 10px 30px -10px rgba(106, 14, 25, .7); }
.btn--line { --bg: transparent; --fg: var(--maroon); box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { --bg: var(--maroon); --fg: var(--khata); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-arrow > span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 1px; }
.link-arrow:hover > span, a:hover .link-arrow > span, .link-arrow:focus-visible > span { background-size: 100% 1px; }
.link-arrow svg { width: 1.05em; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--saffron); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--khata);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .5s var(--ease-out);
}
.header.is-solid { background: rgba(246, 235, 210, .92); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 52px; height: 42px; flex: none; position: relative; }
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.brand__mark .on-solid { opacity: 0; }
.header.is-solid .brand__mark .on-solid { opacity: 1; }
.header.is-solid .brand__mark .on-hero { opacity: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; white-space: nowrap; }
.brand__sub { font-size: .8rem; opacity: .78; white-space: nowrap; }
html[lang="bo"] .brand__text { line-height: 1.45; gap: .05rem; }
html[lang="bo"] .brand__name { font-family: var(--f-tib); font-weight: 400; font-size: 1.12rem; line-height: 1.5; }
html[lang="bo"] .brand__sub { line-height: 1.5; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px;
  background: none; border: 0; text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: background .25s;
}
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__item:hover > .nav__link { background: rgba(255, 251, 242, .12); }
.header.is-solid .nav__link:hover, .header.is-solid .nav__item.is-open > .nav__link, .header.is-solid .nav__item:hover > .nav__link { background: rgba(106, 14, 25, .07); }
.nav__link { position: relative; min-height: 44px; }
.nav__item:has(.dropdown [aria-current="page"]) > .nav__link::after, .nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--saffron); }
.nav__link .chev { width: .8em; transition: transform .3s; }
.nav__item:hover .chev, .nav__item.is-open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + .4rem); left: 50%; min-width: 300px;
  translate: -50% 8px; opacity: 0; visibility: hidden;
  background: var(--khata); color: var(--ink); border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -20px rgba(34, 5, 10, .45), 0 0 0 1px var(--line);
  padding: .6rem; transition: opacity .3s var(--ease), translate .4s var(--ease-out), visibility 0s .3s;
}
.dropdown::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.nav__item:hover .dropdown, .nav__item.is-open .dropdown { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity .3s var(--ease), translate .4s var(--ease-out), visibility 0s; }
.dropdown a { opacity: 0; translate: 0 4px; transition: opacity .35s var(--ease), translate .5s var(--ease-out), background-color .25s; }
.nav__item:hover .dropdown a, .nav__item.is-open .dropdown a { opacity: 1; translate: 0 0; }
.dropdown a:nth-child(2) { transition-delay: .03s; } .dropdown a:nth-child(3) { transition-delay: .06s; } .dropdown a:nth-child(4) { transition-delay: .09s; }
.dropdown a:hover, .dropdown a:focus-visible { transition-delay: 0s; }
.dropdown a { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--butter); }
.dropdown a:focus-visible { outline-offset: -2px; }
.dropdown a[aria-current="page"] { background: var(--butter); }
.dropdown a[aria-current="page"] strong { color: var(--brand); }
.dropdown .ico { transition: background-color .3s, color .3s; }
.dropdown a:hover .ico { background: var(--saffron); color: var(--night); }
.dropdown .ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--butter-2); color: var(--brand); }
.dropdown .ico svg { width: 18px; }
.dropdown strong { font-weight: 700; font-size: .97rem; }
.dropdown small { color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }

.lang { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 251, 242, .35); }
.header.is-solid .lang { box-shadow: inset 0 0 0 1px var(--line); }
.lang__btn { border: 0; background: none; padding: .35rem .65rem; border-radius: 999px; font-size: .86rem; font-weight: 700; min-width: 2.4rem; min-height: 32px; line-height: 1.3; transition: background-color .3s, color .3s; }
.lang__btn:hover:not([aria-pressed="true"]) { background: rgba(255, 251, 242, .14); }
.header.is-solid .lang__btn:hover:not([aria-pressed="true"]) { background: rgba(106, 14, 25, .08); }
.lang__btn:focus-visible { outline-offset: 1px; }
.lang__btn[aria-pressed="true"] { background: var(--saffron); color: var(--night); }
.lang__btn .tib { line-height: 1.3; font-size: .95rem; }
.header__donate { padding: .7rem 1.2rem; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 251, 242, .12); position: relative; flex: none; transition: background-color .3s; -webkit-tap-highlight-color: transparent; }
.burger:active { background: rgba(255, 251, 242, .22); }
.header.is-solid .burger { background: rgba(106, 14, 25, .08); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--night) url("../assets/img/brocade.webp"); background-size: 840px;
  color: var(--khata); padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 3rem) 2.6rem); visibility: hidden;
  transition: clip-path .75s var(--ease-out), visibility 0s .75s;
}
.menu-open .drawer { clip-path: circle(150% at calc(100% - 3rem) 2.6rem); visibility: visible; transition: clip-path .75s var(--ease-out), visibility 0s; }
.menu-open .header { color: var(--khata); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .brand__mark .on-hero { opacity: 1; } .menu-open .header .brand__mark .on-solid { opacity: 0; }
.drawer__group { border-bottom: 1px solid var(--line-light); }
.drawer__group, .drawer__foot { opacity: 0; translate: 0 14px; transition: opacity .3s, translate .3s; }
.menu-open .drawer__group, .menu-open .drawer__foot { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease), translate .8s var(--ease-out); }
.menu-open .drawer__group:nth-child(1) { transition-delay: .12s; } .menu-open .drawer__group:nth-child(2) { transition-delay: .17s; }
.menu-open .drawer__group:nth-child(3) { transition-delay: .22s; } .menu-open .drawer__group:nth-child(4) { transition-delay: .27s; }
.menu-open .drawer__group:nth-child(5) { transition-delay: .32s; } .menu-open .drawer__foot { transition-delay: .38s; }
.drawer__group > a, .drawer__group > button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.05rem 0; background: none; border: 0; text-align: left; font-family: var(--f-display); font-size: 1.6rem; text-decoration: none; }
html[lang="bo"] .drawer__group > a, html[lang="bo"] .drawer__group > button { font-family: var(--f-tib); font-size: 1.35rem; }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.drawer__sub > div { overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.drawer__group.is-open .drawer__sub > div { visibility: visible; transition: visibility 0s; }
.drawer__group.is-open .drawer__sub { grid-template-rows: 1fr; }
.drawer__sub a { display: block; padding: .7rem 0 .7rem 1rem; text-decoration: none; color: rgba(255, 251, 242, .8); border-left: 1px solid rgba(233, 162, 59, .5); transition: color .25s, border-color .25s; }
.drawer__sub a:hover, .drawer__sub a[aria-current="page"] { color: var(--gold-hi); border-left-color: var(--saffron); }
.drawer__sub a:last-child { margin-bottom: 1rem; }
.drawer__group .chev { width: 1rem; transition: transform .3s; }
.drawer__group.is-open .chev { transform: rotate(180deg); }
.drawer__foot { margin-top: 2rem; display: grid; gap: 1.25rem; }
.drawer__foot .btn { justify-content: center; }
.drawer .lang__btn { min-height: 40px; min-width: 3rem; }
.drawer .lang { justify-self: start; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--khata); overflow: hidden; background: var(--night); isolation: isolate; }
.hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 70% 40%; }
.hero::before { /* legibility veil, maroon at foot */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(34, 5, 10, .55) 0%, rgba(34, 5, 10, 0) 26%),
    linear-gradient(90deg, rgba(34, 5, 10, .72) 0%, rgba(34, 5, 10, .45) 38%, rgba(34, 5, 10, 0) 66%),
    linear-gradient(0deg, rgba(34, 5, 10, .95) 0%, rgba(34, 5, 10, .45) 30%, rgba(34, 5, 10, 0) 55%);
}
.hero__inner { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 7vh, 5.5rem); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem 3rem; align-items: end; }
.hero__mantra { font-family: var(--f-tib); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); color: var(--gold-hi); margin-bottom: 1rem; display: flex; align-items: center; gap: .9rem; line-height: 1.6; text-shadow: 0 1px 14px rgba(34, 5, 10, .85), 0 0 2px rgba(34, 5, 10, .6); }
.hero__title, .hero__lede { text-shadow: 0 1px 24px rgba(34, 5, 10, .35); }
.hero__mantra::after { content: ""; width: 4rem; height: 1px; background: var(--gold); opacity: .6; }
.hero__title { font-size: var(--t-hero); font-weight: 500; line-height: .98; max-width: 12em; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero.is-revealed .hero__title .line, .phero.is-revealed h1 .line { overflow: visible; }
.hero__title em { font-style: italic; font-weight: 400; background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); max-width: 34rem; color: rgba(255, 251, 242, .86); margin: 1.6rem 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.next-card {
  width: 100%; padding: 1.25rem 1.35rem; border-radius: var(--radius-m);
  background: rgba(34, 5, 10, .5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(246, 223, 164, .25);
}
.next-card__top { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 700; color: var(--gold-hi); margin-bottom: .55rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD39A; box-shadow: 0 0 0 0 rgba(91, 211, 154, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 211, 154, 0); } }
.next-card h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.next-card p { font-size: .95rem; color: rgba(255, 251, 242, .76); margin: 0 0 .9rem; }
.next-card__when { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: 1rem; }
.next-card__when span { padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 251, 242, .1); }

.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); overflow: hidden; pointer-events: none; }
.scroll-cue::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: var(--khata); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ==========================================================================
   Ticker (news updates band)
   ========================================================================== */
.ticker { background: var(--maroon); color: var(--khata); overflow: hidden; border-block: 1px solid rgba(246, 223, 164, .2); position: relative; }
.ticker::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 6rem; background: linear-gradient(90deg, transparent, var(--maroon)); pointer-events: none; }
.ticker__label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: 0 3.5rem 0 var(--gutter); background: linear-gradient(90deg, var(--maroon) 0, var(--maroon) calc(100% - 3.5rem), rgba(106, 14, 25, 0)); font-weight: 700; color: var(--saffron); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; margin-left: 10rem; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem; white-space: nowrap; text-decoration: none; font-size: .98rem; }
.ticker__item time { color: var(--gold-hi); font-weight: 700; }
.ticker__item span { transition: color .25s; }
.ticker__item:hover span { color: var(--gold-hi); }
.ticker__item svg { width: 14px; color: var(--saffron); opacity: .8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Two jewels: compassion + wisdom
   ========================================================================== */
.jewels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.jewel { position: relative; padding: clamp(2rem, 4vw, 3.2rem); border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.jewel__mantra { font-family: var(--f-tib); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.6; padding-block: .05em; background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2rem; }
.jewel__translit { font-style: italic; font-family: var(--f-display); color: var(--ink-soft); margin-bottom: 1.6rem; }
.jewel h3 { font-size: var(--t-xl); margin-bottom: .8rem; }
.jewel__deity { font-weight: 700; color: var(--brand); margin-bottom: .7rem; }
.jewel p { color: var(--ink-soft); }
.jewel__glyph { position: absolute; right: -40px; bottom: -40px; width: 230px; color: var(--saffron); opacity: .13; z-index: -1; transition: transform 2.4s var(--ease-out), opacity .8s; }
.jewel:hover .jewel__glyph { transform: scale(1.05); opacity: .18; }
.jewel--wisdom:hover .jewel__glyph { transform: rotate(45deg); }
.jewel--wisdom { background: var(--night); color: var(--khata); box-shadow: none; }
.jewel--wisdom p, .jewel--wisdom .jewel__translit { color: rgba(255, 251, 242, .74); }
.jewel--wisdom .jewel__deity { color: var(--saffron); }
.jewel--wisdom .jewel__glyph { color: var(--gold-hi); opacity: .1; }
.jewels__note { margin-top: 1.8rem; color: var(--ink-soft); font-size: .98rem; max-width: 52rem; }

/* ==========================================================================
   Rinpoche feature
   ========================================================================== */
.teacher { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.arch { position: relative; border-radius: var(--radius-arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(34, 5, 10, .6); }
.arch img { position: relative; top: -7.5%; width: 100%; height: 115%; max-width: none; object-fit: cover; }
.arch-frame { position: relative; padding: 14px; }
.arch-frame::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-arch); border: 1px solid var(--gold); opacity: .7; }
.teacher__caption { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); text-align: center; font-style: italic; }
.teacher__body h2 { font-size: var(--t-2xl); margin-bottom: .4rem; }
.teacher__names { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; margin-bottom: 1.6rem; color: var(--ink-soft); }
.teacher__names .tib { font-size: 1.35rem; color: var(--brand); }
.teacher__body > p { font-size: 1.12rem; max-width: 36rem; }
.pull { margin: 2rem 0; padding: 1.4rem 0 1.4rem 1.6rem; border-left: 2px solid var(--saffron); font-family: var(--f-display); font-style: italic; font-size: var(--t-lg); line-height: 1.3; color: var(--maroon); }
.pull cite { display: block; margin-top: .7rem; font-family: var(--f-body); font-style: normal; font-size: .95rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.6rem; margin: 2rem 0 2.2rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .86rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--f-display); font-size: 1.6rem; color: var(--maroon); line-height: 1.2; }

/* ==========================================================================
   Practice (asymmetric image-led)
   ========================================================================== */
.practice { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.pr { position: relative; border-radius: var(--radius-m); overflow: hidden; color: var(--khata); min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; text-decoration: none; }
.pr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.pr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(34, 5, 10, .94) 0%, rgba(34, 5, 10, .72) 38%, rgba(34, 5, 10, .25) 68%, rgba(34, 5, 10, 0) 85%); transition: opacity .6s; }
.pr:focus-visible { outline-color: var(--saffron); outline-offset: 4px; }
.pr:hover img { transform: scale(1.05); }
.pr__body { padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 34rem; }
.pr__tag { display: inline-flex; gap: .45rem; align-items: center; font-size: .9rem; font-weight: 700; color: var(--gold-hi); margin-bottom: .6rem; text-shadow: 0 1px 8px rgba(34, 5, 10, .6); }
.pr h3 { font-size: var(--t-xl); margin-bottom: .6rem; text-shadow: 0 2px 18px rgba(34, 5, 10, .45); }
.pr p { color: rgba(255, 251, 242, .86); margin-bottom: 1rem; }
.pr--a { grid-column: span 7; min-height: 560px; }
.pr--b { grid-column: span 5; min-height: 560px; }
.pr--c { grid-column: span 12; min-height: 380px; }
.pr--c .pr__body { max-width: 40rem; }
.pr--c img { object-position: 50% 70%; }
.pr--a img { object-position: 50% 30%; }
.schedule { display: grid; gap: .5rem; margin: .4rem 0 1.2rem; padding: 0; list-style: none; }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-radius: 8px; background: rgba(255, 251, 242, .1); font-size: .95rem; }
.schedule b { color: var(--gold-hi); font-weight: 700; }

/* ==========================================================================
   Prayer wheel + wisdom (dark brocade)
   ========================================================================== */
.sanctum { background: var(--night) url("../assets/img/brocade.webp"); background-size: 1040px; color: var(--khata); overflow: hidden; }
.sanctum::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(233, 162, 59, .16), transparent 60%), linear-gradient(180deg, var(--night) 0%, rgba(34, 5, 10, .55) 18%, rgba(34, 5, 10, .55) 82%, var(--night) 100%); pointer-events: none; }
.sanctum .wrap { position: relative; }
.sanctum__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }

.wheel { display: grid; justify-items: center; gap: 1.4rem; user-select: none; -webkit-user-select: none; }
.wheel__stage { position: relative; width: min(330px, 78vw); touch-action: pan-y; cursor: grab; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.wheel__stage:focus-visible { outline-offset: 10px; }
.wheel__stage:active { cursor: grabbing; }
.wheel__meta { text-align: center; display: grid; gap: .4rem; }
.wheel__count { font-family: var(--f-display); font-size: 2.6rem; color: var(--gold-hi); line-height: 1; font-variant-numeric: tabular-nums lining-nums; display: inline-block; justify-self: center; }
.wheel__hint { font-size: .92rem; color: rgba(255, 251, 242, .72); max-width: 26rem; text-wrap: balance; }
.wheel__btn { margin-top: .4rem; justify-self: center; }

.wisdom__label { display: flex; align-items: center; gap: .6rem; color: var(--saffron); font-family: var(--f-display); font-style: italic; font-size: var(--t-md); margin-bottom: 1.4rem; }
.wisdom__quote { margin: 0; min-height: 13rem; will-change: opacity, transform; }
.wisdom__text { font-family: var(--f-display); font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.8rem); line-height: 1.22; font-weight: 400; margin: 0 0 1.4rem; text-wrap: pretty; max-width: 30ch; }
html[lang="mn"] .wisdom__text { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.4rem); max-width: 34ch; }
.wisdom__text::before { content: "“"; color: var(--saffron); margin-left: -.45em; padding-right: .05em; }
.wisdom__text::after { content: "”"; color: var(--saffron); }
html[lang="bo"] .wisdom__text::before, html[lang="bo"] .wisdom__text::after { content: none; }
html[lang="bo"] .wisdom__text { font-family: var(--f-tib); line-height: 1.75; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); max-width: none; }
.wisdom__cite { display: flex; flex-direction: column; gap: .15rem; font-style: normal; }
.wisdom__cite b { color: var(--gold-hi); font-weight: 700; }
.wisdom__cite span { color: rgba(255, 251, 242, .62); font-size: .92rem; }
.wisdom__controls { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.wisdom__progress { flex: 1; min-width: 120px; height: 2px; background: rgba(255, 251, 242, .15); position: relative; overflow: hidden; border-radius: 2px; }
.wisdom__progress i { position: absolute; inset: 0; background: var(--saffron); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Projects (Mongolia)
   ========================================================================== */
.projects { position: relative; color: var(--khata); background: var(--night); overflow: hidden; isolation: isolate; }
.projects__bg { position: absolute; inset: -12% 0; z-index: -2; }
.projects__bg img { width: 100%; height: 100%; object-fit: cover; }
.projects::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 5, 10, .88) 0%, rgba(34, 5, 10, .55) 40%, rgba(34, 5, 10, .92) 100%); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.proj { background: rgba(255, 251, 242, .97); color: var(--ink); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.proj:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.proj:active { transform: translateY(-3px); }
.proj:focus-visible { outline-color: var(--gold-hi); outline-offset: 4px; }
.proj h3 { transition: color .3s; }
.proj:hover h3 { color: var(--brand); }
.proj__img { aspect-ratio: 16 / 10; overflow: hidden; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.proj:hover .proj__img img { transform: scale(1.05); }
.proj__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.proj__where { font-size: .85rem; font-weight: 700; color: var(--malachite); margin-bottom: .5rem; display: flex; gap: .4rem; align-items: center; }
.proj__where svg { width: 14px; }
.proj h3 { font-size: 1.65rem; margin-bottom: .6rem; }
.proj p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.proj__stat { display: flex; align-items: baseline; gap: .6rem; padding-top: 1rem; margin-top: .4rem; border-top: 1px solid var(--line); }
.proj__stat b { font-family: var(--f-display); font-size: 2rem; color: var(--brand); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.proj__stat span { font-size: .9rem; color: var(--ink-soft); line-height: 1.3; }

/* ==========================================================================
   News & updates
   ========================================================================== */
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.news-head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); padding: .5rem 1.05rem; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s, box-shadow .3s, transform .2s; }
.filter:active { transform: scale(.97); }
.filter:hover { box-shadow: inset 0 0 0 1px var(--maroon); }
.filter[aria-pressed="true"] { background: var(--maroon); color: var(--khata); box-shadow: none; }
.news { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.news__feature { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--night); color: var(--khata); display: flex; flex-direction: column; text-decoration: none; min-height: 100%; }
.news__feature .img { flex: 1 1 auto; min-height: 16rem; aspect-ratio: 16 / 9; overflow: hidden; }
@media (min-width: 981px) { .news__feature .img { aspect-ratio: auto; } }
.news__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.news__feature:hover img { transform: scale(1.04); }
.news__feature .body { padding: 1.6rem 1.8rem 2rem; }
.news__feature .meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; }
.news__feature .meta time { font-size: .9rem; color: rgba(255, 251, 242, .7); }
.news__empty { max-width: 40rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); color: var(--ink-soft); font-family: var(--f-display); font-style: italic; font-size: var(--t-md); line-height: 1.5; margin: 0; }
.news__empty a { color: var(--brand); font-style: normal; font-weight: 600; }
.news[hidden], .news__empty[hidden], .filters[hidden] { display: none; }
.news__feature h3 { font-size: var(--t-lg); margin: .5rem 0 .7rem; }
.news__feature p { color: rgba(255, 251, 242, .76); margin: 0; }
.news__list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.news__item a { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease-out); }
.news__item:first-child a { padding-top: 0; }
.news__item a:hover { padding-left: .5rem; }
.news__item a:hover h4 { color: var(--brand); }
.date-tile { text-align: center; border-radius: 10px; background: var(--khata); box-shadow: 0 0 0 1px var(--line); padding: .45rem .2rem; line-height: 1.1; height: max-content; }
.date-tile b { display: block; font-family: var(--f-display); font-size: 1.55rem; color: var(--maroon); }
.date-tile span { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.news__item h4 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin: .2rem 0 .3rem; transition: color .25s; }
.news__item p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.cat { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: rgba(233, 162, 59, .2); color: #7A4A0A; }
.news__feature .cat { background: rgba(233, 162, 59, .22); color: var(--gold-hi); }
.cat[data-cat="projects"] { background: rgba(47, 107, 90, .14); color: #24574A; }
.cat[data-cat="community"] { background: rgba(30, 58, 110, .12); color: var(--lapis); }
.news__item[hidden] { display: none; }

/* ==========================================================================
   Teachings: video + books
   ========================================================================== */
.media-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--night); box-shadow: 0 40px 70px -40px rgba(34, 5, 10, .7); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(0deg, rgba(34, 5, 10, .78), rgba(34, 5, 10, .1) 60%); color: var(--khata); }
.video img { transition: transform 1.2s var(--ease-out); }
.video:hover img { transform: scale(1.03); }
.video__play .disc { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--night); translate: var(--mx, 0px) var(--my, 0px); transition: transform .5s var(--ease-out), translate .6s var(--ease-out), box-shadow .6s var(--ease-out); box-shadow: 0 0 0 12px rgba(233, 162, 59, .25); }
.video__play:hover .disc { box-shadow: 0 0 0 18px rgba(233, 162, 59, .18); }
.video__play:focus-visible { outline-offset: -6px; border-radius: var(--radius-m); }
.video__play:hover .disc { transform: scale(1.08); }
.video__play svg { width: 30px; margin-left: 4px; }
.video__cap { position: absolute; left: 1.4rem; bottom: 1.2rem; right: 1.4rem; text-align: left; font-weight: 600; pointer-events: none; }
.video-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.video-list a { display: block; text-decoration: none; font-size: .84rem; color: var(--ink-soft); border-radius: 8px; }
.video-list .thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; margin-bottom: .45rem; background: var(--night); }
.video-list img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .8s var(--ease-out), opacity .4s; }
.video-list .thumb svg { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 8px 7px 8px 9px; border-radius: 50%; background: rgba(233, 162, 59, .92); color: var(--night); opacity: 0; scale: .8; transition: opacity .35s, scale .5s var(--ease-out); }
.video-list a:hover img { transform: scale(1.06); opacity: .85; }
.video-list a:hover .thumb svg, .video-list a:focus-visible .thumb svg { opacity: 1; scale: 1; }
.video-list a:hover .when { color: var(--brand); }
.video-list .when { transition: color .25s; }
.books { display: grid; gap: 1.4rem; }
.book { display: grid; grid-template-columns: 110px 1fr; gap: 1.3rem; align-items: center; }
.book img { width: 100%; border-radius: 4px 8px 8px 4px; box-shadow: -6px 0 0 -2px rgba(0,0,0,.15) inset, 0 20px 40px -18px rgba(34, 5, 10, .7); transform: perspective(600px) rotateY(-12deg); transition: transform .6s var(--ease-out); }
.book:hover img { transform: perspective(600px) rotateY(0); }
.book h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.book p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .5rem; }

/* ==========================================================================
   Donate (butter lamps)
   ========================================================================== */
.offer { position: relative; color: var(--khata); background: var(--night); overflow: hidden; isolation: isolate; text-align: center; }
.offer__bg { position: absolute; inset: -10% 0; z-index: -2; }
.offer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 80%, rgba(34, 5, 10, .5), rgba(34, 5, 10, .9) 70%); }
.offer__means, .lamps-lit { text-shadow: 0 1px 10px rgba(34, 5, 10, .95), 0 0 2px rgba(34, 5, 10, .8); }
.offer h2 { font-size: var(--t-2xl); max-width: 18ch; margin: 0 auto 1rem; }
.offer > .wrap > p { max-width: 38rem; margin: 0 auto 2.2rem; font-size: var(--t-md); color: rgba(255, 251, 242, .82); }
.amounts { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(34, 5, 10, .55); box-shadow: inset 0 0 0 1px var(--line-light); backdrop-filter: blur(8px); margin-bottom: 1.4rem; }
.amount { border: 0; background: transparent; color: var(--khata); padding: .7rem 1.2rem; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; transition: background-color .3s, color .3s, transform .2s; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.amount:active { transform: scale(.96); }
.amount:focus-visible { outline-color: var(--gold-hi); outline-offset: 1px; }
.amount[aria-pressed="true"] { background: var(--saffron); color: var(--night); }
.amount:hover:not([aria-pressed="true"]) { background: rgba(255, 251, 242, .1); }
.offer__means { min-height: 1.6em; color: var(--gold-hi); font-style: italic; font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 1.8rem; }
.lamps-lit { margin: 2rem auto 0; max-width: 36rem; font-size: .92rem; color: rgba(255, 251, 242, .74); text-wrap: balance; }
.lamps-lit .flame { display: inline-block; vertical-align: -4px; margin-right: .55rem; }
.flame { width: 14px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c8, #f6b94a 45%, #c96f10 80%); animation: flicker 1.8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.94, 1.08) rotate(2deg); } 100% { transform: scale(1.03, .96) rotate(-1deg); } }

/* ==========================================================================
   Visit + newsletter
   ========================================================================== */
.visit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.visit__img { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 5 / 4; position: relative; }
.visit__img img { position: relative; top: -7.5%; width: 100%; height: 115%; max-width: none; object-fit: cover; }
.visit h2 { font-size: var(--t-2xl); margin-bottom: 1.2rem; }
.contact-list { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: center; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--khata); box-shadow: 0 0 0 1px var(--line); color: var(--brand); }
.contact-list .ico svg { width: 18px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: .85rem; }
.contact-list a { font-weight: 600; }
.signup { padding: 1.6rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); }
.signup h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.signup p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.signup form { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup input { flex: 1 1 200px; min-width: 0; padding: .9rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--butter); font: inherit; color: var(--ink); }
.signup input { transition: border-color .25s, background-color .25s; min-height: 48px; }
.signup input:hover { border-color: rgba(42, 23, 18, .3); }
.signup input:focus { outline: 2px solid var(--saffron); outline-offset: 1px; background: var(--khata); }
.signup input[aria-invalid="true"] { border-color: var(--brand); }
.signup__msg:empty { display: none; }
.signup__msg { margin: .8rem 0 0; font-size: .92rem; color: var(--malachite); font-weight: 600; min-height: 1.4em; }
.signup__msg.is-error { color: var(--brand); }
.contact-list a { text-decoration-color: rgba(142, 0, 12, .35); transition: color .25s, text-decoration-color .25s; }
.contact-list a:hover { color: var(--brand); text-decoration-color: currentColor; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--night); color: rgba(255, 251, 242, .78); padding: clamp(4rem, 8vw, 6rem) 0 2rem; position: relative; overflow: hidden; }
.footer__verse { text-align: center; max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.footer__verse .tib { font-size: clamp(1.08rem, .9rem + .9vw, 1.7rem); color: var(--gold-hi); line-height: 2; margin-bottom: 1rem; text-wrap: balance; }
.footer__verse p { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; line-height: 1.6; margin: 0 0 .6rem; text-wrap: balance; }
.footer__verse small { color: rgba(255, 251, 242, .58); }
html[lang="bo"] .footer__verse p { display: none; }
html[lang="bo"] .footer h4 { font-size: 1.05rem; font-weight: 600; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding: 2.5rem 0; border-block: 1px solid var(--line-light); }
.footer h4 { font-family: var(--f-body); font-size: .95rem; font-weight: 700; color: var(--khata); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a { transition: color .25s; }
.footer ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .45s var(--ease-out); }
.footer a:hover { color: var(--saffron); }
.footer ul a:hover { background-size: 100% 1px; }
.footer__brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer__brand img { width: 56px; }
.footer__brand b { font-family: var(--f-display); font-size: 1.3rem; color: var(--khata); font-weight: 500; line-height: 1.15; }
.footer__about { font-size: .95rem; max-width: 26rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-light); transition: background .3s, color .3s; }
.socials a:hover { background: var(--saffron); color: var(--night); }
.socials svg { width: 18px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .86rem; color: rgba(255, 251, 242, .58); }

/* ==========================================================================
   Page hero (inner pages) + Rinpoche biography
   ========================================================================== */
.phero { position: relative; background: var(--night); color: var(--khata); padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; isolation: isolate; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/brocade.webp"); background-size: 1040px; opacity: .55; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 75% 40%, rgba(233, 162, 59, .22), transparent 55%), linear-gradient(0deg, var(--night), transparent 40%); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.crumbs { display: flex; gap: .5rem; font-size: .9rem; color: rgba(255, 251, 242, .68); margin-bottom: 1.6rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--saffron); }
.phero h1 { font-size: var(--t-hero); line-height: 1; letter-spacing: -.02em; }
.phero__tib { font-family: var(--f-tib); font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); color: var(--gold-hi); margin: 1rem 0 .2rem; line-height: 1.6; }
.phero__mn { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: rgba(255, 251, 242, .7); }
.phero__lede { font-size: var(--t-md); max-width: 36rem; margin-top: 1.8rem; color: rgba(255, 251, 242, .84); }
.phero .arch-frame::before { border-color: var(--gold); }

.bio { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.bio__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; text-decoration: none; color: var(--ink-soft); margin-left: -1px; border-left: 2px solid transparent; transition: color .35s, border-color .35s, padding-left .45s var(--ease-out); }
.toc a.is-active { padding-left: 1.25rem; font-weight: 600; }
.toc a.is-active, .toc a:hover { color: var(--maroon); border-color: var(--saffron); }
.prose { max-width: 42rem; font-size: 1.14rem; line-height: 1.75; }
.prose h2 { font-size: var(--t-xl); margin: 3.5rem 0 1.2rem; scroll-margin-top: calc(var(--header-h) + 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose .drop::first-letter { float: left; font-family: var(--f-display); font-size: 3.55em; line-height: .8; padding: .1em .12em 0 0; color: var(--brand); }
html[lang="bo"] .prose .drop::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.prose figure { margin: 2.4rem 0; }
.prose figure img { border-radius: var(--radius-m); width: 100%; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .7rem; font-style: italic; }
.phero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.phero h1 .line > span { display: inline-block; }
@media (min-width: 1100px) { .prose .wide-fig { margin-right: calc(-1 * min(14rem, 16vw)); } }

.timeline { position: relative; list-style: none; padding: 0; margin: 2rem 0 0; }
.timeline::before { content: ""; position: absolute; left: 6.2rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.timeline__progress { position: absolute; left: 6.2rem; top: .4rem; width: 1px; height: calc(100% - .8rem); background: var(--saffron); transform-origin: top; transform: scaleY(0); }
.timeline li { position: relative; display: grid; grid-template-columns: 5.2rem 1fr; gap: 2rem; padding: 0 0 2.2rem; }
.js .timeline li > * { transition: opacity .7s var(--ease), translate .9s var(--ease-out); }
.js .timeline li:not(.is-on) > * { opacity: .4; }
.js .timeline li:not(.is-on) > div { translate: 6px 0; }
.timeline li::before { content: ""; position: absolute; left: calc(6.2rem - 6px); top: .55rem; width: 13px; height: 13px; border-radius: 50%; background: var(--butter); box-shadow: inset 0 0 0 2px var(--gold); transition: background .4s, box-shadow .4s; }
.timeline li.is-on::before { background: var(--saffron); box-shadow: 0 0 0 5px rgba(233, 162, 59, .22); }
html[lang="bo"] .timeline h3 { font-size: 1.2rem; font-weight: 400; line-height: 1.6; }
html[lang="bo"] .timeline li::before { top: .75rem; }
.timeline time { font-family: var(--f-display); font-size: 1.4rem; color: var(--maroon); text-align: right; line-height: 1.3; }
.timeline h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.08rem; margin: .25rem 0 .3rem; line-height: 1.35; }
.timeline p { font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

.quote-band { background: var(--maroon); color: var(--khata); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 52rem; }
.quote-band p { font-family: var(--f-display); font-style: italic; font-size: var(--t-2xl); line-height: 1.15; margin-bottom: 1.2rem; text-wrap: balance; }
html[lang="bo"] .quote-band p { font-family: var(--f-tib); font-style: normal; line-height: 1.6; font-size: var(--t-xl); }
.quote-band cite { font-style: normal; color: var(--gold-hi); }

.cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.cta-card { padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-card h3 { font-size: var(--t-lg); }
.cta-card .btn { margin-top: auto; }
.cta-card p { color: var(--ink-soft); margin: 0 0 .6rem; }
.cta-card--dark { background: var(--night); color: var(--khata); box-shadow: none; }
.cta-card--dark p { color: rgba(255, 251, 242, .74); }

/* note for preview-only items */
.preview-note { font-size: .82rem; color: var(--ink-soft); font-style: italic; }
.on-dark .preview-note { color: rgba(255, 251, 242, .5); }

/* ==========================================================================
   Reveal helpers (JS adds .is-in)
   ========================================================================== */
/* Reveals run as CSS animations with `backwards` fill, so once they finish the element's own
   hover/transform/transition rules are untouched (no hijacked transitions, no layout cost). */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes rise-sm { from { opacity: 0; translate: 0 16px; } }
@keyframes slide-in { from { opacity: 0; translate: -14px 0; } }
@keyframes unmask { from { clip-path: inset(9% 7% 9% 7% round 18px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes unmask-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { scale: 1.14; } }
@keyframes knot-in { from { opacity: 0; rotate: -120deg; scale: .5; } }
@keyframes draw-x { from { scale: 0 1; } }
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: rise 1.1s var(--ease-out) var(--d, 0s) backwards; }
/* staggered groups: the container stays put and its children rise one after another */
.js [data-reveal].stagger:not(.is-in) { opacity: 1; }
.js [data-reveal].stagger.is-in { animation: none; }
.js .stagger:not(.is-in) > * { opacity: 0; }
.js .stagger.is-in > * { animation: rise-sm 1s var(--ease-out) calc(var(--d, 0s) + min(var(--i, 0), 8) * 80ms) backwards; }
.js .stagger.is-in > .section-head__kicker { animation-name: slide-in; }
.js .stagger.is-in .section-head__kicker .knot, .js .stagger.is-in > .knot:first-child { animation: knot-in 1.6s var(--ease-out) calc(var(--d, 0s) + .1s) backwards; }
/* image reveals: the frame opens like a window while the photograph settles */
.js [data-reveal].mask:not(.is-in) { opacity: 1; }
.js [data-reveal].mask.is-in { animation: none; }
.js .mask:not(.is-in) .mask__clip, .js .mask:not(.is-in).mask__clip { clip-path: inset(9% 7% 9% 7% round 18px); }
.js .mask.is-in .mask__clip, .js .mask.is-in.mask__clip { animation: unmask 1.5s var(--ease-out) var(--d, 0s) backwards; }
.js .mask.is-in .mask__clip--up { animation-name: unmask-up; animation-duration: 1.7s; }
.js .mask:not(.is-in) .mask__clip--up { clip-path: inset(100% 0 0 0); }
.js .mask.is-in img.mask__clip { animation: unmask 1.5s var(--ease-out) var(--d, 0s) backwards, settle 2.2s var(--ease-out) var(--d, 0s) backwards; }
.js .proj.is-in .proj__img img, .js .news__feature.is-in .img img { animation: settle 2s var(--ease-out) var(--d, 0s) backwards; }
.stagger > :nth-child(2) { --i: 1; } .stagger > :nth-child(3) { --i: 2; } .stagger > :nth-child(4) { --i: 3; } .stagger > :nth-child(5) { --i: 4; }
.stagger > :nth-child(6) { --i: 5; } .stagger > :nth-child(7) { --i: 6; } .stagger > :nth-child(8) { --i: 7; } .stagger > :nth-child(n + 9) { --i: 8; }
.js .mask.is-in .mask__clip img { animation: settle 2.2s var(--ease-out) var(--d, 0s) backwards; }
.js .mask:not(.is-in) > :not(.mask__clip):not(img) { opacity: 0; }
.js .mask.is-in > :not(.mask__clip):not(img) { animation: rise-sm 1s var(--ease-out) calc(var(--d, 0s) + .35s) backwards; }
/* the gold rule under a section title draws itself */
.facts { position: relative; }
.js .stagger.is-in .facts > div { animation: rise-sm .9s var(--ease-out) backwards; }
.js .stagger.is-in .facts > div:nth-child(1) { animation-delay: .55s; } .js .stagger.is-in .facts > div:nth-child(2) { animation-delay: .65s; } .js .stagger.is-in .facts > div:nth-child(3) { animation-delay: .75s; }
/* hover depth on cards */
.jewel, .cta-card { transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.jewel:hover, .cta-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 34px 60px -34px rgba(34, 5, 10, .45); }
.jewel--wisdom:hover, .cta-card--dark:hover { box-shadow: 0 34px 60px -30px rgba(34, 5, 10, .7); }
.arch img, .visit__img img, .prose figure img { transition: scale 1.4s var(--ease-out); }
.arch-frame:hover .arch img, .visit__img:hover img { scale: 1.035; }
.arch-frame::before { transition: inset .9s var(--ease-out), opacity .9s; }
.arch-frame:hover::before { inset: -6px; opacity: 1; }
/* language switch: content dips and returns instead of snapping */
.lang-swap main, .lang-swap .footer, .lang-swap .nav, .lang-swap .drawer__group, .lang-swap .header__donate, .lang-swap .brand__text { opacity: 0; transition: opacity .22s var(--ease); }
main, .footer, .nav, .header__donate, .brand__text { transition: opacity .5s var(--ease); }
/* first paint before the hero sequence starts (head script adds .intro, main.js removes it) */
.intro .header, .intro [data-hero] { opacity: 0; }
.intro .hero__title .line > span, .intro .phero h1 .line > span { transform: translateY(110%); }
.intro .hero__media img { transform: scale(1.14); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .header__donate { display: none; }
  .header .lang { display: none; }
  .burger { display: block; }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .next-card { width: 100%; max-width: 480px; }
  .jewels, .teacher, .sanctum__grid, .news, .media-grid, .visit, .phero__grid, .cta-row { grid-template-columns: 1fr; }
  .teacher__media { max-width: 440px; }
  .pr--a, .pr--b, .pr--c { grid-column: span 12; min-height: 460px; }
  .proj-grid { grid-template-columns: 1fr; max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .bio { grid-template-columns: 1fr; }
  .bio__aside { position: static; display: none; }
  .phero__portrait { max-width: 380px; }
  .wisdom { order: -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 44px; height: 36px; }
  .hero__title { max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts { grid-template-columns: repeat(2, auto); }
  .pr, .pr--a, .pr--b, .pr--c { min-height: 420px; }
  .video-list { grid-template-columns: repeat(2, 1fr); }
  .book { grid-template-columns: 90px 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .timeline::before, .timeline__progress { left: .35rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; }
  .timeline li::before { left: -.05rem; }
  .timeline time { text-align: left; font-size: 1.2rem; }
  .news__item a { grid-template-columns: 3.6rem 1fr; }
  .scroll-cue { display: none; }
  .hero__inner { padding-bottom: 2.5rem; }
  .amounts { display: inline-grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: .25rem; padding: .35rem; border-radius: 999px; }
  .amount { padding: .6rem .7rem; font-size: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer ul { gap: .1rem; }
  .footer ul li { padding-block: .3rem; }
  .footer__base { flex-direction: column; gap: .4rem; }
  .wisdom__text::before { margin-left: -.35em; }
  .contact-list a { overflow-wrap: anywhere; }
  .contact-list li > span { text-wrap: balance; }
  .video__play .disc { width: 64px; height: 64px; box-shadow: 0 0 0 9px rgba(233, 162, 59, .25); }
  .video__play svg { width: 24px; }
  .video__cap { left: 1rem; right: 1rem; bottom: .9rem; font-size: .92rem; }
}
@media (max-width: 400px) {
  .amounts { display: inline-grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 330px; border-radius: 22px; gap: .25rem; }
  .amount { grid-column: span 2; padding-inline: .3rem; }
  .amount:nth-child(n + 4) { grid-column: span 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; padding-left: 10rem; }
  .intro .header, .intro [data-hero] { opacity: 1; }
  .intro .hero__title .line > span, .intro .phero h1 .line > span, .intro .hero__media img { transform: none; }
  .js .timeline li > * { opacity: 1 !important; translate: none !important; }
  .js [data-reveal]:not(.is-in), .js .stagger:not(.is-in) > *, .js .mask:not(.is-in) > *, .js .stagger .facts > div { opacity: 1 !important; animation: none !important; }
  .js .mask .mask__clip, .js .mask.mask__clip, .js .mask .mask__clip img { clip-path: none !important; animation: none !important; }
  .jewel:hover, .cta-card:hover, .arch-frame:hover .arch img, .visit__img:hover img { transform: none; scale: 1; }
}

.timeline ol { list-style: none; padding: 0; margin: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; translate: -50% 150%; opacity: 0; max-width: calc(100% - 2rem);
  background: var(--night); color: var(--khata); padding: .9rem 1.3rem; border-radius: 999px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-light);
  font-weight: 600; font-size: .95rem; transition: translate .5s var(--ease-out), opacity .4s; pointer-events: none; text-align: center; }
.toast.is-on { translate: -50% 0; opacity: 1; }

/* mobile legibility: stronger veils where text sits on photographs */
@media (max-width: 980px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(34, 5, 10, .72) 0%, rgba(34, 5, 10, .66) 35%, rgba(34, 5, 10, .84) 60%, rgba(34, 5, 10, .96) 100%);
  }
  .hero__media img { object-position: 72% 50%; }
  .pr::before { background: linear-gradient(0deg, rgba(34, 5, 10, .95) 0%, rgba(34, 5, 10, .82) 50%, rgba(34, 5, 10, .5) 78%, rgba(34, 5, 10, .28) 100%); }
  .pr__body { padding-top: 6rem; }
}

/* in Tibetan the heading already carries the Tibetan name — avoid repeating it */
html[lang="bo"] .phero__tib, html[lang="bo"] .teacher__names .tib { display: none; }
html[lang="bo"] .brand__sub, html[lang="bo"] .crumbs { font-size: .95rem; }
html[lang="bo"] .section-head__kicker, html[lang="bo"] .wisdom__label { font-style: normal; font-family: var(--f-tib); font-size: 1.3rem; }
html[lang="bo"] .next-card__top, html[lang="bo"] .pr__tag, html[lang="bo"] .proj__where { font-weight: 600; font-size: .98rem; }

/* ===== logo ===== (owned by lead) — the center's own lotus mark, animated */
.brand__mark, .footer__mark { display: block; flex: none; }
.brand__mark { width: 54px; height: 43px; }
.footer__mark { width: 66px; height: 52px; }
.lmark { width: 100%; height: 100%; overflow: visible; transition: filter .5s var(--ease); }
.header, .footer, .drawer, .loader { --lm-a: #F3D9A0; --lm-b: #EF6837; }
.header.is-solid { --lm-a: #8E000C; --lm-b: #EF6837; }
.menu-open .header { --lm-a: #F3D9A0; --lm-b: #EF6837; }
.lmark path { transform-box: view-box; transition: fill .5s var(--ease), transform .8s var(--ease-out); }
.lmark .lm-fig { transform-origin: 4587px 5468px; }
.lmark .lm-pul { transform-origin: 3300px 3420px; } .lmark .lm-pur { transform-origin: 5874px 3420px; }
.lmark .lm-pbl { transform-origin: 4380px 6200px; } .lmark .lm-pbr { transform-origin: 4795px 6200px; }
.lmark .lm-ol { transform-origin: 1700px 5000px; } .lmark .lm-or { transform-origin: 7475px 5000px; }
.lmark .lm-drop { transform-origin: 4587px 6282px; }
/* bloom: petals open from the base outwards, then the meditator rises */
.lmark.lm-play .lm-pbl { animation: lm-pbl 1.1s .05s var(--ease-out) both; }
.lmark.lm-play .lm-pbr { animation: lm-pbr 1.1s .05s var(--ease-out) both; }
.lmark.lm-play .lm-ol { animation: lm-ol 1.2s .25s var(--ease-out) both; }
.lmark.lm-play .lm-or { animation: lm-or 1.2s .25s var(--ease-out) both; }
.lmark.lm-play .lm-pul { animation: lm-pul 1.2s .4s var(--ease-out) both; }
.lmark.lm-play .lm-pur { animation: lm-pur 1.2s .4s var(--ease-out) both; }
.lmark.lm-play .lm-drop { animation: lm-drop .8s .2s var(--ease-out) both; }
.lmark.lm-play .lm-fig { animation: lm-fig 1.3s .55s var(--ease-out) both, lm-breathe 5.5s 2s ease-in-out infinite alternate; }
.lmark:not(.lm-play) .lm-fig { animation: lm-breathe 5.5s ease-in-out infinite alternate; }
@keyframes lm-pbl { from { transform: rotate(-22deg) scaleX(.25); opacity: 0; } }
@keyframes lm-pbr { from { transform: rotate(22deg) scaleX(.25); opacity: 0; } }
@keyframes lm-ol { from { transform: rotate(38deg) scale(.6); opacity: 0; } }
@keyframes lm-or { from { transform: rotate(-38deg) scale(.6); opacity: 0; } }
@keyframes lm-pul { from { transform: rotate(42deg) scale(.7); opacity: 0; } }
@keyframes lm-pur { from { transform: rotate(-42deg) scale(.7); opacity: 0; } }
@keyframes lm-drop { from { transform: scale(0); opacity: 0; } }
@keyframes lm-fig { from { transform: translateY(700px) scale(.82); opacity: 0; } 55% { opacity: 1; } to { transform: none; } }
@keyframes lm-breathe { from { transform: scale(1); } to { transform: scale(1.03); } }
/* hover: the lotus opens a touch wider and the mark glows */
.brand:hover .lm-pul, .footer__brand:hover .lm-pul { transform: rotate(-6deg); }
.brand:hover .lm-pur, .footer__brand:hover .lm-pur { transform: rotate(6deg); }
.brand:hover .lm-ol, .footer__brand:hover .lm-ol { transform: rotate(-6deg); }
.brand:hover .lm-or, .footer__brand:hover .lm-or { transform: rotate(6deg); }
.brand:hover .lmark, .footer__brand:hover .lmark { filter: drop-shadow(0 0 7px rgba(239, 104, 55, .45)); }
.loader__mark { width: 128px; height: 102px; }
@media (prefers-reduced-motion: reduce) { .lmark path, .lmark.lm-play path { animation: none !important; } }

/* ===== effects ===== (owned by lead) */
/* music toggle */
.sound { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 120; display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem .6rem .8rem; border: 0; border-radius: 999px; background: rgba(34, 5, 10, .78); color: var(--khata);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-light);
  font-weight: 700; font-size: .88rem; transition: transform .4s var(--ease-out), background .3s; min-height: 44px; }
.sound:hover { transform: translateY(-2px); background: rgba(34, 5, 10, .92); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.sound__bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--saffron); transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1.1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.4s; } .sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.8s; } .sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0% { height: 3px; } 100% { height: 16px; } }
html[lang="bo"] .sound__label { font-family: var(--f-tib-body); font-weight: 400; }
.menu-open .sound { opacity: 0; pointer-events: none; }

/* dharma wheel divider: turns with scroll */
.dharma-divider { display: flex; align-items: center; gap: 1.4rem; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto clamp(3rem, 6vw, 5rem); color: var(--gold); }
.dharma-divider::before, .dharma-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.dharma-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.dharma-divider svg { width: 64px; height: 64px; color: var(--saffron-deep); will-change: transform; }

/* mantra ring: centred on the drum (JS sets --ring-y / --ring-d) */
.wheel { position: relative; }
.mantra-ring { position: absolute; z-index: 0; pointer-events: none; left: 50%; top: var(--ring-y, 40%); width: var(--ring-d, 420px); aspect-ratio: 1; translate: -50% -50%; opacity: .42; will-change: transform;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%); mask-image: radial-gradient(circle, #000 62%, transparent 72%); }
.mantra-ring text { font-family: var(--f-tib); fill: var(--gold); letter-spacing: 2px; }
.mantra-ring .ring-2 text { fill: rgba(246, 223, 164, .55); }
.wheel > :not(.mantra-ring) { position: relative; z-index: 1; }

/* prayer flags garland above the footer */
.flags { position: relative; height: clamp(130px, 14.6vw, 210px); margin-bottom: -2px; overflow: hidden; pointer-events: none; }
.flags svg { filter: drop-shadow(0 8px 8px rgba(70, 35, 15, .18)); }
.flags text { font-family: var(--f-tib); }
.flags svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flags .flag { transform-box: fill-box; transform-origin: 50% 0; animation: flag-sway var(--fd, 3.4s) ease-in-out var(--fdl, 0s) infinite alternate; }
@keyframes flag-sway { 0% { transform: rotate(calc(var(--fa, 4deg) * -1)) skewX(-4deg) scaleX(.97); } 45% { transform: rotate(calc(var(--fa, 4deg) * .4)) skewX(2deg) scaleX(1); } 100% { transform: rotate(var(--fa, 4deg)) skewX(5deg) scaleX(.95); } }

/* butter-lamp embers in the offering section */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .flags .flag { animation: none; } .embers { display: none; } }

/* ===== 3D prayer wheel ===== (image-sequence player, frames rendered offline from the 3D model) */
.wheel__stage { width: min(460px, 86vw); aspect-ratio: 1 / 1.3; border-radius: 18px; isolation: isolate; }
.wheel__canvas, .wheel__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.wheel__poster { object-fit: contain; pointer-events: none; transition: opacity .5s var(--ease); }
.wheel__stage.is-ready .wheel__poster { opacity: 0; }
/* warm light: a constant soft pool plus the turn-completion bloom. Both are radial gradients that reach full
   transparency well inside their own (oversized) boxes, so nothing is ever clipped to a straight edge. */
.wheel__stage::before, .wheel__glow { content: ""; position: absolute; left: 50%; top: 47%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; z-index: -1; border-radius: 50%; }
.wheel__stage::before { width: 150%; background: radial-gradient(circle closest-side, rgba(233, 162, 59, .2), rgba(233, 162, 59, .08) 45%, rgba(233, 162, 59, 0) 72%); }
.wheel__glow { width: 175%; opacity: var(--wheel-glow, 0); background: radial-gradient(circle closest-side, rgba(255, 222, 160, .55), rgba(246, 190, 100, .26) 32%, rgba(233, 162, 59, .08) 55%, rgba(233, 162, 59, 0) 74%); will-change: opacity; }
.wheel__stage:focus-visible { outline: 2px solid var(--saffron); outline-offset: 6px; }
@media (max-width: 640px) { .wheel__stage { width: min(360px, 84vw); } }

@media (max-width: 640px) {
  .sound { padding: 0; width: 46px; height: 46px; justify-content: center; left: .9rem; bottom: .9rem; }
  .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mantra-ring { opacity: .3; }
}

/* ===== Tibetan optical centring (owned by lead) =====
   Tibetan glyphs hang below the head-line, so centred boxes look top-heavy; nudge the text down. */
html[lang="bo"] .btn { padding-top: calc(.95rem + .2em); padding-bottom: calc(.95rem - .2em); }
html[lang="bo"] .header__donate { padding-top: calc(.7rem + .2em); padding-bottom: calc(.7rem - .2em); }
html[lang="bo"] .btn svg { margin-top: -.3em; }
html[lang="bo"] .nav__link { padding-top: calc(.55rem + .18em); padding-bottom: calc(.55rem - .18em); }
html[lang="bo"] .nav__link .chev { margin-top: -.25em; }
html[lang="bo"] .filter { padding-top: calc(.5rem + .18em); padding-bottom: calc(.5rem - .18em); }
html[lang="bo"] .amount { padding-top: calc(.7rem + .16em); padding-bottom: calc(.7rem - .16em); }
html[lang="bo"] .lang__btn .tib { position: relative; top: .12em; }
html[lang="bo"] .cat, html[lang="bo"] .next-card__when span { padding-top: .3em; padding-bottom: .05em; }
html[lang="bo"] .sound__label { position: relative; top: .12em; }

/* ===== loader (owned by lead) =====
   Invisible for fast loads: it only fades in if the page is still loading after ~0.45s. */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--night) url("../assets/img/brocade.webp"); background-size: 1040px;
  opacity: 1; visibility: visible; pointer-events: none; animation: loader-out .6s 8s forwards; /* safety net if scripts fail */ }
html:not(.js) .loader { display: none; }
/* the logo, mantra and bar only appear if loading really takes a while */
.loader__inner { opacity: 0; animation: loader-in .5s .5s forwards; }
html.is-ready .loader { opacity: 0; visibility: hidden; animation: none; transition: opacity .45s var(--ease), visibility 0s .45s; }
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(233, 162, 59, .18), rgba(34, 5, 10, .92) 60%); }
.loader__inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; }
.loader__mantra { font-family: var(--f-tib); font-size: 1.5rem; line-height: 1.7; background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; animation: loader-glow 2.4s ease-in-out infinite alternate; }
.loader__bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(246, 223, 164, .18); overflow: hidden; }
.loader__bar i { display: block; width: 40%; height: 100%; background: var(--saffron); animation: loader-bar 1.4s var(--ease) infinite; }
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes loader-glow { from { opacity: .65; } to { opacity: 1; } }
@keyframes loader-bar { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* music button: bottom-right so it never covers hero actions */
.sound { left: auto; right: 1.2rem; }
@media (max-width: 640px) { .sound { left: auto; right: .9rem; } }

/* ===== iteration 2 (QA pass) ===== */
/* non-English first paint: hold the page until the strings are swapped (head script adds, i18n.js removes) */
.i18n-wait main, .i18n-wait .header, .i18n-wait .footer, .i18n-wait .flags { visibility: hidden; }

/* mantra ring may reach past its grid column; on narrow layouts only the outer ring shows */
.mantra-ring { max-width: none; }
.mantra-ring.is-single .ring-2 { display: none; }

/* laptop widths: the copy column reaches into the photograph, so the left veil runs further */
@media (min-width: 981px) and (max-width: 1280px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(34, 5, 10, .55) 0%, rgba(34, 5, 10, 0) 26%),
      linear-gradient(90deg, rgba(34, 5, 10, .8) 0%, rgba(34, 5, 10, .58) 42%, rgba(34, 5, 10, .18) 64%, rgba(34, 5, 10, 0) 78%),
      linear-gradient(0deg, rgba(34, 5, 10, .95) 0%, rgba(34, 5, 10, .45) 30%, rgba(34, 5, 10, 0) 55%);
  }
}

/* video thumbnails: date + title, and the one playing is lifted out of the list */
.video-list a { display: grid; align-content: start; gap: .15rem; }
.video-list .thumb { margin-bottom: .35rem; }
.video-list .when { font-size: .78rem; letter-spacing: .01em; color: var(--ink-soft); opacity: .85; }
.video-list .vt { font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.video-list a:hover .vt, .video-list a:focus-visible .vt { color: var(--maroon); }
html[lang="bo"] .video-list .vt { font-weight: 400; line-height: 1.6; }

/* phones: the music toggle joins the header (beside the menu button) so it never sits on content */
@media (max-width: 640px) {
  .sound { top: calc((var(--header-h) - 46px) / 2); bottom: auto; right: calc(var(--gutter) + 46px + .55rem); width: 46px; height: 46px; min-height: 0;
    background: rgba(255, 251, 242, .12); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: transform .5s var(--ease-out), background-color .45s var(--ease), opacity .3s; }
  .sound:hover { transform: none; background: rgba(255, 251, 242, .2); }
  .header.is-solid ~ .sound { background: rgba(106, 14, 25, .08); }
  .header.is-solid ~ .sound .sound__bars i { background: var(--maroon); }
  .header.is-hidden ~ .sound { transform: translateY(calc(-1 * var(--header-h) - 10px)); }
  .burger { margin-left: calc(46px + .55rem); }
}

/* ===== iteration 2: smoothness (composited-only loops, cheaper effects on phones) ===== */
/* "live" dot: the pulse ring scales on its own layer instead of repainting a box-shadow every frame */
.live-dot { position: relative; box-shadow: none; animation: none; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(91, 211, 154, .55); animation: live-ring 2.2s var(--ease-out) infinite; }
@keyframes live-ring { from { transform: scale(1); opacity: .8; } 70%, to { transform: scale(3.4); opacity: 0; } }
/* music bars: scaleY (compositor) instead of animating height (layout) */
.sound__bars i { height: 16px; transform: scaleY(.25); transform-origin: 50% 100%; transition: transform .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation-name: eq-s; }
@keyframes eq-s { from { transform: scaleY(.19); } to { transform: scaleY(1); } }
/* prayer flags rest while off-screen */
.flags.is-off .flag { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; opacity: 0; } }

/* phones and touch screens: no live backdrop blurs over moving imagery, no idle logo loop */
@media (max-width: 980px), (hover: none) {
  .next-card { background: rgba(34, 5, 10, .74); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.is-solid { background: rgba(246, 235, 210, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (hover: none) {
  .lmark.lm-play .lm-fig { animation: lm-fig 1.3s .55s var(--ease-out) both; }
  .lmark:not(.lm-play) .lm-fig { animation: none; }
}
.offer__bg picture { display: block; width: 100%; height: 100%; }

/* ===== article & project pages ===== (news.html, news-*.html, projects.html, project-*.html) */
.phero--compact { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.phero--compact h1 { font-size: var(--t-2xl); max-width: 18ch; }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ahero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin-bottom: 1.1rem; color: rgba(255, 251, 242, .74); font-size: .95rem; }
.ahero__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem) !important; line-height: 1.06 !important; max-width: 20ch; }
html[lang="bo"] .ahero__title { line-height: 1.5 !important; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem) !important; }
.ahero__img { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(246, 223, 164, .18); }
.ahero__img img { width: 100%; height: 100%; object-fit: cover; }
.cat--dark { background: rgba(233, 162, 59, .22); color: var(--gold-hi); }
.cat--dark[data-cat="projects"] { background: rgba(91, 211, 154, .16); color: #9FE3C4; }
.cat--dark[data-cat="community"] { background: rgba(140, 170, 230, .18); color: #C8D6F5; }
.proj__where--dark { color: var(--gold-hi); margin: 0; }

.article__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article__prose p:first-child::first-letter { float: left; font-family: var(--f-display); font-size: 3.55em; line-height: .8; padding: .1em .12em 0 0; color: var(--brand); }
html[lang="bo"] .article__prose p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
.article__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.avideo { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -30px rgba(34, 5, 10, .7); }
.avideo img, .avideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.avideo__play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .7rem; border: 0; background: linear-gradient(0deg, rgba(34, 5, 10, .75), rgba(34, 5, 10, .2)); color: var(--khata); font-weight: 700; }
.avideo__play .disc { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--night); box-shadow: 0 0 0 10px rgba(233, 162, 59, .25); transition: transform .4s var(--ease-out); }
.avideo__play .disc svg { width: 24px; margin-left: 3px; }
.avideo__play:hover .disc { transform: scale(1.08); }
.article__source { display: grid; grid-template-columns: 42px 1fr; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s, transform .4s var(--ease-out); }
.article__source:hover { box-shadow: 0 0 0 1px var(--saffron), 0 18px 40px -24px rgba(34, 5, 10, .5); transform: translateY(-2px); }
.article__source .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--butter-2); color: var(--brand); }
.article__source .ico svg { width: 18px; transform: rotate(-45deg); }
.article__source small { display: block; color: var(--ink-soft); font-size: .8rem; }
.article__source strong { display: block; font-size: 1rem; }
.article__source em { display: block; font-style: normal; color: var(--ink-soft); font-size: .85rem; word-break: break-all; }
.share { padding: 1.1rem 1.2rem; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--line); }
.share__t { font-family: var(--f-body); font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .7rem; }
.share__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .9rem; border: 0; border-radius: 999px; background: var(--butter-2); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .25s, color .25s; }
.share__btn:hover { background: var(--maroon); color: var(--khata); }
.share__btn svg { width: 15px; height: 15px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: clamp(2rem, 4vw, 3rem); }
.pn__link { display: grid; gap: .3rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-m); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
.pn__link:hover { background: var(--khata); box-shadow: inset 0 0 0 1px var(--saffron); }
.pn__link small { color: var(--ink-soft); font-size: .85rem; }
.pn__link strong { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.pn__link--next { text-align: right; }
.pn__link--prev small::before { content: "← "; } .pn__link--next small::after { content: " →"; }
.pn__link--empty { box-shadow: none; }

.more-news { padding-top: clamp(2rem, 5vw, 3.5rem); }
.more-news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.more-news__head h2 { font-size: var(--t-xl); }
.section-more { margin-top: 2rem; display: flex; justify-content: flex-end; }
.projects .section-more .link-arrow { color: var(--saffron); }

.ncards { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.ncards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ncards--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ncard { display: flex; flex-direction: column; border-radius: var(--radius-m); overflow: hidden; background: var(--khata); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.ncard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(233, 162, 59, .5), 0 26px 50px -30px rgba(34, 5, 10, .55); }
.ncard[hidden] { display: none; }
.ncard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--butter-2); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.ncard:hover .ncard__img img { transform: scale(1.05); }
.ncard__body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ncard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .84rem; color: var(--ink-soft); }
.ncard h3 { font-size: 1.3rem; line-height: 1.22; transition: color .25s; }
.ncard:hover h3 { color: var(--brand); }
.ncard p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.ncard--big { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ncard--big .ncard__img { aspect-ratio: auto; min-height: 100%; }
.ncard--big .ncard__body { justify-content: center; padding: clamp(1.4rem, 3vw, 2.4rem); }
.ncard--big h3 { font-size: var(--t-lg); }
@keyframes ncard-in { from { opacity: 0; transform: translateY(14px); } }
.news-index__filters { margin-bottom: 2rem; }
.nfilter { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); padding: .5rem 1rem; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .25s, color .25s, box-shadow .25s; }
.nfilter:hover { box-shadow: inset 0 0 0 1px var(--maroon); }
.nfilter[aria-pressed="true"] { background: var(--maroon); color: var(--khata); box-shadow: none; }
html[lang="bo"] .nfilter { padding-top: calc(.5rem + .18em); padding-bottom: calc(.5rem - .18em); font-family: var(--f-tib-body); }

.prows .wrap { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.prow { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.prow--flip .prow__img { order: 2; }
.prow__img { display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -45px rgba(34, 5, 10, .7); }
.prow__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.prow:hover .prow__img img { transform: scale(1.04); }
.prow__body h2 { font-size: var(--t-xl); margin: .4rem 0 .8rem; }
.prow__body h2 a { text-decoration: none; }
.prow__body h2 a:hover { color: var(--brand); }
.prow__body > p { color: var(--ink-soft); font-size: 1.08rem; }
.prow__stat { display: flex; align-items: baseline; gap: .7rem; padding: 1rem 0; margin: .4rem 0 1.4rem; border-block: 1px solid var(--line); }
.prow__stat b { font-family: var(--f-display); font-size: 2.3rem; color: var(--brand); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.prow__stat span { color: var(--ink-soft); font-size: .95rem; }

.pstory__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pstats { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pstats__t { grid-column: 1 / -1; font-family: var(--f-body); font-size: .95rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .2rem; }
.pstat { padding: 1.2rem 1.1rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); display: grid; gap: .35rem; align-content: start; }
.pstat:first-of-type { background: var(--night); color: var(--khata); box-shadow: none; }
.pstat b { font-family: var(--f-display); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); line-height: 1; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.pstat:first-of-type b { color: var(--gold-hi); }
.pstat span { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
.pstat:first-of-type span { color: rgba(255, 251, 242, .74); }

.phow { padding-top: 0; }
.phow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.phow__item { position: relative; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); }
.phow__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maroon); color: var(--gold-hi); font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 1rem; }
.phow__list--steps .phow__item:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(1.5rem, 3vw, 2.2rem) + 22px); right: calc(-1 * clamp(1rem, 2.2vw, 1.6rem)); width: clamp(1rem, 2.2vw, 1.6rem); height: 1px; background: var(--gold); }
.phow__ico { width: 36px; height: 36px; color: var(--saffron-deep); margin-bottom: 1rem; }
.phow__item h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.phow__item p { color: var(--ink-soft); margin: 0; }

.quote-band--long p { font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem) !important; line-height: 1.4 !important; }
.ptimeline__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.ptimeline__grid h2 { font-size: var(--t-xl); position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.ptimeline .timeline { margin-top: 0; }

.pgallery { padding-top: 0; }
.pgallery__t { font-size: var(--t-xl); margin-bottom: 1.6rem; }
.pgallery__grid { display: grid; gap: clamp(.8rem, 1.8vw, 1.2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgallery__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgal { margin: 0; }
.pgal__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--butter-2); cursor: zoom-in; }
.pgal__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pgal__btn:hover img { transform: scale(1.05); }
.pgal figcaption { margin-top: .6rem; font-size: .88rem; color: var(--ink-soft); font-style: italic; }
html[lang="bo"] .pgal figcaption { font-style: normal; }

.lightbox { border: 0; padding: 0; max-width: min(94vw, 1200px); max-height: 92vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 3, 6, .9); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 82vh; width: auto; height: auto; border-radius: var(--radius-m); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.lightbox figcaption { color: rgba(255, 251, 242, .8); text-align: center; margin-top: .8rem; font-style: italic; }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 251, 242, .12); color: var(--khata); font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--saffron); color: var(--night); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; translate: 0 -50%; } .lightbox__nav--next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox[open] { animation: lb-in .4s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

.pcta { padding-top: 0; }

@media (max-width: 980px) {
  .ahero__grid, .article__grid, .pstory__grid, .prow, .ptimeline__grid { grid-template-columns: 1fr; }
  .prow--flip .prow__img { order: 0; }
  .article__aside, .pstats, .ptimeline__grid h2 { position: static; }
  .ncards--3, .ncards--index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phow__list { grid-template-columns: 1fr; }
  .phow__list--steps .phow__item::after { display: none; }
  .pgallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ncards--3, .ncards--index { grid-template-columns: 1fr; }
  .ncard--big { grid-column: auto; display: flex; }
  .ncard--big .ncard__img { aspect-ratio: 16 / 10; }
  .pn { grid-template-columns: 1fr; }
  .pn__link--next { text-align: left; }
  .pgallery__grid, .pgallery__grid--2 { grid-template-columns: 1fr; }
  .pstats { grid-template-columns: 1fr 1fr; }
  .section-more { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ncard, .ncard__img img, .prow__img img, .pgal__btn img { transition: none; } }

/* ===== video play buttons: bottom-right so they never cover a face (owned by lead) ===== */
.video__play, .avideo__play { place-items: end; align-content: end; justify-content: end; padding: 1.4rem; }
.video__play .disc { width: 72px; height: 72px; box-shadow: 0 0 0 10px rgba(233, 162, 59, .25); }
.video__cap { right: calc(72px + 3.6rem); }
.avideo__play { grid-auto-flow: column; align-items: center; gap: .8rem; }
@media (max-width: 640px) {
  .video__play, .avideo__play { padding: .9rem; }
  .video__play .disc { width: 54px; height: 54px; box-shadow: 0 0 0 7px rgba(233, 162, 59, .25); }
  .video__play svg { width: 20px; }
  .video__cap { right: calc(54px + 2.4rem); }
}

/* ===== official wordmark (owned by lead) =====
   English: the exact outlined wordmark from the center's logo file.
   Mongolian / Tibetan: the same two-line lockup set in the closest faces (Forum / Alice; Jomolhari). */
.brand__word { display: block; width: clamp(190px, 17vw, 262px); line-height: 1; }
.brand__word--footer { width: min(300px, 100%); }
.header, .footer, .drawer { --wm-top: #EF6837; --wm-name: #F3D9A0; }
.header.is-solid { --wm-top: #EF6837; --wm-name: #8E000C; }
.menu-open .header { --wm-top: #EF6837; --wm-name: #F3D9A0; }
.wm--svg { display: block; width: 100%; height: auto; overflow: visible; }
.wm--svg .wm-top { fill: var(--wm-top); transition: fill .5s var(--ease); }
.wm--svg .wm-name { fill: var(--wm-name); transition: fill .5s var(--ease); }
.wm--txt { display: none; flex-direction: column; gap: .18em; }
.wm--txt .wm-top { font-family: "Forum", var(--f-display); color: var(--wm-top); font-size: clamp(.6rem, .45rem + .32vw, .78rem); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: color .5s var(--ease); }
.wm--txt .wm-name { font-family: "Alice", var(--f-display); color: var(--wm-name); font-size: clamp(1.3rem, .95rem + 1vw, 1.95rem); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; transition: color .5s var(--ease); }
html[lang="mn"] .wm--svg, html[lang="bo"] .wm--svg { display: none; }
html[lang="mn"] .wm--txt, html[lang="bo"] .wm--txt { display: flex; }
html[lang="bo"] .wm--txt { gap: 0; }
html[lang="bo"] .wm--txt .wm-top { font-family: var(--f-tib); font-size: clamp(.72rem, .6rem + .3vw, .9rem); letter-spacing: 0; text-transform: none; line-height: 1.5; }
html[lang="bo"] .wm--txt .wm-name { font-family: var(--f-tib); font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); letter-spacing: 0; text-transform: none; line-height: 1.35; }
.footer__brand { align-items: center; }
@media (max-width: 640px) {
  .brand__word { width: 178px; }
  .wm--txt .wm-top { font-size: .56rem; }
  .wm--txt .wm-name { font-size: 1.22rem; }
  html[lang="bo"] .wm--txt .wm-top { font-size: .7rem; }
  html[lang="bo"] .wm--txt .wm-name { font-size: 1.15rem; }
}

/* ===== center & gallery pages ===== */
.ctr-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.ctr-facts dt { font-size: .85rem; color: rgba(255, 251, 242, .6); }
.ctr-facts dd { margin: 0; font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-hi); line-height: 1.25; }
html[lang="bo"] .ctr-facts dd { font-family: var(--f-tib); font-size: 1.25rem; }

.ctr-mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.ctr-mission .section-head { margin-bottom: 0; }
.ctr-mission__body { font-size: 1.1rem; line-height: 1.75; max-width: 40rem; }
.ctr-mission__lead { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.4; color: var(--maroon); }
html[lang="bo"] .ctr-mission__lead { font-family: var(--f-tib); font-size: 1.35rem; line-height: 1.9; }

.ctr-values-sec { background: var(--night) url("../assets/img/brocade.webp"); background-size: 1040px; color: var(--khata); }
.ctr-values-sec::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 5, 10, .55), rgba(34, 5, 10, .8)); pointer-events: none; }
.ctr-values-sec .wrap { position: relative; }
.ctr-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.ctr-value { position: relative; padding: 1.8rem 1.5rem 1.7rem; border-radius: var(--radius-m); background: rgba(255, 251, 242, .05); box-shadow: inset 0 0 0 1px var(--line-light); transition: transform .5s var(--ease-out), background .4s, box-shadow .4s; }
.ctr-value:hover { transform: translateY(-4px); background: rgba(255, 251, 242, .08); box-shadow: inset 0 0 0 1px rgba(246, 223, 164, .4); }
.ctr-value__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem; background: rgba(233, 162, 59, .14); color: var(--saffron); box-shadow: inset 0 0 0 1px rgba(233, 162, 59, .35); }
.ctr-value__ico svg { width: 24px; height: 24px; }
.ctr-value h3 { font-size: 1.3rem; margin-bottom: .6rem; color: var(--gold-hi); }
.ctr-value p { font-size: .98rem; color: rgba(255, 251, 242, .78); margin: 0; }

.ctr-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.ctr-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-radius: var(--radius-m); overflow: hidden; background: var(--khata); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.ctr-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(34, 5, 10, .55); }
.ctr-card__img { overflow: hidden; min-height: 220px; }
.ctr-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ctr-card:hover .ctr-card__img img { transform: scale(1.05); }
.ctr-card__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.ctr-card__body h3 { font-size: 1.4rem; }
.ctr-card__body p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 .4rem; flex: 1; }

.ctr-roots .timeline { max-width: 46rem; }
.ctr-maplinks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: -.6rem; }
.ctr-etiquette { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); }
.ctr-etiquette h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.ctr-etiquette ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem 2rem; }
.ctr-etiquette li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.ctr-etiquette li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(233, 162, 59, .18); }

.ctr-help { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 0 0 1px rgba(233, 162, 59, .55); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 1.1rem; height: 1.1rem; color: var(--brand); transition: transform .4s var(--ease-out); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary:hover { color: var(--brand); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq__a .link-arrow { margin-left: .3rem; }

.ctr-contact { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); }
.cform { display: grid; gap: 1rem; }
.cform__field { display: grid; gap: .35rem; }
.cform label { font-weight: 700; font-size: .92rem; }
.cform input, .cform textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--butter); font: inherit; color: var(--ink); resize: vertical; transition: border-color .25s, box-shadow .25s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(233, 162, 59, .25); }
.cform [aria-invalid="true"] { border-color: var(--brand); }
.cform__err { min-height: 1.1em; font-size: .86rem; color: var(--brand); font-weight: 600; }
.cform__err:empty { display: none; }
.cform .btn { justify-self: start; }
/* honeypot for robots: off-screen, never focusable, hidden from assistive tech */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform, .signup form { position: relative; }
.cform__fail { margin: 0; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(106, 14, 25, .08); color: var(--brand); font-weight: 700; }
.cform__fail[hidden] { display: none; }
.cform button[aria-busy="true"], .signup button[aria-busy="true"] { opacity: .7; cursor: progress; }
.cform__ok { margin: 0; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(47, 107, 90, .1); color: var(--malachite); font-weight: 700; }

/* gallery */
.gal-sec { padding-top: clamp(2.5rem, 5vw, 4rem); }
.gal-filters { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.gal-grid { columns: 3 300px; column-gap: clamp(.9rem, 1.6vw, 1.3rem); }
.gal-item { break-inside: avoid; margin: 0 0 clamp(.9rem, 1.6vw, 1.3rem); }
.gal-item[hidden] { display: none; }
.gal-item__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--butter-2); cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }
.gal-item__btn img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter .5s; }
.gal-item__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34, 5, 10, .35), transparent 45%); opacity: 0; transition: opacity .4s; }
.gal-item__btn:hover img { transform: scale(1.04); }
.gal-item__btn:hover::after { opacity: 1; }
.gal-item__btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.gal-badge { position: absolute; left: .7rem; top: .7rem; z-index: 1; padding: .2rem .6rem; border-radius: 999px; background: rgba(34, 5, 10, .72); color: var(--gold-hi); font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); }
html[lang="bo"] .gal-badge { font-family: var(--f-tib-body); font-weight: 400; padding-top: .3rem; padding-bottom: .05rem; }
.gal-item figcaption { padding: .55rem .2rem 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.gal-credit { display: block; font-size: .78rem; opacity: .75; margin-top: .15rem; }
.gal-credits { margin-top: 2.4rem; font-size: .86rem; color: var(--ink-soft); max-width: 60rem; }

.glb { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-rows: 1fr auto; background: rgba(20, 3, 6, .94); color: var(--khata); opacity: 0; transition: opacity .3s var(--ease); }
.glb[hidden] { display: none; }
.glb.is-open { opacity: 1; }
.glb__stage { position: relative; display: grid; place-items: center; padding: clamp(3.5rem, 6vw, 4.5rem) clamp(1rem, 6vw, 5.5rem) 1rem; min-height: 0; }
.glb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); transition: opacity .25s; }
.glb.is-loading .glb__img { opacity: .35; }
.glb__spinner { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(246, 223, 164, .25); border-top-color: var(--saffron); opacity: 0; animation: glb-spin 1s linear infinite; transition: opacity .2s; }
.glb.is-loading .glb__spinner { opacity: 1; }
@keyframes glb-spin { to { transform: rotate(360deg); } }
.glb__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem clamp(1rem, 6vw, 5.5rem) 1.4rem; }
.glb__cap { margin: 0; font-size: .98rem; color: rgba(255, 251, 242, .86); max-width: 60rem; }
.glb__count { font-size: .85rem; color: rgba(255, 251, 242, .55); white-space: nowrap; font-variant-numeric: tabular-nums; }
.glb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 251, 242, .1); color: var(--khata); transition: background .25s, transform .3s var(--ease-out); }
.glb__btn:hover { background: rgba(233, 162, 59, .9); color: var(--night); }
.glb__btn svg { width: 22px; height: 22px; }
.glb__close { top: 1rem; right: 1rem; }
.glb__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.glb__next { right: 1rem; top: 50%; translate: 0 -50%; }

@media (max-width: 980px) {
  .ctr-mission, .ctr-help { grid-template-columns: 1fr; }
  .ctr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctr-offer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ctr-values { grid-template-columns: 1fr; }
  .ctr-card { grid-template-columns: 1fr; }
  .ctr-card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .gal-grid { columns: 2 150px; }
  .gal-item figcaption { font-size: .84rem; }
  .glb__prev, .glb__next { top: auto; bottom: 4.6rem; translate: none; }
  .glb__bar { padding-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .glb, .gal-item__btn img, .ctr-card, .ctr-value { transition: none; } .glb__spinner { animation: none; } }

/* ===== buddhism & buddha pages ===== */
.truths { list-style: none; counter-reset: t; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .9rem; }
.truths li { counter-increment: t; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); }
.truths li::before { content: counter(t); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: var(--gold-hi); font-family: var(--f-display); font-size: 1.15rem; }
.truths b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; color: var(--maroon); line-height: 1.3; }
.truths span { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }
html[lang="bo"] .truths li::before { font-family: var(--f-display); }

.path8 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 2rem; }
.path8__group { padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: var(--night); color: var(--khata); }
.path8__group h3 { font-family: var(--f-display); font-size: 1.2rem; color: var(--saffron); margin-bottom: .5rem; }
.path8__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .97rem; color: rgba(255, 251, 242, .86); }
.path8__group li::before { content: "◦ "; color: var(--gold); }

.masters { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .1rem; border-top: 1px solid var(--line); }
.masters li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.masters b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--maroon); }
.masters span { font-size: 1rem; color: var(--ink-soft); line-height: 1.55; }

.fig-pair { max-width: 26rem; margin-inline: auto !important; }
.fig-pair img { border-radius: var(--radius-m); box-shadow: 0 30px 60px -30px rgba(34, 5, 10, .6); }
.figrow { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; margin: 2.2rem 0; align-items: start; }
.figrow figure { margin: 0; }
.figrow img { width: 100%; border-radius: var(--radius-m); aspect-ratio: 4 / 3; object-fit: cover; }
.figrow figure:last-child img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.figrow figcaption { font-size: .88rem; color: var(--ink-soft); font-style: italic; margin-top: .6rem; }

.schools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0 2rem; }
.schools div { padding: 1.1rem 1.2rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); display: grid; gap: .35rem; transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.schools div:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold), 0 18px 30px -20px rgba(34, 5, 10, .45); }
.schools b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--maroon); }
.schools div:last-child { background: var(--night); box-shadow: none; }
.schools div:last-child b { color: var(--saffron); }
.schools div:last-child span { color: rgba(255, 251, 242, .82); }
.schools span { font-size: .97rem; color: var(--ink-soft); line-height: 1.55; }

/* eight auspicious symbols */
.syms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sym { position: relative; display: grid; justify-items: center; align-content: start; gap: .35rem; min-height: 15.5rem; padding: 1.6rem 1.1rem 1.2rem; border: 0; border-radius: var(--radius-m);
  background: var(--khata); box-shadow: 0 0 0 1px var(--line); text-align: center; overflow: hidden; isolation: isolate;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out), background .5s var(--ease); }
.sym::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 30%, rgba(233, 162, 59, .22), transparent 62%); opacity: 0; transition: opacity .6s var(--ease); }
.sym__icon { width: 74px; height: 74px; color: var(--saffron-deep); transition: transform .8s var(--ease-out), color .4s; }
.sym b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--maroon); margin-top: .3rem; }
.sym__tib { font-family: var(--f-tib); font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6; }
.sym__p { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); max-height: 0; opacity: 0; transform: translateY(8px); transition: max-height .6s var(--ease-out), opacity .45s var(--ease), transform .6s var(--ease-out); }
.sym:hover, .sym[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--gold), 0 24px 40px -26px rgba(34, 5, 10, .55); transform: translateY(-4px); }
.sym:hover::before, .sym[aria-expanded="true"]::before { opacity: 1; }
.sym:hover .sym__icon, .sym[aria-expanded="true"] .sym__icon { transform: scale(.82) translateY(-4px); color: var(--brand); }
.sym[aria-expanded="true"] .sym__p { max-height: 9rem; opacity: 1; transform: none; }
@media (hover: hover) { .sym:hover .sym__p { max-height: 9rem; opacity: 1; transform: none; } }
.sym:hover .sym__icon[viewBox] { transform: scale(.82) translateY(-4px) rotate(45deg); }
html[lang="bo"] .sym b { font-family: var(--f-tib); font-weight: 400; }

.teach-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.tcard { padding: 1.6rem 1.5rem; border-radius: var(--radius-m); background: var(--khata); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .7rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold), 0 20px 36px -24px rgba(34, 5, 10, .5); }
.tcard h3 { font-size: 1.4rem; color: var(--maroon); }
.tcard p { color: var(--ink-soft); font-size: 1rem; margin: 0; flex: 1; }
.flag-chips { display: flex; gap: 5px; }
.flag-chips i { width: 26px; height: 32px; border-radius: 2px 2px 4px 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.buddha-note { margin-top: 2rem; max-width: 46rem; color: var(--ink-soft); font-style: italic; font-family: var(--f-display); font-size: 1.1rem; }

.deeds { counter-reset: d; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.4rem; }
.deeds li { counter-increment: d; display: flex; gap: .8rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.deeds li::before { content: counter(d, decimal-leading-zero); font-family: var(--f-display); color: var(--saffron-deep); font-size: 1.05rem; min-width: 1.8rem; }

.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.place { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--khata); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.place:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gold), 0 26px 44px -28px rgba(34, 5, 10, .55); }
.place__img { aspect-ratio: 4 / 5; overflow: hidden; }
.place__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.place:hover .place__img img { transform: scale(1.05); }
.place figcaption { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.place b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--maroon); }
.place span { font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }

.credits { max-width: 46rem; font-size: .9rem; color: var(--ink-soft); }
.credits summary { cursor: pointer; font-weight: 700; color: var(--maroon); padding: .4rem 0; }
.credits ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

@media (max-width: 980px) {
  .syms, .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path8 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .figrow, .schools, .deeds { grid-template-columns: 1fr; }
  .masters li { grid-template-columns: 1fr; gap: .2rem; }
  .sym { min-height: 13rem; padding: 1.2rem .8rem 1rem; }
  .sym__icon { width: 58px; height: 58px; }
}
@media (max-width: 380px) { .places { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sym, .sym__icon, .sym__p, .place, .place__img img, .schools div, .tcard { transition: none; } }
/* wordmark: top line sits a little closer to the name (client request) */
.wm--svg .wm-top { transform: translateY(400px); }
.wm--txt { gap: .04em; }
html[lang="bo"] .wm--txt .wm-top { line-height: 1.3; }

/* timelines whose labels are words (The Buddha), not years: wider label column so labels never touch the line */
.timeline--words::before, .timeline--words .timeline__progress { left: 9.6rem; }
.timeline--words li { grid-template-columns: 8.4rem 1fr; gap: 2.4rem; }
.timeline--words li::before { left: calc(9.6rem - 6px); }
.timeline--words time { font-size: 1.12rem; line-height: 1.25; padding-top: .15rem; overflow-wrap: anywhere; hyphens: auto; }
html[lang="bo"] .timeline--words time { font-size: 1rem; line-height: 1.5; padding-top: 0; }
@media (max-width: 640px) {
  .timeline--words::before, .timeline--words .timeline__progress { left: .35rem; }
  .timeline--words li { grid-template-columns: 1fr; gap: .2rem; }
  .timeline--words li::before { left: -.05rem; }
}



/* ===== prayer flags: image-based, transform-only animation (owned by lead) ===== */
.flags { position: relative; height: clamp(130px, 14.6vw, 210px); margin-bottom: -2px; overflow: hidden; pointer-events: none; contain: layout paint; }
.flags .flags__line { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; }
.flags .flag-pin { position: absolute; display: block; transform: rotate(var(--rot)); transform-origin: 50% 9%; }
.flags .flag { display: block; width: 100%; height: auto; transform-origin: 50% 9%; animation: flag-sway var(--fd, 3.4s) ease-in-out var(--fdl, 0s) infinite alternate; animation-play-state: paused; will-change: transform; backface-visibility: hidden; }
.flags.is-live .flag { animation-play-state: running; }
.flags svg.flags__line { filter: none !important; }
@media (prefers-reduced-motion: reduce) { .flags .flag { animation: none; } }

/* mantra ring: each ring is its own composited layer, rotated as a whole (no per-frame SVG repaint) */
.mantra-ring__layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; transform-origin: 50% 50%; overflow: visible; }
.mantra-ring__layer text { font-family: var(--f-tib); fill: var(--gold); letter-spacing: 2px; }
.mantra-ring__layer.ring-2 text { fill: rgba(246, 223, 164, .55); }

/* ===== scrolled (sticky) header: keep the logo's small top line readable on the cream bar (owned by lead) ===== */
.header.is-solid { --wm-top: #B5461C; background: rgba(246, 235, 210, .97); }
.header.is-solid .wm--svg .wm-top { stroke: var(--wm-top); stroke-width: 34px; paint-order: stroke; }
.header.is-solid .wm--txt .wm-top { font-weight: 600; -webkit-text-stroke: .25px currentColor; }

/* items without text in the visitor's language are not shown in it (data-langs from the server) */
html[lang="en"] [data-langs]:not([data-langs~="en"]), html[lang="mn"] [data-langs]:not([data-langs~="mn"]), html[lang="bo"] [data-langs]:not([data-langs~="bo"]) { display: none !important; }

/* donation page (Givebutter form beside the text) */
.donation__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .donation__grid { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); } }
.donation__form { min-height: 420px; }
.donation__text p { max-width: 62ch; }
