:root {
  --background: #f7f6f2;
  --surface: #eceae3;
  --ink: #24231f;
  --muted: #777268;
  --line: #d6d2c8;
  --accent: #575044;
  --content-width: 100rem;
  --gutter: clamp(1.25rem, 4vw, 5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.08rem);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.site-width {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  color: var(--background);
  background: var(--ink);
  transform: translateY(-200%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: clamp(5rem, 8vw, 7rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 1.45rem + 0.8vw, 2.5rem);
  font-style: italic;
  text-decoration: none;
}

.primary-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.25rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav {
  color: var(--muted);
  font-size: clamp(0.98rem, 0.88rem + 0.25vw, 1.18rem);
  letter-spacing: 0.025em;
}

.primary-nav a,
.site-footer a {
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.page-main {
  display: grid;
  min-height: min(46rem, calc(100svh - 7rem));
  grid-template-columns: minmax(3rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-content: center;
  padding-block: clamp(5rem, 11vw, 11rem);
}

.page-number {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.page-content {
  max-width: 52rem;
}

.page-content h1 {
  max-width: none;
}

.page-content > p {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.25rem);
}

.back-link {
  font-size: 0.82rem;
}

.hero {
  display: grid;
  min-height: min(52rem, calc(100svh - 6rem));
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 9rem);
}

.hero-copy {
  max-width: 52rem;
}

.eyebrow,
.section-number {
  margin: 0 0 clamp(2rem, 5vw, 4.5rem);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


.hero .eyebrow {
  font-size: clamp(1rem, 0.92rem + 0.24vw, 1.2rem);
  letter-spacing: 0.13em;
}
h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  font: 400 clamp(2.7rem, 6.4vw, 7.2rem) / 0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.introduction {
  max-width: 44rem;
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.3rem);
  line-height: 1.75;
}

.introduction p {
  margin-bottom: 1.35em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 0.92rem + 0.24vw, 1.2rem);
}

.hero-links span {
  display: inline-block;
  margin-left: 0.35rem;
}

.portrait {
  width: min(100%, 27rem);
  margin: 0;
  justify-self: end;
}

.portrait-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--line);
}

.portrait figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.86rem + 0.18vw, 1.08rem);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.currently {
  color: #f5f3eb;
  border-block: 1px solid #34332e;
  background:
    radial-gradient(circle at 82% 30%, rgb(217 255 67 / 7%), transparent 24%),
    #24231f;
}

.currently-inner {
  display: grid;
  grid-template-columns: minmax(11rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.currently-heading .section-number {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: #8f8c83;
}

.currently-heading h2 {
  margin: 0;
  font: 400 clamp(2.5rem, 4.5vw, 4.75rem) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.currently-heading h2 > span {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.8rem;
  border-radius: 50%;
  vertical-align: 0.22em;
  background: #d9ff43;
  box-shadow: 0 0 1.25rem rgb(217 255 67 / 65%);
  animation: current-pulse 2.8s ease-in-out infinite;
}

.currently dl {
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.currently dl > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.24fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.currently dt {
  color: #99978f;
  font-size: clamp(0.82rem, 0.78rem + 0.14vw, 0.94rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.currently dd {
  margin: 0;
  color: #f5f3eb;
  font: 400 clamp(1.15rem, 1rem + 0.45vw, 1.55rem) / 1.35 Georgia, "Times New Roman", serif;
}

.currently a {
  text-decoration-color: rgb(217 255 67 / 55%);
}

.currently a:hover {
  color: #d9ff43;
}

@keyframes current-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.78);
  }
}

@media (max-width: 800px) {
  .currently-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .currently dl > div {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .currently-heading h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .currently-heading h2 > span {
    animation: none;
  }
}

.site-footer {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner {
  display: grid;
  min-height: clamp(8rem, 14vw, 12rem);
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .portrait {
    width: min(75vw, 24rem);
    justify-self: start;
  }


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

  .site-footer p:last-child {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 6.5rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
  }

  .primary-nav {
    width: 100%;
    font-size: 0.86rem;
  }

  .primary-nav ul {
    justify-content: flex-start;
    gap: 0.45rem 1.25rem;
  }

  .hero {
    gap: 3rem;
    padding-block: 3.5rem 4.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .eyebrow {
    margin-bottom: 2.5rem;
  }

  .portrait {
    width: min(82vw, 22rem);
  }


  .footer-inner {
    min-height: 10rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-content: center;
  }

  .page-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
/* Projects showcase */
.projects-page {
  --project-dark: #0b0d0d;
  --project-light: #f2f0e9;
  --project-lime: #d9ff43;
  --project-blue: #3159ff;
  --project-orange: #ff6846;
  color: #f5f3eb;
  background: var(--project-dark);
}

.projects-page .site-header {
  color: #f5f3eb;
  border-color: rgb(255 255 255 / 18%);
  background: var(--project-dark);
}

.projects-page .primary-nav {
  color: #aaa9a2;
}

.projects-page .primary-nav a[aria-current="page"] {
  color: var(--project-lime);
  text-decoration-color: currentColor;
}

.projects-page .skip-link {
  color: var(--project-dark);
  background: var(--project-lime);
}

.projects-hero {
  display: grid;
  min-height: min(52rem, calc(100svh - 7rem));
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  padding-block: clamp(5rem, 11vw, 10rem);
  background:
    radial-gradient(circle at 78% 22%, rgb(217 255 67 / 9%), transparent 25%);
}

.projects-kicker,
.case-meta,
.archive-header > p {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  color: #9b9b93;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.8rem, 8.7vw, 9.5rem);
  line-height: 0.88;
  color: #f5f3eb;
}

.projects-intro {
  padding-bottom: 0.4rem;
}

.projects-intro > p {
  max-width: 32rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  font: 400 clamp(1.25rem, 1rem + 0.8vw, 2rem) / 1.5 Georgia, "Times New Roman", serif;
}

.project-index {
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.project-index a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding-block: 0.8rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  color: #b9b8b1;
  font-size: 0.78rem;
  text-decoration: none;
}

.project-index a:hover {
  color: var(--project-lime);
}

.project-index span {
  color: #71716c;
}

.case-study {
  overflow: hidden;
}

.case-inner {
  padding-block: clamp(5rem, 10vw, 10rem);
}

.case-header {
  display: grid;
  grid-template-columns: minmax(3rem, 0.15fr) minmax(0, 0.85fr);
  column-gap: clamp(2rem, 6vw, 7rem);
  margin-bottom: clamp(3rem, 7vw, 7rem);
}

.case-number {
  grid-row: 1 / span 3;
  margin: 0;
  font: 400 clamp(3rem, 6vw, 6rem) / 1 Georgia, "Times New Roman", serif;
}

.case-meta {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.case-header h2 {
  max-width: 13ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
  font: 400 clamp(2.7rem, 6vw, 6.8rem) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.case-lede {
  max-width: 53rem;
  margin: 0;
  color: #b9b8b1;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.25rem);
}

.project-visual {
  position: relative;
  overflow: hidden;
}

.race-study {
  border-top: 1px solid rgb(255 255 255 / 18%);
  background:
    linear-gradient(135deg, #101313, #080909 65%);
}

.race-study .case-number,
.race-study .visual-status,
.race-study .performance-strip dd {
  color: var(--project-lime);
}

.race-visual {
  min-height: clamp(27rem, 58vw, 50rem);
  border: 1px solid rgb(217 255 67 / 35%);
  background-color: #090b0b;
  background-image:
    linear-gradient(rgb(217 255 67 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(217 255 67 / 6%) 1px, transparent 1px);
  background-size: 42px 42px;
}

.race-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 9rem rgb(0 0 0 / 80%);
  pointer-events: none;
}

.race-visual svg {
  position: absolute;
  inset: 7% 4% 12%;
  z-index: 1;
  width: 92%;
  height: 81%;
}

.course-shadow,
.course-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-shadow {
  stroke: rgb(217 255 67 / 14%);
  stroke-width: 42;
}

.course-line {
  stroke: var(--project-lime);
  stroke-width: 4;
  stroke-dasharray: 12 18;
  animation: course-flow 7s linear infinite;
}

.course-gates rect {
  fill: rgb(9 11 11 / 70%);
  stroke: #f5f3eb;
  stroke-width: 3;
}

.drone-marker circle {
  fill: var(--project-lime);
}

.drone-marker path {
  stroke: var(--project-lime);
  stroke-width: 7;
}

.visual-status {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.visual-status span {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.telemetry {
  position: absolute;
  z-index: 2;
  top: clamp(3.8rem, 7vw, 6rem);
  display: grid;
  gap: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.telemetry span {
  color: #777973;
}

.telemetry strong {
  margin-bottom: 0.8rem;
  color: #f5f3eb;
  font-size: clamp(0.82rem, 1.2vw, 1.1rem);
}

.telemetry-left {
  left: clamp(1rem, 3vw, 2rem);
}

.telemetry-right {
  right: clamp(1rem, 3vw, 2rem);
  text-align: right;
}

.stack-labels {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: space-between;
  color: #95978f;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.performance-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.performance-strip div {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid rgb(255 255 255 / 18%);
}

.performance-strip div:first-child {
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.performance-strip dt {
  margin-bottom: 0.7rem;
  color: #82847e;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.performance-strip dd {
  margin: 0;
  font: 400 clamp(1.8rem, 3.3vw, 3.8rem) / 1 Georgia, "Times New Roman", serif;
}

.performance-strip small {
  font: 400 0.7rem / 1 "Courier New", monospace;
}

.turbulence-study {
  color: #131618;
  background: #f1f0ea;
}

.turbulence-study .case-lede,
.turbulence-study .case-meta {
  color: #656760;
}

.turbulence-study .case-number {
  color: var(--project-blue);
}

.split-copy {
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
}

.split-copy .case-number {
  grid-row: auto;
}

.split-copy > div:last-child {
  grid-column: 2;
  grid-row: 1;
}

.flow-visual {
  min-height: clamp(32rem, 47vw, 44rem);
  display: grid;
  align-items: center;
  border: 1px solid #c8c7c0;
  background: #e8e7e0;
}

.radar-field {
  position: absolute;
  top: 50%;
  left: 3%;
  width: min(28vw, 24rem);
  aspect-ratio: 1;
  border: 1px solid rgb(49 89 255 / 30%);
  border-radius: 50%;
  transform: translateY(-50%);
  background: conic-gradient(from 12deg, rgb(49 89 255 / 24%), transparent 22%);
}

.radar-field::before,
.radar-field::after,
.radar-field span {
  position: absolute;
  border: 1px solid rgb(49 89 255 / 24%);
  border-radius: 50%;
  content: "";
}

.radar-field::before {
  inset: 18%;
}

.radar-field::after {
  inset: 36%;
}

.radar-field span:nth-child(1) {
  inset: 49%;
  border-color: var(--project-blue);
  background: var(--project-blue);
  box-shadow: 0 0 28px var(--project-blue);
}

.system-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem);
  list-style: none;
}

.system-flow li {
  position: relative;
  min-height: 11rem;
  padding: 1.2rem;
  border: 1px solid #b8b8b1;
  background: rgb(241 240 234 / 82%);
}

.system-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -1.1rem;
  width: 2.2rem;
  height: 1px;
  content: "";
  background: var(--project-blue);
}

.system-flow span,
.system-flow small {
  display: block;
  color: #74766f;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-flow strong {
  display: block;
  margin-block: 2.8rem 0.25rem;
  font: 400 clamp(0.9rem, 1.2vw, 1.15rem) / 1.2 Georgia, "Times New Roman", serif;
}

.case-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #c8c7c0;
}

.case-notes p {
  margin: 0;
  padding: 1.3rem 0;
  font-size: 0.78rem;
}

.case-notes span {
  display: block;
  color: #777970;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evtol-study {
  color: #f2f0e8;
  background: #111a28;
}

.evtol-study .case-number {
  color: var(--project-orange);
}

.trajectory-visual {
  padding: clamp(1.25rem, 4vw, 4rem);
  border: 1px solid rgb(255 255 255 / 18%);
  background: #0d1520;
}

.plot-heading {
  display: flex;
  justify-content: space-between;
  color: #8c97a6;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trajectory-visual svg {
  width: 100%;
  min-height: 26rem;
}

.plot-grid path {
  stroke: rgb(255 255 255 / 9%);
  stroke-width: 1;
}

.plot-target {
  fill: none;
  stroke: rgb(255 255 255 / 45%);
  stroke-width: 2;
  stroke-dasharray: 9 9;
}

.plot-line {
  fill: none;
  stroke-width: 5;
}

.line-one { stroke: #7e8a9b; }
.line-two { stroke: #48a3ff; }
.line-three { stroke: var(--project-orange); }

.plot-legend,
.method-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.25rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9ba6b5;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plot-legend span {
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.legend-one { background: #7e8a9b; }
.legend-two { background: #48a3ff; }
.legend-three { background: var(--project-orange); }
.legend-target { border-top: 2px dashed rgb(255 255 255 / 45%); }

.method-rack {
  justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 12%);
}

.method-rack span {
  color: #d9dde4;
}

.project-archive {
  padding-block: clamp(6rem, 12vw, 12rem);
  color: #1a1a18;
  background: var(--project-light);
}

.archive-header {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.archive-header > p {
  color: #77766f;
}

.archive-header h2 {
  margin: 0;
  font: 400 clamp(3rem, 7vw, 7.5rem) / 0.9 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.archive-list {
  border-top: 1px solid #bdbbb3;
}

.archive-list article {
  display: grid;
  grid-template-columns: minmax(3rem, 0.12fr) minmax(0, 1fr) minmax(12rem, 0.35fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid #bdbbb3;
}

.archive-number,
.archive-tags {
  margin: 0;
  color: #77766f;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-list h3 {
  margin: 0 0 0.8rem;
  font: 400 clamp(1.65rem, 3vw, 3rem) / 1.05 Georgia, "Times New Roman", serif;
}

.archive-list article div p {
  max-width: 48rem;
  margin: 0;
  color: #5e5d57;
  font-size: 0.9rem;
}

.archive-tags {
  text-align: right;
}

.projects-footer {
  color: #8d8d86;
  background: var(--project-dark);
}

.projects-footer a {
  justify-self: end;
  text-decoration: none;
}

@keyframes course-flow {
  to { stroke-dashoffset: -120; }
}

@media (max-width: 900px) {
  .projects-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-header,
  .split-copy {
    grid-template-columns: 1fr;
  }

  .case-number {
    grid-row: auto;
    margin-bottom: 1.5rem;
  }

  .split-copy > div:last-child {
    grid-column: 1;
    grid-row: auto;
  }

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

  .system-flow li:not(:last-child)::after {
    display: none;
  }

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

  .performance-strip div:first-child {
    border-left: 0;
  }

  .case-notes,
  .archive-header {
    grid-template-columns: 1fr;
  }

  .archive-list article {
    grid-template-columns: 3rem 1fr;
  }

  .archive-tags {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .projects-page .header-inner {
    min-height: 9.5rem;
  }

  .projects-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .race-visual {
    min-height: 30rem;
  }

  .race-visual svg {
    inset: 17% 2% 14%;
    width: 96%;
    height: 69%;
  }

  .telemetry-left {
    top: 4.2rem;
  }

  .stack-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }

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

  .performance-strip div {
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }

  .system-flow {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }

  .system-flow li {
    min-height: 8rem;
  }

  .system-flow strong {
    margin-top: 1.5rem;
  }

  .case-notes {
    grid-template-columns: 1fr;
  }

  .trajectory-visual svg {
    min-height: 18rem;
  }

  .plot-heading p:last-child {
    display: none;
  }

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

  .archive-tags {
    grid-column: 1;
  }

  .projects-footer a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-line {
    animation: none;
  }
}
.competition-link {
  color: var(--project-lime);
  text-decoration-color: rgb(217 255 67 / 45%);
}

.race-achievement {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  margin: 0 0 clamp(3rem, 6vw, 6rem);
  border-block: 1px solid rgb(255 255 255 / 18%);
}

.race-achievement > div {
  padding: clamp(1.5rem, 4vw, 4rem) 0;
}

.race-achievement > div + div {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.race-achievement dt {
  margin-bottom: 1rem;
  color: #858780;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.race-achievement dd {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  margin: 0;
}

.race-achievement strong {
  color: var(--project-lime);
  font: 400 clamp(5rem, 11vw, 11rem) / 0.75 Georgia, "Times New Roman", serif;
  letter-spacing: -0.06em;
}

.race-achievement span {
  max-width: 12rem;
  color: #d0cfc8;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.5;
  text-transform: uppercase;
}

.performance-strip .role-value {
  font: 400 clamp(1.25rem, 2.1vw, 2.2rem) / 1.05 Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .race-achievement {
    grid-template-columns: 1fr;
  }

  .race-achievement > div + div {
    padding-left: 0;
    border-top: 1px solid rgb(255 255 255 / 18%);
    border-left: 0;
  }

  .race-achievement dd {
    justify-content: space-between;
  }
}
/* Predictive turbulence suppression */
.predictive-visual {
  overflow: hidden;
  border: 1px solid #1e3dde;
  color: #f7f8ff;
  background: #1538eb;
}

.lookahead-stage {
  position: relative;
  min-height: clamp(32rem, 52vw, 49rem);
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    radial-gradient(circle at 72% 50%, rgb(217 255 67 / 16%), transparent 18%),
    #1538eb;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.lookahead-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 12rem rgb(4 14 85 / 44%);
  pointer-events: none;
}

.lookahead-stage svg {
  position: absolute;
  z-index: 1;
  inset: 9% 3% 6%;
  width: 94%;
  height: 85%;
}

.turbulence-field path {
  fill: none;
  stroke: rgb(255 255 255 / 70%);
  stroke-width: 4;
  stroke-dasharray: 13 15;
  animation: atmosphere-flow 8s linear infinite;
}

.lidar-cone {
  fill: url(#scan-field);
  stroke: rgb(217 255 67 / 70%);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.sample-points circle {
  fill: var(--project-lime);
  filter: drop-shadow(0 0 9px var(--project-lime));
}

.aircraft-shape path {
  fill: #f7f8ff;
  stroke: #f7f8ff;
  stroke-width: 2;
}

.aircraft-shape circle {
  fill: var(--project-lime);
}

.control-response path {
  fill: none;
  stroke: var(--project-lime);
  stroke-width: 6;
}

.control-response marker path {
  fill: var(--project-lime);
}

.prediction-line {
  fill: none;
  stroke: var(--project-lime);
  stroke-width: 4;
  stroke-dasharray: 5 12;
}

.scene-label {
  position: absolute;
  z-index: 3;
  max-width: 15rem;
}

.scene-label span,
.scene-label strong {
  display: block;
}

.scene-label span {
  margin-bottom: 0.25rem;
  color: rgb(255 255 255 / 62%);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-label strong {
  font: 400 clamp(0.95rem, 1.4vw, 1.3rem) / 1.2 Georgia, "Times New Roman", serif;
}

.disturbance-label {
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
}

.lidar-label {
  top: clamp(1rem, 3vw, 2rem);
  left: 43%;
}

.response-label {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  text-align: right;
}

.prediction-caption {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prediction-caption span {
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: var(--project-lime);
}

.predictive-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 24%);
  list-style: none;
}

.predictive-loop li {
  min-height: 14rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.predictive-loop li + li {
  border-left: 1px solid rgb(255 255 255 / 24%);
}

.predictive-loop span,
.predictive-loop small {
  display: block;
}

.predictive-loop span {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: var(--project-lime);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.predictive-loop strong {
  display: block;
  margin-bottom: 0.8rem;
  font: 400 clamp(1rem, 1.5vw, 1.4rem) / 1.2 Georgia, "Times New Roman", serif;
}

.predictive-loop small {
  color: rgb(255 255 255 / 66%);
  font-size: 0.72rem;
  line-height: 1.6;
}

.contribution-ledger {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  border-bottom: 1px solid #c8c7c0;
  color: #161816;
}

.contribution-ledger > div {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.contribution-ledger > div + div {
  border-left: 1px solid #c8c7c0;
}

.ledger-heading {
  padding-left: 0 !important;
}

.ledger-heading > p,
.contribution-ledger span {
  margin: 0 0 1rem;
  color: #6c6e67;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ledger-heading h3 {
  max-width: 14rem;
  margin: 0;
  font: 400 clamp(1.4rem, 2.3vw, 2.2rem) / 1.05 Georgia, "Times New Roman", serif;
}

.contribution-ledger div > p:last-child {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

@keyframes atmosphere-flow {
  to { stroke-dashoffset: -140; }
}

@media (max-width: 900px) {
  .predictive-loop {
    grid-template-columns: 1fr 1fr;
  }

  .predictive-loop li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 24%);
  }

  .predictive-loop li:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 24%);
  }

  .contribution-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-heading {
    grid-column: 1 / -1;
  }

  .contribution-ledger > div:nth-child(2),
  .contribution-ledger > div:nth-child(4) {
    border-left: 0;
  }

  .contribution-ledger > div:nth-child(n+4) {
    border-top: 1px solid #c8c7c0;
  }
}

@media (max-width: 560px) {
  .lookahead-stage {
    min-height: 30rem;
  }

  .lookahead-stage svg {
    inset: 18% -18% 8%;
    width: 136%;
    height: 74%;
  }

  .lidar-label {
    left: 47%;
  }

  .response-label strong,
  .disturbance-label strong {
    max-width: 8rem;
  }

  .predictive-loop,
  .contribution-ledger {
    grid-template-columns: 1fr;
  }

  .predictive-loop li {
    min-height: auto;
  }

  .predictive-loop li + li,
  .predictive-loop li:nth-child(3),
  .predictive-loop li:nth-child(4),
  .contribution-ledger > div + div {
    border-top: 1px solid rgb(255 255 255 / 24%);
    border-left: 0;
  }

  .contribution-ledger > div + div {
    border-color: #c8c7c0;
  }

  .ledger-heading {
    grid-column: 1;
  }

  .prediction-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .turbulence-field path {
    animation: none;
  }
}
.commercial-impact {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #11140d;
  background: var(--project-lime);
}

.commercial-impact > p {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.commercial-impact dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.commercial-impact dl > div {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid rgb(17 20 13 / 28%);
}

.commercial-impact dt {
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  color: rgb(17 20 13 / 65%);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.commercial-impact dd {
  margin: 0;
}

.commercial-impact strong,
.commercial-impact span {
  display: block;
}

.commercial-impact strong {
  font: 400 clamp(3.5rem, 7vw, 7rem) / 0.8 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}

.commercial-impact span {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .commercial-impact,
  .commercial-impact dl {
    grid-template-columns: 1fr;
  }

  .commercial-impact dl > div {
    padding: 1.5rem 0;
    border-top: 1px solid rgb(17 20 13 / 28%);
    border-left: 0;
  }
}

/* Readable editorial labels across the projects page */
.projects-page {
  --project-label-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.95rem);
  --project-detail-size: clamp(0.86rem, 0.82rem + 0.12vw, 0.98rem);
}

.projects-kicker,
.case-meta,
.archive-header > p,
.visual-status,
.telemetry,
.stack-labels,
.performance-strip dt,
.system-flow span,
.system-flow small,
.case-notes span,
.plot-heading,
.plot-legend,
.method-rack,
.archive-number,
.archive-tags,
.race-achievement dt,
.scene-label span,
.prediction-caption,
.predictive-loop span,
.ledger-heading > p,
.contribution-ledger span,
.commercial-impact > p,
.commercial-impact dt,
.commercial-impact span {
  font-size: var(--project-label-size);
}

.predictive-loop small,
.contribution-ledger div > p:last-child,
.case-notes p {
  font-size: var(--project-detail-size);
}

@media (max-width: 560px) {
  .projects-page {
    --project-label-size: 0.9rem;
    --project-detail-size: 0.95rem;
  }
}
/* Experience chronology */
.experience-page {
  --experience-line: #c9c5bb;
  --experience-accent: #514d43;
  color: #201f1b;
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgb(36 35 31 / 2%) 50%, transparent 50.05%),
    var(--background);
}

.experience-hero {
  display: flex;
  min-height: min(44rem, calc(90svh - 7rem));
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(5rem, 9vw, 9rem);
  padding-block: clamp(4rem, 7vw, 7rem) clamp(5rem, 9vw, 8rem);
}

.experience-overview {
  display: grid;
  width: min(76rem, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(34rem, 1.3fr);
  border-block: 1px solid var(--experience-line);
}

.experience-heading {
  width: 100%;
}

.experience-kicker {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--muted);
  font-size: clamp(0.82rem, 0.78rem + 0.14vw, 0.94rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.experience-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 0.78;
}

.experience-range {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem);
  border-right: 1px solid var(--experience-line);
  text-align: center;
}

.experience-range p {
  margin-bottom: 1rem;
  font: 400 clamp(2.8rem, 3.6vw, 4rem) / 0.9 Georgia, "Times New Roman", serif;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.experience-range span {
  max-width: 24rem;
  color: var(--muted);
  font: 400 clamp(1rem, 0.94rem + 0.2vw, 1.15rem) / 1.45 Georgia, "Times New Roman", serif;
}


.academic-context {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.academic-logo {
  display: block;
  width: clamp(12rem, 15vw, 15.5rem);
  height: auto;
  margin: 0;
  object-fit: contain;
}

.academic-context dl {
  margin: 0;
  border-top: 1px solid rgb(81 77 67 / 16%);
}

.academic-context dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(12rem, 1.3fr);
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgb(81 77 67 / 16%);
}

.academic-context dt,
.academic-context dd {
  margin: 0;
  font-size: clamp(0.94rem, 0.88rem + 0.18vw, 1.08rem);
}

.academic-context dt {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.academic-context dd {
  color: var(--ink);
}
.experience-timeline {
  padding-bottom: clamp(7rem, 14vw, 14rem);
}

.experience-timeline ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--experience-line);
  list-style: none;
}

.timeline-entry {
  display: grid;
  grid-template-columns: minmax(9rem, 0.22fr) minmax(0, 1fr);
}

.timeline-year {
  position: relative;
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 3.5rem) 0;
  border-right: 1px solid var(--experience-line);
  border-bottom: 1px solid var(--experience-line);
}

.timeline-year::after {
  position: absolute;
  top: 3.8rem;
  right: -0.34rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--experience-accent);
  border-radius: 50%;
  content: "";
  background: var(--background);
}

.timeline-year time {
  font: 400 clamp(2.8rem, 5vw, 5.4rem) / 0.85 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.timeline-year span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-entry details {
  border-bottom: 1px solid var(--experience-line);
}

.timeline-entry summary {
  display: grid;
  min-height: 13rem;
  grid-template-columns: minmax(18rem, 1.2fr) minmax(12rem, 0.8fr) 2rem;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}

.timeline-entry summary::-webkit-details-marker {
  display: none;
}

.timeline-entry summary:hover {
  background: rgb(36 35 31 / 3%);
}

.entry-identity p {
  margin-bottom: 0.8rem;
  color: var(--experience-accent);
  font-size: clamp(0.9rem, 0.85rem + 0.16vw, 1.02rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-identity h2 {
  max-width: 33rem;
  margin: 0;
  font: 400 clamp(1.55rem, 2.5vw, 2.75rem) / 1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.entry-scope {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.84rem + 0.18vw, 1.04rem);
}

.entry-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--experience-line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.timeline-entry details[open] .entry-toggle {
  color: var(--ink);
  border-color: var(--ink);
  transform: rotate(45deg);
}

.entry-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 0 clamp(2rem, 4vw, 4rem) clamp(2.25rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
}

.entry-detail p {
  max-width: 54rem;
  margin: 0;
  color: #5e5a52;
  font: 400 clamp(1.05rem, 0.98rem + 0.25vw, 1.25rem) / 1.55 Georgia, "Times New Roman", serif;
}

.entry-detail a {
  white-space: nowrap;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .experience-hero {
    min-height: auto;
  }

  .experience-overview {
    grid-template-columns: 1fr;
  }

  .experience-range {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--experience-line);
    text-align: center;
  }

  .academic-context {
    grid-template-columns: minmax(13rem, 0.7fr) minmax(20rem, 1.3fr);
  }

  .timeline-entry {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .timeline-entry summary {
    grid-template-columns: 1fr 2rem;
    gap: 1.5rem;
  }

  .entry-scope {
    grid-column: 1;
  }

  .entry-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 600px) {
  .experience-hero {
    gap: 4.5rem;
  }

  .academic-context {
    grid-template-columns: 1fr;
  }

  .academic-logo {
    width: min(14rem, 75vw);
  }

  .academic-context dl > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .experience-hero h1 {
    font-size: clamp(3.7rem, 19vw, 6rem);
  }

  .timeline-entry {
    grid-template-columns: 1fr;
  }

  .timeline-year {
    min-height: auto;
    flex-direction: row;
    align-items: baseline;
    padding: 2.5rem 0 1.5rem;
    border-right: 0;
    border-bottom: 0;
  }

  .timeline-year::after {
    display: none;
  }

  .timeline-year time {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .timeline-entry summary {
    min-height: auto;
    padding: 0 0 2.5rem;
  }

  .entry-detail {
    grid-template-columns: 1fr;
    padding: 0 0 2.5rem;
  }
}
/* Research: technical paper meets museum */
.research-page {
  --research-ink: #17202a;
  --research-paper: #f2efe7;
  --research-rule: #c9c8c0;
  --research-blue: #2254c7;
  --research-gold: #d6a93b;
  --research-red: #b44d3d;
  color: var(--research-ink);
  background: var(--research-paper);
}

.research-hero {
  display: grid;
  min-height: min(48rem, calc(100svh - 7rem));
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: clamp(4rem, 9vw, 10rem);
  align-items: end;
  padding-block: clamp(6rem, 11vw, 11rem);
}

.research-kicker,
.pillar-name {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: #687078;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 9.5rem);
  line-height: 0.86;
}

.research-intro > p {
  max-width: 35rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font: 400 clamp(1.25rem, 1rem + 0.75vw, 1.9rem) / 1.45 Georgia, "Times New Roman", serif;
}

.research-index {
  border-top: 1px solid var(--research-rule);
}

.research-index a {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--research-rule);
  color: #545b61;
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.92rem);
  text-decoration: none;
}

.research-index a:hover {
  color: var(--research-blue);
}

.research-index span {
  color: #8d9295;
}

.research-pillar {
  overflow: hidden;
  border-top: 1px solid var(--research-rule);
}

.uncertainty-pillar {
  background: #e7ebea;
}

.coordination-pillar {
  color: #f3f1e9;
  background: #111b25;
}

.learning-pillar {
  background: #f1ece2;
}

.research-inner {
  padding-block: clamp(6rem, 11vw, 11rem);
}

.pillar-header {
  display: grid;
  grid-template-columns: minmax(6rem, 0.2fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.pillar-number {
  margin: 0;
  color: var(--research-blue);
  font: 400 clamp(4rem, 8vw, 8rem) / 0.8 Georgia, "Times New Roman", serif;
  letter-spacing: -0.06em;
}

.coordination-pillar .pillar-number {
  color: var(--research-gold);
}

.learning-pillar .pillar-number {
  color: var(--research-red);
}

.pillar-name {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.coordination-pillar .pillar-name {
  color: #aeb7be;
}

.pillar-header h2 {
  max-width: 16ch;
  margin: 0;
  font: 400 clamp(2.8rem, 6vw, 6.6rem) / 0.96 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.research-exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.exhibit-reversed {
  grid-template-columns: minmax(17rem, 0.55fr) minmax(0, 1.45fr);
}

.technical-visual {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #c3c8c8;
  background: #f8f9f7;
}

.technical-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: #697279;
  font-size: clamp(0.72rem, 0.68rem + 0.12vw, 0.82rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.technical-visual > svg {
  display: block;
  width: 100%;
  height: auto;
}

.equation {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-block: 1rem;
  border-block: 1px solid #d0d4d3;
  color: #28333c;
  font: 400 clamp(1.1rem, 1rem + 0.7vw, 1.75rem) / 1.35 Georgia, "Times New Roman", serif;
  text-align: center;
}

.equation > span {
  color: var(--research-blue);
  font-style: italic;
}

.equation strong {
  font-weight: 400;
}

.research-grid path {
  fill: none;
  stroke: #dce0de;
  stroke-width: 1;
}

.uncertainty-bands ellipse {
  fill: rgb(34 84 199 / 7%);
  stroke: rgb(34 84 199 / 34%);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.candidate-paths path {
  fill: none;
  stroke: rgb(34 84 199 / 30%);
  stroke-width: 3;
}

.candidate-paths .nominal-path {
  stroke: var(--research-blue);
  stroke-width: 6;
}

.target circle:first-child {
  fill: none;
  stroke: var(--research-red);
  stroke-width: 3;
}

.target circle:last-child {
  fill: var(--research-red);
}

.uncertainty-visual text {
  fill: #677079;
  font: 24px "Courier New", monospace;
  letter-spacing: 0.08em;
}

.research-ledger {
  border-top: 1px solid #aeb5b5;
}

.research-ledger section {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
  border-bottom: 1px solid #aeb5b5;
}

.research-ledger h3 {
  margin: 0 0 1.25rem;
  color: #697279;
  font-size: clamp(0.76rem, 0.72rem + 0.12vw, 0.86rem);
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-ledger p {
  margin: 0;
  font: 400 clamp(1rem, 0.94rem + 0.2vw, 1.15rem) / 1.6 Georgia, "Times New Roman", serif;
}

.recent-work a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.94rem);
  text-decoration: none;
}

.recent-work a + a {
  border-top: 1px solid rgb(105 114 121 / 22%);
}

.recent-work a:hover {
  color: var(--research-blue);
}

.coordination-pillar .research-ledger {
  border-color: rgb(255 255 255 / 24%);
}

.coordination-pillar .research-ledger section,
.coordination-pillar .recent-work a + a {
  border-color: rgb(255 255 255 / 24%);
}

.coordination-pillar .research-ledger h3 {
  color: #9da8af;
}

.coordination-pillar .recent-work a:hover {
  color: var(--research-gold);
}

.coordination-visual {
  border-color: rgb(255 255 255 / 20%);
  color: #f3f1e9;
  background:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    #0c151e;
  background-size: 42px 42px;
}

.coordination-visual figcaption {
  color: #9da8af;
}

.network-edges path {
  fill: none;
  stroke: rgb(214 169 59 / 45%);
  stroke-width: 3;
}

.agent-nodes circle {
  fill: #0c151e;
  stroke: var(--research-gold);
  stroke-width: 4;
}

.node-labels text {
  fill: #f3f1e9;
  font: 20px "Courier New", monospace;
  text-anchor: middle;
}

.convergence-strip {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  align-items: end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.convergence-strip > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.convergence-strip span {
  grid-column: 1 / -1;
  color: #9da8af;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.convergence-strip strong {
  font: 400 1rem / 1 "Courier New", monospace;
}

.convergence-strip strong:last-child {
  color: var(--research-gold);
  text-align: right;
}

.convergence-strip svg {
  width: 100%;
}

.convergence-axis,
.convergence-line {
  fill: none;
}

.convergence-axis {
  stroke: rgb(255 255 255 / 25%);
}

.convergence-line {
  stroke: var(--research-gold);
  stroke-width: 4;
}

.architecture-visual {
  background: #fbfaf5;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}

.architecture-flow > i {
  color: var(--research-red);
  font: normal 400 clamp(1.4rem, 2.5vw, 2.4rem) / 1 Georgia, "Times New Roman", serif;
}

.architecture-node {
  min-height: 12rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid #bfc0ba;
}

.architecture-node span,
.architecture-node strong,
.architecture-node small {
  display: block;
}

.architecture-node span {
  margin-bottom: 3.5rem;
  color: #7a7b75;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.architecture-node strong {
  margin-bottom: 0.6rem;
  font: 400 clamp(1rem, 1.5vw, 1.35rem) / 1.15 Georgia, "Times New Roman", serif;
}

.architecture-node small {
  color: #777973;
  font-size: 0.75rem;
}

.learned-node {
  border-top: 4px solid var(--research-blue);
}

.control-node {
  border-top: 4px solid var(--research-red);
}

.plant-node {
  border-top: 4px solid #495b42;
}

.feedback-loop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px dashed #a9aaa4;
  color: #62645f;
  font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.88rem);
}

.feedback-loop span {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feedback-loop strong {
  font-weight: 400;
  text-align: center;
}

.feedback-loop i {
  color: var(--research-red);
  font-style: normal;
}

.response-plot {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid #c8c9c3;
}

.target-response,
.learned-response,
.raw-response {
  fill: none;
}

.target-response {
  stroke: #7c807e;
  stroke-width: 3;
  stroke-dasharray: 10 10;
}

.learned-response {
  stroke: var(--research-red);
  stroke-width: 6;
}

.raw-response {
  stroke: rgb(34 84 199 / 45%);
  stroke-width: 3;
}

.response-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: #6b6e69;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.response-legend span {
  display: inline-block;
  width: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.legend-target-line {
  border-top: 2px dashed #7c807e;
}

.legend-structured-line {
  border-top: 3px solid var(--research-red);
}

.legend-raw-line {
  border-top: 2px solid rgb(34 84 199 / 55%);
}

@media (max-width: 950px) {
  .research-hero,
  .research-exhibit,
  .exhibit-reversed {
    grid-template-columns: 1fr;
  }

  .research-hero {
    min-height: auto;
  }

  .exhibit-reversed .technical-visual {
    order: -1;
  }
}

@media (max-width: 650px) {
  .research-hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .pillar-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillar-number {
    font-size: 4.5rem;
  }

  .pillar-header h2 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .technical-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .equation {
    overflow-x: auto;
    font-size: 1rem;
    white-space: nowrap;
  }

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

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .architecture-flow > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .architecture-node {
    min-height: auto;
  }

  .architecture-node span {
    margin-bottom: 2rem;
  }

  .feedback-loop {
    grid-template-columns: 1fr;
  }

  .feedback-loop strong {
    text-align: left;
  }
}

/* Awards */
.awards-page {
  --award-red: #c83a2b;
  --award-dark: #181714;
  --award-paper: #f3f0e7;
}

.awards-intro {
  padding-block: clamp(4rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem);
}

.awards-kicker,
.award-source,
.recognition-heading > p,
.recognition-index,
.recognition-source,
.recognition-role {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.awards-kicker {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.awards-intro h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 8.6rem);
  line-height: 0.91;
}

.twenties-award {
  overflow: hidden;
  color: var(--award-paper);
  background:
    radial-gradient(circle at 76% 25%, rgb(200 58 43 / 20%), transparent 24%),
    var(--award-dark);
}

.twenties-inner {
  display: grid;
  min-height: min(70rem, 92svh);
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 10rem);
}

.twenties-copy {
  display: grid;
  grid-template-columns: minmax(7rem, 0.36fr) minmax(0, 0.64fr);
  align-items: end;
}

.award-source {
  grid-column: 1 / -1;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: #a9a59b;
}

.twenties-mark {
  grid-row: 2 / span 2;
  margin: 0;
  color: var(--award-red);
  font: italic 400 clamp(10rem, 24vw, 25rem) / 0.68 Georgia, "Times New Roman", serif;
  letter-spacing: -0.1em;
}

.twenties-title {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(1.1rem, 2.5vw, 2.25rem);
}

.twenties-title p {
  margin-bottom: 0.35rem;
  font-size: clamp(0.75rem, 0.68rem + 0.3vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.twenties-title h2 {
  margin: 0;
  font: 400 clamp(2.6rem, 6.2vw, 6.6rem) / 0.88 Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
}

.twenties-statement {
  grid-column: 1 / -1;
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  font: 400 clamp(1.4rem, 1rem + 1.2vw, 2.6rem) / 1.28 Georgia, "Times New Roman", serif;
}

.award-link {
  grid-column: 1 / -1;
  width: fit-content;
  color: #c2beb4;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration-color: rgb(200 58 43 / 80%);
}

.award-link:hover {
  color: #fff;
}

.award-photo-placeholder {
  width: min(100%, 31rem);
  margin: 0;
  justify-self: end;
}

.photo-frame {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  border: 1px solid rgb(243 240 231 / 28%);
  background: #22211d;
}

.photo-frame::before,
.photo-frame::after {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  content: "";
}

.photo-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--award-red);
  border-left: 3px solid var(--award-red);
}

.photo-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--award-red);
  border-bottom: 3px solid var(--award-red);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.award-photo-placeholder figcaption {
  margin-top: 0.85rem;
  color: #79766f;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.secondary-recognition {
  display: grid;
  grid-template-columns: minmax(13rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding-block: clamp(6rem, 11vw, 11rem);
}

.recognition-heading > p {
  margin-bottom: 1.25rem;
}

.recognition-heading h2 {
  max-width: 7ch;
  margin: 0;
  font: 400 clamp(2.8rem, 5vw, 5.5rem) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.recognition-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-top: 1px solid var(--line);
}

.recognition-grid article {
  min-height: 27rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recognition-grid article:first-child {
  border-left: 1px solid var(--line);
}

.recognition-index {
  margin-bottom: auto;
}

.recognition-source {
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.recognition-result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.recognition-result strong {
  color: var(--award-red);
  font: italic 400 clamp(4.5rem, 9vw, 9rem) / 0.75 Georgia, "Times New Roman", serif;
  letter-spacing: -0.06em;
}

.recognition-result span {
  color: var(--muted);
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.95rem);
}

.recognition-role {
  margin-bottom: 1.5rem;
}

.recognition-grid a {
  width: fit-content;
  font-size: 0.72rem;
}

.academic-honors {
  max-width: 8ch;
  margin-bottom: 1.25rem;
  font: 400 clamp(2.25rem, 4.4vw, 4.6rem) / 0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.academic-honors span {
  color: var(--award-red);
}

@media (max-width: 900px) {
  .twenties-inner,
  .secondary-recognition {
    grid-template-columns: 1fr;
  }

  .twenties-inner {
    min-height: auto;
  }
}

/* CV */
.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.cv-kicker {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.9;
}

.cv-intro > p {
  max-width: 35rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font: 400 clamp(1.15rem, 1rem + 0.55vw, 1.65rem) / 1.5 Georgia, "Times New Roman", serif;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.8rem;
  align-items: center;
}

.cv-actions a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-primary-action {
  padding: 0.9rem 1.25rem;
  color: var(--background);
  background: var(--ink);
  text-decoration: none;
}

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

.resume-viewer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.resume-viewer object {
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 48rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.resume-viewer object > p {
  max-width: 35rem;
  margin: 0;
  padding: 3rem;
}

@media (max-width: 800px) {
  .cv-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .resume-viewer object {
    min-height: 42rem;
    border-inline: 0;
  }
}
@media (max-width: 900px) {

  .award-photo-placeholder {
    width: min(72vw, 29rem);
    justify-self: start;
  }

  .recognition-heading h2 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .twenties-copy {
    grid-template-columns: minmax(7rem, 0.48fr) minmax(0, 0.52fr);
  }

  .twenties-mark {
    font-size: clamp(9rem, 42vw, 13rem);
  }

  .twenties-title h2 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .award-photo-placeholder {
    width: 100%;
  }

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

  .recognition-grid article {
    min-height: 22rem;
    border-left: 1px solid var(--line);
  }
}

/* Home contact */
.home-contact {
  display: flex;
  min-height: clamp(7rem, 12vw, 10rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.home-contact h2 {
  margin: 0;
  color: var(--muted);
  font: 400 0.68rem / 1.4 "Courier New", Courier, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-contact > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.5rem, 4vw, 3.5rem);
  justify-content: flex-end;
}

.home-contact a {
  color: var(--muted);
  font-size: clamp(0.72rem, 0.68rem + 0.12vw, 0.82rem);
  letter-spacing: 0.04em;
}

.home-contact a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .home-contact {
    min-height: 9rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
  }

  .home-contact > div {
    justify-content: flex-start;
  }
}
