:root {
  color-scheme: light;
  --max-width: 1180px;
  --radius: 8px;
  --nav-height: 72px;
  --shadow-soft: 0 22px 60px rgba(17, 24, 39, 0.12);
  --shadow-tight: 0 12px 28px rgba(17, 24, 39, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
  color: var(--text-strong);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--mark-text);
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-strong);
  background: var(--nav-hover);
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: calc(76vh - var(--nav-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--hero-bg);
  background-image: var(--hero-overlay), url("headshot.jpeg");
  background-repeat: no-repeat;
  background-size: cover, min(520px, 48vw);
  background-position: center, right 8vw center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  position: relative;
  top: -24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: min(100%, 620px);
  min-height: 40px;
  margin: 0 0 -4px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--chip-line);
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 1.05rem;
  font-weight: 760;
  text-align: left;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--hero-title);
  font-size: 4.3rem;
  line-height: 0.98;
  font-weight: 840;
}

.lede {
  max-width: 670px;
  margin-bottom: 28px;
  color: var(--hero-text);
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 480;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 16px;
  font-weight: 760;
  border: 1px solid transparent;
}

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

.button.secondary {
  border-color: var(--button-line);
  color: var(--button-text);
  background: var(--button-bg);
}

.button:hover {
  transform: translateY(-1px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(850px, 100%);
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--hero-strip-shadow);
}

.proof-item {
  min-height: 112px;
  padding: 18px;
  background: var(--proof-bg);
}

.proof-item strong {
  display: block;
  color: var(--proof-value);
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.reel-band {
  border-bottom: 1px solid var(--line);
  background: var(--band-alt);
}

.reel-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reel-card {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 12px 28px rgba(16, 24, 22, 0.07);
}

.reel-card img {
  width: 100%;
  height: 172px;
  padding: 14px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--media-bg);
  border-bottom: 1px solid var(--card-line);
}

.reel-card div {
  padding: 14px;
}

.reel-card strong,
.reel-card span {
  display: block;
}

.reel-card strong {
  color: var(--text-strong);
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 5px;
}

.reel-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--band-bg);
}

.band.alt {
  background: var(--band-alt);
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--text-strong);
  font-size: 2.35rem;
  line-height: 1.08;
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card,
.publication,
.capability,
.timeline-item {
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.work-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.work-media {
  height: 282px;
  display: grid;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  background: var(--media-bg);
  border-bottom: 1px solid var(--card-line);
}

.work-media img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.work-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 780;
}

.work-body h3 {
  color: var(--text-strong);
  font-size: 1.28rem;
  line-height: 1.22;
  margin-bottom: 10px;
}

.work-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tag-line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--tag-text);
  background: var(--tag-bg);
  font-size: 0.8rem;
  font-weight: 690;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  min-height: 210px;
  padding: 22px;
}

.capability h3 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 1.06rem;
  line-height: 1.22;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.capability a {
  color: var(--text-strong);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.publication-list {
  display: grid;
  gap: 10px;
}

.publication {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.publication .year {
  color: var(--accent);
  font-weight: 820;
}

.publication h3 {
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 1.03rem;
}

.publication p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.publication a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--button-text);
  border: 1px solid var(--button-line);
  background: var(--button-bg);
  font-size: 0.9rem;
  font-weight: 740;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.timeline-item .date {
  color: var(--accent);
  font-weight: 810;
}

.timeline-item h3 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 1.08rem;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  padding: 0 10px;
}

.theme-ledger {
  --bg: #f6f7f2;
  --band-bg: #f6f7f2;
  --band-alt: #ffffff;
  --hero-bg: #f5f6f0;
  --hero-overlay: linear-gradient(90deg, rgba(246, 247, 242, 0.98) 0%, rgba(246, 247, 242, 0.92) 47%, rgba(246, 247, 242, 0.18) 74%);
  --text: #27312f;
  --text-strong: #101816;
  --hero-title: #101816;
  --hero-text: #37433f;
  --muted: #68736f;
  --line: #d6ddd5;
  --accent: #245f5a;
  --accent-2: #b65b3b;
  --mark-text: #ffffff;
  --chip-bg: #ffffff;
  --chip-line: #cbd4cc;
  --chip-text: #245f5a;
  --nav-hover: #ecefe8;
  --button-bg: #ffffff;
  --button-line: #cbd5cc;
  --button-text: #17201e;
  --proof-bg: #ffffff;
  --proof-value: #245f5a;
  --hero-strip-shadow: var(--shadow-tight);
  --card-bg: #ffffff;
  --card-line: #d6ddd5;
  --card-shadow: 0 18px 45px rgba(16, 24, 22, 0.08);
  --media-bg: #eef2ee;
  --tag-bg: #f6f7f2;
  --tag-line: #d6ddd5;
  --tag-text: #39443f;
  --footer-bg: #111816;
  --footer-text: #eef5f0;
  --footer-line: #35413d;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.2rem;
  }

  .hero {
    min-height: auto;
    background-size: cover, 360px;
    background-position: center, right -80px top 36px;
  }

  .hero-inner {
    padding-top: 320px;
  }

  .eyebrow {
    top: -14px;
    margin-bottom: 6px;
  }

  .proof-strip,
  .capability-grid,
  .reel-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .nav-inner,
  .reel-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, var(--max-width));
  }

  .nav-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 0;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-links a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.86rem;
    flex: 0 0 auto;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .hero {
    background-size: cover, 220px;
    background-position: center, right -46px top 12px;
  }

  .hero-inner {
    padding: 176px 0 34px;
  }

  .eyebrow {
    top: -8px;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .lede {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .proof-strip,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .reel-inner {
    display: flex;
    overflow-x: auto;
    padding: 16px 0;
    scroll-snap-type: x proximity;
  }

  .reel-card {
    min-width: 238px;
    scroll-snap-align: start;
  }

  .reel-card img {
    height: 146px;
  }

  .proof-item {
    min-height: 88px;
  }

  .hero-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 18px;
  }

  .hero-actions .button {
    flex: 0 0 auto;
  }

  .hero .proof-strip {
    grid-template-columns: repeat(4, 156px);
    overflow-x: auto;
  }

  .hero .proof-item {
    min-height: 82px;
    padding: 12px;
  }

  .hero .proof-item strong {
    font-size: 1.18rem;
  }

  .hero .proof-item span {
    font-size: 0.78rem;
  }

  .publication,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .publication a {
    justify-content: center;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
