@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #080d10;
  --panel: #0e1519;
  --panel-soft: #0b1115;
  --border: #243036;
  --border-bright: #34444b;
  --text: #eaf2f2;
  --muted: #94a2a7;
  --faint: #617077;
  --cyan: #35e6d1;
  --cyan-dark: #0ea99b;
  --lime: #c8ff4a;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 9%, rgba(53, 230, 209, 0.045), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--cyan);
  color: #061012;
}

.section-shell,
.site-header {
  width: min(calc(100% - 96px), var(--max));
  margin-inline: auto;
}

.site-header {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(39, 49, 55, 0.68);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  font: 400 43px/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.12em;
  color: var(--cyan);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  right: -3px;
  top: 22px;
  background: var(--lime);
  transform: rotate(-47deg);
  transform-origin: right;
}

.brand-rule {
  width: 1px;
  height: 42px;
  background: var(--border-bright);
}

.brand-name {
  font: 500 22px/1 "Space Grotesk", sans-serif;
}

nav {
  display: flex;
  gap: 44px;
}

nav a {
  color: #d2dada;
  font-size: 15px;
  position: relative;
}

nav a::after {
  content: "";
  height: 1px;
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  background: var(--cyan);
  transition: right 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  right: 0;
}

.contact-link {
  justify-self: end;
  width: 147px;
  height: 54px;
  border: 1px solid var(--lime);
  border-radius: 9px;
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  color: #091013;
  background: var(--lime);
  transform: translateY(-2px);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

a:hover .arrow-icon {
  transform: translateX(4px);
}

.hero {
  min-height: 550px;
  padding: 56px 0 38px;
  display: grid;
  grid-template-columns: minmax(490px, 0.92fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: 44px;
}

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

.eyebrow,
.section-kicker {
  font: 500 13px/1.4 "IBM Plex Mono", monospace;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 23px 0 16px;
  max-width: 710px;
  font: 400 clamp(58px, 5.1vw, 83px)/0.99 "Space Grotesk", sans-serif;
  letter-spacing: -0.052em;
}

.hero h1 span {
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(200, 255, 74, 0.32);
}

.hero-intro {
  margin: 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.button {
  min-width: 220px;
  height: 58px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font: 500 17px/1 "Space Grotesk", sans-serif;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

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

.button-primary {
  color: #061114;
  background: var(--cyan);
  border: 1px solid var(--cyan);
}

.button-primary:hover {
  background: #74f4e5;
}

.button-secondary {
  color: var(--lime);
  border: 1px solid var(--lime);
}

.button-secondary:hover {
  background: rgba(200, 255, 74, 0.08);
}

.hero-diagram {
  height: 470px;
  position: relative;
  overflow: hidden;
}

.hero-diagram svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.diagram-grid line {
  stroke: #1d292e;
  stroke-width: 0.7;
  stroke-dasharray: 2 5;
}

.diagram-label {
  z-index: 2;
  position: absolute;
  top: 3px;
  color: var(--cyan);
  font: 500 9px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input-label {
  left: 8%;
}

.transform-label {
  left: 42%;
}

.output-label {
  left: 74%;
}

.input-stack rect,
.basis-panels rect {
  fill: rgba(8, 13, 16, 0.68);
  stroke: #6cded4;
  stroke-width: 1;
}

.input-stack line {
  stroke: rgba(53, 230, 209, 0.4);
  stroke-width: 0.8;
}

.connections path {
  fill: none;
  stroke: #394a51;
  stroke-width: 1;
}

.connections path.active {
  stroke: url(#cyanFade);
  stroke-width: 1.3;
}

.basis-panels rect {
  stroke: #33454c;
  stroke-dasharray: 3 3;
}

.basis-panels circle {
  fill: var(--bg);
  stroke: #86b8bb;
  stroke-width: 1;
}

.basis-panels .basis-curve {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.35;
  stroke-dasharray: 200;
  animation: drawCurve 900ms ease both;
}

.representation > rect {
  fill: rgba(200, 255, 74, 0.06);
  stroke: var(--lime);
  stroke-width: 1;
}

.representation rect {
  fill: rgba(200, 255, 74, 0.09);
  stroke: rgba(200, 255, 74, 0.5);
  stroke-width: 0.8;
}

.representation rect.hot {
  fill: rgba(200, 255, 74, 0.8);
}

.representation path {
  fill: none;
  stroke: rgba(200, 255, 74, 0.22);
  stroke-width: 1;
}

.target-ring {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  filter: url(#softGlow);
}

.target-dot {
  fill: var(--lime);
}

.learnable-key {
  position: absolute;
  right: 7%;
  bottom: 20px;
  border: 1px dashed #3f5056;
  padding: 9px 14px;
  color: #74858b;
  font: 400 9px/1 "IBM Plex Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.learnable-key span {
  width: 9px;
  height: 9px;
  border: 1px solid #9db0b4;
  border-radius: 50%;
}

@keyframes drawCurve {
  from {
    stroke-dashoffset: 200;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.area-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 132px;
}

.area-card {
  min-height: 150px;
  padding: 27px 30px;
  background: rgba(14, 21, 25, 0.58);
  display: grid;
  grid-template-columns: 76px 1fr 20px;
  align-items: center;
  gap: 24px;
  position: relative;
  transition: background 190ms ease;
}

.area-card + .area-card {
  border-left: 1px solid var(--border);
}

.area-card:hover {
  background: rgba(19, 29, 34, 0.9);
}

.area-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  top: 0;
  height: 2px;
  background: var(--cyan);
  transition: right 220ms ease;
}

.area-card:hover::before {
  right: 0;
}

.area-card > svg:not(.arrow-icon) {
  grid-column: 1;
  width: 66px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.2;
}

.area-card:nth-child(2) > svg:not(.arrow-icon) {
  stroke: var(--lime);
}

.area-number {
  position: absolute;
  top: 13px;
  right: 15px;
  color: #445158;
  font: 400 9px/1 "IBM Plex Mono", monospace;
}

.area-card h2 {
  margin: 0 0 9px;
  font: 500 20px/1.2 "Space Grotesk", sans-serif;
}

.area-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.area-card > .arrow-icon {
  color: var(--cyan);
  align-self: end;
}

.content-section {
  padding: 112px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(560px, 1.25fr);
  gap: 10vw;
}

.section-heading h2,
.about h2 {
  max-width: 540px;
  margin: 20px 0 0;
  font: 500 clamp(40px, 4.5vw, 66px)/1.07 "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

.research-copy {
  padding-top: 30px;
}

.research-copy p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.research-copy .lead {
  color: var(--text);
  font: 400 26px/1.48 "Space Grotesk", sans-serif;
}

.topic-list,
.project-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.topic-list span,
.project-tags span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #9ba9ad;
  font: 400 11px/1 "IBM Plex Mono", monospace;
}

.publications {
  grid-template-columns: 0.54fr 1.46fr;
  gap: 7vw;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  margin-top: 34px;
  font-size: 14px;
}

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

.publication-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  position: relative;
  transition: border 180ms ease, transform 180ms ease;
}

.publication-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.publication-card.featured::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--lime);
}

.publication-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--cyan);
  font: 400 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.publication-meta span:last-child {
  color: var(--faint);
}

.publication-card h3 {
  max-width: 850px;
  margin: 0;
  font: 500 27px/1.28 "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.publication-card > p,
.publication-card summary > p {
  max-width: 780px;
  margin: 17px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.publication-card .authors {
  font-size: 13px;
  color: #697a80;
}

.publication-card > a,
.publication-details > a,
.project-card > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--lime);
  font-size: 13px;
}

.publication-card {
  overflow: hidden;
}

.publication-card summary,
.industrial-card summary {
  list-style: none;
  cursor: pointer;
}

.publication-card summary::-webkit-details-marker,
.industrial-card summary::-webkit-details-marker {
  display: none;
}

.publication-card summary:focus-visible,
.industrial-card summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 8px;
  border-radius: 3px;
}

.expand-label {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-size: 13px;
}

.expand-symbol {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 17px/1 "IBM Plex Mono", monospace;
  transition: transform 180ms ease;
}

.open-label {
  display: none;
}

.publication-card[open] .closed-label {
  display: none;
}

.publication-card[open] .open-label {
  display: inline;
}

.publication-card[open] .expand-symbol,
.industrial-card[open] .expand-symbol {
  transform: rotate(45deg);
}

.publication-details {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--border);
  animation: revealDetails 220ms ease both;
}

.publication-details .detail-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 500 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.publication-details > p:not(.detail-label) {
  margin: 0;
  max-width: 820px;
  color: #b3c0c3;
  line-height: 1.72;
}

.detail-topics,
.tool-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-topics span,
.tool-stack span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #9ba9ad;
  font: 400 10px/1 "IBM Plex Mono", monospace;
}

.publication-details > a {
  color: var(--lime);
  margin-top: 24px;
}

@keyframes revealDetails {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.applied-ai {
  display: block;
}

.applied-ai .section-heading,
.journey .section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  column-gap: 8vw;
  align-items: start;
  margin-bottom: 58px;
}

.applied-ai .section-heading .section-kicker,
.journey .section-heading .section-kicker {
  grid-column: 1;
}

.applied-ai .section-heading h2,
.journey .section-heading h2 {
  grid-column: 1;
}

.section-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 480px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.industrial-grid {
  display: grid;
  gap: 14px;
}

.industrial-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  transition: border 180ms ease, background 180ms ease;
}

.industrial-card:hover,
.industrial-card[open] {
  border-color: var(--border-bright);
  background: #0d1519;
}

.industrial-card summary {
  min-height: 190px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  gap: 26px;
  align-items: start;
}

.industrial-index {
  color: var(--cyan);
  font: 400 12px/1 "IBM Plex Mono", monospace;
}

.industrial-domain {
  margin: 0 0 14px;
  color: var(--lime);
  font: 400 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.industrial-card h3 {
  margin: 0 0 13px;
  font: 500 29px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.industrial-card summary div > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.industrial-card .expand-symbol {
  color: var(--cyan);
}

.industrial-details {
  margin: 0 32px 30px 116px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  animation: revealDetails 220ms ease both;
}

.industrial-details ul {
  margin: 0;
  padding-left: 18px;
  color: #b3c0c3;
  line-height: 1.8;
}

.journey {
  display: block;
}

.timeline {
  margin-left: min(24vw, 330px);
  border-left: 1px solid var(--border-bright);
}

.timeline-item {
  position: relative;
  padding: 3px 0 52px 48px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--cyan);
}

.timeline-item.current::before,
.timeline-item.research-track::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 16px rgba(200, 255, 74, 0.28);
}

.timeline-item.research-track {
  margin: 0 0 18px 22px;
  padding: 24px 28px;
  border: 1px solid rgba(53, 230, 209, 0.3);
  border-radius: 9px;
  background: rgba(53, 230, 209, 0.035);
}

.timeline-item.research-track::before {
  left: -29px;
  top: 30px;
}

.timeline-date {
  margin: 0 0 9px;
  color: var(--cyan);
  font: 400 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-item h3 {
  margin: 0;
  font: 500 26px/1.25 "Space Grotesk", sans-serif;
}

.timeline-place {
  margin: 7px 0 13px !important;
  color: var(--lime) !important;
  font-size: 13px !important;
}

.timeline-item > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-item.education::before {
  border-color: var(--lime);
}

.projects {
  display: block;
}

.projects .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 58px;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  min-height: 390px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(53, 230, 209, 0.035), transparent 52%),
    var(--panel-soft);
  display: flex;
  flex-direction: column;
  transition: border 180ms ease, transform 180ms ease;
}

.project-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(200, 255, 74, 0.035), transparent 52%),
    var(--panel-soft);
}

.project-card:hover {
  border-color: var(--cyan-dark);
  transform: translateY(-4px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cyan);
  font: 400 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
}

.project-language {
  color: var(--faint);
}

.project-card h3 {
  margin: 54px 0 14px;
  font: 500 38px/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.project-card > p {
  max-width: 570px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.project-tags {
  margin: 20px 0 0;
}

.project-card > a {
  margin-top: auto;
}

.about {
  padding: 122px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
}

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

.about-copy > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.about-copy > p:first-child {
  color: var(--text);
  font-size: 21px;
}

.about-links {
  display: flex;
  gap: 30px;
  margin-top: 42px;
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

footer {
  min-height: 140px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: var(--faint);
  font-size: 12px;
}

.footer-brand .brand-mark {
  font-size: 27px;
}

.footer-brand .brand-mark::after {
  width: 15px;
  top: 14px;
}

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

footer p {
  text-align: center;
}

footer > a {
  justify-self: end;
  color: var(--muted);
}

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

@media (max-width: 1180px) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 56px), var(--max));
  }

  nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
  }

  .hero h1 span {
    white-space: normal;
  }

  .area-card {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

  .area-card > .arrow-icon {
    display: none;
  }
}

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

  nav {
    display: none;
  }

  .contact-link {
    width: 122px;
  }

  .hero {
    padding-top: 70px;
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    margin-top: 25px;
  }

  .area-strip {
    grid-template-columns: 1fr;
  }

  .area-card + .area-card {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .content-section,
  .publications,
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .projects .section-heading {
    display: block;
  }

  .applied-ai .section-heading,
  .journey .section-heading {
    grid-template-columns: 1fr;
  }

  .section-note {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
  }

  .timeline {
    margin-left: 12px;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .site-header {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 82px;
  }

  .brand {
    gap: 12px;
  }

  .brand-name,
  .brand-rule {
    display: none;
  }

  .contact-link {
    width: 108px;
    height: 46px;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 24px;
  }

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

  .hero-intro {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-diagram {
    height: 340px;
    margin-inline: -10px;
  }

  .diagram-label,
  .learnable-key {
    display: none;
  }

  .area-strip {
    margin-bottom: 84px;
  }

  .area-card {
    padding: 24px 20px;
  }

  .content-section,
  .about {
    padding: 82px 0;
  }

  .section-heading h2,
  .about h2 {
    font-size: 43px;
  }

  .research-copy .lead {
    font-size: 22px;
  }

  .publication-card,
  .project-card {
    padding: 26px 22px;
  }

  .publication-card h3 {
    font-size: 23px;
  }

  .publication-meta {
    gap: 14px;
  }

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

  .project-card {
    min-height: 360px;
  }

  .industrial-card summary {
    min-height: 0;
    padding: 24px 20px;
    grid-template-columns: 36px 1fr 24px;
    gap: 12px;
  }

  .industrial-card h3 {
    font-size: 23px;
  }

  .industrial-details {
    margin: 0 20px 24px 68px;
  }

  .timeline-item {
    padding-left: 28px;
  }

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

  footer {
    padding: 36px 0;
    min-height: 190px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer p {
    text-align: left;
  }

  footer > a {
    justify-self: start;
  }
}

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

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


/* Expandable open-source projects */
.project-card {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.project-card summary {
  list-style: none;
  cursor: pointer;
}

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

.project-card summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 6px;
}

.project-card summary > p {
  max-width: 570px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.project-card[open] {
  border-color: var(--cyan-dark);
}

.project-card[open] .closed-label {
  display: none;
}

.project-card[open] .open-label {
  display: inline;
}

.project-card[open] .expand-symbol {
  transform: rotate(45deg);
}

.project-details {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: #b3c0c3;
  line-height: 1.72;
  animation: revealDetails 220ms ease both;
}

.project-details > p {
  margin: 0 0 18px;
}

.project-details ul {
  margin: 0;
  padding-left: 18px;
}

.project-details > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--lime);
  font-size: 13px;
}

/* Contact form */
.contact-section {
  padding: 122px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.15fr);
  gap: 9vw;
}

.contact-copy h2 {
  margin: 20px 0 22px;
  max-width: 620px;
  font: 500 clamp(40px, 4.5vw, 66px)/1.07 "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

.contact-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-direct {
  margin-top: 38px;
  display: grid;
  gap: 8px;
}

.contact-direct span {
  color: var(--cyan);
  font: 500 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-direct a {
  color: var(--lime);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}

.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field-wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--cyan);
  font: 500 14px/1.25 "IBM Plex Sans", sans-serif;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 56px;
  color: var(--text);
  background: #091014;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 16px 18px;
  font: 400 16px/1.5 "IBM Plex Sans", sans-serif;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 190px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 230, 209, 0.08);
}

.contact-form button {
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media (max-width: 640px) {
  .contact-section {
    padding: 82px 0;
  }

  .contact-copy h2 {
    font-size: 43px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 20px;
  }

  .form-field,
  .form-field-wide,
  .contact-form button {
    grid-column: 1;
  }
}
