/* ==========================================================================
   Shivank Mahajan — site stylesheet
   Aesthetic: editorial venture-studio — cream paper, pure black, one electric
   blue. Big tight grotesk headlines, uppercase micro-labels, hairline rules,
   black inverted bands, pill eyebrows, underline-grow hovers.
   Typeface: ABC Favorit (Dinamo).
   ========================================================================== */

/* ABC Favorit — Dinamo licenses the font, so it is not bundled.
   Put your licensed files in assets/fonts/ with these names
   (Dinamo's default names):
     ABCFavorit-Light.woff2, ABCFavorit-Regular.woff2,
     ABCFavorit-Medium.woff2, ABCFavorit-Bold.woff2
     ABCFavoritMono-Regular.woff2 (optional, for labels)
   If the font is installed on your machine, local() picks it up. */
@font-face {
  font-family: 'ABC Favorit';
  src: local('ABC Favorit Light'), local('ABCFavorit-Light'),
       url('fonts/ABCFavorit-Light.woff2') format('woff2'),
       url('fonts/ABCFavorit-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit';
  src: local('ABC Favorit Regular'), local('ABCFavorit-Regular'),
       url('fonts/ABCFavorit-Regular.woff2') format('woff2'),
       url('fonts/ABCFavorit-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit';
  src: local('ABC Favorit Medium'), local('ABCFavorit-Medium'),
       url('fonts/ABCFavorit-Medium.woff2') format('woff2'),
       url('fonts/ABCFavorit-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit';
  src: local('ABC Favorit Bold'), local('ABCFavorit-Bold'),
       url('fonts/ABCFavorit-Bold.woff2') format('woff2'),
       url('fonts/ABCFavorit-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit Mono';
  src: local('ABC Favorit Mono Regular'), local('ABCFavoritMono-Regular'),
       url('fonts/ABCFavoritMono-Regular.woff2') format('woff2'),
       url('fonts/ABCFavoritMono-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* palette */
  --cream:     #FEFCF6;
  --paper:     #F1EFEA;
  --rule:      #DAD8D5;
  --black:     #000000;
  --ink-2:     rgba(0, 0, 0, 0.6);
  --ink-3:     rgba(0, 0, 0, 0.4);
  --line:      rgba(0, 0, 0, 0.2);
  --line-soft: rgba(0, 0, 0, 0.1);
  --blue:      #006FED;
  --blue-hi:   #0058C2;
  --red:       #ED0000;

  /* legacy aliases (kept so page-level inline styles still resolve) */
  --bg: var(--cream);
  --text: var(--black);
  --text-2: var(--ink-2);
  --muted: var(--ink-3);
  --accent: var(--blue);
  --accent-hi: var(--blue-hi);
  --border: var(--line-soft);
  --border-2: var(--line);

  --font: 'ABC Favorit', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'ABC Favorit Mono', 'ABC Favorit', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --max: 1320px;
  --gutter: 40px;
  --prose: 680px;

  /* one type scale for every page */
  --fs-display: clamp(3.4rem, 10vw, 9.5rem);   /* name, page wordmarks */
  --fs-h1:      clamp(2.4rem, 5vw, 4.5rem);    /* page titles */
  --fs-h2:      clamp(2rem, 4vw, 3.4rem);      /* section titles, key figures */
  --fs-h3:      clamp(1.5rem, 2.4vw, 2.2rem);  /* subsection & card titles */
  --fs-h4:      clamp(1.25rem, 1.8vw, 1.6rem); /* org names, list titles */
  --fs-lede:    clamp(1.15rem, 1.8vw, 1.45rem);/* intro paragraphs */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--cream); }

a { color: inherit; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--prose { max-width: calc(var(--prose) + var(--gutter) * 2); }

/* Grow-underline: the signature link hover */
.u-grow,
.essay-title,
.card-title,
.next-project-title,
.role-org,
.footer-links a,
.nav-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 252, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--cream);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--black); background-size: 100% 1px; }
.nav-links .nav-cta {
  color: var(--cream);
  background: var(--black);
  background-image: none;
  padding: 11px 20px;
  border-radius: 9999px;
  transition: background-color .3s var(--ease);
}
.nav-links .nav-cta:hover { background-color: var(--blue); color: var(--cream); }

/* ==========================================================================
   Buttons, labels, tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 26px;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid var(--black);
  color: var(--black);
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--black); color: var(--cream); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: var(--cream); }
.btn--primary:hover { background: var(--black); border-color: var(--black); color: var(--cream); }
.btn svg { width: 16px; height: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Evidence links */
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--cream);
  background: var(--blue);
  border: 1px solid var(--blue);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.proof:hover { background: var(--black); border-color: var(--black); }
.proof svg { width: 13px; height: 13px; }
.proof--ref { color: var(--black); background: transparent; border-color: var(--line); }
.proof--ref:hover { background: var(--black); color: var(--cream); border-color: var(--black); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 160px 0 0; }
.section-head {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 32px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--black);
}
.section-head .eyebrow { padding-bottom: 10px; }
.section-title {
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.section-title em { font-style: normal; color: var(--ink-3); }
.section-body { margin-left: 25%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 120px 0 0; }
.hero > .eyebrow {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--black);
  border-radius: 9999px;
  color: var(--black);
  margin-bottom: 48px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 111, 237, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 111, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 111, 237, 0); }
}
.hero-name {
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.8;
  letter-spacing: -0.055em;
  margin-left: -0.05em;
  margin-bottom: 56px;
}
.hero-name .devanagari {
  display: block;
  font-family: 'Kohinoor Devanagari', 'Devanagari Sangam MN', 'Noto Sans Devanagari', var(--font);
  font-size: max(0.14em, 1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink-3);
  margin: 28px 0 0 0.06em;
}
.hero-lede {
  font-size: var(--fs-lede);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  max-width: 880px;
  margin-bottom: 48px;
}
.hero-lede strong { color: var(--black); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats — full-bleed black band */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 120px;
  color: var(--cream);
  background: var(--black);
  box-shadow: 0 0 0 100vmax var(--black);
  clip-path: inset(0 -100vmax);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 64px 32px 64px;
  border-left: 1px solid rgba(254, 252, 246, 0.2);
  text-decoration: none;
  transition: background-color .5s var(--ease);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.045em;
}
.stat-value sup { font-size: 0.42em; vertical-align: top; margin-left: 2px; letter-spacing: 0; }
.stat-label { font-size: 0.9rem; line-height: 1.4; color: rgba(254, 252, 246, 0.6); max-width: 260px; }
.stat-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cream);
}
a.stat:hover .stat-value { color: var(--blue); }
a.stat:hover .stat-link { color: var(--blue); }

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline { list-style: none; }
.role {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.role-when {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.role-when .tag { margin-top: 14px; color: var(--blue); border-color: var(--blue); }
.role-title {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.role-org { color: var(--black); text-decoration: none; }
a.role-org { background-size: 100% 1px; }
a.role-org:hover { color: var(--blue); }
.role-summary { color: var(--ink-2); margin-top: 16px; max-width: 720px; font-size: 1.05rem; }
.role-points { list-style: none; margin-top: 20px; display: grid; gap: 0; max-width: 720px; border-top: 1px solid var(--line-soft); }
.role-points li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 0.96rem;
}
.role-points li::before {
  content: '→';
  position: absolute;
  left: 0; top: 12px;
  color: var(--blue);
}

/* ==========================================================================
   Project cards — BCV-style portfolio grid
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 36px;
  background: var(--cream);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.card:hover { background: var(--paper); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 32px; }
.card-arrow {
  width: 48px; height: 48px;
  border-radius: 9999px;
  border: 1px solid var(--black);
  display: grid; place-items: center;
  color: var(--black);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease-out), border-color .5s var(--ease);
}
.card-arrow svg { width: 16px; height: 16px; }
.card:hover .card-arrow { background: var(--blue); border-color: var(--blue); color: var(--cream); transform: rotate(-45deg); }
.card-title {
  align-self: flex-start;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background-size: 0% 2px;
}
.card:hover .card-title { background-size: 100% 2px; }
.card-desc { color: var(--ink-2); font-size: 1rem; max-width: 560px; flex: 1; }
.card-metric {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.card-metric strong {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  white-space: nowrap;
}
.card-metric span { font-size: 0.86rem; color: var(--ink-3); line-height: 1.35; }

/* Feature card — black inverted tile */
.card--feature {
  grid-column: span 2;
  min-height: 520px;
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}
.card--feature:hover { background: #141414; }
.card--feature .tag { color: rgba(254, 252, 246, 0.7); border-color: rgba(254, 252, 246, 0.3); }
.card--feature .card-arrow { border-color: var(--cream); color: var(--cream); }
.card--feature .card-title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 0.9; max-width: 1000px; }
.card--feature .card-desc { color: rgba(254, 252, 246, 0.65); font-size: 1.1rem; max-width: 720px; }
.card--feature .card-metric { border-top-color: rgba(254, 252, 246, 0.2); }
.card--feature .card-metric strong { font-size: 3.4rem; }
.card--feature .card-metric span { color: rgba(254, 252, 246, 0.55); }


/* ==========================================================================
   Experience — grouped by kind of work, each with a takeaway
   ========================================================================== */
.xp-group {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.xp-head { position: sticky; top: 120px; align-self: start; }
.xp-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--black);
}
.xp-num {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 9999px;
  background: var(--blue);
  color: var(--cream);
  font-size: 0.7rem;
}
.xp-take {
  margin-top: 28px;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.xp-why {
  margin-top: 24px;
  max-width: 440px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.xp-roles { list-style: none; border-top: 1px solid var(--black); }
.xp-role { padding: 28px 0 32px; border-bottom: 1px solid var(--line-soft); }
.xp-role:last-child { border-bottom: none; padding-bottom: 0; }
.xp-role-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.xp-org {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.xp-when {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.xp-title {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--blue);
}
.xp-what { margin-top: 14px; max-width: 640px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.xp-path, .xp-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xp-path li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.xp-path li span { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; color: var(--ink-3); }
.xp-path li.is-now { background: var(--black); border-color: var(--black); color: var(--cream); }
.xp-path li.is-now span { color: rgba(254, 252, 246, 0.55); }
.xp-stack li {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: var(--paper);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-2);
}
.xp-also {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  padding: 36px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}
.xp-also .eyebrow { padding-top: 4px; }

@media (max-width: 900px) {
  .xp-group, .xp-also { grid-template-columns: 1fr; gap: 32px; }
  .xp-head { position: static; }
  .xp-also { gap: 12px; }
}
@media (max-width: 680px) {
  .xp-group { padding: 48px 0; }
  .xp-role-top { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Honors
   ========================================================================== */
.honors { list-style: none; }
.honor {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.honor-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.honor-title {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.honor-issuer { color: var(--ink-3); font-weight: 400; }
.honor-desc { color: var(--ink-2); font-size: 1rem; margin-top: 12px; max-width: 720px; }

/* ==========================================================================
   Skills
   ========================================================================== */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.skill-group {
  padding: 32px 32px 40px;
  border-right: 1px solid var(--line);
}
.skill-group:first-child { padding-left: 0; }
.skill-group:last-child { border-right: none; }
.skill-group h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list li {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.92rem;
  color: var(--black);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.skill-list li:hover { background: var(--black); color: var(--cream); border-color: var(--black); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  padding-top: 48px;
}
.about-text p {
  color: var(--ink-2);
  font-size: var(--fs-lede);
  line-height: 1.38;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--black); font-weight: 400; }
.quote {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--black);
  padding: 36px;
  background: var(--paper);
  border-radius: 0;
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-3);
}
.quote cite a { color: var(--blue) !important; text-decoration: none; }
.facts { list-style: none; margin-top: 40px; border-top: 1px solid var(--black); }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts span:first-child {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.facts span:last-child { text-align: right; }

/* ==========================================================================
   Writing list
   ========================================================================== */
.essays { list-style: none; }
.essay a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.essay-title {
  display: inline;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background-size: 0% 2px;
}
.essay a:hover .essay-title { background-size: 100% 2px; }
.essay-desc { color: var(--ink-3); font-size: 1rem; margin-top: 14px; max-width: 680px; }
.essay-meta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.essay a:hover .essay-meta { background: var(--blue); border-color: var(--blue); color: var(--cream); }

/* ==========================================================================
   Contact — full-bleed blue band
   ========================================================================== */
.contact {
  position: relative;
  margin-top: 180px;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  align-items: end;
  color: var(--cream);
  background: var(--blue);
  box-shadow: 0 0 0 100vmax var(--blue);
  clip-path: inset(0 -100vmax);
}
.contact .eyebrow {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--cream);
  border-radius: 9999px;
  color: var(--cream);
}
.contact h2 {
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-top: 40px;
}
.contact h2 em { font-style: normal; color: var(--black); }
.contact p { color: rgba(254, 252, 246, 0.8); margin-top: 32px; max-width: 520px; font-size: 1.1rem; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.contact .btn { border-color: var(--cream); color: var(--cream); justify-content: space-between; }
.contact .btn:hover { background: var(--cream); color: var(--black); }
.contact .btn--primary { background: var(--black); border-color: var(--black); color: var(--cream); }
.contact .btn--primary:hover { background: var(--cream); border-color: var(--cream); color: var(--black); }

/* ==========================================================================
   Footer — black, with oversized wordmark
   ========================================================================== */
.site-footer {
  margin-top: 0;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
}
.footer-mark {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: var(--cream);
  user-select: none;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 56px;
  position: relative;
}
.site-footer .container::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: rgba(254, 252, 246, 0.2);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(254, 252, 246, 0.5);
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; }
.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 2px;
}
.footer-links a:hover { background-size: 100% 1px; color: var(--blue); }

/* Pages without a contact band: give the footer breathing room */
main + .site-footer { margin-top: 160px; }
main:has(> .contact:last-child) + .site-footer { margin-top: 0; }

/* ==========================================================================
   Detail pages (projects)
   ========================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin-top: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.back-link:hover { background: var(--black); color: var(--cream); border-color: var(--black); }

.detail-hero { padding: 72px 0 72px; border-bottom: 1px solid var(--black); }
.detail-hero .eyebrow { margin-bottom: 32px; display: flex; }
.detail-title {
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 0.84;
  letter-spacing: -0.055em;
  max-width: 1200px;
  margin-left: -0.04em;
}
.detail-lede {
  font-size: var(--fs-lede);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  max-width: 820px;
  margin-top: 40px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 96px;
  padding-top: 72px;
  align-items: start;
}
.detail-main section + section { margin-top: 72px; }
.detail-main h2 {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.detail-main h2 .num {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  margin-bottom: 18px;
  border: 1px solid var(--blue);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blue);
  vertical-align: middle;
}
.detail-main h2 .num { display: flex; width: fit-content; }
.detail-main p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; margin-bottom: 18px; }
.detail-main p:last-child { margin-bottom: 0; }
.detail-main strong { color: var(--black); font-weight: 500; }
.detail-main a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.detail-main ul { list-style: none; display: grid; gap: 0; margin-bottom: 18px; border-top: 1px solid var(--line-soft); }
.detail-main ul li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 1.04rem;
}
.detail-main ul li::before { content: '→'; position: absolute; left: 0; top: 14px; color: var(--blue); }
.pull-quote {
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--black);
  padding: 36px;
  margin: 32px 0;
  background: var(--paper);
}

/* Glance sidebar */
.glance {
  position: sticky;
  top: 112px;
  padding: 32px;
  background: var(--black);
  color: var(--cream);
}
.glance h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(254, 252, 246, 0.5);
  margin-bottom: 28px;
}
.glance dl { display: grid; gap: 0; }
.glance dl > div, .glance dt { border-top: 1px solid rgba(254, 252, 246, 0.15); }
.glance dl > div dt { border-top: none; }
.glance dt {
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(254, 252, 246, 0.5);
}
.glance dd { font-size: 1rem; margin-top: 4px; padding-bottom: 14px; line-height: 1.4; }
.glance .proof-row { margin-top: 20px; flex-direction: column; align-items: stretch; }
.glance .proof { justify-content: flex-start; }
.glance .proof--ref { color: var(--cream); border-color: rgba(254, 252, 246, 0.3); }
.glance .proof--ref:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.glance .proof:not(.proof--ref):hover { background: var(--cream); color: var(--black); border-color: var(--cream); }

/* Key metrics row */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 12px 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--line);
}
.metric { padding: 28px 24px 28px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric strong {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--blue);
}
.metric span { display: block; margin-top: 12px; font-size: 0.86rem; line-height: 1.35; color: var(--ink-3); }

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 120px;
  padding: 48px 0;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.next-project .eyebrow { display: flex; margin-bottom: 16px; }
.next-project-title {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background-size: 0% 2px;
}
.next-project:hover .next-project-title { background-size: 100% 2px; }
.next-project .card-arrow { width: 72px; height: 72px; }
.next-project .card-arrow svg { width: 22px; height: 22px; }
.next-project:hover .card-arrow { background: var(--blue); border-color: var(--blue); color: var(--cream); transform: rotate(-45deg); }

/* ==========================================================================
   Articles (writing)
   ========================================================================== */
.article-header { padding: 72px 0 56px; border-bottom: 1px solid var(--black); margin-bottom: 56px; }
.article-header .eyebrow { display: flex; margin-bottom: 28px; }
.article-title {
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-2);
}
.article-prose p {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.article-prose > p:first-child {
  font-size: var(--fs-h4);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--black);
}
.article-prose strong { color: var(--black); font-weight: 500; }
.article-prose em { color: var(--black); }
.article-prose a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }

.writing-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--black); margin-bottom: 0; }
.writing-hero .eyebrow { display: flex; }
.writing-hero h1 {
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.8;
  letter-spacing: -0.06em;
  margin: 32px 0 0 -0.05em;
}
.writing-hero p { color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.3; letter-spacing: -0.02em; margin-top: 40px; max-width: 700px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .detail-layout { grid-template-columns: 1fr 300px; gap: 56px; }
}
@media (max-width: 900px) {
  .section { padding-top: 120px; }
  .section-head, .role, .honor { grid-template-columns: 1fr; gap: 14px; }
  .section-body { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 40px 24px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(254, 252, 246, 0.2); }
  .skills { grid-template-columns: 1fr; }
  .skill-group { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .about-grid, .contact { grid-template-columns: 1fr; gap: 48px; }
  .contact { padding: 88px 0; }
  .detail-layout { grid-template-columns: 1fr; gap: 48px; }
  .glance { position: static; order: -1; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .site-nav .container { height: 68px; }
  .nav-links { gap: 18px; }
  .nav-links li.hide-sm { display: none; }
  .nav-links .nav-cta { padding: 9px 16px; }
  .hero { padding-top: 72px; }
  .hero-name { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card--feature { grid-column: auto; min-height: 0; padding: 28px 22px; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
  .essay a { grid-template-columns: 1fr; gap: 16px; }
  .essay-meta { justify-self: start; }
  .stat-value { font-size: 2.2rem; }
  .quote, .pull-quote { padding: 24px; }
  .footer-mark { padding-top: 72px; }
}

/* ==========================================================================
   Intro loader — homepage, first visit per session.
   Black curtain counts up while the narrative cycles (Analysis → Execution →
   Rigor), the name rises into the exact spot of the hero name, then the
   curtain wipes upward with a trailing blue band, inverting the name.
   ========================================================================== */
.loader { display: none; }
.is-loading .loader {
  display: block;
  position: fixed; inset: 0;
  z-index: 200;
  cursor: pointer;
}
.is-loading body { overflow: hidden; }
.loader-blue, .loader-black { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.loader-blue  { background: var(--blue); }
.loader-black { background: var(--black); color: var(--cream); }

.loader-chrome, .loader-foot {
  position: absolute; left: 0; right: 0;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.loader-chrome {
  top: 30px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(254, 252, 246, 0.62);
}
.loader-foot { bottom: 34px; }
.loader-hint {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(254, 252, 246, 0.62);
  padding-bottom: 0.9em;
}
.loader-count {
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.8; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.loader-count sup { font-size: 0.28em; letter-spacing: 0; vertical-align: top; margin-left: 0.1em; color: var(--blue); }

.loader-words {
  position: absolute; left: 0; right: 0; top: 50%;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  transform: translateY(-62%);
  font-size: clamp(3.4rem, 12vw, 11.5rem);
  line-height: 0.86; letter-spacing: -0.055em;
  clip-path: inset(-0.1em -1em -0.3em -1em);
}
.loader-word { display: inline-block; will-change: transform; }

.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(254, 252, 246, 0.12); }
.loader-bar span {
  display: block; height: 100%;
  background: var(--blue);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Name clone placed over the hero name's exact box */
.loader-name { position: fixed; margin: 0 !important; color: var(--cream); pointer-events: none; }
.loader-name .devanagari { color: rgba(254, 252, 246, 0.45); opacity: 0; }

/* Word masks, applied to both the hero name and its clone so they match */
.nm { display: inline-block; clip-path: inset(-0.5em -0.5em -0.26em -0.5em); }
.nm-i { display: inline-block; }
.loader-name .nm-i { transform: translateY(140%); }

/* Hero content holds until the curtain lifts (name excluded: it sits under the clone) */
.hero-held .hero .reveal:not(.hero-name) { opacity: 0; transform: translateY(32px); }

@media (prefers-reduced-motion: reduce) {
  .loader-word { will-change: auto; }
}
@media (max-width: 680px) {
  .loader-chrome .hide-sm { display: none; }
  .loader-chrome { top: 24px; }
  .loader-foot { bottom: 26px; }
}

/* Non-link cards in Other Involvements */
.card--static { cursor: default; }
.card--static:hover { background: var(--cream); }
.card--static:hover .card-title { background-size: 0 2px; }
/* Compact awards list */
.honors--compact .honor { padding: 24px 0; align-items: baseline; }
.honors--compact .honor-year { padding-top: 0; }

/* ==========================================================================
   Interaction states
   Default · hover · pressed · keyboard focus · success, on every control.
   Hover stays subtle, presses give a 0.98 squeeze, focus is a 3px ring
   with offset, and state changes run in 150–200ms.
   ========================================================================== */
.btn, .proof, .nav-links .nav-cta {
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn--primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.proof:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn:active, .proof:active, .nav-links .nav-cta:active { transform: scale(0.98); }
.btn--primary:active, .proof:not(.proof--ref):active { background: #00489F; border-color: #00489F; }

/* Keyboard focus: always visible, never on mouse click */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible, .proof:focus-visible, .nav-cta:focus-visible { outline-offset: 3px; border-radius: 9999px; }
.card:focus-visible, .stat:focus-visible, .essay a:focus-visible { outline-offset: -3px; }
.contact :focus-visible, .stop-card--contact :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }
main:focus { outline: none; }

/* Success state for copy buttons */
.btn--copy { cursor: pointer; }
.btn--copy.is-done { background: var(--black); border-color: var(--black); color: var(--cream); }
.contact .btn--copy.is-done, .stop-card--contact .btn--copy.is-done { background: var(--cream); border-color: var(--cream); color: var(--black); }

/* Where am I: the nav marks the section on screen */
.nav-links a[aria-current="true"]:not(.nav-cta) { color: var(--black); background-size: 100% 1px; }
.nav-links .nav-cta[aria-current="true"] { background-color: var(--blue); }

/* Skip link for keyboard and screen-reader users */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-color: var(--blue); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Touch: 44px minimum targets, no hover to lean on */
@media (pointer: coarse) {
  .proof { height: 44px; padding: 0 16px 0 14px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-links .nav-cta { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active, .proof:active, .nav-links .nav-cta:active { transform: none; }
}
