/* ==========================================================================
   Yantra Paalan — shared stylesheet
   Plain CSS. No build step, no JavaScript.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --brand:        #3B2F94;
  --brand-dark:   #2B2170;
  --brand-darker: #1E1751;
  --accent:       #7C3AED;
  --bg:           #F4F5F7;
  --surface:      #FFFFFF;
  --surface-alt:  #ECEDF2;
  --ink:          #16181F;
  --ink-soft:     #33384A;
  --muted:        #575D70;
  --border:       #DFE2E9;
  --border-strong:#C6CBD6;
  --ok:           #1B7A55;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 31, .06), 0 1px 3px rgba(22, 24, 31, .05);
  --shadow-md: 0 4px 12px rgba(22, 24, 31, .07), 0 2px 4px rgba(22, 24, 31, .05);
  --shadow-lg: 0 18px 40px rgba(30, 23, 81, .13);

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
  /* System Devanagari only — no web font, so the page stays request-free.
     Every Devanagari string on the site is paired with a transliteration,
     so meaning survives even where these fonts are missing. */
  --devanagari: "Noto Sans Devanagari", "Devanagari Sangam MN", "Kohinoor Devanagari",
                "Nirmala UI", "Mangal", "Noto Serif Devanagari", var(--sans);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .5em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

strong { color: var(--ink); font-weight: 650; }

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.lede { font-size: 1.12rem; color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-block: .8rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-lockup:hover { color: var(--ink); }
.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.1;
  display: block;
}
.brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: .3rem 0;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); border-bottom-color: var(--border-strong); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
/* Buttons inside the nav must beat the `.site-nav a` colour rule above. */
.site-nav a.btn { border-bottom: 0; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; background: var(--brand-dark); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--brand-dark); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(124, 58, 237, .30), transparent 62%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: #EDEBFA;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-lede {
  font-size: 1.14rem;
  color: #D6D2F2;
  max-width: 34em;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #E4E0FB;
  margin-bottom: 1.4rem;
}
/* Devanagari needs a touch more size than Latin to stay legible at this scale. */
.hero-badge .deva {
  font-size: 1.2em;
  line-height: 1.2;
  color: #FFFFFF;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: .93rem;
  color: #BEB8E8;
  margin-bottom: 0;
}
.hero-note a { color: #fff; }

/* --- Placeholders (App Store badge, screenshots) ------------------------ */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-align: center;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--muted);
  padding: 1rem;
}
.placeholder .ph-title {
  font-weight: 650;
  font-size: .9rem;
  color: var(--ink-soft);
}
.placeholder .ph-meta { font-size: .78rem; }

.badge-placeholder {
  width: 200px;
  height: 62px;
  border-radius: 10px;
}

/* --- App screenshots ----------------------------------------------------- */
/* No aspect-ratio box: each image keeps its own proportions from the width and
   height attributes, so a differently-cropped capture is never stretched. */
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.75rem 1.5rem;
}
/* Five phones side by side get tall fast — keep the gallery in proportion. */
.shot-grid .shot-img { max-width: 200px; }

/* Captures are cropped to different heights. Bottom-aligning the figures lines
   the captions up and stands the phones on a common shelf, rather than leaving
   one caption floating higher than the rest. */
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shot figcaption {
  margin-top: .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Hero app-icon lockup ------------------------------------------------ */
.app-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.app-mark-tile {
  display: block;
  width: clamp(148px, 30vw, 216px);
  height: auto;
  aspect-ratio: 1;
  /* The SVG is a hard square; the site's standard radius is applied here so the
     same asset can be reused hard-edged elsewhere. */
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg);
}

.app-mark figcaption { display: block; }

.app-mark-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

/* Shloka under the app name — Devanagari, transliteration, gloss. */
.app-mark-shloka {
  display: block;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 22em;
  margin-inline: auto;
}
.shloka-deva {
  display: block;
  font-family: var(--devanagari);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.7;
  color: #FFFFFF;
}
.shloka-translit {
  display: block;
  margin-top: .15rem;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .02em;
  color: #CFC9F0;
}
.shloka-gloss {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  letter-spacing: .02em;
  color: #A79FD8;
}

/* --- Card grids --------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p  { margin-bottom: 0; color: var(--muted); font-size: .97rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #EDEAFB;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 23px; height: 23px; display: block; }

/* --- Outcomes band ------------------------------------------------------ */
.outcome-h {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.outcome-h svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}
.outcomes-note {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-strong);
  font-size: .95rem;
  color: var(--muted);
  max-width: 62ch;
}

/* --- Trust strip -------------------------------------------------------- */
.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2.2rem;
}
.strip li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.strip svg { width: 17px; height: 17px; color: var(--ok); flex: 0 0 auto; }

/* --- Roles table -------------------------------------------------------- */
.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.role-list li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
}
.role-list .role-name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .15rem;
}
.role-list .role-desc { font-size: .95rem; color: var(--muted); }

/* --- Steps -------------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.steps li {
  margin: 0;
  counter-increment: step;
  padding-top: 3.1rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(124, 58, 237, .34), transparent 60%),
    linear-gradient(120deg, var(--brand-darker), var(--brand));
  color: #E7E4F9;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFC9F0; max-width: 46em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .cta-mail {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: .92rem;
  color: #BEB8E8;
}
.cta-band .cta-mail a { color: #fff; }

/* --- Contact / callout boxes -------------------------------------------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.callout :last-child { margin-bottom: 0; }
/* A callout can hold a real section heading. These selectors are deliberately
   scoped through .doc so they outrank the `.doc h2` rules further down. */
.callout h2, .doc .callout h2 {
  font-size: 1.2rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.callout h3, .doc .callout h3 {
  font-size: 1.05rem;
  margin-top: 0;
}

.callout-warn { border-left-color: #B45309; background: #FFF9EF; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { color: var(--muted); font-size: .97rem; }
.contact-card :last-child { margin-bottom: 0; }
.mail-big {
  font-size: 1.1rem;
  font-weight: 650;
  word-break: break-word;
}

/* --- Legal / document pages --------------------------------------------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); margin-bottom: 0; }

.doc-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.doc-meta li { margin: 0; }
.doc-meta strong { color: var(--ink-soft); }

.draft-banner {
  background: #FFF4E0;
  border: 1px solid #F0C67C;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 2.25rem;
  color: #5C3D07;
  font-size: .96rem;
}
.draft-banner strong { color: #4A3105; }
.draft-banner :last-child { margin-bottom: 0; }

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 1.75rem; font-size: 1.05rem; }
.doc ul { margin-bottom: 1.4em; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
  border: 0;
  padding: 0;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 2rem;
}
.toc li { margin-bottom: .3em; break-inside: avoid; font-size: .95rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  background: var(--surface);
  font-size: .95rem;
}
caption {
  text-align: left;
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: .6rem;
}
th, td {
  text-align: left;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 650;
}

/* ==========================================================================
   Sanskrit / brand-story sections
   "Yantra" means both a machine and a geometric diagram drawn to hold
   attention. The artwork below reads it both ways: gear teeth outside,
   mandala geometry within.
   ========================================================================== */

.deva {
  font-family: var(--devanagari);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  /* Devanagari sits on a higher baseline than Latin at the same size. */
  line-height: 1.9;
}

.section-tinted {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFEDFA 100%);
  border-block: 1px solid var(--border);
}

/* --- "The name" ---------------------------------------------------------- */
.name-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.name-art { display: flex; justify-content: center; }

.mandala {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.sanskrit-display {
  font-family: var(--devanagari);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--brand);
  margin: 0 0 .1em;
}

.sanskrit-translit {
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.etym { margin: 0 0 1.6rem; }
.etym-item {
  border-left: 3px solid var(--accent);
  padding: .15rem 0 .15rem 1.1rem;
  margin-bottom: 1.3rem;
}
.etym dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .7rem;
  margin-bottom: .2rem;
}
.etym dt .deva {
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1.5;
}
.etym dt .translit {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.etym dd {
  margin: 0;
  font-size: .98rem;
  color: var(--muted);
}
.etym dd .deva { font-size: 1.05rem; color: var(--ink-soft); }

/* --- Paalan chakra ------------------------------------------------------- */
/* The wheel is artwork only; the stage names live in HTML beside it so they
   stay readable at every width. SVG text would scale with the viewBox and
   become illegible on a phone. */
.chakra-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.chakra {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
  display: block;
}
/* SVG does not inherit the page font reliably — set it explicitly. */
.chakra text { font-family: var(--sans); }
.chakra .chakra-num   { font-size: 14px; font-weight: 700; fill: #FFFFFF; }
.chakra .chakra-deva  { font-family: var(--devanagari); font-size: 30px; font-weight: 600; fill: var(--brand); }
.chakra .chakra-roman { font-size: 12px; font-weight: 700; letter-spacing: .18em; fill: var(--accent); }

.chakra-legend {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.chakra-legend li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.chakra-badge {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: .9rem;
  margin-top: .1rem;
}
/* Badge colours track the five wheel segments, brand through to accent. */
.chakra-legend li:nth-child(1) .chakra-badge { background: #3B2F94; }
.chakra-legend li:nth-child(2) .chakra-badge { background: #4A34A4; }
.chakra-legend li:nth-child(3) .chakra-badge { background: #5A38B8; }
.chakra-legend li:nth-child(4) .chakra-badge { background: #6B3ECD; }
.chakra-legend li:nth-child(5) .chakra-badge { background: #7C3AED; }

.chakra-legend .stage {
  display: block;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.chakra-legend .stage-desc {
  font-size: .95rem;
  color: var(--muted);
}
.chakra-loop {
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid var(--border-strong);
  padding-top: 1.1rem;
  margin-bottom: 0;
}

/* --- Hero watermark ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }

.hero-yantra {
  position: absolute;
  top: 50%;
  right: -13%;
  width: min(720px, 78vw);
  height: auto;
  transform: translateY(-50%);
  opacity: .10;
  color: #FFFFFF;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero-yantra { right: -32%; opacity: .07; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: #191C26;
  color: #A9AEBD;
  padding: 3rem 0 2rem;
  font-size: .93rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid #2E3240;
}
.footer-grid h2 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E6E8EF;
  margin-bottom: .9rem;
}
.footer-brand .brand-lockup { color: #fff; }
.footer-brand .brand-lockup:hover { color: #fff; }
.footer-brand .brand-tag { color: #A9AEBD; }
.footer-brand p {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 30em;
  color: #A9AEBD;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #D5D8E2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  color: #8D93A4;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* --- Page shell --------------------------------------------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

/* --- Responsive --------------------------------------------------------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-shot { justify-self: end; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .name-grid   { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .chakra-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .toc ol { columns: 1; }
  .header-inner { padding-block: .7rem; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: .35rem 1.1rem; }
  .site-nav a { font-size: .9rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .site-nav .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; }
}
