:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --text: #12151a;
  --muted: #5a636e;
  --line: #e3e1db;
  --accent: #1a2e3b;
  --accent-text: #f6f4ef;
  --accent-ink: #1a2e3b;
  --focus: #9a8148;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1360px;
  --gutter: 1.25rem;
  --nav-w: 12.5rem;
  --nav-pad-top: 4.5rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
}

/* Home: scrollable landing; hero first, press surface below */
body.page-home {
  padding-top: 0;
}

body.page-home .nav-toggle {
  background: rgba(246, 247, 249, 0.9);
}

body.page-home .hero-only {
  width: 100%;
  min-height: min(88dvh, 900px);
  display: flex;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: none;
}

body.page-home .site-footer {
  padding-top: 0.85rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
}

/* Featured-in marquee (home) — clip only here so the hero name is never cropped */
.featured-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 28rem);
  margin: 0.15rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 46, 59, 0.14);
  overflow: hidden;
  contain: paint;
}

.featured-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 1.6rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.featured-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.featured-track {
  display: flex;
  width: max-content;
  max-width: none;
  animation: featured-marquee 22s linear infinite;
  will-change: transform;
}

.featured-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 1.5rem;
  gap: 0.55rem;
  white-space: nowrap;
}

.featured-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.featured-sep {
  color: var(--muted);
}

@keyframes featured-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-track {
    animation: none;
  }

  .featured-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
}

/* Press list: full-width text rows */
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none;
  text-align: left;
}

.press-list-full {
  max-width: none;
}

.press-page .wrap,
.work-page .wrap,
.about-page .wrap {
  max-width: min(1480px, 100%);
  text-align: left;
}

.project-page .wrap {
  max-width: min(48rem, 100%);
  text-align: left;
  padding-inline: max(0.85rem, calc(var(--gutter) * 0.7));
}

.press-page .page-title,
.press-page .intro,
.work-page .page-title,
.work-page .intro,
.about-page .page-title,
.about-page .intro {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.press-page .intro,
.work-page .intro,
.about-page .intro {
  margin-left: auto;
  margin-right: auto;
}

.about-panel {
  margin-top: 0.5rem;
}

.about-bio {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.about-facts {
  margin: 0 0 1.75rem;
  padding: 0.25rem 0 0;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  margin: 1.15rem 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}

.about-page .profile-links {
  justify-content: flex-start;
  margin-bottom: 0;
}

.press-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.work-page .press-row {
  grid-template-columns: 96px 1fr;
  gap: 1rem 1.15rem;
}

.press-row:last-child {
  border-bottom: 1px solid var(--line);
}

.press-thumb {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1419;
  flex-shrink: 0;
}

.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.press-thumb-empty {
  background: linear-gradient(135deg, #e8ecf2, #f6f7f9);
}

.press-row-main {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .press-row {
    padding: 1.4rem 0;
  }

  .work-page .press-row {
    grid-template-columns: 120px 1fr;
    gap: 1.15rem 1.5rem;
  }

  .work-page .press-thumb {
    width: 120px;
    height: 120px;
  }
}

.press-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.press-dot {
  margin: 0 0.4rem;
  color: var(--muted);
}

.press-row-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.press-row-title:hover {
  color: var(--accent-ink);
}

.press-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.press-also-row {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

.press-also {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-toolbar {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

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

.press-search {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
}

.press-search:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(154, 129, 72, 0.28);
}

.press-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
}

.press-empty {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.press-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
}

.press-page-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.press-page-btn:hover:not(:disabled) {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.press-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.press-page-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 6.5rem;
  text-align: center;
}

.press-page-arrow {
  min-width: 40px;
  padding-inline: 0.65rem;
  font-size: 1.25rem;
  line-height: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 50% at 8% 0%, rgba(26, 46, 59, 0.07), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(154, 129, 72, 0.1), transparent 52%),
    radial-gradient(ellipse 55% 35% at 50% 100%, rgba(15, 20, 25, 0.04), transparent 55%);
}

body.page-home::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

button.btn,
a.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  transition: filter 160ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

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

.inline-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-version {
  font-variant-numeric: tabular-nums;
}

/* Side nav — ultra-minimal rail */
.nav-toggle {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  left: max(0.85rem, env(safe-area-inset-left));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 20, 25, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: min(var(--nav-w), 86vw);
  max-width: 86vw;
  height: 100%;
  height: 100dvh;
  padding:
    max(1.75rem, env(safe-area-inset-top))
    1.5rem
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(226, 230, 235, 0.9);
  box-shadow: 18px 0 40px rgba(15, 20, 25, 0.06);
  transform: translateX(-105%);
  transition: transform 280ms var(--ease);
  will-change: transform;
  overflow-x: hidden;
}

body.nav-open .site-nav {
  transform: translateX(0);
}

.site-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2.75rem;
}

a.site-mark,
.site-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

.site-mark:hover {
  color: var(--accent-ink);
}

.anchor-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.anchor-nav a {
  position: relative;
  padding: 0.15rem 0;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a[aria-current="page"] {
  color: var(--text);
}

.anchor-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 1.1rem;
  height: 1px;
  background: var(--accent);
}

body {
  padding-top: var(--nav-pad-top);
}

.is-hidden {
  display: none !important;
}

/* Hero */
.hero {
  padding-top: 0.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-photo {
  position: relative;
  width: min(48vw, 260px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(26, 46, 59, 0.16);
  background: var(--surface);
  box-shadow:
    0 0 0 6px rgba(26, 46, 59, 0.06),
    0 22px 48px rgba(15, 20, 25, 0.1);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 46, 59, 0.14) 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-copy {
  width: 100%;
  max-width: min(36rem, 100%);
  min-width: 0;
  overflow: visible;
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: break-word;
}

.role-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0 auto 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.3;
}

.home-voice {
  margin: 0 auto 0.85rem;
  max-width: 28ch;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--muted);
}

.home-voice em {
  font-style: normal;
  color: var(--accent-ink);
}

/* Quiet entrance on home */
body.page-home .hero-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: home-rise 700ms var(--ease) forwards;
}

body.page-home .hero-photo.hero-reveal {
  animation-delay: 60ms;
}

body.page-home .hero-copy h1.hero-reveal {
  animation-delay: 160ms;
}

body.page-home .role-line.hero-reveal {
  animation-delay: 240ms;
}

body.page-home .home-voice.hero-reveal {
  animation-delay: 320ms;
}


@keyframes home-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.profile-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 auto 1.15rem;
  padding: 0;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(15, 20, 25, 0.12);
  background: var(--surface);
  color: var(--text);
  transition:
    transform 160ms var(--ease),
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.profile-link svg {
  display: block;
  width: 14px;
  height: 14px;
}

.profile-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 20, 25, 0.08);
}

.profile-link--linkedin {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.28);
}

.profile-link--linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.profile-link--github {
  color: #24292f;
  border-color: rgba(36, 41, 47, 0.22);
}

.profile-link--github:hover {
  background: #24292f;
  border-color: #24292f;
  color: #fff;
}

.profile-link--orcid {
  color: #a6ce39;
  border-color: rgba(166, 206, 57, 0.4);
}

.profile-link--orcid:hover {
  background: #a6ce39;
  border-color: #a6ce39;
  color: #fff;
}

.profile-link--scholar {
  color: #4285f4;
  border-color: rgba(66, 133, 244, 0.3);
}

.profile-link--scholar:hover {
  background: #4285f4;
  border-color: #4285f4;
  color: #fff;
}

.lede {
  margin: 0 auto 1.25rem;
  max-width: 36ch;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cta-row .btn {
  width: 100%;
}

.cta-row .btn-linkedin {
  width: auto;
}

.btn-linkedin {
  min-width: 52px;
  padding-inline: 1.1rem;
}

.btn-linkedin svg {
  display: block;
  width: 20px;
  height: 20px;
}

.cta-newsletter {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.intro {
  margin: -0.25rem auto 1.5rem;
  max-width: 48ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.more {
  margin: 1.5rem 0 0;
}

.more a {
  color: var(--accent-ink);
  font-weight: 600;
}

.cred-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.cred-grid h3 {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.cred-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.cred-grid li {
  font-size: 0.92rem;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-cover {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  object-position: center;
  background: #0f1419;
}

.card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.05rem;
}

.card-status,
.card-date {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-summary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.card-tags {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.card-tags li {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

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

/* Newsletter */
.newsletter {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
}

.newsletter label {
  font-size: 0.85rem;
  color: var(--muted);
}

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.newsletter input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.newsletter button {
  width: 100%;
}

.newsletter button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.newsletter-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.newsletter-note a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.newsletter-note a:hover {
  text-decoration: underline;
}

body.page-home .profile-links.hero-reveal {
  animation-delay: 380ms;
}

body.page-home .featured-banner.hero-reveal {
  animation-delay: 460ms;
}

/* Article / project detail */
.article {
  max-width: 880px;
}

.project-page .article {
  max-width: none;
  width: 100%;
  text-align: left;
}

.project-header {
  margin-bottom: 0.35rem;
}

.article h1,
.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.summary {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.project-share {
  justify-content: flex-start;
  margin: 0 0 1.15rem;
}

button.profile-link {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.profile-link--copy {
  color: #1a2e3b;
  border-color: rgba(26, 46, 59, 0.22);
}

.profile-link--copy:hover {
  background: #1a2e3b;
  border-color: #1a2e3b;
  color: #fff;
}

.project-media {
  display: block;
  width: 50%;
  max-width: 22rem;
  margin: 0 0 1.5rem;
}

.date,
.status-label {
  display: none;
}

.tags {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.tags li {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  color: var(--muted);
}

.project-page .cover {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 14rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0;
  display: block;
  background: #e8e4dc;
}

.body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.body p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.body strong {
  color: var(--text);
}

.body ul {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.body li {
  margin: 0 0 0.35rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 1rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.breadcrumbs .sep {
  color: var(--line);
  user-select: none;
}

/* Vision */
.toc {
  margin: 0 0 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.toc-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.toc a:hover {
  color: var(--accent);
}

.chapter {
  margin: 0 0 2.75rem;
  scroll-margin-top: 1.5rem;
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
}

.chapter h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.chapter-summary {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* Tools */
.tools {
  max-width: 1040px;
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.tool-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.tool-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.tool-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

button.tool-copy {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

button.tool-copy svg {
  width: 16px;
  height: 16px;
  display: block;
}

button.tool-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tools-filters {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

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

input.tools-search {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input.tools-search::placeholder {
  color: #8a939e;
  font-weight: 400;
}

input.tools-search:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(154, 129, 72, 0.28);
}

input.tools-search::-webkit-search-decoration,
input.tools-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.capsule-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  align-items: center;
}

button.capsule,
span.capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

button.capsule:hover {
  border-color: #b8c0c9;
  color: var(--text);
  background: #fff;
}

button.capsule.is-active {
  border-color: var(--accent);
  background: rgba(26, 46, 59, 0.08);
  color: var(--accent-ink);
}

span.capsule-static {
  cursor: default;
  pointer-events: none;
  width: fit-content;
  min-height: 28px;
  height: 28px;
  padding: 0 0.7rem;
  font-size: 0.72rem;
}


.tools-empty {
  margin: 0 0 1rem;
  min-height: 1.4em;
}

/* Experience (LinkedIn-style) */
.experience {
  max-width: 720px;
}

.about-blurb {
  margin: 0 auto 2rem;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.65;
}

.exp-section {
  margin: 0 0 2.25rem;
  text-align: left;
}

.exp-heading {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.exp-list,
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.exp-item,
.article-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.exp-role h3,
.article-list a {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-list a:hover {
  color: var(--accent);
}

.exp-org {
  margin: 0 0 0.2rem;
  font-weight: 500;
  color: var(--text);
}

.exp-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.exp-detail {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.intro-tight {
  margin-bottom: 1rem;
}

.playbook.article {
  max-width: 1040px;
}

.playbook .summary {
  margin: 0 auto 1.5rem;
  max-width: 52ch;
}

.playbook-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}

a.jump-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

a.jump-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.playbook-block {
  text-align: left;
  margin: 0 0 2.75rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: 1.25rem;
}

.playbook-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.playbook-block .body :first-child {
  margin-top: 0;
}

.page-title {
  min-height: 1.15em;
}

.hero-only {
  border-top: none;
}

.tool pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-status {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

@media (min-width: 560px) {
  .newsletter-row {
    grid-template-columns: 1fr auto;
  }

  .newsletter button {
    width: auto;
    min-width: 7.5rem;
  }
}

@media (min-width: 800px) {
  :root {
    --gutter: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: center;
    text-align: center;
  }

  .hero-photo {
    width: min(34vw, 320px);
  }

  .lede {
    margin: 0 auto 1.25rem;
    max-width: 40ch;
    font-size: 1.1rem;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-row .btn {
    width: auto;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: auto;
  }

  .card-grid .card {
    min-width: 0;
  }

  .cred-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    text-align: center;
  }
}

/* Desktop: persistent side rail */
@media (min-width: 900px) {
  :root {
    --nav-pad-top: 0;
    --gutter: 2rem;
    --max: 1480px;
  }

  body {
    padding-top: 0;
    padding-left: var(--nav-w);
  }

  .press-page .wrap,
  .work-page .wrap,
  .about-page .wrap {
    max-width: min(1600px, calc(100vw - var(--nav-w) - 2 * var(--gutter)));
  }

  .project-page .wrap {
    max-width: min(48rem, calc(100vw - var(--nav-w) - 2 * var(--gutter)));
    padding-inline: 1.25rem;
  }

  .press-row-title {
    font-size: 1.2rem;
  }

  .press-desc {
    max-width: 70ch;
  }

  .nav-toggle,
  .nav-backdrop {
    display: none !important;
  }

  .site-nav {
    width: var(--nav-w);
    transform: none;
    box-shadow: none;
    background: transparent;
    border-right: 1px solid rgba(26, 46, 59, 0.12);
  }

  .site-nav-inner {
    padding-top: 2.25rem;
  }

  .site-mark {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .anchor-nav {
    font-size: 0.78rem;
    gap: 1.35rem;
  }

  body.page-home .hero-photo {
    width: min(28vw, 300px);
  }

  body.page-home .hero-copy h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  }

  body.page-home .lede {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  body.page-home .hero-only {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.page-home .hero-grid {
    gap: 1.25rem;
  }
}

/* Short viewports: keep home content inside one screen */
@media (max-height: 760px) {
  body.page-home .hero-photo {
    width: min(32vw, 190px);
  }

  body.page-home .hero-copy h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  body.page-home .lede {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.page-home .eyebrow {
    margin-bottom: 0.35rem;
  }

  body.page-home .cta-row {
    margin-bottom: 0;
  }
}
