/* =========================================================
   Global Girmitiya Lineage Archive & Searching Centre
   Design system — plain CSS, no build step.
   Archival / maritime palette: parchment, sepia ink, deep teal.
   ========================================================= */

:root {
  --cream:        #F5EFE2;
  --paper:        #FFFCF5;
  --ink:          #1A1410;
  --ink-muted:    #4B3F33;
  --ink-soft:     #786959;
  --line:         #E4D9C2;
  --line-strong:  #CDBF9F;

  /* Primary: deep maritime teal — references the ocean voyages */
  --teal:         #1F5673;
  --teal-deep:    #133D54;
  /* Secondary: rust / oxide — colonial-era ledger ink */
  --rust:         #B85C38;
  --rust-deep:    #8C4327;
  /* Accent: sepia — for italic / serif emphasis */
  --sepia:        #8B5A2B;
  --sepia-deep:   #6B4220;
  /* Verification / "found" green */
  --moss:         #2D5016;
  --moss-deep:    #1F3A0F;
  --gold:         #B8860B;

  --shadow-sm: 0 1px 2px rgba(26,20,16,.04), 0 1px 3px rgba(26,20,16,.06);
  --shadow-md: 0 4px 14px rgba(26,20,16,.08), 0 2px 6px rgba(26,20,16,.05);
  --shadow-lg: 0 24px 60px rgba(26,20,16,.12), 0 8px 20px rgba(26,20,16,.06);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container: 1240px;
  --container-narrow: 920px;

  --serif: 'Fraunces', 'Noto Serif Devanagari', Georgia, serif;
  --sans:  'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Subtle paper texture overlay — gives the site an archival feel */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(139, 90, 43, .035) 1px, transparent 1px),
    radial-gradient(rgba(139, 90, 43, .025) 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 2px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.0rem, 4.0vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }

p { color: var(--ink-muted); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-muted); line-height: 1.65; max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia-deep);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--sepia);
  display: inline-block;
}

em { font-style: italic; color: var(--sepia-deep); font-family: var(--serif); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.96rem;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal-deep); box-shadow: var(--shadow-lg); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #2a2218; }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 226, .88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--sepia) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; max-width: 360px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

/* On narrower viewports the long subtitle blew up the header.
   Tablet+down: drop the divisional subtitle so brand stays compact. */
@media (max-width: 980px) {
  .brand-text { max-width: 280px; }
  .brand-name { font-size: 0.96rem; }
  .brand-tag { display: none; }
}
@media (max-width: 540px) {
  .brand-text { max-width: none; }
  .brand-name { font-size: 1rem; line-height: 1.15; white-space: nowrap; }
  /* Replace the long name with "GGLASC" via CSS at very narrow widths */
  .brand-name .lang-en, .brand-name .lang-hi { display: none !important; }
  .brand-name::after {
    content: "GGLASC";
  }
  html[lang="hi"] .brand-name::after { content: "GGLASC"; }
}

.nav {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 252, 245, .55);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: var(--radius-pill);
}
.nav a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(255, 252, 245, .9); }
.nav a.active { background: var(--ink); color: var(--cream); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, .55);
}
.lang-toggle:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, .55);
}
.menu-toggle span {
  display: block; margin: 5px auto;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav, .lang-toggle { display: none; }
  .menu-toggle { display: block; }
  .mobile-open .nav {
    display: flex; flex-direction: column;
    position: absolute; top: 76px; left: 16px; right: 16px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .mobile-open .nav a { width: 100%; padding: 14px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-copy h1 { margin-top: 18px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--teal-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-copy .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero visual — a stylised "passage card" / emigration pass */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(150deg, var(--teal-deep) 0%, var(--teal) 45%, var(--sepia) 100%);
  box-shadow: var(--shadow-lg);
  color: #f8efd9;
  padding: 40px 36px;
  display: flex; flex-direction: column;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.04) 18px 19px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.03) 18px 19px);
  pointer-events: none;
}
.pass-stamp {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 239, 217, .8);
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid rgba(248, 239, 217, .35);
  border-radius: var(--radius-pill);
}
.pass-stamp::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, .25);
}
.pass-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 28px;
  color: #f8efd9;
  max-width: 18ch;
}
.pass-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  font-size: 0.86rem;
  color: rgba(248, 239, 217, .78);
}
.pass-meta dt {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248, 239, 217, .55);
  margin-bottom: 4px;
}
.pass-meta dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #f8efd9;
  line-height: 1.2;
}
.pass-corner {
  position: absolute;
  top: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px dashed rgba(248, 239, 217, .55);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(248, 239, 217, .7);
  text-align: center;
  line-height: 1.1;
}

/* On narrow viewports the pass-stamp collided with the pass-corner badge.
   Reserve right-padding on the stamp so they don't overlap, and shrink
   the corner badge slightly at very small widths. */
@media (max-width: 640px) {
  .pass-stamp { max-width: calc(100% - 72px); padding: 5px 12px; font-size: 0.66rem; letter-spacing: 0.18em; }
  .pass-corner { width: 46px; height: 46px; top: 20px; right: 20px; font-size: 0.62rem; }
}
@media (max-width: 420px) {
  .pass-stamp { font-size: 0.6rem; letter-spacing: 0.14em; }
}

/* ---------- Search panel (hero CTA on home + dedicated page) ---------- */
.search-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.search-panel h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.search-panel .hint {
  font-size: 0.92rem; color: var(--ink-soft);
  margin-bottom: 22px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .search-grid { grid-template-columns: 1fr; } }
.search-grid .field { gap: 6px; }
.search-grid .field label {
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.search-grid input, .search-grid select {
  padding: 12px 14px;
  font-size: 0.95rem;
  background: var(--cream);
}
.search-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; align-items: center;
  justify-content: space-between;
}
.search-actions .note {
  font-size: 0.84rem; color: var(--ink-soft);
  font-style: italic;
}

/* Result notice (no real data yet) */
.search-empty {
  margin-top: 28px;
  padding: 28px;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.search-empty .icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6d7b9, #c9b585);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem;
  color: var(--sepia-deep);
}
.search-empty p { font-size: 0.94rem; }
.search-empty strong { color: var(--ink); }

/* ---------- Marquee strip (destinations) ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
  overflow: hidden;
}
.strip-track {
  display: flex; align-items: center; gap: 56px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.strip-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft);
  white-space: nowrap;
}
.strip-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 8px;
}
.stat {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 1px; background: rgba(255,255,255,.08);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--cream);
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num .plus, .stat-num .accent { color: var(--rust); }
.stat-lbl { color: rgba(245,239,226,.62); font-size: 0.92rem; margin-top: 6px; }
.stat-cite { color: rgba(245,239,226,.4); font-size: 0.78rem; margin-top: 4px; font-style: italic; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
}

/* ---------- Section heading ---------- */
.s-head { margin-bottom: 56px; max-width: 760px; }
.s-head h2 { margin-top: 16px; }
.s-head .lede { margin-top: 18px; }
.s-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e0ecf3 0%, #a8c4d5 100%);
  color: var(--teal-deep);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 22px;
}
.card-icon.sepia { background: linear-gradient(135deg, #f0e3cc 0%, #d4b88a 100%); color: var(--sepia-deep); }
.card-icon.rust  { background: linear-gradient(135deg, #f4dccf 0%, #e0a48a 100%); color: var(--rust-deep); }
.card-icon.moss  { background: linear-gradient(135deg, #e3eed5 0%, #b8d49a 100%); color: var(--moss-deep); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card-link {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.card-link .arrow { transition: transform .25s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Destinations grid (countries) ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dest-grid { grid-template-columns: 1fr; } }
.dest {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.dest-flag {
  width: 100%; aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: linear-gradient(135deg, #d8e6d0 0%, #7a9a64 100%);
  position: relative; overflow: hidden;
}
.dest-flag.mauritius   { background: linear-gradient(180deg, #e02020 0 25%, #2c5aa0 25% 50%, #f5d800 50% 75%, #00a651 75% 100%); }
.dest-flag.fiji        { background: linear-gradient(135deg, #5dabd1 0%, #3f87b3 100%); }
.dest-flag.guyana      { background: linear-gradient(135deg, #e8552d 0%, #009e60 100%); }
.dest-flag.trinidad    { background: linear-gradient(135deg, #ce1126 0%, #1a1a1a 50%, #ce1126 100%); }
.dest-flag.suriname    { background: linear-gradient(135deg, #377e3f 0%, #b40a2d 100%); }
.dest-flag.south-africa{ background: linear-gradient(135deg, #007749 0%, #de3831 100%); }
.dest-flag.reunion     { background: linear-gradient(135deg, #1f5673 0%, #b85c38 100%); }
.dest-flag.jamaica     { background: linear-gradient(135deg, #009b3a 0%, #fed100 50%, #1a1a1a 100%); }
.dest-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink);
}
.dest-period {
  font-size: 0.82rem; color: var(--sepia-deep);
  letter-spacing: 0.05em; margin-top: 4px;
  font-family: var(--serif); font-style: italic;
}
.dest-count {
  font-size: 0.84rem; color: var(--ink-muted);
  margin-top: 10px;
}

/* ---------- Story / two-up ---------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .two-up { grid-template-columns: 1fr; gap: 40px; } }
.two-up.reverse > :first-child { order: 2; }
@media (max-width: 980px) { .two-up.reverse > :first-child { order: 0; } }

.quote-block {
  border-left: 3px solid var(--sepia);
  padding: 6px 0 6px 24px;
  margin: 24px 0;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-block cite {
  display: block; font-style: normal; font-size: 0.86rem; color: var(--ink-soft); margin-top: 10px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1.5px; background: var(--line-strong);
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--teal);
}
.tl-year {
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--teal-deep); font-weight: 500;
  margin-bottom: 6px;
}
.tl-item h4 { margin-bottom: 6px; }
.tl-item p { font-size: 0.96rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(31, 86, 115, .35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: rgba(245,239,226,.7); margin-top: 14px; font-size: 1.05rem; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-side {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative; z-index: 1;
}
.cta-side h4 { color: var(--cream); margin-bottom: 12px; }
@media (max-width: 900px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 56px);
  position: relative;
}
.page-hero h1 { max-width: 22ch; }
.page-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 18px;
}
.page-hero .crumb a { color: var(--ink-muted); }
.page-hero .crumb a:hover { color: var(--ink); }
.page-hero .lede { margin-top: 22px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.96rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 86, 115, .14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin-top: -2px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #e0ecf3, #a8c4d5);
  display: grid; place-items: center; color: var(--teal-deep);
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-row .lbl { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-row .val { font-size: 1rem; color: var(--ink); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-tag { color: rgba(245,239,226,.5); }
.footer-brand p { color: rgba(245,239,226,.6); margin-top: 18px; font-size: 0.94rem; max-width: 38ch; }

.footer-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 20px;
}
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: rgba(245,239,226,.6); font-size: 0.94rem; transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--rust); }

.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  color: var(--cream);
  padding: 12px 16px; border-radius: var(--radius-pill); font-size: 0.92rem;
}
.newsletter input::placeholder { color: rgba(245,239,226,.4); }
.newsletter input:focus { outline: none; border-color: var(--teal); }
.newsletter button {
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--teal); color: #fff; font-weight: 600; font-size: 0.92rem;
}
.newsletter button:hover { background: var(--teal-deep); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 16px;
  color: rgba(245,239,226,.45); font-size: 0.86rem;
}
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Brand mark image (alt to text mark) ---------- */
.brand-mark-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
  padding: 2px;
  border: 1px solid var(--line);
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Form success state ---------- */
.form-success { text-align: center; padding: 20px 0; }
.form-success[hidden], .form-fields[hidden] { display: none !important; }
.success-mark {
  width: 60px; height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 600;
  box-shadow: 0 0 0 8px rgba(45,80,22,.12);
}
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; }
.form-success p { font-size: 0.96rem; }

/* ---------- Bilingual (i18n) ---------- */
.lang-hi { display: none !important; }
html[lang="hi"] .lang-hi { display: inline !important; }
html[lang="hi"] .lang-en { display: none !important; }
html[lang="hi"] {
  --serif: 'Noto Serif Devanagari', 'Fraunces', Georgia, serif;
  --sans:  'Noto Sans Devanagari', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
html[lang="hi"] body { line-height: 1.65; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 {
  line-height: 1.18;
  letter-spacing: -0.005em;
}
html[lang="hi"] .eyebrow { letter-spacing: 0.06em; }

.lang-toggle .lang-en-label,
.lang-toggle .lang-hi-label {
  font-weight: 500;
  opacity: .55;
  transition: opacity .2s var(--ease);
}
html[lang="en"] .lang-toggle .lang-en-label,
html[lang="hi"] .lang-toggle .lang-hi-label {
  opacity: 1;
  font-weight: 700;
  color: var(--ink);
}
.lang-toggle .lang-sep { opacity: .35; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 700px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* ---------- Articles index ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; gap: 24px; } }

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.article-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e0ecf3 0%, #a8c4d5 100%);
  position: relative;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-thumb-placeholder {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--sepia-deep);
}
.article-card-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-cat {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.article-card-body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.article-date {
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}
.article-excerpt {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 6px;
  flex: 1;
}
.article-card .card-link {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-self: flex-start;
}

/* ---------- Article (single) page ---------- */
.article-page {
  padding: 0 0 clamp(48px, 6vw, 80px);
}
.article-hero-img {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--line);
  box-shadow: var(--shadow-md);
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-body {
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p {
  margin-bottom: 1.2em;
  color: var(--ink);
}
.article-body p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 1.6em 0 0.5em;
}
.article-body h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 1.4em 0 0.4em;
  font-weight: 600;
}
.article-body strong, .article-body b { color: var(--ink); font-weight: 600; }
.article-body em, .article-body i {
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink);
}
.article-body mark {
  background: linear-gradient(180deg, transparent 55%, rgba(184, 92, 56, .25) 55%);
  padding: 0 2px;
  color: var(--ink);
}
.article-body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--rust-deep); }
.article-body ul, .article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote {
  border-left: 3px solid var(--sepia);
  padding: 6px 0 6px 22px;
  margin: 1.4em 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}
.article-body img {
  margin: 1.6em auto;
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-sm);
}
.article-body figure {
  margin: 1.6em 0;
}
.article-body figure img {
  margin: 0 auto;
}
.article-body figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}
/* WordPress gallery block */
.article-body .wp-block-gallery,
.article-body ul.blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 1.8em 0;
}
.article-body .wp-block-gallery figure,
.article-body .blocks-gallery-item {
  margin: 0;
}
.article-body .wp-block-gallery img,
.article-body .blocks-gallery-item img {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.article-body .wp-block-image {
  margin: 1.6em 0;
}
.article-body .wp-block-image img { margin: 0 auto; }

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}
.article-nav .card-link {
  margin-top: 0;
  font-size: 0.96rem;
}

/* ---------- Article byline ---------- */
.article-byline {
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  font-style: italic;
  font-family: var(--serif);
}
.article-byline strong {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

/* ---------- Related from Girmitiya section ---------- */
.related-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.related-head { margin-bottom: 24px; }
.related-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 8px;
  letter-spacing: -0.015em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0ecf3 0%, #a8c4d5 100%);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.related-card:hover .related-thumb img { transform: scale(1.05); }
.related-thumb-placeholder {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--sepia-deep);
  aspect-ratio: 16 / 10;
}
.related-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.related-cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sepia-deep);
  font-weight: 600;
  margin-bottom: 2px;
}
.related-card h4 {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.related-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  margin-top: auto;
  padding-top: 8px;
}
