:root {
  color-scheme: light dark;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --ink: #0a1429;
  --muted: #536078;
  --faint: #5f6b81;
  --rule: #cbd4e2;
  --signal: #086f97;
  --signal-soft: #dceff6;
  --accent: #6746db;
  --night: #071123;
  --night-surface: #0c1932;
  --night-rule: #233657;
  --night-text: #f4f7fb;
  --night-muted: #a9b8ce;
  --masthead: rgba(7, 17, 35, 0.96);
  --measure: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071123;
    --surface: #0c1932;
    --ink: #f4f7fb;
    --muted: #a9b8ce;
    --faint: #8ea1bc;
    --rule: #233657;
    --signal: #59d7f5;
    --signal-soft: #102d44;
    --accent: #9a82ff;
    --masthead: rgba(7, 17, 35, 0.96);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --ink: #0a1429;
  --muted: #536078;
  --faint: #5f6b81;
  --rule: #cbd4e2;
  --signal: #086f97;
  --signal-soft: #dceff6;
  --accent: #6746db;
  --masthead: rgba(7, 17, 35, 0.96);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071123;
  --surface: #0c1932;
  --ink: #f4f7fb;
  --muted: #a9b8ce;
  --faint: #8ea1bc;
  --rule: #233657;
  --signal: #59d7f5;
  --signal-soft: #102d44;
  --accent: #9a82ff;
  --masthead: rgba(7, 17, 35, 0.96);
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

button {
  font: inherit;
}

.icon {
  display: block;
  width: 18px;
  height: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1 {
  margin-block: 0;
  font-size: 2em;
}

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

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

.masthead {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px max(24px, calc((100vw - var(--measure)) / 2));
  border-bottom: 1px solid var(--rule);
  background: var(--masthead);
  backdrop-filter: blur(10px);
}

.wordmark {
  color: var(--night-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.masthead nav a {
  color: var(--night-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--night-text);
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--night-muted);
  cursor: pointer;
  place-items: center;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--night-surface);
  color: var(--night-text);
}

.identity,
.proof,
.selected-work,
.current-note,
.inner-page,
.article-page,
.project-page {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}

.identity {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(50px, 10vw, 140px);
  align-items: center;
  padding: clamp(76px, 11vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}

.discipline,
.section-label,
.meta {
  margin: 0 0 14px;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.identity h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 94px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.positioning {
  max-width: 820px;
  margin: 32px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.34;
}

.working-style {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
}

.primary-links a {
  font-size: 14px;
  font-weight: 700;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 260px;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.portrait figcaption,
.project-media figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
}

.proof,
.selected-work {
  padding: clamp(70px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--rule);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-intro-inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-intro h2,
.experience-index h2,
.research-record h2,
.doctoral-record h2,
.research-themes h2,
.teaching-record h2,
.teaching-areas h2,
.project-evidence h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.proof dl {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.proof dl > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.proof dt {
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.proof dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
}

.work-list {
  border-top: 1px solid var(--rule);
}

.work-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 240px;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.work-index {
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.work-copy h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.18;
}

.work-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.work-copy h3 a:hover {
  color: var(--signal);
}

.work-copy p:not(.meta) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.work-role {
  color: var(--muted);
  font-size: 13px;
}

.work-role span {
  display: block;
}

.work-role span + span {
  margin-top: 10px;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.current-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 36px;
  align-items: baseline;
  padding: 48px 0 78px;
}

.current-note p {
  margin: 0;
}

.current-note p:nth-child(2) {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px max(24px, calc((100vw - var(--measure)) / 2));
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 12px;
}

.footer strong,
.footer span,
.footer a {
  display: block;
}

.footer strong {
  color: var(--ink);
  font-size: 14px;
}

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

.inner-page {
  padding-bottom: 100px;
}

.page-heading {
  max-width: 940px;
  padding: clamp(80px, 11vw, 140px) 0 clamp(58px, 8vw, 96px);
}

.page-heading h1,
.article-page h1,
.project-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.04;
}

.page-heading > p:last-child,
.article-page article > header > p,
.project-summary {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.compact-heading {
  max-width: 820px;
}

.experience-index,
.research-record,
.doctoral-record,
.research-themes,
.teaching-record,
.teaching-areas {
  padding: 78px 0;
  border-top: 1px solid var(--rule);
}

.experience-index article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 38px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.experience-index article time {
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.experience-index article h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.experience-index article p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.research-record ol {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.research-record li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.research-record time {
  color: var(--signal);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

.research-record h3 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.research-record h3 a {
  color: var(--ink);
  text-decoration: none;
}

.research-record p {
  margin: 8px 0 0;
  color: var(--muted);
}

.research-record .doi {
  overflow-wrap: anywhere;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.doctoral-record,
.teaching-record {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(50px, 9vw, 120px);
}

.doctoral-record p,
.teaching-record p {
  margin-top: 0;
  color: var(--muted);
}

.doctoral-record dl {
  margin: 30px 0 0;
}

.doctoral-record dl > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.doctoral-record dt {
  color: var(--faint);
  font-size: 12px;
}

.doctoral-record dd {
  margin: 0;
}

.research-themes ul,
.teaching-areas ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  list-style: none;
}

.research-themes li,
.teaching-areas li {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.teaching-record ol {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: teaching;
}

.teaching-record li {
  position: relative;
  padding: 18px 0 18px 46px;
  border-top: 1px solid var(--rule);
  counter-increment: teaching;
}

.teaching-record li::before {
  position: absolute;
  left: 0;
  color: var(--faint);
  content: counter(teaching, decimal-leading-zero);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.teaching-connection {
  max-width: 820px;
  padding-top: 72px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.teaching-connection a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

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

.notes-index article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.notes-index time,
.article-page article > header time {
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.notes-index h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.24;
}

.notes-index h2 a {
  color: var(--ink);
  text-decoration: none;
}

.notes-index p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.article-page {
  max-width: 900px;
  padding: 88px 0 120px;
}

.article-page article > header {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.back-link {
  display: block;
  margin-bottom: 40px;
  font-size: 13px;
  font-weight: 700;
}

.article-page article > header time {
  display: block;
  margin-bottom: 20px;
}

.article-body {
  max-width: 760px;
  padding: 24px 0 60px;
}

.article-body section {
  padding-top: 44px;
}

.article-body h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.article-body p {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
}

.article-page article > footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

.project-page {
  max-width: 1040px;
  padding: 84px 0 120px;
}

.project-heading {
  max-width: 900px;
}

.project-heading dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  border-top: 1px solid var(--rule);
}

.project-heading dl > div {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--rule);
}

.project-heading dt {
  color: var(--faint);
  font-size: 12px;
}

.project-heading dd {
  margin: 5px 0 0;
}

.project-media {
  margin: 72px 0 0;
}

.project-media img {
  width: 100%;
  max-height: 720px;
  border: 1px solid var(--rule);
  background: var(--surface);
  object-fit: contain;
}

.project-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 8vw, 100px);
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

.project-evidence p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.project-next {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-top: 36px;
}

.project-next p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 850px) {
  .masthead nav {
    gap: 14px;
  }

  .identity {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 50px;
  }

  .portrait img {
    width: 190px;
  }

  .work-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .work-role {
    grid-column: 2;
  }

  .research-themes ul,
  .teaching-areas ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .masthead {
    min-height: 58px;
    padding-inline: 16px;
  }

  .wordmark {
    width: 30px;
    overflow: hidden;
    font-size: 0;
  }

  .wordmark::before {
    font-size: 14px;
    content: "AG";
  }

  .masthead nav a:nth-child(3),
  .masthead nav a:nth-child(4) {
    display: none;
  }

  .masthead nav {
    gap: 10px;
  }

  .identity,
  .proof,
  .selected-work,
  .current-note,
  .inner-page,
  .article-page,
  .project-page {
    width: calc(100% - 32px);
  }

  .identity {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 68px 0;
  }

  .identity h1,
  .page-heading h1,
  .article-page h1,
  .project-heading h1 {
    font-size: 47px;
  }

  .positioning {
    font-size: 24px;
  }

  .portrait {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: end;
  }

  .portrait img {
    width: 110px;
  }

  .portrait figcaption {
    margin: 0;
  }

  .proof dl > div,
  .experience-index article,
  .research-record li,
  .notes-index article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-intro-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 0;
  }

  .work-copy h3 {
    font-size: 24px;
  }

  .current-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer,
  .article-page article > footer,
  .project-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer div:last-child {
    text-align: left;
  }

  .doctoral-record,
  .teaching-record,
  .project-evidence {
    grid-template-columns: 1fr;
  }

  .research-themes ul,
  .teaching-areas ul {
    grid-template-columns: 1fr;
  }

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

  .project-heading dl > div {
    padding-right: 0;
  }

  .article-body p {
    font-size: 18px;
  }
}

/* Technical portfolio homepage */
.home-page .masthead {
  border-color: var(--night-rule);
}

.home-page main {
  overflow: hidden;
}

.tech-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding: 88px max(24px, calc((100vw - var(--measure)) / 2)) 96px;
  background: var(--night);
  color: var(--night-text);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.availability {
  display: flex;
  max-width: 660px;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--night-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.hero-name {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
}

.availability span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.tech-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 66px;
  font-weight: 700;
  line-height: 1.02;
}

.tech-hero h1 strong {
  color: #59d7f5;
  font-weight: 700;
}

.hero-intro {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--night-muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid #506382;
  border-radius: 4px;
  color: var(--night-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: #59d7f5;
  color: #59d7f5;
}

.button-primary {
  border-color: #177fa6;
  background: #177fa6;
  color: #ffffff;
}

.button-primary:hover {
  border-color: #59d7f5;
  background: #59d7f5;
  color: var(--night);
}

.text-action {
  padding: 9px 4px;
  color: #59d7f5;
  font-size: 13px;
  font-weight: 700;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 0;
  border-top: 1px solid var(--night-rule);
}

.hero-facts div {
  min-width: 0;
  padding: 18px 16px 0 0;
}

.hero-facts dt {
  color: #7184a2;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 7px 0 0;
  color: #dbe5f3;
  font-size: 12px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.network-motif {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: -110px;
  width: 440px;
  opacity: 0.42;
}

.hero-portrait {
  position: absolute;
  z-index: 2;
  top: 64px;
  right: 20px;
  width: min(330px, 74%);
  margin: 0;
}

.portrait-offset {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 100%;
  height: 100%;
  border: 1px solid #7c5cff;
  background: #33236f;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #4d6283;
  object-fit: cover;
}

.hero-portrait figcaption {
  padding: 14px 0 0;
  color: var(--night-text);
  font-size: 13px;
  font-weight: 700;
}

.hero-portrait figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--night-muted);
  font-size: 11px;
  font-weight: 400;
}

.system-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8px;
  width: min(360px, 88%);
  padding: 18px 20px;
  border: 1px solid #32486b;
  border-left: 3px solid #59d7f5;
  border-radius: 4px;
  background: var(--night-surface);
}

.system-card span,
.system-card strong,
.system-card small {
  display: block;
}

.system-card span {
  color: #59d7f5;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.system-card strong {
  margin-top: 7px;
  font-size: 15px;
}

.system-card small {
  margin-top: 7px;
  color: var(--night-muted);
  font-size: 11px;
}

.evidence-strip {
  padding: 0 max(24px, calc((100vw - var(--measure)) / 2));
  border-top: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  background: var(--night-surface);
  color: var(--night-text);
}

.evidence-strip dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.evidence-strip dl > div {
  min-width: 0;
  padding: 25px 24px;
  border-left: 1px solid var(--night-rule);
}

.evidence-strip dl > div:last-child {
  border-right: 1px solid var(--night-rule);
}

.evidence-strip dt {
  color: #7184a2;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.evidence-strip dd {
  margin: 8px 0 0;
  color: #dbe5f3;
  font-size: 13px;
  line-height: 1.5;
}

.home-about,
.home-projects,
.home-research {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 56px;
}

.home-section-heading h2,
.home-contact h2 {
  max-width: 760px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 46px;
  line-height: 1.08;
}

.home-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.terminal-panel {
  border: 1px solid var(--night-rule);
  border-radius: 6px;
  background: var(--night);
  color: #dbe5f3;
}

.terminal-panel header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--night-rule);
}

.terminal-panel header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40506a;
}

.terminal-panel header span:nth-child(1) {
  background: #ef6a68;
}

.terminal-panel header span:nth-child(2) {
  background: #e3b341;
}

.terminal-panel header span:nth-child(3) {
  background: #4ade80;
}

.terminal-panel header strong {
  margin-left: 8px;
  color: #7f91ad;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 400;
}

.terminal-panel > div {
  padding: 24px;
}

.terminal-panel p {
  margin: 0 0 20px;
  color: #aebdd2;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.75;
}

.terminal-panel p:last-child {
  margin-bottom: 0;
}

.terminal-panel .prompt {
  color: #59d7f5;
  font-weight: 700;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.focus-grid article {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.focus-grid article > span {
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.focus-grid h3 {
  margin: 34px 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

.focus-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-skills {
  padding: 110px max(24px, calc((100vw - var(--measure)) / 2));
  border-top: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
  background: var(--night);
  color: var(--night-text);
}

.home-skills .home-section-heading > p {
  color: var(--night-muted);
}

.home-skills .section-label {
  color: #59d7f5;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
  align-items: center;
}

.skills-layout > img {
  width: 100%;
  opacity: 0.74;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--night-rule);
  border-left: 1px solid var(--night-rule);
}

.skill-groups section {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--night-rule);
  border-bottom: 1px solid var(--night-rule);
}

.skill-groups h3 {
  margin: 0 0 16px;
  color: #59d7f5;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 400;
}

.skill-groups ul,
.project-card-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-groups li {
  padding: 5px 8px;
  border: 1px solid #314667;
  border-radius: 3px;
  color: #d6e0ee;
  font-size: 11px;
}

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

.featured-project {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}

.featured-project-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
}

.project-image {
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #e7edf5;
}

.featured-project-wide .project-image {
  border-right: 1px solid var(--rule);
  border-bottom: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-image:hover img {
  transform: scale(1.015);
}

.project-card-copy {
  padding: 26px;
}

.project-card-copy > p:first-child {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.project-card-copy h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
}

.project-card-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.project-card-copy h3 a:hover {
  color: var(--signal);
}

.project-card-copy > p:not(:first-child) {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.project-card-copy li {
  padding: 4px 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
}

.section-link {
  display: inline-block;
  margin-top: 34px;
  font-size: 13px;
  font-weight: 700;
}

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

.home-research ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.home-research li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
}

.home-research time {
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
}

.home-research h3 {
  max-width: 900px;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.home-research h3 a {
  color: var(--ink);
  text-decoration: none;
}

.home-research p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: center;
  padding: 92px max(24px, calc((100vw - var(--measure)) / 2));
  border-top: 1px solid var(--night-rule);
  background: var(--night-surface);
  color: var(--night-text);
}

.home-contact > div > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--night-muted);
}

.home-contact .section-label {
  color: #59d7f5;
}

.home-contact .contact-actions {
  max-width: 390px;
  justify-content: flex-end;
  margin: 0;
}

.home-contact .contact-actions > a:last-child {
  color: #59d7f5;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .tech-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
  }

  .tech-hero h1 {
    font-size: 54px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .evidence-strip dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-strip dl > div:nth-child(3) {
    border-top: 1px solid var(--night-rule);
  }

  .evidence-strip dl > div:nth-child(4) {
    border-top: 1px solid var(--night-rule);
  }

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

  .skills-layout > img {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .tech-hero {
    grid-template-columns: 1fr;
    padding: 62px 16px 70px;
  }

  .tech-hero h1 {
    font-size: 42px;
  }

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

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

  .hero-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--night-rule);
  }

  .hero-visual {
    min-height: 480px;
  }

  .network-motif {
    right: -150px;
  }

  .hero-portrait {
    left: 18px;
    right: auto;
    width: min(280px, 72%);
  }

  .system-card {
    right: 0;
  }

  .evidence-strip {
    padding-inline: 16px;
  }

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

  .evidence-strip dl > div,
  .evidence-strip dl > div:nth-child(3),
  .evidence-strip dl > div:nth-child(4) {
    padding: 18px 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--night-rule);
  }

  .home-about,
  .home-projects,
  .home-research {
    width: calc(100% - 32px);
    padding: 76px 0;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .home-section-heading h2,
  .home-contact h2 {
    font-size: 35px;
  }

  .focus-grid,
  .skill-groups,
  .featured-project-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid h3 {
    margin-top: 20px;
  }

  .home-skills {
    padding: 76px 16px;
  }

  .featured-project-wide {
    display: block;
    grid-column: auto;
  }

  .featured-project-wide .project-image {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .home-research li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-contact {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 16px;
  }

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

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