/* Enterprise Junction — styles.css
   One theme: Ink. The site is dark only. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Doto"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/doto-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* arrows (← → ↗) subset from the JetBrains Mono v2.304 release, so every arrow matches the labels */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-arrows-500-normal.woff2") format("woff2"); unicode-range: U+2190, U+2192, U+2194-2199; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-arrows-700-normal.woff2") format("woff2"); unicode-range: U+2190, U+2192, U+2194-2199; }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --ink: #121A2B;
  --signal: #F26A1B;
  --haze: #A9B3C4;
  --white: #FFFFFF;
  --chalk: #EDEFF4;              /* running text: a touch under white so it doesn't halate on Ink (15:1) */
  --card-dark: #202838;          /* Ink lifted 6% toward white */

  /* surfaces and text */
  --bg: var(--ink);
  --fg: var(--chalk);
  --fg-2: var(--haze);
  --rule: rgba(255, 255, 255, 0.12);
  --surface: var(--card-dark);
  --pill-line: rgba(255, 255, 255, 0.42);
  --grid-line: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(18, 26, 43, 0.84);
  --grain-alpha: 0.05;
  --img-grain-alpha: 0.06;
  color-scheme: dark;

  /* type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-dot: "Doto", "JetBrains Mono", ui-monospace, monospace;
  --step-display: clamp(2.5rem, 1.5rem + 4.444vw, 6rem);     /* 40px @360 → 88px @1440 → 96px on big monitors */
  --step-section: clamp(2rem, 1.2rem + 2.6vw, 4rem);          /* about 56px on desktop, up to 64px */

  /* layout */
  --max: clamp(1200px, 86vw, 1760px);   /* grows with large monitors instead of leaving dead space */
  --gutter: clamp(24px, 4vw, 48px);
  --nav-h: 64px;
  --space-section: clamp(96px, 11vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* textures, generated in code */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.5 0 0 0 -.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Ccircle cx='2.5' cy='2.5' r='1.05'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
/* very large monitors: everything set in rem grows a little */
@media (min-width: 1800px) { html { font-size: 106.25%; } }
@media (min-width: 2300px) { html { font-size: 112.5%; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--fg-2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--white);
  opacity: var(--grain-alpha);
  -webkit-mask: var(--noise) 0 0 / 160px 160px repeat;
  mask: var(--noise) 0 0 / 160px 160px repeat;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }

::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.label {
  font: 500 0.75rem/1.45 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label .as-is { text-transform: none; }   /* IPv6 text is lowercase by convention (RFC 5952), even inside an uppercase label */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--signal);
  color: var(--ink);
  font: 700 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  border-radius: 3px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 3px;
  font: 700 0.9375rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}
.btn--primary { background: var(--signal); color: var(--ink); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn__arrow { font-family: var(--font-mono); font-weight: 700; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s var(--ease-out);
}
.link__text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg-2);
  text-underline-offset: 0.55em;
  transition: text-decoration-color 0.2s;
}

/* lifts only where a real pointer can hover; touch screens get no sticky hover */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
  .link:hover { transform: translateY(-1px); }
  .link:hover .link__text { text-decoration-color: var(--fg); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
html:not(.js) .nav, .nav.is-scrolled { border-bottom-color: var(--rule); }
/* 40px down the page: when it leaves the viewport, the nav gains its hairline */
.scroll-sentinel { position: absolute; top: 40px; left: 0; width: 1px; height: 1px; pointer-events: none; }

.nav__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;          /* only wraps when the reader's text size is very large */
  align-items: center;
  gap: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--fg);
  text-decoration: none;
  font: 700 1rem/1 var(--font-sans);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.mark { flex: none; }
.mark__ring { fill: var(--bg); }

.nav__links ul { display: flex; gap: 4px; }
.nav__links a, .menu__panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-2);
  transition: color 0.2s;
}
.nav__links a:hover, .menu__panel a:hover { color: var(--fg); }

.nav__actions { display: flex; align-items: center; margin-left: auto; }

.btn--nav { min-height: 44px; padding: 0 14px; font-size: 0.875rem; }

/* phone menu: a real button with aria-expanded; without JS the page is one long scroll and the footer nav remains */
.menu { display: none; }
html:not(.js) .menu { display: none !important; }
.menu__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.menu__btn[aria-expanded="true"] { color: var(--signal); }
/* a full-width sheet under the pinned bar, so it can never run off the screen */
.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px var(--gutter) 10px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.menu__panel[hidden] { display: none; }
.menu__panel ul { display: grid; }
.menu__panel a { width: 100%; }

@media (max-width: 899.98px) {
  /* four links plus the button need the room: the wordmark goes, the mark stays */
  .brand__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 699.98px) {
  .nav__links { display: none; }
  .menu { display: block; margin-left: auto; }   /* the menu word sits beside the button, where a phone menu is expected */
  .nav__actions { margin-left: 0; }
  .nav__inner { gap: 4px; }
  .btn--nav { padding: 0 12px; font-size: 0.8125rem; }
}
@media (max-width: 374.98px) {
  .nav__inner { padding-inline: 14px; gap: 2px; }
  .menu__btn { padding: 0 4px; }
  .btn--nav { padding: 0 8px; font-size: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - var(--nav-h)), 1080px);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 94%);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(32px, 6vh, 72px);
  padding-bottom: clamp(32px, 6vh, 72px);
}

.hero__data { color: var(--fg-2); margin-bottom: clamp(18px, 3.2vh, 36px); }
.hero__seg { white-space: nowrap; }
@media (max-width: 439.98px) {
  .hero__sep { display: none; }
  .hero__seg { display: block; }
}

.hero__title {
  color: var(--white);       /* the one pure-white element on the page */
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__line { display: block; }

/* the headline stays whole: it sits beside the intro, and the drawing runs underneath as a band */
.hero__top { display: grid; gap: 24px 48px; align-items: end; }
.hero__aside { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .hero__top { grid-template-columns: max-content minmax(0, 32rem); justify-content: space-between; }
}

.schematic {
  display: block;
  margin-top: clamp(40px, 7vh, 88px);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
  -webkit-user-select: none;
}
.schem { width: 100%; height: auto; overflow: visible; }
.schem--mid, .schem--narrow { display: none; }
@media (max-width: 1023.98px) {
  .schem--wide { display: none; }
  .schem--mid { display: block; max-width: 880px; }
}
@media (max-width: 759.98px) {
  .schem--mid { display: none; }
  .schem--narrow { display: block; max-width: 400px; margin-inline: auto; }
}

.schem text {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  fill: var(--fg);
  transition: fill 0.4s;
}
.schem--wide text { font-size: 12.5px; }
@media (min-width: 1600px) { .schem--wide text { font-size: 11.5px; } }
@media (min-width: 2000px) { .schem--wide text { font-size: 10.5px; } }
.schem--mid text { font-size: 12px; }
.schem--narrow text { font-size: 10.5px; }
.schem .lbl--soft { fill: var(--fg-2); }

.route {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schem--narrow .route { stroke-width: 1.35; }
.pill { fill: var(--bg); stroke: var(--pill-line); stroke-width: 1; transition: stroke 0.4s; }
.dot { fill: var(--fg); transition: fill 0.4s; }
.dot-ring { fill: var(--bg); stroke: var(--fg); stroke-width: 1.25; transition: stroke 0.4s; }
.node { fill: var(--signal); }
.node-ring { fill: var(--bg); }
.node-halo { fill: none; stroke: var(--signal); stroke-width: 1.25; opacity: 0; transition: opacity 0.4s; }
.node-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0; }

/* the viewfinder counter highlights one point at a time */
.schematic[data-active="1"] .pt--home .node-halo { opacity: 1; }
.schematic[data-active="1"] .pt--home .lbl { fill: var(--signal); }
.schematic[data-active="2"] [data-pt="2"] .pill,
.schematic[data-active="3"] [data-pt="3"] .pill { stroke: var(--signal); }
.schematic[data-active="2"] [data-pt="2"] .lbl,
.schematic[data-active="3"] [data-pt="3"] .lbl { fill: var(--signal); }
.schematic[data-active="2"] [data-pt="2"] .dot,
.schematic[data-active="3"] [data-pt="3"] .dot { fill: var(--signal); }
.schematic[data-active="2"] [data-pt="2"] .dot-ring,
.schematic[data-active="3"] [data-pt="3"] .dot-ring { stroke: var(--signal); }

.hero__sub {
  max-width: 34rem;
  color: var(--fg-2);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* viewfinder strip along the hero's bottom edge */
.viewfinder { border-top: 1px solid var(--rule); padding-top: 8px; padding-bottom: 8px; }
.vf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 48px;
}
.vf .label { font-size: 0.6875rem; color: var(--fg-2); }
.vf__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vf__loc { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.vf__pin { flex: none; fill: none; stroke: var(--fg-2); stroke-width: 1.3; }
.vf__rule { flex: none; width: 1px; height: 18px; background: var(--rule); }
.vf__point { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf__scroll {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.vf__scroll:hover { color: var(--fg); }
.vf__right { justify-self: end; display: flex; align-items: center; gap: 2px; }
.vf__count {
  margin-right: 8px;
  font: 800 1.25rem/1 var(--font-dot);
  letter-spacing: 0.04em;
  color: var(--fg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.vf__of { color: var(--fg-2); }
.vf__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  font: 500 0.875rem/1 var(--font-mono);
  color: var(--fg);
  visibility: hidden;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.js .vf__btn { visibility: visible; }
.vf__loc-text { white-space: nowrap; }
@media (hover: hover) {
  .vf__btn:hover { transform: translateY(-1px); border-color: var(--fg-2); }
}

/* the point label always shows; the scroll cue only where it can sit centred and apart */
@media (max-width: 1279.98px) {
  .vf { grid-template-columns: minmax(0, 1fr) auto; }
  .vf__scroll { display: none; }
}
@media (max-width: 859.98px) {
  .vf__left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .vf__rule { display: none; }
}
@media (max-width: 599.98px) {
  .vf { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vf__right { justify-self: start; }
  .vf__loc { white-space: normal; align-items: flex-start; }
  .vf__pin { margin-top: 2px; }
}

/* ---------- Stat strip ---------- */
.stats { padding-top: clamp(40px, 5vw, 64px); }
.stats__card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--rule);
}
.stat { display: grid; gap: 12px; align-content: start; padding: 28px; min-width: 0; }
@media (min-width: 1280px) { .stat { padding: 36px; } }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat__fig {
  font: 800 clamp(1.875rem, 0.6rem + 3.2vw, 3.5rem)/1 var(--font-dot);
  letter-spacing: 0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat__label { color: var(--fg-2); font-size: 1rem; line-height: 1.45; }
.stats__gloss { margin-top: 14px; }

@media (max-width: 899.98px) {
  .stat { padding: 22px; }
}
@media (max-width: 699.98px) {
  .stats__card { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--rule); }
}

/* glosses: a five-word note the first time a networking term appears */
.gloss {
  font: 500 0.75rem/1.6 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.gloss b {
  margin-right: 0.6em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.gloss__sep { margin-inline: 0.8em; }

/* ---------- Sections ---------- */
.section { padding-top: var(--space-section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 32px;
  position: relative;
  padding-bottom: clamp(20px, 2.4vw, 30px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}
.section-head__title {
  max-width: 18ch;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--step-section);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head__title > span { display: block; }
.section-head__index { color: var(--signal); white-space: nowrap; padding-bottom: 0.35em; }
@media (max-width: 699.98px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__index { padding-bottom: 0; }
}

/* ---------- 01 Road vs. map ---------- */
.tone-soft { color: var(--fg-2); }
.explainer .section-head__title { max-width: none; }
.explainer__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.explainer__lead p {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--fg-2);
}
.explainer__lead p:first-child { color: var(--fg); }
.explainer__lead p + p { margin-top: 1em; }

/* the switch-carrier diagram */
.roadmap { margin: 0; background: var(--surface); border: 1px solid var(--rule); }
.roadmap__art { padding: clamp(18px, 3vw, 32px); }
.roadmap svg { width: 100%; height: auto; overflow: visible; }
.roadmap text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  fill: var(--fg);
}
.roadmap .rm-soft { fill: var(--fg-2); }
.roadmap .rm-small { font-size: 9.5px; }
/* the two addresses: mono, not the dot-matrix face, whose colon reads as a dagger at this size */
.roadmap .rm-addr {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  fill: var(--fg);
  transition: fill 0.3s;
}
.roadmap .rm-addr.is-changing { fill: var(--signal); }
.rm-house { fill: var(--surface); stroke: var(--fg); stroke-width: 1.5; stroke-linejoin: round; }
.rm-wire { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.rm-pill { fill: var(--surface); stroke: var(--pill-line); }
.rm-lane-rule { stroke: var(--rule); }
.rm-node { fill: var(--signal); }
.rm-node-ring { fill: var(--surface); }
.rm-node-pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rm-carrier text { transform-box: fill-box; transform-origin: center; }
.roadmap__bar {
  display: flex;
  flex-wrap: wrap;          /* the button drops to its own line when space runs out */
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 6px 6px clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--rule);
}
html:not(.js) .roadmap__bar { display: none; }
.roadmap__now { color: var(--fg-2); white-space: nowrap; }
@media (max-width: 599.98px) {
  /* phones: bigger type inside the same drawing (the pills have room for it) */
  .roadmap__art { padding: 14px; }
  .roadmap text { font-size: 12.5px; }
  .roadmap .rm-small { font-size: 11px; }
  .roadmap .rm-addr { font-size: 18px; }
}
.roadmap__name { margin-left: 0.6em; color: var(--fg); }
.roadmap__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--fg);
  cursor: pointer;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: auto;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
@media (hover: hover) {
  .roadmap__switch:hover { transform: translateY(-1px); border-color: var(--fg-2); }
}

/* on the road / on the map */
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(20px, 3vw, 48px);
}
.compare__head { padding-bottom: 14px; border-bottom: 1px solid var(--rule); color: var(--fg-2); }
.compare__head .label:last-child { color: var(--fg); }
.compare__row { align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
/* reveal stagger, 60ms per row (kept in CSS so a strict Content-Security-Policy needs no inline styles) */
.compare__row:nth-child(2) { --d: 0.06s; }
.compare__row:nth-child(3) { --d: 0.12s; }
.compare__row:nth-child(4) { --d: 0.18s; }
.compare__row:nth-child(5) { --d: 0.24s; }
.compare__row:nth-child(6) { --d: 0.30s; }
.compare__row:nth-child(7) { --d: 0.36s; }
@media (max-width: 699.98px) {
  .compare__row { padding: 22px 0; }
}
.compare__idx { margin-bottom: 8px; color: var(--fg-2); }
.compare__title { font: 700 1.25rem/1.25 var(--font-sans); letter-spacing: -0.01em; }
.compare__what .gloss { margin-top: 10px; }
.compare__cell { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.6; }
.compare__cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.compare__road { color: var(--fg-2); }
.compare__road::before { border: 1.5px solid var(--fg-2); }
.compare__map { color: var(--fg); }
.compare__map::before { background: var(--signal); }
.compare__tag {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 899.98px) {
  .explainer__intro { grid-template-columns: minmax(0, 1fr); }
  .compare__head { display: none; }
  .compare__row { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .compare__tag {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin-bottom: 4px;
    color: var(--fg-2);
  }
  .compare__map .compare__tag { color: var(--fg); }
}

/* ---------- 02 Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  padding-bottom: 24px;               /* room for the staggered cards */
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 32rem;
  padding: 24px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}
/* the Signal rule along the bottom edge is drawn by a pseudo-element so it can draw in from the left */
.card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -2px;
  height: 3px;
  background: var(--signal);
  transform-origin: left center;
}
.card:nth-child(even) { translate: 0 24px; }   /* first and third sit 24px higher */
@media (hover: hover) {
  .card:hover { transform: translateY(-1px); filter: brightness(1.05); }
}
/* the whole card is the link, so the lift is honest */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--signal); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }
.card__idx { position: absolute; top: 20px; right: 22px; color: var(--fg-2); }
.card__vignette {
  position: relative;
  width: min(100%, clamp(14rem, 16vw, 18rem));
  aspect-ratio: 1;
  margin: 12px 0 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.card__photo { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) {
  .card:hover .card__photo img { transform: scale(1.06); }
}
.card__vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--white);
  opacity: var(--img-grain-alpha);
  -webkit-mask: var(--noise) 0 0 / 120px 120px repeat;
  mask: var(--noise) 0 0 / 120px 120px repeat;
  pointer-events: none;
}
.card__title { margin-bottom: 10px; font: 700 1.25rem/1.25 var(--font-sans); letter-spacing: -0.01em; }
.card__text { margin-bottom: 18px; color: var(--fg-2); font-size: 1rem; line-height: 1.55; }
.card .gloss { margin-bottom: 18px; }
.card__link { margin-top: auto; align-self: flex-start; }

@media (max-width: 1023.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-height: 31rem; }
}
@media (max-width: 699.98px) {
  .cards { grid-template-columns: 1fr; padding-bottom: 0; }
  .card { min-height: 0; }
  .card:nth-child(even) { translate: none; }
}

/* ---------- 03 Network ---------- */
.section-intro {
  max-width: 40rem;
  margin: calc(-1 * clamp(12px, 2.4vw, 36px)) 0 clamp(32px, 4vw, 56px);
  color: var(--fg-2);
  font-size: 1.125rem;
  line-height: 1.55;
}
.network__stage { display: grid; }
.network__fig { position: relative; }
.network__stage .spec {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(500px, 100%);
  margin: calc(-1 * clamp(120px, 13vw, 180px)) clamp(16px, 3vw, 40px) 0 0;
}
.rev-tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 7px 10px 6px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.frame { border: 1px solid var(--rule); }
.frame__media { position: relative; overflow: hidden; }
.frame__media img { width: 100%; height: auto; }
.frame__media::before,
.frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.halftone::before {
  background: var(--ink);
  opacity: 0.16;
  -webkit-mask: var(--dots) 0 0 / 4px 4px repeat;
  mask: var(--dots) 0 0 / 4px 4px repeat;
}
.frame__media::after {
  background: var(--white);
  opacity: var(--img-grain-alpha);
  -webkit-mask: var(--noise) 0 0 / 160px 160px repeat;
  mask: var(--noise) 0 0 / 160px 160px repeat;
}
/* spec box: the brand's ruled grid on Ink */
.spec {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule);
}
.spec__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.6875rem;
  color: var(--fg-2);
}
.spec__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.spec__cell { padding: 16px 18px 18px; border-bottom: 1px solid var(--rule); min-width: 0; }
.spec__cell:last-child { border-bottom: 0; }
.spec__cell--half { grid-column: span 3; }
.spec__cell--full { grid-column: 1 / -1; }
.spec__cell--split { border-right: 1px solid var(--rule); }
.spec dt {
  margin-bottom: 8px;
  font: 500 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.spec dd { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.spec a { text-decoration-color: var(--fg-2); padding-block: 10px; }   /* inline padding widens the tap area without moving the text */
.spec__mails a { display: block; width: fit-content; max-width: 100%; padding-block: 4px; }
.nowrap { white-space: nowrap; }
.spec a:hover { text-decoration-color: var(--fg); }

@media (max-width: 899.98px) {
  .network__stage .spec { width: 100%; margin: 16px 0 0; }
}
@media (max-width: 479.98px) {
  .spec__cell--half { grid-column: 1 / -1; }
  .spec__cell--split { border-right: 0; }
}

/* ---------- 04 Questions ---------- */
.faq__list { border-top: 1px solid var(--rule); }
.faq__item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);   /* the question sits in the compare table's first column */
  gap: 8px clamp(20px, 3vw, 48px);
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.faq__q { font: 700 1.25rem/1.25 var(--font-sans); letter-spacing: -0.01em; }
.faq__a { max-width: 46rem; color: var(--fg-2); font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 899.98px) {
  .faq__item { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
}

/* ---------- 05 Contact ---------- */
.contact__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact__lede { max-width: 32rem; margin-bottom: 28px; color: var(--fg-2); font-size: 1.125rem; line-height: 1.55; }
.contact__note { margin-top: 16px; color: var(--fg-2); }
.addr {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.addr:first-child { border-top: 1px solid var(--rule); }
.addr dt { color: var(--fg-2); }
.addr dd { min-width: 0; font-size: 1.0625rem; }
.addr a {
  display: inline-block;
  max-width: 100%;
  padding-block: 9px;       /* 44px tap height */
  overflow-wrap: anywhere;
  text-decoration-color: var(--fg-2);
}
.addr a:hover { text-decoration-color: var(--fg); }

@media (max-width: 899.98px) {
  .contact__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .addr { grid-template-columns: minmax(0, 1fr); padding: 14px 0 6px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--space-section);
  padding: 56px 0 28px;
  border-top: 1px solid var(--rule);
}
.footer__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}
.lockup { color: var(--fg); text-decoration: none; }
.lockup--stacked { display: inline-grid; justify-items: start; gap: 6px; padding: 4px 0; }
.lockup--stacked .mark { margin-bottom: 8px; }
.lockup__small { font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.32em; color: var(--fg-2); }
.lockup__large { font: 800 1.75rem/0.9 var(--font-sans); letter-spacing: -0.025em; }

.footer__mid { display: grid; gap: 10px; justify-items: center; text-align: center; padding-top: 6px; }
.footer__mid .label { font-size: 0.6875rem; color: var(--fg-2); }
.footer__mid .footer__tagline { color: var(--fg); letter-spacing: 0.3em; }
.footer__right { display: grid; gap: 4px; justify-items: end; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-2);
}
.footer__links li:last-child a { padding-right: 0; }
.footer__links a:hover { color: var(--fg); }
.footer__mail { display: grid; justify-items: end; min-width: 0; }
.footer__mail li { max-width: 100%; }
.footer__mail a {
  display: inline-block;
  max-width: 100%;
  padding-block: 10px;      /* 44px tap height */
  font-size: 0.9375rem;
  color: var(--fg);
  text-decoration-color: var(--fg-2);
  overflow-wrap: anywhere;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.footer__base { font-size: 0.8125rem; color: var(--fg-2); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.8125rem;
  color: var(--fg-2);
  text-decoration-color: var(--rule);
}
.footer__legal li:last-child a { padding-right: 0; }
.footer__legal a:hover { color: var(--fg); text-decoration-color: var(--fg-2); }

@media (max-width: 899.98px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__mid { justify-items: start; text-align: left; }
  .footer__right { justify-items: start; }
  .footer__links { justify-content: flex-start; }
  .footer__links li:first-child a { padding-left: 0; }
  .footer__mail { justify-items: start; }
  .footer__legal li:first-child a { padding-left: 0; }
}

/* ---------- Text pages (terms, acceptable use, privacy) ---------- */
.page { padding-top: clamp(48px, 7vw, 96px); }
.page__head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); padding-bottom: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--rule); }
.page__kicker { margin-bottom: 14px; color: var(--signal); }
.page__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--step-section);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page__meta { margin-top: 18px; color: var(--fg-2); }
.page__lede { margin-top: 18px; color: var(--fg-2); font-size: 1.125rem; line-height: 1.55; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: clamp(32px, 4vw, 44px); margin-bottom: 10px; font: 700 1.25rem/1.25 var(--font-sans); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1em; color: var(--fg-2); }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--signal); }
.prose b { color: var(--fg); font-weight: 700; }
.prose a { text-decoration-color: var(--fg-2); }
.prose a:hover { text-decoration-color: var(--fg); }
.page__back { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Motion (all optional; off under reduced motion) ---------- */
.packet { fill: var(--signal); opacity: 0; transition: opacity 0.15s; }
.packet.is-on { opacity: 1; }

/* scroll reveals: only armed by main.js, so the page reads fully without it */
.reveal-ready .reveal,
.reveal-ready .section-head__title,
.reveal-ready .section-head__index {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.8s var(--ease-out) var(--d, 0s), translate 0.8s var(--ease-out) var(--d, 0s);
}
.reveal-ready .reveal.is-in,
.reveal-ready .section-head.is-in .section-head__title,
.reveal-ready .section-head.is-in .section-head__index { opacity: 1; translate: 0 0; }
.reveal-ready .section-head__index { --d: 0.25s; }
.reveal-ready .section-head::after { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.reveal-ready .section-head.is-in::after { transform: scaleX(1); }
.reveal-ready .cards .card { opacity: 0; transition: opacity 0.8s var(--ease-out), transform 0.25s var(--ease-out), filter 0.25s var(--ease-out); }
.reveal-ready .cards .card:nth-child(2) { transition-delay: 0.08s, 0s, 0s; }
.reveal-ready .cards .card:nth-child(3) { transition-delay: 0.16s, 0s, 0s; }
.reveal-ready .cards .card:nth-child(4) { transition-delay: 0.24s, 0s, 0s; }
.reveal-ready .cards.is-in .card { opacity: 1; }
/* once a card is in, its Signal rule draws in from the left, one card after another */
.reveal-ready .cards .card::after { transform: scaleX(0); transition: transform 0.9s var(--ease-out) 0.35s; }
.reveal-ready .cards .card:nth-child(2)::after { transition-delay: 0.47s; }
.reveal-ready .cards .card:nth-child(3)::after { transition-delay: 0.59s; }
.reveal-ready .cards .card:nth-child(4)::after { transition-delay: 0.71s; }
.reveal-ready .cards.is-in .card::after { transform: scaleX(1); }

/* the "on the map" dot pops in with a ring, shortly after its row has faded up */
.reveal-ready .compare__row .compare__map::before { transform: scale(0); }
.reveal-ready .compare__row.is-in .compare__map::before { animation: dot-pop 0.7s var(--ease-out) calc(var(--d, 0s) + 0.4s) both; }
@keyframes dot-pop {
  0%   { transform: scale(0); box-shadow: 0 0 0 0 rgba(242, 106, 27, 0.6); }
  55%  { transform: scale(1.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(242, 106, 27, 0); }
}

.rm-carrier.is-flipping text { animation: rm-flip 0.45s var(--ease-out); }
.rm-node-pulse.is-pulsing { animation: node-pulse 1.2s var(--ease-out); }
@keyframes rm-flip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .schem .route { stroke-dasharray: 1; }
  .schem .node, .schem .node-pulse { transform-box: fill-box; transform-origin: center; }
  html:not(.reveal-ready) .schem .route,
  .reveal-ready .schematic.is-in .schem .route { animation: route-draw 1.2s var(--ease-out) 0.15s both; }
  /* the exit draws in from the edge: fan first, then the trunk into the node */
  html:not(.reveal-ready) .schem .route--fan,
  .reveal-ready .schematic.is-in .schem .route--fan { animation-duration: 0.6s; animation-timing-function: ease-in; }
  html:not(.reveal-ready) .schem .route--trunk,
  .reveal-ready .schematic.is-in .schem .route--trunk { animation-duration: 0.6s; animation-delay: 0.75s; }
  html:not(.reveal-ready) .schem .node,
  .reveal-ready .schematic.is-in .schem .node { animation: node-settle 0.7s var(--ease-out) 1.05s both; }
  html:not(.reveal-ready) .schem .node-pulse,
  .reveal-ready .schematic.is-in .schem .node-pulse { animation: node-pulse 1.5s var(--ease-out) 1.25s both; }
  .reveal-ready .schematic:not(.is-in) .schem .route { stroke-dashoffset: 1; }
}
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes node-settle { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes node-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
