/* =============================================================
   THE ATLAS CONSTELLATION — styles.css
   Mapping the software universe.

   Sections
     01  Reset & base
     02  Design tokens
     03  Typography
     04  Layout primitives
     05  Site chrome (nav, footer)
     06  Hero
     07  Section head + buttons
     08  Opening + ledger
     09  Definition + schematic
     10  Foundations + stats
     11  Surfaces (service rows)
     12  Principles
     13  Audiences
     14  Group stack (Atlas ↔ Uptodown)
     15  Direction / closing
     16  Reveal animations
     17  Responsive
   ============================================================= */

/* ---------- 01  Reset & base ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--copper-hair); color: var(--ink); }

/* ---------- 02  Design tokens ----------------------------------- */
:root {
  /* Palette — cartographer's paper, warm light */
  --paper:        #F4EFE3;    /* page background — vintage map paper */
  --paper-soft:   #FBF7EC;    /* lifted surface */
  --paper-deep:   #EAE3CF;    /* depressed surface, foundations band */
  --hairline:     #D8D2C2;    /* faint dividers */
  --rule:         #BDB6A4;    /* visible dividers */
  --rule-strong:  #9C947E;

  --ink:          #16181D;    /* primary text — graphite */
  --ink-soft:     #3B3E48;    /* secondary */
  --ink-mid:      #6E6F75;    /* tertiary */
  --ink-faint:    #9D9C90;    /* labels */

  --copper:       #B5532E;    /* primary accent — topographic ink */
  --copper-soft:  #D17A52;
  --copper-deep:  #8C3F22;
  --copper-wash:  rgba(181, 83, 46, 0.07);
  --copper-hair:  rgba(181, 83, 46, 0.22);
  --copper-glow:  rgba(181, 83, 46, 0.04);

  --indigo:       #1F3A4D;    /* secondary — water/depth */
  --indigo-soft:  #3F5E76;

  /* Typography families (three) */
  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale (fluid) */
  --fs-hero:  clamp(3rem, 10vw, 9rem);
  --fs-h2:    clamp(2.25rem, 4.6vw, 4.25rem);
  --fs-h3:    clamp(1.375rem, 2.1vw, 1.75rem);
  --fs-lead:  clamp(1.125rem, 1.5vw, 1.4375rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-meta:  0.8125rem;

  /* Layout */
  --container:    1320px;
  --gutter:       clamp(1.25rem, 3.6vw, 3rem);
  --section-pad:  clamp(6rem, 13vh, 10rem);
  --radius:       4px;
  --radius-pill:  999px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-smooth:  cubic-bezier(0.6, 0, 0.1, 1);
}

html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(22,24,29,0.018) 0, transparent 40%),
    radial-gradient(circle at 78% 76%, rgba(181,83,46,0.025) 0, transparent 45%);
  mix-blend-mode: multiply;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- 03  Typography -------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--copper); }

h2.display { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.022em; }
h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.body {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}
.body + .body { margin-top: 1.15em; }
.body strong { color: var(--ink); font-weight: 500; }

/* Eyebrow — small uppercase label above section H2 */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.85ch;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 1.6ch;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

/* Meta — small UI labels */
.meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1;
}

/* Mono — used for coordinates, refs, technical labels */
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

/* ---------- 04  Layout primitives ------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-pad); position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2.75rem, 5.5vh, 4.5rem);
}
.section-head .eyebrow { align-self: flex-start; }
.section-head h2.display { max-width: 22ch; }
.section-head .lead { margin-top: 0.35rem; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.two-col--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 05  Site chrome ------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.05rem 0;
  transition: background 360ms var(--ease),
              backdrop-filter 360ms var(--ease),
              border-color 360ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244, 239, 227, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--hairline);
}
.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 120ms linear, opacity 360ms var(--ease);
  opacity: 0;
}
.nav.is-scrolled .nav__progress { opacity: 0.95; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.wordmark__glyph {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  color: var(--copper);
  display: inline-block;
}
.wordmark__glyph svg { width: 100%; height: 100%; transition: transform 600ms var(--ease); overflow: visible; }
.wordmark:hover .wordmark__glyph svg { transform: scale(1.06); }
/* 3 stacked isolines (cartography) + 1 star (universe whisper) */
.wordmark__glyph .contour { stroke: currentColor; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wordmark__glyph .c-1 { opacity: 1; }
.wordmark__glyph .c-2 { opacity: 0.75; }
.wordmark__glyph .c-3 { opacity: 0.45; }
.wordmark__glyph .wordmark-star {
  fill: currentColor;
  opacity: 0.9;
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.wordmark:hover .wordmark-star { transform: scale(1.25); opacity: 1; }
.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 2.1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  transition: color 180ms var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: var(--copper);
  transition: right 240ms var(--ease);
}
.nav__links a:hover { color: var(--copper); }
.nav__links a:hover::after { right: 0; }

.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.75rem 0 2.5rem;
  color: var(--ink-mid);
}
.footer__row { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2rem; }
.footer__meta { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.footer .wordmark__text { font-size: 1.2rem; }
.footer__copy {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  line-height: 1.6;
  max-width: 56ch;
}
.footer__copy a {
  color: var(--ink);
  border-bottom: 1px solid var(--copper-hair);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer__copy a:hover { color: var(--copper); border-bottom-color: var(--copper); }
.footer__mail { color: var(--ink-mid); transition: color 180ms var(--ease); }
.footer__mail:hover { color: var(--copper); }

/* ---------- 06  Hero -------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(8rem, 16vh, 12rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__bg-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(1300px 900px at 90% 12%, var(--copper-wash), transparent 65%),
    radial-gradient(1100px 800px at 0% 100%, rgba(31, 58, 77, 0.05), transparent 70%);
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(22,24,29,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22,24,29,0.018) 1px, transparent 1px);
  background-size: 8.3333% 100%, 100% 8.3333%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}
/* ----- Hero topographic contours + sparse stars ---------------- */
.hero__bg-contours {
  position: absolute;
  right: 0; top: 0;
  width: 78%;
  max-width: 1100px;
  height: 100%;
  color: var(--copper);
  opacity: 0.45;
  transform: translate3d(var(--contour-px, 0px), var(--contour-py, 0px), 0);
  will-change: transform;
  transition: transform 600ms var(--ease-smooth);
  mask-image: linear-gradient(to left, black 35%, transparent 96%);
  -webkit-mask-image: linear-gradient(to left, black 35%, transparent 96%);
  animation: contour-breathe 14s ease-in-out 2.4s infinite;
}
.hero__bg-contours g[stroke] path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: contour-draw 2.6s var(--ease-smooth) forwards;
}
.hero__bg-contours g[stroke] path:nth-child(1) { animation-delay: 0.05s; }
.hero__bg-contours g[stroke] path:nth-child(2) { animation-delay: 0.18s; }
.hero__bg-contours g[stroke] path:nth-child(3) { animation-delay: 0.30s; }
.hero__bg-contours g[stroke] path:nth-child(4) { animation-delay: 0.42s; }
.hero__bg-contours g[stroke] path:nth-child(5) { animation-delay: 0.54s; }
.hero__bg-contours g[stroke] path:nth-child(6) { animation-delay: 0.66s; }
.hero__bg-contours g[stroke] path:nth-child(7) { animation-delay: 0.78s; }
.hero__bg-contours g[stroke] path:nth-child(8) { animation-delay: 0.90s; }

.hero__bg-pings circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-in 600ms var(--ease) forwards,
             ping-pulse 3.6s var(--ease) infinite;
}
.hero__bg-pings circle:nth-child(1) { animation-delay: 1.4s, 1.8s; }
.hero__bg-pings circle:nth-child(2) { animation-delay: 1.8s, 2.4s; }
.hero__bg-pings circle:nth-child(3) { animation-delay: 2.2s, 3.0s; }

/* Universe whisper — sparse stars sprinkled above the contours.
   Faint by default; each theme dials presence as needed. */
.hero__bg-stars circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: star-in 1200ms var(--ease) forwards,
             star-twinkle 6s var(--ease) infinite 2s;
  opacity: 0;
}
.hero__bg-stars circle:nth-child(1)  { animation-delay: 1.0s, 3.0s; }
.hero__bg-stars circle:nth-child(2)  { animation-delay: 1.1s, 3.4s; }
.hero__bg-stars circle:nth-child(3)  { animation-delay: 1.2s, 2.8s; }
.hero__bg-stars circle:nth-child(4)  { animation-delay: 1.3s, 3.2s; }
.hero__bg-stars circle:nth-child(5)  { animation-delay: 1.4s, 2.6s; }
.hero__bg-stars circle:nth-child(6)  { animation-delay: 1.5s, 3.6s; }
.hero__bg-stars circle:nth-child(7)  { animation-delay: 1.6s, 3.0s; }
.hero__bg-stars circle:nth-child(8)  { animation-delay: 1.7s, 3.4s; }
.hero__bg-stars circle:nth-child(9)  { animation-delay: 1.8s, 2.8s; }
.hero__bg-stars circle:nth-child(10) { animation-delay: 1.9s, 3.2s; }
.hero__bg-stars circle:nth-child(11) { animation-delay: 2.0s, 2.6s; }
.hero__bg-stars circle:nth-child(12) { animation-delay: 2.1s, 3.6s; }

@keyframes contour-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes contour-breathe {
  0%, 100% { filter: none; }
  50%      { filter: brightness(1.05); }
}
@keyframes ping-in {
  to { opacity: 1; }
}
@keyframes ping-pulse {
  0%, 60%, 100% { transform: scale(1); }
  30%           { transform: scale(2.2); }
}
@keyframes star-in {
  to { opacity: 1; }
}
@keyframes star-twinkle {
  0%, 100% { opacity: var(--twinkle-base, 0.5); }
  50%      { opacity: var(--twinkle-peak, 0.85); }
}

.hero__container { position: relative; }

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.hero__coords { display: flex; flex-direction: column; gap: 0.4rem; }
.hero__coords .mono { color: var(--ink-soft); }
.hero__coords .mono + .mono { color: var(--ink-mid); }
.hero__year { color: var(--copper); }

.hero__inner { max-width: 60rem; padding-top: clamp(0.5rem, 2vh, 1.5rem); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: -0.034em;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 0 clamp(2rem, 4.5vh, 2.75rem);
}
.hero__title em {
  font-style: italic;
  color: var(--copper);
  font-weight: 400;
}

.hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1.1875rem, 1.65vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 0 clamp(1.5rem, 3vh, 2rem);
  font-weight: 400;
}
.hero__lead strong { color: var(--copper); font-weight: 500; }

.hero__support {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
}
.hero__link {
  color: var(--ink);
  border-bottom: 1px solid var(--copper-hair);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.hero__link:hover { color: var(--copper); border-bottom-color: var(--copper); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--copper-wash); }
  50%      { box-shadow: 0 0 0 6px var(--copper-glow); }
}

/* ---------- 08  Opening + ledger -------------------------------- */
.opening__body .body { max-width: 64ch; }
.opening__pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 28ch;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.opening__pullquote em { color: var(--copper); font-style: italic; }

/* Ledger — 3-cell horizontal ribbon */
.ledger {
  margin-top: clamp(4rem, 7vh, 6rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-soft);
}
.ledger__cell {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: background 380ms var(--ease);
}
.ledger__cell:last-child { border-right: 0; }
.ledger__cell:hover { background: var(--copper-glow); }
.ledger__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  position: relative;
  padding-top: 0.85rem;
}
.ledger__label::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px;
  height: 2px;
  background: var(--copper);
}
.ledger dd {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

/* ---------- 09  Definition + schematic -------------------------- */
.what .body { max-width: 64ch; }

.schematic {
  margin: 0;
  margin-top: clamp(3rem, 6vh, 4.5rem);
  border: 1px solid var(--rule);
  background: var(--paper-soft);
  position: relative;
  overflow: hidden;
}
/* Subtle topographic background inside schematic */
.schematic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%,
    transparent 38%, rgba(181,83,46,0.04) 38.5%, transparent 39%,
    transparent 48%, rgba(181,83,46,0.04) 48.5%, transparent 49%,
    transparent 58%, rgba(181,83,46,0.03) 58.5%, transparent 59%,
    transparent 68%, rgba(181,83,46,0.025) 68.5%, transparent 69%);
  pointer-events: none;
}
.schematic > * { position: relative; }

.schematic__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
  gap: 1.5rem;
}
.schematic__title {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.schematic__mark {
  width: 22px; height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--copper);
}
.schematic__mark svg { width: 100%; height: 100%; }
.schematic__mark .contour { stroke: currentColor; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.schematic__mark .c-1 { opacity: 1; }
.schematic__mark .c-2 { opacity: 0.75; }
.schematic__mark .c-3 { opacity: 0.45; }
.schematic__mark .wordmark-star { fill: currentColor; opacity: 0.9; }

.schematic__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}
.schematic__sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
  line-height: 1;
}
.schematic__ref { color: var(--copper); }

.schematic__planes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.plane {
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2vw, 2rem) clamp(2rem, 3vw, 2.5rem);
  border-right: 1px solid var(--hairline);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plane:last-child { border-right: 0; }

.plane__head {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
  position: relative;
}
.plane__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5.5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px var(--paper-soft);
}
.plane__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.5vw, 2.375rem);
  line-height: 1.02;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0;
}

.plane__body { display: flex; flex-direction: column; gap: 0.85rem; }
.plane__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.plane__list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.plane__list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.plane__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--copper-soft);
}

/* ---------- 10  Foundations + stats ----------------------------- */
.foundations {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.foundations::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(22,24,29,0.025) 38px 39px);
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
  pointer-events: none;
}
.foundations > .container { position: relative; z-index: 1; }
.foundations .body { max-width: 62ch; }
.foundations .section-head { margin-bottom: clamp(2rem, 4vh, 3rem); }

.stats {
  margin: clamp(4rem, 7vh, 6rem) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
}
.stats__cell {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.2vw, 2.25rem);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}
.stats__cell:last-child { border-right: 0; }
.stats__value {
  display: flex;
  align-items: baseline;
  gap: 0.45ch;
  flex-wrap: wrap;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
.stats__num {
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 0.95;
}
.stats__num em { font-style: italic; color: var(--copper); }
.stats__unit {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  color: var(--ink-soft);
  font-style: normal;
}
.stats dd {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0;
}

.foundations__note {
  margin-top: clamp(2.5rem, 4.5vh, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 54ch;
}
.foundations__note em { color: var(--copper); font-style: italic; }

/* ---------- 11  Surfaces (service rows) ------------------------- */
.surfaces .section-head { margin-bottom: clamp(2.5rem, 5vh, 4rem); }

.service-list { border-top: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(2rem, 4.5vh, 3rem) clamp(0rem, 1vw, 1.25rem);
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  position: relative;
  transition: background 380ms var(--ease), padding-left 380ms var(--ease);
}
.service-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease);
}
.service-row:hover {
  background: linear-gradient(to right, rgba(181,83,46,0.045), transparent 55%);
  padding-left: clamp(1rem, 2vw, 2rem);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row__title h3 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.014em;
  color: var(--ink);
  font-weight: 400;
  max-width: 16ch;
}
.service-row__title .meta { margin-top: 0.85rem; color: var(--ink-mid); }
.service-row__body p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 58ch;
}
.service-row__tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}
.service-row__tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  background: var(--paper-soft);
  transition: border-color 180ms var(--ease),
              color 180ms var(--ease),
              background 180ms var(--ease);
}
.service-row:hover .service-row__tags span { border-color: var(--rule-strong); }

/* ---------- 12  Principles -------------------------------------- */
.principles {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  background: var(--paper-soft);
}
.principles__grid--four { grid-template-columns: repeat(4, 1fr); }
.principle {
  padding: 2.5rem 1.75rem 2.75rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 280px;
  transition: background 380ms var(--ease);
}
.principle:last-child { border-right: 0; }
.principle::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 420ms var(--ease);
}
.principle:hover { background: var(--copper-glow); }
.principle:hover::before { transform: scaleX(1); }
.principle__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.principle__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: auto;
}

/* ---------- 13  Audiences --------------------------------------- */
.audiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.audience {
  padding: clamp(2.25rem, 3.8vw, 3rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-soft);
  transition: background 380ms var(--ease);
  position: relative;
}
.audience::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 2px;
  background: var(--copper);
}
.audience:nth-child(2n) { border-right: 0; }
.audience:nth-last-child(-n+2) { border-bottom: 0; }
.audience:hover { background: var(--paper); }
.audience h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.audience p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 42ch;
}

/* ---------- 14  Products (Atlas portfolio) ---------------------- */
.products .lead { max-width: 58ch; }

.product-list {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.product {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vh, 3.5rem) clamp(0.25rem, 1vw, 1.25rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  align-items: start;
  background: linear-gradient(to right, var(--paper) 0%, var(--paper) 100%);
  transition: background 420ms var(--ease);
}
.product::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--rule);
  transition: background 420ms var(--ease);
}
.product--live::before { background: var(--copper); }
.product--beta::before { background: var(--copper-soft); }
.product--building::before { background: var(--copper-soft); opacity: 0.55; }
.product--horizon::before { background: var(--rule); opacity: 0.6; }

.product:hover { background: var(--paper-soft); }
.product--live:hover { background: linear-gradient(to right, var(--copper-wash), var(--paper-soft) 60%); }

.product__head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.product__pill {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  color: var(--ink-mid);
  background: var(--paper-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.55ch;
  line-height: 1;
}
.product__pill--live {
  color: var(--copper);
  border-color: var(--copper);
  background: var(--copper-wash);
}
.product__pill--beta {
  color: var(--copper-soft);
  border-color: var(--copper-hair);
  background: var(--copper-glow);
}
.product__pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-wash);
  animation: pulse 2.8s var(--ease) infinite;
}
.product__since {
  color: var(--ink-mid);
  font-size: 0.7rem;
}
.product--live .product__since { color: var(--copper); }

.product__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 64ch;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.product--building .product__name { color: var(--ink-soft); }
.product--horizon .product__name { color: var(--ink-mid); }
.product__desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0;
}
.product--horizon .product__desc { color: var(--ink-mid); }

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--copper-hair);
  padding: 0 0 0.35rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  transition: color 200ms var(--ease),
              border-color 200ms var(--ease),
              gap 200ms var(--ease);
}
.product__link svg { transition: transform 240ms var(--ease); }
.product__link:hover { color: var(--copper); border-bottom-color: var(--copper); gap: 0.95rem; }
.product__link:hover svg { transform: translateX(3px); }

.product__tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.product__tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  transition: border-color 180ms var(--ease),
              color 180ms var(--ease);
}
.product:hover .product__tags span { border-color: var(--rule-strong); color: var(--ink); }

.products__note {
  margin-top: clamp(2.5rem, 4.5vh, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 56ch;
}
.products__note em { color: var(--copper); font-style: italic; }

/* ---------- 15  Direction / closing ----------------------------- */
.direction { border-top: 1px solid var(--hairline); }
.direction__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.direction h2.display { max-width: 14ch; }
.direction__body p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.68;
  max-width: 60ch;
}
.direction__body p + p { margin-top: 1.3rem; }

.direction__signoff {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: end;
}
.direction__contact { display: flex; flex-direction: column; gap: 0.65rem; }
.direction__contact .meta { color: var(--ink-mid); }
.direction__contact a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: var(--ink);
  border-bottom: 1px solid var(--copper-hair);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  padding-bottom: 0.15rem;
  line-height: 1;
}
.direction__contact a:hover { color: var(--copper); border-bottom-color: var(--copper); }

.direction__author {
  text-align: right;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.direction__author strong { color: var(--ink-soft); font-weight: 500; }

/* ---------- 16  Reveal animations ------------------------------- */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17  Responsive -------------------------------------- */
@media (max-width: 1180px) {
  .schematic__planes { grid-template-columns: repeat(2, 1fr); }
  .plane { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .plane:nth-child(2n) { border-right: 0; }
  .plane:nth-last-child(-n+2) { border-bottom: 0; }
  .principles__grid { grid-template-columns: repeat(3, 1fr); }
  .principle:nth-child(3n) { border-right: 0; }
}

@media (max-width: 1024px) {
  .two-col, .two-col--reverse,
  .direction__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__cell { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .ledger__cell:last-child { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell { border-bottom: 1px solid var(--hairline); }
  .stats__cell:nth-child(2n) { border-right: 0; }
  .stats__cell:nth-last-child(-n+2) { border-bottom: 0; }
  .principles__grid,
  .principles__grid--four { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .principles__grid--four .principle:nth-child(3n) { border-right: 0; }
  .principles__grid--four .principle:nth-child(2n) { border-right: 0; }
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
  .audiences__grid { grid-template-columns: 1fr; }
  .audience { border-right: 0; }
  .audience:nth-last-child(-n+1) { border-bottom: 0; }
  .product { grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 720px) {
  :root { --section-pad: clamp(4rem, 9vh, 6rem); }
  .nav { padding: 0.85rem 0; }
  .nav__links { display: none; }
  .theme-picker__label-name,
  .theme-picker__option-sub { display: none; }
  .hero { padding-top: 6.5rem; min-height: auto; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); max-width: 18ch; }
  .hero__bg-contours { opacity: 0.28; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__cell { border-right: 0; }
  .stats { grid-template-columns: 1fr; }
  .stats__cell { border-right: 0; }
  .schematic__planes { grid-template-columns: 1fr; }
  .plane { border-right: 0 !important; }
  .plane:last-child { border-bottom: 0 !important; }
  .principles__grid,
  .principles__grid--four { grid-template-columns: 1fr; }
  .principle { border-right: 0 !important; min-height: auto; }
  .service-row { grid-template-columns: 1fr; padding: 2rem 0; gap: 0.85rem; }
  .audience { padding: 1.75rem 1.5rem; }
  .product {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.25rem 0 2.25rem 1.25rem;
  }
  .direction__signoff { align-items: flex-start; }
  .direction__author { text-align: left; }
  .footer__row { grid-template-columns: 1fr; }
  .schematic__head { flex-wrap: wrap; gap: 0.75rem; }
  .schematic__sub { padding-left: 0; border-left: 0; }
}

/* =============================================================
   18  Theme-switcher chrome (shared across all variants)
       Uses generic tokens so it auto-adapts when the theme
       redefines --paper/--ink/--hairline/--copper.
   ============================================================= */
.nav__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-picker { position: relative; }
.theme-picker__trigger {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.65ch;
  padding: 0.45rem 0.7rem 0.45rem 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.theme-picker__trigger:hover { border-color: var(--rule); color: var(--ink); }
.theme-picker__trigger[aria-expanded="true"] { border-color: var(--copper); color: var(--ink); }

.theme-picker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex: 0 0 auto;
}
.theme-picker__label { display: inline-flex; align-items: baseline; gap: 0.5ch; }
.theme-picker__label-letter {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0;
}
.theme-picker__label-name { color: inherit; }
.theme-picker__caret {
  margin-left: 0.15rem;
  opacity: 0.6;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.theme-picker__trigger[aria-expanded="true"] .theme-picker__caret { transform: rotate(180deg); opacity: 1; }

.theme-picker__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 280px;
  padding: 0.4rem;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 10px 40px -12px rgba(0,0,0,0.18), 0 2px 8px -4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 100;
}
.theme-picker__menu[hidden] { display: none; }

.theme-picker__option {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.theme-picker__option:hover,
.theme-picker__option:focus-visible {
  background: var(--copper-glow);
  outline: none;
}
.theme-picker__option[aria-selected="true"] { background: var(--copper-wash); }

.theme-picker__option-letter {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--copper);
  text-align: center;
  letter-spacing: 0;
}
.theme-picker__option-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.theme-picker__option-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
}
.theme-picker__option-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.2;
}

.mode-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.mode-toggle:hover { color: var(--ink); border-color: var(--rule); }
.mode-toggle__icon { display: block; transition: transform 380ms var(--ease); }
.mode-toggle:hover .mode-toggle__icon { transform: rotate(15deg); }
.mode-toggle__moon { display: none; }
html[data-mode="dark"] .mode-toggle__sun-group { display: none; }
html[data-mode="dark"] .mode-toggle__moon { display: block; }

/* =============================================================
   19  Theme A — Dark mode
       Inverts the cartographer's-paper palette to night-paper:
       indigo-graphite background, brighter copper, paper-tinted ink.
   ============================================================= */
html[data-theme="A"][data-mode="dark"] {
  --paper:        #15181E;
  --paper-soft:   #1B1F26;
  --paper-deep:   #0F1218;
  --hairline:     #2A2E37;
  --rule:         #3D424D;
  --rule-strong:  #5C6271;

  --ink:          #ECE6D6;
  --ink-soft:     #BCB6A6;
  --ink-mid:      #8B8678;
  --ink-faint:    #5E5C52;

  --copper:       #D77A52;
  --copper-soft:  #E89070;
  --copper-deep:  #B5532E;
  --copper-wash:  rgba(215, 122, 82, 0.10);
  --copper-hair:  rgba(215, 122, 82, 0.28);
  --copper-glow:  rgba(215, 122, 82, 0.06);

  --indigo:       #5E8FA9;
  --indigo-soft:  #7CA9C0;
}
html[data-theme="A"][data-mode="dark"] body::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.018) 0, transparent 40%),
    radial-gradient(circle at 78% 76%, rgba(215,122,82,0.04) 0, transparent 45%);
  mix-blend-mode: screen;
}
html[data-theme="A"][data-mode="dark"] .nav.is-scrolled {
  background: rgba(21, 24, 30, 0.82);
  border-bottom-color: var(--hairline);
}
html[data-theme="A"][data-mode="dark"] .hero__bg-grid {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.018) 1px, transparent 1px);
}
html[data-theme="A"][data-mode="dark"] .hero__bg-stars circle { fill: var(--ink); opacity: 0.55; }
html[data-theme="A"][data-mode="dark"] .foundations::before {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,0.03) 38px 39px);
}
html[data-theme="A"][data-mode="dark"] .schematic::before {
  background-image: radial-gradient(circle at 50% 50%,
    transparent 38%, rgba(215,122,82,0.08) 38.5%, transparent 39%,
    transparent 48%, rgba(215,122,82,0.07) 48.5%, transparent 49%,
    transparent 58%, rgba(215,122,82,0.06) 58.5%, transparent 59%,
    transparent 68%, rgba(215,122,82,0.05) 68.5%, transparent 69%);
}
