/* ============================================
   V. VAIDYANATHAN — A FOUNDER'S CHRONICLE
   Editorial × Corporate Hybrid Design System
   ============================================ */

:root {
  --ink: #0a1628;
  --ink-soft: #1a2942;
  --ink-mid: #344563;
  --paper: #f7f3ec;
  --paper-warm: #efe8db;
  --paper-cool: #fafaf7;
  --gold: #c9a14a;
  --gold-deep: #a8842f;
  --gold-soft: #e6cd8a;
  --rust: #8b4a2a;
  --line: rgba(10, 22, 40, 0.12);
  --line-strong: rgba(10, 22, 40, 0.4);
  --shadow-sm: 0 4px 16px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 24px 80px rgba(10, 22, 40, 0.18);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.no-line::before { display: none; }

.h-display { font-size: clamp(2.6rem, 7vw, 6rem); }
.h-xl      { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.h-lg      { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.h-md      { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

p { color: var(--ink-mid); }
.dark p, .dark { color: rgba(247, 243, 236, 0.78); }

/* CONTAINERS */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow    { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
}
.site-nav.scrolled {
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 18px;
  background: var(--paper);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.brand-name { font-weight: 500; }
.brand-name span { display: block; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-mid); margin-top: 3px; font-family: var(--sans); }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--ink);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    padding: 60px var(--gutter);
    gap: 18px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; padding: 6px 0; font-family: var(--display); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   HERO – UNIVERSAL CHAPTER MARK
   ============================================ */
.page-hero {
  padding: 180px var(--gutter) 90px;
  position: relative;
  overflow: hidden;
}
.page-hero .chapter {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 30px;
}
.page-hero .chapter span { color: var(--ink-mid); margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line-strong); }

.page-hero h1 { max-width: 1100px; }
.page-hero .lede { max-width: 720px; margin-top: 32px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--gutter) 40px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-mark {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
  margin-bottom: 60px;
  max-width: 900px;
  color: var(--paper);
}
.footer-mark em { color: var(--gold-soft); font-style: italic; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col p, .footer-col a {
  color: rgba(247, 243, 236, 0.7);
  font-size: 14px;
  line-height: 1.85;
}
.footer-col a:hover { color: var(--paper); }
.footer-col ul { list-style: none; }

.footer-credit {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  font-size: 12px;
  color: rgba(247, 243, 236, 0.55);
}
.footer-credit a { color: var(--gold-soft); border-bottom: 1px dashed rgba(201, 161, 74, 0.4); padding-bottom: 1px; }
.footer-credit a:hover { color: var(--paper); }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================
   REUSABLE BLOCKS
   ============================================ */
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 70px 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.warm { background: var(--paper-warm); }
.section.cool { background: var(--paper-cool); }

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px;
  align-items: start;
}
.split .col-side { grid-column: span 4; position: sticky; top: 120px; }
.split .col-main { grid-column: span 8; }
.split .col-half { grid-column: span 6; }
@media (max-width: 980px) {
  .split { gap: 40px; }
  .split .col-side, .split .col-main, .split .col-half { grid-column: 1 / -1; position: static; }
}

.callout-quote {
  border-left: 1px solid var(--gold);
  padding: 18px 0 18px 32px;
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
}
.dark .callout-quote { color: var(--paper); border-color: var(--gold-soft); }

.metric {
  display: flex; align-items: baseline; gap: 12px;
}
.metric-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--gold-deep);
  font-weight: 500;
}
.dark .metric-num { color: var(--gold-soft); }
.metric-suffix { font-family: var(--display); font-size: 1.6rem; color: var(--ink-soft); }
.dark .metric-suffix { color: var(--paper); }
.metric-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mid); }
.dark .metric-label { color: rgba(247, 243, 236, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-light { border-color: var(--paper); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .3s; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { transform: translateX(6px); }

/* IMAGE SHELLS — guarantee full visibility, no crop */
.imgshell {
  background: linear-gradient(135deg, var(--paper-warm), var(--paper-cool));
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.imgshell.dark-bg {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-color: rgba(201, 161, 74, 0.2);
}
.imgshell img { width: 100%; height: 100%; object-fit: contain; }
.imgshell.contained { padding: 18px; }

.imgshell.frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 161, 74, 0.5);
  pointer-events: none;
  z-index: 2;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* ============================================
   PASSWORD GATE
   ============================================ */
body.gate {
  background: #050a14;
  color: var(--paper);
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
}
.gate-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 30% 20%, rgba(201, 161, 74, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 80%, rgba(80, 110, 200, 0.14), transparent 60%),
    linear-gradient(135deg, #050a14 0%, #0a1628 100%);
  z-index: 0;
}
.gate-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247, 243, 236, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 243, 236, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.gate-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.gate-particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise 14s linear infinite;
}
@keyframes particle-rise {
  0% { transform: translateY(100vh); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh); opacity: 0; }
}

.gate-card {
  position: relative; z-index: 5;
  background: rgba(247, 243, 236, 0.04);
  border: 1px solid rgba(247, 243, 236, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 60px 56px;
  max-width: 480px;
  width: calc(100% - 40px);
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(247, 243, 236, 0.06);
  animation: card-enter 1.1s var(--ease) both;
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.gate-mark {
  width: 64px; height: 64px;
  border: 1px solid rgba(201, 161, 74, 0.6);
  position: relative;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 28px;
  color: var(--gold-soft);
  margin-bottom: 32px;
}
.gate-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201, 161, 74, 0.3); }
.gate-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.gate-card h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.2;
}
.gate-card .gate-sub {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(247, 243, 236, 0.6);
  margin-bottom: 36px;
  font-size: 1rem;
}

.gate-field { position: relative; margin-bottom: 26px; }
.gate-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 243, 236, 0.22);
  padding: 14px 0;
  font-size: 16px;
  color: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0.18em;
  outline: none;
  transition: border-color .35s, padding .35s;
}
.gate-field input::placeholder { color: rgba(247, 243, 236, 0.3); letter-spacing: 0.18em; }
.gate-field input:focus { border-color: var(--gold-soft); }
.gate-field::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.gate-field.focused::after { transform: scaleX(1); }

.gate-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background .3s, transform .3s;
}
.gate-btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

.gate-error {
  font-size: 12px;
  color: #e8806e;
  margin-top: 14px;
  letter-spacing: 0.06em;
  min-height: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.gate-error.show { opacity: 1; }

.gate-card.shake { animation: shake .5s; }
.gate-card.shake .gate-mark {
  border-color: #e8806e;
  color: #e8806e;
  box-shadow: 0 0 30px rgba(232, 128, 110, 0.4);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.gate-foot {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.35);
  z-index: 5;
}
.gate-foot a { color: var(--gold-soft); }

/* ============================================
   HOME PAGE
   ============================================ */
.home-hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(201, 161, 74, 0.06), transparent 70%),
    var(--paper);
}
.home-hero::before {
  content: "";
  position: absolute;
  left: var(--gutter); top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mid);
  white-space: nowrap;
  transform-origin: left center;
}
.home-hero-text { max-width: 720px; position: relative; z-index: 2; }
.home-hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  margin: 24px 0 32px;
}
.home-hero h1 em { font-family: var(--serif); font-style: italic; color: var(--gold-deep); display: block; }
.home-hero .meta-row {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 30px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.home-hero .meta-row strong { color: var(--ink); display: block; font-family: var(--display); font-size: 22px; letter-spacing: 0; text-transform: none; margin-top: 4px; }

.home-hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, var(--paper-warm), var(--paper-cool));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.home-hero-portrait img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.home-hero-portrait::before {
  content: "01 — INTRODUCTION";
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.3em;
  background: var(--ink); color: var(--paper);
  padding: 6px 12px;
}
.home-hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 161, 74, 0.4);
  pointer-events: none;
  margin: 12px;
}

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; }
  .home-hero::before { display: none; }
  .home-hero-portrait { max-width: 480px; margin: 0 auto; }
}

/* MARQUEE TICKER */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  border-bottom: 1px solid rgba(247, 243, 236, 0.1);
}
.ticker-track {
  display: flex; gap: 60px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 60px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
}
.ticker-item::after {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  margin-left: 60px;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* HOME — PILLAR GRID */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 50px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .3s;
}
.pillar:hover { background: var(--paper-warm); }
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  margin-bottom: 36px;
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
.pillar p { font-size: 14px; line-height: 1.7; }
@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillar-grid { grid-template-columns: 1fr; } }

/* HOME — CHRONICLE PREVIEW */
.chronicle {
  background: var(--ink);
  color: var(--paper);
  padding: 130px var(--gutter);
  position: relative;
  overflow: hidden;
}
.chronicle::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.08), transparent 70%);
  pointer-events: none;
}
.chronicle-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.chronicle-intro { grid-column: span 5; position: sticky; top: 120px; align-self: start; }
.chronicle-list { grid-column: span 7; display: flex; flex-direction: column; gap: 0; }
.chronicle-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(247, 243, 236, 0.12);
  transition: padding .3s, background .3s;
}
.chronicle-item:hover { padding-left: 16px; }
.chronicle-item .yr {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  padding-top: 4px;
}
.chronicle-item h4 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--paper);
  margin-bottom: 10px;
}
.chronicle-item p { font-size: 14px; color: rgba(247, 243, 236, 0.65); }
@media (max-width: 980px) {
  .chronicle-grid { grid-template-columns: 1fr; gap: 40px; }
  .chronicle-intro { position: static; }
}

/* HOME — METRICS BANNER */
.metric-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper-warm);
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-banner .mb-cell {
  padding: 60px 30px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.metric-banner .mb-cell:last-child { border-right: none; }
.metric-banner .mb-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--gold-deep);
  line-height: 1;
}
.metric-banner .mb-label {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
@media (max-width: 880px) {
  .metric-banner { grid-template-columns: repeat(2, 1fr); }
  .metric-banner .mb-cell:nth-child(2) { border-right: none; }
  .metric-banner .mb-cell:nth-child(1), .metric-banner .mb-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* HOME — INTERVIEW PREVIEW */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.feature-pair > div { padding: 100px var(--gutter); }
.fp-img { background: var(--paper-cool); display: grid; place-items: center; padding: 60px var(--gutter); }
.fp-img .imgshell { width: 100%; max-width: 460px; aspect-ratio: 4/5; }
.fp-text h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 24px 0; }
@media (max-width: 980px) { .feature-pair { grid-template-columns: 1fr; } }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px;
  padding: 120px var(--gutter);
  background: var(--paper-cool);
}
.about-intro .ai-text { grid-column: 2 / 8; }
.about-intro .ai-img { grid-column: 8 / 13; aspect-ratio: 3/4; }
.about-intro .ai-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 28px 0 36px; }
.about-intro .ai-text p { margin-bottom: 18px; line-height: 1.85; }
@media (max-width: 980px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro .ai-text, .about-intro .ai-img { grid-column: 1 / -1; }
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
  color: var(--paper);
}
.facts-strip .fact {
  padding: 60px 36px;
  border-right: 1px solid rgba(247, 243, 236, 0.1);
}
.facts-strip .fact:last-child { border-right: none; }
.facts-strip h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 14px; color: var(--gold-soft); }
.facts-strip p { font-size: 14px; color: rgba(247, 243, 236, 0.7); }
@media (max-width: 820px) { .facts-strip { grid-template-columns: 1fr; } .facts-strip .fact { border-right: none; border-bottom: 1px solid rgba(247, 243, 236, 0.1); } }

/* ABOUT — VALUES */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.value-card {
  padding: 60px 50px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
  background: var(--paper);
  position: relative;
  transition: background .3s;
}
.value-card:hover { background: var(--paper-warm); }
.value-card .v-num {
  font-family: var(--display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 24px;
}
.value-card h3 { font-size: 1.6rem; margin-bottom: 16px; }
.value-card p { font-size: 15px; line-height: 1.8; }
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================
   JOURNEY (ENTREPRENEURIAL) — TIMELINE
   ============================================ */
.timeline-wrap {
  background: var(--paper);
  padding: 80px 0;
}
.timeline {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
.tl-node {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: start;
  margin-bottom: 90px;
}
.tl-node:nth-child(odd) .tl-card { grid-column: 1; text-align: right; padding-right: 30px; }
.tl-node:nth-child(odd) .tl-img  { grid-column: 3; padding-left: 30px; }
.tl-node:nth-child(even) .tl-card { grid-column: 3; padding-left: 30px; }
.tl-node:nth-child(even) .tl-img  { grid-column: 1; text-align: right; padding-right: 30px; }
.tl-dot {
  grid-column: 2;
  width: 18px; height: 18px;
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 50%;
  justify-self: center;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}
.tl-dot::after {
  content: "";
  position: absolute; inset: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.tl-card .yr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  margin-bottom: 12px;
  display: block;
}
.tl-card h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 14px;
  line-height: 1.2;
}
.tl-card p { font-size: 15px; line-height: 1.75; }

@media (max-width: 820px) {
  .timeline::before { left: 24px; }
  .tl-node, .tl-node:nth-child(odd), .tl-node:nth-child(even) {
    grid-template-columns: 48px 1fr;
    gap: 0;
  }
  .tl-node:nth-child(odd) .tl-card,
  .tl-node:nth-child(even) .tl-card { grid-column: 2; text-align: left; padding: 0 0 0 0; }
  .tl-node:nth-child(odd) .tl-img,
  .tl-node:nth-child(even) .tl-img { display: none; }
  .tl-dot { grid-column: 1; justify-self: start; margin-left: 16px; }
}

/* JOURNEY — INFLECTION POINT BLOCKS */
.inflection {
  background: linear-gradient(180deg, var(--ink) 0%, #06101f 100%);
  color: var(--paper);
  padding: 130px var(--gutter);
  position: relative;
  overflow: hidden;
}
.inflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}
.inflection h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 30px; }
.inflection .imgshell { aspect-ratio: 4/5; max-width: 480px; }
@media (max-width: 980px) { .inflection-grid { grid-template-columns: 1fr; } }

/* ============================================
   INSTITUTION (CAPITAL FIRST + IDFC FIRST)
   ============================================ */
.inst-hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  min-height: 70vh;
}
.inst-hero-stage .ihs-text { padding: 120px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.inst-hero-stage .ihs-img { background: linear-gradient(135deg, var(--ink-soft), var(--ink)); padding: 60px; display: grid; place-items: center; border-left: 1px solid rgba(247, 243, 236, 0.1); }
.inst-hero-stage .ihs-img .imgshell { width: 100%; max-width: 480px; aspect-ratio: 4/5; }
@media (max-width: 980px) {
  .inst-hero-stage { grid-template-columns: 1fr; }
  .inst-hero-stage .ihs-img { border-left: none; border-top: 1px solid rgba(247, 243, 236, 0.1); }
}

/* TWO-COLUMN MERGER NARRATIVE */
.merger-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: stretch;
  gap: 0;
}
.merger-col {
  padding: 70px 50px;
  background: var(--paper-cool);
  border: 1px solid var(--line);
}
.merger-col.warm { background: var(--paper-warm); }
.merger-col h3 { font-size: 1.6rem; margin-bottom: 8px; }
.merger-col .mc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--gold-deep); margin-bottom: 20px; display: block; }
.merger-col p { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.merger-junction {
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: 1.6rem;
  position: relative;
}
.merger-junction span {
  position: absolute;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(247, 243, 236, 0.6);
}
@media (max-width: 980px) {
  .merger-grid { grid-template-columns: 1fr; }
  .merger-junction { padding: 30px; }
}

/* DATA PANEL */
.data-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--gutter);
}
.data-panel-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; max-width: var(--max); margin: 0 auto 70px; align-items: end; }
.data-panel-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.data-panel-head p { font-size: 16px; color: rgba(247, 243, 236, 0.7); }
.data-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(247, 243, 236, 0.14);
  border-top: 1px solid rgba(247, 243, 236, 0.14);
}
.data-cell {
  padding: 44px 30px;
  border-right: 1px solid rgba(247, 243, 236, 0.14);
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}
.data-cell .dc-num { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--gold-soft); line-height: 1; }
.data-cell .dc-num small { font-size: 0.6em; opacity: 0.7; }
.data-cell .dc-lab { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 243, 236, 0.6); margin-top: 14px; }
.data-cell .dc-cap { font-size: 13px; color: rgba(247, 243, 236, 0.7); margin-top: 16px; line-height: 1.6; }
@media (max-width: 880px) { .data-panel-head { grid-template-columns: 1fr; } .data-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .data-grid { grid-template-columns: 1fr; } }

/* ============================================
   PHILOSOPHY PAGE
   ============================================ */
.phil-stage {
  padding: 130px var(--gutter);
  background: var(--paper-cool);
  text-align: center;
}
.phil-stage blockquote {
  max-width: 920px; margin: 50px auto 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.32;
  font-style: italic;
  color: var(--ink);
}
.phil-stage blockquote::before { content: "“"; font-size: 5rem; line-height: 0; color: var(--gold); display: inline-block; transform: translateY(20px); margin-right: 6px; }
.phil-stage cite { display: block; margin-top: 36px; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-mid); font-style: normal; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.principle {
  padding: 60px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .3s, transform .3s;
}
.principle:hover { background: var(--paper-warm); }
.principles .principle:nth-child(3n) { border-right: none; }
.principle .pr-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--gold-deep); margin-bottom: 30px; }
.principle h3 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.2; }
.principle p { font-size: 14px; line-height: 1.75; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } .principles .principle:nth-child(3n) { border-right: 1px solid var(--line); } .principles .principle:nth-child(2n) { border-right: none; } }
@media (max-width: 540px) { .principles { grid-template-columns: 1fr; } .principles .principle { border-right: none; } }

/* PHILOSOPHY — PORTRAIT BAND */
.portrait-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink);
  color: var(--paper);
  align-items: stretch;
}
.portrait-band .pb-img { background: var(--ink-soft); display: grid; place-items: center; padding: 60px; }
.portrait-band .pb-img .imgshell { width: 100%; max-width: 460px; aspect-ratio: 4/5; }
.portrait-band .pb-text { padding: 100px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 980px) { .portrait-band { grid-template-columns: 1fr; } }

/* ============================================
   PHILANTHROPY PAGE
   ============================================ */
.philan-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  padding: 80px var(--gutter);
}
.philan-mosaic .pm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 44px 38px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.philan-mosaic .pm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.philan-mosaic .pm-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--gold-deep); margin-bottom: 24px; }
.philan-mosaic .pm-card h3 { font-size: 1.5rem; margin-bottom: 14px; line-height: 1.2; }
.philan-mosaic .pm-card p { font-size: 14px; line-height: 1.75; }
.philan-mosaic .pm-amount { margin-top: auto; padding-top: 24px; font-family: var(--display); font-size: 1.8rem; color: var(--gold-deep); }

.philan-mosaic .pm-tall { grid-column: span 4; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: rgba(247, 243, 236, 0.1); }
.philan-mosaic .pm-tall p, .philan-mosaic .pm-tall h3 { color: var(--paper); }
.philan-mosaic .pm-tall .pm-tag { color: var(--gold-soft); }
.philan-mosaic .pm-tall .pm-amount { color: var(--gold-soft); }
.philan-mosaic .pm-wide { grid-column: span 8; }
.philan-mosaic .pm-third { grid-column: span 4; }
@media (max-width: 980px) {
  .philan-mosaic .pm-tall, .philan-mosaic .pm-wide, .philan-mosaic .pm-third { grid-column: 1 / -1; grid-row: auto; }
}

/* GIVING TIMELINE */
.giving-strip {
  background: var(--paper-warm);
  padding: 100px var(--gutter);
}
.giving-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
}
.giving-strip h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 24px; }
.giving-strip .imgshell { aspect-ratio: 5/4; }
@media (max-width: 980px) { .giving-strip-grid { grid-template-columns: 1fr; } }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 80vh;
  background: var(--paper);
}
.contact-stage .cs-text { padding: 140px var(--gutter) 80px; }
.contact-stage .cs-img { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); padding: 60px; display: grid; place-items: center; }
.contact-stage .cs-img .imgshell { width: 100%; max-width: 480px; aspect-ratio: 4/5; background: rgba(247,243,236,0.04); border-color: rgba(247,243,236,0.1); }
.contact-stage h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 24px 0 36px; }
@media (max-width: 980px) { .contact-stage { grid-template-columns: 1fr; } }

.contact-form-wrap {
  padding: 100px var(--gutter);
  background: var(--paper-cool);
}
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: block;
  margin-bottom: 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-deep); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { justify-self: start; }
@media (max-width: 720px) { .contact-form { grid-template-columns: 1fr; } }

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
  color: var(--paper);
}
.contact-channels .cc {
  padding: 60px 40px;
  border-right: 1px solid rgba(247, 243, 236, 0.12);
}
.contact-channels .cc:last-child { border-right: none; }
.contact-channels .cc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--gold-soft); margin-bottom: 20px; }
.contact-channels .cc h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 8px; color: var(--paper); }
.contact-channels .cc p { font-size: 14px; color: rgba(247, 243, 236, 0.7); line-height: 1.7; }
@media (max-width: 880px) { .contact-channels { grid-template-columns: 1fr; } .contact-channels .cc { border-right: none; border-bottom: 1px solid rgba(247, 243, 236, 0.12); } }

/* ============================================
   AWARDS LIST
   ============================================ */
.awards {
  padding: 100px var(--gutter);
  background: var(--paper-cool);
}
.awards-list {
  max-width: var(--max);
  margin: 50px auto 0;
}
.award {
  display: grid;
  grid-template-columns: 100px 1fr 240px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding .3s, background .3s;
}
.award:hover { padding-left: 16px; }
.award .yr { font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; color: var(--gold-deep); }
.award h4 { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; }
.award .org { font-size: 13px; color: var(--ink-mid); letter-spacing: 0.06em; text-align: right; }
@media (max-width: 720px) {
  .award { grid-template-columns: 1fr; gap: 6px; }
  .award .org { text-align: left; }
}

/* PARALLAX MARQUEE QUOTE */
.big-quote {
  padding: 130px var(--gutter);
  background: var(--paper-warm);
  text-align: center;
}
.big-quote-text {
  max-width: 1100px; margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.18;
  font-style: italic;
  color: var(--ink);
}
.big-quote-text strong { font-style: normal; color: var(--gold-deep); font-weight: 500; }
.big-quote cite { display: block; margin-top: 40px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-mid); font-style: normal; }

/* PERSONAL LIFE STRIP */
.personal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.personal .pp {
  padding: 70px 40px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.personal .pp:first-child { border-left: 1px solid var(--line); }
.personal .pp:last-child { border-right: 1px solid var(--line); }
.personal .pp-icon {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--gold-deep);
  margin-bottom: 18px;
  line-height: 1;
}
.personal h3 { font-size: 1.4rem; margin-bottom: 14px; }
.personal p { font-size: 14px; line-height: 1.75; }
@media (max-width: 880px) { .personal { grid-template-columns: 1fr; } }

/* MOBILE RESET */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .page-hero { padding: 130px var(--gutter) 60px; }
}
