/* Option I: dark graphite, thin white lines, frosted glass throughout, pulsing pips of color */
:root {
  --bg: #15171c;
  --bg-2: #1b1e24;
  --ink: #f3f2ee;
  --ink-2: rgba(243, 242, 238, .82);
  --muted: rgba(243, 242, 238, .6);
  --hair: rgba(255, 255, 255, .16);
  --hair-2: rgba(255, 255, 255, .28);
  --glass-bg: rgba(255, 255, 255, .06);
  --glass-bg-2: rgba(255, 255, 255, .1);
  --glass-blur: blur(14px) saturate(1.3);
  --tile: #ffffff;
  --blue: #6d8cff;
  --coral: #ff7a5c;
  --mint: #5fd3b0;
  --amber: #ffc46b;
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, .7);
  --error: #ff9a8a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --ease: cubic-bezier(.16, .8, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0; color: var(--ink);
  /* hairline grid the glass softens, over a quiet vignette */
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 88px 100%,
    radial-gradient(ellipse 80% 60% at 50% 0%, #22252c, var(--bg) 70%);
  font: 400 16.5px/1.65 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--hair-2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(109, 140, 255, .35); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .wrap { padding: 0 18px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #111; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }

/* Pips: a few small points of color in the side margins, with a slow, quiet ripple */
.pips { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.pip { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--blue)); opacity: .75; box-shadow: 0 0 6px var(--c, var(--blue)); }
.pip::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--c, var(--blue)); opacity: 0; animation: ripple 7s ease-out infinite; animation-delay: var(--t, 0s); }
@keyframes ripple { 0% { transform: scale(1); opacity: .5; } 60%, 100% { transform: scale(4.5); opacity: 0; } }
/* gutters: content is centered at max 1160px, so keep pips outside it */
.p1 { --c: var(--blue);  left: max(14px, calc(50vw - 640px)); top: 24vh; --t: 0s; }
.p2 { --c: var(--coral); right: max(14px, calc(50vw - 640px)); top: 38vh; --t: -2.4s; }
.p3 { --c: var(--mint);  left: max(22px, calc(50vw - 628px)); top: 70vh; --t: -4.8s; }
.p4 { --c: var(--amber); right: max(22px, calc(50vw - 628px)); top: 84vh; --t: -1.2s; }
.p5 { --c: var(--blue);  right: max(14px, calc(50vw - 640px)); top: 12vh; --t: -3.6s; }
.p6, .p7, .p8, .p9, .p10 { display: none; }
@media (max-width: 900px) { .pips { display: none; } }
main, .site-header { position: relative; z-index: 1; }

/* Frosted glass with a thin white line */
.glass {
  position: relative; isolation: isolate; will-change: transform;
  background: var(--glass-bg); border: 1px solid var(--hair); border-radius: 24px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow);
}
.blip { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); flex: none; }

/* Header */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 30; pointer-events: none; padding: 0 12px; }
.header-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; height: 56px; max-width: 1000px; margin: 0 auto; padding: 0 8px 0 22px;
  background: rgba(21, 23, 28, .55); border: 1px solid var(--hair-2); border-radius: 999px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 34px -24px rgba(0, 0, 0, .7);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.brand-name { font: 400 23px/1 var(--serif); letter-spacing: -0.01em; }
.nav { display: flex; }
.nav a { position: relative; padding: 9px 13px; border-radius: 999px; color: var(--muted); font: 450 14px/1 var(--sans); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 6px var(--coral); }
.nav-cv { margin-left: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #15171c; font: 500 13.5px/1 var(--sans); text-decoration: none; transition: background .2s; }
.nav-cv:hover { background: #fff; }
.menu-btn { display: none; place-items: center; width: 40px; height: 40px; margin-left: 6px; border: 1px solid var(--hair-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 15px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1020px) {
  .site-header { top: 10px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 8px;
    background: rgba(21, 23, 28, .78); border: 1px solid var(--hair-2); border-radius: 24px;
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
    transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .3s var(--ease); }
  .nav a { padding: 15px 16px; font: 400 26px/1 var(--serif); color: var(--ink); }
  .nav a.active::after { left: auto; right: 18px; bottom: 50%; margin: 0 0 -2px; }
}

/* Pills */
.pill {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer;
  height: 50px; padding: 0 22px 0 24px; border-radius: 999px; border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, .04); color: var(--ink); font: 500 14.5px/1 var(--sans); text-decoration: none;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease); will-change: transform;
}
.pill span { display: inline-block; transition: transform .45s var(--ease); }
.pill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.pill:hover span { transform: translateX(4px); }
.pill-solid { background: var(--ink); color: #15171c; border-color: var(--ink); }
.pill-solid:hover { background: #fff; border-color: #fff; }
.pill:disabled { opacity: .6; cursor: progress; }
/* Link capsules */
.text-link {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 16px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .05);
  font: 500 13.5px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background .25s ease, border-color .25s ease;
}
.text-link span { display: inline-block; color: var(--blue); transition: transform .35s var(--ease); }
.text-link:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.text-link:hover span { transform: translate(2px, -2px); }
.text-link[href^="#"]:hover span { transform: translateY(2px); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Hero: the glass card overlaps the photo */
.hero { padding: 128px 0 32px; }
.hero-stage { position: relative; min-height: 640px; display: flex; align-items: center; }
.hero-photo { position: absolute; right: 48px; top: 0; bottom: 0; width: 46%; margin: 0; z-index: 0; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 28px; border: 1px solid var(--hair); transform: translateY(var(--py, 0px)); }
.tag { position: absolute; right: 20px; top: 20px; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 9px 14px 9px 12px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--ink); background: rgba(21, 23, 28, .45); }
.hero-card-wrap { position: relative; z-index: 2; width: 62%; }
.hero-card { padding: 48px 52px 46px; background: rgba(21, 23, 28, .42); }
.eyebrow { margin: 0 0 22px; font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font: 400 clamp(56px, 7vw, 104px)/.92 var(--serif); letter-spacing: -0.03em; }
.hero h1 .cred { font-style: italic; color: var(--muted); }
.claim { max-width: 520px; margin: 26px 0 32px; font: 400 clamp(18px, 1.7vw, 21px)/1.5 var(--sans); letter-spacing: -0.01em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hair); }
.hero-meta dt { margin-bottom: 4px; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.js .enter { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms + 150ms); }
.js .enter.in { opacity: 1; transform: none; }
@media (max-width: 1000px) { .hero-card-wrap { width: 68%; } .hero-card { padding: 40px; } .hero-photo { width: 44%; } .hero-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .hero { padding-top: 96px; }
  .hero-stage { display: block; min-height: 0; }
  .hero-photo { position: relative; right: auto; width: 100%; aspect-ratio: 4 / 4.2; }
  .hero-photo img { height: 100%; }
  .hero-card-wrap { width: auto; margin: -72px 12px 0; }
  .hero-card { padding: 28px 24px 26px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions .pill { width: 100%; }
}

/* Sections */
.section { position: relative; padding: 120px 0; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 48px; right: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2), transparent); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 56px; }
.sec-num { display: inline-flex; align-items: center; gap: 10px; flex: none; font: 500 12.5px/1 var(--sans); letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-num::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 8px var(--c, var(--blue)); }
#about .sec-num { --c: var(--blue); } #education .sec-num { --c: var(--mint); } #experience .sec-num { --c: var(--coral); }
#teaching .sec-num { --c: var(--amber); } #research .sec-num { --c: var(--blue); } #figures .sec-num { --c: var(--mint); } #contact .sec-num { --c: var(--coral); }
.sec-head h2 { margin: 0; font: 400 clamp(52px, 7vw, 100px)/.92 var(--serif); letter-spacing: -0.025em; }
.sec-body { min-width: 0; }
@media (max-width: 1000px) { .section { padding: 84px 0; } .sec-head { margin-bottom: 40px; gap: 14px; } .section + .section::before { left: 18px; right: 18px; } }
.group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair-2), transparent); }
.group-title:not(:first-child) { margin-top: 80px; }
.intro { max-width: 640px; margin: 0; color: var(--ink-2); }
.role { margin: 0; font: 600 17px/1.4 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.org { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); }
.org a { color: inherit; }
.desc { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.desc strong { font-weight: 600; color: var(--ink-2); }

/* Reveals */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .split .wi { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js .split.in .wi { transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Logo wall: white tiles, larger marks */
.places-group { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.places-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair-2), transparent); }
.places-group:not(:first-child) { margin-top: 44px; }
.stickers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sticker {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  height: 196px; padding: 24px 18px 18px; border-radius: 22px; text-decoration: none; color: #15171c;
  background: var(--tile); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s ease;
}
.stickers-edu .sticker { height: 216px; }
.sticker::after { content: ""; position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 8px var(--c, var(--blue)); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.stickers > li:nth-child(4n + 1) .sticker { --c: var(--blue); } .stickers > li:nth-child(4n + 2) .sticker { --c: var(--coral); }
.stickers > li:nth-child(4n + 3) .sticker { --c: var(--mint); } .stickers > li:nth-child(4n + 4) .sticker { --c: var(--amber); }
.sticker:hover { transform: translateY(-3px); }
.sticker:hover::after { opacity: 1; transform: none; }
.sticker img { max-width: 84%; max-height: calc(var(--h, 64px) * 1.12); width: auto; height: auto; object-fit: contain; transition: transform .6s var(--ease); }
.sticker:hover img { transform: scale(1.04); }
.sticker .tag { position: static; padding: 0; border: 0; background: none; font: 500 10.5px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6b6e76; text-align: center; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; font: 600 38px/1 var(--sans); color: #1e2235; letter-spacing: -0.02em; }
.wordmark img { width: 52px; height: 52px; max-height: none; }
.wordmark-stack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sticker .wordmark-stack.wordmark-isb img { width: auto; height: 50px; max-width: 84%; max-height: none; }
.wordmark-isb span { font: 600 16px/1.2 var(--sans); color: #111827; text-align: center; }
@media (max-width: 760px) {
  .stickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stickers-edu li:first-child { grid-column: 1 / -1; }
  .stickers:not(.stickers-edu) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sticker { height: 140px; padding: 16px 10px 12px; gap: 10px; border-radius: 16px; }
  .stickers-edu .sticker { height: 156px; }
  .sticker img { max-height: calc(var(--h, 64px) * .78); }
  .sticker .tag { font-size: 9.5px; }
  .wordmark { font-size: 26px; } .wordmark img { width: 36px; height: 36px; }
  .sticker .wordmark-stack.wordmark-isb img { height: 34px; }
  .wordmark-isb span { font-size: 12.5px; }
}

/* About */
.statement { margin: 0 0 34px; max-width: 900px; font: 400 clamp(30px, 3.6vw, 48px)/1.15 var(--serif); letter-spacing: -0.01em; }
.prose { max-width: 700px; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.focus { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.focus li { position: relative; isolation: isolate; will-change: transform; padding: 28px 30px 30px; border-radius: 22px; background: var(--glass-bg); border: 1px solid var(--hair); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.focus-num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font: 500 12px/1 var(--sans); letter-spacing: .1em; color: var(--muted); }
.focus-num::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 8px var(--c, var(--blue)); }
.focus li:nth-child(1) { --c: var(--blue); } .focus li:nth-child(2) { --c: var(--coral); } .focus li:nth-child(3) { --c: var(--mint); } .focus li:nth-child(4) { --c: var(--amber); }
.focus h3 { margin: 0 0 8px; font: 400 30px/1.05 var(--serif); }
.focus p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) { .focus { grid-template-columns: 1fr; } }

/* Timeline */
.tl { --rail: 150px; position: relative; list-style: none; margin: 0; padding: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: var(--rail); top: 14px; bottom: 14px; width: 1px; }
.tl::before { background: var(--hair-2); }
.tl::after { background: var(--blue); box-shadow: 0 0 10px var(--blue); transform: scaleY(var(--p, 0)); transform-origin: top; }
.tl-item { position: relative; display: grid; grid-template-columns: 178px minmax(0, 1fr); column-gap: 36px; padding: 0 0 18px; scroll-margin-top: 110px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(var(--rail) - 5.5px); top: 28px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--hair-2); z-index: 3;
  transition: background .4s ease, border-color .4s ease, box-shadow .5s ease, transform .5s var(--ease);
}
.tl-item.lit::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 10px var(--blue); }
.tl-item.now::before { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(109, 140, 255, .18), 0 0 14px var(--blue); }
.tl-when { position: sticky; top: 104px; z-index: 2; align-self: start; margin: 0 0 0 -16px; padding: 14px 44px 14px 18px; text-align: right; border-radius: 18px; background: rgba(21, 23, 28, .45); border: 1px solid var(--hair); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); will-change: transform; }
.tl-year { display: block; font: 400 40px/1 var(--serif); color: rgba(243, 242, 238, .32); font-variant-numeric: tabular-nums; transition: color .6s ease; }
.tl-item.lit .tl-year { color: var(--ink); }
.tl-range { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tl-card { padding: 24px 28px 26px; border-radius: 22px; transition: opacity .9s var(--ease), transform .9s var(--ease), background .5s ease, border-color .5s ease; }
.js .tl-item:not(.lit) .tl-card { opacity: .4; transform: translateX(16px); }
.tl-item.now .tl-card { background: var(--glass-bg-2); border-color: var(--hair-2); }
.tl-item.now .tl-card::after { content: ""; position: absolute; left: 28px; top: -1px; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.tl-head > div { min-width: 0; }
.tl-kind { margin: 0 0 6px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.tl-item:target .tl-card { border-color: var(--blue); }
.logo { flex: none; display: grid; place-items: center; width: 140px; height: 62px; padding: 8px 12px; overflow: hidden; background: var(--tile); border-radius: 14px; transition: transform .5s var(--ease); }
.logo img { max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain; }
.tl-card:hover .logo { transform: translateY(-2px); }
.logo-art { padding: 0; }
.logo.logo-art img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.pub-title { margin: 0; font: 400 25px/1.2 var(--serif); color: var(--ink); }
.pub-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.pub-title a:hover { background-size: 100% 1px; }
.pub-meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pub-meta strong { font-weight: 600; color: var(--ink-2); }
@media (max-width: 760px) {
  .tl { --rail: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 28px; padding-bottom: 16px; row-gap: 10px; }
  .tl-item::before { top: 8px; left: 0; }
  .tl-when { position: static; margin: 0; padding: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tl-year { font-size: 30px; }
  .tl-range { margin-top: 0; }
  .tl-card { padding: 18px 18px 20px; border-radius: 18px; }
  .js .tl-item:not(.lit) .tl-card { transform: translateY(10px); }
  .tl-head { flex-direction: column-reverse; gap: 12px; }
  .logo { width: 116px; height: 52px; }
  .logo img { max-height: 34px; }
}

/* Current projects */
.projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.projects li { position: relative; isolation: isolate; will-change: transform; padding: 26px; border-radius: 22px; background: var(--glass-bg); border: 1px solid var(--hair); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.live { position: absolute; top: 24px; right: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.live::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--mint); animation: ripple 4s ease-out infinite; }
.projects .role { padding-right: 20px; font: 400 26px/1.1 var(--serif); }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }

/* Figures: intro on dark glass over a dimmed band of the work */
.fig-stage { position: relative; margin-bottom: 64px; padding: 56px 0; }
.fig-band {
  position: absolute; inset: 0; z-index: 0; list-style: none; margin: 0; padding: 0; opacity: .55;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; 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);
}
.fig-band li { min-height: 0; }
.fig-band img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--hair); }
.fig-intro { position: relative; z-index: 1; width: min(640px, 100%); margin: 0 0 0 40px; padding: 44px 48px 46px; background: rgba(21, 23, 28, .7); }
.fig-intro .sec-head { margin-bottom: 20px; }
.fig-intro .sec-head h2 { font-size: clamp(48px, 6vw, 84px); }
@media (max-width: 900px) { .fig-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fig-intro { margin-left: 0; padding: 32px 26px; } .fig-stage { padding: 40px 0; } }
@media (max-width: 600px) { .fig-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fsets { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair-2); }
.fset { border-bottom: 1px solid var(--hair-2); }
.fset-head { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; align-items: center; width: 100%; padding: 22px 4px; cursor: pointer; }
.fset-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.fset-kind { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fset-title { font: 400 27px/1.15 var(--serif); color: var(--ink); transition: transform .6s var(--ease); }
.fset-head:hover .fset-title { transform: translateX(8px); }
.fset-count { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 9px 14px 9px 16px; border-radius: 999px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .04); font: 500 13px/1 var(--sans); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.fset-head:hover .fset-count { background: rgba(255, 255, 255, .12); }
.fset-icon { position: relative; width: 10px; height: 10px; }
.fset-icon::before, .fset-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 4.25px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.fset-icon::after { transform: rotate(90deg); }
.fset-head[aria-expanded="true"] .fset-icon::after { transform: rotate(0deg); }
.fset-head[aria-expanded="true"] .fset-count { background: var(--ink); color: #15171c; border-color: var(--ink); }
.fset-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.fset-panel.open { grid-template-rows: 1fr; }
.fset-inner { overflow: hidden; min-height: 0; }
.fset-note { max-width: 720px; margin: 0 4px 22px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.fset-note a { color: var(--ink-2); }
.fig-grid { list-style: none; padding: 0 4px 36px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.fig-grid > li { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.fset-panel.open .fig-grid > li { opacity: 1; transform: none; }
.fig { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; width: 100%; cursor: zoom-in; }
.fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 14px; border: 1px solid var(--hair); transition: transform .6s var(--ease), box-shadow .6s ease; }
.fig:hover img, .fig:focus-visible img { transform: translateY(-5px); box-shadow: 0 26px 46px -26px rgba(0, 0, 0, .8); }
.fig:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 16px; }
.fig-cap { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.fig-cap strong { font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .fset-head { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .fset-kind { grid-column: 1 / -1; }
  .fset-title { font-size: 22px; }
  .fig-grid { grid-template-columns: 1fr; }
}

/* Hover preview */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; padding: 7px; border-radius: 22px; pointer-events: none;
  background: rgba(21, 23, 28, .55); border: 1px solid var(--hair-2);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .3s ease;
}
.peek.on { opacity: 1; }
.peek img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 15px; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* Lightbox */
.lightbox { width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--hair-2); border-radius: 22px; background: rgba(27, 30, 36, .96); color: var(--ink); overflow: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.lightbox[open] { animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.lightbox::backdrop { background: rgba(10, 11, 14, .5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lb-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: rgba(27, 30, 36, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.lb-count { margin: 0; font: 500 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-actions { display: flex; gap: 6px; }
.lb-actions form { margin: 0; }
.lb-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .05); color: var(--ink); font: 16px/1 var(--sans); cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.lb-btn:hover { transform: scale(1.06); background: rgba(255, 255, 255, .14); }
.lb-btn[hidden] { display: none; }
.lightbox img { display: block; width: 100%; height: auto; }
.lb-cap { margin: 0; padding: 16px 22px 22px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* Closing */
.section-contact { padding: 24px 0 40px; }
.closing-stage { position: relative; padding: 24px 0; }
.closing { padding: 72px 56px 26px; border-radius: 32px; }
.closing .intro { color: var(--ink-2); margin-bottom: 32px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .05);
  color: var(--ink); font: 16px/1.5 var(--sans); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; background: rgba(255, 255, 255, .09); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(109, 140, 255, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.turnstile { min-height: 0; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.form-status { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.closing-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); }
.closing-foot p { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.closing-foot p:first-child { display: block; }
.closing-foot a { color: var(--ink-2); text-decoration: none; }
.closing-foot a:hover { color: var(--ink); }
@media (max-width: 1000px) { .closing { padding: 56px 28px 22px; } }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } .closing { padding: 44px 18px 18px; border-radius: 24px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* Places: bento mosaics (one feature tile per group) */
.stickers { grid-auto-rows: 176px; gap: 12px; }
.stickers-edu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stickers:not(.stickers-edu) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stickers > li > .sticker, .stickers-edu .sticker { height: 100%; }
.stickers > li:first-child { grid-column: span 2; grid-row: span 2; }
.sticker.feature { gap: 22px; padding: 32px 28px 28px; }
.sticker.feature img { max-width: 78%; max-height: calc(var(--h, 64px) * 1.75); }
.sticker.feature .tag { font-size: 12px; letter-spacing: .14em; color: #3b3d44; }
.sticker .more { margin-top: -12px; font: 400 14px/1.4 var(--sans); color: #6b6e76; text-align: center; }
@media (max-width: 1000px) {
  .stickers:not(.stickers-edu) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stickers { grid-auto-rows: 140px; gap: 8px; }
  .stickers-edu, .stickers:not(.stickers-edu) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stickers > li:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .stickers:not(.stickers-edu) > li:last-child:nth-child(odd) { grid-column: auto; }
  .sticker.feature img { max-height: calc(var(--h, 64px) * 1.25); }
  .sticker .more { font-size: 12.5px; margin-top: -6px; }
}

/* Places: credits list */
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.credits > li { border-bottom: 1px solid var(--hair); }
.credit {
  display: grid; grid-template-columns: 116px minmax(0, 1.3fr) minmax(0, 1fr) 150px 24px; gap: 24px; align-items: center;
  padding: 14px 12px 14px 4px; color: var(--ink); text-decoration: none; border-radius: 6px;
  transition: background .3s ease;
}
.credit-logo { display: grid; place-items: center; width: 116px; height: 58px; padding: 6px 12px; border-radius: 12px; background: var(--tile); }
.credit-logo img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.credit-name { font: 400 22px/1.2 var(--serif); transition: transform .5s var(--ease); }
.credit-role { font-size: 14.5px; color: var(--ink-2); }
.credit-years { font-size: 13.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.credit-go { color: var(--blue); text-align: right; opacity: .5; transition: opacity .3s, transform .4s var(--ease); }
.credit:hover { background: rgba(255, 255, 255, .05); }
.credit:hover .credit-name { transform: translateX(6px); }
.credit:hover .credit-go { opacity: 1; transform: translateY(2px); }
.credit:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 860px) {
  .credit { grid-template-columns: 88px minmax(0, 1fr) 18px; grid-template-areas: "logo name go" "logo meta go"; gap: 2px 16px; padding: 14px 4px; }
  .credit-logo { grid-area: logo; width: 88px; height: 50px; } .credit-logo img { max-height: 36px; }
  .credit-name { grid-area: name; font-size: 19px; }
  .credit-role { grid-area: meta; font-size: 13px; }
  .credit-years { display: none; }
  .credit-go { grid-area: go; }
}

/* Places: slim logo band (logos only; details live in Experience) */
.band { position: relative; padding: 16px 0 72px; }
.band-title { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.band-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair-2), transparent); }
.band-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.band-label { margin: 0; font: 500 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.band-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.logo-chip {
  position: relative; display: grid; place-items: center; height: 62px; padding: 0 20px; border-radius: 14px;
  background: var(--tile); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease;
}
.logo-chip img { display: block; height: var(--lh, 30px); width: auto; max-width: 170px; }
.chip-word { display: inline-flex; align-items: center; gap: 9px; font: 600 21px/1 var(--sans); letter-spacing: -0.02em; color: #1e2235; }
.chip-word img { width: 28px; height: 28px; }
.logo-chip::after { content: ""; position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--blue)); opacity: 0; transition: opacity .3s; }
.band-logos > li:nth-child(4n + 1) .logo-chip { --c: var(--blue); } .band-logos > li:nth-child(4n + 2) .logo-chip { --c: var(--coral); }
.band-logos > li:nth-child(4n + 3) .logo-chip { --c: var(--mint); } .band-logos > li:nth-child(4n + 4) .logo-chip { --c: var(--amber); }
.logo-chip:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.logo-chip:hover::after { opacity: 1; }
.logo-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.band + .section::before { content: ""; position: absolute; top: 0; left: 48px; right: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2), transparent); }
@media (max-width: 860px) {
  .band-row { grid-template-columns: 1fr; gap: 12px; }
  .logo-chip { height: 52px; padding: 0 14px; }
  .logo-chip img { height: calc(var(--lh, 30px) * .82); max-width: 130px; }
  .chip-word { font-size: 18px; } .chip-word img { width: 24px; height: 24px; }
  .band + .section::before { left: 18px; right: 18px; }
}
.band-row:last-child { border-bottom: 0; }

/* Logo band: dark frosted glass capsules with dark-background versions of each logo (/logos/dark/) */
.logo-chip {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--hair-2); border-radius: 14px; padding: 0 22px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -16px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease), background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.chip-word { color: #fff; }
.logo-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 32px -18px rgba(0, 0, 0, .75); }
.logo-chip::after { top: 50%; right: 10px; margin-top: -2.5px; }

/* Current involvements: rippling mint pip */
.live-pip { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); flex: none; }
.live-pip::before, .live-pip::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--mint); opacity: 0; animation: live-ripple 2.8s ease-out infinite; }
.live-pip::after { animation-delay: 1.4s; }
@keyframes live-ripple { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.6); opacity: 0; } }
.logo-chip .live-pip { position: absolute; top: 8px; right: 8px; }
.logo-chip.is-current::after { display: none; }
.logo-chip.is-current { border-color: rgba(95, 211, 176, .45); }
.band-head { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; }
.band-head .band-title { flex: 1; margin: 0; }
.band-legend { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .live-pip::before, .live-pip::after { animation: none; } }

/* Current pips: smaller, with room around them */
.live-pip { width: 5px; height: 5px; box-shadow: 0 0 6px var(--mint); }
@keyframes live-ripple { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.logo-chip.is-current { padding-right: 34px; }
.logo-chip .live-pip { top: 10px; right: 11px; }

/* Lower logo chips: dark frosted glass, dark-background logos, current pips */
.logo {
  position: relative; background: rgba(255, 255, 255, .06); border: 1px solid var(--hair-2); border-radius: 14px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.logo-art { border-color: var(--hair-2); }
.logo.is-current { border-color: rgba(95, 211, 176, .45); padding-right: 24px; }
.logo.logo-art.is-current { padding-right: 0; }
.logo .live-pip { position: absolute; top: 8px; right: 9px; z-index: 1; }
.logo.logo-art .live-pip { box-shadow: 0 0 0 2px rgba(21, 23, 28, .6), 0 0 6px var(--mint); }

/* Portland tag dot ripples too */
.tag .blip { position: relative; width: 6px; height: 6px; }
.tag .blip::before, .tag .blip::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--blue); opacity: 0; animation: live-ripple 2.8s ease-out infinite; }
.tag .blip::after { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) { .tag .blip::before, .tag .blip::after { animation: none; } }

/* Scroll performance: no per-chip blur, fewer forced GPU layers */
.logo, .logo-chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .07); }
.logo-chip:hover { background: rgba(255, 255, 255, .13); }
.glass, .focus li, .projects li { will-change: auto; }
.hero-card { will-change: transform; }
.tl-when { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 26, 32, .88); will-change: auto; }
@media (max-width: 760px) { .tl-when { background: none; } }

/* Professional memberships */
.memberships { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memberships li { display: flex; align-items: center; gap: 20px; padding: 18px 22px 18px 18px; border-radius: 22px; background: var(--glass-bg); border: 1px solid var(--hair); }
.memberships .logo { width: 128px; height: 60px; }
.memberships .logo img { max-height: 40px; }
.logo-word .wm { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; }
.logo-word .wm b { font: 400 26px/1 var(--serif); letter-spacing: .02em; }
.logo-word .wm span { margin-top: 4px; font: 500 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
@media (max-width: 760px) { .memberships { grid-template-columns: 1fr; } .memberships .logo { width: 104px; height: 52px; } }
.memberships .logo { width: 150px; height: 64px; }
.memberships .logo img { max-height: 50px; }

/* More detail dropdowns */
.more-btn {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .05); font: 500 13.5px/1 var(--sans); color: var(--ink); white-space: nowrap;
  transition: background .25s ease, border-color .25s ease;
}
.more-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.more-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.more-icon { position: relative; width: 9px; height: 9px; }
.more-icon::before, .more-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3.75px; height: 1.5px; background: var(--blue); transition: transform .45s var(--ease); }
.more-icon::after { transform: rotate(90deg); }
.more-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.more-btn[aria-expanded="true"] .more-icon::after { transform: rotate(0deg); }
.more-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.more-panel.open { grid-template-rows: 1fr; }
.more-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .4s ease; }
.more-panel.open .more-inner { opacity: 1; transition-delay: .1s; }
.more-inner > :first-child { margin-top: 20px; }
.more-meta { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font: 500 12px/1.45 var(--sans); letter-spacing: .04em; color: var(--ink-2); }
.more-meta::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.more-list { list-style: none; margin: 0; padding: 4px 0 0; border-top: 1px solid var(--hair); }
.more-list li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.more-list li:last-child { border-bottom: 0; }
.more-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 1px; background: var(--hair-2); }

/* SHP text wordmark inside a band chip */
.chip-wm { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; }
.chip-wm b { font: 400 24px/1 var(--serif); letter-spacing: .02em; }
.chip-wm span { margin-top: 4px; font: 500 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }

/* Assessment experience & clinical trainings */
.assess { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin: 28px 0 0 214px; padding: 0; }
.assess-col { padding: 26px 28px 28px; }
.assess-col + .assess-col { border-left: 1px solid var(--hair); }
.assess-title { margin: 0; font: 400 26px/1.1 var(--serif); }
.assess-sub { margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.assess-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.assess-kind { font: 500 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .04); font: 500 12.5px/1.2 var(--sans); color: var(--ink); }
.assess-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.trainings { list-style: none; margin: 16px 0 0; padding: 0; }
.trainings li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.tr-name { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.tr-status { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live-tag { color: var(--mint); }
.live-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
@media (max-width: 1000px) { .assess { margin-left: 0; } }
@media (max-width: 760px) {
  .assess { grid-template-columns: 1fr; }
  .assess-col + .assess-col { border-left: 0; border-top: 1px solid var(--hair); }
  .assess-group { grid-template-columns: 1fr; gap: 8px; }
  .assess-col { padding: 22px 18px; }
}

/* Assessment & trainings as subsections of the Pacific clinic detail */
.more-assess { margin: 6px 0 4px; }
.more-assess .assess-group { grid-template-columns: 170px minmax(0, 1fr); padding: 9px 0; }
.more-assess .assess-note { margin: 10px 0 0; }
.more-inner .trainings { margin: 6px 0 4px; }
.more-inner .tr-name { font-size: 14px; }
@media (max-width: 760px) { .more-assess .assess-group { grid-template-columns: 1fr; gap: 8px; } }


/* Practicum hours row in the snapshot band (numbers come from /api/practicum) */
.band-sub { display: block; margin-top: 6px; font: 400 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.band-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stat {
  display: flex; align-items: baseline; gap: 12px; height: 64px; padding: 0 24px; border-radius: 14px;
  border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -16px rgba(0, 0, 0, .6);
  align-items: center;
}
.stat-num { font: 400 36px/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; transition: opacity .4s ease; }
.stat-label { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stat-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 6px var(--c, var(--blue)); }
.band-stats > li:nth-child(1) { --c: var(--blue); }
.band-stats > li:nth-child(2) { --c: var(--mint); }
.band-stats > li:nth-child(3) { --c: var(--coral); }
@media (max-width: 760px) {
  .band-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; height: 76px; padding: 0 14px; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 9.5px; letter-spacing: .08em; }
}

/* Scroll-drawn rail as a real element (transform only), not an inherited custom property */
.tl::after { display: none; }
.tl-fill { position: absolute; left: var(--rail); top: 14px; bottom: 14px; width: 1px; background: var(--blue); box-shadow: 0 0 10px var(--blue); transform: scaleY(0); transform-origin: top; pointer-events: none; will-change: transform; }

/* Light-up without re-blurring: the glass box stays put, only its contents fade and slide */
.js .tl-item:not(.lit) .tl-card { opacity: 1; transform: none; }
.tl-card > * { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .tl-item:not(.lit) .tl-card > * { opacity: .4; transform: translateX(16px); }
@media (max-width: 760px) { .js .tl-item:not(.lit) .tl-card > * { transform: translateY(10px); } }
@media (max-width: 760px) {
  .stat { padding: 0 12px; }
  .stat-label { gap: 6px; font-size: 9px; letter-spacing: .06em; }
}

/* Pacific card: two dropdowns. Closed panels park at the end so the buttons sit side by side;
   an open panel takes its place right under its own button, pushing the next button below it. */
.links.stack > .more-panel { flex: 0 0 100%; order: 0; transition: grid-template-rows .6s var(--ease), order 0s; }
.links.stack > .more-panel:not(.open) { order: 9; transition: grid-template-rows .6s var(--ease), order 0s linear .6s; }
.links.stack .more-inner > :last-child { margin-bottom: 14px; }

/* Timeline logos sized per logo (same idea as the snapshot band) instead of squeezed into a fixed box */
.tl-card .logo:not(.logo-art) { width: auto; min-width: 150px; height: 66px; padding: 0 18px; }
.tl-card .logo:not(.logo-art) img { height: var(--lh, 34px); max-height: none; width: auto; max-width: 200px; }
.tl-card .logo.logo-art { width: 150px; height: 66px; }
.tl-card .logo.is-current:not(.logo-art) { padding-right: 30px; }
.tl-card .logo .chip-word img { height: 28px; width: 28px; }
@media (max-width: 760px) {
  .tl-card .logo:not(.logo-art) { min-width: 0; height: 56px; padding: 0 14px; }
  .tl-card .logo.is-current:not(.logo-art) { padding-right: 26px; }
  .tl-card .logo:not(.logo-art) img { height: calc(var(--lh, 34px) * .82); max-width: 150px; }
  .tl-card .logo .chip-word img { height: 24px; width: 24px; }
}

/* Simple footer (contact form removed for launch) */
.site-foot { padding: 40px 0 44px; }
.site-foot .closing-foot { margin-top: 0; }

/* Clinical trainings: their own group in Education */
.training-card { padding: 4px 26px; border-radius: 20px; }
.training-card .trainings { margin: 0; }
.training-card .trainings li:first-child { border-top: 0; }
.training-card .trainings li { padding: 16px 0; }
@media (max-width: 760px) { .training-card { padding: 2px 18px; } }
.stat-num { color: color-mix(in srgb, var(--c, var(--blue)) 80%, #fff); }

/* Headshot: the slow-scroll drift stays inside the frame (image is 32px taller; top shows fully at rest) */
.hero-photo { overflow: visible; }
.photo-clip { position: relative; z-index: 1; display: block; height: 100%; overflow: hidden; border-radius: 28px; border: 1px solid var(--hair); }
.hero-photo .tag { z-index: 2; }
/* Wireframe "shadow": a thin white outline of the photo, offset down and to the right */
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 28px; transform: translate(18px, 18px); pointer-events: none; }
@media (max-width: 760px) { .hero-photo::before { transform: translate(8px, 10px); border-radius: 24px; } .photo-clip { border-radius: 24px; } }
.hero-photo img { height: calc(100% + 32px); border: 0; border-radius: 0; transform: none; object-position: 50% 0; }

/* Tighter hand-off from the snapshot band into About */
.band { padding-bottom: 28px; }
.band + .section { padding-top: 76px; }
@media (max-width: 1000px) { .band { padding-bottom: 20px; } .band + .section { padding-top: 52px; } }

/* Two logos on one timeline entry (freelance figures: Buck + TGH) */
.logo-pair { display: flex; flex-direction: row; gap: 8px; flex: none; }
.logo-pair .logo:not(.logo-art) { min-width: 0; }
@media (max-width: 760px) { .logo-pair { flex-wrap: wrap; } }

.projects > li { scroll-margin-top: 110px; }
@media (max-width: 1100px) {
  .tl-head:has(.logo-pair) { flex-wrap: wrap; row-gap: 14px; }
  .tl-head .logo-pair { order: -1; flex-basis: 100%; }
}

/* One spacing rhythm between all sections (was 120px top and bottom) */
.section, .band + .section { padding: 72px 0 28px; }
@media (max-width: 1000px) { .section, .band + .section { padding: 52px 0 20px; } }
#figures { padding-top: 16px; }
@media (max-width: 1000px) { #figures { padding-top: 8px; } }


/* ---------- Day theme (warm light). Active when <html data-theme="day">: 7am to 7pm local time, or ?theme=day ---------- */
html[data-theme="day"] {
  --bg: #f4ede3;
  --bg-2: #ece3d6;
  --ink: #2a231e;
  --ink-2: rgba(42, 35, 30, .82);
  --muted: rgba(42, 35, 30, .58);
  --hair: rgba(70, 48, 30, .14);
  --hair-2: rgba(70, 48, 30, .26);
  --glass-bg: rgba(255, 252, 246, .55);
  --glass-bg-2: rgba(255, 252, 246, .8);
  --glass-blur: blur(14px) saturate(1.15);
  --tile: #fffdf8;
  --blue: #4f68c4;
  --coral: #cf5e38;
  --mint: #2c9070;
  --amber: #b97d12;
  --shadow: 0 30px 60px -36px rgba(80, 50, 20, .28);
  --error: #b4432f;
  color-scheme: light;
}

html[data-theme="day"] body {
  background:
    linear-gradient(rgba(90, 60, 30, .055) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, rgba(90, 60, 30, .055) 1px, transparent 1px) 0 0 / 88px 100%,
    radial-gradient(ellipse 80% 60% at 50% 0%, #fbf6ee, var(--bg) 70%);
  background-color: var(--bg);
}
html[data-theme="day"] ::selection { background: rgba(207, 94, 56, .22); }

/* Glass and chrome */
html[data-theme="day"] .glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow); }
html[data-theme="day"] .header-inner { background: rgba(250, 245, 237, .72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 34px -24px rgba(80, 50, 20, .3); }
@media (max-width: 1020px) { html[data-theme="day"] .nav { background: rgba(250, 245, 237, .94); } }
html[data-theme="day"] .nav-cv, html[data-theme="day"] .pill.pill-solid { background: var(--ink); color: #fbf6ee; border-color: var(--ink); }
html[data-theme="day"] .nav-cv:hover, html[data-theme="day"] .pill.pill-solid:hover { background: #43372f; border-color: #43372f; color: #fbf6ee; }
html[data-theme="day"] .pill, html[data-theme="day"] .text-link, html[data-theme="day"] .more-btn, html[data-theme="day"] .fset-count { background: rgba(255, 255, 255, .55); }
html[data-theme="day"] .pill:hover, html[data-theme="day"] .text-link:hover, html[data-theme="day"] .more-btn:hover, html[data-theme="day"] .fset-head:hover .fset-count { background: #fff; border-color: rgba(70, 48, 30, .4); }
html[data-theme="day"] .more-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .9); }
html[data-theme="day"] .fset-head[aria-expanded="true"] .fset-count { color: #fbf6ee; }
html[data-theme="day"] .tag { background: rgba(255, 252, 246, .72); }
html[data-theme="day"] .hero-card { background: rgba(255, 252, 246, .55); }
html[data-theme="day"] .tl-when { background: rgba(255, 251, 245, .92); }
html[data-theme="day"] .fig-intro { background: rgba(255, 252, 246, .82); }
html[data-theme="day"] .peek { background: rgba(255, 252, 246, .7); box-shadow: 0 30px 60px -30px rgba(80, 50, 20, .35); }
html[data-theme="day"] .lightbox { background: rgba(250, 245, 237, .97); box-shadow: 0 40px 80px -40px rgba(80, 50, 20, .4); }
html[data-theme="day"] .lb-bar { background: rgba(250, 245, 237, .85); }
html[data-theme="day"] .lb-btn { background: rgba(70, 48, 30, .05); }
html[data-theme="day"] .lb-btn:hover { background: rgba(70, 48, 30, .1); }
html[data-theme="day"] .credit:hover { background: rgba(70, 48, 30, .04); }
html[data-theme="day"] .fig:hover img, html[data-theme="day"] .fig:focus-visible img { box-shadow: 0 26px 46px -26px rgba(80, 50, 20, .45); }

/* Logo chips, timeline logos, hours chips: white frosted cards */
html[data-theme="day"] .logo, html[data-theme="day"] .logo-chip, html[data-theme="day"] .stat {
  background: rgba(255, 255, 255, .72); border-color: var(--hair-2);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(80, 50, 20, .25);
}
html[data-theme="day"] .logo-chip:hover { background: #fff; border-color: rgba(70, 48, 30, .4); box-shadow: inset 0 1px 0 #fff, 0 18px 32px -18px rgba(80, 50, 20, .3); }
html[data-theme="day"] .logo.is-current, html[data-theme="day"] .logo-chip.is-current { border-color: rgba(44, 144, 112, .45); }
html[data-theme="day"] .logo.logo-art .live-pip { box-shadow: 0 0 0 2px rgba(255, 250, 240, .85), 0 0 6px var(--mint); }
html[data-theme="day"] .chip-word, html[data-theme="day"] .logo-word .wm, html[data-theme="day"] .chip-wm { color: var(--ink); }
/* TGH only has a white logo, so it sits on a warm dark chip */
html[data-theme="day"] .logo-chip:has(img[src$="tgh.svg"]), html[data-theme="day"] .logo:has(img[src$="tgh.svg"]) { background: #2f2721; border-color: #2f2721; }

/* Numbers and lists */
html[data-theme="day"] .stat-num { color: color-mix(in srgb, var(--c, var(--blue)) 88%, #000); }
html[data-theme="day"] .more-list li { border-bottom-color: rgba(70, 48, 30, .1); }
html[data-theme="day"] .assess-group, html[data-theme="day"] .trainings li { border-top-color: rgba(70, 48, 30, .1); }
html[data-theme="day"] .tags li { background: rgba(255, 255, 255, .6); }

/* Headshot: warm-brown wireframe instead of white */
html[data-theme="day"] .hero-photo::before { border-color: rgba(70, 48, 30, .35); }

html[data-theme="day"] img[data-day-src]:not([data-swapped]) { visibility: hidden; }

/* Light/dark switch in the header: sun at night (go light), moon by day (go dark) */
.theme-btn { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 10px; padding: 0; border: 1px solid var(--hair-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.theme-btn:hover { background: var(--glass-bg-2); border-color: var(--ink-2); transform: rotate(-12deg); }
.theme-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.theme-btn svg { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
.theme-btn .ic-moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
html[data-theme="day"] .theme-btn .ic-sun { opacity: 0; transform: rotate(40deg) scale(.6); }
html[data-theme="day"] .theme-btn .ic-moon { opacity: 1; transform: none; }
html.theme-switching, html.theme-switching * { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }
@media (max-width: 760px) { .theme-btn { width: 36px; height: 36px; margin-left: 6px; } }
html.theme-switching .theme-btn svg { transition: opacity .3s, transform .4s !important; }
