/* ==========================================================================
   veerannasomanna.com — design system
   Concept: MOVEMENT • WATER • PUBLIC SERVICE
   Railway geometry + flowing water forms + civic infrastructure.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* primary */
  --teal: #123B3A;          /* Midnight Teal */
  --petrol: #164F52;        /* Deep Petrol */
  --porcelain: #F4F1E8;     /* Porcelain */
  --mist: #DDE5E1;          /* Mist */
  /* accents */
  --terra: #C86B4A;         /* Terracotta (decorative / large text) */
  --terra-d: #A4502F;       /* Terracotta, text-safe on light */
  --coral: #D9876B;         /* Soft Coral (on dark) */
  --brass: #B79A62;         /* Muted Brass */
  /* secondary */
  --river: #748786;         /* River Grey (decorative) */
  --river-d: #506261;       /* River Grey, text-safe on light */
  --ink: #172525;           /* Deep Ink */

  --paper: #FAF8F2;         /* lifted porcelain surface */
  --line: rgba(23, 37, 37, .14);
  --line-strong: rgba(23, 37, 37, .28);
  --line-inv: rgba(221, 229, 225, .18);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(72px, 10vw, 144px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--porcelain);
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* NB: no overflow on body — it would break the sticky header */
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terra-d); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
h4 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.h4, h3.h4 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
em, i { font-style: italic; }
strong, b { font-weight: 600; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--terra); color: #fff; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--porcelain); padding: 10px 16px; border-radius: var(--r);
  font-size: 15px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--porcelain); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--mid { max-width: 1080px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.clip { overflow: hidden; }

/* ---------- 3. Type utilities ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--river-d);
  margin: 0 0 20px;
}
.kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--terra); background: var(--porcelain); flex: none;
}
.kicker--plain::before { display: none; }
.lede { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--ink); font-weight: 400; }
.meta { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--river-d); }
.muted { color: var(--river-d); }
.num { font-family: var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.measure { max-width: 68ch; }
.small { font-size: .95rem; line-height: 1.6; }

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 12px 22px; border-radius: 2px;
  font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; border: 1px solid var(--teal); color: var(--porcelain); background: var(--teal);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--petrol); border-color: var(--petrol); color: var(--porcelain); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--porcelain); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--petrol); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--terra-d); }
.arrow { display: inline-block; width: 18px; height: 10px; flex: none; }

/* ==========================================================================
   5. Header — sticky "route line" navigation
   ========================================================================== */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(244, 241, 232, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(18, 59, 58, .45); background: rgba(244, 241, 232, .97); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--river-d); margin-top: 5px; }
.brand:hover { color: var(--ink); }

.route-nav { display: none; }
.route-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; position: relative; }
.route-nav ul::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 1px; background: var(--line-strong);
}
.route-nav li { position: relative; }
.route-nav a {
  position: relative; display: block; padding: 18px 9px 6px;
  font-size: .82rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.route-nav a::before {
  content: ""; position: absolute; left: 50%; top: 1px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--porcelain); border: 1.5px solid var(--river);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.route-nav a:hover { color: var(--petrol); }
.route-nav a:hover::before { background: var(--petrol); border-color: var(--petrol); transform: scale(1.15); }
.route-nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.route-nav a[aria-current="page"]::before { background: var(--terra); border-color: var(--terra); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(200, 107, 74, .16); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 8px 4px 8px 12px;
  background: none; border: 0; color: var(--ink); cursor: pointer; font-family: var(--f-mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.menu-toggle__bars { width: 26px; height: 14px; position: relative; flex: none; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; right: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }

/* full-screen route-map menu (tablet & mobile) */
.menu-panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--teal); color: var(--porcelain);
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.menu-panel.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease), visibility 0s; }
.menu-panel__bar { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-inv); }
.menu-panel .brand, .menu-panel .brand:hover { color: var(--porcelain); }
.menu-panel .brand__sub { color: var(--mist); }
.menu-close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px 8px 12px;
  background: none; border: 0; color: var(--porcelain); cursor: pointer;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.menu-close svg { width: 22px; height: 22px; }
.menu-panel__body { flex: 1; padding-block: 28px 40px; }
.menu-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr; }
.menu-list::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: 22px; width: 1px; background: var(--line-inv); }
.menu-list a {
  position: relative; display: flex; align-items: baseline; gap: 16px; padding: 11px 0 11px 40px; min-height: 48px;
  color: var(--porcelain); text-decoration: none; font-family: var(--f-display); font-size: 1.55rem; line-height: 1.2;
  transition: color .2s, padding .3s var(--ease);
}
.menu-list a::before {
  content: ""; position: absolute; left: 6px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 1.5px solid var(--mist);
}
.menu-list a .no { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--mist); opacity: .7; min-width: 20px; }
.menu-list a:hover { color: #fff; padding-left: 46px; }
.menu-list a[aria-current="page"] { color: var(--coral); }
.menu-list a[aria-current="page"]::before { background: var(--terra); border-color: var(--terra); }
.menu-panel__foot { border-top: 1px solid var(--line-inv); padding-top: 22px; margin-top: 28px; font-size: .95rem; color: var(--mist); }
.menu-panel__foot a { color: var(--porcelain); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ==========================================================================
   6. Figures — images are never cropped
   ========================================================================== */
.figure { margin: 0; position: relative; }
.figure__frame {
  position: relative; background: var(--mist); border-radius: var(--r); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.figure__frame img { width: 100%; height: auto; transition: transform .8s var(--ease); }
/* fixed-ratio frame: full image shown with `contain` */
.figure__frame--fixed img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.figure:hover .figure__frame img { transform: scale(1.025); }
.figure figcaption, .caption {
  display: flex; gap: 12px; align-items: baseline; margin-top: 12px;
  font-size: .88rem; line-height: 1.5; color: var(--river-d);
}
.figure figcaption::before, .caption::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--terra); transform: translateY(-4px); }
.figure--lowres { max-width: 560px; }

/* ==========================================================================
   7. Decorative systems (route lines, water, grids)
   ========================================================================== */
.deco { position: absolute; pointer-events: none; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(18, 59, 58, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 59, 58, .06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.rails {
  height: 7px; width: 100%;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .35;
  background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 14px);
  background-size: 100% 100%;
}
.ticks {
  height: 12px; width: 100%;
  background-image:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 120px);
  background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; background-position: 0 100%, 0 100%;
  opacity: .5;
}
.reveal-ready .draw path, .reveal-ready .draw line, .reveal-ready .draw polyline { stroke-dasharray: var(--len, 1600); stroke-dashoffset: var(--len, 1600); }
.reveal-ready .is-visible .draw path, .reveal-ready .is-visible .draw line, .reveal-ready .is-visible .draw polyline, .reveal-ready .draw.is-visible path { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* reveal on scroll */
/* Fail-safe: content is only hidden once main.js has run (html.reveal-ready). */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   8. Page hero (internal pages) — each page overrides composition
   ========================================================================== */
.crumbs { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--river-d); }
.crumbs li + li::before { content: "—"; margin-right: 8px; color: var(--river); }
.crumbs a { color: var(--river-d); text-decoration: none; }
.crumbs a:hover { color: var(--terra-d); }
.crumbs--inv, .crumbs--inv a { color: var(--mist); }

.page-hero { position: relative; padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 42ch; margin-top: 24px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.page-hero__meta dt, .page-hero__meta .l { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); }
.page-hero__meta dd, .page-hero__meta .v { margin: 0; font-size: 1rem; font-weight: 600; }

/* ==========================================================================
   9. HOME
   ========================================================================== */
.home-hero { position: relative; padding-top: clamp(40px, 5vw, 72px); overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.home-hero__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .2em; color: var(--terra-d); text-transform: uppercase; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.home-hero__label span + span::before { content: "•"; margin-right: 14px; color: var(--river); }
.home-hero h1 { font-size: clamp(3.2rem, 8vw, 6.6rem); line-height: .95; letter-spacing: -.025em; }
.home-hero h1 .dot { color: var(--terra); }
.home-hero__role { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.35; color: var(--petrol); margin: 22px 0 0; max-width: 30ch; }
.home-hero__intro { margin-top: 28px; max-width: 54ch; color: var(--ink); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.home-hero__figure { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.home-hero__figure .routes { position: absolute; inset: -12% -30% -8% -30%; width: 160%; height: 120%; color: var(--petrol); opacity: .5; z-index: 0; }
.home-hero__portrait { position: relative; z-index: 1; border-radius: 2px; background: var(--mist); box-shadow: 0 30px 60px -38px rgba(18, 59, 58, .55); }
.home-hero__portrait img { width: 100%; height: auto; }
.home-hero__portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--terra); z-index: -1; border-radius: 2px; }
.home-hero__cap { position: relative; z-index: 1; margin-top: 26px; }
.home-hero__plate { position: absolute; z-index: 2; left: -18px; bottom: 32px; background: var(--teal); color: var(--porcelain); padding: 12px 16px; border-radius: 2px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }
.home-hero__plate b { display: block; font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 400; }

/* the route indicator across the hero base */
.route-indicator { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-block: 28px 36px; }
.route-indicator ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.route-indicator li { position: relative; padding: 0 0 22px 32px; }
.route-indicator li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--petrol); background: var(--porcelain); z-index: 1; }
.route-indicator li::after { content: ""; position: absolute; left: 10px; top: 14px; bottom: -8px; width: 1.5px; background: var(--petrol); }
.route-indicator li:last-child::after { display: none; }
.route-indicator li:last-child::before { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 5px rgba(200, 107, 74, .18); }
.route-indicator .ri-step { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); display: block; }
.route-indicator .ri-name { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; display: block; }
.route-indicator .ri-note { font-size: .85rem; color: var(--river-d); display: block; line-height: 1.45; margin-top: 2px; }

/* current responsibilities */
.duty { background: var(--teal); color: var(--porcelain); position: relative; overflow: hidden; }
.duty h2, .duty h3 { color: var(--porcelain); }
.duty .kicker { color: var(--mist); }
.duty .kicker::before { background: var(--teal); }
.duty__head { display: grid; gap: 24px; margin-bottom: 56px; }
.duty__head p { color: var(--mist); max-width: 60ch; margin: 0; }
.duty__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-inv); }
.duty__item { padding: 36px 0; border-bottom: 1px solid var(--line-inv); display: grid; gap: 18px; position: relative; }
.duty__item .no { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; color: var(--coral); text-transform: uppercase; }
.duty__item h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.duty__item p { color: var(--mist); margin: 0; }
.duty__item ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.duty__item li { font-size: .82rem; padding: 5px 12px; border: 1px solid var(--line-inv); border-radius: 40px; color: var(--mist); }
.duty__item .link-arrow { color: var(--porcelain); justify-self: start; }
.duty__item .link-arrow:hover { color: var(--coral); }
.duty__note { margin-top: 32px; font-size: .92rem; color: var(--mist); max-width: 76ch; display: flex; gap: 14px; }
.duty__note::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mist); display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: .9rem; }
.duty .routes { position: absolute; right: -10%; top: 0; width: 70%; height: 100%; color: var(--mist); opacity: .08; }

/* the journey — station strip */
.journey__head { display: grid; gap: 20px; margin-bottom: 56px; }
.journey__head p { max-width: 58ch; margin: 0; }
.stations { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr; }
.station { position: relative; padding: 0 0 40px 44px; }
.station::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: -10px; width: 2px; background: var(--teal); }
.station:last-child::before { display: none; }
.station__node { position: absolute; left: 6px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--porcelain); border: 2px solid var(--teal); z-index: 1; transition: background .4s, transform .4s var(--ease); }
.station.is-visible .station__node { background: var(--teal); }
.station--now .station__node { background: var(--terra) !important; border-color: var(--terra); box-shadow: 0 0 0 6px rgba(200, 107, 74, .16); }
.station__when { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; color: var(--terra-d); display: block; margin-bottom: 6px; }
.station__inst { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); display: block; margin-bottom: 8px; font-weight: 600; }
.station h3 { font-size: 1.35rem; margin-bottom: 10px; }
.station p { font-size: 1rem; line-height: 1.6; margin: 0; color: #2c3c3c; }

/* Karnataka editorial */
.k2p { background: var(--paper); border-block: 1px solid var(--line); }
.k2p__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.k2p__text h2 { margin-bottom: 28px; }
.k2p__facts { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.k2p__facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.k2p__facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); }
.k2p__facts dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3; }
.k2p__media { display: grid; gap: 20px; align-content: start; }
.k2p__media .figure:nth-child(2) { width: 78%; justify-self: end; margin-top: 12px; }

/* Railways block (home) */
.rail-block { position: relative; overflow: hidden; }
.rail-block__title { font-family: var(--f-display); font-size: clamp(4rem, 14vw, 11.5rem); line-height: .82; letter-spacing: -.04em; color: var(--teal); margin: 0; }
.rail-block__title span { color: var(--terra); }
.rail-block__band { margin: 28px 0 48px; color: var(--teal); }
.rail-block__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); }
.spec-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-list .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--terra-d); padding-top: 4px; }
.spec-list .h4 { margin-bottom: 4px; }
.spec-list p { margin: 0; font-size: 1rem; line-height: 1.6; color: #2c3c3c; }
.rail-block__doc { margin-top: 40px; padding: 28px; background: var(--teal); color: var(--porcelain); border-radius: 2px; position: relative; }
.rail-block__doc .meta { color: var(--mist); }
.rail-block__doc h3 { color: var(--porcelain); font-size: 1.35rem; margin: 10px 0 12px; }
.rail-block__doc p { color: var(--mist); font-size: 1rem; margin-bottom: 14px; }
.rail-block__doc a { color: var(--porcelain); }
.rail-block__doc a:hover { color: var(--coral); }

/* Jal Shakti block (home) — fluid */
.water-block { position: relative; background: var(--mist); overflow: hidden; }
.water-block .waves { position: absolute; left: 0; right: 0; width: 100%; height: 100%; top: 0; color: var(--petrol); }
.water-block__inner { position: relative; z-index: 1; }
.water-block__title { font-family: var(--f-display); font-style: italic; font-size: clamp(3.6rem, 12vw, 10rem); line-height: .9; letter-spacing: -.035em; color: var(--petrol); margin: 0 0 40px; }
.water-block__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.water-block__lead p { max-width: 56ch; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; align-content: start; align-self: start; }
.flow-list li { background: rgba(244, 241, 232, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 22px 4px 22px 4px; padding: 22px 24px; border: 1px solid rgba(22, 79, 82, .12); }
.flow-list .h4 { color: var(--petrol); margin-bottom: 6px; }
.flow-list p { margin: 0; font-size: .98rem; line-height: 1.6; }

/* documented activities (home) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ledger__date { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--terra-d); }
.ledger__place { font-size: .85rem; color: var(--river-d); display: block; margin-top: 2px; }
.ledger__subject h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ledger__subject p { margin: 0; font-size: 1rem; line-height: 1.6; }
.ledger__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; background: var(--mist); color: var(--teal); }
.tag--terra { background: rgba(200, 107, 74, .14); color: var(--terra-d); }
.tag--brass { background: rgba(183, 154, 98, .2); color: #6d5a33; }
.source-link { font-size: .85rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* numerical moment */
.numbers { background: var(--petrol); color: var(--porcelain); position: relative; overflow: hidden; }
.numbers h2 { color: var(--porcelain); }
.numbers .kicker { color: var(--mist); }
.numbers .kicker::before { background: var(--petrol); }
.numbers__grid { display: grid; grid-template-columns: 1fr; margin-top: 48px; border-top: 1px solid var(--line-inv); }
.stat { padding: 32px 0; border-bottom: 1px solid var(--line-inv); }
.stat__value { font-family: var(--f-display); font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 10px; }
.stat__value small { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.stat__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 14px 0 8px; }
.stat__basis { font-size: .92rem; line-height: 1.55; color: var(--mist); margin: 0; }
.numbers__note { margin-top: 28px; font-size: .88rem; color: var(--mist); }

/* explore index */
.explore__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
.explore__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .3s var(--ease), color .2s; }
.explore__item .no { font-family: var(--f-mono); font-size: .72rem; color: var(--river-d); }
.explore__item .t { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.explore__item .d { grid-column: 2; font-size: .92rem; color: var(--river-d); line-height: 1.5; }
.explore__item .arrow { grid-row: 1; grid-column: 3; color: var(--terra); }
.explore__item:hover { color: var(--petrol); padding-left: 8px; }

/* ==========================================================================
   10. ABOUT — long-form editorial
   ========================================================================== */
.about-hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.about-hero .figure { max-width: 700px; }
.longform { display: grid; grid-template-columns: 1fr; gap: 48px; }
.toc { display: none; }
.toc__title { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--river-d); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: .92rem; color: var(--river-d); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--terra); color: var(--ink); font-weight: 600; }
.prose { max-width: 70ch; }
.prose > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose h2 .no { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; color: var(--terra-d); }
.prose h3 { margin: 32px 0 12px; font-size: 1.35rem; }
.prose .dropcap::first-letter { float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .82; padding: 6px 12px 0 0; color: var(--teal); }
.pullfact { margin: 36px 0; padding: 26px 0 26px 28px; border-left: 3px solid var(--terra); font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; color: var(--teal); }
.pullfact cite { display: block; margin-top: 12px; font-family: var(--f-mono); font-style: normal; font-size: .72rem; letter-spacing: .1em; color: var(--river-d); text-transform: uppercase; }
.factsheet { margin: 28px 0; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); }
.factsheet div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.factsheet div:last-child { border-bottom: 0; }
.factsheet dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); }
.factsheet dd { margin: 0; font-weight: 500; }
.prose .figure { margin: 36px 0; }
.sources { margin-top: 28px; padding: 22px 24px; background: var(--mist); border-radius: var(--r); font-size: .9rem; line-height: 1.6; }
.sources .h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; font-weight: 500; }
.sources ol, .sources ul { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

/* ==========================================================================
   11. EARLY LIFE — documentary narrative
   ========================================================================== */
.doc-hero { background: var(--paper); }
.doc-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.register {
  background: #FCFBF7; border: 1px solid var(--line-strong); border-radius: 2px; padding: 28px; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(18, 59, 58, .5);
}
.register::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.register__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line-strong); padding-bottom: 14px; margin-bottom: 8px; }
.register__head span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); }
.register dl { margin: 0; }
.register dl div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px dotted var(--line-strong); }
.register dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); }
.register dd { margin: 0; font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3; }
.register__src { margin: 14px 0 0; font-size: .8rem; color: var(--river-d); }
.chapter { display: grid; grid-template-columns: 1fr; gap: 24px 64px; padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.chapter__no { font-family: var(--f-display); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .8; color: var(--mist); -webkit-text-stroke: 1px var(--river); letter-spacing: -.04em; }
.chapter__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-d); display: block; margin-top: 14px; }
.chapter h2 { margin-bottom: 24px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.chapter__body { max-width: 68ch; }
.context-note { margin: 28px 0; padding: 22px 24px; border: 1px dashed var(--river); border-radius: var(--r); background: rgba(221, 229, 225, .4); font-size: 1rem; line-height: 1.65; }
.context-note b { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); margin-bottom: 8px; }
.doc-strip { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

/* ==========================================================================
   12. POLITICAL JOURNEY — route map
   ========================================================================== */
.map-hero { background: var(--teal); color: var(--porcelain); border-bottom: 0; }
.map-hero h1, .map-hero h2 { color: var(--porcelain); }
.map-hero .lede { color: var(--mist); }
.map-hero .kicker { color: var(--mist); }
.map-hero .kicker::before { background: var(--teal); }
.linemap { margin-top: 56px; position: relative; }
.linemap svg { width: 100%; height: auto; overflow: visible; }
.linemap__legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.linemap__legend span { display: inline-flex; align-items: center; gap: 8px; }
.linemap__legend i { width: 22px; height: 3px; display: inline-block; border-radius: 2px; }
.linemap-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-inv); }
.linemap-list a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-inv); color: var(--porcelain); text-decoration: none; }
.linemap-list a:hover { color: var(--coral); }
.linemap-list .y { font-family: var(--f-mono); font-size: .75rem; color: var(--coral); min-width: 92px; }

.stage { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; }
.stage__track { position: relative; }
.stage__track::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 4px; background: var(--track, var(--petrol)); border-radius: 2px; }
.stage__track::after { content: ""; position: absolute; left: 9px; top: clamp(58px, 8vw, 100px); width: 22px; height: 22px; border-radius: 50%; background: var(--porcelain); border: 4px solid var(--track, var(--petrol)); }
.stage--interchange .stage__track::after { width: 30px; height: 30px; left: 5px; border-width: 3px; box-shadow: inset 0 0 0 4px var(--porcelain), inset 0 0 0 30px var(--terra); }
.stage--ka { --track: var(--petrol); }
.stage--klc { --track: var(--brass); }
.stage--gov, .stage--city { --track: var(--river); }
.stage--nat { --track: var(--terra); }
.stage__body { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 28px 56px; }
.stage__year { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .95; letter-spacing: -.03em; color: var(--teal); }
.stage__year small { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); margin-top: 12px; }
.stage__zone { display: inline-block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--track, var(--petrol)); padding: 4px 10px; border-radius: 2px; margin-bottom: 16px; }
.stage--klc .stage__zone { color: var(--ink); }
.stage h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 18px; }
.stage__rows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.stage__rows li { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.55; }
.stage__rows .when { font-family: var(--f-mono); font-size: .76rem; color: var(--terra-d); padding-top: 3px; }
.interchange-banner { background: var(--paper); border-block: 1px solid var(--line); padding-block: 28px; }
.interchange-banner p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.interchange-banner i { width: 40px; height: 2px; background: var(--terra); display: inline-block; }

/* ==========================================================================
   13. PARLIAMENTARY — institutional archive
   ========================================================================== */
.parl-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.parl-hero .figure { max-width: 460px; }
.seat-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); margin-top: 32px; }
.seat-card div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.seat-card div:nth-child(odd) { border-right: 1px solid var(--line); }
.seat-card div:nth-last-child(-n+2) { border-bottom: 0; }
.seat-card dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); }
.seat-card dd { margin: 4px 0 0; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.record-table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.55; }
.record-table caption { text-align: left; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); padding-bottom: 14px; caption-side: top; }
.record-table th { text-align: left; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); padding: 12px 16px 12px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.record-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.record-table td:first-child { font-family: var(--f-mono); font-size: .8rem; color: var(--terra-d); white-space: nowrap; }
.record-table .subj { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.3; display: block; margin-bottom: 4px; }
.table-wrap { width: 100%; }
.split-note { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px; background: var(--mist); border-radius: var(--r); }
.split-note h3 { font-size: 1.3rem; }
.split-note p { margin: 0; font-size: 1rem; }

/* ==========================================================================
   14. RAILWAYS — infrastructure system
   ========================================================================== */
.rail-hero { background: var(--porcelain); position: relative; overflow: hidden; border-bottom: 0; }
.rail-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(18, 59, 58, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(18, 59, 58, .07) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.rail-hero > .container { position: relative; }
.rail-hero__title { font-family: var(--f-display); font-size: clamp(3.4rem, 12vw, 10rem); line-height: .85; letter-spacing: -.045em; color: var(--teal); max-width: none; }
.rail-hero__sub { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; align-items: start; }
.rail-hero .track-svg { width: 100%; height: 90px; color: var(--teal); margin-top: 48px; }
.board { background: var(--ink); color: var(--porcelain); border-radius: 3px; overflow: hidden; }
.board__head { display: grid; grid-template-columns: 1fr; padding: 14px 22px; background: var(--teal); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); gap: 6px; }
.board__row { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 20px 22px; border-top: 1px solid rgba(221, 229, 225, .1); align-items: baseline; }
.board__fig { font-family: var(--f-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #F2C48D; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.board__what { font-size: 1rem; line-height: 1.5; color: var(--porcelain); }
.board__src { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--mist); opacity: .85; }
.board__src a { color: var(--mist); }
.km { display: grid; grid-template-columns: 1fr; gap: 24px 64px; padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); position: relative; }
.km__marker { display: flex; align-items: flex-start; gap: 16px; }
.km__post { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--porcelain); border: 1.5px solid var(--teal); color: var(--teal); padding: 10px 12px; border-radius: 2px; line-height: 1.3; text-align: center; min-width: 76px; }
.km__post b { display: block; font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; letter-spacing: -.02em; }
.km h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 22px; }
.km__body { max-width: 72ch; }
.km__cols { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.km__cell { border-top: 2px solid var(--teal); padding-top: 14px; }
.km__cell .h4 { margin-bottom: 6px; }
.km__cell p { font-size: 1rem; line-height: 1.6; margin: 0; }
.platforms { list-style: none; margin: 0; padding: 0; }
.platform { display: grid; grid-template-columns: 1fr; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--line-strong); position: relative; }
.platform__no { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); }
.platform__date { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; color: var(--teal); }
.platform h3 { font-size: 1.3rem; margin-bottom: 8px; }
.platform p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; }
.platform dl { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88rem; }
.platform dl div { display: flex; gap: 6px; }
.platform dt { color: var(--river-d); }
.platform dd { margin: 0; font-weight: 600; }
.caveat { font-size: .92rem; line-height: 1.6; color: var(--river-d); border-left: 2px solid var(--brass); padding-left: 16px; max-width: 74ch; }

/* ==========================================================================
   15. JAL SHAKTI — flowing water system
   ========================================================================== */
.water-hero { background: linear-gradient(180deg, var(--porcelain) 0%, var(--mist) 100%); position: relative; overflow: hidden; border-bottom: 0; }
.water-hero .waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; color: var(--petrol); }
.water-hero > .container { position: relative; z-index: 1; }
.water-hero h1 { font-style: italic; font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -.035em; color: var(--petrol); max-width: none; }
.water-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; margin-top: 36px; }
.stream { position: relative; }
.stream__section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.stream__section:nth-child(even) { background: var(--mist); }
.stream__section:nth-child(even)::before, .stream__section:nth-child(even)::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; background-repeat: no-repeat; background-size: 100% 100%; }
.stream__section:nth-child(even)::before { top: -39px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C240 2 480 2 720 18s480 20 720 0v22z' fill='%23DDE5E1'/%3E%3C/svg%3E"); }
.stream__section:nth-child(even)::after { bottom: -39px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0v18c240 20 480 20 720 4S1200-2 1440 18V0z' fill='%23DDE5E1'/%3E%3C/svg%3E"); z-index: 1; }
.stream__grid { display: grid; grid-template-columns: 1fr; gap: 28px 72px; }
.stream__label { align-self: start; padding-top: 14px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--petrol); display: flex; align-items: center; gap: 14px; }
.stream__label svg { width: 44px; height: 14px; color: var(--terra); flex: none; }
.stream h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 10px 0 24px; }
.stream__body { max-width: 70ch; }
.drop-stats { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 28px 0; }
.drop-stat { background: rgba(244, 241, 232, .8); border: 1px solid rgba(22, 79, 82, .14); border-radius: 28px 4px 28px 4px; padding: 22px 24px; }
.stream__section:nth-child(odd) .drop-stat { background: var(--paper); }
.drop-stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; color: var(--petrol); letter-spacing: -.02em; }
.drop-stat span { display: block; margin-top: 8px; font-size: .95rem; line-height: 1.5; }
.drop-stat small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: var(--river-d); }
.strata { margin: 32px 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(22, 79, 82, .2); background: var(--paper); }
.strata__row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.strata__row:last-child { border-bottom: 0; }
.strata__label { font-size: .92rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.strata__label span { font-family: var(--f-mono); font-weight: 400; font-size: .85rem; color: var(--petrol); white-space: nowrap; }
.strata__bar { height: 14px; background: rgba(22, 79, 82, .08); border-radius: 10px; overflow: hidden; }
.strata__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--petrol), #3E7F80); border-radius: 10px; transform-origin: left; transition: transform 1.4s var(--ease); }
.reveal-ready .reveal:not(.is-visible) .strata__bar i { transform: scaleX(0); }
.strata__bar--terra i { background: linear-gradient(90deg, var(--terra), var(--coral)); }
.strata__foot { padding: 12px 20px; font-size: .8rem; color: var(--river-d); background: rgba(221, 229, 225, .5); }
.message-card { position: relative; margin: 32px 0; padding: 32px 28px; background: var(--paper); border-radius: 36px 4px 36px 4px; border: 1px solid rgba(22, 79, 82, .18); }
.message-card .meta { display: block; margin-bottom: 14px; }
.message-card p { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.55; }
.distinction { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.distinction > div { padding: 22px 24px; border-radius: var(--r); }
.distinction .ministry { background: rgba(22, 79, 82, .08); }
.distinction .personal { background: rgba(200, 107, 74, .1); }
.distinction .h4 { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.distinction p { margin: 0; font-size: .98rem; line-height: 1.6; }

/* ==========================================================================
   16. PUBLIC ENGAGEMENTS — journal
   ========================================================================== */
.journal-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
.journal { position: relative; }
.journal__year { font-family: var(--f-display); font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--petrol); margin: 0 0 12px; padding-top: 24px; }
.journal__month { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-d); padding: 14px 0; border-bottom: 1px solid var(--line-strong); margin: 40px 0 0; }
.entry { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.entry__day { font-family: var(--f-display); font-size: 2.6rem; line-height: .9; color: var(--teal); letter-spacing: -.03em; }
.entry__day small { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--river-d); margin-top: 8px; }
.entry__title { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; margin-bottom: 10px; }
.entry__facts { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0 0 12px; font-size: .9rem; }
.entry__facts div { display: flex; gap: 8px; }
.entry__facts dt { color: var(--river-d); min-width: 84px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.entry__facts dd { margin: 0; font-weight: 500; }
.entry p { font-size: 1rem; line-height: 1.65; margin: 0 0 10px; }
.journal-aside .figure + .figure { margin-top: 28px; }

/* ==========================================================================
   17. DOCUMENTED WORK — searchable archive
   ========================================================================== */
.archive-tools { position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 20; background: rgba(244, 241, 232, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-block: 16px; border-bottom: 1px solid var(--line); }
.archive-tools__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.search { position: relative; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); }
.search input:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: transparent; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--river-d); }
.chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); background: transparent; border-radius: 40px; font-size: .88rem; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); color: var(--porcelain); border-color: var(--teal); }
.archive-count { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--river-d); margin: 24px 0 0; }
.records { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.record { display: grid; grid-template-columns: 1fr; gap: 10px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.record[hidden] { display: none; }
.record__id { font-family: var(--f-mono); font-size: .7rem; color: var(--river-d); letter-spacing: .08em; }
.record__date { font-family: var(--f-mono); font-size: .82rem; color: var(--terra-d); }
.record h3 { font-size: 1.25rem; margin-bottom: 8px; }
.record dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; font-size: .95rem; line-height: 1.55; }
.record dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.record dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--river-d); padding-top: 3px; }
.record dd { margin: 0; }
.record dd a { overflow-wrap: anywhere; }
.empty-state { padding: 48px 0; text-align: center; color: var(--river-d); }

/* ==========================================================================
   18. MEDIA — publication layout
   ========================================================================== */
.masthead { border-bottom: 3px double var(--ink); padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; }
.masthead h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -.03em; }
.masthead .meta { text-align: right; }
.media-lead { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--line-strong); }
.media-lead h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 12px 0 18px; }
.cat-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--river-d); }
.cat-line .cat { color: var(--terra-d); font-weight: 500; }
.media-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.story { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.story h3 { font-size: 1.35rem; margin: 10px 0 12px; }
.story p { font-size: 1rem; line-height: 1.6; flex: 1; }
.story .src { font-size: .85rem; color: var(--river-d); margin-bottom: 12px; }
.media-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.media-duo { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
.disclaimer { font-size: .88rem; line-height: 1.6; color: var(--river-d); padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r); }

/* ==========================================================================
   19. GALLERY — variable editorial mosaic
   ========================================================================== */
.gallery-hero { background: var(--ink); color: var(--porcelain); border-bottom: 0; }
.gallery-hero h1 { color: var(--porcelain); }
.gallery-hero .lede { color: var(--mist); }
.gallery-hero .kicker { color: var(--mist); }
.gallery-hero .kicker::before { background: var(--ink); }
.gallery-set { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.gallery-set__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.gallery-set__head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.mosaic { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tile { margin: 0; position: relative; }
.tile button { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; border-radius: 2px; overflow: hidden; }
.tile img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile button:hover img { transform: scale(1.03); }
.tile figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--river-d); }
.tile figcaption b { color: var(--ink); font-weight: 600; }
.tile--pano button { background: var(--ink); }
.gallery-elsewhere { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.gallery-elsewhere a { display: flex; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 1.3rem; }
.gallery-elsewhere a span { font-family: var(--f-mono); font-size: .72rem; color: var(--river-d); align-self: center; text-align: right; }
.gallery-elsewhere a:hover { color: var(--petrol); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12, 22, 22, .94); display: none; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox figcaption { color: var(--mist); font-size: .95rem; margin-top: 14px; text-align: center; max-width: 70ch; }
.lightbox__btn { position: absolute; background: rgba(244, 241, 232, .1); border: 1px solid rgba(244, 241, 232, .25); color: var(--porcelain); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: rgba(244, 241, 232, .2); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }

/* ==========================================================================
   20. CONTACT — minimal institutional
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
.contact-card { border-top: 2px solid var(--teal); }
.contact-card dl { margin: 0; }
.contact-card div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-card dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river-d); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.3; overflow-wrap: anywhere; }
.contact-card dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-card dd a:hover { color: var(--terra-d); border-color: var(--terra); }
.form { display: grid; grid-template-columns: 1fr; gap: 22px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--terra-d); margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--paper); font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 59, 58, .15); }
.field [aria-invalid="true"] { border-color: #B03A2E; background: #FFF8F5; }
.field .hint { font-size: .82rem; color: var(--river-d); margin-top: 6px; }
.field .error { font-size: .86rem; color: #9E3326; margin-top: 6px; min-height: 0; font-weight: 500; }
.field .error:empty { display: none; }
.form__status { padding: 16px 18px; border-radius: 2px; font-size: .95rem; line-height: 1.55; }
.form__status:empty { display: none; }
.form__status.is-error { background: #FBEAE5; color: #7E2A1F; border-left: 3px solid #B03A2E; }
.form__status.is-info { background: var(--mist); color: var(--teal); border-left: 3px solid var(--petrol); }
.form__status.is-success { background: #E4EFE9; color: #1D4A36; border-left: 3px solid #2E7D57; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 22px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__foot .small { margin: 0; color: var(--river-d); max-width: 42ch; }

/* ==========================================================================
   21. Footer
   ========================================================================== */
.site-footer { background: var(--teal); color: var(--mist); position: relative; overflow: hidden; }
.site-footer a { color: var(--porcelain); }
.site-footer a:hover { color: var(--coral); }
.site-footer .routes { position: absolute; right: -5%; top: -10%; width: 60%; height: 120%; color: var(--mist); opacity: .07; pointer-events: none; }
.footer__top { position: relative; padding-block: clamp(64px, 8vw, 104px) 48px; display: grid; grid-template-columns: 1fr; gap: 48px; }
.footer__statement { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.25; color: var(--porcelain); max-width: 24ch; margin: 18px 0 0; }
.footer__h { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 0 0 16px; font-weight: 500; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.footer__nav a { text-decoration: none; font-size: .95rem; display: inline-block; padding: 5px 0; color: var(--mist); }
.footer__nav a:hover { color: var(--porcelain); }
.footer__contact { font-size: 1rem; line-height: 1.7; margin: 0; font-style: normal; }
.footer__contact b { display: block; color: var(--porcelain); font-weight: 600; }
.footer__contact a { text-decoration: none; border-bottom: 1px solid var(--line-inv); overflow-wrap: anywhere; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a, .social .is-pending { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; color: var(--porcelain); transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.social a:hover { background: var(--porcelain); color: var(--teal); border-color: var(--porcelain); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.social .is-pending { opacity: .45; cursor: help; }
.social-note { font-size: .78rem; color: var(--mist); opacity: .8; margin: 12px 0 0; }
.footer__rails { color: var(--mist); }
.footer__bottom { position: relative; border-top: 1px solid var(--line-inv); padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom .credit a { font-weight: 600; }
.signout { background: none; border: 1px solid var(--line-inv); color: var(--mist); padding: 6px 12px; border-radius: 30px; cursor: pointer; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; min-height: 32px; }
.signout:hover { color: var(--porcelain); border-color: var(--mist); }

/* next-page link band */
.next-stop { border-top: 1px solid var(--line); background: var(--paper); }
.next-stop a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding-block: 40px; text-decoration: none; color: var(--ink); }
.next-stop .meta { grid-column: 1 / -1; }
.next-stop .t { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; }
.next-stop svg { width: 56px; height: 20px; color: var(--terra); transition: transform .3s var(--ease); }
.next-stop a:hover svg { transform: translateX(8px); }
.next-stop a:hover { color: var(--petrol); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .reveal-ready .draw path, .reveal-ready .draw line, .reveal-ready .draw polyline { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .reveal-ready .reveal .strata__bar i { transform: none !important; }
}

/* Jal Shakti — documented engagements as ripples */
.ripples { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.ripples::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--petrol), rgba(22, 79, 82, .15)); }
.ripple { position: relative; padding: 0 0 36px 20px; }
.ripple::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--porcelain); border: 2px solid var(--petrol); box-shadow: 0 0 0 5px rgba(22, 79, 82, .1), 0 0 0 11px rgba(22, 79, 82, .05); }
.ripple__date { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--petrol); }
.ripple h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.ripple p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; }
.ripple__meta { font-size: .88rem !important; color: var(--river-d); }

/* Gallery — justified rows: equal heights, no cropping, no upscaling */
.jrow { display: flex; flex-direction: column; gap: 24px; margin: 0 auto 32px; }
.jrow:last-child { margin-bottom: 0; }
.jrow .tile { min-width: 0; }
@media (min-width: 600px) {
  .jrow { flex-direction: row; align-items: flex-start; }
  .jrow .tile { flex: var(--ar, 1) 1 0%; }
}

/* brand mark on dark surfaces */
.menu-panel .brand__mark rect, .site-footer .brand__mark rect { fill: var(--petrol); }
.menu-panel .brand__mark circle, .site-footer .brand__mark circle { fill: var(--petrol); }

/* low-resolution originals are never enlarged beyond native size */
.figure--lowres { width: -moz-fit-content; width: fit-content; max-width: 100%; }
.figure--lowres .figure__frame img { width: auto; max-width: 100%; }
