/* ==========================================================================
   Agades Technologies — site
   Monochrome, grid-driven, one signal color. Typeface: Inter (self-hosted).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  --blue: #2E40B0;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

.t-dark,
.site-header,
.menu,
.footer {
  --bg: #000;
  --panel: #0A0A0B;
  --fg: #F2F1EE;
  --fg-2: #A9A9A4;
  --fg-3: #86867F;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .26);
  --accent: #7383FF;
  --accent-soft: rgba(115, 131, 255, .14);
  --accent-line: rgba(115, 131, 255, .6);
  --wire: rgba(255, 255, 255, .42);
  --grid: rgba(255, 255, 255, .055);
}

.t-paper {
  --bg: #F4F1EC;
  --panel: #ECE8E1;
  --fg: #0B0B0C;
  --fg-2: #4B4A46;
  --fg-3: #6A6964;
  --line: rgba(0, 0, 0, .12);
  --line-2: rgba(0, 0, 0, .28);
  --accent: #2E40B0;
  --accent-soft: rgba(46, 64, 176, .09);
  --accent-line: rgba(46, 64, 176, .6);
  --wire: rgba(0, 0, 0, .5);
  --grid: rgba(0, 0, 0, .06);
}

.t-blue {
  --bg: #2E40B0;
  --panel: #2A3AA3;
  --fg: #F4F1EC;
  --fg-2: #D0D5F7;
  --fg-3: #BAC1F2;
  --line: rgba(255, 255, 255, .2);
  --line-2: rgba(255, 255, 255, .42);
  --accent: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, .12);
  --accent-line: rgba(255, 255, 255, .6);
  --wire: rgba(255, 255, 255, .6);
  --grid: rgba(255, 255, 255, .07);
}

.t-dark, .t-paper, .t-blue { background: var(--bg); color: var(--fg); }

/* ---------- Base -------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: #000;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  background: #000;
  color: #F2F1EE;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.menu-open body { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 600; }

::selection { background: #7383FF; color: #000; }

:focus-visible {
  outline: 2px solid var(--accent, #7383FF);
  outline-offset: 3px;
}

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

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: #F2F1EE; color: #000;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.math { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Type -------------------------------------------------------- */

.h2 {
  font-size: clamp(2.125rem, 1.15rem + 3.7vw, 4.625rem);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.02;
  max-width: 17ch;
  margin-bottom: clamp(40px, 6vw, 88px);
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.14;
  margin-bottom: 14px;
  text-wrap: balance;
}

.display {
  font-size: clamp(3.25rem, .6rem + 11vw, 12rem);
  font-weight: 600;
  letter-spacing: -.058em;
  line-height: .88;
  margin: 0 0 clamp(24px, 3vw, 40px) -.04em;
}

.eyebrow,
.tag,
.sh,
.readout dt,
.spec dt,
.hero__meta dt,
.targets__label,
.statuses__label,
.mx thead th,
.note__key,
.offer__role span,
.facts__k,
.duo__k,
.card__k,
.card__more,
.entry__k,
.page-meta dt,
.article-aside__k {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.35;
}

.eyebrow { color: var(--fg-2); margin-bottom: 18px; }

/* Interactive text stays in sentence case */
.nav a,
.btn,
.menu-btn,
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.3;
}
.hud {
  font-size: 13px;
  letter-spacing: 0;
}

.lede {
  font-size: clamp(1.125rem, .98rem + .62vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--fg-2);
  max-width: 40ch;
}

.source {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 12.5px;
  color: var(--fg-3);
  max-width: 96ch;
}

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg-2);
}
.note__key { color: var(--accent); }
.source-inline { color: var(--fg-3); font-size: 12.5px; }

/* ---------- Tags & buttons --------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
}
.tag--solid { color: var(--fg); }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
.sq { width: 6px; height: 6px; background: var(--fg); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); color: #fff; }
.btn--line { border-color: var(--line-2); color: var(--fg); }
.btn--line:hover { border-color: var(--fg); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--fg);
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  flex: none;
}
/* Logotype, as in the brand deck: mark + "Agades Technologies", semibold, tight */
.brand { gap: 10px; }
.brand__mark { width: 18px; height: 20px; }
.brand__word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--fg);
}
.brand__word b { font-weight: inherit; }

.hud {
  display: none;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.hud__idx { color: var(--accent); font-weight: 600; }
.hud__sep { margin-right: 6px; }
.hud__label { color: var(--fg-2); }

.nav { display: none; margin-left: auto; gap: 28px; }
.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a[aria-current]::after { transform: scaleX(1); }

.header-cta { display: none; }

.menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
}
.menu-btn__icon { position: relative; width: 14px; height: 8px; }
.menu-btn__icon i {
  position: absolute; left: 0; right: 0;
  height: 1px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 3.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 3.5px; transform: rotate(-45deg); }

.site-header.is-over-hero {
  --accent: #0B0B0C;
  color: var(--fg);
  background: #7383FF;
  border-bottom-color: rgba(11, 11, 12, .14);
}

.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

@media (min-width: 900px) {
  .nav, .header-cta { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1180px) {
  .hud { display: inline-flex; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  background: #000;
  color: var(--fg);
}
.menu[hidden] { display: none; }
.menu__inner { padding: 8px 0 40px; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 1rem + 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
}
.menu__list a span {
  width: 28px;
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.menu__foot { margin-top: 28px; color: var(--fg-2); }

/* ---------- Sections & grid -------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 168px);
}

.section > .wrap { position: relative; z-index: 1; }

/* Section header: [01] LABEL ———————— META */
.sh {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.sh__idx { color: var(--accent); font-weight: 600; }
.sh__idx::before { content: "["; color: var(--fg-3); margin-right: 3px; font-weight: 400; }
.sh__idx::after { content: "]"; color: var(--fg-3); margin-left: 3px; font-weight: 400; }
.sh__label { color: var(--fg); }
.sh__rule { flex: 1; height: 1px; background: var(--line); min-width: 24px; }
.sh__meta { display: none; }
@media (min-width: 640px) { .sh__meta { display: inline; } }

.intro {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.intro .h2 { margin-bottom: 0; }
.intro__text { color: var(--fg-2); max-width: 46ch; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
}

/* Corner brackets for framed panels */
.corners {
  --c: var(--fg);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ---------- Reveal ------------------------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO — static, blue on blue, isometric emblem over lattice planes
   ========================================================================== */

/* Hero blue = the site's highlight blue (#7383FF): black text reads at ~6:1 */
.t-hero,
.site-header.is-over-hero {
  --bg: #7383FF;
  --panel: #6C7CF5;
  --fg: #0B0B0C;
  --fg-2: #0F1339;
  --fg-3: #0F1339;
  --line: rgba(11, 11, 12, .18);
  --line-2: rgba(11, 11, 12, .34);
  --accent: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, .2);
  --accent-line: rgba(255, 255, 255, .7);
}
.t-hero { background: var(--bg); color: var(--fg); }
.site-header.is-over-hero { --accent: #0B0B0C; }
.t-hero ::selection { background: #0B0B0C; color: #7383FF; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
}

/* Phones: copy first (title, lede and actions on the first screen), then the
   illustration, then the key facts. From 720px: copy and facts on the left, the
   illustration in its own column on the right, spanning both rows. */
.hero__inner {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  grid-template-areas: "copy" "art" "meta";
}
.hero__copy { grid-area: copy; display: flex; flex-direction: column; }
.hero__art { grid-area: art; margin: 0; }
.hero__meta { grid-area: meta; }

/* Tall, narrow illustration (sketch: plane → mark → stack, width ≈ .49 × height):
   sized by height, centred */
.hero__art .iso { display: block; height: min(62svh, 520px); width: auto; max-width: 100%; margin: 0 auto; }

@media (min-width: 720px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    grid-template-areas: "copy art" "meta art";
    column-gap: clamp(32px, 5vw, 96px);
    min-height: calc(100svh - var(--header-h) - 32px - clamp(28px, 4vw, 48px));
  }
  .hero__art { align-self: center; }
  /* fits the viewport height, and never takes more than ~37% of the width */
  .hero__art .iso { height: min(calc(100svh - var(--header-h) - 96px), 76vw, 1040px); }
}

.hero__place {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.hero__title {
  font-size: clamp(2.5rem, .9rem + 5.6vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .95;
  margin: 0 0 clamp(24px, 3vw, 36px) -.04em;
}
.hero__title { color: #0B0B0C; }
.hero__title .accent { color: inherit; }

.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #0B0B0C;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.t-hero .btn--solid:hover { background: #FFFFFF; color: #0B0B0C; }

.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
}
.hero__meta > div { padding: 16px 16px 0 0; }
.hero__meta > div:nth-child(n + 3) { padding-top: 20px; }
.hero__meta > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.hero__meta dt { color: var(--fg-3); margin-bottom: 6px; }
.hero__meta dd { font-size: 14.5px; color: var(--fg); }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--accent); }

/* Hero illustration (inline SVG, generated once from the sketch, no script).
   Lattice colour and opacities live in the SVG (one ink, #1B2884); lines keep a
   1px hairline whatever the scale; dot sizes are set in the SVG. */
.hero__art .iso path { vector-effect: non-scaling-stroke; }
.hero__art .iso .l-dots { vector-effect: none; }
.l-plate { fill: none; stroke-width: 1; }
.l-dots { fill: none; stroke-linecap: round; }
.l-window { fill: none; stroke-width: 1.3; stroke-dasharray: 4 4; }
.l-proj { fill: none; stroke-width: 1; stroke-dasharray: 5 5; }
.m-side-l { fill: #1B2884; stroke: #5B6AD2; stroke-width: .8; stroke-linejoin: round; }
.m-side-r { fill: #24339C; stroke: #5B6AD2; stroke-width: .8; stroke-linejoin: round; }
.m-wall { fill: #1B2884; }
.m-floor { fill: #7383FF; }
.m-top { fill: #4455C9; stroke: #C3CAF6; stroke-width: 1; stroke-linejoin: round; }

/* ==========================================================================
   PANELS — split, panel, readout
   ========================================================================== */

.split {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.panel {
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 64px);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
}
.panel__key {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.panel .h3 { font-size: clamp(1.625rem, 1rem + 1.7vw, 2.625rem); letter-spacing: -.03em; max-width: 16ch; }
.panel p { color: var(--fg-2); max-width: 52ch; }

.readout { margin-top: auto; padding-top: 36px; }
.readout > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.readout > div:last-child { border-bottom: 1px solid var(--line); }
.readout dt { color: var(--fg-3); }
.readout dd { text-align: right; color: var(--fg); }
.readout dd.is-warn { color: var(--accent); }
.readout dd.is-warn::before { content: "▲ "; font-size: .7em; vertical-align: .12em; }

/* ==========================================================================
   AGADESEVOLVE (blue)
   ========================================================================== */

/* Large outline of the mark, no crosshair, filled with a light checkerboard of + and x marks, with a small * on each diagonal.
   Its top point sits 20px under the section header rule (padding + 38px header),
   its bottom about 40% of the bottom padding above the section edge.
   From 1100px the text keeps to the left two thirds so the mark has room; below
   that it would sit behind the paragraphs, so it is left out. */
.tech { overflow-x: hidden; overflow-x: clip; }
.tech__mark {
  --pad: clamp(88px, 11vw, 168px);
  display: none;
  position: absolute;
  top: calc(var(--pad) + 58px);
  left: 74%;
  height: calc(100% - var(--pad) * 1.4 - 58px);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  overflow: visible;
  stroke: rgba(255, 255, 255, .6);
  stroke-width: 1;
  pointer-events: none;
}
.tech__mark path { fill: url(#evolve-marks); vector-effect: non-scaling-stroke; }
/* + and x marks, alternating, and * on the diagonals: pattern units scale with the mark;
   marks ~6px wide with a ~1px stroke, ~16px apart at 1440px; * ~4.5px */
.tech__mark pattern line { stroke: rgba(255, 255, 255, .4); stroke-width: .14; }
/* the SVG mask #evolve-fade multiplies both: 22% of these values at the left edge, behind the
   text, rising to 100% at the right tip */
@media (min-width: 1100px) {
  .tech__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); }
  .tech__mark { display: block; }
}

.tech .lede { max-width: 34ch; color: var(--fg); }

.spec {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-2);
  max-width: 1040px;
}
.spec > div { padding: 16px 24px 16px 0; }
.spec > div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--fg-3); margin-bottom: 8px; }
.spec dd { font-size: 16px; color: var(--fg); max-width: 30ch; }
@media (min-width: 760px) {
  .spec { grid-template-columns: repeat(3, 1fr); }
  .spec > div + div { border-top: 0; padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   DIAGRAMS — shared
   ========================================================================== */

.diagram { position: relative; }

.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.wire { fill: none; stroke: var(--wire); stroke-width: 1; }
.wire--acc { stroke: var(--accent); }
.wire--dash { stroke-dasharray: 3 4; }
.wires .arw { fill: var(--wire); }
.wires .arw-acc { fill: var(--accent); }
.packet { fill: var(--accent); }
.packet-halo { fill: var(--accent); opacity: .18; }

.node {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.35;
  color: var(--fg);
  transition: border-color .4s, box-shadow .6s;
}
.node span { color: var(--fg-2); }
.node__title { display: block; font-weight: 600; margin-bottom: 6px; }
.node--tint {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg);
  border-color: var(--accent-line);
}
.node--tint, .node--tint span { color: var(--accent); }
.t-dark .node--tint, .t-dark .node--tint span { color: var(--fg); }
.node--dash { border-style: dashed; }
.node--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.node--solid span { color: rgba(255, 255, 255, .82); }
.node.is-hot {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px -8px var(--accent);
  transition: border-color .1s, box-shadow .1s;
}

/* ==========================================================================
   ARCHITECTURE — the optimization loop
   ========================================================================== */

.loop__levels { display: grid; gap: 14px; }
.loop__levels b { color: var(--accent); font-weight: 600; margin-right: 4px; }
.loop__levels .node--dash { color: var(--fg-2); }

.loop__route {
  padding: 20px 0;
  font-size: 13.5px;
  color: var(--accent);
}
.loop__route span::before { content: "↓ "; }

.loop__main {
  display: grid;
  gap: 28px;
  padding-right: 32px;
}

.loop__cap { font-size: 14px; color: var(--fg-2); margin-bottom: 12px; }
.loop__cap b { color: var(--fg); }

.archive {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  aspect-ratio: 6 / 5;
  max-width: 440px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}
.archive .cell {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(115, 131, 255, calc(var(--v, 0) * .82));
  transition: background-color 1.2s var(--ease);
}
.archive .cell:nth-child(6n) { border-right: 0; }
.archive .cell:nth-last-child(-n + 6) { border-bottom: 0; }
.archive .cell.is-elite { box-shadow: inset 0 0 0 2px #fff; background-color: var(--blue); z-index: 1; }
.archive .cell.is-hit::after,
.archive .cell.is-miss::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  animation: hit 1.1s var(--ease) forwards;
}
.archive .cell.is-hit::after { background: rgba(255, 255, 255, .55); }
@keyframes hit { from { opacity: 1; } to { opacity: 0; } }

.node--tall { display: flex; flex-direction: column; justify-content: center; min-height: 160px; }
.node--tall span { font-size: 16px; line-height: 1.5; }
.loop__main .node__title { font-size: 17px; margin-bottom: 10px; }

.node--pi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 200px;
  padding: 20px 22px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.node--pi span { color: #fff; }
.pi {
  font-size: clamp(64px, 6.4vw, 104px);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.02em;
}
.node__foot { font-size: 16px; line-height: 1.45; }
.node--pi.is-hot { box-shadow: 0 0 0 1px #fff, 0 0 48px -6px var(--accent); }

.loop__evals { display: grid; gap: 28px; }
.loop__evals b { font-weight: 700; margin-right: 4px; }

.loop__feedback {
  margin-top: 28px;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .loop__levels { grid-template-columns: repeat(3, 1fr); column-gap: 44px; }
  .loop__route { height: 88px; padding: 0; display: flex; align-items: center; }
  .loop__route span::before { content: none; }
  .loop__main {
    grid-template-columns: 1.3fr 1fr .95fr 1.5fr;
    column-gap: 56px;
    align-items: center;
    padding-right: 0;
  }
  .archive { max-width: none; }
  .node--pi { aspect-ratio: 1; min-height: 0; }
  .loop__feedback { margin-top: 76px; text-align: center; }
}

/* ==========================================================================
   OFFERS — security teams page
   ========================================================================== */

.offer {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-2);
}
.offer--solid { background: var(--panel); }
.offer__head { margin-bottom: clamp(28px, 4vw, 48px); }
.offer__list { list-style: none; margin: 0 0 40px; padding: 0; }
.offer__list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.offer__list li:last-child { border-bottom: 1px solid var(--line); }
.offer__list b { font-size: 19px; letter-spacing: -.015em; }
.offer__list span { color: var(--fg-2); }
@media (min-width: 640px) {
  .offer__list li { grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; }
}
.offer__role {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 17px;
  color: var(--fg);
}
.offer__role span { color: var(--accent); }

.targets {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.targets__label { color: var(--fg-3); }
.targets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.targets li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--fg);
}
@media (min-width: 900px) {
  .targets { grid-template-columns: 200px 1fr; align-items: center; }
}

/* ==========================================================================
   SECAGENT — pipeline
   ========================================================================== */

.pipe__steps {
  list-style: none;
  margin: 0;
  padding: 0 32px 0 0;
  display: grid;
  gap: 32px;
}
.pipe__steps .node { min-height: 0; }
@media (min-width: 640px) { .pipe__steps .node { min-height: 120px; } }
.pipe__steps .node span { font-size: 14.5px; }
.pipe__loop { margin-top: 28px; font-size: 14px; color: var(--accent); }

@media (min-width: 640px) and (max-width: 1099px) {
  .pipe__steps { grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 48px; }
}
@media (min-width: 1100px) {
  .pipe__steps { grid-template-columns: repeat(6, 1fr); column-gap: 28px; padding-right: 0; }
  .pipe__loop { margin-top: 80px; text-align: center; }
}

.statuses { margin-top: clamp(56px, 7vw, 96px); }
.statuses__label { color: var(--fg-3); margin-bottom: 16px; }
.statuses ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.status { padding: 14px 16px; border: 1px solid var(--line-2); font-size: 15px; }
.status--dash { border-style: dashed; }
.status--tint { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
@media (min-width: 900px) { .statuses ul { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   READINESS — maturity matrix
   ========================================================================== */

.mx {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.mx thead th {
  padding: 0 0 16px;
  text-align: left;
  vertical-align: bottom;
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-2);
}
.mx thead .mx__stage { text-align: center; padding-inline: 4px; }
.mx thead .mx__next { color: var(--accent); }
.mx .mx__brick { width: 24%; }
.mx .mx__next { width: 30%; padding-left: 28px; }
.mx tbody tr { border-bottom: 1px solid var(--line); }
.mx tbody th { text-align: left; padding: 26px 16px 26px 0; font-weight: 400; }
.mx tbody th b { display: block; font-size: 17px; letter-spacing: -.01em; }
.mx tbody th span { display: block; font-size: 13.5px; color: var(--fg-3); margin-top: 2px; }
.mx td.mx__next { font-size: 15px; color: var(--fg); }

/* Stage cells: continuous track drawn from half-cell backgrounds */
.st {
  position: relative;
  padding: 0;
  --lg: none;
  --rg: none;
  --solid: linear-gradient(var(--fg), var(--fg));
  --dash: repeating-linear-gradient(90deg, var(--fg-2) 0 4px, transparent 4px 8px);
  --faint: linear-gradient(var(--line-2), var(--line-2));
  --guide: repeating-linear-gradient(180deg, var(--line) 0 2px, transparent 2px 6px);
  background-image: var(--lg), var(--rg), var(--guide);
  background-repeat: no-repeat;
  background-size: 50% 1px, 50% 1px, 1px 100%;
  background-position: left center, right center, center;
}
.st[data-l="solid"] { --lg: var(--solid); }
.st[data-l="dash"] { --lg: var(--dash); }
.st[data-l="faint"] { --lg: var(--faint); }
.st[data-r="solid"] { --rg: var(--solid); }
.st[data-r="dash"] { --rg: var(--dash); }
.st[data-r="faint"] { --rg: var(--faint); }

.st::before,
.st::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.st--done::before { width: 9px; height: 9px; background: var(--fg); }
.st--cur::before { width: 14px; height: 14px; background: var(--fg); }
.st--cur::after {
  width: 28px; height: 28px;
  border: 1px solid var(--fg-2);
  animation: ring 2.6s var(--ease) infinite;
}
.st--next::before {
  width: 16px; height: 16px;
  border: 1px dashed var(--fg);
  background: var(--bg);
}
.st--future::before {
  width: 7px; height: 7px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}
@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(.7); opacity: 1; }
  80%, 100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

.mx-legend {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1px dashed var(--fg);
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 4px;
}

@media (max-width: 759px) {
  .mx, .mx thead, .mx tbody { display: block; }
  .mx thead tr,
  .mx tbody tr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .mx thead .mx__brick, .mx thead .mx__next { display: none; }
  .mx thead th { font-size: 11.5px; padding-bottom: 12px; }
  .mx .mx__brick, .mx .mx__next { width: auto; }
  .mx tbody th { grid-column: 1 / -1; padding: 22px 0 8px; }
  .mx .st { display: block; height: 48px; }
  .mx td.mx__next { grid-column: 1 / -1; padding: 8px 0 22px; }
  .mx td.mx__next::before {
    content: "Next proof — ";
    color: var(--accent);
    font-size: 13px;
  }
}

/* ==========================================================================
   TEAM
   ========================================================================== */

.founder { display: grid; gap: 32px; align-items: start; }
.founder__photo {
  margin: 0;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0A0A0B;
}
.founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__name {
  font-size: clamp(2.75rem, 1rem + 5.2vw, 6.25rem);
  letter-spacing: -.05em;
  line-height: .95;
  max-width: 8ch;
  margin-bottom: 0;
}
.founder__role {
  margin: 18px 0 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.founder__intro {
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--fg-2);
}
.founder__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 15px; }
.founder__links a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.founder__links a:hover { border-color: var(--fg); }

.hiring {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 24px;
  border: 1px solid var(--line);
  max-width: 480px;
}
.hiring__tag { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--accent); }
.hiring__text { margin: 14px 0 22px; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }

@media (min-width: 720px) {
  .founder { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 96px); }
}
@media (min-width: 1100px) {
  .founder { grid-template-columns: minmax(0, 440px) 1fr; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.display--contact {
  font-size: clamp(2.5rem, .9rem + 5.6vw, 7rem);
  font-weight: 500;
  letter-spacing: -.048em;
  line-height: .98;
  max-width: 15ch;
  margin-left: -.03em;
  text-wrap: balance;
}
.contact .lede { color: var(--fg); max-width: 44ch; }

.contact__links { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.big-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line-2);
  font-size: clamp(1.375rem, .9rem + 2.8vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-decoration: none;
  transition: padding .45s var(--ease);
  overflow-wrap: anywhere;
}
.big-link span:last-child { transition: transform .45s var(--ease); flex: none; }
.big-link:hover { padding-left: 14px; }
.big-link:hover span:last-child { transform: translateX(-4px) rotate(-45deg); }


/* ==========================================================================
   THESIS, FACTS, TWO-UP
   ========================================================================== */

.section--tight { padding-top: clamp(64px, 8vw, 112px); }

.h2--long {
  font-size: clamp(1.875rem, 1.05rem + 2.9vw, 3.75rem);
  letter-spacing: -.034em;
  line-height: 1.06;
  max-width: 24ch;
}

.thesis {
  display: grid;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.thesis__lead {
  font-size: clamp(1.1875rem, 1rem + .7vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -.014em;
  color: var(--fg-2);
  max-width: 44ch;
}
.thesis__lead b { color: var(--fg); font-weight: 600; }
.thesis > * { min-width: 0; }
.thesis__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }
@media (min-width: 1024px) {
  .thesis { grid-template-columns: 1fr auto; gap: 64px; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 10px 0;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color .25s;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

.facts {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  border-top: 1px solid var(--line-2);
}
.facts > li { padding: 22px 0 28px; }
.facts > li + li { border-top: 1px solid var(--line); }
.facts__k { color: var(--fg-3); margin-bottom: 18px; }
.facts__v {
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}
.facts__t { color: var(--fg-2); max-width: 38ch; }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > li { padding-right: clamp(16px, 2.2vw, 28px); }
  .facts > li + li { border-top: 0; padding-left: clamp(16px, 2.2vw, 28px); border-left: 1px solid var(--line); }
}

.cols {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 1040px;
  color: var(--fg-2);
  font-size: 16.5px;
}
.cols sup { font-size: .68em; line-height: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 48px; } }

.subhead {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-2);
}
.subhead .h3 { margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); letter-spacing: -.03em; }
.subhead p { color: var(--fg-2); max-width: 60ch; }
@media (min-width: 1024px) {
  .subhead { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}
.subhead--flush { padding-top: 0; border-top: 0; }

.split--plain { gap: 0; border-top: 1px solid var(--line-2); }
.duo { padding: 24px 0 28px; }
.duo + .duo { border-top: 1px solid var(--line); }
.duo__k { color: var(--accent); margin-bottom: clamp(20px, 3vw, 36px); }
.duo p:not(.duo__k) { color: var(--fg-2); max-width: 46ch; }
@media (min-width: 900px) {
  .split--plain { gap: 0; }
  .duo { padding-right: 32px; }
  .duo + .duo { border-top: 0; padding-left: 32px; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   NOTES — cards and index entries
   ========================================================================== */

.cards {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card { min-height: 240px; }
}
/* four notes: two by two, then one row on wide screens */
@media (min-width: 720px) { .cards.cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cards.cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 176px;
  padding: 24px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--fg);
  transition: border-color .3s, background-color .3s;
}
.card:hover { border-color: var(--fg); background: var(--panel); }
.card__k { color: var(--fg-3); }
.card__t {
  font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.22;
}
.card__more { margin-top: auto; color: var(--accent); }
.card__more span { display: inline-block; transition: transform .35s var(--ease); }
.card:hover .card__more span { transform: translateX(4px); }

.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.entry {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
}
.entry__k { color: var(--fg-3); }
.entry__t {
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.15;
  transition: color .25s;
}
.entry__d { color: var(--fg-2); max-width: 64ch; }
.entry:hover .entry__t { color: var(--accent); }
@media (min-width: 900px) {
  .entry { grid-template-columns: 240px 1fr; column-gap: 32px; }
  .entry__k { padding-top: 10px; grid-row: span 2; }
}

/* ==========================================================================
   SUB-PAGES — page hero and long-form article
   ========================================================================== */

.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero__title {
  font-size: clamp(2.25rem, 1.1rem + 4.4vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.0;
  max-width: 20ch;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-wrap: balance;
}
.page-hero .lede { margin-bottom: clamp(36px, 5vw, 56px); }

.crumbs a { color: var(--fg); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
}
.page-meta > div { padding: 16px 16px 0 0; }
.page-meta dt { color: var(--fg-3); margin-bottom: 6px; }
.page-meta dd { font-size: 14.5px; }
.page-meta a { text-decoration: none; }
.page-meta a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .page-meta { grid-template-columns: repeat(4, 1fr); }
  .page-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}

.article-layout { display: grid; gap: 40px; }
.article-layout > * { min-width: 0; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; }
}
.article-aside { font-size: 14px; color: var(--fg-2); }
.article-aside__k { color: var(--fg-3); margin-bottom: 10px; }
.article-aside ul { list-style: none; margin: 0 0 28px; padding: 0; }
.article-aside li { padding: 8px 0; border-top: 1px solid var(--line); }
.article-aside a { text-decoration: none; }
.article-aside a:hover { color: var(--accent); }
@media (min-width: 1024px) {
  .article-aside__inner { position: sticky; top: calc(var(--header-h) + 32px); }
}

.prose { max-width: 68ch; font-size: 18px; line-height: 1.68; color: var(--fg); }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--fg); }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.15;
}
.prose h3 {
  margin-top: 2em;
  font-size: clamp(1.1875rem, 1rem + .45vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.3;
}
.prose h2 + h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--fg-3); }
.prose sup { font-size: .68em; line-height: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { font-size: .92em; }

/* Data tables inside prose: scroll inside their own box on narrow screens */
.table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.prose th, .prose td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: 13px; font-weight: 500; color: var(--fg-3); border-bottom-color: var(--line-2); }
.prose td.num, .prose th.num { text-align: right; }
.prose caption { caption-side: bottom; padding-top: 12px; font-size: 13px; color: var(--fg-3); text-align: left; }

/* Sources list closing a note */
.prose .sources { padding-left: 0; list-style: none; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.prose .sources li { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }

/* Glossary: term, then definition */
.terms { margin: 0; }
.terms dt {
  margin-top: 1.6em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.terms dt:first-child { margin-top: 0; }
.terms dt a.anchor { margin-left: 8px; font-weight: 400; color: var(--fg-3); text-decoration: none; }
.terms dt a.anchor:hover { color: var(--accent); }
.terms dd { margin: 8px 0 0; }
.prose [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Author and dates under a page title */
.byline { margin-top: 20px; font-size: 14px; color: var(--fg-3); }
.byline a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.byline a:hover { border-color: var(--fg); }
.prose .pull {
  margin: 1.8em 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -.018em;
}
.prose-figure { margin: clamp(48px, 6vw, 80px) 0; }
.prose-figure > figcaption.prose-figure__cap {
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-3);
}

.article-end {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

.contact__aside { margin-top: 32px; color: var(--fg-2); }
.contact__aside a { color: var(--fg); text-underline-offset: 4px; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__nav a { font-size: 13px; color: var(--fg-2); text-decoration: none; }
.footer__nav a:hover { color: var(--fg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer { padding: 48px 0 clamp(32px, 4vw, 56px); background: #000; color: var(--fg); border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 16px; }
.footer__nav { order: 1; }
.footer__meta { order: 2; }

/* Large logotype closing the page */
.footer .brand {
  order: 3;
  gap: .28em;
  margin-top: clamp(40px, 6vw, 88px);
  font-size: clamp(1.625rem, 8.9vw, 8.4rem);
}
.footer .brand__word { font-size: 1em; letter-spacing: -.035em; }
.footer .brand__mark { width: .81em; height: .9em; }
.footer__line { color: var(--fg-2); font-size: 14px; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--fg); }


/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
