@font-face {
  font-family: "Space Grotesk";
  src: url("../../assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../assets/fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06100d;
  --bg-soft: #0b1713;
  --ink: #edf6f0;
  --muted: #aebfb7;
  --green: #69efad;
  --cyan: #74d8ff;
  --amber: #f0c96a;
  --line: rgba(176, 224, 201, 0.2);
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.58; }
a { color: inherit; }
img { display: block; max-width: 100%; }
main { overflow: hidden; }

.project-hero {
  position: relative;
  min-height: min(78vh, 760px);
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  background: #020503;
}

.project-hero::after { position: absolute; inset: 0; content: ""; background: rgba(1, 8, 6, 0.34); }
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 1; width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding: 0 0 54px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.hero-copy h1 { max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 11vw, 9.6rem); font-weight: 650; line-height: 0.78; letter-spacing: 0; text-shadow: 0 2px 28px rgba(0,0,0,.72); }
.hero-subtitle { max-width: 780px; margin: 28px 0 0; color: #fff; font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 520; text-shadow: 0 2px 16px #000; }
.status-line { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; color: #dce9e2; font-size: .88rem; text-transform: uppercase; }
.status-line span { width: 24px; height: 2px; background: var(--amber); }

.band { border-bottom: 1px solid var(--line); padding: 88px 0; }
.inner { width: min(1500px, calc(100% - 64px)); margin: 0 auto; }
.intro-band { background: var(--bg-soft); }
.intro-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8vw; }
h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: 0; }
.intro-copy { columns: 2; column-gap: 36px; }
.intro-copy p { break-inside: avoid; margin: 0 0 22px; color: #d6e3dc; font-size: 1.1rem; }
.section-heading { max-width: 980px; margin-bottom: 42px; }
.section-heading > p:last-child { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.06rem; }
.two-col-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 7vw; align-items: end; }
.two-col-heading > p:last-child { margin: 0; }

.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec-grid article { min-height: 240px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid article > span { color: var(--cyan); font-family: var(--font-display); font-size: .8rem; }
.spec-grid h3 { margin: 60px 0 10px; font-family: var(--font-display); font-size: 1.45rem; }
.spec-grid p { margin: 0; color: var(--muted); }

.full-media { position: relative; margin: 0; background: #020503; }
.full-media img { width: 100%; max-height: 900px; object-fit: cover; }
.full-media figcaption { position: absolute; right: 24px; bottom: 20px; max-width: 650px; padding: 12px 14px; background: rgba(2, 8, 6, .82); color: #d6e3dc; font-size: .82rem; }

.network-band { background: #08130f; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; margin: 50px 0; }
.architecture-flow div { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); }
.architecture-flow b { color: var(--green); font-family: var(--font-display); font-size: 1.18rem; }
.architecture-flow span { color: var(--muted); font-size: .88rem; }
.architecture-flow i { display: grid; place-items: center; padding: 0 10px; color: var(--cyan); font-style: normal; }
.network-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.network-notes article { border-top: 2px solid var(--cyan); padding-top: 18px; }
.network-notes h3 { margin: 0 0 12px; font-family: var(--font-display); }
.network-notes p { margin: 0; color: var(--muted); }

.drawing-band { background: #101914; }
.drawing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 8vw; align-items: center; }
.drawing-copy p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
pre { overflow: auto; margin: 0; padding: 28px; border: 1px solid rgba(105,239,173,.42); background: #020604; color: #bfffdc; font: .9rem/1.8 "SFMono-Regular", Menlo, Consolas, monospace; }

.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--cyan); font-family: var(--font-display); font-size: 1.05rem; }
.steps h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 1.45rem; }
.steps p { max-width: 900px; margin: 0; color: var(--muted); }
.regional-media img { aspect-ratio: 16 / 8; object-position: center 42%; }

.protocol-band { background: var(--bg-soft); }
.protocol-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.protocol-grid div { min-height: 150px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-grid code { color: var(--amber); font-weight: 700; }
.protocol-grid p { margin: 35px 0 0; color: var(--muted); font-size: .9rem; }

.rule-list { border-top: 1px solid var(--line); }
.rule-list p { display: grid; grid-template-columns: minmax(230px,.35fr) minmax(0,1fr); gap: 30px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rule-list b { color: var(--ink); font-family: var(--font-display); }

.feasibility-band { background: #0d1511; }
.phase-table { border: 1px solid var(--line); }
.phase-row { display: grid; grid-template-columns: .4fr 1fr 1fr; }
.phase-row span { padding: 17px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted); }
.phase-row span:last-child { border-right: 0; }
.phase-row:last-child span { border-bottom: 0; }
.phase-head span { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.estimate { margin: 24px 0 0; color: var(--amber); }

.orbit-band { position: relative; min-height: 720px; display: flex; align-items: flex-end; padding: 0; background: #020503; }
.orbit-media { position: absolute; inset: 0; }
.orbit-media::after { position: absolute; inset: 0; content: ""; background: rgba(0, 6, 4, .46); }
.orbit-media img { width: 100%; height: 100%; object-fit: cover; }
.orbit-copy { position: relative; z-index: 1; padding-bottom: 70px; }
.orbit-copy h2 { max-width: 1100px; }
.orbit-copy > p:last-child { max-width: 760px; color: #d6e3dc; font-size: 1.05rem; }

.sources-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; }
.sources-grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources-grid li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sources-grid a { color: var(--cyan); font-weight: 700; }
.project-footer { width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding: 36px 0 54px; display: flex; justify-content: space-between; gap: 30px; color: var(--muted); }
.project-footer a { color: var(--cyan); }

@media (max-width: 980px) {
  .project-hero { min-height: 650px; }
  .intro-grid, .drawing-grid, .sources-grid, .two-col-heading { grid-template-columns: 1fr; gap: 36px; }
  .intro-copy { columns: 1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .network-notes { grid-template-columns: 1fr; }
  .architecture-flow { grid-template-columns: 1fr; gap: 0; }
  .architecture-flow i { min-height: 42px; transform: rotate(90deg); }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-copy, .inner, .project-footer { width: min(100% - 32px, 1500px); }
  .project-hero { min-height: 560px; }
  .project-hero > img { object-position: 58% center; }
  .hero-copy { padding-bottom: 34px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 18vw, 5.2rem); }
  .band { padding: 58px 0; }
  .spec-grid, .protocol-grid { grid-template-columns: 1fr; }
  .spec-grid article { min-height: 190px; }
  .spec-grid h3 { margin-top: 34px; }
  .full-media img { min-height: 440px; object-fit: cover; }
  .full-media figcaption { position: static; max-width: none; }
  .steps li { grid-template-columns: 54px minmax(0,1fr); gap: 14px; }
  .rule-list p { grid-template-columns: 1fr; gap: 8px; }
  .phase-table { overflow-x: auto; }
  .phase-row { min-width: 720px; }
  .orbit-band { min-height: 660px; }
  .project-footer { flex-direction: column; }
}

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