/* Layout: a kasavu cloth. A cool mist-white ground, deep backwater-green ink, and a woven gold
   double border as the one recurring motif. Left-aligned editorial grid: section titles in a
   narrow left column that stays in view, content in the wider right column. */
:root {
  --paper: #EDF0EA;
  --paper-raised: #F7F9F4;
  --band: #E2E8DF;
  --ink: #122E28;
  --ink-soft: #4A615A;
  --zari: #A9791E;
  --zari-ink: #7A5710;
  --zari-soft: #D2BC8A;
  --water: #22675C;
  --on-ink: #EDF0EA;
  --rule: rgba(18, 46, 40, 0.14);
  --rule-strong: rgba(18, 46, 40, 0.28);
  --thread: rgba(255, 255, 255, 0.28);

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ml: "Noto Serif Malayalam", "Manjari", "Kartika", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.6vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.4vw, 5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E201C;
    --paper-raised: #142A25;
    --band: #112620;
    --ink: #E4EBE2;
    --ink-soft: #A3B6AE;
    --zari: #D3A64A;
    --zari-ink: #E3BD69;
    --zari-soft: #6E5A2E;
    --water: #86C6B9;
    --on-ink: #0E201C;
    --rule: rgba(228, 235, 226, 0.13);
    --rule-strong: rgba(228, 235, 226, 0.28);
    --thread: rgba(0, 0, 0, 0.22);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0E201C;
  --paper-raised: #142A25;
  --band: #112620;
  --ink: #E4EBE2;
  --ink-soft: #A3B6AE;
  --zari: #D3A64A;
  --zari-ink: #E3BD69;
  --zari-soft: #6E5A2E;
  --water: #86C6B9;
  --on-ink: #0E201C;
  --rule: rgba(228, 235, 226, 0.13);
  --rule-strong: rgba(228, 235, 226, 0.28);
  --thread: rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--water); text-underline-offset: 0.18em; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 4px;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(36px, env(safe-area-inset-left, 0px));
    padding-right: max(36px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.brand-sub { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; line-height: 1; padding-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(var(--zari), var(--zari)) left bottom / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { background-size: 100% 1.5px; }

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.45em 0.9em;
  cursor: pointer;
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.open { display: flex; }
  .brand-sub { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.45em;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--water); border-color: var(--water); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: transparent; color: var(--water); border-color: var(--water); }
.btn-small { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Kasavu border ---------- */
.kasavu {
  display: block;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--thread) 0 1px, transparent 1px 4px) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 0 / 100% 6px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 9px / 100% 2px no-repeat;
  transform-origin: left center;
}
.kasavu--hero {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--thread) 0 1px, transparent 1px 4px) 0 0 / 100% 12px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 0 / 100% 12px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 16px / 100% 3px no-repeat;
}
.kasavu--thin {
  height: 6px;
  background:
    linear-gradient(var(--zari), var(--zari)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--zari), var(--zari)) 0 5px / 100% 1px no-repeat;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(44px, 7vw, 88px); }
.hero-inner { display: grid; gap: 28px; padding-bottom: clamp(24px, 4vw, 40px); }
.definition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em 0.75em;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.ml { font-family: var(--font-ml); font-size: 1.75rem; color: var(--zari); line-height: 1.2; font-weight: 500; }
.definition i { font-family: var(--font-display); font-style: normal; color: var(--ink); }
.hero h1 { font-size: var(--step-4); max-width: 14ch; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 14px; height: 2px; background: var(--zari); flex: none; }

.rise { animation: rise 0.85s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.kasavu--hero { animation: weave 1.4s var(--ease) 0.45s both; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes weave { from { transform: scaleX(0); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--band { background: var(--band); }
.grid { display: grid; gap: 40px; }
.section-head { display: grid; gap: 16px; align-content: start; }
.section-head h2 { font-size: var(--step-3); }
.section-intro { color: var(--ink-soft); max-width: 40ch; }
.section-body { display: grid; gap: 40px; min-width: 0; }

@media (min-width: 900px) {
  .grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
  .section-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); }
}

.divider { padding-top: 0; }

/* ---------- Principles ---------- */
.principles { display: grid; gap: 40px 48px; }
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rule-strong); }
.principle h3 { font-size: var(--step-1); }
.principle p { color: var(--ink-soft); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; position: relative; display: grid; gap: 34px; }
.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--zari-soft);
  transform-origin: top center;
  transition: transform 1.8s var(--ease);
}
.steps.armed::before { transform: scaleY(0); }
.steps.armed.in::before { transform: scaleY(1); }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; position: relative; }
.step-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1.5px solid var(--zari);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.step-body { display: grid; gap: 8px; padding-top: 6px; min-width: 0; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); max-width: 58ch; }
.seal {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0.3em 0.85em 0.3em 0.6em;
  border: 1px solid var(--zari);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zari-ink);
}
.seal svg { width: 15px; height: 15px; }
.note { font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- Package ---------- */
.package {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: calc(clamp(24px, 4vw, 44px) + 12px) clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px);
  display: grid;
  gap: 32px;
}
.package > .kasavu { position: absolute; top: -1px; left: -1px; right: -1px; }
.price-block { display: grid; gap: 6px; }
.price {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-unit { color: var(--ink-soft); }
.package-cols { display: grid; gap: 32px; }
@media (min-width: 680px) { .package-cols { grid-template-columns: 1fr 1fr; } }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.col + .col .label:not(:first-child) { margin-top: 16px; }
.label { font-weight: 600; font-size: 1rem; }
.small { font-size: 0.92rem; color: var(--ink-soft); }
.list { list-style: none; padding: 0; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.list li::before { content: ""; width: 10px; height: 2px; background: var(--zari); margin-top: 0.8em; }
.package-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--rule); }

.terms { display: grid; gap: 20px; }
.terms div { display: grid; gap: 4px; }
.terms dt { font-weight: 600; }
.terms dd { color: var(--ink-soft); max-width: 62ch; }
.terms-title { font-size: var(--step-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule-strong); padding-block: 20px; }
.faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--zari-ink);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-top: 12px; color: var(--ink-soft); max-width: 62ch; }
.faq details[open] .answer { animation: rise 0.45s var(--ease) both; }

/* ---------- Work teaser ---------- */
.statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; max-width: 18ch; text-wrap: balance; }
.work-body { display: grid; gap: 24px; justify-items: start; }
.work-body p { color: var(--ink-soft); max-width: 58ch; }

/* ---------- Contact ---------- */
.contact-aside { display: grid; gap: 24px; align-content: start; }
.aside-item { display: grid; gap: 4px; }
.aside-item .k { font-size: 0.88rem; color: var(--ink-soft); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-text { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.3em 0.8em;
  cursor: pointer;
}
.copy:hover { border-color: var(--water); color: var(--water); }

.form { display: grid; gap: 18px; min-width: 0; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.93rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea, .notice textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.75em 0.9em;
  width: 100%;
  min-width: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--water); outline: 2px solid var(--zari); outline-offset: 1px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .small { max-width: 44ch; }
.status { font-weight: 600; color: var(--zari-ink); }
.notice {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.notice h3 { font-size: var(--step-1); }
.notice p { color: var(--ink-soft); }
.notice textarea { min-height: 170px; font-size: 0.92rem; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal on scroll (content stays readable at rest) ---------- */
.armed[data-reveal] { opacity: 0.5; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.armed[data-reveal].in { opacity: 1; transform: none; }
.kasavu.armed { transform: scaleX(0); transition: transform 1.3s var(--ease); }
.kasavu.armed.in { transform: scaleX(1); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 0 40px; }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; font-size: 0.93rem; color: var(--ink-soft); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-grid strong { color: var(--ink); font-weight: 600; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--water); }

/* ---------- Education page ---------- */
.crumbs { font-size: 0.9rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--zari); }
.crumbs a { color: var(--ink-soft); }

.case-meta { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.case-meta div { display: grid; gap: 2px; }
.case-meta dt { font-size: 0.88rem; color: var(--ink-soft); }
.case-meta dd { font-weight: 600; }

.chart { display: grid; gap: 20px; }
.chart figcaption { font-size: 0.9rem; color: var(--ink-soft); }
.bar-row { display: grid; gap: 8px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.bar-label span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 14px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.bar { height: 100%; background: var(--ink-soft); border-radius: 2px; }
.bar--after { width: max(4px, 0.4%); background: var(--zari); transition: width 1.8s var(--ease) 0.2s; }
.chart.armed .bar--after { width: 100%; }
.chart.armed.in .bar--after { width: max(4px, 0.4%); }

.outcomes { display: grid; gap: 28px; }
@media (min-width: 760px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outcome { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 2px solid var(--zari); }
.outcome strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; }
.outcome span { color: var(--ink-soft); font-size: 0.95rem; }

.prose { display: grid; gap: 16px; }
.prose p { color: var(--ink-soft); max-width: 62ch; }
.prose p.strong { color: var(--ink); }

.components { display: grid; gap: 22px; }
@media (min-width: 640px) { .components { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
.components div { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule-strong); }
.components dt { font-family: var(--font-display); font-size: var(--step-1); }
.components dd { color: var(--ink-soft); }

.feedback {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1.5px dashed var(--zari);
  border-radius: 4px;
  background: var(--paper-raised);
}
.feedback .tag { font-weight: 600; color: var(--zari-ink); }
.feedback p { color: var(--ink-soft); }

.areas { list-style: none; padding: 0; display: grid; gap: 0; }
.areas li { padding-block: 14px; border-top: 1px solid var(--rule-strong); display: grid; gap: 2px; }
.areas li:last-child { border-bottom: 1px solid var(--rule-strong); }
.areas strong { font-weight: 600; }
.areas span { color: var(--ink-soft); font-size: 0.95rem; }

.cta-band { display: grid; gap: 20px; justify-items: start; }
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }

/* ---------- v1.1: graphics and motion ---------- */

/* Backwater canvas under the hero */
.water { display: block; width: 100%; height: clamp(110px, 13vw, 170px); }

/* Principle icons that draw themselves in */
.icon { width: 44px; height: 44px; }
.icon path, .icon circle { fill: none; stroke: var(--zari); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.principle.armed .icon path, .principle.armed .icon circle { stroke-dashoffset: 1; }
.principle.armed.in .icon path, .principle.armed.in .icon circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) 0.25s; }
.principle:hover .icon path, .principle:hover .icon circle { stroke: var(--water); transition: stroke 0.3s var(--ease); }

/* Process stages light up as you pass them */
.step-n { transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease); }
.step.lit .step-n { background: var(--zari); border-color: var(--zari); color: var(--on-ink); transform: scale(1.06); }
.step h3 { transition: color 0.5s var(--ease); }

/* A year with Tattva */
.year { display: grid; gap: 12px; }
.year-title { font-size: var(--step-2); }
.year-grid, .year-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.yr-build {
  grid-column: 1 / span 3;
  height: 52px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--on-ink);
  display: flex;
  align-items: center;
  padding-inline: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  transform-origin: left center;
  overflow: hidden;
}
.yr-care { height: 52px; border-radius: 3px; background: var(--rule); display: grid; place-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zari); }
.year-months span { font-size: 0.78rem; color: var(--ink-soft); text-align: center; font-variant-numeric: tabular-nums; }
.year-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9rem; color: var(--ink-soft); }
.year-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.swatch--build { background: var(--ink); }
.swatch--care { background: var(--rule-strong); }
.swatch--dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zari); }
.year.armed .yr-build { transform: scaleX(0); }
.year.armed .dot { transform: scale(0); }
.year.armed.in .yr-build { transform: scaleX(1); transition: transform 0.9s var(--ease); }
.year.armed.in .dot { transform: scale(1); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(0.8s + var(--d, 0) * 110ms); }
@media (max-width: 520px) { .yr-build { font-size: 0.72rem; padding-inline: 6px; } }

/* Admissions pipeline on the education page */
.pipeline { display: grid; gap: 12px; }
.pipeline canvas { display: block; width: 100%; height: clamp(230px, 28vw, 320px); background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 4px; }
.pipeline figcaption { font-size: 0.9rem; color: var(--ink-soft); }
.components dt { display: flex; align-items: center; gap: 12px; }
.gate-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--zari);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* Page-to-page transition (supporting browsers) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .principle.armed .icon path, .principle.armed .icon circle { stroke-dashoffset: 0 !important; }
  .year.armed .yr-build, .year.armed .dot { transform: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .armed[data-reveal], .kasavu.armed, .steps.armed::before, .chart.armed .bar--after { opacity: 1 !important; transform: none !important; }
  .chart.armed .bar--after { width: max(4px, 0.4%) !important; }
}
