/* =========================================================
   Dr. Binod Kumar Singh — personal site
   Plain CSS, no build step. Design language inherited from
   the Mahavir Singh Memorial Trust site for visual cohesion.
   ========================================================= */

:root {
  --cream:        #FAF6EE;
  --paper:        #FFFFFF;
  --ink:          #0E0E0E;
  --ink-muted:    #4A4A4A;
  --ink-soft:     #6B6B6B;
  --line:         #E8DECC;
  --line-strong:  #D9CBB1;

  --saffron:      #E76F1A;
  --saffron-deep: #C25910;
  --navy:         #1E3A5F;
  --navy-deep:    #142840;
  --moss:         #2D5016;
  --moss-deep:    #1F3A0F;
  --gold:         #B8860B;
  --clay:         #B7472A;

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

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

  --container: 1240px;
  --container-narrow: 880px;

  --serif: 'Fraunces', 'Noto Serif Devanagari', Georgia, serif;
  --sans:  'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

/* ---------- Bilingual: language switching ---------- */
/* Show only one language at a time based on <html lang="..."> */
html[lang="en"] [lang="hi"] { display: none !important; }
html[lang="hi"] [lang="en"] { display: none !important; }
/* When Hindi is active, prefer Devanagari fonts and slightly tighter spacing */
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, sans-serif; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 {
  font-family: 'Noto Serif Devanagari', 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}
/* Language toggle pill in the header */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--navy); color: var(--navy); }
.lang-toggle .lang-pill {
  display: inline-block; padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}
.lang-toggle .lang-pill.active { background: var(--navy); color: var(--cream); }
.lang-toggle .sep { opacity: .4; }

/* ---------- 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.65;
  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; }

/* ---------- 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.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.0rem); }
h3 { font-size: clamp(1.3rem, 2.0vw, 1.7rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--navy); font-variation-settings: "opsz" 144, "SOFT" 100; }

p { color: var(--ink-muted); }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.18rem); color: var(--ink-muted); line-height: 1.7; max-width: 62ch; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

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

/* ---------- 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; }
}

.s-head { max-width: 760px; margin-bottom: 56px; }
.s-head .lede { margin-top: 18px; }
.s-head-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  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-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-primary { background: var(--navy); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-saffron { background: var(--saffron); color: white; box-shadow: var(--shadow-sm); }
.btn-saffron:hover { background: var(--saffron-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.arrow { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; color: var(--ink); }
.brand-tag { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.94rem; color: var(--ink-muted); font-weight: 500; position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--saffron); border-radius: 2px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy h1 { margin-top: 18px; }
.hero-copy .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; }
.portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(250,246,238,.85);
  font-family: var(--serif);
  text-align: center; padding: 32px;
}
.portrait-card .fallback .mono { font-size: 4rem; letter-spacing: -0.04em; }
.portrait-card .fallback .name { font-size: 1.1rem; margin-top: 12px; opacity: .9; }

.portrait-badge {
  position: absolute; left: -16px; bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  max-width: 280px;
}
.portrait-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); flex: none; }
.portrait-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; color: var(--ink); }
.portrait-badge span { font-size: 0.84rem; color: var(--ink-soft); }

.hero-floater {
  position: absolute; right: -18px; top: 28px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  max-width: 200px;
}
.hero-floater .num { font-family: var(--serif); font-size: 1.6rem; line-height: 1; display: block; }
.hero-floater .lbl { font-size: 0.78rem; color: rgba(250,246,238,.75); margin-top: 4px; display: block; }

/* On mobile, lift badges off the face — stack them below the portrait */
@media (max-width: 900px) {
  .hero-visual { display: flex; flex-direction: column; gap: 12px; }
  .portrait-card { order: 0; }
  .portrait-badge {
    order: 1;
    position: static; left: auto; bottom: auto;
    max-width: none;
    border-radius: var(--radius);
  }
  .hero-floater {
    order: 2;
    position: static; right: auto; top: auto;
    max-width: none;
    display: flex; align-items: baseline; gap: 14px;
  }
  .hero-floater .num { font-size: 1.4rem; }
  .hero-floater .lbl { margin-top: 0; }
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  padding: 18px 0;
}
.strip-item { font-family: var(--serif); font-size: 1.1rem; padding: 0 22px; letter-spacing: -0.01em; }
.strip-item.dot { opacity: .35; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Pillars / cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .pillars.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .pillars, .pillars.four { grid-template-columns: 1fr; } }
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem;
  background: rgba(231,111,26,.12); color: var(--saffron-deep);
  margin-bottom: 22px;
}
.pillar-icon.navy { background: rgba(30,58,95,.10); color: var(--navy); }
.pillar-icon.moss { background: rgba(45,80,22,.10); color: var(--moss); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.96rem; }

/* ---------- Two-up content ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.two-up.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } .two-up.reverse > :first-child { order: 0; } }

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--line);
  box-shadow: var(--shadow-md);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.wide { aspect-ratio: 4 / 3; }

.decor-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  padding: 32px;
  text-align: center;
}
.decor-frame.wide { aspect-ratio: 4 / 3; }
.decor-frame .watermark {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 0.85;
  letter-spacing: -0.04em;
  opacity: 0.18;
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.decor-frame .watermark.huge { font-size: clamp(7rem, 18vw, 14rem); }
.decor-frame .watermark.deva { font-family: 'Noto Sans Devanagari', var(--serif); font-weight: 600; }
.decor-frame .decor-body { position: relative; z-index: 1; max-width: 28ch; }
.decor-frame .decor-eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}
.decor-frame .decor-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.decor-frame .decor-sub {
  margin-top: 14px;
  font-family: var(--sans); font-size: 0.86rem;
  opacity: 0.78;
}

.decor-frame.navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--cream); }
.decor-frame.clay { background: linear-gradient(135deg, var(--clay) 0%, var(--saffron-deep) 100%); color: var(--cream); }
.decor-frame.moss { background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%); color: var(--cream); }
.ph-label {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(14,14,14,.78); color: var(--cream);
  font-size: 0.78rem; padding: 7px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--saffron);
}
.tl-item.navy::before { border-color: var(--navy); }
.tl-item.moss::before { border-color: var(--moss); }
.tl-year { font-family: var(--serif); font-size: 1.0rem; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }
.tl-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin: 4px 0 8px; color: var(--ink); }
.tl-item p { font-size: 0.96rem; max-width: 60ch; }

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--cream);
  border-left: 3px solid var(--saffron);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block p { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--ink); line-height: 1.5; }
.quote-block cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.86rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 28px 22px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-align: left;
}
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.stat-num .plus { color: var(--saffron); }
.stat-lbl { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Education / credentials list ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .cred-grid { grid-template-columns: 1fr; } }
.cred {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
}
.cred-tag {
  font-family: var(--serif); font-weight: 600;
  font-size: 0.78rem;
  color: var(--saffron-deep);
  background: rgba(231,111,26,.10);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cred-text strong { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
.cred-text span { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- Map of postings ---------- */
.postings { display: flex; flex-wrap: wrap; gap: 10px; }
.posting {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.posting:hover { transform: translateY(-2px); border-color: var(--navy); }
.posting .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-flow: dense; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(14,14,14,.78); color: var(--cream);
  font-size: 0.8rem; padding: 7px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery-item:hover .cap { opacity: 1; }
.gallery-item.w4 { grid-column: span 4; }
.gallery-item.w5 { grid-column: span 5; }
.gallery-item.w6 { grid-column: span 6; }
.gallery-item.w7 { grid-column: span 7; }
.gallery-item.w8 { grid-column: span 8; }
.gallery-item.h2 { aspect-ratio: 4 / 5; }
.gallery-item.tall { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item.w4, .gallery-item.w5, .gallery-item.w6, .gallery-item.w7, .gallery-item.w8 { grid-column: span 1; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-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-top: 1px solid var(--line); }
.contact-row:first-of-type { border-top: none; padding-top: 0; }
.contact-row .lbl { flex: none; width: 110px; font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.contact-row .val { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.contact-row .val a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.contact-row .val a:hover { text-decoration-color: var(--saffron); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(231,111,26,.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--cream); position: relative; z-index: 1; }
.cta-banner p { color: rgba(250,246,238,.75); margin-top: 16px; max-width: 50ch; position: relative; z-index: 1; }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; z-index: 1; }
.cta-side { position: relative; z-index: 1; }
@media (max-width: 900px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer p { color: rgba(250,246,238,.6); font-size: 0.92rem; margin-top: 14px; max-width: 38ch; }
.footer-title { font-family: var(--serif); font-size: 1.0rem; color: var(--cream); margin-bottom: 18px; letter-spacing: -0.01em; }
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: rgba(250,246,238,.65); font-size: 0.93rem; transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--saffron); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,.18);
  display: grid; place-items: center;
  font-size: 0.92rem;
  color: rgba(250,246,238,.7);
  transition: all .2s var(--ease);
}
.socials a:hover { border-color: var(--saffron); color: var(--saffron); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(250,246,238,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(250,246,238,.5);
}
.footer-bottom a { color: rgba(250,246,238,.6); }
.footer-bottom a:hover { color: var(--saffron); }

.brand-mark-footer { background: var(--cream); color: var(--navy); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-top: 16px; max-width: 16ch; }
.page-head .lede { margin-top: 22px; }

/* ---------- Speech cards ---------- */
.speech-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .speech-featured { grid-template-columns: 1fr; } }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.video-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-thumb .yt-bg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  color: rgba(250,246,238,.4);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  text-align: center;
  padding: 24px;
  line-height: 1.1;
}
.video-thumb.saffron { background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-deep) 100%); }
.video-thumb.moss    { background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%); }
.video-thumb.clay    { background: linear-gradient(135deg, var(--clay) 0%, var(--saffron-deep) 100%); }
.video-thumb.navy    { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }

.play-btn {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), background .2s var(--ease);
  z-index: 2;
}
.video-thumb:hover .play-btn { transform: scale(1.08); background: var(--saffron); }
.play-btn::before {
  content: ""; width: 0; height: 0;
  border-left: 18px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
  transition: border-left-color .2s var(--ease);
}
.video-thumb:hover .play-btn::before { border-left-color: var(--cream); }

.video-duration {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(14,14,14,.85);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.02em;
}

.speech-meta { padding: 12px 0; }
.speech-meta .speech-eyebrow {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--saffron-deep);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.speech-meta .speech-eyebrow::before { content: "▶"; font-size: 0.7rem; }
.speech-meta h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.speech-meta .speech-info {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--ink-soft);
  margin-bottom: 16px;
}
.speech-meta .speech-info span { display: inline-flex; align-items: center; gap: 6px; }
.speech-meta .speech-info span::before {
  content: ""; width: 4px; height: 4px; background: var(--saffron); border-radius: 50%;
}
.speech-meta p { font-size: 0.95rem; max-width: 50ch; }

.speech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .speech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .speech-grid { grid-template-columns: 1fr; } }

.speech-card {
  display: flex; flex-direction: column;
  gap: 16px;
}
.speech-card .video-thumb { aspect-ratio: 16 / 9; }
.speech-card h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.speech-card .speech-info { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.speech-card .speech-info span { display: inline-flex; align-items: center; gap: 6px; }
.speech-card .speech-info span::before { content: ""; width: 3px; height: 3px; background: var(--saffron); border-radius: 50%; }

.demo-banner {
  background: rgba(231,111,26,.10);
  border: 1px dashed var(--saffron);
  border-radius: var(--radius);
  padding: 14px 22px;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.demo-banner strong { color: var(--saffron-deep); font-family: var(--serif); font-size: 1rem; }
.demo-banner .tag {
  background: var(--saffron); color: white;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex: none;
}

/* ---------- Press clippings ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .press-grid { grid-template-columns: 1fr; } }

.press-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.press-publication {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.press-publication .pub-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.press-publication .pub-date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.press-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.press-card .excerpt {
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-style: italic;
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
  line-height: 1.55;
}

.press-card .press-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}
.press-card .press-meta a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.press-card .press-meta a:hover { color: var(--saffron-deep); }
.press-card .press-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- Articles / writings ---------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
@media (max-width: 800px) {
  .article-card { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
}

.article-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.article-date .day {
  font-family: var(--serif); font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.article-date .mo {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-top: 6px;
}
.article-date .yr {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 800px) {
  .article-date { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 14px; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .article-date .day { font-size: 1.4rem; }
}

.article-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.25; letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-body .article-pub {
  font-size: 0.84rem; color: var(--ink-soft);
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.article-body .article-pub span { display: inline-flex; align-items: center; gap: 6px; }
.article-body .article-pub span::before { content: ""; width: 3px; height: 3px; background: var(--saffron); border-radius: 50%; }
.article-body p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 70ch;
}

.article-action {
  display: flex; align-items: center; flex: none;
}
@media (max-width: 800px) { .article-action { justify-self: start; } }

/* ---------- Nav: tighten when many items ---------- */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav { gap: 22px; }
  .nav a { font-size: 0.88rem; }
  .brand-tag { display: none; }
}

/* ---------- Utility ---------- */
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 32px 0; border: none; }
