:root {
  color-scheme: dark;
  --bg: #05070a;
  --ink: #edf6f8;
  --muted: #9eb2b8;
  --line: rgba(218, 244, 245, 0.14);
  --panel: rgba(7, 13, 17, 0.72);
  --panel-strong: rgba(10, 22, 27, 0.88);
  --cyan: #66e8ef;
  --green: #9df2b1;
  --amber: #f0c66c;
  --rose: #ef7c8e;
  --steel: #7c9aa3;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(180deg, #030508 0%, #071013 42%, #05070a 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

#runtime-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 7px, 54px 100%;
  opacity: 0.72;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 7, 10, 0.68);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(102, 232, 239, 0.78), inset 0 0 10px rgba(102, 232, 239, 0.24);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  max-width: var(--max);
  min-height: 100vh;
  margin: 0 auto;
  padding: 9rem clamp(1rem, 4vw, 2rem) 8rem;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 10.8rem);
  line-height: 0.88;
  font-weight: 800;
}

.hero-text {
  max-width: 690px;
  margin: 1.4rem 0 0;
  color: #c6d9de;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.05rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  border-color: rgba(102, 232, 239, 0.62);
  color: #f7ffff;
  box-shadow: 0 0 30px rgba(102, 232, 239, 0.15);
}

.button.secondary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.telemetry {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 13, 17, 0.5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0.5rem 0.7rem;
  border-left: 2px solid rgba(102, 232, 239, 0.4);
  background: rgba(255, 255, 255, 0.026);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.telemetry-row span {
  color: var(--steel);
  font-size: 0.75rem;
}

.telemetry-row strong {
  color: var(--green);
  font-size: 1rem;
}

.telemetry-note {
  margin: 0.15rem 0 0;
  color: var(--steel);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.band {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(4, 7, 10, 0.18), rgba(4, 7, 10, 0.42));
  backdrop-filter: blur(4px);
}

.section-grid,
.section-heading,
.layer-stack,
.split-band,
.metrics-grid,
.closing-panel {
  max-width: var(--max);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-grid p,
.closing-panel p {
  margin: 0;
  color: #c4d4d8;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  font-weight: 800;
}

.section-heading {
  margin-bottom: 2rem;
}

.layer-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 22, 27, 0.58);
  backdrop-filter: blur(14px);
}

.layer {
  min-height: 16rem;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(102, 232, 239, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.018);
}

.layer:last-child {
  border-right: 0;
}

.layer-index {
  display: inline-block;
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.layer h3,
.paper h3 {
  margin: 1rem 0 0.75rem;
  font-size: 1.05rem;
}

.layer p,
.paper p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.sticky-heading {
  align-self: start;
  margin: 0;
}

.paper-list {
  display: grid;
  gap: 0.85rem;
}

.paper {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
}

.paper span {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.paper.accent {
  border-color: rgba(240, 198, 108, 0.48);
  background: rgba(69, 53, 21, 0.38);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric {
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.metric span {
  display: block;
  margin-top: 1rem;
  color: #cad9dc;
  font-weight: 700;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
}

.portal {
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portal:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 232, 239, 0.42);
  background: rgba(9, 20, 24, 0.6);
}

.portal span {
  display: block;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.portal strong {
  display: block;
  max-width: 12rem;
  margin-top: 3.4rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
}

.page-main {
  max-width: var(--max);
  min-height: calc(100vh - 4rem);
  margin: 0 auto;
  padding: 10rem clamp(1rem, 4vw, 2rem) 6rem;
}

.page-hero {
  max-width: 880px;
}

.page-hero h1 {
  max-width: 9ch;
}

.page-hero p {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: #c6d9de;
  font-size: clamp(1.08rem, 2.2vw, 1.36rem);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 4rem;
}

.note {
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
}

.note span {
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.note h2 {
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.15;
}

.note p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.deep-section {
  margin-top: 4rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid rgba(102, 232, 239, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
}

.deep-section h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
}

.deep-section p {
  max-width: 820px;
  color: #c4d4d8;
}

.status-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid rgba(157, 242, 177, 0.42);
  background: rgba(255, 255, 255, 0.026);
}

.status-row span {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.status-row p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.inline-link {
  color: var(--cyan);
  font-weight: 700;
}

.people-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 4rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid rgba(102, 232, 239, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 14, 0.5);
  backdrop-filter: blur(14px);
}

.people-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.people-list {
  display: grid;
  gap: 0.75rem;
}

.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid rgba(102, 232, 239, 0.4);
  background: rgba(255, 255, 255, 0.026);
}

.person span {
  color: var(--steel);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.person strong {
  color: var(--ink);
  font-size: 1.08rem;
  text-align: right;
}

.muted-person {
  border-left-color: rgba(124, 154, 163, 0.36);
}

.closing-band {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.closing-panel {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid rgba(102, 232, 239, 0.32);
  border-radius: 8px;
  background: rgba(9, 20, 24, 0.5);
  backdrop-filter: blur(14px);
}

.closing-panel h2 {
  max-width: 900px;
  margin-bottom: 1.3rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: var(--steel);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #040608;
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .split-band,
  .people-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    padding-top: 8rem;
  }

  .telemetry {
    max-width: 32rem;
  }

  .layer-stack,
  .metrics-grid,
  .portal-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 9rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .layer-stack,
  .metrics-grid,
  .portal-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .layer {
    min-height: 11rem;
    border-right: 0;
  }

  .footer {
    flex-direction: column;
  }

  .person {
    align-items: flex-start;
    flex-direction: column;
  }

  .person strong {
    text-align: left;
  }

  .status-row {
    grid-template-columns: 1fr;
  }

  .status-row p {
    grid-column: auto;
  }
}

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

  .button {
    transition: none;
  }
}
