:root {
  --sea-blue: #062b45;
  --mist: #f7f9f9;
  --ink: #0d2233;
  --muted-ink: #526976;
  --teal: #28666c;
  --light-teal: #79beb5;
  --gold: #b88c42;
  --line: #cbd7da;
  --page-padding: clamp(24px, 5.5vw, 112px);
  font-family: Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--mist);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; background: var(--mist); font-size: 20px; line-height: 1.6; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-padding);
  color: var(--mist);
  background: rgba(6, 43, 69, 0.97);
  border-bottom: 1px solid rgba(226, 242, 239, 0.15);
}

.site-name { font-size: 19px; font-weight: 750; letter-spacing: 0.01em; }

.site-nav { display: flex; gap: 26px; font-size: 15px; color: #b8cbd1; }

.site-nav a { transition: color 260ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

.hero { min-height: 620px; color: #f8fbfb; background: var(--sea-blue); overflow: hidden; }

.hero-grid, .section, .contact-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.hero-grid { position: relative; min-height: 552px; align-items: center; }

.hero-copy { grid-column: 1 / span 8; padding: 72px 0; z-index: 1; }

.eyebrow, .section-index, .project-meta, .evidence, .timeline > article > p, .paper-list span {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.eyebrow { margin: 0; color: var(--light-teal); font-size: 14px; font-weight: 700; }

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

h1 { max-width: 760px; margin: 18px 0 16px; font-size: clamp(48px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.045em; }
h2 { margin-bottom: 22px; font-size: 38px; line-height: 1.2; letter-spacing: -0.045em; }
h3 { margin-bottom: 12px; font-size: 26px; line-height: 1.26; letter-spacing: -0.03em; }

.hero-role { margin-bottom: 20px; color: #c6d8dc; font-size: 19px; line-height: 1.6; }
.hero-claim { max-width: 650px; margin-bottom: 32px; font-size: 24px; line-height: 1.5; letter-spacing: -0.02em; }

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

.button {
  padding: 12px 17px;
  border: 1px solid rgba(227, 242, 240, 0.5);
  color: #f8fbfb;
  font-size: 16px;
  transition: transform 260ms ease, background-color 260ms ease;
}

.button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.button-primary { color: #091f30; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.button-primary:hover { background: #c99d51; }

.topology { grid-column: 10 / span 3; position: relative; height: 360px; opacity: 0.75; }
.topology-node { position: absolute; display: block; width: 10px; height: 10px; border: 1px solid var(--light-teal); border-radius: 50%; background: var(--sea-blue); }
.node-one { top: 25%; left: 4%; }
.node-two { top: 5%; right: 16%; }
.node-three { right: 0; bottom: 33%; }
.node-four { left: 24%; bottom: 4%; }
.node-core { top: 43%; left: 42%; width: 15px; height: 15px; border-color: var(--gold); }
.topology-line { position: absolute; display: block; height: 1px; background: #55929a; transform-origin: left center; }
.line-one { top: 27%; left: 6%; width: 178px; transform: rotate(-28deg); }
.line-two { top: 9%; left: 56%; width: 145px; transform: rotate(63deg); }
.line-three { top: 48%; left: 48%; width: 155px; transform: rotate(13deg); }
.line-four { top: 49%; left: 47%; width: 140px; transform: rotate(123deg); }

.section { padding-top: 92px; padding-bottom: 92px; background: var(--mist); }
.section-muted { background: #eef3f3; }
.section-index { grid-column: 1 / span 3; margin: 5px 0 0; color: var(--teal); font-size: 14px; font-weight: 700; }
.section-content { grid-column: 4 / span 9; }
.summary-copy { max-width: 800px; color: #263f4d; font-size: 20px; line-height: 1.72; }

.project-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr); gap: 36px; padding: 30px 0; border-top: 1px solid var(--line); }
.project-card:first-of-type { border-top-color: var(--ink); }
.project-meta { margin-bottom: 16px; color: var(--teal); font-size: 14px; font-weight: 700; }
.project-detail { margin: 0; }
.project-detail div { margin-top: 18px; }
.project-detail dt { margin-bottom: 5px; color: var(--ink); font-size: 15px; font-weight: 750; }
.project-detail dd { margin: 0; color: var(--muted-ink); font-size: 20px; line-height: 1.72; }

.evidence { align-self: start; margin-top: 2px; padding: 0 0 0 17px; border-left: 2px solid var(--gold); color: #334d59; font-size: 15px; line-height: 1.82; }
.evidence p { margin-bottom: 12px; color: var(--gold); font-weight: 700; }
.evidence ul { margin: 0; padding: 0; list-style: none; }
.evidence span { display: block; font-weight: 700; }

.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 184px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid h3 { margin-bottom: 9px; font-size: 21px; }
.capability-grid p, .paper-group-muted p, .timeline p, .contact-copy > p { color: var(--muted-ink); font-size: 20px; line-height: 1.72; }

.paper-group { padding: 0 0 34px; }
.paper-group h3 { font-size: 22px; }
.paper-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.paper-list li { display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); color: #314b59; font-size: 20px; line-height: 1.62; }
.paper-list span { color: var(--teal); font-size: 13px; }
.paper-list a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.paper-group-muted { padding-top: 22px; border-top: 1px solid var(--line); }

.timeline { border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline > article > p { margin: 3px 0 0; color: var(--teal); font-size: 14px; font-weight: 700; }
.timeline h3 { margin-bottom: 8px; font-size: 23px; }

.contact-section { padding-top: 100px; padding-bottom: 100px; background: var(--sea-blue); color: #f7f9f9; }
.contact-copy { grid-column: 1 / span 7; }
.contact-copy h2 { margin: 15px 0; font-size: 48px; }
.contact-copy > p { max-width: 650px; color: #c6d8dc; }
.contact-email { grid-column: 9 / span 4; align-self: center; color: var(--light-teal); font-size: clamp(20px, 2vw, 30px); font-weight: 700; overflow-wrap: anywhere; }
.contact-email:hover { color: #fff; }

footer { display: flex; justify-content: space-between; padding: 28px var(--page-padding); color: #647b85; background: var(--mist); border-top: 1px solid var(--line); font-size: 15px; }

.reveal { transition: opacity 260ms ease, transform 260ms ease; }
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header { height: 58px; }
  .site-name { font-size: 17px; }
  .site-nav { gap: 14px; font-size: 13px; overflow-x: auto; white-space: nowrap; }
  .hero { min-height: auto; }
  .hero-grid, .section, .contact-section { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .hero-grid { min-height: 590px; }
  .hero-copy, .section-index, .section-content, .contact-copy, .contact-email { grid-column: 1; }
  .hero-copy { padding: 74px 0; }
  h1 { font-size: 46px; }
  h2 { font-size: 33px; }
  h3 { font-size: 25px; }
  .hero-role { font-size: 18px; }
  .hero-claim { font-size: 22px; }
  .topology { display: none; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .section-index { margin-bottom: 20px; font-size: 14px; }
  .summary-copy { font-size: 19px; }
  .project-card { grid-template-columns: 1fr; gap: 24px; padding: 25px 0; }
  .project-meta { font-size: 13px; }
  .project-detail dd, .capability-grid p, .paper-list li, .timeline p, .contact-copy > p { font-size: 19px; }
  .evidence { font-size: 14px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
  .paper-list li, .timeline article { grid-template-columns: 1fr; gap: 8px; }
  .contact-section { padding-top: 68px; padding-bottom: 68px; }
  .contact-copy h2 { font-size: 40px; }
  .contact-email { margin-top: 34px; font-size: 21px; }
  footer { padding: 22px 24px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
