:root {
  --ink: #101210;
  --paper: #f3f4ef;
  --paper-strong: #ffffff;
  --muted: #62675f;
  --line: #c8ccc4;
  --lime: #d7e685;
  --cyan: #66d9e8;
  --coral: #ff8066;
  --max: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(243, 244, 239, 0.96);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.header-contact,
.hero-actions,
.site-footer > div,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-weight: 730;
}

.brand img,
.site-footer img {
  border-radius: 2px;
}

.site-nav {
  gap: 30px;
}

.site-nav a,
.header-contact,
.footer-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.78;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.header-contact {
  justify-self: end;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: min(880px, 86svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("/assets/hero-systems.webp") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background: rgba(6, 8, 7, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 112px;
}

.eyebrow,
.section-kicker,
.project-type,
.timeline-org,
.research-label,
.capability-number {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  max-width: max-content;
  padding: 8px 10px;
  background: var(--lime);
  color: var(--ink);
}

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

h1 {
  max-width: 730px;
  margin: 30px 0 26px;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  font-weight: 780;
  line-height: 0.79;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 720;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-quiet {
  background: rgba(16, 18, 16, 0.44);
  color: #fff;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 30px;
  display: grid;
  gap: 4px;
  max-width: 380px;
  text-align: right;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

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

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

.intro {
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 72px 38px;
  border-bottom: 1px solid var(--line);
}

.intro-copy h2,
.section-heading h2,
.contact h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  font-weight: 720;
}

.intro-copy > p {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.signal-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.signal-grid > div {
  min-height: 128px;
  padding: 20px 16px 16px 0;
  border-right: 1px solid var(--line);
}

.signal-grid > div + div {
  padding-left: 20px;
}

.signal-grid > div:last-child {
  border-right: 0;
}

.signal-grid dt {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 760;
}

.signal-grid dd {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 38px;
  align-items: start;
  margin-bottom: 56px;
}

.section-heading h2 {
  margin: 0;
}

.project-list {
  border-top: 1px solid var(--ink);
}

.project {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.project-featured {
  grid-template-columns: 70px minmax(0, 1fr) minmax(210px, 0.72fr);
  padding: 46px 0;
}

.project-index {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.project-type {
  margin-bottom: 14px;
  color: var(--muted);
}

.project h3,
.timeline h3,
.capability-grid h3 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.12;
}

.project-body > p:not(.project-type) {
  max-width: 690px;
  margin-bottom: 22px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-list li::before {
  content: "•";
  margin-right: 7px;
  color: var(--coral);
}

.project-link {
  min-width: 102px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 720;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--coral);
  color: #b42f1b;
}

.project-mark {
  min-height: 205px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid #1e241f;
  border-radius: 4px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.project-mark span:nth-child(2) {
  color: var(--cyan);
  font-size: 2rem;
}

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

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 38px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline-org {
  margin-bottom: 8px;
  color: #3f6f6f;
}

.timeline-item h3 {
  max-width: 750px;
}

.timeline-item div:last-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.research {
  width: 100%;
  padding: 0;
  background: var(--ink);
  color: #fff;
}

.research-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.research .section-kicker {
  margin-bottom: 70px;
  color: rgba(255, 255, 255, 0.56);
}

.research-label {
  width: max-content;
  margin-bottom: 22px;
  padding: 8px 10px;
  background: var(--coral);
  color: var(--ink);
}

.research h2 {
  max-width: 1000px;
  margin-bottom: 30px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.research-inner > p:not(.section-kicker, .research-label, .research-citation) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.12rem;
}

.research-citation {
  margin: 42px 0 0;
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.capability-grid article {
  min-height: 310px;
  padding: 26px 28px 26px 0;
  border-right: 1px solid var(--line);
}

.capability-grid article + article {
  padding-left: 28px;
}

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

.capability-number {
  margin-bottom: 82px;
  color: #3f6f6f;
}

.capability-grid article > p:last-child {
  color: var(--muted);
}

.education {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 0.75fr;
  gap: 38px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.education-year {
  margin-bottom: 18px;
  color: #3f6f6f;
  font-size: 0.82rem;
  font-weight: 760;
}

.education-main h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.education-main > p:last-child,
.education-detail span {
  color: var(--muted);
}

.education-detail {
  padding-top: 42px;
}

.education-detail p {
  margin-bottom: 8px;
  font-weight: 750;
}

.education-detail span {
  font-size: 0.9rem;
}

.contact {
  width: 100%;
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--lime);
}

.contact-copy {
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 38px;
}

.contact-copy h2 {
  max-width: 920px;
}

.contact-copy > p:last-child {
  grid-column: 2;
  max-width: 600px;
  color: #485039;
  font-size: 1.1rem;
}

.contact-link {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 68px 0 0 calc(25% + 10px);
  padding: 0 0 10px;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  font-size: clamp(1.15rem, 3vw, 2.6rem);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #3e4d06;
}

.site-footer {
  min-height: 140px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: #fff;
}

.site-footer > div:first-child {
  gap: 10px;
  font-weight: 720;
}

.footer-links {
  gap: 24px;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-image {
    background-position: 63% center;
    opacity: 0.68;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .hero-meta {
    right: 24px;
    left: 24px;
    text-align: left;
  }

  .intro,
  .section-heading,
  .timeline-item,
  .contact-copy,
  .education {
    grid-template-columns: 1fr;
  }

  .signal-grid,
  .contact-copy > p:last-child {
    grid-column: 1;
  }

  .section-heading {
    gap: 26px;
  }

  .project,
  .project-featured {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .project-link,
  .project-mark {
    grid-column: 2;
  }

  .project-mark {
    min-height: 150px;
  }

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

  .capability-grid article,
  .capability-grid article + article {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-number {
    margin-bottom: 42px;
  }

  .education {
    gap: 44px;
  }

  .education-detail {
    padding-top: 0;
  }

  .contact-link {
    margin-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    padding-inline: 18px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding: 116px 0 160px;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6.2rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-meta {
    right: 18px;
    left: 18px;
  }

  .section,
  .research-inner {
    width: calc(100% - 36px);
    padding-block: 82px;
  }

  .intro {
    gap: 46px;
  }

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

  .signal-grid > div,
  .signal-grid > div + div {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid > div:last-child {
    border-bottom: 0;
  }

  .project,
  .project-featured {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .project-mark {
    padding: 18px 10px;
  }

  .research .section-kicker {
    margin-bottom: 52px;
  }

  .contact {
    padding: 82px 18px;
  }

  .contact-link {
    min-height: 72px;
    margin-top: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .footer-links {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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