:root {
  color-scheme: light;
  --ink: #18201c;
  --muted: #65726c;
  --line: #d8ded6;
  --paper: #f7f8f3;
  --panel: rgba(255, 255, 250, 0.82);
  --panel-strong: #ffffff;
  --accent: #008f72;
  --accent-dark: #065f50;
  --coral: #c45533;
  --violet: #5d4aa8;
  --shadow: 0 18px 55px rgba(24, 32, 28, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 32, 28, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(24, 32, 28, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

#signal-map {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--panel);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.76);
  backdrop-filter: blur(14px);
}

nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
}

nav a:hover {
  color: var(--ink);
  background: rgba(0, 143, 114, 0.08);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.hero {
  min-height: calc(100vh - 150px);
  padding: 42px 0 64px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 0.92;
  max-width: 980px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.action-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(24, 32, 28, 0.06);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.lab-panel,
.project-card,
.note-card,
.system-card,
.contact-card,
.proof-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lab-panel {
  padding: 18px;
}

.panel-header,
.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 143, 114, 0.14);
}

.focus-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.focus-list li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
}

.focus-list span {
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 86px 0;
}

.proof-strip {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-strip div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(24, 32, 28, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-number {
  display: block;
  color: var(--coral);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.proof-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.proof-link {
  display: inline-flex;
  margin-top: 10px;
  margin-right: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.proof-link:hover {
  text-decoration: underline;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.project-card {
  padding: 22px;
  min-height: 288px;
  display: flex;
  flex-direction: column;
}

.project-card.featured {
  grid-column: span 2;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(0, 143, 114, 0.16), rgba(93, 74, 168, 0.09)),
    var(--panel-strong);
}

.project-card p,
.note-card p,
.system-card p {
  color: var(--muted);
  line-height: 1.55;
}

.project-points {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.link-row {
  margin-top: auto;
  padding-top: 20px;
}

.link-row a,
.note-card a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.link-row a:hover,
.note-card a:hover {
  text-decoration: underline;
}

.note-card {
  padding: 24px;
  background: var(--panel-strong);
}

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

.note-date {
  display: block;
  margin-bottom: 12px;
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.system-card {
  padding: 20px;
}

.system-card span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral);
  font-weight: 900;
}

.system-card h3 {
  font-size: 19px;
}

.contact-card {
  padding: 36px;
  margin: 60px 0 20px;
  background:
    linear-gradient(135deg, rgba(196, 85, 51, 0.12), rgba(0, 143, 114, 0.13)),
    var(--panel-strong);
}

.contact-card h2 {
  max-width: 760px;
}

footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    overflow-x: auto;
    max-width: calc(100vw - 100px);
  }

  .section-grid,
  .project-grid,
  .note-grid,
  .system-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 28px 0 42px;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: min(100% - 24px, 1160px);
  }

  nav {
    gap: 2px;
    padding: 4px;
    max-width: calc(100vw - 86px);
  }

  nav a {
    font-size: 13px;
    padding: 8px 7px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
    margin-bottom: 18px;
  }

  .lede {
    font-size: 17px;
    line-height: 1.48;
    margin-bottom: 20px;
  }

  .lab-panel {
    padding: 14px;
  }

  .focus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .focus-list li {
    padding: 8px;
  }

  .focus-list span {
    display: none;
  }

  .focus-list strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }

  main,
  footer {
    width: min(100% - 24px, 1160px);
  }
}

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

  .button:hover {
    transform: none;
  }
}
