/* isaac-net site, v3 (2026-10-01)
   One dark theme for every page: navy ground, signal teal for the network, amber for the uplink slot.
   Sections are full-bleed bands whose content sits in a 1120 px column (16 px gutters on phones).
   The 5G TDD slot strip (D D D S U) is the recurring motif. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0a111e;
  --bg-alt: #0d1626;
  --surface: #121c2e;
  --surface-2: #17233a;
  --fg: #eef2f6;
  --muted: #a7b3c3;
  --rule: #23314a;
  --accent: #4fd1c5;
  --accent-soft: #123a3d;
  --warm: #f2a54a;
  --warm-soft: #3b2814;
  --code-bg: #0c1422;
  --caveat-bg: #251f14;
  --caveat-fg: #f0d9a8;
  --caveat-rule: #5e4c24;
  --focus: #4fd1c5;
  --font-display: "Archivo", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1120px;
  --gutter: 16px;
  --pad-x: max(var(--gutter), calc((100% - var(--content)) / 2));
  --pad-y: 72px;
  --nav-h: 56px;
  --measure: 68ch;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (max-width: 760px) { :root { --pad-y: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--fg); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- nav: dark, translucent, always on top ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 13, 23, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
}
.brand-mark { display: inline-flex; gap: 2px; }
.brand-mark i { width: 5px; height: 15px; background: rgba(255, 255, 255, 0.28); border-radius: 1px; }
.brand-mark i.s { background: rgba(255, 255, 255, 0.55); }
.brand-mark i.u { background: var(--warm); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.875rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #c3ccd8; text-decoration: none; white-space: nowrap; padding-block: 0.5rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1080px) { .nav { gap: 0.9rem; font-size: 0.82rem; } }
@media (max-width: 960px) { .nav .nav-sec { display: none; } .nav { gap: 1.1rem; font-size: 0.9rem; } }
@media (max-width: 560px) {
  .nav .nav-pypi { display: none; }
  .nav { gap: 0; overflow: visible; }
  .nav a[href*="github.com"]::before { content: "\00b7"; color: #6b7a90; padding-inline: 0.5rem; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.15; margin: 0; color: #fff; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 720; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 0.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 0.7rem;
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose > p, .lede { line-height: 1.7; }
.lede { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; }
.mt-s { margin-top: 1.25rem; }

/* ---------- sections: full-bleed bands, centered column ---------- */
main { display: block; }
.section {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.section.band-light { background: var(--bg-alt); }
.section > .grid-3, .section > .grid-2, .section > .split, .section > .people { margin-top: 2rem; }
.section > .caveat + .split { margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a111e;
  color: #f4f7fa;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  z-index: -2;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 13, 23, 0.45) 0%, rgba(8, 13, 23, 0.34) 45%, rgba(8, 13, 23, 0.1) 100%);
}
.hero-inner {
  padding: clamp(72px, 10vw, 128px) var(--pad-x) clamp(48px, 6vw, 80px);
}
.hero-band .eyebrow { color: var(--warm); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-band h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 17.5em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-band h1 .code { color: var(--accent); }
.hero-band .pitch {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  max-width: 40em;
  color: #e6ecf2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.hero-band .pitch strong { color: #fff; }
.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #05201d; box-shadow: 0 8px 28px rgba(79, 209, 197, 0.25); }
.btn-primary:hover { background: #6fe0d5; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.32); background: rgba(8, 13, 23, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-meta {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hero-meta span {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--warm);
  border-radius: 10px;
  background: rgba(8, 13, 23, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e9eef4;
}
@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-meta span { font-size: 0.82rem; padding: 0.65rem 0.75rem; }
  .hero-bg { object-position: 70% 50%; }
  .btn { font-size: 0.9rem; padding: 0.65rem 1rem; }
}

/* ---------- slot strip: one 100 ms control step ---------- */
.strip-wrap {
  margin: 0.5rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.strip { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; }
.period { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.period i { height: 22px; background: rgba(255, 255, 255, 0.16); border-radius: 1px; }
.period i.s { background: rgba(255, 255, 255, 0.42); }
.period i.u { background: var(--warm); }
.strip-legend {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.key { display: inline-flex; align-items: center; gap: 0.35rem; margin-right: 0.9rem; }
.key i { width: 10px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, 0.16); display: inline-block; }
.key i.s { background: rgba(255, 255, 255, 0.42); }
.key i.u { background: var(--warm); }
@media (max-width: 640px) {
  .strip { grid-template-columns: repeat(20, 1fr); row-gap: 5px; }
  .period i { height: 15px; }
}

/* ---------- grids and cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.point { padding: 1.4rem 1.5rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.point h3 { font-size: 1.15rem; }
.point p { color: var(--muted); font-size: 0.98rem; }

/* pillars: the three illustrated cards under the hero */
.section.pillars { padding-top: 64px; }
@media (max-width: 760px) { .section.pillars { padding-top: 40px; } }
.pillars .grid-3 { margin-top: 0.5rem; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: rgba(79, 209, 197, 0.45); }
.pillar img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.2rem; background: #0c1422; }
.pillar > :not(img) { margin-inline: 1.4rem; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; }
.pillar-stat { margin-top: auto; padding-top: 1.1rem; }
.pillar-stat b { display: block; font-family: var(--font-display); font-weight: 760; font-size: 1.75rem; line-height: 1.1; color: var(--warm); font-variant-numeric: tabular-nums; }
.pillar-stat span { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pillar, .btn { transition: none; } .pillar:hover { transform: none; } }

/* ---------- figures ---------- */
figure { margin: 2rem 0 0; }
figcaption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); max-width: var(--measure); }
.figure-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); }
.figure-card img { display: block; width: 100%; height: auto; }
.figure-img { background: #fff; padding: clamp(10px, 2vw, 22px); }
.figure-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(0.75rem, 2vw, 1.5rem); }
.chart-scroll { overflow-x: auto; }
.chart-scroll svg { min-width: 600px; display: block; }
svg text { font-family: var(--font-body); }
.c-axis { stroke: var(--rule); stroke-width: 1; }
.c-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.c-tick { fill: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.c-row { fill: var(--fg); font-size: 13px; font-weight: 600; }
.c-rowsub { fill: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }
.c-off { fill: #2c3a52; stroke: #5b6a80; stroke-width: 0.8; }
.c-on { fill: var(--accent); }
.c-val { fill: var(--fg); font-size: 12px; font-family: var(--font-mono); }
.c-ratio { fill: var(--accent); font-size: 12.5px; font-family: var(--font-mono); font-weight: 600; }
.c-head { fill: var(--muted); font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.c-ms { fill: var(--warm); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
td:first-child { min-width: 7.5rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td code, th code { white-space: nowrap; }
.table-note { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); max-width: var(--measure); }
@media (max-width: 640px) {
  .table-wrap table { min-width: 34rem; }
  th, td { padding: 0.5rem 0.65rem; }
}

/* ---------- code ---------- */
code, pre, kbd { font-family: var(--font-mono); }
:not(pre) > code { font-size: 0.86em; background: rgba(255, 255, 255, 0.07); padding: 0.08em 0.35em; border-radius: 4px; }
.code-block { position: relative; margin-top: 1rem; }
.code-label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); display: block; margin-bottom: 0.35rem; }
pre {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  tab-size: 4;
}
pre .c { color: #7d8ba0; }
pre .k { color: var(--accent); font-weight: 600; }
pre .s { color: var(--warm); }
.copy-btn {
  position: absolute;
  right: 0.5rem;
  top: 1.75rem;
  font: 600 0.72rem var(--font-mono);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.copy-btn:hover { color: var(--fg); }

/* ---------- notices ---------- */
.caveat {
  margin-top: 1.25rem;
  background: var(--caveat-bg);
  color: var(--caveat-fg);
  border: 1px solid var(--caveat-rule);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  max-width: var(--measure);
}
.caveat strong { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; }

/* ---------- validation cards ---------- */
.vcard { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 14px; padding: 1.5rem; }
.vcard .figure-num { font-family: var(--font-display); font-weight: 760; font-size: 2.4rem; line-height: 1; color: var(--warm); font-variant-numeric: tabular-nums; }
.vcard .figure-unit { display: block; font-size: 0.88rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.vcard p { font-size: 0.96rem; }
.vcard p + p { margin-top: 0.75rem; }
.vcard .limits { font-size: 0.88rem; color: var(--caveat-fg); background: var(--caveat-bg); border-radius: 8px; padding: 0.6rem 0.75rem; margin-top: 1rem; }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; max-width: 52rem; }
.roadmap li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.roadmap .st { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.2rem; }
.roadmap .done .st { color: var(--accent); }
.roadmap .open .st { color: var(--warm); }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { border: 1px solid var(--rule); border-radius: 14px; padding: 1.2rem 1.3rem; background: var(--surface); min-width: 0; }
.person .name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.person .role { color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }
.contact-line { font-family: var(--font-mono); font-size: 0.95rem; user-select: all; }
#people > .prose, #cite > .prose { margin-top: 1rem; }

/* ---------- docs page ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 3rem;
  padding: 56px var(--pad-x) 88px;
}
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 0.9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.toc-title { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm); margin-bottom: 0.7rem; }
.docs-body { min-width: 0; }
.docs-body > section { padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.docs-body > section:first-of-type { border-top: 0; padding-top: 0; }
.docs-body h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 780; letter-spacing: -0.02em; margin-bottom: 1rem; }
.docs-body h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.docs-body p + p, .docs-body p + ul, .docs-body ul + p { margin-top: 0.9rem; }
.docs-body ul { padding-left: 1.2rem; max-width: var(--measure); }
.docs-body li + li { margin-top: 0.35rem; }
.docs-body .prose-block { max-width: var(--measure); }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 32px; padding-bottom: 48px; }
  .toc { position: static; border: 1px solid var(--rule); border-radius: 12px; padding: 1rem; background: var(--surface); }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
}

/* ---------- 404 ---------- */
main.hero { padding-top: 120px; padding-bottom: 120px; }
main.hero h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 1rem; }
main.hero .pitch { color: var(--muted); max-width: 40em; }

/* ---------- footer ---------- */
.footer { background: #070c16; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { padding: 2rem var(--pad-x) 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.88rem; color: var(--muted); }
