:root {
  color-scheme: dark;
  --navy-950: #071b24;
  --navy-900: #0b2530;
  --ink: #dce8ea;
  --muted: #a9bdc1;
  --teal: #58bdb5;
  --teal-soft: #102e31;
  --coral: #f17b64;
  --lime: #bfd454;
  --focus: #f4a48f;
  --primary-button-text: #071b24;
  --paper: #08151b;
  --mist: #0d2028;
  --warm: #251e1b;
  --line: #2c444c;
  --surface-card: #0b1a21;
  --surface-highlight: #182318;
  --heading: #f2f7f7;
  --detail: #bfd0d3;
  --detail-line: rgba(197, 219, 223, 0.18);
  --image-surface: #ffffff;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

.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;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface-card);
  color: var(--heading);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.content {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

.section {
  scroll-margin-top: 72px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #b9d955;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 72px;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 27, 36, 0.96);
  color: white;
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 750;
}

.brand-photo {
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex: 0 0 40px;
  border: 1px solid #71868d;
  border-radius: 50%;
  background: white;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  transform: scale(1.08);
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13px;
  font-weight: 700;
}

.primary-navigation a {
  position: relative;
  color: #d8e1e3;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 170ms ease;
}

.primary-navigation a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #5b7078;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin-block: 4px;
  background: white;
}

.hero {
  position: relative;
  min-height: 600px;
  height: 80svh;
  max-height: 720px;
  overflow: hidden;
  background-color: var(--navy-950);
}

.hero-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 27, 36, 0.98) 0%, rgba(7, 27, 36, 0.92) 37%, rgba(7, 27, 36, 0.58) 64%, rgba(7, 27, 36, 0.16) 100%),
    linear-gradient(180deg, rgba(7, 27, 36, 0.04) 0%, rgba(7, 27, 36, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 52px;
  color: white;
}

.hero h1 {
  max-width: 860px;
  margin-top: 18px;
  font-size: 70px;
  font-weight: 800;
}

.hero-lead {
  max-width: 760px;
  margin-top: 25px;
  color: #d2dee1;
  font-size: 22px;
  line-height: 1.5;
}

.hero-support {
  max-width: 760px;
  margin-top: 10px;
  color: #b9c9cd;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--navy-900);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  background: var(--coral);
  color: var(--primary-button-text);
  border-color: var(--coral);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-950);
  border-color: white;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.text-link:hover {
  color: var(--coral);
}

.light-link {
  color: #eff5f5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: #c0cfd2;
  font-size: 13px;
  font-weight: 650;
}

.hero-meta span:last-child {
  padding-left: 14px;
  border-left: 3px solid var(--lime);
  color: white;
}

.about-section {
  padding-block: 110px;
}

.split-heading,
.publication-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 90px;
}

.split-heading h2,
.section-heading h2,
.publication-grid h2,
.contact-grid h2,
.credentials-grid h2 {
  margin-top: 17px;
  color: var(--heading);
  font-size: 44px;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.about-copy p,
.section-heading > p:last-child,
.case-details dd,
.project-output span,
.project-interpretation span,
.project-note,
.timeline div > p:last-child,
.contact-copy > p {
  text-align: left;
}

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

.section-heading {
  padding-block: 105px 68px;
}

.section-heading h2 {
  max-width: 820px;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
}

.compact-heading {
  padding-bottom: 48px;
}

.project-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.project-filter > p:first-child {
  flex: 0 0 auto;
  color: var(--heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-card);
  color: var(--detail);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.filter-button:hover {
  border-color: var(--teal);
  color: var(--heading);
}

.filter-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy-950);
}

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

.project {
  padding-block: 92px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.project:nth-child(4n + 2) {
  background: var(--teal-soft);
}

.project:nth-child(4n + 3) {
  background: var(--warm);
}

.project:nth-child(4n + 4) {
  background: var(--mist);
}

.featured-project {
  border-top: 5px solid var(--lime);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  align-items: start;
  gap: 72px;
}

.project:nth-child(even) .project-copy {
  grid-column: 2;
}

.project:nth-child(even) .project-result-column {
  grid-column: 1;
  grid-row: 1;
}

.project-result-column {
  min-width: 0;
  margin-top: 10px;
}

.project-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
}

.project-kicker span {
  color: var(--coral);
  font-size: 25px;
  font-weight: 800;
}

.project-kicker p,
.project-type {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-top: 17px;
  color: var(--heading);
  font-size: 35px;
}

.project-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(215, 154, 37, 0.45);
  border-radius: 999px;
  background: rgba(215, 154, 37, 0.10);
  color: var(--detail);
  font-size: 11px;
  font-weight: 700;
}

.project-stage span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d79a25;
}

.case-details {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid var(--detail-line);
}

.case-details > div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 18px;
  padding-block: 11px;
  border-bottom: 1px solid var(--detail-line);
}

.case-details dt {
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-details dd {
  color: var(--detail);
  font-size: 13px;
  line-height: 1.65;
}

.project-deep-dive {
  margin-top: 15px;
  border-bottom: 1px solid var(--detail-line);
}

.project-deep-dive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  color: var(--heading);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.project-deep-dive summary::-webkit-details-marker {
  display: none;
}

.project-deep-dive summary::after {
  color: var(--teal);
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.project-deep-dive[open] summary::after {
  content: "−";
}

.project-deep-dive .case-details {
  margin-top: 0;
}

.project-output,
.project-interpretation {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.project-output strong,
.project-interpretation strong,
.project-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-output span,
.project-interpretation span,
.project-note span {
  display: block;
}

.project-note {
  margin-top: 18px;
  padding-left: 13px;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.metric-context {
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.metric-context strong,
.metric-context span {
  display: block;
}

.metric-context strong {
  color: var(--heading);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  padding-block: 18px;
  border-block: 1px solid var(--detail-line);
}

.metric-context + .metric-row {
  margin-top: 8px;
}

.metric-row.four-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.metric-row > div:not(:first-child) {
  padding-left: 13px;
  border-left: 1px solid var(--detail-line);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--heading);
  font-size: 18px;
}

.metric-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.project-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 23px;
}

.project-visual {
  overflow: hidden;
  border: 1px solid var(--detail-line);
  border-radius: 4px;
  background: var(--image-surface);
  box-shadow: 0 22px 58px rgba(7, 27, 36, 0.12);
}

.project-image-link {
  display: block;
}

.project-image-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-visual figcaption {
  padding: 12px 15px;
  border-top: 1px solid var(--detail-line);
  background: var(--surface-card);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.publication-section {
  padding-block: 105px;
  background: var(--navy-900);
  color: white;
}

.publication-grid h2 {
  color: white;
}

.publication-record {
  padding-left: 28px;
  border-left: 4px solid var(--lime);
}

.publication-record p {
  margin-bottom: 14px;
  color: #c7d4d7;
  font-size: 14px;
}

.publication-record .publication-label {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-record .publication-title {
  color: white;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.42;
}

.experience-section {
  padding-bottom: 105px;
  background: var(--surface-card);
}

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

.timeline article {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 60px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.timeline h3 {
  color: var(--heading);
  font-size: 24px;
}

.timeline .organization {
  margin-top: 7px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 750;
}

.timeline div > p:last-child {
  max-width: 850px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.skills-section {
  padding-bottom: 105px;
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
}

.skills-grid article {
  min-height: 230px;
  padding: 29px 24px;
}

.skills-grid article + article {
  border-left: 1px solid var(--line);
}

.skills-grid h3 {
  color: var(--heading);
  font-size: 18px;
}

.skills-grid p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.credentials-section {
  padding-block: 105px;
  background: var(--surface-card);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}

.credentials-grid article {
  padding: 42px 40px;
}

.credentials-grid article + article {
  border-left: 1px solid var(--line);
}

.credentials-grid h2 {
  font-size: 30px;
}

.credential-place {
  margin-top: 13px;
  color: var(--teal);
  font-weight: 750;
}

.credential-place + p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.contact-section {
  padding-block: 105px;
  border-top: 1px solid var(--line);
  background: var(--surface-highlight);
}

.contact-copy > p {
  color: var(--muted);
  font-size: 17px;
}

.contact-copy .button {
  margin-top: 26px;
}

.contact-copy address {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.site-footer {
  background: var(--navy-950);
  color: #b9c8cb;
}

.footer-content {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .primary-navigation {
    gap: 18px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: 58px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid article:nth-child(4) {
    border-left: 0;
  }

  .skills-grid article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .content {
    width: min(calc(100% - 44px), var(--max-width));
  }

  .site-header {
    padding-inline: 22px;
  }

  .header-actions {
    gap: 10px;
  }

  .menu-button {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 18px 22px 24px;
    border-bottom: 1px solid #52666d;
    background: var(--navy-950);
  }

  .primary-navigation.open {
    display: grid;
  }

  .primary-navigation a {
    padding: 10px 0;
  }

  .hero {
    min-height: 630px;
    height: 80svh;
  }

  .hero h1 {
    max-width: 650px;
    font-size: 52px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .split-heading,
  .project-grid,
  .publication-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .publication-grid,
  .contact-grid {
    gap: 44px;
  }

  .project-grid {
    gap: 42px;
  }

  .project:nth-child(even) .project-copy,
  .project:nth-child(even) .project-result-column {
    grid-column: auto;
    grid-row: auto;
  }

  .project-result-column {
    margin-top: 0;
  }

  .project-visual {
    max-width: 760px;
  }

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

  .skills-grid article:nth-child(3),
  .skills-grid article:nth-child(5) {
    border-left: 0;
  }

  .skills-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .content {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand > span:last-child {
    display: none;
  }

  .primary-navigation {
    top: 64px;
  }

  .hero {
    min-height: 0;
    height: auto;
    max-height: none;
    background-image: url("assets/hero/data-ai-system-mobile-v2.webp?v=20260809");
    background-position: center top;
    background-size: cover;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 27, 36, 0.6) 0%, rgba(7, 27, 36, 0.44) 70%, rgba(7, 27, 36, 0.3) 100%),
      linear-gradient(180deg, rgba(7, 27, 36, 0.08) 0%, rgba(7, 27, 36, 0.16) 60%, rgba(7, 27, 36, 0.34) 100%);
  }

  .hero-wallpaper {
    display: none;
  }

  .hero-content {
    height: auto;
    padding-block: 52px 64px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
  }

  .hero h1 {
    font-size: 41px;
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 17px;
  }

  .hero-support {
    margin-top: 9px;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    align-items: center;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-actions .text-link {
    justify-self: center;
    margin-top: 3px;
  }

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

  .hero-meta span:last-child {
    padding-left: 0;
    border-left: 0;
  }

  .about-section,
  .publication-section,
  .credentials-section,
  .contact-section {
    padding-block: 78px;
  }

  .split-heading h2,
  .section-heading h2,
  .publication-grid h2,
  .contact-grid h2 {
    font-size: 34px;
  }

  .about-copy,
  .section-heading > p:last-child,
  .contact-copy > p {
    font-size: 15px;
  }

  .section-heading {
    padding-block: 78px 50px;
  }

  .project-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .project-filter-actions {
    width: 100%;
  }

  .filter-button {
    flex: 1 1 calc(33.333% - 8px);
  }

  .project {
    padding-block: 66px;
  }

  .project-copy h3 {
    font-size: 29px;
  }

  .case-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .metric-row,
  .metric-row.four-metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }

  .metric-row > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .metric-row > div:nth-child(n + 3) {
    padding-top: 12px;
    border-top: 1px solid var(--detail-line);
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skills-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid article + article,
  .credentials-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .skills-grid article {
    min-height: auto;
  }

  .credentials-grid article {
    padding: 33px 24px;
  }

  .contact-copy .button {
    width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .footer-content {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
  }
}

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

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