/* ──────────────────────────────────────────────────────────────
   Bhupender Singh — Portfolio
   A light, paper-and-ink design: classical serif display type,
   quiet sans-serif body, one warm accent, and thin-line geometry.
   ────────────────────────────────────────────────────────────── */

:root {
  --paper:      #f6f1e7;
  --paper-2:    #efe8da;
  --paper-3:    #e7dfcd;
  --ink:        #221f1a;
  --ink-2:      #57514a;
  --ink-3:      #8a8174;
  --rule:       #d8cfbd;
  --rule-soft:  #e4dccc;
  --accent:     #8c3b2a;   /* terracotta / oxblood */
  --accent-2:   #a8573f;
  --accent-bg:  rgba(140, 59, 42, .07);
  --sage:       #6b7558;

  --ff-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain + soft vignette — fixed, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(120,95,60,.10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header.site, footer.site { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Typography ───────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
h2 { font-size: clamp(40px, 6vw, 68px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
h2 em, h3 em, h1 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.lead {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.45;
  color: var(--ink-2);
  font-style: italic;
}

.muted { color: var(--ink-2); }

/* ─── Navigation ───────────────────────────────────────────── */

header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
header.site.scrolled {
  background: rgba(246, 241, 231, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--accent);
  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-cv {
  margin-left: 10px;
  padding: 8px 16px !important;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background .2s, color .2s !important;
}
.nav-cv::after { display: none; }
.nav-cv:hover { background: var(--ink); color: var(--paper) !important; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 13px var(--ff-sans);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--rule-soft); }
  .nav-links a::after { display: none; }
  .nav-cv { margin: 14px 0 0; text-align: center; border-bottom: 1px solid var(--ink) !important; }
  header.site.menu-open { background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
}

/* ─── Buttons & links ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font: 500 14px var(--ff-sans);
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
  transition: color .2s;
}
.text-link:hover { color: var(--ink); }

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(107, 117, 88, .18);
}
.hero h1 {
  font-size: clamp(60px, 10.5vw, 136px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.hero h1 em { display: block; font-weight: 400; }
.hero .lead { max-width: 560px; margin-bottom: 18px; }
.hero-text { max-width: 560px; color: var(--ink-2); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.hero-figure { margin: 0; text-align: center; }
.hero-figure svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  color: var(--ink);
  margin: 0 auto;
  overflow: visible;
}
.geo { fill: none; stroke: currentColor; stroke-width: .8; vector-effect: non-scaling-stroke; }
.geo.faint { opacity: .35; }
.geo.accent { stroke: var(--accent); stroke-width: 1.1; }
.geo-dot { fill: var(--accent); }
.geo-spin { transform-origin: 200px 200px; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.js .draw.d2 { animation-delay: .35s; }
.js .draw.d3 { animation-delay: .7s; }
.js .draw.d4 { animation-delay: 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-figure figcaption {
  margin-top: 18px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
}

.stats {
  margin-top: clamp(48px, 8vh, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat { padding: 24px 22px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n {
  font-family: var(--ff-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-l { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* ─── Sections ─────────────────────────────────────────────── */

.section { padding: clamp(80px, 12vw, 140px) 0 0; }

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 340px);
  gap: 20px clamp(20px, 4vw, 56px);
  align-items: end;
  padding-bottom: 36px;
  margin-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.numeral {
  font-family: var(--ff-serif);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 400;
  line-height: .8;
  color: var(--accent);
  opacity: .9;
  min-width: 1.4em;
}
.epigraph {
  margin: 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 18px;
  border-left: 1px solid var(--accent);
}
.epigraph cite {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sub-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: clamp(56px, 8vw, 88px) 0 28px;
}
.sub-head h3 { white-space: nowrap; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); transform: translateY(-6px); }

/* Ornamental divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  margin: clamp(72px, 10vw, 120px) auto 0;
  max-width: 320px;
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.ornament svg { width: 36px; height: 12px; flex: none; }

/* ─── About ────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
}
.about-body p { color: var(--ink-2); }
.about-body .lead { color: var(--ink); font-style: normal; margin-bottom: 1.2em; }

.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.facts dt { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.facts a:hover { border-color: var(--accent); color: var(--accent); }

.practice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.practice li { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--rule); }
.practice .rn { font-family: var(--ff-serif); font-style: italic; color: var(--accent); font-size: 18px; }
.practice h4 { font-size: 22px; margin: 6px 0 10px; }
.practice p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

.proofs { list-style: none; padding: 0; margin: 28px 0 0; }
.proofs li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 0 9px 22px;
  position: relative;
  line-height: 1.55;
}
.proofs li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.proofs a { color: var(--accent); text-decoration: none; }
.proofs a:hover { text-decoration: underline; }

/* ─── Experience ───────────────────────────────────────────── */

.timeline-chart { margin-bottom: clamp(48px, 7vw, 72px); }
.tc-axis, .tc-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.tc-axis { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tc-axis .ticks { display: flex; justify-content: space-between; }
.tc-row { padding: 9px 0; border-top: 1px solid var(--rule-soft); }
.tc-label { font-size: 13.5px; line-height: 1.35; }
.tc-label span { display: block; font-size: 12px; color: var(--ink-3); }
.tc-track { position: relative; height: 10px; }
.tc-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.tc-bar {
  position: absolute;
  top: 50%;
  left: var(--s);
  width: var(--w);
  min-width: 10px;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: var(--ink);
  transform-origin: left;
}
.tc-bar.now { background: var(--accent); }
.js .reveal .tc-bar { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.js .reveal.in .tc-bar { transform: scaleX(1); }

.role {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px clamp(24px, 5vw, 64px);
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.role:first-of-type { border-top: 1px solid var(--ink); }
.role-meta { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.role-date {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.role-now {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--sage);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.role h3 { margin-bottom: 4px; }
.role-title { font-family: var(--ff-serif); font-style: italic; font-size: 20px; color: var(--accent); margin-bottom: 14px; line-height: 1.35; }
.role-title small { font-family: var(--ff-sans); font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.role-context { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.role ul { margin: 0 0 18px; padding: 0; list-style: none; }
.role li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.role li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.tags { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; line-height: 1.8; }
.tags span + span::before { content: " · "; color: var(--rule); }

/* ─── Work ─────────────────────────────────────────────────── */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.featured::after {
  content: "";
  position: absolute;
  right: -90px; bottom: -90px;
  width: 260px; height: 260px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: 0 0 0 30px var(--paper-2), 0 0 0 31px var(--rule);
  pointer-events: none;
}
.featured h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 14px; }
.featured p { color: var(--ink-2); }
.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; position: relative; z-index: 1; }
.chapters li {
  counter-increment: ch;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.chapters li:first-child { border-top: 1px solid var(--rule); }
.chapters li::before {
  content: counter(ch, upper-roman) ".";
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
}
.chapters b { display: block; font-weight: 600; font-size: 14.5px; }
.chapters span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.volume {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px clamp(28px, 5vw, 64px);
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}
.volume:first-of-type { border-top: 1px solid var(--ink); }
.vol-no { font-family: var(--ff-serif); font-style: italic; color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.volume h3 { margin-bottom: 8px; }
.vol-where { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.volume .vol-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 20px; }

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 0 32px;
}
.item { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.item-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.item h4 { font-family: var(--ff-sans); font-size: 15.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; letter-spacing: 0; }
.item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }

.writing { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.writing a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding .3s var(--ease), color .2s;
}
.writing a:hover { padding-left: 12px; color: var(--accent); }
.writing .w-title { font-family: var(--ff-serif); font-size: clamp(20px, 2.2vw, 26px); }
.writing .w-meta { font-size: 13px; color: var(--ink-3); }
.writing .w-arrow { color: var(--accent); }

/* ─── Case studies ─────────────────────────────────────────── */

.cases { border-top: 1px solid var(--ink); }
.case { border-bottom: 1px solid var(--rule); }
.case summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 20px;
  align-items: start;
  padding: 30px 0;
}
.case summary::-webkit-details-marker { display: none; }
.case-no { font-family: var(--ff-serif); font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; padding-top: 6px; }
.case-kick, .case-title, .case-meta { display: block; }
.case-kick { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.case-title { font-family: var(--ff-serif); font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; line-height: 1.2; transition: color .2s; }
.case summary:hover .case-title { color: var(--accent); }
.case-meta { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.case-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  position: relative;
  margin-top: 6px;
  transition: border-color .2s, transform .4s var(--ease);
}
.case-toggle::before, .case-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.case-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .3s; }
.case[open] .case-toggle { transform: rotate(180deg); border-color: var(--accent); }
.case[open] .case-toggle::after { opacity: 0; }

.case-body { padding: 0 0 44px 84px; }
.case[open] .case-body { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}
.metric { background: var(--paper); padding: 18px 20px; }
.metric-n { font-family: var(--ff-serif); font-size: 32px; font-weight: 500; line-height: 1; margin-bottom: 6px; color: var(--accent); }
.metric-l { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 48px); margin-bottom: 20px; }
.block h4 {
  font-family: var(--ff-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.block p, .block li { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.block ul { list-style: none; margin: 0 0 16px; padding: 0; }
.block li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.block li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--accent); }

.case-figure { margin: 0 0 32px; border: 1px solid var(--rule); background: var(--paper-2); padding: 12px; border-radius: 4px; }
.case-figure img { border-radius: 2px; margin: 0 auto; }
.case-figure figcaption { font-family: var(--ff-serif); font-style: italic; font-size: 14px; color: var(--ink-3); padding: 10px 4px 0; }
.case-figure.tall img { max-height: 720px; width: auto; }

/* ─── Skills ───────────────────────────────────────────────── */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 4px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.callout-glyph { font-family: var(--ff-serif); font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--accent); letter-spacing: .02em; }
.callout h3 { margin-bottom: 8px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 15px; }

.capability { margin-bottom: clamp(48px, 7vw, 72px); }
.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 48px;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.cap-track { height: 1px; background: var(--rule); position: relative; }
.cap-fill {
  position: absolute;
  left: 0; top: -2px;
  height: 5px;
  width: var(--p);
  background: var(--ink);
  border-radius: 3px;
  transform-origin: left;
}
.cap-fill::after { content: ""; position: absolute; right: -4px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.js .reveal .cap-fill { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js .reveal.in .cap-fill { transform: scaleX(1); }
.cap-pct { font-family: var(--ff-serif); font-size: 20px; text-align: right; }
.cap-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; font-style: italic; }

.clusters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
}
.cluster { padding: 24px 0; border-top: 1px solid var(--rule); }
.cluster h4 { font-size: 23px; margin-bottom: 10px; }
.cluster h4 span { font-style: italic; color: var(--accent); font-size: 17px; margin-right: 8px; }
.cluster p { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin: 0; }

.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
}
.certs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.certs li span { color: var(--ink-3); font-size: 13px; text-align: right; }

.edu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.edu h4 { font-size: 26px; }
.edu p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.edu .edu-yr { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); align-self: center; }

/* ─── Contact ──────────────────────────────────────────────── */

.contact { text-align: center; }
.contact .numeral { display: block; margin-bottom: 12px; }
.contact h2 { font-size: clamp(48px, 9vw, 112px); line-height: .95; margin: 8px 0 28px; }
.contact .lead { max-width: 640px; margin: 0 auto 28px; }
.roles-wanted {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.roles-wanted li { padding: 6px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.contact-note { font-size: 13px; color: var(--ink-3); font-style: italic; font-family: var(--ff-serif); font-size: 17px; }

.reference {
  max-width: 560px;
  margin: clamp(56px, 8vw, 80px) auto 0;
  padding: 32px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.reference h4 { font-size: 28px; margin: 6px 0 8px; }
.reference p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.7; }

/* ─── Footer ───────────────────────────────────────────────── */

footer.site { margin-top: clamp(80px, 12vw, 140px); padding: 0 0 40px; }
.meander { display: block; width: 100%; height: 14px; color: var(--rule); margin-bottom: 36px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot-quote { font-family: var(--ff-serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Reveal on scroll ─────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure svg { max-width: 260px; }
  .sec-head { grid-template-columns: auto minmax(0, 1fr); }
  .sec-head .epigraph { grid-column: 1 / -1; max-width: 520px; }
  .about-grid, .featured, .volume { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 32px); }
  .hero-figure svg { max-width: 180px; }
  .hero-figure figcaption { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .role { grid-template-columns: 1fr; padding: 32px 0; }
  .tc-axis, .tc-row { grid-template-columns: 1fr; gap: 6px; }
  .tc-axis > span:first-child { display: none; }
  .case summary { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 14px; }
  .case-no { font-size: 24px; }
  .case-body { padding-left: 0; }
  .cols { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px 16px; }
  .cap-track { grid-column: 1 / -1; grid-row: 2; }
  .callout { grid-template-columns: 1fr; }
  .writing a { grid-template-columns: minmax(0, 1fr) auto; }
  .writing .w-meta { grid-column: 1; grid-row: 2; }
  .writing .w-arrow { grid-row: 1; grid-column: 2; }
  .facts div { grid-template-columns: 96px minmax(0, 1fr); }
  .edu { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw { stroke-dashoffset: 0; }
}

@media print {
  body::before, header.site, .hero-figure, .meander { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .case-body { display: block; }
}
