/* Pothi Seva - site stylesheet
   Colours and fonts live in :root. Change them here and the whole site follows. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif Gurmukhi";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-serif-gurmukhi-gurmukhi-wght-normal.woff2") format("woff2");
}
/* Metric-matched fallbacks so text does not jump while the web fonts load */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue");
  size-adjust: 100%;
  ascent-override: 97%;
  descent-override: 24%;
}

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #e1d8c6;
  --ink: #1b1813;
  --ink-2: #3d3830;
  --ink-soft: #625b50;
  --muted: #6b645a;
  --line: #d6cdbb;
  --line-strong: #b9ae98;
  --madder: #8b2e2a;
  --madder-deep: #6e2321;
  --madder-soft: #efdcd8;
  --madder-light: #d98c86;
  --grey: #8c8781;

  --serif: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gurmukhi: "Noto Serif Gurmukhi", "Raavi", "Gurmukhi MN", serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(27, 24, 19, 0.06), 0 12px 32px rgba(27, 24, 19, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--madder); }
:focus-visible { outline: 3px solid var(--madder); outline-offset: 3px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 2.6vw + 1.6rem, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.eyebrow {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--madder); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--madder); }
.gurmukhi { font-family: var(--gurmukhi); font-weight: 500; }
.small { font-size: 0.9375rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { max-width: 42em; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .lead { margin-top: 0; }
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid var(--bg); cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); background: var(--ink-2); border-color: var(--ink-2); }
.btn-primary { --bg: var(--madder); --fg: #fff; }
.btn-primary:hover { background: var(--madder-deep); border-color: var(--madder-deep); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.link-arrow::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--madder); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 239, 230, 0.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 54px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.brand-gurmukhi { font-family: var(--gurmukhi); font-size: 0.875rem; color: var(--ink-soft); margin-top: 3px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: inline-block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { min-height: 42px; padding: 8px 18px; margin-left: 8px; font-size: 0.9375rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9375rem;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}
/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--paper);
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; display: none; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { display: block; padding: 14px 6px; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--madder); }
.mobile-menu .btn { font-family: var(--sans); font-size: 1.0625rem; margin-top: 18px; border-bottom: 0; }
.mobile-menu .menu-contact { margin-top: 24px; color: var(--ink-soft); font-size: 0.9375rem; }
.mobile-menu .menu-contact a { display: inline; font: inherit; border: 0; padding: 0; text-decoration: underline; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 88px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); } }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--madder); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .lead { margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 0.9375rem; color: var(--ink-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--madder); }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 900px) { .hero-figure img { aspect-ratio: 5 / 4; } }
.hero-figure figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(27, 24, 19, 0.82); color: var(--paper); font-size: 0.8125rem; line-height: 1.45;
  padding: 10px 14px; border-radius: var(--radius); backdrop-filter: blur(6px);
}
.hero-figure figcaption strong { color: #fff; font-weight: 600; }
.hero-braid { position: absolute; right: -6%; top: -8%; width: 52%; opacity: 0.08; pointer-events: none; }
@media (max-width: 899px) { .hero-braid { width: 90%; right: -20%; top: -4%; } }

/* Fact strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.facts-inner { display: grid; gap: 0; grid-template-columns: 1fr; }
.fact { padding: 18px 0; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact svg { width: 22px; height: 22px; color: var(--madder); margin-top: 2px; }
.fact strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.fact span { font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 720px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .fact { border-bottom: 0; padding: 22px 0; }
}
@media (min-width: 1024px) {
  .facts-inner { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: 24px 24px 24px 0; border-right: 1px solid var(--line); }
  .fact:last-child { border-right: 0; }
  .fact + .fact { padding-left: 24px; }
}

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 32px); position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--madder-soft); color: var(--madder); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card h3 .gurmukhi { display: block; font-size: 0.85em; color: var(--ink-soft); margin-top: 4px; font-weight: 400; }
.card p { color: var(--ink-2); }
.card .link-arrow { margin-top: 16px; font-size: 0.9375rem; }

/* Grid backdrop (cutting mat) */
.mat {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(27, 24, 19, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 24, 19, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Case study (before and after) */
.case { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare figure { margin: 0; position: relative; }
.compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.compare figcaption {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.compare figure:last-child figcaption { background: var(--madder); color: #fff; }
.compare-note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-soft); margin: 0; }
.case-text h2 { margin-bottom: 0.4em; }
.case-text dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 22px 0 0; font-size: 0.9375rem; }
.case-text dt { color: var(--muted); }
.case-text dd { margin: 0; font-weight: 500; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step::before {
  content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; line-height: 1;
  color: var(--madder); font-variation-settings: "opsz" 144; padding-top: 4px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); max-width: 40em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .step:nth-last-child(-n + 2) { border-bottom: 0; }
}
.steps-wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1024px) { .steps-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.steps-aside { position: sticky; top: 96px; }
.steps-aside .callout { margin-top: 20px; }

/* Callout */
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--madder); border-radius: var(--radius); padding: 18px 20px; font-size: 0.9375rem; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* Quote band */
.quote-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.quote-band .braid-bg { position: absolute; left: -4%; bottom: -12%; width: 60%; opacity: 0.16; pointer-events: none; }
.quote-inner { display: grid; gap: 28px; align-items: center; position: relative; }
@media (min-width: 900px) { .quote-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 1.2vw + 1rem, 2rem); line-height: 1.3; font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 60; }
.quote-band blockquote p { margin: 0; }
.quote-band blockquote p::before { content: "\201C"; color: var(--madder-light); }
.quote-band blockquote p::after { content: "\201D"; color: var(--madder-light); }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--sans); font-size: 0.9375rem; color: #c9c1b2; }
.quote-band .eyebrow { color: var(--madder-light); }
.quote-band .eyebrow::before { background: var(--madder-light); }
.quote-band .quote-side p { color: #d9d2c4; }
.quote-band .quote-side h3 { color: #fff; }
.quote-band .link-arrow { color: #fff; }
.quote-band .link-arrow:hover { color: var(--madder-light); }

/* Locations */
.locations { display: grid; gap: 16px; }
@media (min-width: 720px) { .locations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .locations { grid-template-columns: repeat(4, 1fr); } }
.location { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.location .country { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--madder); }
.location h3 { font-size: 1.25rem; margin: 0; }
.location address { font-style: normal; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.location .time { font-size: 0.9375rem; color: var(--ink); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.location .time svg { width: 16px; height: 16px; color: var(--madder); flex: none; }
.location .map { margin-top: auto; padding-top: 8px; font-size: 0.9375rem; }

/* Research band */
.research { position: relative; }
.research-figure { margin: 0; }
.research-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 20% 50%; border-radius: var(--radius-lg); }
.verse { font-family: var(--gurmukhi); font-size: clamp(1.375rem, 1.4vw + 0.9rem, 2rem); line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.verse-en { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-soft); margin-bottom: 24px; }
.research-grid { display: grid; gap: clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 900px) { .research-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Journal cards */
.posts { display: grid; gap: 20px; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: 0.8125rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post h3 { font-size: 1.25rem; margin: 0; }
.post p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.post .read { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.9375rem; color: var(--madder); }

/* Get involved */
.involve { display: grid; gap: 16px; }
@media (min-width: 720px) { .involve { grid-template-columns: repeat(3, 1fr); } }
.involve-card { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.involve-card.alt { background: var(--madder); }
.involve-card.paper { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.involve-card h3 { color: inherit; margin: 0; }
.involve-card p { color: inherit; opacity: 0.9; font-size: 0.9375rem; }
.involve-card .btn { margin-top: auto; align-self: flex-start; }

/* Footer */
.footer { background: var(--ink); color: #d9d2c4; padding: clamp(48px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer a { color: #f1ebdf; text-decoration: none; }
.footer a:hover { color: var(--madder-light); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 140px; margin-bottom: 14px; }
.footer-brand .gurmukhi { font-size: 1.5rem; color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9375rem; max-width: 30em; }
.footer .footer-h { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a39b8b; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.55; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.8125rem; color: #a39b8b; }
.footer-bottom a { color: #c9c1b2; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.social a:hover { border-color: var(--madder-light); }
.social svg { width: 18px; height: 18px; }

/* Reveal on scroll (progressive, no layout dependence) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.no-anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .post, .link-arrow::after { transition: none; }
}

/* Page hero for inner pages */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 16em; }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 8px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .braid { width: 220px; margin: 0 auto 24px; opacity: 0.9; }

/* Utilities */
.steps { list-style: none; margin: 0; padding: 0; }
.mt-16 { margin-top: 16px; }
.mt-22 { margin-top: 22px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.bt { border-top: 1px solid var(--line); }
.align-center { align-items: center; }
.center { justify-content: center; }
.center-block { margin: 0 auto 24px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; max-width: none; }
.h1-small { font-size: clamp(2rem, 3vw + 1rem, 3rem); }

/* Fixes after first render */
.nav .btn, .nav .btn:hover { color: #fff; }
.nav .btn:hover { background: var(--madder-deep); }
.eyebrow { flex-wrap: wrap; row-gap: 4px; }
.eyebrow .gurmukhi { letter-spacing: 0; text-transform: none; font-size: 1.05rem; white-space: nowrap; color: var(--ink-soft); }
.research-figure img { border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare img { box-shadow: var(--shadow); }
.verse { overflow-wrap: anywhere; font-size: clamp(1.15rem, 0.9vw + 0.8rem, 1.6rem); }

.footer address a, .footer .footer-brand a:not(.social a) { text-decoration: underline; text-underline-offset: 0.18em; }
.footer ul a { display: inline-block; padding: 3px 0; }
.small a { text-decoration: underline; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---- Full-site additions ---- */
/* Hero image stack */
.hero-stack { position: relative; margin: 0; padding-bottom: 12%; }
.hero-stack .main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-stack .inset { position: absolute; left: -6%; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow); }
.hero-stack figcaption { position: absolute; right: 12px; bottom: calc(12% + 12px); max-width: 52%; background: rgba(27, 24, 19, 0.82); color: var(--paper); font-size: 0.78rem; line-height: 1.4; padding: 8px 12px; border-radius: var(--radius); }
.hero-stack figcaption strong { color: #fff; }
@media (max-width: 899px) { .hero-stack .inset { left: 0; width: 42%; } .hero-stack figcaption { max-width: 54%; } }

/* Cards with photo header */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-photo .card-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.card-photo .link-arrow { margin-top: auto; padding-top: 16px; }

/* Photo strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 360px); gap: 14px; overflow-x: auto; padding: 4px var(--gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-left: var(--gutter); }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.strip figcaption { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.4; }
@media (min-width: 1200px) { .strip { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; padding-left: 0; padding-right: 0; } }
.strip-wrap { max-width: var(--max); margin: 0 auto; }
@media (min-width: 1200px) { .strip-wrap { padding: 0 var(--gutter); } }

/* Quote band with portrait */
.quote-inner.has-photo { grid-template-columns: 1fr; }
@media (min-width: 900px) { .quote-inner.has-photo { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 4fr); } }
.quote-photo { margin: 0; max-width: 260px; }
.quote-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); border: 4px solid rgba(255,255,255,0.08); filter: sepia(0.2) contrast(1.05); }
.quote-photo figcaption { font-size: 0.8125rem; color: #a39b8b; margin-top: 10px; }

/* Inner page head */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: end; }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.page-head-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-head-grid figure { margin: 0; }
.page-head-grid figcaption { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 8px; }
.banner { margin: 0; }
.banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius-lg); }
.banner figcaption { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 8px; }

/* Long-form prose */
.prose { max-width: 42em; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--madder); font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; font-variation-settings: "opsz" 48, "SOFT" 40; color: var(--ink-2); }
.prose blockquote p { margin: 0 0 0.5em; }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.875rem; color: var(--muted); margin-top: 6px; }
.prose blockquote cite.gurmukhi { font-family: var(--gurmukhi); font-size: 1rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--madder); }
.prose .post-note { font-size: 0.9375rem; color: var(--ink-soft); border: 1px solid var(--line); background: #fff; padding: 14px 18px; border-radius: var(--radius); }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.fig-pair figure { margin: 0; }
.fig-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 480px) { .fig-pair { grid-template-columns: 1fr; } }
.two-col { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.aside-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; font-size: 0.9375rem; }
.aside-card h3, .aside-card .h3 { font-size: 1.125rem; margin-bottom: 8px; }
.aside-card ul { margin: 0; padding-left: 1.1em; }
.aside-card li { margin-bottom: 6px; }
.aside-card .btn { margin-top: 12px; }

/* Post layout */
.post-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.post-head h1 { font-size: clamp(2rem, 2vw + 1.4rem, 3.25rem); max-width: 22em; }
.post-head .post-meta { font-size: 0.9375rem; margin-top: 12px; }
.post-cover { margin: 0 0 clamp(28px, 4vw, 48px); }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post-nav { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.post-nav a:hover { border-color: var(--ink); color: var(--ink); }
.post-nav span { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--madder); font-weight: 600; margin-bottom: 6px; }
.post-nav strong { font-family: var(--serif); font-weight: 500; font-size: 1.125rem; }
.post-nav .next { text-align: right; }
.byline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: 0.9375rem; }
.byline b { color: var(--ink); font-weight: 600; }

/* Journal index */
.year-group { margin-top: clamp(28px, 4vw, 48px); }
.year-group h2 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.posts-list { display: grid; gap: 20px; }
@media (min-width: 720px) { .posts-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-list { grid-template-columns: repeat(3, 1fr); } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--madder); }
.timeline .when { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--madder); font-weight: 600; }
.timeline h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.timeline p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }

/* Definition cards and glossary */
.defs { display: grid; gap: 16px; }
@media (min-width: 720px) { .defs { grid-template-columns: repeat(2, 1fr); } }
.def { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.def dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.def dt .gurmukhi { color: var(--ink-soft); font-size: 1rem; margin-left: 8px; font-weight: 400; }
.def dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--madder); flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
details.acc[open] summary::after { content: "\2212"; }
details.acc .acc-body { padding: 0 0 20px; color: var(--ink-2); max-width: 42em; }

/* Donate */
.donate-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .donate-grid { grid-template-columns: repeat(2, 1fr); } }
.donate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.donate-card.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.donate-card.dark h3, .donate-card.dark .kv .k { color: #fff; }
.donate-card.dark .kv .v { color: #fff; }
.donate-card.dark .kv { border-color: rgba(255,255,255,0.14); }
.donate-card.dark .kv li { border-color: rgba(255,255,255,0.14); }
.donate-card.dark .copy { border-color: rgba(255,255,255,0.3); color: #fff; }
.donate-card.dark .copy:hover { background: rgba(255,255,255,0.1); }
.donate-card.dark p { color: #d9d2c4; }
.donate-card h3, .donate-card .h3 { margin-bottom: 8px; }
.h3 { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.2; }
.donate-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--madder); margin-bottom: 10px; }
.donate-card.dark .tag { color: var(--madder-light); }
.kv { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv .k { font-size: 0.8125rem; color: var(--muted); grid-column: 1; }
.kv .v { display: block; font-weight: 600; font-variant-numeric: tabular-nums; grid-column: 1; font-size: 1.0625rem; letter-spacing: 0.02em; }
.kv .copy { grid-column: 2; grid-row: 1 / span 2; }
.copy { font: inherit; font-size: 0.8125rem; font-weight: 600; padding: 8px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.copy:hover { background: var(--paper-2); }
.no-js .copy { display: none; }
.giftaid { display: grid; gap: 20px; align-items: center; background: var(--madder-soft); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
@media (min-width: 900px) { .giftaid { grid-template-columns: minmax(0, 7fr) auto; } }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.contact-card h3, .contact-card .h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-card .role { font-size: 0.8125rem; color: var(--madder); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card address { font-style: normal; color: var(--ink-2); font-size: 0.9375rem; margin: 10px 0; line-height: 1.55; }
.contact-card a { text-decoration: underline; }
.contact-card .btn-row { margin-top: 12px; }
.contact-card .btn { min-height: 42px; padding: 8px 16px; font-size: 0.9375rem; }

/* Session table */
.sessions { display: grid; gap: 16px; }
@media (min-width: 720px) { .sessions { grid-template-columns: repeat(2, 1fr); } }
.session { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.session .day { font-family: var(--serif); font-size: 1.5rem; }
.session .place { color: var(--ink-2); font-size: 0.9375rem; margin-top: 6px; }

/* Logo on paper */
.logo-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.logo-paper img { width: min(100%, 420px); }

/* CTA band */
.cta-band { background: var(--madder); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow::before { background: #fff; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 7fr) auto; } }

/* Mobile menu sizing tweak so 9 items fit */
.mobile-menu a { font-size: 1.3rem; padding: 12px 6px; }
.crumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.lead-wide { max-width: 48em; }

/* Crop fixes, 22 Sept */
.page-head-grid figure.portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; max-width: 420px; margin-left: auto; }
.quote-photo img { object-position: top; }
.banner img { aspect-ratio: auto; height: auto; object-fit: unset; }
.research-figure img { aspect-ratio: auto; height: auto; object-fit: unset; object-position: unset; }

/* Mobile fixes, 22 Sept: sticky asides only on wide screens; menu Donate button */
.steps-aside, .aside-sticky { position: static; }
@media (min-width: 1024px) { .steps-aside, .aside-sticky { position: sticky; top: 96px; } }
.mobile-menu .btn { display: flex; width: 100%; justify-content: center; text-align: center; font-size: 1.125rem; padding: 14px 22px; border-bottom: 0; }
