/*
  DSL Platforms — site styles
  Visual language: "proof sheet / register".
  Warm paper neutrals, graphite ink, a single vermilion accent,
  hairline rules, numbered sections and monospaced metadata.
  No external fonts: the stacks below resolve to each platform's
  own high-quality UI and monospace faces.
*/

:root {
  color-scheme: light;

  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --card: #fbfaf7;
  --ink: #141619;
  --ink-2: #2c3036;
  --muted: #5b5f66;
  --line: #d8d4cb;
  --line-2: #bfbab0;

  --accent: #d4421b;
  --accent-ink: #a8330f;

  --night: #121417;
  --night-2: #1a1d21;
  --night-line: #2f3338;
  --night-text: #ebe9e4;
  --night-muted: #a6aab0;
  --accent-night: #ff7048;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

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

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .65rem .9rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

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

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

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

h1, h2, h3 { font-weight: 600; color: var(--ink); text-wrap: balance; }

.display {
  font-size: clamp(2.25rem, 1.35rem + 3.7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.038em;
}
.display .soft { color: var(--muted); }
.nowrap { white-space: nowrap; }

h2, .h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -.012em;
}

.lede {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.body-copy { max-width: 36rem; color: var(--ink-2); text-wrap: pretty; }
.body-copy p + p { margin-top: 1.1em; }

.label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section index: "01  Approach" */
.index {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.index .num {
  color: var(--accent-ink);
  font-weight: 600;
}
.index::after {
  content: "";
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--line-2);
  align-self: center;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 1.375rem; height: 1.375rem; flex: none; }
.brand-mark .mark-base { fill: currentColor; }
.brand-mark .mark-block { fill: var(--accent); transition: transform .35s var(--ease); transform-origin: 13px 11.5px; }
.brand:hover .mark-block { transform: translateY(-1.5px); }

.wordmark {
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -.01em;
}
.wordmark b { font-weight: 700; letter-spacing: .02em; }
.wordmark span { font-weight: 400; color: var(--ink-2); }

/* PROOF product lockup */
.proof-lockup {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}
.proof-mark { width: .95em; height: .95em; flex: none; }
.proof-mark .pm-frame { fill: none; stroke: currentColor; stroke-width: 2; }
.proof-mark .pm-block { fill: var(--accent); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 2rem;
  min-height: var(--header-h);
}

.site-nav ul { display: flex; align-items: center; gap: .25rem; }

.site-nav a {
  position: relative;
  display: block;
  padding: .55rem .8rem;
  color: var(--ink-2);
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .3rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.site-nav li:last-child a { padding-right: 0; }
.site-nav li:last-child a::after { right: 0; }

/* ---------- Buttons & links ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .2s, color .2s;
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- Status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-2);
}
.status-pill { padding: .45rem .65rem; border: 1px solid #8a8d92; background: var(--card); }

/* Half-filled marker = "in progress", deliberately not a "live" dot. */
.dot {
  width: .625rem;
  height: .625rem;
  flex: none;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
}

/* ---------- Layout primitives ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.section-head { grid-column: 1 / 4; padding-top: .55rem; }
.section-body { grid-column: 4 / 13; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Faint column grid: the "drawing sheet" behind the hero. */
.hero > .wrap { position: relative; }
.hero > .wrap::before {
  content: "";
  position: absolute;
  inset: -12rem 0 -6rem;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 16.6667%);
  border-right: 1px solid var(--line);
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}

.hero-grid { position: relative; align-items: end; row-gap: 3rem; }
.hero-copy { grid-column: 1 / 8; }
.hero-copy .label { margin-bottom: 1.75rem; display: flex; align-items: center; gap: .6rem; }
.hero-copy .label::before { content: ""; width: .5rem; height: .5rem; background: var(--accent); }
.hero-copy .lede { margin-top: 1.75rem; }
.hero-copy .actions { margin-top: 2.25rem; }
.hero-figure { grid-column: 8 / 13; }

/* System figure: platform base carrying products. Mirrors the mark. */
.system {
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(20, 22, 25, .35);
}
.system-cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.system-cap .label:first-child { color: var(--accent-ink); }
.system-body { padding: 1.25rem 1rem 1rem; display: grid; gap: .5rem; }
.system-products { display: grid; gap: .5rem; }

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 9.5rem;
  padding: .85rem .9rem;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.slot-no { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.slot-name { font-size: 1.375rem; }
.slot-meta { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.slot-live { border-top: 3px solid var(--accent); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.slot-live:hover { transform: translateY(-3px); border-color: var(--ink); border-top-color: var(--accent); box-shadow: 0 12px 24px -16px rgba(20, 22, 25, .45); }
.slot-live .slot-head { display: flex; justify-content: space-between; align-items: center; }
.slot-live .arrow { color: var(--muted); }
.slot-live:hover .arrow { color: var(--ink); transform: translate(2px, -2px); }

.system-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem;
  background: var(--ink);
  color: var(--paper);
}
.system-base .wordmark span { color: #c9cbcf; }
.system-base .slot-meta { color: #b7bac0; }

.system-ground {
  display: flex;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  padding: .55rem .6rem;
  background-image: repeating-linear-gradient(-45deg, var(--line-2) 0 1px, transparent 1px 6px);
}
.system-ground span {
  padding: .15rem .4rem;
  background: var(--card);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--ink-2);
}

/* ---------- Register strip (legal identity under hero) ---------- */

.register { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.register dl { display: grid; grid-template-columns: 1fr .7fr .9fr 2fr; }
.register dl > div { padding: 1rem 1.25rem 1.1rem; border-left: 1px solid var(--line-2); }
.register dl > div:first-child { border-left: 0; padding-left: 0; }
.register dt { margin-bottom: .35rem; }
.register dd { font-size: .9375rem; font-weight: 500; color: var(--ink); }

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.principles li { padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.principles .label { display: block; margin-bottom: 2rem; color: var(--accent-ink); }
.principles p { margin-top: .6rem; color: var(--muted); font-size: .9375rem; max-width: 22rem; }

.section-body > .lede, .section-body > .body-copy, .split .lede { margin-top: 1.5rem; }
.record-title { margin-bottom: 2rem; }
.entity-body p + .entity-name { margin-top: 1.1rem; }

/* ---------- Night (product) section ---------- */

.section-night {
  background: var(--night);
  color: var(--night-text);
  border-top: 0;
}
.section-night h2, .section-night h3 { color: #fff; }
.section-night .index, .section-night .label { color: var(--night-muted); }
.section-night .index .num { color: var(--accent-night); }
.section-night .index::after { background: var(--night-line); }
.section-night .body-copy { color: var(--night-text); }
.section-night :focus-visible { outline-color: var(--accent-night); }

.product-grid { align-items: center; row-gap: 3rem; }
.product-visual { grid-column: 1 / 7; }
.product-copy { grid-column: 8 / 13; }
.product-copy .index { margin-bottom: 2rem; }
.product-copy h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.product-copy .by { margin-top: .9rem; }
.product-copy .body-copy { margin-top: 1.5rem; }

.mini-record { margin-top: 2rem; border-top: 1px solid var(--night-line); }
.mini-record > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--night-line);
  font-size: .9375rem;
}
.mini-record dt { padding-top: .2rem; }
.mini-record dd { color: #fff; }
.mini-record .status { color: #fff; }

.section-night .btn { background: var(--night-text); border-color: var(--night-text); color: var(--night); margin-top: 2.25rem; }
.section-night .btn:hover { background: var(--accent-night); border-color: var(--accent-night); color: var(--night); }

/* ---------- Proof plate (printer's proof sheet) ---------- */

.plate {
  position: relative;
  aspect-ratio: 4 / 3;
  color: var(--night-muted);
}
.plate-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate-marks line, .plate-marks circle { stroke: currentColor; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }

.plate-sheet {
  position: absolute;
  left: 10%; top: 10%; width: 80%; height: 80%;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5% 6%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
}
.plate-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plate-row .label { font-size: .6875rem; font-size: clamp(.5625rem, 3.2cqi, .75rem); }
.plate-title {
  font-size: 3rem;
  font-size: 15cqi;
  letter-spacing: .1em;
}
.plate-title .proof-mark { width: .8em; height: .8em; }
.plate-title .proof-mark .pm-frame { stroke-width: 1.6; }

.steps { display: flex; height: 7cqi; min-height: .9rem; max-height: 1.5rem; width: 44%; }
.steps i { flex: 1; }
.steps i:nth-child(1) { background: var(--ink); }
.steps i:nth-child(2) { background: #4a4e55; }
.steps i:nth-child(3) { background: #858991; }
.steps i:nth-child(4) { background: #bfbab0; }
.steps i:nth-child(5) { background: #e2ded5; }
.steps i:nth-child(6) { background: var(--accent); }

/* Plate on paper (PROOF page hero) */
.plate-light { color: var(--line-2); }
.plate-light .plate-sheet { background: var(--card); box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(20, 22, 25, .45); border: 1px solid var(--line); }

/* Draw-in of crop marks on first view; skipped for reduced motion. */
@keyframes mark-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plate-marks { animation: mark-in 1.2s var(--ease) .15s both; }
.plate-sheet { animation: sheet-in .9s var(--ease) both; }

/* ---------- Foundation / operator card ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.entity-card {
  border: 1px solid var(--line-2);
  background: var(--card);
}
.entity-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.entity-card header .label:first-child { color: var(--accent-ink); }
.entity-card .entity-body { padding: 1.25rem 1.1rem 1.35rem; }
.entity-card .entity-name { font-weight: 650; font-size: 1.0625rem; letter-spacing: .01em; }
.entity-card address, .entity-card .entity-rc { margin-top: .6rem; color: var(--ink-2); font-size: .9375rem; }
.entity-card .entity-rc { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.entity-card .entity-foot { padding: .85rem 1.1rem; border-top: 1px solid var(--line); }

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.page-hero .section-body .lede { margin-top: 1.75rem; }
.page-hero .display { max-width: 16ch; }
.page-hero-split { align-items: end; row-gap: 3rem; }
.page-hero-split .page-hero-copy { grid-column: 1 / 8; }
.page-hero-split .page-hero-visual { grid-column: 8 / 13; }
.page-hero-copy .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 2rem; }
.page-hero-copy .meta .proof-lockup { font-size: 1.125rem; }
.page-hero-copy .lede { margin-top: 1.75rem; }

/* ---------- Register list (company facts, product record) ---------- */

.record { border-top: 1px solid var(--ink); }
.record > div {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 2fr;
  gap: .35rem var(--gap);
  padding: 1.05rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}
.record dt { padding-top: .2rem; }
.record dd { font-weight: 500; color: var(--ink); }
.record dd .sub { display: block; margin-top: .2rem; font-weight: 400; color: var(--muted); font-size: .9375rem; }
.record + .note { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Structure chain (company page) ---------- */

.chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  counter-reset: chain;
}
.chain li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-height: 11rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--line-2);
  background: var(--card);
}
.chain li + li { border-left: 0; }
.chain .chain-name { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; margin-top: auto; }
.chain .chain-note { color: var(--muted); font-size: .875rem; }
.chain .chain-verb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform: translate(-50%, calc(-50% - 1.5px));
  padding: .2rem .45rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.chain li:first-child { border-top: 3px solid var(--ink); }
.chain li:nth-child(2) { border-top: 3px solid var(--ink); }
.chain li:last-child { border-top: 3px solid var(--accent); }

/* ---------- Contact ---------- */

.contact-block { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.contact-email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, .9rem + 2.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
  text-decoration-color: var(--line-2);
  overflow-wrap: break-word;
  transition: text-decoration-color .2s;
}
.contact-email:hover { text-decoration-color: var(--accent); }
.split-contact { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.contact-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  border: 1px solid #8a8d92;
  background: var(--card);
  color: var(--ink);
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn[hidden] { display: none; }
.copy-btn svg { width: .9rem; height: .9rem; }
.copy-btn svg path, .copy-btn svg rect { fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-status { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .04em; min-height: 1em; }

/* ---------- Privacy / long-form ---------- */

.toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.toc ol { margin-top: 1rem; border-top: 1px solid var(--line); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.toc a {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .875rem;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: .1rem; }
.toc a:hover { color: var(--ink); }
.toc a:hover::before { color: var(--accent-ink); }

.prose { max-width: 40rem; color: var(--ink-2); }
.prose h2 { margin-bottom: 2.5rem; }
.prose section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.prose h3 { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .75rem; }
.prose h3 .num { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--accent-ink); letter-spacing: .04em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--paper-2); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.cta-inner .h2 { max-width: 20ch; margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-muted);
  font-size: .9375rem;
}
.site-footer :focus-visible { outline-color: var(--accent-night); }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent-night); }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  border-bottom: 1px solid var(--night-line);
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .wordmark { font-size: 1.25rem; }
.site-footer .wordmark span { color: var(--night-text); }
.site-footer .brand-mark { width: 1.625rem; height: 1.625rem; }
.site-footer .brand-mark .mark-block { fill: var(--accent-night); }
.footer-statement { max-width: 30rem; color: var(--night-text); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.6fr;
  gap: 2.5rem var(--gap);
  padding-block: 2.5rem 3rem;
}
.footer-nav { display: contents; }
.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.footer-col li + li { margin-top: .5rem; }
.footer-col .status { color: var(--night-muted); font-size: .6875rem; margin-top: .4rem; display: flex; }
.footer-col address { color: var(--night-text); line-height: 1.65; }
.footer-col address .entity { display: block; font-weight: 600; color: #fff; letter-spacing: .01em; }
.footer-col address .rc { display: block; margin-bottom: .5rem; font-family: var(--mono); font-size: .8125rem; color: var(--night-muted); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .03em;
}

/* ---------- Responsive ---------- */

@media (min-width: 64em) {
  body { font-size: 1.0625rem; }
}

@media (max-width: 64em) {
  .hero-copy { grid-column: 1 / 13; }
  .hero-figure { grid-column: 1 / 10; }
  .product-visual { grid-column: 1 / 13; max-width: 40rem; }
  .product-copy { grid-column: 1 / 13; max-width: 40rem; }
  .page-hero-split .page-hero-copy { grid-column: 1 / 13; }
  .page-hero-split .page-hero-visual { grid-column: 1 / 10; }
  .register dl { grid-template-columns: 1fr 1fr; }
  .register dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .register dl > div:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 52em) {
  .section-head, .section-body { grid-column: 1 / 13; }
  .section-head { margin-bottom: 1.75rem; padding-top: 0; }
  .split, .split-contact { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 1.75rem; }
  .principles .label { margin-bottom: .9rem; }
  .chain { grid-template-columns: 1fr; }
  .chain li + li { border-left: 1px solid var(--line-2); border-top-width: 3px; margin-top: 2.25rem; }
  .chain .chain-verb { top: -1.65rem; left: 1.1rem; transform: none; }
  .chain li { min-height: 0; }
  .toc { position: static; margin-bottom: 1rem; }
}

@media (max-width: 40em) {
  :root { --header-h: auto; }
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .header-inner { padding-top: .9rem; }
  .site-nav { width: 100%; margin-top: .75rem; border-top: 1px solid var(--line); }
  .site-nav ul { justify-content: space-between; gap: 0; }
  .site-nav li:first-child a { padding-left: 0; }
  .site-nav li:first-child a::after { left: 0; }
  .site-nav a { padding: .7rem .5rem; }
  .site-nav a::after { left: .5rem; right: .5rem; bottom: .45rem; }
  .hero-figure, .page-hero-split .page-hero-visual { grid-column: 1 / 13; }
  .slot { min-height: 0; gap: 1rem; }
  .register dl { grid-template-columns: 1fr; }
  .register dl > div { border-left: 0; padding-left: 0; padding-right: 0; }
  .register dl > div + div { border-top: 1px solid var(--line-2); }
  .record > div { grid-template-columns: 1fr; }
  .mini-record > div { grid-template-columns: 1fr; gap: .25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: space-between; }
  .actions .text-link { padding-block: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .slot-live:hover, a:hover .arrow, button:hover .arrow, .brand:hover .mark-block { transform: none; }
}

@media (forced-colors: active) {
  .dot { forced-color-adjust: none; }
  .btn, .slot, .system, .entity-card, .chain li { border: 1px solid CanvasText; }
}

@media print {
  .site-header { position: static; backdrop-filter: none; }
  .skip-link, .copy-btn, .hero > .wrap::before { display: none; }
  .section-night, .site-footer { background: #fff; color: #000; }
  .section-night h2, .site-footer a, .footer-col address, .footer-col address .entity { color: #000; }
}
