/* =====================================================================
   Eshika Agarwal — Personal Website
   Foundation design system (owned by Foundation agent)
   Warm, editorial, infographic-led "quiet luxury" for a finance audience.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette — sampled warm neutrals */
  --cream:    #F4EEE2;
  --sand:     #E7DAC4;
  --ivory:    #FBF8F2;
  --caramel:  #C2A171;
  --gold:     #D9B779;
  --sage:     #7C8466;
  --espresso: #2B2620;
  --mocha:    #6E6253;

  /* Semantic */
  --bg:        var(--cream);
  --panel:     var(--sand);
  --surface:   var(--ivory);
  --text:      var(--espresso);
  --text-muted:var(--mocha);
  --accent:    var(--sage);
  --accent-warm: var(--caramel);
  --line: rgba(43, 38, 32, 0.12);
  --line-strong: rgba(43, 38, 32, 0.22);

  /* Typography */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Scale */
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  /* Shadows — soft, warm */
  --shadow-sm: 0 2px 8px rgba(43, 38, 32, 0.06);
  --shadow:    0 10px 30px rgba(43, 38, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 38, 32, 0.16);
  --glow: 0 0 0 3px rgba(217, 183, 121, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --nav-h: 72px;
}

/* ---------- 2. Reset / base ---------- */
*, *::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;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--caramel); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

::selection { background: var(--gold); color: var(--espresso); }

/* Visible focus for accessibility */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section {
  padding-block: clamp(64px, 9vw, 130px);
  position: relative;
}
.section--tight { padding-block: clamp(44px, 6vw, 80px); }

.section--dark {
  background: var(--espresso);
  color: var(--cream);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream); }
.section--dark .lede,
.section--dark p { color: rgba(244, 238, 226, 0.82); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark a { color: var(--gold); }

.section--panel { background: var(--panel); }
.section--surface { background: var(--surface); }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.4em;
}

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

.accent-serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--espresso);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--espresso);
  --btn-fg: var(--cream);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(43,38,32,0.28), var(--glow); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--espresso);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--surface);
  border-color: var(--caramel);
}
.section--dark .btn--ghost {
  --btn-fg: var(--cream);
  border-color: rgba(244,238,226,0.35);
}
.section--dark .btn--ghost:hover { --btn-bg: rgba(244,238,226,0.08); border-color: var(--gold); }

.btn--magnetic { will-change: transform; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- 6. Navigation ---------- */
#site-nav { position: sticky; top: 0; z-index: 100; }
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding-inline: clamp(20px, 5vw, 48px);
  max-width: 1280px;
  margin-inline: auto;
  background: rgba(244, 238, 226, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(0px);
  backdrop-filter: saturate(140%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              height 0.3s var(--ease);
}
#site-nav.is-scrolled .nav {
  height: 60px;
  background: rgba(244, 238, 226, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--espresso);
  white-space: nowrap;
}
.nav__brand span { color: var(--caramel); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5em 0.85em;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em; bottom: 0.32em;
  height: 2px;
  background: var(--caramel);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--espresso); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--espresso); }
.nav__link.is-active::after { transform: scaleX(1); background: var(--sage); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 10px;
}
.nav__toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--espresso); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(251, 248, 242, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem clamp(20px, 5vw, 48px) 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { padding: 0.75em 0.5em; font-size: 1.05rem; }
  .nav__link::after { left: 0.5em; bottom: 0.5em; }
}

/* ---------- 7. Footer ---------- */
#site-footer { background: var(--espresso); color: var(--cream); }
.footer {
  padding-block: clamp(48px, 7vw, 80px) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--cream); }
.footer__brand span { color: var(--gold); }
.footer__tag {
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(244,238,226,0.78);
  margin-top: 0.6rem;
  max-width: 32ch;
}
.footer__col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__col a { color: rgba(244,238,226,0.82); font-size: 0.95rem; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(244,238,226,0.14);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.85rem; color: rgba(244,238,226,0.6);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card--lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194,161,113,0.5);
}
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--cream));
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  font-family: var(--font-head); font-weight: 700; color: var(--caramel);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

/* Generic responsive grid */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.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--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 9. Stat grid / counters ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.stat {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease) 0.2s;
}
.stat.is-visible::after { transform: scaleX(1); }
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  color: var(--espresso);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.section--dark .stat__num { color: var(--cream); }
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.section--dark .stat { background: rgba(244,238,226,0.05); border-color: rgba(244,238,226,0.14); }
.section--dark .stat__label { color: rgba(244,238,226,0.7); }

/* ---------- 10. Gauge (capital) ---------- */
.gauge {
  --p: 0;
  position: relative;
  width: 220px; height: 220px;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79%),
    conic-gradient(var(--caramel) calc(var(--p) * 1%), var(--sand) 0);
  margin-inline: auto;
  box-shadow: var(--shadow);
  transition: background 1.2s var(--ease);
}
.gauge__inner { text-align: center; }
.gauge__value {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2rem; color: var(--espresso); line-height: 1;
}
.gauge__caption { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-top: 0.9rem; text-align: center; }

/* ---------- 11. Stepper (AI vs human split) ---------- */
.stepper { display: grid; gap: 1.1rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { border-color: rgba(194,161,113,0.5); box-shadow: var(--shadow); }
.step__num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--cream);
  background: var(--espresso);
}
.step__body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step__body p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* AI vs human lanes */
.step__lanes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
  margin-top: 0.9rem;
}
@media (max-width: 560px) { .step__lanes { grid-template-columns: 1fr; } }
.step__ai, .step__human {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--line);
}
.step__ai {
  background: linear-gradient(135deg, rgba(194,161,113,0.16), rgba(217,183,121,0.08));
  border-color: rgba(194,161,113,0.35);
}
.step__human {
  background: linear-gradient(135deg, rgba(124,132,102,0.16), rgba(124,132,102,0.06));
  border-color: rgba(124,132,102,0.4);
}
.lane__tag {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.step__ai .lane__tag { color: var(--caramel); }
.step__human .lane__tag { color: var(--sage); }
.step__ai p, .step__human p { margin: 0; color: var(--text); font-size: 0.9rem; line-height: 1.5; }

/* ---------- 12. Tombstones (deals) ---------- */
.tombstone {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tombstone:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(194,161,113,0.5); }
.tombstone__sector {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage);
}
.tombstone__name { font-size: 1.18rem; margin: 0.35rem 0 0.8rem; }
.tombstone__amount {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  color: var(--espresso); line-height: 1; letter-spacing: -0.02em;
}
.tombstone__bar {
  --w: 0%;
  height: 8px; border-radius: 999px;
  background: var(--sand);
  margin: 1rem 0 0.9rem;
  overflow: hidden; position: relative;
}
.tombstone__bar::after {
  content: ""; position: absolute; inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  border-radius: 999px;
  transform-origin: left;
  transition: width 1.1s var(--ease);
}
.tombstone__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  font-size: 0.86rem; color: var(--text-muted);
}
.tombstone__meta strong { color: var(--text); font-weight: 600; }

/* ---------- 13. Timeline (experience / education) ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.8rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--caramel), var(--sand));
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: -1.8rem; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--caramel);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline__meta {
  font-family: var(--font-head); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage);
  margin-bottom: 0.2rem;
}
.timeline__item h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.timeline__role { color: var(--caramel); font-weight: 600; font-family: var(--font-head); font-size: 0.96rem; margin-bottom: 0.7rem; }
.timeline__item ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.timeline__item li { margin-bottom: 0.45rem; color: var(--text-muted); }
.section--dark .timeline__item::before { box-shadow: 0 0 0 4px var(--espresso); background: var(--espresso); }

/* ---------- 14. Skills + bars ---------- */
.skill { margin-bottom: 1.15rem; }
.skill__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.4rem;
}
.skill__name { font-family: var(--font-head); font-weight: 500; font-size: 0.98rem; }
.skill__pct { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.skill__bar {
  height: 9px; border-radius: 999px; background: var(--sand);
  overflow: hidden; position: relative;
}
.skill__bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--caramel));
  transition: width 1.1s var(--ease);
}

/* generic data-bar fill element */
[data-bar] { position: relative; }

/* ---------- 15. Toolkit chips ---------- */
.toolkit { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--font-head); font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
  background: var(--sand);
  border-color: var(--caramel);
}
.chip--accent { background: rgba(124,132,102,0.12); border-color: rgba(124,132,102,0.4); color: var(--sage); }
.section--dark .chip { background: rgba(244,238,226,0.06); border-color: rgba(244,238,226,0.18); color: var(--cream); }

/* ---------- 16. Pipeline diagram ---------- */
.pipeline {
  display: grid; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.pipeline__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}
@media (max-width: 640px) { .pipeline__row { grid-template-columns: 1fr; text-align: center; } }
.pipeline__task {
  padding: 0.8rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--cream); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 500;
}
.pipeline__tool {
  padding: 0.5em 0.95em; border-radius: 999px;
  background: rgba(194,161,113,0.16); border: 1px solid rgba(194,161,113,0.4);
  color: var(--espresso); font-size: 0.86rem; font-weight: 500; white-space: nowrap;
}
.pipeline__arrow { color: var(--caramel); font-size: 1.3rem; }
@media (max-width: 640px) { .pipeline__arrow { transform: rotate(90deg); } }

/* ---------- 17. Post cards ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(194,161,113,0.5); }
.post-card__cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--sand);
}
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); }
.post-card__title { font-size: 1.25rem; margin: 0.4rem 0 0.5rem; }
.post-card__excerpt { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1rem; }
.post-card__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--caramel); font-size: 0.92rem; }

/* ---------- 18. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(244,238,226,0.96) 0%, rgba(244,238,226,0.80) 42%, rgba(244,238,226,0.42) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; text-align: left; } }

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.3em;
}
.hero__name { display: block; color: var(--espresso); }
.hero__positioning {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
  color: var(--caramel);
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}
.hero__oneliner {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--espresso); line-height: 1.3;
  margin-bottom: 0.7rem; max-width: 22ch;
}
.hero__thesis {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; color: var(--text-muted);
  border-left: 3px solid var(--sage);
  padding-left: 0.85rem; margin-bottom: 1.6rem;
}
.hero__sub { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 1.6rem; }
.hero__sub strong { color: var(--espresso); }

.hero__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  rotate: 1.4deg;
  transition: rotate 0.5s var(--ease);
  max-width: 380px;
  margin-inline: auto;
}
.hero__portrait:hover { rotate: 0deg; }
.hero__portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-muted); z-index: 2;
}
.scroll-cue__dot {
  width: 22px; height: 36px; border-radius: 999px;
  border: 2px solid var(--mocha); position: relative;
}
.scroll-cue__dot::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 7px; border-radius: 999px; background: var(--caramel);
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; top: 6px; } 40% { opacity: 1; } 70% { opacity: 0; top: 18px; } }

/* ---------- 19. Impact bar ---------- */
.impact-bar {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) { .impact-bar { grid-template-columns: 1fr; } }

/* ---------- 20. Section heading block ---------- */
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem; max-width: none;
}

/* ---------- 21. Reveal animations ---------- */
/* Reveal targets are VISIBLE BY DEFAULT. Text must never depend on JS to be
   readable. The hide-then-reveal below applies only under html.js-reveal, a
   class added in <head> ONLY when the browser can run the animation, and
   removed by a fail-safe if main.js never takes over. So if anything in the
   reveal chain breaks (stale cache, no observer, JS error), text still shows. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }

/* SVG draw-on */
.draw {
  stroke-dasharray: var(--dash, 1000);
  stroke-dashoffset: var(--dash, 1000);
  transition: stroke-dashoffset 1.4s var(--ease);
}
.is-visible .draw, .draw.is-visible { stroke-dashoffset: 0; }

/* ---------- 22. Page veil (cross-page continuity) ---------- */
.page-veil {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.page-veil.is-active { opacity: 1; pointer-events: all; }
body.is-loading .page-veil { opacity: 1; }

/* ---------- 23. Utility / misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem, 5vw, 4rem); }
.muted { color: var(--text-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lead-link {
  font-family: var(--font-head); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.lead-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.lead-link:hover::after { transform: translateX(4px); }

/* ---------- 23b. Rich post prose (essays) ---------- */
.post-body {
  max-width: 760px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
}
.post-body > p { margin: 0 0 1.4em; }
.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.74;
  padding: 0.06em 0.12em 0 0;
  color: var(--caramel);
}
.post-body__h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 2.4em 0 0.7em;
}
.post-body__quote {
  margin: 1.8em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 4px solid var(--sage);
  font-size: 1.28rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
}
.post-body__figure {
  margin: 2em 0;
}
.post-body__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(43, 38, 32, 0.14);
}
.post-body__figure figcaption {
  margin-top: 0.7em;
  padding: 0 0.4em;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .post-body { font-size: 1.04rem; }
  .post-body__quote { font-size: 1.15rem; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero__bg { transform: none !important; }
  .page-veil { display: none; }
}
