/* ==========================================================================
   Aanya Narula Sharma — portfolio
   Type: Helvetica Neue throughout. Palette borrows from an epinephrine
   auto-injector: orange tip, blue cap, on clinical off-white and navy.
   ========================================================================== */

:root {
  --bg: #f3f3f1;
  --paper: #ffffff;
  --ink: #10162b;
  --text: #3a3f50;
  --muted: #5f6577;      /* small text, passes 4.5:1 on --bg */
  --tone: #7c8194;       /* second tone of large headlines only (3.4:1) */
  --rule: #dedfdb;
  --accent: #f2541b;
  --accent-tint: #fdebe3;
  --blue: #7d93ff;
  --blue-tint: #e8ecff;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.625rem;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 144px);
  --header: 72px;
  --subnav: 58px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
html:has(.subnav) { scroll-padding-top: calc(var(--header) + var(--subnav) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: var(--fs-sm);
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  background: url("../img/grain.png") repeat;
  background-size: 180px 180px;
  opacity: 0.07;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain 1.2s steps(5) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.display, .title, .h2, .h3, .statement {
  color: var(--ink); font-weight: 500; text-wrap: balance;
}
.display { font-size: clamp(3rem, 7.2vw, 6.5rem); line-height: 0.95; letter-spacing: -0.055em; }
.title { font-size: clamp(4.5rem, 15vw, 13rem); line-height: 0.84; letter-spacing: -0.065em; margin-left: -0.05em; }
.h2 { font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.06; letter-spacing: -0.035em; }
.statement { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; letter-spacing: -0.03em; }
.display .tone, .title .tone, .h2 .tone, .h3 .tone, .statement .tone { color: var(--tone); }
.h4 { font-size: var(--fs-md); font-weight: 500; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }

.lede { font-size: var(--fs-md); line-height: 1.5; color: var(--text); max-width: 38em; letter-spacing: -0.005em; }
.body { max-width: 40em; }
.body p + p { margin-top: 1em; }
.small { font-size: var(--fs-sm); color: var(--muted); }
.meta { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }

.ast {
  display: inline-block; width: 0.78em; height: 0.78em; flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M3.34 7l17.32 10'/%3E%3Cpath d='M3.34 17L20.66 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M3.34 7l17.32 10'/%3E%3Cpath d='M3.34 17L20.66 7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(231, 231, 227, 0.85);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: 1.2;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px; background: #e9e9e5; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: 1.25;
}
.chip strong { font-weight: 700; margin-right: 0.35em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: var(--fs-base); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222b49; }
.btn-light { background: rgba(255,255,255,.8); color: var(--ink); border: 1px solid var(--rule); }
.btn-light:hover { background: #fff; border-color: #c9cac5; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-tint); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); }

.link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2.5px; }
.ext::after { content: "\2197"; display: inline-block; margin-left: 0.25em; font-weight: 400; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 243, 241, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
          backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 1.0625rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand .ast { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.brand:hover .ast { transform: rotate(60deg); }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(222,223,219,.8); }
.nav-links a {
  display: block; text-decoration: none; color: var(--text); font-size: var(--fs-sm);
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.9); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(255,255,255,.75);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }

.nav-links .nav-mobile-contact { display: none; }
.nav-links .hint { display: none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-cta .btn { display: none; }
  .site-header.is-open { background: var(--bg); }
  .site-header.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--header) 0 0 0; padding: 16px var(--gutter) 40px;
    background: var(--bg); border: 0; border-radius: 0; overflow-y: auto;
  }
  .site-header.is-open .nav-links a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--rule);
    font-size: 2.125rem; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); background: none;
  }
  .site-header.is-open .nav-links a[aria-current="page"] { color: var(--accent); }
  .site-header.is-open .nav-links .hint { display: inline; font-size: var(--fs-sm); letter-spacing: 0; color: var(--muted); font-weight: 400; text-align: right; }
  .site-header.is-open .nav-links .nav-mobile-contact {
    display: inline-flex; justify-content: center; align-items: center; margin-top: 28px; padding: 0 24px; border: 0;
    font-size: var(--fs-base); letter-spacing: 0; color: #fff; background: var(--ink); border-radius: 999px; min-height: 52px;
  }
}

/* ---------- shader canvases ---------- */
.shader-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; margin-top: calc(var(--header) * -1); padding: calc(var(--header) + clamp(48px, 8vw, 112px)) 0 clamp(64px, 8vw, 112px); }
.hero .shader-wrap {
  background:
    radial-gradient(42% 46% at 55% 0%, rgba(255, 106, 43, 0.55), rgba(255, 106, 43, 0) 72%),
    radial-gradient(34% 52% at 100% 30%, rgba(143, 162, 255, 0.5), rgba(143, 162, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.hero-copy { grid-column: 1 / span 8; padding-bottom: 8px; }
.hero-copy .tag { margin-bottom: 28px; background: rgba(255,255,255,.7); }
.hero-copy .display { margin-bottom: 32px; }
.hero-copy .lede { margin-bottom: 36px; }
.hero-portrait { grid-column: 9 / span 4; }
.hero-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.hero-portrait figcaption { margin-top: 10px; }
@media (max-width: 960px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-portrait { grid-column: 1 / -1; margin-top: 48px; max-width: 320px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise .9s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .18s; }
  .hero .reveal:nth-child(4) { animation-delay: .28s; }
  .hero-portrait.reveal { animation-delay: .22s; }
  .shader-wrap { animation: fade-in 1.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- marquee ---------- */
.reach { padding: 8px 0 clamp(56px, 7vw, 96px); }
.reach-caption { text-align: center; margin-bottom: 22px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; align-items: center; flex: none; }
.marquee-list li {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; letter-spacing: -0.03em;
  color: #9a9eac; white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c4c7d0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee-list[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-flush { padding-top: 0; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.split-aside { grid-column: 1 / span 3; }
.split-main { grid-column: 4 / span 9; }
.split-main > .h2, .split-main > .h3 { margin-bottom: 28px; }
@media (max-width: 960px) { .split-aside, .split-main { grid-column: 1 / -1; } }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .tag { grid-column: 1 / span 3; align-self: start; justify-self: start; margin-top: 10px; }
.section-head .h2 { grid-column: 4 / span 9; }
.section-head .lede { grid-column: 4 / span 7; }
@media (max-width: 960px) { .section-head .tag, .section-head .h2, .section-head .lede { grid-column: 1 / -1; } }

/* ---------- page hero (interior) ---------- */
.page-hero { position: relative; isolation: isolate; margin-top: calc(var(--header) * -1); padding: calc(var(--header) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.page-hero .shader-wrap {
  background:
    radial-gradient(40% 70% at 100% 0%, rgba(255, 106, 43, 0.35), rgba(255, 106, 43, 0) 70%),
    radial-gradient(40% 70% at 100% 60%, rgba(143, 162, 255, 0.35), rgba(143, 162, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: clamp(24px, 4vw, 48px); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.page-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; margin-top: clamp(32px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(16, 22, 43, 0.14); }
.page-intro .statement { grid-column: 1 / span 7; }
.page-intro .lede { grid-column: 9 / span 4; font-size: var(--fs-base); }
@media (max-width: 960px) { .page-intro .statement, .page-intro .lede { grid-column: 1 / -1; } }

/* sticky "on this page" bar */
.subnav {
  position: sticky; top: var(--header); z-index: 55;
  background: rgba(243, 243, 241, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
          backdrop-filter: saturate(1.4) blur(16px);
  border-block: 1px solid var(--rule);
}
.subnav .wrap { display: flex; align-items: center; gap: 16px; height: var(--subnav); }
.subnav-label { flex: none; font-size: var(--fs-sm); color: var(--muted); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-size: var(--fs-sm); color: var(--text);
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subnav a:hover { border-color: var(--rule); background: #fff; color: var(--ink); }
.subnav a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
  .subnav-label { display: none; }
  .subnav .wrap { padding-inline: 0; }
  .subnav ul { padding-inline: var(--gutter); }
}

/* ---------- home: explore index ---------- */
.index { border-top: 1px solid var(--ink); }
.index-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.index-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--accent-tint) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.index-row:hover::before, .index-row:focus-visible::before { opacity: 1; }
.index-title { grid-column: 1 / span 4; font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; transition: transform .35s var(--ease); }
.index-row:hover .index-title { transform: translateX(10px); }
.index-desc { grid-column: 5 / span 4; font-size: var(--fs-base); color: var(--text); }
.index-meta { grid-column: 9 / span 2; font-size: var(--fs-sm); color: var(--muted); }
.index-thumb { grid-column: 11 / span 1; width: 100%; aspect-ratio: 1; border-radius: var(--radius); }
.index-arrow {
  grid-column: 12 / span 1; justify-self: end;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); background: rgba(255,255,255,.6);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .35s var(--ease);
}
.index-arrow svg { width: 20px; height: 20px; }
.index-row:hover .index-arrow { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .index-row { grid-template-columns: minmax(0, 1fr) 76px; column-gap: 16px; row-gap: 6px; padding: 20px 0; }
  .index-title { grid-column: 1; grid-row: 1; }
  .index-desc { grid-column: 1; grid-row: 2; font-size: var(--fs-sm); }
  .index-meta { grid-column: 1; grid-row: 3; }
  .index-thumb { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .index-arrow { display: none; }
}
/* floating preview that follows the pointer */
.fit.index-preview {
  position: fixed; left: 0; top: 0; z-index: 70; width: 240px; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(16, 22, 43, .35);
}
.fit.index-preview.is-on { opacity: 1; }

/* ---------- home: proof list + facts label ---------- */
.glance { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.glance-main { grid-column: 1 / span 7; }
.glance-main .h2 { margin-bottom: 28px; }
.glance-main .lede { margin-bottom: 48px; }
.glance-label { grid-column: 9 / span 4; position: sticky; top: calc(var(--header) + 32px); }
@media (max-width: 960px) {
  .glance-main, .glance-label { grid-column: 1 / -1; position: static; }
  .glance-label { max-width: 420px; }
}
.proof { border-top: 1px solid var(--rule); }
.proof > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.proof dt { font-weight: 500; color: var(--ink); }
.proof dd { color: var(--text); }
.proof dd a { display: inline-block; margin-top: 6px; }
@media (max-width: 560px) { .proof > div { grid-template-columns: 1fr; gap: 4px; } }

/* a facts panel set like a food label (those are set in Helvetica too) */
.facts { background: var(--paper); border: 2px solid var(--ink); padding: 10px 14px 14px; color: var(--ink); font-variant-numeric: tabular-nums; position: relative; }
.facts-title { font-size: clamp(2.25rem, 3.4vw, 2.875rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; padding-bottom: 4px; }
.facts-serving { font-size: var(--fs-sm); padding-bottom: 6px; border-bottom: 10px solid var(--ink); }
.facts-sub { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; padding: 4px 0; border-bottom: 4px solid var(--ink); }
.facts-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--ink); font-size: var(--fs-sm); line-height: 1.35; }
.facts-row b { font-weight: 700; }
.facts-row span:last-child { font-weight: 700; white-space: nowrap; }
.facts-row.indent { padding-left: 16px; }
.facts-row.end { border-bottom: 10px solid var(--ink); }
.facts-contains { font-size: var(--fs-sm); padding-top: 8px; line-height: 1.4; }
.facts-contains b { font-weight: 700; }
.facts-note { font-size: var(--fs-xs); color: var(--muted); padding-top: 8px; line-height: 1.4; }

/* ---------- press ---------- */
.press {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
  padding: clamp(32px, 5vw, 64px); background: var(--paper); border-radius: var(--radius-xl);
}
.press::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -45%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 43, .3), rgba(143, 162, 255, .2) 55%, transparent 75%);
}
.press .tag { grid-column: 1 / span 3; align-self: start; justify-self: start; }
.press-body { grid-column: 4 / span 9; }
.press-outlet { font-size: var(--fs-md); color: var(--ink); margin-bottom: 18px; font-weight: 700; letter-spacing: -0.02em; }
.press-headline { font-weight: 500; color: var(--ink); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 22ch; margin-bottom: 24px; text-wrap: balance; }
.press-body .meta { margin-bottom: 28px; }
@media (max-width: 960px) { .press .tag, .press-body { grid-column: 1 / -1; } }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quotes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quotes.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px; background: var(--paper); border-radius: var(--radius-lg); }
.quote blockquote p { font-size: 1.375rem; font-weight: 300; line-height: 1.35; color: var(--ink); letter-spacing: -0.02em; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .quotes, .quotes.two { grid-template-columns: 1fr; } }

.pull { margin-top: 32px; padding-left: 24px; border-left: 2px solid var(--accent); }
.pull p { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.35; color: var(--ink); letter-spacing: -0.02em; }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.pull figcaption b { color: var(--ink); font-weight: 500; }

/* ---------- next page ---------- */
.next {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.next .small { margin-bottom: 10px; }
.next .h2 { transition: color .25s var(--ease), transform .35s var(--ease); }
.next:hover .h2 { color: var(--accent); transform: translateX(8px); }
.next .circle {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); background: var(--paper); flex: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.next:hover .circle { background: var(--ink); border-color: var(--ink); color: #fff; }
.next .circle svg { width: 24px; height: 24px; }

/* ---------- footer ---------- */
.site-footer { padding-top: clamp(24px, 4vw, 48px); }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-xl); color: #fff; min-height: 460px;
  display: flex; align-items: flex-end; background: var(--ink);
}
.cta .shader-wrap {
  background:
    radial-gradient(50% 70% at 95% 100%, rgba(242, 84, 27, .7), transparent 70%),
    radial-gradient(45% 60% at 80% 0%, rgba(77, 99, 224, .65), transparent 70%),
    var(--ink);
}
.cta-inner { position: relative; padding: clamp(28px, 5vw, 64px); width: 100%; }
.cta .tag { background: rgba(255,255,255,.12); color: #fff; margin-bottom: 28px; }
.cta .tag .ast { background: #ff8a5c; }
.cta-title { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.cta-title .tone { color: rgba(255,255,255,.62); }
.cta-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 56px); }
.cta-email { font-size: clamp(1.25rem, 2.4vw, 1.875rem); color: #fff; text-decoration: none; letter-spacing: -0.03em; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px; }
.cta-email:hover { border-color: #fff; }

.footer-mid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.footer-nav { grid-column: span 2; }
.footer-nav h2 { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-bottom: 14px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { text-decoration: none; color: var(--ink); }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.wordmark {
  grid-column: 5 / span 8; justify-self: end; align-self: end;
  display: flex; align-items: flex-start; gap: 0.06em;
  font-size: clamp(4.5rem, 15vw, 12rem); font-weight: 500; color: var(--tone);
  letter-spacing: -0.05em; line-height: 0.82; white-space: nowrap; padding-bottom: 0.06em;
}
.wordmark .ast { width: 0.24em; height: 0.24em; margin-top: 0.04em; margin-left: 0.02em; }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); background: var(--ink); color: #c9ccd8; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .footer-nav { grid-column: span 6; }
  .wordmark { grid-column: 1 / -1; justify-self: start; font-size: clamp(3.75rem, 21vw, 7rem); }
  .cta { min-height: 0; }
}

/* back to top: appears only when scrolling back up */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 65;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(16,22,43,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Images: framed photos are never cropped. Each sits whole on a blurred
   copy of itself, and opens full size on click.
   ========================================================================== */
.fit { position: relative; overflow: hidden; isolation: isolate; background: #e4e4e0; }
.fit::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: var(--img, none) center / cover no-repeat;
  filter: blur(24px) saturate(1.2); opacity: .85; transform: scale(1.1);
}
.fit > img { width: 100%; height: 100%; object-fit: contain; }
.zoomable { cursor: zoom-in; }

.slides { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #e4e4e0; aspect-ratio: 4 / 3; touch-action: pan-y; }
.slides.tall { aspect-ratio: 4 / 5; }
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.slides .slide.is-active { opacity: 1; }
.slides-ui {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.slides-count { padding: 6px 10px; border-radius: 999px; background: rgba(16,22,43,.72); color: #fff; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.slides-btns { display: flex; gap: 6px; pointer-events: auto; }
.slides-btns button {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.slides-btns button:hover { background: var(--ink); color: #fff; }
.slides-btns svg { width: 18px; height: 18px; }
.expand-hint {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: var(--fs-xs); font-weight: 500;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none;
}
.expand-hint svg { width: 12px; height: 12px; }
.slides:hover .expand-hint, .zoomable:hover .expand-hint, .slides:focus-within .expand-hint { opacity: 1; transform: none; }
@media (hover: none) { .expand-hint { opacity: 1; transform: none; } }

.masonry { columns: 2; column-gap: 10px; }
.masonry img { width: 100%; margin-bottom: 10px; border-radius: var(--radius); break-inside: avoid; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(16, 22, 43, 0.92); }
.lightbox-stage { position: absolute; inset: 64px 76px 76px; display: grid; place-items: center; }
.lightbox-stage img { max-width: calc(100vw - 152px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox-cap { position: absolute; left: 76px; right: 76px; bottom: 22px; color: #e5e7ef; text-align: center; font-size: var(--fs-sm); }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; transition: background-color .2s var(--ease);
}
.lightbox-btn:hover { background: rgba(255,255,255,.28); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox-count { position: absolute; top: 24px; left: 20px; color: #c9ccd8; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next, .lightbox.single .lightbox-count { display: none; }
@media (max-width: 600px) {
  .lightbox-stage { inset: 64px 12px 112px; }
  .lightbox-stage img { max-width: calc(100vw - 24px); max-height: calc(100vh - 186px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; margin: 0; }
  .lightbox-cap { left: 76px; right: 76px; bottom: 26px; }
}

/* ==========================================================================
   Interior components
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.about-photo { grid-column: 1 / span 4; position: sticky; top: calc(var(--header) + var(--subnav) + 32px); }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.about-photo figcaption { margin-top: 10px; }
.about-story { grid-column: 6 / span 7; }
.about-story .body { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); letter-spacing: -0.005em; }
.about-story .body p + p { margin-top: 1.1em; }
@media (max-width: 960px) {
  .about-photo { grid-column: 1 / -1; position: static; max-width: 360px; }
  .about-story { grid-column: 1 / -1; }
}
.facts-list { margin-top: 56px; border-top: 1px solid var(--rule); }
.facts-list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts-list dt { color: var(--muted); font-size: var(--fs-sm); padding-top: 2px; }
.facts-list dd { color: var(--ink); }
@media (max-width: 560px) { .facts-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* process: a real sequence, so numbered and staggered */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.step {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 72px;
  min-height: 380px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--ink); color: #c6cad8;
}
.step::before {
  content: ""; position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; right: -60%; top: -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 84, 27, .55), rgba(242, 84, 27, 0));
  transition: transform .8s var(--ease);
}
.step::after {
  content: ""; position: absolute; z-index: -1; width: 110%; aspect-ratio: 1; left: -55%; bottom: -65%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 147, 255, .45), rgba(125, 147, 255, 0));
}
.step:hover::before { transform: translate(-12%, 12%); }
.step:nth-child(even) { margin-top: 96px; }
.step .num { font-size: var(--fs-sm); color: #aab8ff; font-variant-numeric: tabular-nums; font-weight: 500; margin-bottom: 8px; }
.step h3 { margin-top: 14px; color: #fff; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.step p { font-size: var(--fs-sm); line-height: 1.5; }
.step .ast { width: 26px; height: 26px; background: #ff8a5c; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(even) { margin-top: 48px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .step { min-height: 0; gap: 40px; } .step:nth-child(even) { margin-top: 0; } }

.bio-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.bio-card + .bio-card { margin-top: 16px; }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bio-card .body { color: var(--text); }
.copy-btn[data-copied="true"] { background: var(--accent-tint); border-color: var(--accent-tint); }
details.bio-card summary { list-style: none; cursor: pointer; }
details.bio-card summary::-webkit-details-marker { display: none; }
details.bio-card summary .h4::after { content: "+"; margin-left: 10px; color: var(--accent); }
details.bio-card[open] summary .h4::after { content: "\2212"; }
details.bio-card:not([open]) .bio-head { margin-bottom: 0; }

.interests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); }
.interests > div { padding-top: 24px; }
.interests .h4 { margin-bottom: 8px; }
.interests p { font-size: var(--fs-sm); color: var(--text); }
@media (max-width: 900px) { .interests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .interests { grid-template-columns: 1fr; } }

/* advocacy fronts */
.front { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--rule); }
.subnav + .front { border-top: 0; }
.front-aside { grid-column: 1 / span 3; }
.front-aside .tag { margin-bottom: 18px; }
.front-aside .scope { font-size: var(--fs-sm); color: var(--muted); }
.front-main { grid-column: 4 / span 9; }
.front-main .h3 { margin-bottom: 24px; max-width: 20ch; }
.front-main .body + * { margin-top: 40px; }
@media (min-width: 961px) { .front-aside { position: sticky; top: calc(var(--header) + var(--subnav) + 32px); align-self: start; } }
@media (max-width: 960px) { .front-aside, .front-main { grid-column: 1 / -1; } }
.meter { display: flex; gap: 4px; margin-top: 16px; }
.meter i { width: 22px; height: 4px; border-radius: 2px; background: #d6d7d2; }
.meter i.on { background: linear-gradient(90deg, var(--accent), #ff8a5c); }

.outcome { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding: 20px 22px; background: var(--paper); border-radius: var(--radius); border-left: 3px solid var(--accent); }
.outcome dt { font-weight: 500; color: var(--ink); }
.outcome dd { color: var(--ink); }
@media (max-width: 560px) { .outcome { grid-template-columns: 1fr; gap: 4px; } }

.meetings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.meeting { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); padding: 10px; }
.meeting .fit, .meeting .note { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.meeting .note {
  display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--blue-tint), #f7efe9 70%);
}
.meeting .note::before { content: ""; position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,106,43,.35), transparent); }
.meeting .note p { font-size: 1.25rem; font-weight: 300; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.meeting .info { padding: 16px 10px 10px; }
.meeting .info .h4 { font-size: var(--fs-base); }
.meeting .info p { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.meeting .mode { display: inline-block; margin-top: 12px; }
@media (max-width: 900px) {
  .meetings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting:has(.note) { grid-column: 1 / -1; }
  .meeting .note { aspect-ratio: auto; min-height: 160px; }
}
@media (max-width: 560px) { .meetings { grid-template-columns: 1fr; } }

.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ledger th { text-align: left; font-weight: 400; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text); }
.ledger td:first-child { color: var(--ink); font-weight: 500; font-size: var(--fs-base); white-space: nowrap; }
.ledger .status { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.ledger .status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); transform: translateY(-1px); }
.ledger .status.replied::before { background: var(--accent); }
@media (max-width: 720px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { padding: 2px 0; border: 0; }
}

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .three-col { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; }
.panel .h4 { margin-bottom: 8px; }
.panel p { font-size: var(--fs-sm); color: var(--text); }
.panel .meta { margin-bottom: 16px; }
.panel .chips { margin-top: 20px; }
.stack > * + * { margin-top: 20px; }

/* leadership rows */
.role { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.role:first-child { border-top: 0; }
.role-kind { grid-column: 1 / span 3; display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 500; }
.role-kind .ast { margin-top: 0.36em; }
.role-body { grid-column: 4 / span 4; }
.role-body .h3 { margin-bottom: 6px; }
.role-body .org { color: var(--muted); margin-bottom: 20px; }
.role-body p.desc { margin-bottom: 24px; }
.role-media { grid-column: 8 / span 5; }
.role.no-media .role-body { grid-column: 4 / span 6; }
@media (max-width: 960px) { .role-kind, .role-body, .role-media, .role.no-media .role-body { grid-column: 1 / -1; } }

/* research */
.study { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; padding-block: 36px; border-top: 1px solid var(--rule); }
.study:last-child { border-bottom: 1px solid var(--rule); }
.study-when { grid-column: 1 / span 3; color: var(--muted); font-size: var(--fs-sm); padding-top: 8px; }
.study-body { grid-column: 4 / span 6; }
.study-body .h4 { font-size: var(--fs-lg); letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 4px; }
.study-body .org { color: var(--muted); margin-bottom: 14px; }
.study-status { grid-column: 10 / span 3; justify-self: end; }
@media (max-width: 960px) { .study-when, .study-body, .study-status { grid-column: 1 / -1; justify-self: start; } }

.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.program { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-xl); padding: 12px; }
.program > .fit { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.program-info { padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-info .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.program-info .h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.program-info .role-line { color: var(--ink); font-weight: 500; }
.program-info p { font-size: var(--fs-sm); color: var(--text); }
.program-info .chips { margin-top: auto; padding-top: 10px; }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }

/* honors */
.honors-group { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule); }
.subnav + .honors-group { border-top: 0; }
.honor-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.honor-list > li:first-child { border-top: 1px solid var(--ink); }
.honor-list .what { color: var(--ink); font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.02em; line-height: 1.35; }
.honor-list .what small { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.honor-list .when { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cert { background: var(--paper); border-radius: var(--radius); padding: 18px; }
.cert b { display: block; color: var(--ink); font-weight: 500; }
.cert span { font-size: var(--fs-sm); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { background: var(--paper); border-radius: var(--radius-lg); padding: 10px; }
.gallery .fit { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.gallery figcaption { padding: 12px 6px 4px; font-size: var(--fs-sm); color: var(--ink); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

/* first section under the sticky bar sits closer to it */
.subnav + .section { padding-top: clamp(56px, 7vw, 96px); }

/* ==========================================================================
   Gradient cards. Every card in a grid gets a soft mesh of the two brand
   colours instead of a flat fill; positions rotate so neighbours differ.
   ========================================================================== */
:root {
  --glow-o: rgba(255, 122, 69, 0.26);
  --glow-b: rgba(125, 147, 255, 0.24);
  --glow-p: rgba(255, 196, 168, 0.30);
}
.quote, .panel, .program, .meeting, .cert, .gallery figure, .bio-card, .interests > div, .outcome {
  background:
    radial-gradient(85% 70% at 100% 0%, var(--glow-o), transparent 62%),
    radial-gradient(85% 75% at 0% 100%, var(--glow-b), transparent 62%),
    linear-gradient(165deg, #ffffff 0%, #f8f8f6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1px 0 rgba(16, 22, 43, 0.04);
}
.quote:nth-child(3n+2), .panel:nth-child(even), .program:nth-child(4n+2), .program:nth-child(4n+3),
.cert:nth-child(even), .gallery figure:nth-child(even), .interests > div:nth-child(even), .meeting:nth-child(even) {
  background:
    radial-gradient(85% 70% at 0% 0%, var(--glow-b), transparent 62%),
    radial-gradient(90% 80% at 100% 100%, var(--glow-o), transparent 62%),
    radial-gradient(60% 50% at 60% 40%, var(--glow-p), transparent 70%),
    linear-gradient(165deg, #ffffff 0%, #f8f8f6 100%);
}
.cert:nth-child(3n) {
  background:
    radial-gradient(90% 90% at 50% 0%, var(--glow-p), transparent 65%),
    radial-gradient(70% 70% at 100% 100%, var(--glow-b), transparent 60%),
    linear-gradient(165deg, #ffffff 0%, #f8f8f6 100%);
}

/* one dark card in each row of quotes, for rhythm */
.quotes .quote:nth-child(2) {
  color: #c9ccd8;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(242, 84, 27, 0.85), rgba(242, 84, 27, 0) 58%),
    radial-gradient(100% 90% at 0% 100%, rgba(93, 115, 240, 0.75), rgba(93, 115, 240, 0) 60%),
    radial-gradient(60% 50% at 70% 55%, rgba(255, 176, 138, 0.25), transparent 70%),
    linear-gradient(160deg, #1d2650 0%, #10162b 65%);
  box-shadow: none;
}
.quotes .quote:nth-child(2) blockquote p { color: #fff; }
.quotes .quote:nth-child(2) figcaption { color: rgba(255, 255, 255, 0.7); }
.quotes .quote:nth-child(2) figcaption b { color: #fff; }

/* dark process cards: each carries its own mesh */
.step {
  background:
    radial-gradient(95% 70% at 100% 0%, rgba(255, 106, 43, 1) 0%, rgba(255, 106, 43, 0.35) 38%, rgba(255, 106, 43, 0) 70%),
    radial-gradient(95% 75% at 0% 100%, rgba(110, 130, 255, 0.95) 0%, rgba(110, 130, 255, 0.3) 40%, rgba(110, 130, 255, 0) 72%),
    linear-gradient(165deg, #222c5c 0%, #10162b 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.step:nth-child(2) {
  background:
    radial-gradient(95% 70% at 0% 0%, rgba(110, 130, 255, 1) 0%, rgba(110, 130, 255, 0.35) 40%, rgba(110, 130, 255, 0) 72%),
    radial-gradient(100% 75% at 100% 100%, rgba(255, 106, 43, 1) 0%, rgba(255, 106, 43, 0.35) 38%, rgba(255, 106, 43, 0) 70%),
    linear-gradient(200deg, #222c5c 0%, #10162b 75%);
}
.step:nth-child(3) {
  background:
    radial-gradient(110% 65% at 50% 0%, rgba(255, 122, 69, 1) 0%, rgba(255, 122, 69, 0.35) 40%, rgba(255, 122, 69, 0) 72%),
    radial-gradient(90% 70% at 100% 100%, rgba(150, 120, 255, 0.9) 0%, rgba(150, 120, 255, 0) 70%),
    radial-gradient(80% 60% at 0% 80%, rgba(110, 130, 255, 0.6) 0%, rgba(110, 130, 255, 0) 70%),
    linear-gradient(170deg, #222c5c 0%, #10162b 75%);
}
.step:nth-child(4) {
  background:
    radial-gradient(95% 70% at 100% 0%, rgba(110, 130, 255, 1) 0%, rgba(110, 130, 255, 0.35) 40%, rgba(110, 130, 255, 0) 72%),
    radial-gradient(120% 75% at 20% 100%, rgba(255, 106, 43, 1) 0%, rgba(255, 106, 43, 0.35) 38%, rgba(255, 106, 43, 0) 70%),
    linear-gradient(185deg, #222c5c 0%, #10162b 75%);
}
/* a soft light that drifts toward the pointer on hover */
.step::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(60% 45% at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.step:hover::before { opacity: 1; }
.step::after { content: none; }
.step .ast { background: #fff; }
.step .num { color: rgba(255, 255, 255, 0.8); }
.step p { color: rgba(255, 255, 255, 0.9); }

/* interests become a small bento */
.interests { border-top: 0; gap: 16px; }
.interests > div { padding: 24px; border-radius: var(--radius-lg); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }

/* the note card in the meetings row */
.meeting .note {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 122, 69, 0.45), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(125, 147, 255, 0.45), transparent 60%),
    linear-gradient(160deg, #ffffff, #f4f1ef);
}
.meeting .note::before { content: none; }

/* autoplaying slideshows: slow crossfade, incoming photo settles into place */
.slides .slide { transition: opacity 1.2s var(--ease); }
.slides .slide > img { transform: scale(0.965); transition: transform 1.6s var(--ease); }
.slides .slide.is-active > img { transform: scale(1); }
.slides-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, 0.35); }
.slides-bar span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #ff9a6e, var(--blue)); }
.slides.is-paused .slides-bar { opacity: 0.4; }
.slides-ui { bottom: 15px; }
@media (prefers-reduced-motion: reduce) {
  .slides .slide, .slides .slide > img { transition: none; transform: none; }
}

/* logo strip in the home marquee: one-colour silhouettes, true colour on hover */
.marquee-list.logos li { gap: 0; padding-right: clamp(40px, 5vw, 72px); height: 72px; }
.marquee-list.logos li::after { content: none; }
.logo { display: block; width: auto; height: var(--h, 32px); max-width: none; filter: grayscale(1) brightness(0) opacity(0.5); transition: filter .35s var(--ease); }
.logo.keep { filter: grayscale(1) contrast(1.15) opacity(0.6); }
.marquee .logo:hover { filter: none; }
.marquee .logo.white:hover { filter: brightness(0) opacity(0.9); }
@media (max-width: 600px) { .logo { height: calc(var(--h, 32px) * 0.8); } }


/* ==========================================================================
   Phones and touch screens
   ========================================================================== */
.hide-sm { display: inline; }
@media (max-width: 760px) {
  :root { --header: 60px; --subnav: 52px; }
  .lede, .hero-copy .lede { font-size: 1.125rem; }
  .page-intro .lede { font-size: 1rem; }
  .hero { padding-bottom: 56px; }
  .hero-copy .display { margin-bottom: 24px; }
  .hero-copy .lede { margin-bottom: 28px; }
  .hero-portrait { max-width: 100%; }
  .reach { padding-bottom: 48px; }
  .section-head { margin-bottom: 32px; }
  .menu-btn { min-height: 44px; }
  .slides-btns button { width: 44px; height: 44px; }
  .to-top { width: 40px; height: 40px; }
  .press { padding: 28px 22px; }
  .quote { padding: 24px; }
  .cta-inner { padding: 28px 22px; }
  .cta .actions .btn { flex: 1 1 auto; }
  .footer-mid { margin-top: 48px; }
}
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .hero .actions .btn { flex: 0 0 auto; }
}
/* comfortable touch targets without changing the layout */
.brand { padding-block: 9px; }
.footer-nav li + li { margin-top: 0; }
.footer-nav a { display: inline-block; padding: 9px 0; }
.cta-email { display: inline-block; padding-top: 8px; }
@media (pointer: coarse) {
  .link, .crumbs a, .ext { padding-block: 12px; }
  .proof dd a { display: inline; }
  body::after { animation: none; }
}

/* hero thank-you note and the press block right under the logo strip */
.hero-note { margin-top: 28px; font-size: var(--fs-sm); color: var(--muted); max-width: 40em; }
.hero-note a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hero-note a:hover { text-decoration-thickness: 2.5px; }
@media (pointer: coarse) { .hero-note a { padding-block: 12px; } }
.press-section { padding-bottom: clamp(24px, 4vw, 48px); }
@media (prefers-reduced-motion: no-preference) { .hero .reveal:nth-child(5) { animation-delay: .36s; } }
.hero-note .name { color: var(--ink); font-weight: 500; }

/* two press items side by side */
.press-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.press-item { display: flex; flex-direction: column; align-items: flex-start; }
.press-item + .press-item { border-left: 1px solid rgba(16, 22, 43, 0.12); padding-left: clamp(28px, 4vw, 56px); }
.press-item .press-headline { font-size: clamp(1.5rem, 2.4vw, 2.125rem); max-width: 20ch; }
.press-item .meta { margin-bottom: 24px; }
.press-item .btn { margin-top: auto; }
@media (max-width: 960px) {
  .press-body { grid-template-columns: 1fr; }
  .press-item + .press-item { border-left: 0; padding-left: 0; border-top: 1px solid rgba(16, 22, 43, 0.12); padding-top: 28px; }
}

/* hero fits one laptop screen: centred, sized by viewport height as well as width */
@media (min-width: 961px) {
  .hero { padding-top: calc(var(--header) + clamp(24px, 6vh, 80px)); padding-bottom: clamp(40px, 7vh, 96px); }
  .hero-grid { align-items: center; min-height: calc(100svh - var(--header) - clamp(24px, 6vh, 80px) - clamp(40px, 7vh, 96px)); }
  .hero .display { font-size: clamp(3rem, min(6.6vw, 10.5vh), 6.5rem); }
  .hero-copy .tag { margin-bottom: clamp(16px, 3vh, 28px); }
  .hero-copy .display { margin-bottom: clamp(18px, 3.4vh, 32px); }
  .hero-copy .lede { margin-bottom: clamp(20px, 3.6vh, 36px); font-size: clamp(1.0625rem, 2.3vh, 1.25rem); }
  .hero-note { margin-top: clamp(16px, 2.6vh, 28px); }
  .hero-portrait { justify-self: end; width: min(100%, calc((100svh - var(--header) - 170px) * 0.75)); }
}
.meetings.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 560px) { .meetings.two { grid-template-columns: 1fr; } }

/* ==========================================================================
   Phones and touch: refinements
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }

/* notch and home-indicator safe areas (landscape phones, full-screen sheets) */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.footer-bottom .wrap { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.site-header.is-open .nav-links { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* phone home hero: tag, headline, then her photo, so a face is on the first screen */
@media (max-width: 760px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-copy > .tag { order: 1; align-self: flex-start; }
  .hero-copy > .display { order: 2; }
  .hero-portrait { order: 3; align-self: flex-start; width: min(100%, calc(58svh * 0.75)); max-width: none; margin: 0 0 28px; }
  .hero-copy > .lede { order: 4; }
  .hero-copy > .actions { order: 5; }
  .hero-copy > .hero-note { order: 6; }
}

/* header tucks away while reading down and returns on the way up;
   the 2px reading-progress line stays visible at the very top (portrait and landscape phones) */
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .site-header { transition: transform .3s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
  .subnav { transition: transform .3s var(--ease); }
  html.nav-up .site-header:not(.is-open) { transform: translateY(calc(-100% + 2px)); }
  html.nav-up .subnav { transform: translateY(calc(2px - var(--header))); }
  /* sideways pill strip fades at its edges so it reads as scrollable */
  .subnav ul {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
  }
}

/* touch targets of at least 44px */
@media (pointer: coarse) {
  .subnav a { padding: 10px 15px; }
  .crumbs a { display: inline-block; min-width: 44px; }
  .btn-sm { min-height: 44px; }
  details.bio-card summary.bio-head { min-height: 44px; }
  .to-top { width: 44px; height: 44px; }
  .menu-btn { min-height: 44px; }
  .slides-btns button { width: 44px; height: 44px; }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
  /* film grain: same look, a quarter of the layer size (it no longer animates on touch) */
  body::after { inset: 0; }
}

/* no hover states that stick after a tap; quick press feedback instead */
@media (hover: none) {
  .index-row:hover::before { opacity: 0; }
  .index-row:hover .index-title { transform: none; }
  .next:hover .h2 { color: var(--ink); transform: none; }
  .next:hover .circle { background: var(--paper); border-color: var(--rule); color: inherit; }
  .step:hover::before { opacity: 0; }
  .brand:hover .ast { transform: none; }
  .nav-links a:hover, .subnav a:hover { background: none; border-color: transparent; }
  .subnav a[aria-current="true"]:hover { background: var(--ink); color: #fff; }
  .nav-links a[aria-current="page"]:hover { background: var(--ink); color: #fff; }
  .site-header.is-open .nav-links a[aria-current="page"]:hover { background: none; color: var(--accent); }
  .btn:active, .subnav a:active, .slides-btns button:active, .to-top:active, .menu-btn:active, .lightbox-btn:active { transform: scale(0.96); }
  .index-row:active::before { opacity: 1; }
  .next:active .h2 { color: var(--accent); }
}

/* photo viewer: use the visible viewport on phones (browser bars excluded), darker backdrop */
.lightbox::backdrop { background: rgba(16, 22, 43, 0.985); }
@supports (height: 100dvh) {
  .lightbox { height: 100dvh; max-height: 100dvh; }
  .lightbox-stage img { max-height: calc(100dvh - 150px); }
  @media (max-width: 600px) { .lightbox-stage img { max-height: calc(100dvh - 186px); } }
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .lightbox-cap { bottom: calc(26px + env(safe-area-inset-bottom)); }
}
