/* =============================================================
   ATLAS SOFTWARE INDEX — styles.css
   Sections:
     01  Reset & base
     02  Design tokens
     03  Typography
     04  Layout primitives
     05  Site chrome (nav, footer)
     06  Hero
     07  Section head
     08  Problem & ledger
     09  Definition & schematic
     10  Foundations & stats
     11  Services
     12  Principles
     13  Audiences
     14  Atlas & Uptodown stack
     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(--amber-hair); color: var(--paper); }

/* ---------- 02  Design tokens ----------------------------------- */
:root {
  /* Palette — warm ink on dark, re-tuned for modern contrast */
  --ink:          #09090C;    /* page background, slightly deeper */
  --ink-raise:    #0E1016;    /* subtle surface */
  --panel:        #12141C;    /* raised panels */
  --hairline:     #1D2028;    /* faint dividers */
  --rule:         #262932;    /* visible dividers */
  --rule-bright:  #363945;

  --paper:        #F2EEE5;    /* primary text, warm white */
  --paper-dim:    #CBC7BC;    /* secondary text */
  --faded:        #8E8F98;    /* tertiary text */
  --muted:        #5F6069;    /* hairline labels */

  --amber:        #E6B977;    /* primary accent — warmer, brighter than before */
  --amber-soft:   #D4A574;    /* softer variant for large surfaces */
  --amber-dim:    #9A7C54;
  --amber-wash:   rgba(230, 185, 119, 0.12);
  --amber-hair:   rgba(230, 185, 119, 0.28);
  --amber-glow:   rgba(230, 185, 119, 0.05);

  --sage:         #98B0A2;    /* secondary accent — deliberate, used sparingly */

  /* Typography families (trimmed to 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) — bumped for a more confident hero */
  --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(--ink); color: var(--paper); }
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;
}

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

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(--paper); max-width: 62ch; }
.body { color: var(--paper-dim); max-width: 62ch; font-size: 1.0625rem; line-height: 1.68; }
.body + .body { margin-top: 1.15em; }
.body strong { color: var(--paper); font-weight: 500; }

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

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

/* Mono-data — used only for coordinate/technical labels */
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--faded);
}

/* ---------- 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.15rem 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(10, 11, 14, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--hairline);
}
/* Reading progress rail — thin amber line at the top of the nav that grows with scroll */
.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 120ms linear, opacity 360ms var(--ease);
  opacity: 0;
}
.nav.is-scrolled .nav__progress { opacity: 0.9; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; }
.wordmark__glyph { width: 22px; height: 22px; flex: 0 0 auto; }
.wordmark__glyph circle.outer { fill: none; stroke: var(--amber); stroke-width: 1.25; }
.wordmark__glyph line { stroke: var(--amber); stroke-width: 1.25; }
.wordmark__glyph circle.center { fill: var(--amber); }
.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.005em;
  color: var(--paper);
  line-height: 1;
}
.wordmark__sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faded);
  padding-left: 0.7rem;
  margin-left: 0.2rem;
  border-left: 1px solid var(--rule);
  line-height: 1;
}
.nav__links {
  display: flex; gap: 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.nav__links a { transition: color 180ms var(--ease); }
.nav__links a:hover { color: var(--amber); }
.nav__status {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  display: inline-flex; align-items: center; gap: 0.7ch;
}
.nav__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-wash);
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.75rem 0 2.5rem;
  color: var(--faded);
}
.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.25rem; }
.footer__copy {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--paper-dim);
  margin-top: 0.9rem;
  line-height: 1.55;
  max-width: 52ch;
}
.footer__copy a { color: var(--paper); border-bottom: 1px solid var(--amber-hair); transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.footer__copy a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- 06  Hero — text-only, confident typography ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* Two soft radial washes — warm top-right, cool bottom-left — give depth without a "diagram". */
.hero__bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(1400px 900px at 88% 14%, var(--amber-wash), transparent 60%),
    radial-gradient(1100px 780px at 6% 96%, rgba(152, 176, 162, 0.05), transparent 70%);
}
/* Twelve-column gridlines, so faint they read as atmosphere, not structure. */
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(242,238,229,0.018) 1px, transparent 1px);
  background-size: 8.3333% 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
}

.hero__container { position: relative; }
.hero__inner { max-width: 58rem; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9ch;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: clamp(2.25rem, 5vh, 3rem);
  line-height: 1;
}
.hero__tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-wash);
  animation: pulse 2.8s var(--ease) infinite;
  flex: 0 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.032em;
  color: var(--paper);
  max-width: 14ch;
  margin: 0 0 clamp(2rem, 4.5vh, 2.75rem);
}
.hero__title em {
  font-style: italic;
  color: var(--amber);
  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(--paper);
  max-width: 46ch;
  margin: 0 0 clamp(1.5rem, 3vh, 2rem);
  font-weight: 400;
}
.hero__lead strong { color: var(--amber); font-weight: 500; }

.hero__support {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 48ch;
  margin: 0 0 clamp(2.5rem, 6vh, 3.75rem);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__origin {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faded);
  display: inline-flex;
  align-items: center;
  gap: 0.9ch;
}
.hero__origin::before {
  content: "";
  width: 1px; height: 14px; background: var(--rule);
  display: inline-block;
}

/* ---- Modern pill button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
  transition: color 220ms var(--ease), background 220ms var(--ease),
              border-color 220ms var(--ease), transform 220ms var(--ease);
  cursor: pointer;
}
.btn--pill {
  padding: 0.95rem 1.5rem 0.95rem 1.7rem;
  border: 1px solid var(--rule-bright);
  border-radius: var(--radius-pill);
  background: rgba(242,238,229,0.015);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--pill:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}
.btn--pill svg { transition: transform 300ms var(--ease); }
.btn--pill:hover svg { transform: translateY(3px); }

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


/* ---------- 08  Problem & ledger -------------------------------- */
.problem__body .body { max-width: 64ch; }
.problem__pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  color: var(--paper);
  max-width: 28ch;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.problem__pullquote em { color: var(--amber); font-style: italic; }

/* Full-width 4-cell ledger */
.ledger {
  margin-top: clamp(4rem, 7vh, 6rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--hairline);
}
.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(--amber-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(--paper);
  position: relative;
  padding-top: 0.8rem;
}
.ledger__label::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--amber);
}
.ledger dd {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
  margin: 0;
  max-width: 32ch;
}

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

.schematic {
  margin: 0;
  margin-top: clamp(3rem, 6vh, 4.5rem);
  border: 1px solid var(--rule);
  background: linear-gradient(to bottom, var(--ink-raise), var(--ink));
  position: relative;
  overflow: hidden;
}

.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.75rem;
  flex-wrap: wrap;
}
.schematic__mark { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; }
.schematic__mark svg { width: 100%; height: 100%; }
.schematic__mark svg .outer { fill: none; stroke: var(--amber); stroke-width: 1.25; }
.schematic__mark svg line { stroke: var(--amber); stroke-width: 1.25; }
.schematic__mark svg .center { fill: var(--amber); }
.schematic__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  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(--faded);
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
  line-height: 1;
}
.schematic__ref {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.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 = number + title, with a bottom rail that joins siblings
   into one continuous horizontal line across the schematic. A dot sits
   on that rail at the left of each plane, marking the waypoint. */
.plane__head {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule-bright);
  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(--amber);
  box-shadow: 0 0 0 4px var(--ink-raise);
}

.plane__n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1;
}
.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(--paper);
  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(--paper);
  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(--paper-dim);
  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(--amber-dim);
}

/* ---------- 10  Foundations & stats ----------------------------- */
.foundations {
  background: var(--ink-raise);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.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);
}
.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(--paper);
  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(--amber);
}
.stats__unit {
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  color: var(--paper-dim);
  font-style: normal;
}
.stats dd {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
  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(--paper);
  max-width: 54ch;
}
.foundations__note em { color: var(--amber); font-style: italic; }

/* ---------- 11  Services ---------------------------------------- */
.services .section-head { margin-bottom: clamp(2.5rem, 5vh, 4rem); }

.service-list { border-top: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  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(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease);
}
.service-row:hover {
  background: linear-gradient(to right, rgba(212,165,116,0.035), transparent 55%);
  padding-left: clamp(1rem, 2vw, 2rem);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row__n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 0.55rem;
}
.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(--paper);
  font-weight: 400;
  max-width: 16ch;
}
.service-row__title .meta { margin-top: 0.85rem; color: var(--faded); }
.service-row__body p {
  color: var(--paper-dim);
  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(--paper-dim);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  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-bright); }

/* ---------- 12  Principles -------------------------------------- */
.principles {
  background: var(--ink-raise);
  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);
}
.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(--amber);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 420ms var(--ease);
}
.principle:hover { background: var(--amber-glow); }
.principle:hover::before { transform: scaleX(1); }
.principle__n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 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(--paper);
}
.principle__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--paper-dim);
  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);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.audience:nth-child(2n) { border-right: 0; }
.audience:nth-last-child(-n+2) { border-bottom: 0; }
.audience__n { color: var(--amber); }
.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(--paper);
  margin-bottom: 0.75rem;
}
.audience p {
  color: var(--paper-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 42ch;
}

/* ---------- 14  Atlas & Uptodown stack -------------------------- */
.relationship .lead { max-width: 58ch; }

.stack {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  display: flex; flex-direction: column;
}
.stack__row {
  border: 1px solid var(--hairline);
  background: var(--ink-raise);
  position: relative;
}
.stack__row + .stack__row { margin-top: -1px; }
.stack__row--surfaces, .stack__row--software {
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}
.stack__row--atlas {
  padding: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  border-color: var(--rule-bright);
  background:
    linear-gradient(to right, rgba(212,165,116,0.05), transparent 30%, transparent 70%, rgba(212,165,116,0.05)),
    var(--ink-raise);
}
.stack__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faded);
}
.stack__label--accent { color: var(--amber); }
.stack__items {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--paper-dim);
}
.stack__items span { position: relative; padding-right: 1.4rem; letter-spacing: 0.005em; }
.stack__items span:not(:last-child)::after {
  content: "·";
  position: absolute; right: 0.45rem; top: 0;
  color: var(--muted);
}
.stack__items span.is-uptodown {
  color: var(--amber);
  font-weight: 500;
}

.stack__atlas-inner {
  display: flex; flex-direction: column; gap: 0.85rem;
  align-items: flex-start;
}
.stack__atlas-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--paper);
}
.stack__atlas-sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  color: var(--paper-dim);
  display: flex; flex-wrap: wrap; gap: 0.3rem 0;
}
.stack__atlas-sub span { position: relative; padding-right: 1.4rem; }
.stack__atlas-sub span:not(:last-child)::after {
  content: "·";
  position: absolute; right: 0.5rem; top: 0;
  color: var(--amber-dim);
}

.stack__connectors {
  display: flex; justify-content: space-around;
  padding: 0.4rem 2rem;
  color: var(--rule-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
}

.relationship__note {
  margin-top: 2.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--paper);
  max-width: 56ch;
}
.relationship__note em { color: var(--amber); 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(--paper-dim);
  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(--faded); }
.direction__contact a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: var(--paper);
  border-bottom: 1px solid var(--amber-hair);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  padding-bottom: 0.15rem;
  line-height: 1;
}
.direction__contact a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.direction__author {
  text-align: right;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--faded);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.direction__author strong { color: var(--paper-dim); 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: 1100px) {
  .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: repeat(2, 1fr); }
  .ledger__cell { border-bottom: 1px solid var(--hairline); }
  .ledger__cell:nth-child(2n) { border-right: 0; }
  .ledger__cell:nth-last-child(-n+2) { 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 { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .service-row { grid-template-columns: 60px minmax(0, 1fr); }
  .service-row__body { grid-column: 1 / -1; padding-left: 60px; }
  .audiences__grid { grid-template-columns: 1fr; }
  .audience { border-right: 0; }
}

@media (max-width: 720px) {
  :root { --section-pad: clamp(4rem, 9vh, 6rem); }
  .nav__links, .nav__status { display: none; }
  .wordmark__sub { display: none; }
  .hero { padding-top: 7.5rem; min-height: auto; }
  .hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); max-width: 18ch; }
  .hero__actions { gap: 1rem; }
  .hero__origin::before { display: none; }
  .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 { grid-template-columns: 1fr; }
  .principle { border-right: 0 !important; min-height: auto; }
  .service-row { grid-template-columns: 1fr; padding: 2rem 0; gap: 0.85rem; }
  .service-row__body { padding-left: 0; }
  .audience { grid-template-columns: 1fr; gap: 0.85rem; }
  .stack__row--surfaces, .stack__row--software { grid-template-columns: 1fr; gap: 0.85rem; }
  .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; }
}
