:root {
    --black: #000000;
    --ink: #0D0D0D;
    --line: #1C1C1C;
    --line-2: #2E2E2E;
    --white: #F2F2F2;
    --gray: #9A9A9A;
    --gray-2: #5E5E5E;
    --max: 1120px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--white); color: var(--black); }

  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

  h1, h2 { font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; }
  h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
  h3 { font-weight: 500; font-size: 1.05rem; }

  a { color: var(--white); text-decoration: none; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }

  .mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-2);
  }

  /* ---------- nav ---------- */
  nav { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; background: var(--black); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.22em; text-transform: uppercase; }
  .nav-links { display: flex; gap: 34px; }
  .nav-links a { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
  .nav-links a:hover { color: var(--white); }
  
  /* ---------- scroll story ---------- */
  #webCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  .story { position: relative; z-index: 1; }
  .stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
  }
  .stage-card { max-width: 480px; }
  @media (max-width: 860px) {
    .stage-card { background: rgba(0,0,0,0.62); padding: 26px 24px; margin: 0 -8px; }
  }
  .stage .mono { display: block; margin-bottom: 22px; }
  .stage h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 28px; }
  .stage h2 { margin-bottom: 22px; }
  .stage p { color: var(--gray); }
  .stage p b { color: var(--white); font-weight: 500; }
  .stage-links { margin-top: 44px; display: flex; gap: 34px; align-items: baseline; flex-wrap: wrap; }
  .stage-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-2);
  }
  .stage-links a:hover { border-color: var(--white); }
  .stage-links a.quiet { color: var(--gray); border-color: transparent; }
  .stage-links a.quiet:hover { color: var(--white); }
  .stage-list { margin-top: 26px; border-top: 1px solid var(--line-2); }
  .stage-list-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .stage-list-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--gray-2); }
  .stage-list-body { font-size: 0.88rem; color: var(--gray); line-height: 1.5; }
  .stage-list-body b { color: var(--white); font-weight: 500; }
  .scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-2);
  }

  /* ---------- static sections after the story ---------- */
  main { position: relative; z-index: 1; background: var(--black); }
  section.txt { padding: 110px 0; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
  section.txt + section.txt { border-top: none; }
  .sec-head { margin-bottom: 56px; }
  .sec-head .mono { display: block; margin-bottom: 18px; }

  .charter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  @media (max-width: 860px) { .charter-grid { grid-template-columns: 1fr; gap: 44px; } }
  .charter-grid p { color: var(--gray); }
  .charter-grid p + p { margin-top: 18px; }
  .charter-grid p b { color: var(--white); font-weight: 500; }
  .spec-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); padding: 15px 0; gap: 18px; }
  .spec-row:first-child { border-top: 1px solid var(--line-2); }
  @media (max-width: 480px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }
  .spec-key { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-2); padding-top: 4px; }
  .spec-val { font-size: 0.92rem; }
  .spec-val span { color: var(--gray); }

  .output-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
  @media (max-width: 820px) { .output-grid { grid-template-columns: 1fr; gap: 44px; } }
  .output .mono { display: block; margin-bottom: 20px; }
  .output h3 { margin-bottom: 12px; }
  .output p { color: var(--gray); font-size: 0.93rem; margin-bottom: 20px; }
  .output a { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
  .output a:hover { color: var(--white); border-color: var(--white); }

  .guide-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
  .guide-row:first-of-type { border-top: 1px solid var(--line-2); }
  @media (max-width: 640px) { .guide-row { grid-template-columns: 1fr; gap: 8px; } }
  .guide-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--gray-2); }
  .guide-name { font-weight: 500; }
  .guide-desc { display: block; color: var(--gray); font-weight: 400; font-size: 0.9rem; margin-top: 4px; }
  .guide-get { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
  .guide-get:hover { color: var(--white); border-color: var(--white); }

  .band {
    position: relative;
    height: 420px;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
    filter: grayscale(1) contrast(1.05);
  }
  .band-caption {
    position: absolute;
    left: 28px;
    bottom: 22px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray);
    background: rgba(0,0,0,0.55);
    padding: 6px 10px;
  }
  /* IMAGE SLOT:
     Drop a monochrome-friendly stock photo at images/band-1.jpg.
     Suggested searches (Pexels / Unsplash, free license):
       "cctv camera building" / "surveillance camera black and white" / "city aerial night"
     The grayscale filter normalizes any photo into the palette. */
  .band-1 { background-image: url('images/band-1.jpg'); }
  @media (max-width: 680px) { .band { height: 280px; } }

  .capture-section p { color: var(--gray); max-width: 54ch; }
  .capture { max-width: 520px; margin-top: 44px; }
  .capture-form { display: flex; border: 1px solid var(--line-2); }
  .capture-form input[type="email"] {
    flex: 1; min-width: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    padding: 15px 16px;
    border: none;
    background: var(--black);
    color: var(--white);
  }
  .capture-form input::placeholder { color: var(--gray-2); }
  .capture-form button {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 15px 26px;
    cursor: pointer;
    white-space: nowrap;
  }
  .capture-micro { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--gray-2); margin-top: 14px; letter-spacing: 0.06em; }
  @media (max-width: 520px) { .capture-form { flex-direction: column; } }

  .bridge p { color: var(--gray); max-width: 54ch; }
  .bridge p + p { margin-top: 18px; }
  .bridge p b { color: var(--white); font-weight: 500; }
  .bridge-link {
    display: inline-block;
    margin-top: 40px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line-2);
    padding: 14px 28px;
  }
  .bridge-link:hover { border-color: var(--white); }

  footer { padding: 44px 0 60px; }
  .foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
  .foot-brand { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
  .foot-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: var(--gray-2); margin-top: 12px; letter-spacing: 0.06em; }
  .foot-meta a { color: var(--gray-2); }
  .foot-meta a:hover { color: var(--gray); }
  .foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
  .foot-links a { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-2); }
  .foot-links a:hover { color: var(--white); }

/* ---------- brand: full name ---------- */
.brand { font-size: 0.78rem; letter-spacing: 0.2em; }
@media (max-width: 560px) { .brand { font-size: 0.66rem; letter-spacing: 0.14em; } }

/* ---------- subpages ---------- */
.page-head { padding: 110px 0 80px; border-bottom: 1px solid var(--line); }
.page-head .mono { display: block; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 500; letter-spacing: -0.015em; max-width: 20ch; }
.page-head p { color: var(--gray); max-width: 54ch; margin-top: 26px; }
.page-head p b { color: var(--white); font-weight: 500; }

.status { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-2); border: 1px solid var(--line-2); padding: 4px 9px; white-space: nowrap; }

.prose { max-width: 68ch; }
.prose h2 { margin: 54px 0 16px; font-size: 1.15rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--gray); }
.prose p + p { margin-top: 14px; }
.prose p b { color: var(--white); font-weight: 500; }

.ep-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ep-row:first-of-type { border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .ep-row { grid-template-columns: 1fr; gap: 8px; } }

.platforms { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 34px; }
.platforms a { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.platforms a:hover { color: var(--white); border-color: var(--white); }

/* ---------- resources / articles ---------- */
.res-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.res-row:first-of-type { border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .res-row { grid-template-columns: 1fr; gap: 8px; } }
.article-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; }
.article-meta span { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-2); }
.prose ul { margin: 14px 0 0 1.1em; color: var(--gray); }
.prose ul li + li { margin-top: 8px; }
.prose a { border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--white); }
.article-cta { margin-top: 60px; border: 1px solid var(--line); padding: 30px 28px; }
.article-cta .mono { display: block; margin-bottom: 14px; }
.article-cta p { color: var(--gray); }
.article-cta a { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.article-cta a:hover { border-color: var(--white); }

/* ---------- responsive pass ---------- */
@media (max-width: 720px) {
  section.txt { padding: 72px 0; }
  .page-head { padding: 78px 0 56px; }
  .sec-head { margin-bottom: 40px; }
  .charter-grid, .output-grid { gap: 40px; }
}
@media (max-width: 680px) {
  .nav-links { gap: 20px; }
  .nav-links a:nth-child(-n+3) { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .band-caption { left: 20px; }
  .scroll-hint { left: 20px; }
  .stage h1 { font-size: 1.9rem; }
}

/* ---------- section CTA link ---------- */
.sec-cta {
  display: inline-block;
  margin-top: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
}
.sec-cta:hover { color: var(--white); border-color: var(--white); }

/* ---------- resources / articles ---------- */
.article-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.article-row:first-of-type { border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; gap: 8px; } }
.article-date { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--gray-2); text-transform: uppercase; }
.article-body h2 { margin: 46px 0 14px; font-size: 1.2rem; }
.article-body p { color: var(--gray); max-width: 66ch; }
.article-body p + p { margin-top: 15px; }
.article-body p b { color: var(--white); font-weight: 500; }
.article-meta { display: flex; gap: 22px; align-items: baseline; margin-bottom: 40px; flex-wrap: wrap; }
.article-callout { border-left: 2px solid var(--line-2); padding: 6px 0 6px 22px; margin: 40px 0; max-width: 62ch; }
.article-callout p { color: var(--white); }

/* ---------- responsive audit ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 22px; }
  .nav-links a:nth-child(-n+3) { display: none; }
}
@media (max-width: 720px) {
  section.txt { padding: 70px 0; }
  .page-head { padding: 80px 0 56px; }
  .sec-head { margin-bottom: 40px; }
  .charter-grid, .output-grid { gap: 40px; }
  .stage h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .stage-list-body { font-size: 0.84rem; }
  footer { padding: 36px 0 48px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 20px; }
  .band-caption, .scroll-hint { left: 20px; }
  .stage-card { margin: 0 -4px; padding: 22px 18px; }
}

/* ---------- resources tab bar ---------- */
.tabbar { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); margin-bottom: 56px; }
.tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 14px 26px 14px 0;
  margin-right: 26px;
  cursor: pointer;
}
.tab:hover { color: var(--gray); }
.tab.active { color: var(--white); border-bottom-color: var(--white); }
.tabpane { display: none; }
.tabpane.active { display: block; }

/* ---------- coverage marks (which Fig.1 sources a guide cuts) ---------- */
.cov { display: inline-flex; gap: 5px; margin-top: 10px; }
.cov i { width: 7px; height: 7px; border: 1px solid var(--gray-2); display: block; }
.cov i.on { background: var(--white); border-color: var(--white); }
.cov-note { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-2); margin-top: 34px; }

/* ---------- figure blocks on subpages ---------- */
.fig-block { border: 1px solid var(--line); padding: 40px 34px 30px; margin-top: 60px; }
.fig-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-2); display: block; margin-bottom: 26px; }
.fig-block svg { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .fig-block { padding: 26px 20px 20px; } }

/* ---------- podcast waveform ---------- */
.waveform { border-bottom: 1px solid var(--line); padding: 34px 0; }
.waveform svg { width: 100%; height: 56px; display: block; }

/* ---------- at-a-glance rows (privacy) ---------- */
.glance { margin: 0 0 60px; }
.glance .spec-row { grid-template-columns: 190px 1fr; }
@media (max-width: 480px) { .glance .spec-row { grid-template-columns: 1fr; } }

/* ---------- guide documents ---------- */
.g-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; margin: 44px 0 0; }
@media (max-width: 720px) { .g-meta { grid-template-columns: 1fr 1fr; gap: 22px; } }
.g-meta-item .mono { display: block; margin-bottom: 6px; }
.g-meta-item div:last-child { font-size: 0.95rem; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.check:first-of-type { border-top: 1px solid var(--line-2); }
.check input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--gray-2);
  background: transparent;
  cursor: pointer;
  margin-top: 5px;
}
.check input[type="checkbox"]:checked { background: var(--white); border-color: var(--white); }
.check-title { font-weight: 500; }
.check-body { color: var(--gray); font-size: 0.93rem; margin-top: 6px; }
.check-why { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-2); margin-top: 10px; display: block; }
.check-why b { color: var(--gray); font-weight: 500; }

.g-section { margin-top: 70px; }
.g-section > .mono { display: block; margin-bottom: 8px; }
.g-section h2 { margin-bottom: 10px; }
.g-section .g-intro { color: var(--gray); max-width: 62ch; margin-bottom: 34px; }

.g-note { border: 1px solid var(--line); background: var(--panel); padding: 24px 26px; margin: 44px 0; }
.g-note .mono { display: block; margin-bottom: 10px; }
.g-note p { color: var(--gray); font-size: 0.93rem; }
.g-note p b { color: var(--white); font-weight: 500; }

.g-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.g-table th { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-2); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.g-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.g-table td:first-child { font-weight: 500; white-space: nowrap; }
.g-table td:last-child { color: var(--gray); }

/* print: guides double as PDFs */
@media print {
  body { background: #fff; color: #000; }
  nav, footer, .capture-section, .article-cta { display: none; }
  .page-head, section.txt { border: none; padding: 20px 0; }
  a { color: #000; text-decoration: none; }
  .check input[type="checkbox"] { border: 1px solid #000; }
  .g-note, .fig-block { border: 1px solid #000; background: #fff; }
  .mono, .check-why, .guide-num { color: #444; }
  h1, h2, .check-title { color: #000; }
  .check-body, p { color: #222; }
}

/* ---------- the atlas (interactive tracking diagrams) ---------- */
.atlas-switch { display: flex; gap: 0; margin-bottom: 34px; border: 1px solid var(--line-2); width: fit-content; }
.atlas-switch button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: none;
  color: var(--gray-2);
  padding: 12px 26px;
  cursor: pointer;
  border-right: 1px solid var(--line-2);
}
.atlas-switch button:last-child { border-right: none; }
.atlas-switch button:hover { color: var(--gray); }
.atlas-switch button.active { background: var(--white); color: var(--black); }

.atlas-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .atlas-grid { grid-template-columns: 1fr; gap: 30px; } }

.atlas-stage {
  border: 1px solid var(--line-2);
  background-color: var(--black);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 10px;
}
.atlas-stage svg { width: 100%; height: auto; display: none; }
.atlas-stage svg.active { display: block; }

.atlas-stage .hot { cursor: pointer; }
.atlas-stage .hot circle.ring { fill: rgba(0,0,0,0.65); stroke: #9A9A9A; stroke-width: 1; transition: stroke 0.15s; }
.atlas-stage .hot text { fill: #9A9A9A; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.atlas-stage .hot:hover circle.ring, .atlas-stage .hot.on circle.ring { stroke: #F2F2F2; fill: #F2F2F2; }
.atlas-stage .hot:hover text, .atlas-stage .hot.on text { fill: #000; }

.atlas-readout { border: 1px solid var(--line-2); padding: 22px 24px; min-height: 150px; }
.atlas-readout .mono { display: block; margin-bottom: 10px; color: var(--white); }
.atlas-readout p { color: var(--gray); font-size: 0.92rem; }
.atlas-readout a { display: inline-block; margin-top: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.atlas-readout a:hover { color: var(--white); border-color: var(--white); }

.atlas-index { margin-top: 22px; border-top: 1px solid var(--line-2); }
.atlas-index button {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 0; cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--gray); font-size: 0.9rem;
}
.atlas-index button .n { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--gray-2); padding-top: 2px; }
.atlas-index button:hover, .atlas-index button.on { color: var(--white); }
.atlas-index button.on .n { color: var(--white); }

/* atlas v2: callout boxes */
.atlas-stage .hot rect.callout { transition: fill 0.15s, stroke 0.15s; }
.atlas-stage .hot:hover rect.callout, .atlas-stage .hot.on rect.callout { fill: #F2F2F2; stroke: #F2F2F2; }
.atlas-stage .hot text { font-size: 10.5px; letter-spacing: 0.6px; }
.atlas-stage .hot:hover rect.dot, .atlas-stage .hot.on rect.dot { fill: #F2F2F2; }
.atlas-stage .hot.on line { stroke: #F2F2F2 !important; }

/* atlas v3: grouped subject nav */
.atlas-nav { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.atlas-nav .grp .mono { display: block; margin-bottom: 10px; }
.atlas-nav .atlas-switch { margin-bottom: 0; }
@media (max-width: 720px) { .atlas-nav { gap: 22px; } .atlas-switch button { padding: 10px 16px; } }

/* ---------- atlas v4: dedicated page ---------- */
.atl-nav { display: flex; gap: 44px; flex-wrap: wrap; margin: 54px 0 40px; border-bottom: 1px solid var(--line); }
.atl-nav .grp { padding-bottom: 0; }
.atl-nav .grp .mono { display: block; margin-bottom: 12px; }
.atl-nav .grp div { display: flex; gap: 26px; }
.atl-nav button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: none;
  color: var(--gray-2);
  padding: 0 0 16px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.atl-nav button:hover { color: var(--gray); }
.atl-nav button.active { color: var(--white); border-bottom-color: var(--white); }

.atl-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 54px; align-items: start; }
@media (max-width: 940px) { .atl-grid { grid-template-columns: 1fr; gap: 34px; } }

.atl-stage {
  position: relative;
  border: 1px solid var(--line);
  background: radial-gradient(130% 110% at 50% 0%, #0C0C0C 0%, #000 62%);
  overflow: hidden;
}
.atl-stage::after { content: ""; display: block; padding-bottom: 58%; }
.atl-stage svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.atl-stage svg.active { opacity: 1; visibility: visible; }

.atl-stage .hot { cursor: pointer; opacity: 0; transform: translateY(7px); transition: opacity 0.5s ease, transform 0.5s ease; }
.atl-stage .hot.in { opacity: 1; transform: none; }
.atl-stage .hot line { transition: stroke 0.25s ease; }
.atl-stage .hot rect.callout { fill: rgba(0,0,0,0.7); stroke: #2E2E2E; transition: fill 0.25s ease, stroke 0.25s ease; }
.atl-stage .hot text { fill: #8E8E8E; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.6px; transition: fill 0.25s ease; }
.atl-stage .hot rect.dot { fill: #777; transition: fill 0.25s ease; }
.atl-stage .hot:hover rect.callout { stroke: #9A9A9A; }
.atl-stage .hot:hover text { fill: #F2F2F2; }
.atl-stage .hot.on rect.callout { fill: #F2F2F2; stroke: #F2F2F2; }
.atl-stage .hot.on text { fill: #000; }
.atl-stage .hot.on rect.dot { fill: #F2F2F2; }
.atl-stage .hot.on line { stroke: #F2F2F2; }

.atl-panel { border: 1px solid var(--line); padding: 28px 28px 30px; }
.atl-panel-inner { transition: opacity 0.22s ease; }
.atl-panel-inner.swap { opacity: 0; }
.atl-panel .mono { display: block; }
.atl-title { color: var(--white); margin-bottom: 14px; }
.atl-desc { color: var(--gray); font-size: 0.95rem; }
.atl-field { margin-top: 22px; }
.atl-field .mono { color: var(--gray-2); margin-bottom: 8px; font-size: 0.64rem; }
.atl-imp { color: var(--text); font-size: 0.95rem; border-left: 2px solid var(--line-2); padding: 2px 0 2px 16px; }
.atl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.atl-tags span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--gray);
  padding: 5px 9px;
}
.atl-link { display: inline-block; margin-top: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.atl-link:hover { color: var(--white); border-color: var(--white); }

.atl-index { margin-top: 26px; columns: 2; column-gap: 30px; }
@media (max-width: 560px) { .atl-index { columns: 1; } }
.atl-index button {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  width: 100%; text-align: left; break-inside: avoid;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 0; cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--gray); font-size: 0.86rem;
  transition: color 0.2s ease;
}
.atl-index button .n { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; color: var(--gray-2); padding-top: 3px; transition: color 0.2s ease; }
.atl-index button:hover, .atl-index button.on { color: var(--white); }
.atl-index button.on .n { color: var(--white); }

.atl-banner { border: 1px solid var(--line-2); padding: 30px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 54px; }
.atl-banner p { color: var(--gray); max-width: 52ch; }
.atl-banner strong { color: var(--white); font-weight: 500; }

@media (max-width: 860px) { .nav-links a:nth-child(-n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .atl-stage svg, .atl-stage .hot, .atl-panel-inner, .atl-nav button { transition: none; }
  .atl-stage .hot { opacity: 1; transform: none; }
}

/* ---------- atlas v5: big stage + fullscreen ---------- */
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.atl-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.atl-fsbtn {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-2); color: var(--gray);
  padding: 11px 18px; cursor: pointer; margin-bottom: 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.atl-fsbtn:hover { color: var(--white); border-color: var(--gray-2); }

.atl-shell { position: relative; }
.atl-grid5 { display: grid; grid-template-columns: 8.2fr 3.8fr; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .atl-grid5 { grid-template-columns: 1fr; gap: 30px; } }
.atl-count { color: var(--gray-2); font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.14em; display: block; margin-bottom: 10px; }
.atl-deep { color: var(--gray); font-size: 0.93rem; margin-top: 14px; }
.atl-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.atl-links a { align-self: flex-start; }
.atl-panel-scroll { max-height: none; }

/* fullscreen (native + fallback) */
.atl-shell:fullscreen, .atl-shell.fs-fallback {
  background: var(--black);
  padding: 26px 30px;
  overflow: auto;
}
.atl-shell.fs-fallback { position: fixed; inset: 0; z-index: 90; }
.atl-shell:fullscreen .atl-grid5, .atl-shell.fs-fallback .atl-grid5 { grid-template-columns: 1fr; }
.atl-shell:fullscreen .atl-stage, .atl-shell.fs-fallback .atl-stage { height: calc(100vh - 220px); }
.atl-shell:fullscreen .atl-stage::after, .atl-shell.fs-fallback .atl-stage::after { display: none; }
.atl-shell:fullscreen .atl-side, .atl-shell.fs-fallback .atl-side {
  position: fixed; right: 40px; top: 120px; width: 380px; max-height: calc(100vh - 160px);
  overflow: auto; z-index: 5;
}
.atl-shell:fullscreen .atl-panel, .atl-shell.fs-fallback .atl-panel {
  background: rgba(0,0,0,0.82); backdrop-filter: blur(6px);
}
.atl-shell:fullscreen .atl-index, .atl-shell.fs-fallback .atl-index { display: none; }
.atl-shell:fullscreen .atl-fstop, .atl-shell.fs-fallback .atl-fstop { display: flex; }
.atl-fstop { display: none; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .atl-shell:fullscreen .atl-side, .atl-shell.fs-fallback .atl-side {
    position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 44vh;
  }
  .atl-shell:fullscreen .atl-stage, .atl-shell.fs-fallback .atl-stage { height: 52vh; }
}

/* ---------- dossier pages ---------- */
.dx-sec { margin-top: 64px; }
.dx-sec .mono { display: block; margin-bottom: 8px; }
.dx-sec h2 { margin-bottom: 14px; }
.dx-sec p { color: var(--gray); max-width: 70ch; }
.dx-imp { color: var(--text); border-left: 2px solid var(--line-2); padding: 2px 0 2px 16px; margin-top: 18px; max-width: 66ch; }
.dx-sys { margin-top: 16px; }
.dx-links { margin-top: 20px; display: flex; gap: 26px; flex-wrap: wrap; }
