@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-600-latin.woff2") format("woff2"); }

:root {
  --char: #1c1b19;
  --char-2: #24221f;
  --char-3: #2e2b27;
  --cream: #f2ede3;
  --ink: #1c1b19;
  --ink-2: #5a5348;
  --muted: rgba(242, 237, 227, 0.66);
  --faint: rgba(242, 237, 227, 0.18);
  --accent: #d08a72;
  --accent-deep: #8e3b2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --label: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tamil: "Tamil Sangam MN", "Tamil MN", "Noto Serif Tamil", "Noto Sans Tamil", "Latha", "Nirmala UI", serif;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --max: 46rem;
  --pad: max(var(--gut), calc((100% - var(--max)) / 2));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--char); color: var(--cream); font: 400 1rem/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 400; background: var(--cream); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }
.bw { filter: grayscale(1) contrast(1.04); }

.label { font: 600 0.78rem/1.25 var(--label); letter-spacing: 0.16em; text-transform: uppercase; }
.t-h2 { font: 400 clamp(2.4rem, 7.6vw, 3.9rem)/1.02 var(--serif); letter-spacing: -0.015em; }
.t-h3 { font: 400 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--serif); }
.t-lede { font: 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.34 var(--serif); }
.t-body { font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.68; color: var(--muted); }
.acc { color: var(--accent); }
.tamil { font-family: var(--tamil); font-weight: 500; }

/* moon mark */
.moon { position: relative; display: block; width: 2.25rem; aspect-ratio: 1; color: var(--cream); flex: none; }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: currentColor; }
.moon::before { inset: 0; opacity: 0.33; animation: breathe 10s ease-in-out infinite; }
.moon::after { inset: 15.75%; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.33; } 45%, 55% { transform: scale(1.14); opacity: 0.4; } }

/* loader */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--char); clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io), visibility 0s 1s; }
.loader .moon { width: 6.4rem; }
html.ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html:not(.js) .loader { display: none; }

/* header */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; pointer-events: none; }
.nav-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem var(--gut); pointer-events: auto; transition: transform 0.6s var(--ease), background-color 0.4s; }
.nav.hide:not(.open) .nav-top { transform: translateY(-110%); }
.nav.solid:not(.open) .nav-top { background: rgba(28, 27, 25, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.nav-logo .moon { width: 1.8rem; }
.nav-logo img { height: 1.75rem; width: auto; }
.nav-links { display: none; align-items: center; gap: clamp(1rem, 1.8vw, 1.8rem); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.3s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.35rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.burger { position: relative; width: 2.75rem; height: 2.75rem; }
.burger i { position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 1px; background: currentColor; transition: transform 0.6s var(--ease); }
.burger i:first-child { transform: translateY(-4px); }
.burger i:last-child { transform: translateY(4px); }
.nav.open .burger i:first-child { transform: rotate(45deg); }
.nav.open .burger i:last-child { transform: rotate(-45deg); }
@media (min-width: 62rem) { .nav-links { display: flex; } .burger { display: none; } }
.nav-panel { position: fixed; inset: 0; z-index: -1; background: var(--char-2); pointer-events: none; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-io), visibility 0s 0.9s; display: grid; align-content: center; padding: 6rem var(--gut) 3rem; overflow-y: auto; }
.nav.open .nav-panel { clip-path: inset(0 0 0 0); pointer-events: auto; visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.nav-prim a { display: block; overflow: hidden; font: 400 clamp(2.1rem, 8vw, 3.4rem)/1.16 var(--serif); text-decoration: none; }
.nav-prim a span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.nav.open .nav-prim a span { transform: none; }
.nav-prim li:nth-child(2) span { transition-delay: 0.04s; } .nav-prim li:nth-child(3) span { transition-delay: 0.08s; }
.nav-prim li:nth-child(4) span { transition-delay: 0.12s; } .nav-prim li:nth-child(5) span { transition-delay: 0.16s; }
.nav-prim li:nth-child(6) span { transition-delay: 0.2s; } .nav-prim li:nth-child(7) span { transition-delay: 0.24s; }
.nav-sec { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; opacity: 0; transition: opacity 0.6s 0.35s; }
.nav.open .nav-sec { opacity: 1; }
.nav-sec a { text-decoration: none; color: var(--muted); }

/* hero: logo first, it fades, then the landscape video grows */
.hero { position: relative; height: 290vh; height: 290svh; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; --a: 0; --b: 0; --c: 0; }
.hero-wm { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; padding: 0 var(--gut); opacity: calc(1 - var(--a)); transform: translateY(calc(var(--a) * -8vh)) scale(calc(1 - var(--a) * 0.06)); }
.hero-wm .moon { --ww: min(78vw, 32rem); width: calc(var(--ww) * 0.432); margin-bottom: 1.6rem; opacity: 0; transform: scale(0.7); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.hero-wm h1 { line-height: 0; }
.hero-wm .wm { width: min(78vw, 32rem); height: auto; opacity: 0; transform: translateY(20px); transition: opacity 1.3s var(--ease) 0.1s, transform 1.5s var(--ease) 0.1s; }
html.ready .hero-wm .moon, html.ready .hero-wm .wm { opacity: 1; transform: none; }
.hero-eyebrow { margin-top: 1.4rem; max-width: 30rem; color: var(--accent); opacity: 0; transition: opacity 1s 0.5s; }
html.ready .hero-eyebrow { opacity: 1; }
.hero-card {
  --w0: min(58vw, 62svh * 0.5625);
  --h0: calc(var(--w0) * 1.7778);
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--b));
  height: calc(var(--h0) + (100svh - var(--h0)) * var(--b));
  transform: translate(-50%, -50%) scale(calc(0.86 + 0.14 * var(--a)));
  opacity: var(--a);
  border-radius: calc(3px * (1 - var(--b)));
  overflow: hidden; background: var(--char-3);
}
.hero-card video { width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,25,0) 40%, rgba(28,27,25,0.7)); opacity: var(--c); }
.hero-cue { position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.6rem; color: var(--muted); opacity: calc(1 - var(--a) * 2); }
.hero-cue i { width: 1px; height: 2.6rem; background: var(--faint); position: relative; overflow: hidden; }
.hero-cue i::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--cream); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.hero-line { position: absolute; z-index: 3; left: 50%; bottom: 12vh; width: min(32rem, 86vw); transform: translate(-50%, calc((1 - var(--c)) * 20px)); text-align: center; opacity: var(--c); }
.hero-line p:first-child { font: 400 clamp(1.8rem, 4.4vw, 3rem)/1.1 var(--serif); }
.hero-line p + p { margin-top: 0.9rem; color: var(--muted); }

/* reveals */
html.js [data-a] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
html.js [data-a].in { opacity: 1; transform: none; }
html.js [data-wipe] { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-io); }
html.js [data-wipe].in { clip-path: inset(0 0 -10% 0); }
html.js .settle { overflow: hidden; clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
html.js .settle img, html.js .settle video { transform: scale(1.14); transition: transform 2s var(--ease); }
html.js .settle.in { clip-path: inset(0 0 0 0); }
html.js .settle.in img, html.js .settle.in video { transform: none; }
html.js .ink .w { opacity: 0.18; transition: opacity 0.35s; }
html.js .ink .w.on { opacity: 1; }
html.js .rule { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
html.js .rule.in { transform: none; }
.rule { height: 1px; background: var(--faint); transform-origin: left; }

section { scroll-margin-top: 4.5rem; }

/* intro */
.intro { padding: clamp(6rem, 14vw, 9rem) var(--pad) clamp(4rem, 8vw, 6rem); display: grid; gap: 2rem; }
.intro-t { font: 400 clamp(1.6rem, 4.2vw, 2.4rem)/1.2 var(--serif); }
.intro-t b { font-weight: 400; color: var(--accent); }

/* full bleed */
.bleed { position: relative; height: 78vh; height: 78svh; overflow: hidden; margin: 0; }
.bleed img { position: absolute; left: 0; width: 100%; top: -12%; height: 124%; object-fit: cover; will-change: transform; }
.bleed-pano { height: auto; aspect-ratio: 2400 / 890; max-height: 70vh; }
.bleed-pano img { top: -8%; height: 116%; }
.teacher { margin-top: 2.2rem; }
.teacher img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.teacher figcaption { margin-top: 0.7rem; color: var(--muted); }
.bleed figcaption { position: absolute; left: var(--gut); bottom: 1.5rem; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }

/* about */
.about { padding: clamp(5rem, 12vw, 8rem) var(--pad); display: grid; gap: 2.4rem; }
.about-img { aspect-ratio: 3 / 2; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-name { margin: 0.9rem 0 1.6rem; }
.about-body p + p { margin-top: 1.1rem; }
.pull { margin: 2rem 0; padding-left: 1.2rem; border-left: 2px solid var(--accent); font: 400 clamp(1.4rem, 2.8vw, 1.9rem)/1.26 var(--serif); color: var(--cream); }

/* turning lines: Tamil turns into English */
.quote { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.quote .rule:first-child { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.quote .rule:last-child { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.q { display: grid; gap: 0.12em; font: 400 clamp(1.9rem, 7.2vw, 3.6rem)/1.06 var(--serif); letter-spacing: -0.015em; perspective: 900px; }
.ql { position: relative; display: block; height: 1.18em; overflow: hidden; }
.ql > span { position: absolute; left: 0; top: 0; white-space: pre; transition: transform 1.1s var(--ease), opacity 0.8s; backface-visibility: hidden; }
.ql .ql-t { font-family: var(--tamil); font-weight: 500; font-size: 0.7em; line-height: 1.6; color: var(--accent); }
.ql .ql-e { transform: translateY(100%) rotateX(-70deg); opacity: 0; transform-origin: 50% 0; }
.ql.on .ql-t { transform: translateY(-100%) rotateX(70deg); opacity: 0; transform-origin: 50% 100%; }
.ql.on .ql-e { transform: none; opacity: 1; }
.ql:nth-child(2) > span { left: 0.4em; } .ql:nth-child(3) > span { left: 0.8em; }
.q-by { margin-top: 2rem; color: var(--muted); }

/* marquee */
.mq { overflow: hidden; border-block: 1px solid var(--faint); padding: 1.1rem 0; }
.mq-t { display: flex; width: max-content; will-change: transform; }
.mq-t span { font: 400 clamp(1.8rem, 4.4vw, 3rem)/1 var(--serif); padding-right: 1.1em; white-space: nowrap; }
.mq-t span i { font-style: normal; color: var(--accent); padding-left: 1.1em; }

/* kurma therapeutics: slim sticky slider */
.five-intro { padding: clamp(5rem, 12vw, 8rem) var(--pad) 0; display: grid; gap: 1.2rem; }
.five { position: relative; height: 360vh; height: 360svh; }
.five-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: start; gap: 1.2rem; padding: 5rem var(--pad) 2rem; }
.five-vis { position: relative; overflow: hidden; background: var(--char-3); aspect-ratio: 16 / 10; max-height: 46vh; width: 100%; }
.five-vis figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease-io); }
.five-vis figure.on { opacity: 1; }
.five-vis img, .five-vis video, .five-vis canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - 0.08 * var(--sp, 0))); }
.five-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.five-meta .label { color: var(--muted); }
.five-n { font: 600 0.95rem/1 var(--label); letter-spacing: 0.14em; display: flex; align-items: center; gap: 0.4rem; }
.five-n .win { display: block; height: 1.2em; overflow: hidden; }
.five-n .digit { display: block; transition: transform 0.8s var(--ease); }
.five-n .digit span { display: block; height: 1.2em; line-height: 1.2; }
.five-n .of { color: var(--muted); }
.five-stops { position: relative; min-height: 9.5rem; }
.five-stop { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.five-stop.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.12s; }
.five-stop .t-body { margin-top: 0.55rem; }
.five-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.five-prog i { height: 2px; background: var(--faint); overflow: hidden; }
.five-prog i b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--f, 0)); }

/* light sections */
.light { background: var(--cream); color: var(--ink); }
.light .t-body { color: var(--ink-2); }
.light .acc { color: var(--accent-deep); }
.light .rule { background: rgba(28,27,25,0.18); }

/* classes */
.classes { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tab { padding: 0.75rem 1.1rem; border: 1px solid rgba(28,27,25,0.22); transition: background-color 0.3s, color 0.3s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tt { display: none; }
.tt.on { display: block; animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tt-row { display: grid; gap: 0.25rem; padding: 1.2rem 0; border-top: 1px solid rgba(28,27,25,0.16); }
.tt-row:last-of-type { border-bottom: 1px solid rgba(28,27,25,0.16); }
.tt-time { font: 600 0.95rem/1.3 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.tt-class { font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.18 var(--serif); }
.tt-for { color: var(--ink-2); }
.tt-note { margin-top: 1.2rem; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; padding: 1rem 1.4rem; border: 1px solid currentColor; position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn span { transition: color 0.3s; }
.btn:hover span { color: var(--ink); }
.light .btn::before { background: var(--ink); }
.light .btn:hover span { color: var(--cream); }
.btn-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cards { margin-top: clamp(3.5rem, 8vw, 5rem); display: grid; gap: clamp(3rem, 6vw, 4rem); }
.card { display: grid; gap: 1rem; align-content: start; }
.card figure { aspect-ratio: 3 / 2; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-link { justify-self: start; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; color: var(--accent-deep); }
.card-link:hover { color: var(--ink); }

/* virtual kshetra */
.vk { padding: clamp(5rem, 12vw, 8rem) var(--pad); border-top: 1px solid var(--faint); }
.vk .t-lede { color: var(--cream); max-width: 36rem; }
.vk .pg-dl { margin-top: 0.4rem; }

/* anga pariksha */
.ap { padding: clamp(5rem, 12vw, 8rem) var(--pad); display: grid; gap: 2.4rem; }
.ap-vid { aspect-ratio: 16 / 9; background: var(--char-3); }
.ap-vid video { width: 100%; height: 100%; object-fit: cover; }
.ap-list { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); column-gap: 1.5rem; }
.ap-list li { padding: 0.75rem 0; border-top: 1px solid var(--faint); }
.ap-note { margin-top: 1.3rem; color: var(--muted); font-size: 0.9rem; }

/* whole day (krida) */
.day { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.day-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.3rem, 1vw, 0.6rem); margin-top: clamp(2rem, 5vw, 3rem); }
.day-frames figure { aspect-ratio: 9 / 14; }
.day-frames img { width: 100%; height: 100%; object-fit: cover; }
.day-frames figure:nth-child(2) { transition-delay: 0.12s; } .day-frames figure:nth-child(3) { transition-delay: 0.24s; }
.day-text { margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 1.1rem; }
.day-text .t-lede { color: var(--cream); }

/* calendar */
.cal { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.cal-list li { border-top: 1px solid var(--faint); }
.cal-list li:last-child { border-bottom: 1px solid var(--faint); }
.cal-item { display: grid; gap: 0.55rem; padding: 1.8rem 0; text-decoration: none; }
.cal-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--muted); }
.cal-meta span:first-child { color: var(--accent); }
.cal-title { font: 400 clamp(1.55rem, 3.6vw, 2.2rem)/1.12 var(--serif); transition: transform 0.6s var(--ease), color 0.3s; }
a.cal-item:hover .cal-title { transform: translateX(0.5rem); color: var(--accent); }
.cal-where { color: var(--muted); }
.cal-cta { color: var(--accent); }

/* invite */
.invite { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.invite-list { margin-top: 1.8rem; }
.invite-list li { padding: 1rem 0; border-top: 1px solid rgba(28,27,25,0.16); display: grid; gap: 0.2rem; }
.invite-list li:last-child { border-bottom: 1px solid rgba(28,27,25,0.16); }
.invite-list strong { font: 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.2 var(--serif); }

/* kurma kshetra */
.kk-intro { padding: clamp(5rem, 12vw, 8rem) var(--pad) 0; display: grid; gap: 1.2rem; }
.kk-facts { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.kk-facts div { padding: 0.85rem 0; border-top: 1px solid var(--faint); }
.kk-facts dt { color: var(--muted); }
.kk-facts dd { margin-top: 0.25rem; }
.room { position: relative; height: 320vh; }
.room-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; }
.room-track { display: flex; gap: clamp(0.6rem, 1.3vw, 1rem); padding-left: var(--gut); will-change: transform; }
.room-track figure { flex: none; height: min(52vh, 30rem); aspect-ratio: 4 / 3; margin: 0; }
.room-track img { width: 100%; height: 100%; object-fit: cover; }

/* voices */
.voices { padding: clamp(5rem, 12vw, 8rem) var(--pad); }
.voices > .label { display: block; margin-bottom: 1.8rem; }
.ss-view { display: grid; }
.ss-slide { grid-area: 1 / 1; opacity: 0; transform: translateX(40px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.ss-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.ss-slide.out { transform: translateX(-40px); }
.ss-slide blockquote { font: 400 clamp(1.45rem, 3.4vw, 2.2rem)/1.24 var(--serif); }
.ss-slide p { margin-top: 1.4rem; }
.ss-nav { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.ss-btn { width: 3rem; height: 3rem; border: 1px solid rgba(28,27,25,0.25); display: grid; place-items: center; transition: background-color 0.3s, color 0.3s; }
.ss-btn:hover { background: var(--ink); color: var(--cream); }
.ss-i { font: 600 0.9rem/1 var(--label); letter-spacing: 0.12em; }
.ss-bar { flex: 1; max-width: 12rem; height: 1px; background: rgba(28,27,25,0.18); overflow: hidden; }
.ss-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.ss-bar i.run { animation: grow 7s linear forwards; }
@keyframes grow { to { transform: scaleX(1); } }

/* faq */
.faq { padding: clamp(5rem, 12vw, 8rem) var(--pad); display: grid; gap: 2rem; }
.qa { border-top: 1px solid rgba(28,27,25,0.16); }
.qa:last-child { border-bottom: 1px solid rgba(28,27,25,0.16); }
.qa-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; text-align: left; font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.3 var(--serif); }
.qa-ic { position: relative; flex: none; width: 1rem; height: 1rem; }
.qa-ic i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.qa-ic i:last-child { transform: rotate(90deg); }
.qa-q[aria-expanded="true"] .qa-ic i:last-child { transform: rotate(0); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding-bottom: 1.4rem; color: var(--ink-2); }
.qa-q[aria-expanded="true"] + .qa-a { grid-template-rows: 1fr; }

/* contact + footer */
.visit { padding: clamp(5rem, 12vw, 8rem) var(--pad) 3rem; display: grid; gap: 2.8rem; }
.visit .label.acc { display: block; margin-bottom: 0.9rem; }
.visit address { font-style: normal; font: 400 clamp(1.3rem, 2.4vw, 1.7rem)/1.3 var(--serif); }
.visit ul li { padding: 0.65rem 0; border-top: 1px solid var(--faint); }
.visit ul a { text-decoration: none; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.visit ul a:hover { color: var(--accent); }
.foot { padding: 2rem var(--pad); overflow: hidden; }
.foot-wm { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.foot-wm .moon { width: clamp(3.4rem, 11vw, 5.5rem); }
.foot-wm img { width: min(68vw, 26rem); height: auto; }
.foot-row { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); }
.foot-row a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html.js [data-a], html.js [data-wipe], html.js .settle, html.js .settle img, html.js .settle video { opacity: 1; transform: none; clip-path: none; }
  html.js .ink .w { opacity: 1; }
}

/* ---------- read more links ---------- */
.more { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--accent); padding: 0.35rem 0; border-bottom: 1px solid currentColor; transition: gap 0.4s var(--ease), color 0.3s; }
.more:hover { gap: 1rem; color: var(--cream); }
.light .more { color: var(--accent-deep); }
.light .more:hover { color: var(--ink); }
.btn-row .more { align-self: center; margin-left: 0.6rem; }
.card .more { justify-self: start; }
.nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- inner pages ---------- */
body.inner .nav-top { background: rgba(28, 27, 25, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.page { padding-top: clamp(7rem, 14vw, 9rem); }
.t-h1 { font: 400 clamp(2.8rem, 9vw, 4.8rem)/1 var(--serif); letter-spacing: -0.02em; margin: 0.9rem 0 1.4rem; }
.pg-hero { padding: 0 var(--pad) clamp(2.5rem, 6vw, 3.5rem); }
.pg-hero .t-lede { color: var(--cream); max-width: 36rem; }
.pg-media { margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: var(--char-3); }
.pg-media img, .pg-media video { width: 100%; height: 100%; object-fit: cover; }
.pg-sec { padding: clamp(4.5rem, 10vw, 7rem) var(--pad) clamp(1rem, 3vw, 2rem); scroll-margin-top: 4.5rem; }
.pg-sec.light { padding-bottom: clamp(4.5rem, 10vw, 7rem); margin-top: clamp(3rem, 7vw, 5rem); }
.pg-sec .t-h2 { margin: 0.8rem 0 1.8rem; }
.prose { display: grid; gap: 1.15rem; }
.prose > p { font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.72; color: var(--muted); }
.light .prose > p { color: var(--ink-2); }
.prose strong { font-weight: 600; color: var(--cream); }
.light .prose strong { color: var(--ink); }
.prose .pull { margin: 0.8rem 0; }
.pull cite { display: block; margin-top: 0.8rem; font-style: normal; color: var(--muted); }
.pg-fig { margin: 0.6rem 0 0.8rem; }
.pg-fig img, .pg-fig video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--char-3); }
.pg-fig figcaption { margin-top: 0.7rem; color: var(--muted); }
.pg-list { display: grid; }
.pg-list li { padding: 0.8rem 0 0.8rem 1.4rem; border-top: 1px solid var(--faint); position: relative; color: var(--muted); line-height: 1.55; }
.pg-list li:last-child { border-bottom: 1px solid var(--faint); }
.pg-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.light .pg-list li { color: var(--ink-2); border-color: rgba(28,27,25,0.16); }
.pg-dl { display: grid; }
.pg-dl > div { padding: 1rem 0; border-top: 1px solid var(--faint); display: grid; gap: 0.3rem; }
.pg-dl > div:last-child { border-bottom: 1px solid var(--faint); }
.pg-dl dt { font: 400 clamp(1.15rem, 2vw, 1.35rem)/1.25 var(--serif); color: var(--cream); }
.pg-dl dd { color: var(--muted); line-height: 1.6; }
.light .pg-dl > div { border-color: rgba(28,27,25,0.16); }
.light .pg-dl dt { color: var(--ink); }
.light .pg-dl dd { color: var(--ink-2); }
.timeline { margin-top: 2.4rem; position: relative; display: grid; gap: 2.6rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 0.3rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--faint); }
.timeline li { position: relative; display: grid; gap: 0.5rem; }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 0.15rem; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--char); border: 1px solid var(--accent); }
.pg-next { padding: clamp(4.5rem, 10vw, 7rem) var(--pad) 1rem; }
.pg-next ul { display: grid; }
.pg-next li a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.3rem 1rem; padding: 1.2rem 0; border-top: 1px solid var(--faint); text-decoration: none; }
.pg-next li:last-child a { border-bottom: 1px solid var(--faint); }
.pg-next li a .label { grid-column: 1; }
.pg-next-t { grid-column: 1; font: 400 clamp(1.4rem, 3vw, 2rem)/1.15 var(--serif); transition: transform 0.6s var(--ease), color 0.3s; }
.pg-next li a i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--accent); font-size: 1.4rem; transition: transform 0.5s var(--ease); }
.pg-next li a:hover .pg-next-t { transform: translateX(0.5rem); color: var(--accent); }
.pg-next li a:hover i { transform: translateX(0.4rem); }
.pg-next > p { margin-top: 2rem; }
.teacher.portrait, .pg-fig.portrait { max-width: 26rem; }
.teacher.portrait img, .pg-fig.portrait img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.pg-grp { margin-top: 1.6rem; }
.t-links { display: block; margin-top: 0.45rem; color: var(--muted); }
.t-links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(208,138,114,0.4); }
.t-links a:hover { color: var(--cream); border-color: var(--cream); }
