/* ==========================================================================
   Vidyadeep Pathshala — prototype stylesheet
   Concept: a chemist's notebook lit by a diya. Paper, ink, one flame.
   ========================================================================== */

:root {
  --paper: #f2ede3;
  --paper-2: #e8e1d3;
  --paper-3: #ddd4c2;
  --card: #f8f5ee;
  --ink: #15201b;
  --ink-2: #34413a;
  --muted: #6b7369;
  --line: rgba(21, 32, 27, 0.14);
  --line-strong: rgba(21, 32, 27, 0.32);

  --flame: #c4472b;
  --flame-deep: #9e3520;
  --saffron: #e5a03a;
  --sulphate: #2b5f75;
  --olive: #5d6b37;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint notebook grid at the top of the page */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(21, 32, 27, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 32, 27, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--flame); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--flame); }
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.display {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}
.display em,
.h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--flame);
}
.h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "opsz" 120;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 18px 0 0;
}
.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--ink-2);
  max-width: 54ch;
}
sub { font-size: 0.62em; vertical-align: -0.28em; line-height: 0; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px 0 24px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 15.5px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), color 0.4s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flame);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }
.btn .arr {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.5s var(--ease);
}
.btn:hover .arr { transform: rotate(-45deg); }
.btn--flame { --bg: var(--flame); }
.btn--flame::before { background: var(--ink); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 0 22px;
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0.35);
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; }
.ticker__track span::after { content: "✦"; color: var(--saffron); font-size: 10px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.nav.is-solid {
  background: rgba(242, 237, 227, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav { transform: none; background: transparent; box-shadow: none; backdrop-filter: none; }
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__tile {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: var(--card);
  flex: none;
}
.brand__tile small {
  position: absolute;
  top: 2px;
  left: 4px;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.brand__tile i {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: var(--flame);
  box-shadow: 0 0 6px var(--saffron);
  animation: flicker 3.2s infinite;
}
.brand__name { line-height: 1.05; }
.brand__name b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand__name span {
  font-family: var(--deva);
  font-size: 12.5px;
  color: var(--muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(248, 245, 238, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a.is-active { background: var(--ink); color: var(--paper); }
.nav__links li:has(.nav__admin) { display: flex; align-items: center; }
.nav__links li:has(.nav__admin)::before { content: ""; width: 1px; height: 18px; margin: 0 4px; background: var(--line-strong); }
.nav__links .nav__admin { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.nav__links .nav__admin:hover { color: var(--ink); }
.menu__foot .btn svg { margin-right: 6px; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__phone { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.nav__phone:hover { color: var(--flame); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: 130px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu li a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: clamp(28px, 7.8vw, 52px);
  font-weight: 350;
  letter-spacing: -0.02em;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease);
}
.menu li a::before {
  counter-increment: m;
  content: counter(m, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--flame);
}
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu-open .menu li:nth-child(7) a { transition-delay: 0.3s; }
.menu-open .menu li:nth-child(8) a { transition-delay: 0.35s; }
.menu li.menu__admin a { color: var(--muted); align-items: center; }
.menu li.menu__admin svg { margin-left: auto; color: var(--muted); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}
.hero__meta span:first-child { color: var(--ink); }
.hero__meta span:first-child::before {
  background: #3a8d5c;
  animation: pulse 2.4s infinite;
}
.hero h1 {
  font-size: clamp(50px, 8vw, 126px);
  margin-top: 26px;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }
.js .hero .line > span { transform: translateY(110%); }
.js .is-loaded .hero .line > span {
  transform: none;
  transition: transform 1.2s var(--ease);
}
.is-loaded .hero .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero .line:nth-child(3) > span { transition-delay: 0.16s; }

.hero__sub {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
.hero__sub .lede { margin: 0; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}
.hero__actions .link { color: var(--ink-2); }
.hero__actions .link svg { color: #1f8f4e; }

/* molecule stage */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  border-radius: 22px;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(229, 160, 58, 0.2), transparent 70%),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.stage__corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.stage__corner--tl { top: 18px; left: 20px; }
.stage__corner--tr { top: 18px; right: 20px; text-align: right; }
.stage__corner--bl { bottom: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.stage__formula {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stage__name { display: block; margin-top: 8px; }
.stage__dots { display: flex; gap: 5px; margin-top: 8px; justify-content: flex-end; }
.stage__dots i { width: 14px; height: 2px; background: var(--line-strong); transition: background 0.3s, width 0.4s var(--ease); }
.stage__dots i.on { background: var(--flame); width: 24px; }
.stage__swap { opacity: 1; transition: opacity 0.35s, transform 0.5s var(--ease); }
.stage__swap.is-out { opacity: 0; transform: translateY(6px); }

/* class tiles (periodic strip) */
.tiles {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(var(--tile-count, 4), 1fr) 1.4fr;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  text-align: left;
  transition: background 0.4s var(--ease), color 0.4s;
  overflow: hidden;
}
.tile:hover { background: var(--ink); color: var(--paper); }
.tile__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.tile__top span:last-child { color: var(--muted); transition: color 0.3s; }
.tile:hover .tile__top span:last-child { color: var(--saffron); }
.tile__sym {
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 380;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile__sym { transform: translateX(6px); }
.tile__name { font-size: 14px; font-weight: 500; }
.tile__name small { display: block; color: var(--muted); font-weight: 400; transition: color 0.3s; }
.tile:hover .tile__name small { color: rgba(242, 237, 227, 0.6); }
.tiles__note {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper-2);
}
.tiles__note p { margin: 0; font-size: 15px; color: var(--ink-2); }
.tiles__note .legend { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding-top: clamp(56px, 7vw, 96px); }
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__head .lede { margin: 0; max-width: 46ch; }

/* statement */
.statement {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(30px, 4.3vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 22ch;
  margin: 26px 0 0;
  font-variation-settings: "opsz" 100;
}
.js .statement .w { opacity: 0.16; }
.statement em { font-style: italic; color: var(--flame); font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.about__name .deva {
  font-family: var(--deva);
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.15;
  color: var(--ink);
}
.about__name p { margin: 10px 0 0; color: var(--ink-2); max-width: 38ch; }
.mission { list-style: none; margin: 0; padding: 0; }
.mission li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.mission li:first-child { padding-top: 0; }
.mission li span { font-family: var(--mono); font-size: 12px; color: var(--flame); padding-top: 4px; }

/* ---------- method (dark) ---------- */
.dark {
  background: var(--ink);
  color: var(--paper);
  border-radius: clamp(22px, 3vw, 36px);
  margin: 0 clamp(8px, 1vw, 16px);
  overflow: hidden;
}
.dark .eyebrow { color: rgba(242, 237, 227, 0.55); }
.dark .eyebrow .num { color: var(--saffron); }
.dark .lede { color: rgba(242, 237, 227, 0.72); }
.dark .h2 em { color: var(--saffron); }

.equation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 28px);
  margin: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 120px);
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 80px);
  font-weight: 330;
  letter-spacing: -0.03em;
  line-height: 1;
}
.equation .term { position: relative; white-space: nowrap; display: inline-block; }
.equation .term sub {
  position: absolute;
  left: 0.08em;
  top: 100%;
  margin-top: 0.35em;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(242, 237, 227, 0.5);
  text-transform: uppercase;
  text-shadow: none;
}
.equation .op { color: rgba(242, 237, 227, 0.4); font-weight: 200; display: inline-block; }
.equation .arrow { flex: 1 1 160px; min-width: 120px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.equation .arrow svg { width: 100%; height: 22px; overflow: visible; }
.equation .arrow .cond { font-family: var(--mono); font-size: clamp(10px, 0.9vw, 12px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--saffron); white-space: nowrap; }
.equation .arrow .cond--b { color: rgba(242, 237, 227, 0.5); }
.equation .product { display: inline-block; font-style: italic; color: var(--saffron); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; text-shadow: 0 0 40px rgba(229, 160, 58, 0.35); }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(242, 237, 227, 0.16);
}
.step {
  padding: 26px 22px 8px;
  border-right: 1px solid rgba(242, 237, 227, 0.12);
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--saffron); margin-bottom: 40px; }
.step h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -0.01em; line-height: 1.15; }
.step p { margin: 0; font-size: 14.5px; color: rgba(242, 237, 227, 0.62); }
.why {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(242, 237, 227, 0.16);
}
.why h3 { margin: 0; font-family: var(--serif); font-weight: 350; font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.015em; line-height: 1.1; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.why li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(242, 237, 227, 0.1); font-size: 16px; }
.why li::before { content: "→"; color: var(--saffron); font-family: var(--mono); }

/* ---------- batches ---------- */
.switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.switch button {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.4s;
}
.switch button[aria-selected="true"] { color: var(--paper); }
.switch__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.55s var(--ease);
}
.switch[data-mode="offline"] .switch__pill { transform: translateX(100%); }
.mode-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }

.batches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.batch {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.batch:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(21, 32, 27, 0.35); }
.batch__top { padding: 24px 24px 20px; }
.batch__row { display: flex; justify-content: space-between; align-items: flex-start; }
.batch__cls {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 380;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.batch__cls small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.batch__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--flame); text-align: right; line-height: 1.5; }
.batch__desc { margin: 18px 0 0; color: var(--ink-2); font-size: 15.5px; }
/* perforated tear line */
.batch__perf {
  position: relative;
  height: 1px;
  margin: 0 18px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 50%);
  background-size: 10px 1px;
}
.batch__perf::before,
.batch__perf::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.batch__perf::before { left: -29px; clip-path: inset(0 0 0 50%); }
.batch__perf::after { right: -29px; clip-path: inset(0 50% 0 0); }
.batch ul { list-style: none; margin: 0; padding: 20px 24px; flex: 1; }
.batch li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
}
.batch li svg { flex: none; margin-top: 4px; color: var(--flame); }
.batch li.extra { color: var(--sulphate); font-weight: 500; }
.batch li.extra svg { color: var(--sulphate); }
.batch li.is-in { animation: liIn 0.6s var(--ease) both; }
.batch__foot { padding: 0 24px 24px; display: flex; gap: 10px; }
.batch__foot .btn { flex: 1; justify-content: space-between; }
.batch__wa {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: #1f8f4e;
  transition: background 0.3s, color 0.3s;
}
.batch__wa:hover { background: #1f8f4e; color: #fff; }
.batches__foot { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 15px; }
.batches__foot a { color: var(--ink); }

/* ---------- syllabus ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--line-strong); margin-bottom: 36px; }
.tabs button {
  position: relative;
  padding: 14px 4px;
  margin-right: 28px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 380;
  color: var(--muted);
  transition: color 0.3s;
}
.tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button sup { font-family: var(--mono); font-size: 11px; color: var(--flame); margin-left: 4px; }

.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.branch {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px 22px 10px;
}
.branch__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.branch__head h3 { margin: 0; font-family: var(--serif); font-weight: 420; font-size: 24px; letter-spacing: -0.01em; }
.branch__head .chip { color: var(--c); }
.branch ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.branch li {
  counter-increment: ch;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  transition: padding 0.4s var(--ease);
}
.branch li::before { content: counter(ch, decimal-leading-zero); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.branch li .acts { display: flex; gap: 4px; opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.branch li:hover { padding-left: 6px; }
.branch li:hover .acts,
.branch li:focus-within .acts { opacity: 1; transform: none; }
.branch li .acts button {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.branch li .acts button:hover { background: var(--ink); color: var(--paper); }
.branch.is-anim { animation: fadeUp 0.7s var(--ease) both; }
.branch.is-anim:nth-child(2) { animation-delay: 0.06s; }
.branch.is-anim:nth-child(3) { animation-delay: 0.12s; }

.skills {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.skills > div { padding: 24px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.skills h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud span { padding: 8px 14px; border-radius: 999px; background: var(--paper-2); font-size: 14.5px; }

/* ---------- library ---------- */
.lib {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.lib__side { position: sticky; top: 100px; display: grid; gap: 26px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0 44px 0 46px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: none;
  transition: box-shadow 0.3s;
}
.search input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.search kbd {
  position: absolute;
  right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--muted);
}
.filter h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.filter__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.filter__opts button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.filter__opts button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter__opts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.filter__opts button .n { font-family: var(--mono); font-size: 11px; opacity: 0.55; margin-left: 4px; }
.lib__tg {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 14.5px;
  color: var(--ink-2);
}
.lib__tg p { margin: 0 0 12px; }

.lib__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.lib__bar b { color: var(--ink); font-weight: 500; }
.lib__bar button { color: var(--flame); font-weight: 500; }
.lib__list { list-style: none; margin: 0; padding: 0; }
.doc {
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
  animation: fadeUp 0.5s var(--ease) both;
}
.doc:hover { background: linear-gradient(to right, transparent, rgba(229, 160, 58, 0.09), transparent); }
.doc__icon {
  position: relative;
  width: 40px;
  height: 50px;
  border-radius: 3px 10px 3px 3px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--c, var(--flame));
}
.doc__icon::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 8px;
  right: 12px;
  height: 14px;
  background-image: linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
  background-size: 100% 4px;
}
.doc__title { font-weight: 500; font-size: 16px; line-height: 1.3; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.doc__meta .t { color: var(--c, var(--flame)); }
.doc__meta .new { color: #2f8a55; }
.doc__cls { font-family: var(--serif); font-size: 22px; color: var(--muted); min-width: 48px; text-align: right; }
.doc__dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.3s, color 0.3s;
}
.doc__dl:hover { background: var(--ink); color: var(--paper); }
.lib__empty { padding: 60px 0; text-align: center; color: var(--muted); }
.lib__empty b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 380; color: var(--ink); margin-bottom: 6px; }
.lib__more { margin-top: 26px; display: flex; justify-content: center; }
mark { background: rgba(229, 160, 58, 0.38); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- teacher ---------- */
.teacher {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 32, 27, 0.05) 10px 11px),
    var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 60px; }
.portrait__ph svg { margin: 0 auto 14px; color: var(--ink-2); }
.portrait__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(248, 245, 238, 0.92);
  font-size: 14px;
}
.portrait__label b { font-family: var(--serif); font-weight: 450; font-size: 18px; }
.portrait__label span { color: var(--muted); }
.quote {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 24px 0 0;
}
.quote em { font-style: italic; color: var(--flame); font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1; }
.quote-src { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.creds {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.creds div { padding: 18px 18px 0 0; }
.creds div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.creds b { display: block; font-family: var(--serif); font-weight: 380; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.creds span { font-size: 14px; color: var(--muted); }
.ph { color: var(--muted); font-style: italic; }

/* ---------- notices + channels ---------- */
.board { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; }
.notices { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 26px; }
.notice {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notice:last-child { border-bottom: 0; }
.notice__date { font-family: var(--serif); line-height: 1; }
.notice__date b { display: block; font-size: 34px; font-weight: 380; letter-spacing: -0.02em; }
.notice__date span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.notice h3 { margin: 0; font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.notice p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.notice .badge { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; background: var(--flame); color: var(--paper); margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.notice .kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--sulphate); letter-spacing: 0.04em; }
.notice__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.3s, color 0.3s, transform 0.5s var(--ease); }
.notice:hover .notice__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }

.channels { display: grid; gap: 18px; align-content: start; }
.yt {
  position: relative;
  border-radius: var(--radius);
  background: var(--flame);
  color: var(--paper);
  padding: 26px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
}
.yt svg.bigplay {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  color: rgba(0, 0, 0, 0.12);
  z-index: -1;
  transition: transform 0.8s var(--ease);
}
.yt:hover svg.bigplay { transform: translateX(-16px) scale(1.04); }
.yt h3 { margin: 10px 0 0; font-family: var(--serif); font-weight: 380; font-size: 32px; line-height: 1.05; letter-spacing: -0.015em; }
.yt .mono { opacity: 0.8; }
.yt .link { align-self: flex-start; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.3s, box-shadow 0.3s;
}
.social:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.social svg { color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.social:hover svg { transform: translate(2px, -2px); color: var(--flame); }

/* ---------- voices ---------- */
.voices { overflow: hidden; padding: 8px 0; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.voices__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.voices:hover .voices__track { animation-play-state: paused; }
.voice {
  width: min(420px, 80vw);
  flex: none;
  margin-right: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}
.voice p { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 350; line-height: 1.3; letter-spacing: -0.005em; }
.voice footer { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.voice footer i { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-style: normal; font-family: var(--serif); color: var(--ink); }
.sample-tag { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--flame); padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--flame); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq__side p { color: var(--ink-2); }
.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.3s, color 0.3s; }
.qa summary .pm::before,
.qa summary .pm::after { content: ""; position: absolute; left: 11px; right: 11px; top: 16.25px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.qa summary .pm::after { transform: rotate(90deg); }
.qa details[open] summary .pm { background: var(--ink); color: var(--paper); }
.qa details[open] summary .pm::after { transform: rotate(0); }
.qa .ans { overflow: hidden; }
.qa .ans p { margin: 0; padding: 0 60px 24px 0; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.centres { display: grid; gap: 18px; }
.centre { padding: 26px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--card); }
.centre__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.centre h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.015em; }
.centre address { font-style: normal; margin-top: 10px; color: var(--ink-2); }
.centre__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.centre .map {
  position: relative;
  height: 150px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.centre .map svg { width: 100%; height: 100%; }
.pin { position: absolute; left: 58%; top: 48%; transform: translate(-50%, -100%); color: var(--flame); }
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 40px; height: 12px; border-radius: 50%; background: rgba(196, 71, 43, 0.3); transform: translate(-50%, -50%); animation: ping 2s infinite; z-index: -1; }

.form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.form h3 { margin: 0; font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.05; }
.form h3 em { font-style: italic; color: var(--saffron); }
.form__intro { margin: 10px 0 26px; color: rgba(242, 237, 227, 0.65); font-size: 15.5px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(242, 237, 227, 0.6); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background-color: rgba(242, 237, 227, 0.07);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.16);
  color: var(--paper);
  outline: none;
  transition: box-shadow 0.3s, background-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f2ede3' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--ink); }
.field textarea { height: 96px; padding: 14px 16px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 237, 227, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--saffron); background-color: rgba(242, 237, 227, 0.1); }
.field.is-error input,
.field.is-error select { box-shadow: inset 0 0 0 1.5px #ff8a70; }
.field .err { font-size: 13px; color: #ff9f88; display: none; }
.field.is-error .err { display: block; animation: fadeUp 0.35s var(--ease); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; position: relative; font-size: 15px; color: var(--paper); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.16);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.form__foot small { color: rgba(242, 237, 227, 0.5); font-size: 13px; max-width: 32ch; }
.form .btn { --bg: var(--paper); --fg: var(--ink); }
.form .btn .arr { background: var(--ink); color: var(--paper); }
.form .btn:hover { color: var(--paper); }
.form .btn.is-loading { pointer-events: none; }
.form .btn.is-loading .arr svg { animation: spin 0.8s linear infinite; }
.done { padding: 10px 0; animation: fadeUp 0.6s var(--ease); }
.done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; margin-bottom: 22px; }
.done__mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.2s var(--ease) forwards; }
.done p { color: rgba(242, 237, 227, 0.7); }
.done .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form .btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(242, 237, 227, 0.3); }
.form .btn--ghost::before { background: var(--paper); }
.form .btn--ghost:hover { color: var(--ink); }
.done .btn--wa { --bg: #1f8f4e; --fg: #fff; }
.done .btn--wa::before { background: var(--paper); }
.done .btn--wa:hover { color: var(--ink); }
.done .btn--wa .arr { background: #fff; color: #1f8f4e; }

/* ---------- footer ---------- */
.footer { margin: clamp(80px, 10vw, 140px) clamp(8px, 1vw, 16px) clamp(8px, 1vw, 16px); padding-top: clamp(56px, 7vw, 88px); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242, 237, 227, 0.45); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: rgba(242, 237, 227, 0.85); transition: color 0.3s; }
.footer ul a:hover { color: var(--saffron); }
.footer__lede { font-family: var(--serif); font-size: 26px; font-weight: 340; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 22px; max-width: 18ch; }
.footer .btn--flame::before { background: var(--paper); }
.footer .btn--flame:hover { color: var(--ink); }
.footer .btn--flame:hover .arr { background: var(--ink); color: var(--paper); }
.wordmark {
  margin-top: clamp(56px, 8vw, 110px);
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(60px, 16.5vw, 280px);
  letter-spacing: -0.05em;
  line-height: 0.82;
  white-space: nowrap;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  user-select: none;
}
.wordmark .flame {
  color: var(--saffron);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.wordmark__deva { font-family: var(--deva); font-size: clamp(18px, 2vw, 26px); color: rgba(242, 237, 227, 0.5); margin-top: 18px; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(242, 237, 227, 0.14);
  font-size: 13.5px;
  color: rgba(242, 237, 227, 0.5);
}

/* ---------- floating / mobile bar ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #1f8f4e;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 16px 36px -12px rgba(31, 143, 78, 0.6);
  transform: translateY(120px);
  transition: transform 0.6s var(--ease), background 0.3s;
}
.fab.is-on { transform: none; }
.fab:hover { background: #187a41; }

.mbar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  padding: 6px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  box-shadow: 0 20px 40px -10px rgba(21, 32, 27, 0.5);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar a,
.mbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 500;
}
.mbar a { background: rgba(242, 237, 227, 0.08); }
.mbar button { background: var(--flame); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.5s;
}
.modal.is-open { visibility: visible; pointer-events: auto; transition: none; }
.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 27, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s;
}
.modal.is-open .modal__bg { opacity: 1; }
.modal__box {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45);
  transform: translateY(40px) scale(0.97);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 0; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.3s, color 0.3s, transform 0.5s var(--ease); }
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 18px 26px 0; }
.progress i { height: 3px; border-radius: 3px; background: var(--paper-3); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.progress i.on::after { transform: scaleX(1); }
.modal__body { padding: 26px; }
.mstep h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 380; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; }
.mstep h3 em { font-style: italic; color: var(--flame); }
.mstep > p { margin: 0 0 22px; color: var(--muted); }
.mstep { animation: stepIn 0.55s var(--ease) both; }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.picks--2 { grid-template-columns: 1fr 1fr; }
.pick {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  text-align: left;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.3s, background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.pick:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.pick b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -0.02em; margin-top: 8px; }
.pick small { display: block; margin-top: 8px; font-size: 13px; opacity: 0.7; }
.pick .mono { opacity: 0.6; font-size: 10.5px; }
.pick--wide b { font-size: 26px; }
.mlabel { display: block; margin: 22px 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mfields { display: grid; gap: 12px; }
.mfield { display: grid; gap: 6px; }
.mfield label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mfield input {
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: none;
}
.mfield input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.mfield.is-error input { box-shadow: inset 0 0 0 2px var(--flame); }
.mfield .err { display: none; font-size: 13px; color: var(--flame); }
.mfield.is-error .err { display: block; }
.mhint { margin-top: 10px; font-size: 13.5px; color: var(--flame); min-height: 1.2em; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 26px 26px; }
.modal__foot .back { color: var(--muted); font-weight: 500; }
.modal__foot .back[hidden] { display: inline !important; visibility: hidden; }
.summary { margin: 0 0 6px; padding: 18px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 15px; }
.summary dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.summary dd { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, 40px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease), opacity 0.35s, visibility 0s 0.6s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.6s var(--ease), opacity 0.35s; }
.toast i { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-style: normal; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.08s; }
.js [data-reveal="3"] { transition-delay: 0.16s; }
.js [data-reveal="4"] { transition-delay: 0.24s; }

/* ---------- keyframes ---------- */
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); opacity: 1; }
  30% { transform: scale(0.92, 1.08) rotate(3deg); }
  55% { transform: scale(1.05, 0.95) rotate(-3deg); opacity: 0.85; }
  80% { transform: scale(0.97, 1.04) rotate(1deg); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(58, 141, 92, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(58, 141, 92, 0); } }
@keyframes ping { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes liIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- responsive ---------- */
.nav__links a, .brand__name b { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav__phone { display: none; }
  .nav__links a { padding: 8px 11px; }
}
@media (max-width: 1100px) {
  .nav__links, .nav__phone { display: none; }
  .burger { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(4) { padding-left: 0; }
  .step { padding-bottom: 26px; }
  .lib { grid-template-columns: 1fr; }
  .lib__side { position: static; grid-template-columns: 1fr 1fr; }
  .lib__side .search { grid-column: 1 / -1; }
  .lib__tg { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 1 / 0.86; }
  .hero__sub { grid-template-columns: 1fr; gap: 0; }
  .hero__sub .eyebrow { display: none; }
  .tiles { grid-template-columns: repeat(min(var(--tile-count, 4), 4), 1fr); }
  .tiles__note { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .tile { min-height: 136px; padding: 12px; }
  .tile:nth-child(4) { border-right: 0; }
  .section__head { grid-template-columns: 1fr; }
  .about__grid, .why, .teacher, .faq, .contact, .board, .skills { grid-template-columns: 1fr; }
  .why ul { grid-template-columns: 1fr; }
  .batches, .branches { grid-template-columns: 1fr; }
  .equation { flex-direction: column; align-items: flex-start; gap: 22px; font-size: clamp(44px, 12vw, 72px); }
  .equation .op { margin: -10px 0; }
  .equation .arrow { flex: none; width: 100%; min-width: 0; align-items: flex-start; padding: 0; }
  .equation .arrow svg { width: 70%; }
  .portrait { aspect-ratio: 4 / 3.4; }
  .fab { display: none; }
  .mbar { display: grid; }
  .toast { bottom: 84px; }
  .footer { padding-bottom: 70px; }
}

@media (max-width: 600px) {
  .nav__in { height: 66px; }
  .nav__cta > .btn { display: none; }
  .brand__name span { display: none; }
  .tile__sym { font-size: 40px; }
  .tile__name small { display: none; }
  .tile { min-height: 116px; padding: 10px; }
  .tile__top { font-size: 10.5px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child, .step:nth-child(4) { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(242, 237, 227, 0.12); }
  .step b { margin-bottom: 14px; }
  .lib__side { grid-template-columns: 1fr; }
  .search kbd { display: none; }
  .doc { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .doc__icon { width: 34px; height: 42px; }
  .doc__cls { display: none; }
  .doc__dl span { display: none; }
  .doc__dl { width: 40px; padding: 0; justify-content: center; }
  .notice { grid-template-columns: 56px 1fr; }
  .notice__go { display: none; }
  .notices { padding: 4px 18px; }
  .fields { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .creds div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .creds div { padding: 14px 0; }
  .picks { grid-template-columns: 1fr 1fr; }
  .qa .ans p { padding-right: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .tabs button { margin-right: 16px; }
  .centre__head .chip { display: none; }
  .batch__cls { font-size: 54px; }
  .wordmark { font-size: 23.5vw; }
  .modal { padding: 0; place-items: end center; }
  .modal__box { border-radius: 22px 22px 0 0; max-height: 92dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero .line > span { transform: none; }
  .js .statement .w { opacity: 1; }
}
