/* ──────────────────────────────────────────────────────────────
   Rideekanda Forest Monastery — home page  ·  rk/rk.css
   Paper & forest palette, saffron accent. Fraunces (display),
   Hanken Grotesk (text), Noto Serif Sinhala.
   ────────────────────────────────────────────────────────────── */
:root {
  --bg: #ece7da; --bg-2: #e3dccb; --card: #f4f0e6;
  --ink: #17201a; --ink-2: #48524a; --mute: #79816f;
  --line: rgba(23, 32, 26, .15); --accent: #b4601a; --accent-2: #d98a3a;
  --forest: #0d1510; --forest-2: #131e17; --forest-ink: #ebe6d6; --forest-mute: #97a08f; --forest-line: rgba(235, 230, 214, .16);
  --saffron: #e39a48;
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-si: "Noto Serif Sinhala", "Iskoola Pota", serif;
  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
:root[data-theme="dark"] {
  --bg: #0c120e; --bg-2: #111a14; --card: #151f18;
  --ink: #ebe6d6; --ink-2: #bdbcaa; --mute: #848d7e;
  --line: rgba(235, 230, 214, .15); --accent: #e39a48; --accent-2: #f0b469;
  --forest: #070c09; --forest-2: #0e1611;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums;
  overflow-x: clip; transition: background-color .5s ease, color .5s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
em { font-style: italic; }
[lang="si"] { font-family: var(--f-si); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
main { position: relative; z-index: 2; }

/* ── type ── */
.display, .h1, .h2 { font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em; line-height: 1; font-variant-numeric: lining-nums; }
.display { font-size: clamp(3.4rem, 10.4vw, 10.6rem); line-height: .92; }
.h1 { font-size: clamp(2.8rem, 6.9vw, 6.8rem); }
.h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.04; }
.display em, .h1 em, .h2 em { font-weight: 300; color: var(--accent); }
.dark .display em, .dark .h1 em, .dark .h2 em, .on-sky em { color: var(--saffron); }
.label {
  display: flex; align-items: center; gap: .9em;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--mute);
}
.label b { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.45em; letter-spacing: .02em; color: var(--accent); }
.label b::after { content: ""; display: inline-block; width: 2.6em; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin-left: .9em; }
.on-sky, .label.on-sky { color: #f3eee0; }
.label.on-sky b { color: var(--saffron); }

/* split-text helpers: lines clip their rising words */
.split-line-mask { padding: .06em .08em .16em 0; margin: -.06em -.08em -.16em 0; }

/* ── logo (official mark, tinted with currentColor through a mask) ── */
.logo {
  display: inline-block; width: 46px; aspect-ratio: 593 / 388; background: currentColor; flex: none;
  -webkit-mask: url(../rideekanda-logo.svg) center / contain no-repeat; mask: url(../rideekanda-logo.svg) center / contain no-repeat;
}

/* ── arrows ── */
.arr { position: relative; display: inline-block; width: 1.05em; height: 1.05em; flex: none; overflow: hidden; }
.arr::before, .arr::after {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.arr::after { transform: translateX(-130%); }
a:hover .arr::before, button:hover .arr::before { transform: translateX(130%); }
a:hover .arr::after, button:hover .arr::after { transform: none; }
.arr.back { transform: scaleX(-1); }

/* ── buttons ── */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: .7em; isolation: isolate; overflow: hidden;
  padding: 1.05em 1.7em; border-radius: 999px; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap; will-change: transform; transition: color .45s var(--ease), border-color .45s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pill-fill, var(--ink));
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.pill:hover::before { transform: none; }
.pill-solid { background: var(--saffron); color: #1a1208; --pill-fill: #f6ead4; }
.pill-glass { color: #f6f1e4; border: 1px solid rgba(246, 241, 228, .45); background: rgba(10, 16, 12, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); --pill-fill: #f6f1e4; }
.pill-glass:hover { color: #141a15; border-color: #f6f1e4; }
.pill-line { border: 1px solid currentColor; --pill-fill: var(--saffron); }
.pill-line:hover { color: #1a1208; border-color: var(--saffron); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .7em; padding-bottom: .35em; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.ic-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--hd-line, rgba(255,255,255,.3));
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.ic-btn:hover { background: var(--hd-hover, rgba(255,255,255,.14)); }
.ic-btn svg { width: 18px; height: 18px; }
.lang-btn { font-family: var(--f-si); font-size: .82rem; font-weight: 500; line-height: 1; text-decoration: none; padding-top: .1em; }
.lang-btn[lang="en"] { font-family: var(--f-text); font-size: .7rem; letter-spacing: .1em; padding-top: 0; }
.lang-btn:hover { background: var(--saffron); border-color: var(--saffron); color: #1a1208; }
.ic-btn.lg { width: 56px; height: 56px; border-color: var(--line); }
.ic-btn.lg:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── loader ── */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0a100c; color: #ebe6d6;
}
.loader-in { display: grid; justify-items: center; gap: 1.6rem; }
.loader-logo { width: 92px; color: var(--saffron); animation: breatheLogo 3.2s ease-in-out infinite; }
@keyframes breatheLogo { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
.loader-word { display: grid; justify-items: center; gap: .5rem; font-family: var(--f-display); font-size: 1.9rem; font-weight: 300; }
.loader-word span { font-family: var(--f-text); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #8f9889; }
.loader-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 44px; height: 1px; background: rgba(235, 230, 214, .16); }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: 0 50%; }
.loader-num { position: absolute; right: var(--gut); bottom: 58px; font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: #8f9889; font-variant-numeric: lining-nums tabular-nums; }

/* ── fixed layers ── */
.sky { position: fixed; inset: 0; z-index: 0; background: #0a100c; }
.sky canvas { width: 100%; height: 100%; display: block; }
.sky-eagle { position: absolute; left: 0; top: 0; width: clamp(54px, 5.6vw, 96px); height: auto; fill: #080b09; opacity: 0; pointer-events: none; will-change: transform, opacity; filter: blur(.3px); }
.no-webgl .sky-eagle { display: none; }
.sky-fallback { display: none; position: absolute; inset: 0; background: linear-gradient(#0c1420 0%, #2a3350 40%, #b0705a 62%, #1c2a22 63%, #060a08 100%); }
.no-webgl .sky canvas { display: none; }
.no-webgl .sky-fallback { display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { mix-blend-mode: multiply; opacity: .05; filter: invert(1); }
.veil { position: fixed; inset: 0; z-index: 180; background: #0a100c; transform: translateY(101%); pointer-events: none; }

/* ── cursor ── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 190; pointer-events: none; mix-blend-mode: difference; color: #fff; }
  .cursor i {
    position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    transition: transform .4s var(--ease), opacity .3s;
  }
  .cursor span {
    position: absolute; left: 0; top: 0; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: #000; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
    transform: scale(0); transition: transform .45s var(--ease);
  }
  .cursor.is-link i { transform: scale(4.2); opacity: .55; }
  .cursor.is-label i { opacity: 0; }
  .cursor.is-label span { transform: scale(1); }
  .cursor.is-hidden { opacity: 0; }
}

/* ── header ── */
.hd {
  position: fixed; z-index: 120; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gut); color: #f4efe2; --hd-line: rgba(244, 239, 226, .32); --hd-hover: rgba(244, 239, 226, .14);
  transition: transform .6s var(--ease), color .4s, padding .4s var(--ease);
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s;
}
.hd.is-solid { color: var(--ink); --hd-line: var(--line); --hd-hover: color-mix(in srgb, var(--ink) 9%, transparent); padding-block: 11px; }
.hd.is-solid::before { opacity: 1; }
.hd.is-hidden { transform: translateY(-105%); }
.menu-open .hd { color: #f4efe2; --hd-line: rgba(244, 239, 226, .32); transform: none; }
.menu-open .hd::before { opacity: 0; }
.hd-brand { display: flex; align-items: center; gap: .8rem; }
.hd-brand .logo { width: 44px; color: var(--saffron); transition: transform .8s var(--ease); }
.hd.is-solid .hd-brand .logo { color: var(--accent); }
.hd-brand:hover .logo { transform: scale(1.08); }
.hd-name { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.hd-name small { display: block; margin-top: .38em; font-family: var(--f-text); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; opacity: .72; }
.hd-links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.hd-links a { position: relative; padding: .5em 0; }
.hd-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.hd-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.hd-tools { display: flex; align-items: center; gap: .55rem; }
.hd-book { padding: .86em 1.35em; font-size: .76rem; border: 1px solid var(--hd-line); --pill-fill: var(--saffron); }
.hd-book:hover { color: #1a1208; border-color: var(--saffron); }
.menu-btn { display: inline-flex; align-items: center; gap: .8rem; height: 42px; padding: 0 .3rem 0 .9rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.menu-btn-t { display: grid; height: 1.3em; overflow: hidden; line-height: 1.3; text-align: right; }
.menu-btn-t b { font-weight: 500; transition: transform .5s var(--ease); }
.menu-open .menu-btn-t b { transform: translateY(-100%); }
.menu-btn-i { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hd-line); transition: background-color .3s; }
.menu-btn:hover .menu-btn-i { background: var(--hd-hover); }
.menu-btn-i i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn-i i:first-child { transform: translateY(-3.5px); }
.menu-btn-i i:last-child { transform: translateY(3.5px); }
.menu-open .menu-btn-i i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn-i i:last-child { transform: rotate(-45deg); }
.bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.bars i { width: 1.5px; height: 4px; background: currentColor; border-radius: 1px; transition: height .3s; }
[aria-pressed="true"] .bars i { animation: bars 1.1s ease-in-out infinite; }
[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ── menu ── */
.menu { position: fixed; inset: 0; z-index: 110; color: #ebe6d6; overflow: hidden; }
.menu-bg { position: absolute; inset: 0; background: #0a100c; clip-path: inset(0 0 100% 0); }
.menu-in {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: end;
  padding: 120px var(--gut) clamp(28px, 5vh, 56px);
}
.menu .label { color: #8f9889; margin-bottom: 1.4rem; }
.menu-big a { display: flex; align-items: baseline; gap: 1.2rem; padding: .08em 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 5.6vh, 4.2rem); line-height: 1.1; letter-spacing: -.02em; transition: color .4s; }
.menu-big a span { display: inline-block; transition: transform .6s var(--ease); }
.menu-big li { overflow: hidden; }
.menu-big a small { font-size: .82rem; letter-spacing: 0; color: #8f9889; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); }
.menu-big a:hover { color: var(--saffron); font-style: italic; }
.menu-big a:hover span { transform: translateX(.3em); }
.menu-big a:hover small { opacity: 1; transform: none; }
.menu-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; align-content: end; }
.menu-col li a { display: inline-block; padding: .28em 0; color: #cfcab9; font-size: .98rem; transition: color .3s, transform .4s var(--ease); }
.menu-col li a:hover { color: var(--saffron); transform: translateX(4px); }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(235, 230, 214, .16); font-size: .86rem; color: #a9ad9c; }
.menu-foot a:hover { color: var(--saffron); }
.menu-social { display: flex; gap: 1.4rem; margin-left: auto; }
.menu-preview { position: absolute; right: var(--gut); top: 120px; width: min(30vw, 420px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.94); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; }
.menu-preview.on { opacity: 1; transform: none; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── hero ── */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: #f6f1e4;
  padding: 104px var(--gut) clamp(22px, 4vh, 40px); text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 52% at 50% 42%, rgba(6, 10, 8, .2), transparent 74%), linear-gradient(rgba(6, 10, 8, .4), transparent 24%); pointer-events: none; }
.hero > * { position: relative; }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .82; }
.hero-mid { align-self: center; display: grid; justify-items: center; padding-block: 2vh 6vh; }
.hero-si { font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: .04em; color: #f3d9ad; margin-bottom: clamp(.6rem, 1.6vh, 1.2rem); }
.hero-title { font-family: var(--f-display); font-weight: 300; line-height: .86; letter-spacing: -.04em; text-shadow: 0 2px 40px rgba(5, 8, 6, .35); }
.ht-1 { display: block; font-size: clamp(3.4rem, 11.4vw, 11.5rem); white-space: nowrap; }
.ht-2 { display: block; margin-top: .12em; font-size: clamp(1.5rem, 3.7vw, 3.8rem); letter-spacing: -.015em; line-height: 1.1; }
/* "Forest" keeps the title's own colour: the sky behind it runs through saffron
   every dawn and dusk, and a saffron word disappeared into it. */
.ht-2 em { color: inherit; }
.ht-2 { text-shadow: 0 1px 22px rgba(5, 8, 6, .55); }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-lead { margin-top: clamp(1.2rem, 3vh, 2rem); max-width: 30em; font-size: clamp(1rem, 1.25vw, 1.2rem); font-weight: 300; opacity: .92; }
.hero-meta { display: grid; justify-items: center; gap: .55em; margin-top: clamp(1.2rem, 3vh, 2rem); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .86; text-align: center; }
html:not([lang="si"]) .hero { grid-template-rows: 1fr auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: clamp(1.4rem, 3.4vh, 2.4rem); }
.hero-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 1rem; min-height: 1px; }
.now {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem .7rem .9rem; border-radius: 999px; text-align: left;
  background: rgba(8, 13, 10, .34); border: 1px solid rgba(246, 241, 228, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .78rem; letter-spacing: .04em;
}
.now-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 0 rgba(227, 154, 72, .7); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(227, 154, 72, 0); } }
.now-k { text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; opacity: .7; }
.hero { grid-template-columns: minmax(0, 1fr); }
.hero-foot > * { min-width: 0; }
.now { max-width: 100%; min-width: 0; }
.now-a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-t { white-space: nowrap; flex: none; font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; font-variant-numeric: lining-nums tabular-nums; }
.now-a { opacity: .86; }
.now-a:not(:empty)::before { content: "·"; margin-right: .7rem; opacity: .5; }
.scroll-cue { display: grid; justify-items: center; gap: .7rem; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 54px; background: rgba(246, 241, 228, .25); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #f6f1e4; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

/* ── sections ── */
.sec { position: relative; background: var(--bg); padding-block: clamp(90px, 14vh, 190px); transition: background-color .5s; }
.dark { background: var(--forest); color: var(--forest-ink); --line: var(--forest-line); --mute: var(--forest-mute); --ink: var(--forest-ink); --ink-2: #c3c2b0; --accent: var(--saffron); --bg: var(--forest); --card: var(--forest-2); }
.mist-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 18vh; pointer-events: none; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 34%, color-mix(in srgb, var(--bg) 22%, transparent) 66%, transparent 100%); }
.hero, .day { z-index: 1; }
.sec-head { display: grid; gap: 1.6rem; margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 2rem clamp(2rem, 6vw, 7rem); }
.sec-head.two > .link-arrow { justify-self: end; }
.sec-lead { max-width: 34em; color: var(--ink-2); font-size: 1.06rem; }
.clip { overflow: hidden; border-radius: 3px; }
.clip img { width: 100%; height: 100%; object-fit: cover; }

/* 01 about */
.statement { margin-top: clamp(28px, 5vh, 56px); max-width: 18em; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.1rem, 5.2vw, 5.1rem); line-height: 1.06; letter-spacing: -.025em; }
.statement .word { opacity: .14; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(80px, 14vh, 180px); align-items: start; }
.about-fig-a { grid-column: 1 / span 6; grid-row: 1 / span 2; aspect-ratio: 4 / 5; position: relative; }
.about-fig-a figcaption { position: absolute; left: 1.1rem; bottom: 1rem; color: #f6f1e4; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.about-copy { grid-column: 8 / span 5; grid-row: 1; padding-top: clamp(0px, 4vh, 60px); display: grid; gap: 1.3rem; }
.about-copy .h2 { margin-bottom: .6rem; }
.about-copy p { color: var(--ink-2); max-width: 31em; }
.row-cta { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; margin-top: 1rem; }
.about-fig-b { grid-column: 10 / span 3; grid-row: 2; aspect-ratio: 4 / 5; margin-top: clamp(40px, 7vh, 90px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 13vh, 170px); border-top: 1px solid var(--line); }
.facts li { padding: 1.8rem 1.6rem 0 0; display: grid; gap: .9rem; align-content: start; }
.facts li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.facts b { display: flex; align-items: baseline; gap: .4rem; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.facts b small { font-family: var(--f-text); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--accent); }
.facts li > span { color: var(--ink-2); font-size: .94rem; max-width: 17em; }

/* 02 path */
.path { position: relative; overflow: hidden; }
.path-track { display: flex; align-items: stretch; width: max-content; height: 100svh; will-change: transform; }
.path-panel { flex: none; height: 100%; display: grid; align-content: center; padding: 110px clamp(28px, 6vw, 110px) 90px; }
.path-intro { width: min(100vw, 980px); gap: 1.8rem; }
.path-lead { max-width: 30em; color: #c3c2b0; font-size: 1.1rem; }
.path-hint { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--forest-mute); }
.path-hint .arr::before { animation: nudge 1.8s var(--ease-io) infinite; }
.path-hint .arr::after { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(-20%); } 50% { transform: translateX(25%); } }
.path-step { width: min(92vw, 1120px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.path-img { height: min(68svh, 640px); overflow: hidden; border-radius: 3px; }
.path-img img { width: 124%; max-width: none; height: 100%; object-fit: cover; margin-left: -12%; will-change: transform; }
.path-copy { position: relative; display: grid; gap: 1rem; max-width: 27em; }
.path-num { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(5rem, 12vw, 11rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(227, 154, 72, .6); margin-bottom: .6rem; }
.pali { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--saffron); }
.path-copy p:not(.pali) { color: #c3c2b0; }
.path-end { width: min(100vw, 900px); gap: 2.2rem; justify-items: start; }
.path-end blockquote { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.16; letter-spacing: -.015em; }
.path-end cite { display: block; margin-top: 1.2rem; font-family: var(--f-text); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--forest-mute); }
.path-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.path-tags li { padding: .5em 1.1em; border: 1px solid var(--forest-line); border-radius: 999px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #c3c2b0; }
.path-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; height: 1px; background: var(--forest-line); }
.path-bar i { display: block; height: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: 0 50%; }

/* 03 day */
.day { position: relative; color: #f6f1e4; }
.day-pin { position: relative; height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: 110px var(--gut) clamp(24px, 4vh, 44px); overflow: hidden; }
.day-shade { position: absolute; inset: 0; background: linear-gradient(rgba(6, 10, 8, .5), transparent 34%, transparent 58%, rgba(6, 10, 8, .62)); pointer-events: none; }
.day-pin > *:not(.day-shade) { position: relative; }
.day-head { display: grid; gap: 1rem; }
.day-read { align-self: center; text-shadow: 0 2px 30px rgba(5, 8, 6, .45); }
.day-time { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.4rem, 12.5vw, 12rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.day-act { margin-top: .6rem; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 1.15; }
.day-si { margin-top: .5rem; font-size: clamp(.95rem, 1.4vw, 1.2rem); color: #f3d9ad; }
.day-ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 1.4rem; }
.day-ticks li { position: relative; padding-top: 12px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 241, 228, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; cursor: pointer; }
.day-ticks li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(246, 241, 228, .25); border-radius: 2px; transition: background-color .4s; }
.day-ticks li.is-on { color: #f6f1e4; }
.day-ticks li.is-on::before { background: var(--saffron); }
.day-ticks li.is-now::after { content: "now"; margin-left: .6em; padding: .1em .5em; border-radius: 99px; background: var(--saffron); color: #1a1208; font-weight: 600; font-size: .9em; }

/* 04 retreats */
.rt-list { border-top: 1px solid var(--line); }
.rt-list li a { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1.3fr) auto auto; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.3rem, 3vh, 2.2rem) clamp(.4rem, 1.5vw, 1.6rem); border-bottom: 1px solid var(--line); transition: color .45s var(--ease), padding .6s var(--ease); isolation: isolate; }
.rt-list li a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.rt-list li a:hover { color: var(--bg); padding-inline: clamp(1rem, 2.6vw, 2.8rem); }
.rt-list li a:hover::before { transform: scaleY(1); }
.rt-n { font-family: var(--f-display); font-style: italic; color: var(--accent); font-size: 1.25rem; }
.rt-date { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.rt-date small { font-size: .42em; letter-spacing: .02em; opacity: .7; margin-left: .5em; }
.rt-name { color: var(--ink-2); font-size: .98rem; transition: color .45s; }
.rt-list li a:hover .rt-name { color: inherit; }
.rt-in { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .5em 1em; border-radius: 99px; border: 1px solid currentColor; opacity: .8; white-space: nowrap; }
.rt-in.soon { background: var(--saffron); border-color: var(--saffron); color: #1a1208; opacity: 1; }
.rt-list .arr { font-size: 1.5rem; }
.rt-fallback a { display: block !important; }
.rt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 2.4rem; }
.poya { display: flex; align-items: center; gap: .9rem; color: var(--ink-2); font-size: .96rem; }
.moon { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff8e6, #e8d7a8 60%, #cdb980); box-shadow: 0 0 22px rgba(232, 215, 168, .55); flex: none; }

/* 05 life */
.life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); align-items: start; }
.life-card:nth-child(2) { margin-top: clamp(40px, 9vh, 120px); }
.life-card figure { aspect-ratio: 4 / 5; margin-bottom: 1.4rem; }
.life-card figure img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.life-card:hover figure img { transform: scale(1.04); }
.life-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.95rem; letter-spacing: -.01em; margin-bottom: .6rem; }
.life-card p { color: var(--ink-2); font-size: .98rem; max-width: 26em; }

/* 06 teachers */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 90px); margin-bottom: 3.4rem; }
.t-card:nth-child(2) { margin-top: clamp(0px, 10vh, 130px); }
.t-card figure { aspect-ratio: 4 / 5; background: #000; margin-bottom: 1.6rem; transform-style: preserve-3d; }
.t-card figure img { object-position: 50% 18%; filter: saturate(.92); transition: transform 1.2s var(--ease), filter .6s; }
.t-card:hover figure img { transform: scale(1.04); filter: saturate(1.05); }
.t-role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--saffron); margin-bottom: .8rem; }
.t-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.9vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 1rem; max-width: 16em; }
.t-card > p:last-child { color: #c3c2b0; max-width: 32em; }

/* 07 explore */
.x-list { border-top: 1px solid var(--line); }
.x-list a { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.3fr) auto; align-items: baseline; gap: clamp(.8rem, 2.4vw, 2.6rem); padding: clamp(1rem, 2.5vh, 1.7rem) .4rem; border-bottom: 1px solid var(--line); transition: opacity .4s, padding .6s var(--ease); }
.x-list a i { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.x-list a h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 3.9vw, 3.6rem); line-height: 1.04; letter-spacing: -.028em; transition: transform .6s var(--ease), font-style 0s; }
.x-list a span { color: var(--mute); font-size: .98rem; }
.x-list a p { color: var(--ink-2); font-size: .95rem; }
.x-list a .arr { font-size: 1.5rem; align-self: center; opacity: .35; transition: opacity .4s; }
@media (hover: hover) {
  .x-list:hover a { opacity: .34; }
  .x-list a:hover { opacity: 1; padding-left: 1.6rem; }
  .x-list a:hover h3 { font-style: italic; color: var(--accent); }
  .x-list a:hover .arr { opacity: 1; }
}
.x-float { display: none; }
@media (hover: hover) and (pointer: fine) {
  .x-float { display: block; position: fixed; left: 0; top: 0; z-index: 30; width: clamp(260px, 26vw, 400px); aspect-ratio: 4 / 3; pointer-events: none; }
  .x-float div { width: 100%; height: 100%; overflow: hidden; border-radius: 3px; clip-path: inset(50% 50% 50% 50%); transition: clip-path .65s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .28); }
  .x-float.on div { clip-path: inset(0 0 0 0); }
  .x-float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1s var(--ease); }
  .x-float.on img { transform: scale(1.02); }
}

/* ribbon */
.ribbon { position: relative; z-index: 2; background: var(--bg); padding-block: 10px clamp(80px, 12vh, 150px); overflow: hidden; display: grid; gap: clamp(10px, 1.4vw, 20px); transition: background-color .5s; }
.rb-row { display: flex; gap: clamp(10px, 1.4vw, 20px); width: max-content; will-change: transform; }
.rb-row figure { flex: none; height: clamp(170px, 30vh, 330px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.rb-row figure.tall { aspect-ratio: 3 / 4; }
.rb-row figure.wide { aspect-ratio: 16 / 9; }
.rb-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.rb-row figure:hover img { transform: scale(1.06); filter: none; }
.rb-link { position: absolute; left: 50%; top: calc(50% - clamp(35px, 5vh, 70px)); translate: -50% -50%; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }

/* 08 voices */
.voices { padding-top: clamp(40px, 6vh, 80px); }
.v-stage { position: relative; display: grid; margin-top: clamp(30px, 6vh, 70px); min-height: 14em; }
.v-item { grid-area: 1 / 1; visibility: hidden; }
.v-item.is-on { visibility: visible; }
.v-item blockquote { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 3.8vw, 3.6rem); line-height: 1.14; letter-spacing: -.02em; max-width: 24em; }
.v-item blockquote::before { content: "“"; display: block; height: .5em; font-size: 2.6em; line-height: 1; color: var(--accent); font-style: italic; margin-bottom: .1em; }
.v-item footer { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .9rem; color: var(--ink-2); }
.v-item footer b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; }
.v-item footer strong { color: var(--ink); font-weight: 500; }
.v-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 2rem; margin-top: clamp(40px, 7vh, 80px); padding-top: 1.8rem; border-top: 1px solid var(--line); }
.v-nav { display: flex; align-items: center; gap: 1rem; }
.v-count { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; min-width: 4.6em; text-align: center; color: var(--mute); }
.v-count b { color: var(--ink); font-weight: 400; }
.v-score { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); font-size: .94rem; }
.v-score b { font-family: var(--f-display); font-weight: 300; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.stars { color: var(--accent-2); letter-spacing: .12em; }

/* verse & breath */
.verse { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: 120px 0; overflow: hidden; text-align: center; }
.breath { position: absolute; left: 50%; top: 50%; width: min(78vmin, 720px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: end center; }
.breath i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(227, 154, 72, .28); animation: breathe 10s cubic-bezier(.45, 0, .55, 1) infinite; }
.breath i:nth-child(2) { inset: 9%; border-color: rgba(227, 154, 72, .18); animation-delay: -.35s; }
.breath i:nth-child(3) { inset: 18%; border-color: transparent; background: radial-gradient(circle, rgba(227, 154, 72, .12), transparent 68%); animation-delay: -.7s; }
@keyframes breathe { 0% { transform: scale(.66); } 40% { transform: scale(1); } 100% { transform: scale(.66); } }
.breath span { position: relative; margin-bottom: -3.2rem; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--forest-mute); }
.verse-in { position: relative; display: grid; justify-items: center; gap: 2rem; }
.verse-pali { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.9vw, 2.6rem); line-height: 1.3; color: var(--saffron); max-width: 28em; }
.verse-en { margin-top: 1.6rem; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.4; max-width: 30em; color: #dcd8c7; margin-inline: auto; }
.verse cite { font-style: normal; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--forest-mute); }

/* 09 projects */
.projects { overflow: hidden; }
.pj-rail { display: flex; gap: clamp(14px, 1.8vw, 28px); padding-inline: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut))); overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut))); }
.pj-rail::-webkit-scrollbar { display: none; }
.pj-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.pj-rail.is-drag a { pointer-events: none; }
.pj-card { flex: none; width: clamp(270px, 27vw, 400px); scroll-snap-align: start; display: grid; align-content: start; gap: .5rem; user-select: none; -webkit-user-drag: none; }
.pj-card figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--bg-2); margin-bottom: .9rem; }
.pj-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.pj-card figure.contain { background: #ece7da; }
.pj-card figure.contain img { object-fit: contain; padding: 8%; }
.pj-card:hover figure img { transform: scale(1.06); }
.pj-card > span { font-size: .86rem; color: var(--mute); }
.pj-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 2rem; letter-spacing: -.012em; line-height: 1.1; }
.pj-card p { color: var(--ink-2); font-size: .95rem; }
.pj-dana { align-content: end; padding: clamp(1.4rem, 2.4vw, 2.2rem); border-radius: 3px; background: var(--forest); color: var(--forest-ink); min-height: 100%; gap: .8rem; }
:root[data-theme="dark"] .pj-dana { background: var(--card); }
.pj-dana > span { color: var(--saffron); }
.pj-dana h3 { font-size: 2.7rem; font-weight: 300; }
.pj-dana p { color: #c3c2b0; }
.pj-dana .pill { justify-self: start; margin-top: .8rem; }
.pj-dana:hover .pill::before { transform: none; }
.pj-dana:hover .pill { color: #1a1208; border-color: var(--saffron); }

/* 10 news */
.news { padding-top: 0; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.nw-card { display: grid; align-content: start; gap: .7rem; }
.nw-card figure { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--bg-2); margin-bottom: .6rem; }
.nw-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nw-card:hover figure img { transform: scale(1.06); }
.nw-meta { display: flex; gap: .9rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.nw-meta b { color: var(--accent); font-weight: 500; }
.nw-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.75rem; line-height: 1.16; letter-spacing: -.012em; }
.nw-card > p:last-child { color: var(--ink-2); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* visit */
.visit { position: relative; z-index: 2; overflow: hidden; padding-block: clamp(120px, 20vh, 240px) clamp(70px, 10vh, 120px); color: #f6f1e4; }
.visit-bg { position: absolute; inset: -12% 0; }
.visit-bg img { width: 100%; height: 100%; object-fit: cover; }
.visit-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 12, 9, .5), rgba(7, 12, 9, .28) 40%, rgba(7, 12, 9, .9)); }
.visit-in { position: relative; display: grid; gap: 1.8rem; justify-items: start; }
.visit-lead { max-width: 34em; font-size: 1.1rem; color: #e6e1d0; }
.visit-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit-meta { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin-top: clamp(40px, 8vh, 100px); padding-top: 1.8rem; border-top: 1px solid rgba(246, 241, 228, .22); }
.visit-meta dt { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron); margin-bottom: .7rem; }
.visit-meta dd { font-size: .96rem; color: #e6e1d0; }
.visit-meta dd + dd { margin-top: .5rem; color: #b9b8a6; font-size: .88rem; }
.visit-meta a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.visit-meta a:hover { background-size: 100% 1px; }

/* footer */
.ft { position: relative; z-index: 2; padding-top: clamp(60px, 9vh, 110px); overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.ft-brand .logo { width: 84px; color: var(--saffron); margin-bottom: 1.4rem; }
.ft-brand p { max-width: 27em; color: #a9ad9c; font-size: .95rem; }
.ft h4 { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--forest-mute); margin-bottom: 1.1rem; }
.ft li a { display: inline-block; padding: .22em 0; color: #d5d1c0; transition: color .3s, transform .4s var(--ease); }
.ft li a:hover { color: var(--saffron); transform: translateX(4px); }
.ft-word { margin-top: clamp(40px, 7vh, 90px); overflow: hidden; line-height: .8; text-align: center; }
.ft-word span { display: block; font-family: var(--f-display); font-weight: 300; font-size: 21.5vw; letter-spacing: -.05em; white-space: nowrap; color: transparent; background: linear-gradient(#ebe6d6 10%, rgba(235, 230, 214, .08) 92%); -webkit-background-clip: text; background-clip: text; padding-bottom: .12em; margin-inline: -4vw; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid var(--forest-line); font-size: .8rem; color: var(--forest-mute); }
.ft-base a:hover { color: var(--saffron); }

/* ── reveal defaults (only when JS drives them) ── */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .clip-ready { clip-path: inset(100% 0 0 0); }
.js.rm .reveal { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .hd-links { display: none; }
  .x-list a { grid-template-columns: 2.6rem minmax(0, 1.2fr) minmax(0, 1fr) auto; }
  .x-list a span { display: none; }
  .menu-in { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 2.6rem; }
  .menu-preview { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hd-book { display: none; }
  .hd-name small { display: none; }
  .hero-top span:last-child { display: none; }
  .hero-meta { font-size: .62rem; letter-spacing: .18em; }
  .ht-1 { font-size: 18.6vw; }
  .hero::before { background: radial-gradient(90% 34% at 50% 44%, rgba(6, 10, 8, .36), transparent 78%), linear-gradient(rgba(6, 10, 8, .4), transparent 24%); }
  .ht-2 { font-size: 8.4vw; }
  .hero-top { justify-content: center; }
  .hero-foot { flex-direction: column; align-items: center; gap: 1.2rem; }
  .scroll-cue { display: none; }
  .now-k { display: none; }
  .sec-head.two { grid-template-columns: 1fr; }
  .about-grid { display: flex; flex-direction: column; gap: 2.4rem; }
  .about-fig-a { width: 100%; aspect-ratio: 4 / 5; }
  .about-fig-b { width: 68%; align-self: flex-end; margin-top: 0; }
  .about-copy { padding-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding-bottom: 1.8rem; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* the horizontal journey becomes a vertical one */
  .path-track { display: block; width: auto; height: auto; }
  .path-panel { width: auto; height: auto; padding: 70px var(--gut); }
  .path-intro { padding-top: 110px; }
  .path-step { grid-template-columns: 1fr; gap: 1.8rem; }
  .path-img { height: auto; aspect-ratio: 4 / 5; }
  .path-img img { width: 100%; margin-left: 0; }
  .path-hint, .path-bar { display: none; }
  .day-ticks { grid-auto-columns: minmax(0, 1fr); gap: 3px; }
  .day-shade { background: linear-gradient(rgba(6, 10, 8, .62), rgba(6, 10, 8, .28) 30%, rgba(6, 10, 8, .34) 55%, rgba(6, 10, 8, .74)); }
  .day-time { font-size: 21vw; }
  .day-read { text-shadow: 0 2px 24px rgba(5, 8, 6, .7); }
  .day-link { font-size: .74rem; }
  .facts li { padding-right: 1rem; }
  .facts li + li { padding-left: 1rem; }
  .facts li:nth-child(3) { padding-left: 0; }
  .label { flex-wrap: wrap; row-gap: .4em; }
  .day-ticks li { font-size: 0; padding-top: 6px; }
  .day-ticks li.is-now::after { display: none; }
  .rt-list li a { grid-template-columns: minmax(0, 1fr) auto; row-gap: .5rem; }
  .rt-n, .rt-list .arr { display: none; }
  .rt-name { grid-column: 1 / -1; order: 3; }
  .life-grid, .t-grid, .nw-grid { grid-template-columns: 1fr; }
  .life-card:nth-child(2), .t-card:nth-child(2) { margin-top: 0; }
  .life-card figure { aspect-ratio: 4 / 3; }
  .x-list a { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .x-list a p { grid-column: 2 / -1; grid-row: 2; }
  .x-list a .arr { grid-row: 1; grid-column: 3; }
  .visit-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .menu-in { padding-top: 96px; }
  .menu-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-social { margin-left: 0; width: 100%; }
  .menu-big a small { display: none; }
}
@media (max-width: 480px) {
  .ic-btn { width: 38px; height: 38px; }
  #soundBtn { display: none; }
  .hd-tools { gap: .4rem; }
  .menu-btn-t { display: none; }
  .menu-btn { padding: 0; }
  .now { font-size: .72rem; padding: .6rem .9rem; }
  .visit-meta, .ft-grid { grid-template-columns: 1fr; }
  .pill { padding: .95em 1.4em; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .breath i { transform: scale(.9); }
}

/* ──────────────────────────────────────────────────────────────
   Sinhala home page (si/index.html). The script needs more room
   between lines, no letter-spacing, no capitals and no italics;
   Noto Serif Sinhala stands in for the Latin display face.
   ────────────────────────────────────────────────────────────── */
html[lang="si"] body { font-family: var(--f-si); line-height: 1.9; }
html[lang="si"] .hero-title, html[lang="si"] .display, html[lang="si"] .h1, html[lang="si"] .h2, html[lang="si"] .statement,
html[lang="si"] .menu-big a, html[lang="si"] .x-list a h3, html[lang="si"] .life-card h3, html[lang="si"] .t-card h3,
html[lang="si"] .pj-card h3, html[lang="si"] .day-act, html[lang="si"] .rt-date, html[lang="si"] .ft-word span,
html[lang="si"] .hd-name, html[lang="si"] .loader-word, html[lang="si"] .path-copy p, html[lang="si"] .now-a {
  font-family: var(--f-si); font-style: normal; letter-spacing: 0;
}
html[lang="si"] em { font-style: normal; }
html[lang="si"] .hero-title { line-height: 1.25; font-weight: 300; }
html[lang="si"] .ht-1 { font-size: clamp(3rem, 10vw, 10rem); }
html[lang="si"] .ht-2 { font-size: clamp(1.4rem, 3.4vw, 3.4rem); margin-top: 0; }
html[lang="si"] .display { font-size: clamp(2.2rem, 6vw, 5.8rem); line-height: 1.35; }
html[lang="si"] .h1 { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.38; font-weight: 300; }
html[lang="si"] .h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.42; font-weight: 400; }
html[lang="si"] .statement { font-size: clamp(1.45rem, 2.9vw, 2.8rem); line-height: 1.62; max-width: 26em; }
html[lang="si"] .label, html[lang="si"] .hd-links, html[lang="si"] .pill, html[lang="si"] .link-arrow, html[lang="si"] .menu-btn,
html[lang="si"] .hero-top, html[lang="si"] .t-role, html[lang="si"] .rt-in, html[lang="si"] .ft h4, html[lang="si"] .menu .label,
html[lang="si"] .verse cite, html[lang="si"] .breath span, html[lang="si"] .path-tags li {
  letter-spacing: .02em; text-transform: none; font-size: .92rem;
}
html[lang="si"] .label b { font-family: var(--f-display); font-size: 1.3em; }
html[lang="si"] .hd-name { font-size: 1.15rem; font-weight: 500; }
html[lang="si"] .hd-name small { font-family: var(--f-si); letter-spacing: .02em; text-transform: none; font-size: .68rem; }
html[lang="si"] .hero-lead { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.9; max-width: 34em; }
html[lang="si"] .menu-big a { font-size: clamp(1.5rem, 4.2vh, 3rem); line-height: 1.5; font-weight: 300; }
html[lang="si"] .menu-big a small { font-family: var(--f-text); }
html[lang="si"] .x-list a h3 { font-size: clamp(1.4rem, 2.9vw, 2.6rem); line-height: 1.45; }
html[lang="si"] .x-list a:hover h3 { font-style: normal; }
html[lang="si"] .x-list a { grid-template-columns: 3.4rem minmax(0, 1.4fr) minmax(0, 1fr) auto; }
html[lang="si"] .x-list a span { font-family: var(--f-text); letter-spacing: .04em; }
html[lang="si"] .life-card h3, html[lang="si"] .pj-card h3 { font-size: 1.45rem; line-height: 1.45; font-weight: 500; }
html[lang="si"] .pj-card > span { font-family: var(--f-text); }
html[lang="si"] .t-card h3 { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.5; max-width: none; }
html[lang="si"] .day-act { font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.4; }
html[lang="si"] .day-si { font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
html[lang="si"] .rt-date { font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1.3; }
html[lang="si"] .path-copy p { font-size: 1.02rem; line-height: 1.95; }
html[lang="si"] .path-lead { font-size: 1.05rem; line-height: 1.95; }
html[lang="si"] .path-step { width: min(94vw, 1180px); }
html[lang="si"] .about-copy p, html[lang="si"] .sec-lead, html[lang="si"] .life-card p, html[lang="si"] .t-card > p:last-child, html[lang="si"] .visit-lead { font-size: 1.02rem; line-height: 1.95; }
html[lang="si"] .ft-word span { font-size: 18vw; font-weight: 300; line-height: 1.3; letter-spacing: 0; padding-bottom: .1em; }
html[lang="si"] .ft-word { line-height: 1; }
html[lang="si"] .split-line-mask { padding: .22em .08em .32em 0; margin: -.22em -.08em -.32em 0; }
html[lang="si"] .now-k, html[lang="si"] .scroll-cue span { display: none; }
@media (max-width: 820px) {
  html[lang="si"] .ht-1 { font-size: 17vw; }
  html[lang="si"] .ht-2 { font-size: 7.4vw; }
  html[lang="si"] .rt-date { font-size: 1.3rem; white-space: normal; }
  html[lang="si"] .rt-in { font-size: .8rem; padding: .35em .8em; }
  html[lang="si"] .x-list a { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  html[lang="si"] .x-list a span { display: block; grid-column: 2; grid-row: 2; }
}
