:root {
  --ink: #171612;
  --ink-soft: #535046;
  --paper: #f4f0e8;
  --paper-bright: #fbf9f4;
  --line: rgba(23, 22, 18, .16);
  --accent: #c7683d;
  --accent-soft: #e7b49d;
  --lime: #c7d18b;
  --header: rgba(244, 240, 232, .84);
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --ink: #f2eee6;
  --ink-soft: #b8b2a6;
  --paper: #151512;
  --paper-bright: #1b1a17;
  --line: rgba(242, 238, 230, .16);
  --accent: #dc7b52;
  --accent-soft: #73412f;
  --header: rgba(21, 21, 18, .86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .25s ease, transform .25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .68rem;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.desktop-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 20px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.theme-toggle {
  font-size: 1.1rem;
}

.nav-cta {
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s ease, transform .2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  gap: 0;
}

.menu-toggle span:not(.sr-only) {
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s ease;
}

.menu-toggle span:first-child {
  transform: translateY(3px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(-3px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(1px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 110px 24px 30px;
  background: var(--paper);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.75rem, 7vw, 3rem);
}

.mobile-menu a span {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px clamp(24px, 6vw, 100px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(46px, 7vw, 130px);
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 10vw 10vw;
  background-position: -1px -1px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 0;
  background: radial-gradient(circle at 34% 35%, var(--paper) 0, rgba(244, 240, 232, .82) 36%, transparent 68%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at 34% 35%, var(--paper) 0, rgba(21, 21, 18, .82) 36%, transparent 68%);
}

.hero-copy,
.hero-portrait,
.hero-proof {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  padding: 0 0 48px;
}

.eyebrow {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow span {
  color: var(--ink-soft);
  font-weight: 500;
}

.hero h1,
.display-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(4rem, 7.5vw, 8.4rem);
}

.hero h1 em,
.display-title em,
.contact h2 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-intro {
  max-width: 710px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translate(3px, -2px);
}

.hero-portrait {
  align-self: center;
  padding: 10px 0 48px;
}

.portrait-frame {
  position: relative;
  max-width: 440px;
  margin-left: auto;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  transform: rotate(1.5deg);
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  content: "";
  top: 22px;
  left: -22px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  filter: none;
}

.portrait-caption {
  padding: 12px 2px 2px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-proof {
  grid-column: 1 / -1;
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.proof-item {
  padding: 24px clamp(18px, 3vw, 42px);
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  font-family: var(--display);
  font-size: clamp(2.3rem, 3.2vw, 4rem);
  font-weight: 400;
}

.proof-item span {
  max-width: 200px;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.5;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .3;
  pointer-events: none;
}

.orbit-one {
  width: 480px;
  height: 480px;
  right: -250px;
  top: 100px;
}

.orbit-two {
  width: 180px;
  height: 180px;
  right: -70px;
  top: 250px;
}

.marquee {
  overflow: hidden;
  padding: 17px 0;
  background: var(--accent);
  color: #fff8f1;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 24px;
  animation: ticker 34s linear infinite;
}

.marquee span {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.marquee i {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section {
  padding: clamp(88px, 11vw, 170px) clamp(24px, 6vw, 100px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(54px, 7vw, 100px);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-label span {
  color: var(--accent);
}

.section-label.light {
  color: rgba(255, 255, 255, .55);
}

.section-label.light::after {
  background: rgba(255, 255, 255, .18);
}

.display-title {
  font-size: clamp(3.1rem, 6.2vw, 7.2rem);
}

.about {
  background: var(--paper-bright);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(50px, 9vw, 150px);
}

.about-copy {
  padding-top: 14px;
}

.about-copy p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.8;
}

.about-copy .lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.1vw, 2.2rem);
  line-height: 1.35;
}

.about-copy .text-link {
  margin-top: 8px;
}

.capability-grid {
  margin-top: clamp(80px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability {
  min-height: 280px;
  padding: 26px clamp(20px, 2.5vw, 38px);
  border-right: 1px solid var(--line);
  transition: background .25s ease, transform .25s ease;
}

.capability:last-child {
  border-right: 0;
}

.capability:hover {
  z-index: 1;
  background: var(--paper);
  transform: translateY(-8px);
}

.capability > span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: .67rem;
}

.capability h3 {
  margin: 72px 0 14px;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 500;
}

.capability p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.65;
}

.experience {
  background: #181814;
  color: #f5f1e8;
}

.experience-heading {
  margin-bottom: clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 80px;
  align-items: end;
}

.display-title.light {
  color: #f5f1e8;
}

.experience-heading > p {
  max-width: 460px;
  margin: 0 0 10px auto;
  color: rgba(255, 255, 255, .55);
  line-height: 1.75;
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.timeline-item {
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.timeline-trigger {
  width: 100%;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  gap: 20px;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
}

.timeline-number {
  color: var(--accent);
  font-family: var(--sans);
  font-size: .66rem;
}

.timeline-role {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
}

.timeline-role strong {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 3.2rem);
  font-weight: 400;
}

.timeline-role small {
  min-width: 235px;
  color: rgba(255, 255, 255, .48);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: right;
}

.timeline-plus {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}

.timeline-plus::before,
.timeline-plus::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

.timeline-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.timeline-item.is-open .timeline-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.timeline-panel {
  max-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 64px 0 90px;
  opacity: 0;
  transition: max-height .55s ease, opacity .35s ease, padding .55s ease;
}

.timeline-item.is-open .timeline-panel {
  max-height: 440px;
  padding-bottom: 42px;
  opacity: 1;
}

.timeline-panel p,
.timeline-panel li {
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
  line-height: 1.75;
}

.timeline-panel p {
  margin: 0 0 16px;
}

.timeline-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-panel li {
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.timeline-panel li::before {
  content: "↳";
  margin-left: -18px;
  margin-right: 8px;
  color: var(--accent);
}

.impact {
  background: var(--paper);
}

.impact-intro,
.research-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 70px;
  align-items: end;
  margin-bottom: clamp(65px, 8vw, 110px);
}

.impact-intro p,
.research-heading p {
  max-width: 510px;
  margin: 0 0 8px auto;
  color: var(--ink-soft);
  line-height: 1.75;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.impact-card {
  min-height: 480px;
  padding: clamp(28px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
  transition: transform .3s ease, box-shadow .3s ease;
}

.impact-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(28, 25, 20, .12);
}

.impact-feature {
  grid-row: span 2;
  min-height: 800px;
  background: var(--accent);
  color: #fff9f2;
}

.impact-dark {
  background: #22211c;
  color: #f4f0e8;
}

.card-kicker {
  margin: 0 0 auto;
  font-family: var(--sans);
  font-size: .66rem !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .72;
}

.impact-stat {
  margin: 140px 0 35px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display);
}

.impact-stat strong {
  font-size: clamp(3.6rem, 6.5vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -.06em;
}

.impact-stat span {
  font-size: 1rem;
}

.impact-card h3 {
  max-width: 650px;
  margin: 28px 0 15px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.impact-card p:not(.card-kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.75;
}

.impact-feature p:not(.card-kicker),
.impact-dark p:not(.card-kicker) {
  color: rgba(255, 255, 255, .74);
}

.case-note {
  margin-top: 34px;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .64;
}

.big-number {
  margin-top: 90px;
  font-family: var(--display);
  font-size: clamp(5rem, 9vw, 10rem);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .72;
}

.number-label {
  margin: 18px 0 20px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.research {
  background: var(--paper-bright);
}

.research-heading > div p {
  margin: 25px 0 0;
}

.research-heading .button {
  justify-self: end;
  margin-bottom: 10px;
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.research-controls {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
}

.filter:hover,
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.search-box {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .76rem;
}

.search-box input::placeholder {
  color: var(--ink-soft);
}

.publication {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}

.publication:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--paper);
}

.publication[hidden] {
  display: none;
}

.publication-year,
.publication-index,
.publication p {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.publication-year,
.publication-index {
  color: var(--accent);
}

.publication p {
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.publication h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 2.4rem);
  font-weight: 400;
}

.no-results {
  padding: 32px 0;
  color: var(--ink-soft);
}

.speaking {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(70px, 10vw, 170px);
  background: #312c26;
  color: #f5f1e8;
}

.speaking .display-title {
  max-width: 880px;
}

.speaking-content > p {
  max-width: 660px;
  margin: 36px 0;
  color: rgba(255, 255, 255, .62);
  line-height: 1.75;
}

.topic-list {
  margin: 0 0 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.topic-list span {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
}

.topic-list span:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.topic-list span:nth-child(even) {
  padding-left: 18px;
}

.button-light {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.button-light:hover {
  background: #f5f1e8;
  color: #171612;
}

.speaking-quote {
  position: relative;
  margin: 130px 0 0;
  padding: clamp(30px, 4vw, 60px);
  align-self: end;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
}

.quote-mark {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: 7rem;
  line-height: .5;
}

.speaking-quote p {
  margin: 24px 0 34px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  line-height: 1.2;
}

.speaking-quote cite {
  color: rgba(255, 255, 255, .48);
  font-family: var(--sans);
  font-size: .65rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact {
  padding: clamp(100px, 14vw, 210px) clamp(24px, 6vw, 100px) 55px;
  background: var(--accent);
  color: #fff9f2;
}

.contact .eyebrow {
  color: #fff9f2;
}

.contact h2 {
  max-width: 1250px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.contact h2 em {
  color: #2b2822;
}

.contact-bottom {
  margin-top: clamp(80px, 10vw, 150px);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, .4);
}

.contact-bottom p {
  max-width: 540px;
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 30px;
}

.contact-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--sans);
  font-size: .73rem;
  font-weight: 700;
}

footer {
  padding: 30px clamp(24px, 6vw, 100px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  background: #171612;
  color: rgba(255, 255, 255, .48);
  font-family: var(--sans);
  font-size: .66rem;
}

.footer-brand {
  color: #f5f1e8;
  font-family: var(--display);
  font-size: 1.25rem;
}

footer p {
  margin: 0;
}

.chat-launcher {
  position: fixed;
  z-index: 130;
  right: 24px;
  bottom: 24px;
  min-height: 54px;
  padding: 8px 18px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: #171612;
  box-shadow: 0 18px 48px rgba(23, 22, 18, .24);
  color: #f8f4ec;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .025em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.chat-launcher:hover {
  background: var(--accent);
  box-shadow: 0 22px 56px rgba(23, 22, 18, .3);
  transform: translateY(-3px);
}

.chat-launcher:focus-visible,
.chat-close:focus-visible,
.chat-suggestions button:focus-visible,
.chat-form input:focus-visible,
.chat-form button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.chat-launcher-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-size: .67rem;
  letter-spacing: 0;
}

.chat-launcher-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 209, 139, .14);
}

.chat-assistant {
  position: fixed;
  z-index: 140;
  right: 24px;
  bottom: 24px;
  width: min(410px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto auto minmax(170px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  box-shadow: 0 30px 90px rgba(23, 22, 18, .28);
  color: var(--ink);
  transform-origin: right bottom;
  animation: chat-in .28s cubic-bezier(.2, .75, .25, 1);
}

.chat-assistant[hidden] {
  display: none;
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
}

.chat-header {
  padding: 19px 20px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #171612;
  color: #f8f4ec;
}

.chat-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chat-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.chat-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: transparent;
  color: #f8f4ec;
  font-size: 1.35rem;
  line-height: 1;
}

.chat-trust-note {
  padding: 10px 17px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--lime) 24%, var(--paper-bright));
  color: var(--ink-soft);
  font-size: .65rem;
  line-height: 1.45;
}

.chat-trust-note span {
  padding-top: 1px;
  color: #7b8843;
  font-size: .5rem;
}

.chat-messages {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.chat-message {
  margin: 0 0 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.chat-message.is-user {
  justify-content: flex-end;
}

.chat-message > div {
  max-width: 84%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.chat-message.is-user > div {
  border-color: #171612;
  background: #171612;
  color: #f8f4ec;
}

.chat-message p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.62;
}

.chat-message p + p {
  margin-top: 8px;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: .48rem;
  font-weight: 700;
}

.chat-answer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-answer-links a {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--sans);
  font-size: .61rem;
  font-weight: 700;
}

.chat-answer-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chat-suggestions {
  padding: 0 18px 11px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.chat-suggestions button {
  padding: 7px 10px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .61rem;
  font-weight: 600;
  white-space: nowrap;
}

.chat-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-form {
  margin: 0 18px;
  display: grid;
  grid-template-columns: 1fr 42px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: .71rem;
}

.chat-form input::placeholder {
  color: var(--ink-soft);
}

.chat-form button {
  width: 42px;
  height: 46px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

.chat-form button:hover {
  background: #171612;
}

.chat-footnote {
  margin: 8px 18px 12px;
  color: var(--ink-soft);
  font-size: .55rem;
  line-height: 1.45;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .65, .25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr .55fr;
    column-gap: 38px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability:nth-child(2) {
    border-right: 0;
  }

  .capability:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .speaking-quote {
    margin-top: 0;
  }
}

@media (max-width: 800px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 24px 0;
    display: block;
  }

  .hero::before {
    background: linear-gradient(var(--paper) 5%, rgba(244, 240, 232, .82) 50%, transparent);
  }

  .hero h1 {
    font-size: clamp(3.65rem, 15vw, 6rem);
  }

  .hero-copy {
    padding-bottom: 55px;
  }

  .eyebrow {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: .62rem;
  }

  .eyebrow span {
    width: 100%;
    margin-left: 48px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-portrait {
    max-width: 390px;
    padding-bottom: 64px;
  }

  .hero-proof {
    margin: 0 -24px;
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-label {
    margin-bottom: 52px;
  }

  .display-title {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .about-grid,
  .experience-heading,
  .impact-intro,
  .research-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-copy {
    padding-top: 0;
  }

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

  .capability {
    min-height: 235px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability:last-child {
    border-bottom: 0;
  }

  .experience-heading > p,
  .impact-intro p {
    margin-left: 0;
  }

  .timeline-trigger {
    grid-template-columns: 34px 1fr 38px;
    gap: 10px;
  }

  .timeline-role {
    display: block;
  }

  .timeline-role strong {
    display: block;
    font-size: 1.7rem;
  }

  .timeline-role small {
    display: block;
    min-width: 0;
    margin-top: 8px;
    text-align: left;
  }

  .timeline-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 44px;
    padding-right: 10px;
  }

  .timeline-item.is-open .timeline-panel {
    max-height: 720px;
  }

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

  .impact-feature {
    grid-row: auto;
    min-height: 650px;
  }

  .impact-card {
    min-height: 450px;
  }

  .impact-stat {
    margin-top: 110px;
  }

  .research-heading .button {
    justify-self: start;
  }

  .research-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .publication {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  .publication-index {
    display: none;
  }

  .speaking {
    gap: 70px;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .topic-list span:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .topic-list span:nth-child(even) {
    padding-left: 0;
  }

  .contact h2 {
    font-size: clamp(3.8rem, 16vw, 6.5rem);
  }

  .contact-bottom {
    flex-direction: column;
  }

  .contact-links {
    flex-wrap: wrap;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .chat-assistant {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(720px, calc(100dvh - 16px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Public engineering portfolio */
.impact-theme { display: block; margin: 28px 0 12px; font: 500 clamp(2rem, 3.5vw, 3.5rem)/1.1 var(--display); }
.projects { border-top: 1px solid var(--line); }
.project-context { max-width: 900px; color: var(--ink-soft); line-height: 1.8; margin: 0 0 40px; }
.project-context a { text-decoration: underline; text-underline-offset: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { padding: 32px; border: 1px solid var(--line); background: var(--paper-bright); display: flex; flex-direction: column; align-items: flex-start; }
.project-card h3 { font: 500 clamp(1.8rem, 3vw, 2.5rem)/1.15 var(--display); margin: 12px 0; }
.project-card p { color: var(--ink-soft); line-height: 1.75; }
.project-card .project-stack { font: 600 .76rem/1.7 var(--sans); color: var(--accent); }
.project-card .text-link { margin-top: auto; padding-top: 20px; }
.project-directory { margin-top: 30px; }
.project-applications { margin-top: 56px; scroll-margin-top: 110px; }
.project-applications > h3 { font: 500 clamp(1.8rem, 3vw, 2.5rem)/1.2 var(--display); margin: 0 0 16px; }
.project-applications > .project-context { margin-bottom: 24px; }
.project-repo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 0; margin: 0; list-style: none; }
.project-repo-list li { border-top: 1px solid var(--line); min-width: 0; }
.project-repo-list a { display: flex; flex-direction: column; gap: 9px; height: 100%; padding: 24px 8px; text-decoration: none; transition: background .2s ease; }
.project-repo-list a:hover { background: var(--paper-bright); }
.project-repo-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-repo-list strong { font: 600 1rem/1.5 var(--sans); color: var(--ink); }
.project-repo-list strong span { color: var(--accent); }
.project-repo-list a > span { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
@media (max-width: 720px) { .project-repo-list { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } .project-card { padding: 25px; } }


/* Project illustrations */
.project-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; margin: 0 0 24px; background: #eee7db; }


.project-panel { overflow: hidden; }
.project-repo-list .project-image { margin: 0 0 12px; flex: none; }
