/* ============================================================
   SOVRAN COMMODITIES — Site layer
   Builds on colors_and_type.css tokens only.
   ============================================================ */

:root {
  /* Small-label gray: WCAG AA (≈4.7:1) on Harbour Night.
     --text-tertiary stays reserved for decorative large type. */
  --text-label: #7B7B84;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body { overflow-x: hidden; }

img { display: block; max-width: 100%; }

::selection { background: var(--text-primary); color: var(--bg-absolute); }

/* Meaningful micro-labels use the AA-passing label gray */
.mono-label { color: var(--text-label); }

/* Long mono lines (taglines, sector lists) skip the uppercase transform */
.mono-label--plain { text-transform: none; letter-spacing: 0.04em; }

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

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { border-top: 1px solid var(--border-subtle); }
.band--elevated { background: var(--bg-elevated); }

.section {
  position: relative;
  padding-block: var(--space-11);
}

@media (max-width: 768px) {
  .section { padding-block: var(--space-9); }
}

/* Corner labels — the signature structural device */
.corners {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--duration-medium) var(--ease-out),
              border-color var(--duration-medium) var(--ease-out),
              backdrop-filter var(--duration-medium) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 1;
}

.nav__brand svg { width: 34px; height: auto; color: var(--text-primary); }

.nav__word {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav__links a:hover { color: var(--text-primary); }

@media (max-width: 860px) {
  .nav__links li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-none);
  cursor: pointer;
  opacity: 1;
  transition: opacity var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow-sm); opacity: 1; }
.btn:active { opacity: 0.7; }
.btn:focus-visible { outline: none; border-color: var(--border-strong); box-shadow: var(--shadow-glow-md); }

.btn--solid {
  background: var(--text-primary);
  color: var(--bg-absolute);
  border-color: var(--text-primary);
}

.btn--solid:hover { border-color: var(--text-primary); box-shadow: var(--shadow-glow-md); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  padding-top: clamp(80px, 11vh, 136px);
  padding-bottom: clamp(200px, 32vh, 380px);
  padding-inline: var(--gutter);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(200px, 32vh, 380px);
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(1) brightness(0.55) contrast(1.06);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--bg-absolute) 0%,
    rgba(10,10,11,0.65) 26%,
    rgba(10,10,11,0.3) 52%,
    rgba(10,10,11,0.45) 76%,
    var(--bg-absolute) 100%);
}

.hero__meta, .hero__mark, .hero__word, .hero__rule, .hero__sub,
.hero__line, .hero__sectors, .hero__cta { z-index: 1; }

.hero__meta {
  position: absolute;
  top: 88px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
}

.hero__mark { width: clamp(150px, 17vw, 220px); color: var(--text-primary); position: relative; }

/* Stroke-draw — 1200ms, ease-out, staggered outward-in */
.hero__mark path, .hero__mark circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw var(--duration-stroke) var(--ease-out) forwards;
}

.hero__mark .mk-base { animation-delay: 0ms; }
.hero__mark .mk-t:nth-of-type(2), .hero__mark .mk-t:nth-of-type(3) { animation-delay: 150ms; }
.hero__mark .mk-t:nth-of-type(4), .hero__mark .mk-t:nth-of-type(5) { animation-delay: 300ms; }
.hero__mark .mk-t:nth-of-type(6), .hero__mark .mk-t:nth-of-type(7) { animation-delay: 450ms; }
.hero__mark .mk-t:nth-of-type(8), .hero__mark .mk-t:nth-of-type(9) { animation-delay: 600ms; }
.hero__mark .mk-c { animation-delay: 700ms; }
.hero__mark .mk-dot { animation-delay: 950ms; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__word {
  position: relative;
  margin-top: var(--space-5);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: var(--weight-light);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-indent: 0.28em; /* optically recenter tracked caps */
  color: var(--text-primary);
}

.hero__rule {
  position: relative;
  width: 120px;
  height: 1px;
  background: var(--border-strong);
  margin: var(--space-3) auto;
}

.hero__sub {
  position: relative;
  font-weight: var(--weight-light);
  font-size: var(--text-small);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__line {
  position: relative;
  margin-top: var(--space-5);
  max-width: min(46ch, 100%);
  font-family: var(--font-display);
  font-size: var(--text-headline);
  line-height: 1.35;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero__sectors {
  position: relative;
  margin-top: var(--space-4);
}

/* Sector chips — hairline ovals, the only rounded element on the site */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  list-style: none;
  max-width: 780px;
}

.chip {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 20px;
  background: rgba(10, 10, 11, 0.5);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.chip:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  box-shadow: var(--shadow-glow-sm);
}

.chip a {
  color: inherit;
  text-decoration: none;
}

.hero__cta {
  position: relative;
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta .btn { background: rgba(10, 10, 11, 0.55); }

/* Reveal on scroll — armed only when JS is running; content is visible by default */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.js .rv.in { opacity: 1; transform: none; }

/* ---------- Section headers ---------- */

.section__title {
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

.section__lede { margin-bottom: var(--space-7); }

/* ---------- Paths (suppliers / buyers) ---------- */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.path {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 380px;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.path:hover { border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--accent-glow); }

.path h3 { margin-top: var(--space-2); }

.path p { flex: 1; }

.path__link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
}

@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 0; }
}

/* ---------- Sectors ---------- */

.sectors { border-top: 1px solid var(--border-subtle); }

.sector {
  display: grid;
  grid-template-columns: 96px 1fr 2fr;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) var(--ease-out);
}

.sector:hover { background: var(--bg-elevated); }

.sector__idx { color: var(--text-label); }

.sector__name {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-headline);
  letter-spacing: var(--tracking-headline);
  color: var(--text-primary);
}

.sector p { max-width: 58ch; }

.sectors__note {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}

.sectors__note .rule-inline {
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--border-strong);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .sector { grid-template-columns: 56px 1fr; }
  .sector p { grid-column: 2; }
}

/* ---------- Capabilities ---------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cap {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid var(--border-subtle);
}

.cap:first-child { border-left: none; padding-left: 0; }

.cap h3 { margin-bottom: var(--space-3); }

.cap .mono-label { display: block; margin-bottom: var(--space-4); }

.caps__img {
  margin-top: var(--space-7);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.caps__img img {
  width: 100%;
  height: clamp(240px, 38vw, 480px);
  object-fit: cover;
  filter: grayscale(1) brightness(0.62) contrast(1.06);
  transition: filter var(--duration-slow) var(--ease-out);
}

.caps__img:hover img { filter: grayscale(1) brightness(0.72) contrast(1.06); }

.caps__img figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0 0;
}

@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
  .cap { border-left: none; border-top: 1px solid var(--border-subtle); padding-left: 0; }
  .cap:first-child { border-top: none; }
}

/* ---------- Approach ---------- */

.steps { border-top: 1px solid var(--border-subtle); }

.step {
  display: grid;
  grid-template-columns: 160px 1fr 2fr;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.step__idx {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-tertiary); /* decorative index; the step name carries the meaning */
  font-variant-numeric: tabular-nums;
}

.step__name {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .step { grid-template-columns: 72px 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- Standards ---------- */

.standards__figure {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}

.standards__caption { margin-bottom: var(--space-8); }

.standards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.std {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-3);
}

.std__code {
  font-family: var(--font-mono);
  font-size: var(--text-title);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.std small { display: block; max-width: 30ch; }

@media (max-width: 900px) {
  .standards__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .standards__grid { grid-template-columns: 1fr; }
}

/* ---------- Waste to energy ---------- */

.reactor__paths { margin-top: var(--space-7); }

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

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
}

.contact__aside p { margin-bottom: var(--space-4); }

.contact__meta {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.form { display: grid; gap: var(--space-4); position: relative; }

/* Honeypot — off-screen, never type="hidden"; humans don't fill it, bots do */
.hp {
  position: absolute;
  left: -100vw;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.field { display: grid; gap: var(--space-1); }

.field label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 10px 0;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field select option { background: var(--bg-elevated); color: var(--text-primary); }

.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--border-strong);
  box-shadow: 0 1px 0 0 var(--border-strong);
}

/* Role segmented control — no icons, hairline grammar */
.role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-subtle);
}

.role label {
  position: relative;
  text-align: center;
  padding: 14px var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.role label + label { border-left: 1px solid var(--border-subtle); }

.role input { position: absolute; opacity: 0; pointer-events: none; }

.role label:has(input:checked) {
  background: var(--text-primary);
  color: var(--bg-absolute);
}

.role label:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--border-strong); }

.form__note { color: var(--text-label); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

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

.footer { padding-block: var(--space-7) var(--space-5); }

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer__brand { display: flex; align-items: center; gap: var(--space-2); }
.footer__brand svg { width: 44px; color: var(--text-primary); }

.footer__word {
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  font-size: var(--text-small);
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  flex-wrap: wrap;
}

.footer__attr {
  margin-top: var(--space-3);
  font-size: var(--text-micro);
  color: var(--text-label);
  max-width: none;
}

.footer__attr a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small-viewport overrides (last, so they win) ---------- */

@media (max-width: 768px) {
  .hero { padding-top: var(--space-9); padding-bottom: clamp(180px, 30vh, 320px); }
  .hero__bg img { height: clamp(180px, 30vh, 320px); }
  .hero__mark { width: 118px; }
  .hero__meta span:last-child { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .corners span:last-child { display: none; }
}

@media (max-width: 560px) {
  .standards__figure { font-size: clamp(24px, 6.2vw, 40px); letter-spacing: -0.04em; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__mark path, .hero__mark circle { animation: none; stroke-dashoffset: 0; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   COMPLIANCE REMEDIATION REV 2
   Hero/image separation, identity line, no-wrap figures,
   placeholder tone, form states, legal link, wide viewports.
   ============================================================ */

/* Guaranteed gap between hero content and the harbour image */
.hero { padding-bottom: calc(clamp(200px, 32vh, 380px) + var(--space-9)); }

@media (max-width: 768px) {
  .hero { padding-bottom: calc(clamp(180px, 30vh, 320px) + var(--space-7)); }
}

/* Hero identity sentence — Geist 400, 17px, secondary, centred */
.hero__intro {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3);
  max-width: min(560px, 100%);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: balance;
}

/* Visually hidden — lets the h1 carry the full company name */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Figure strings never wrap mid-term */
.nb { white-space: nowrap; }

/* Placeholders read as prompts, not live data */
.field input::placeholder,
.field textarea::placeholder { opacity: 0.4; }

/* Form endpoint states */
.form__status { min-height: 1.5em; margin: 0; }
.form__status--ok { color: var(--text-primary); }
.form__status--err {
  color: var(--text-primary);
  border-left: 2px solid var(--text-primary);
  padding-left: var(--space-1);
}
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Footer legal links — Geist Mono 11px, text-tertiary, right aligned */
.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
  margin-left: auto;
}
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--text-primary); }

/* Footer social — monochrome icons, no brand colors */
.footer__social { display: inline-flex; align-items: center; gap: var(--space-3); }
.footer__social a, .footer__social-soon {
  display: inline-flex;
  color: var(--text-label);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__social a:hover { color: var(--text-primary); }
.footer__social svg { width: 15px; height: 15px; }
.footer__social-soon { opacity: 0.4; cursor: default; }

/* Wide viewports — extend the content grid, increase the type scale */
@media (min-width: 1920px) {
  :root { --container-max: 1720px; --text-body: 17px; }
}

@media (min-width: 2560px) {
  :root { --container-max: 2080px; --text-body: 18px; }
}

/* Subpages (/privacy, /terms, /cookies, /about) — read, not scanned */
.legal {
  padding-top: calc(72px + var(--space-8));
  max-width: 720px;
}
.legal h1 { margin-bottom: var(--space-2); }
.legal h1 + .mono-label { color: var(--text-label); }
.legal h2 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: none;
}
.legal p + p { margin-top: var(--space-2); }

/* ---------- Briefings index — ruled list, same grammar as Sectors ---------- */
.briefings { padding-top: calc(72px + var(--space-8)); }

.briefings-list { border-top: 1px solid var(--border-subtle); margin-top: var(--space-6); }

.briefing {
  display: block;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.briefing:hover { background: var(--bg-elevated); }

.briefing__title {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-headline);
  letter-spacing: var(--tracking-headline);
  color: var(--text-primary);
}
.briefing__sum { margin-top: var(--space-1); max-width: 68ch; }
.briefing__date { display: block; margin-top: var(--space-2); color: var(--text-label); }

/* ---------- Article template — built to be read by people and machines ---------- */
.article {
  max-width: 720px;
  padding-top: calc(72px + var(--space-8));
}
.article h1 {
  font-size: var(--text-display-3);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.article__summary {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding-block: var(--space-4);
  margin-bottom: var(--space-5);
}
.article__summary p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-primary);
  max-width: none;
}

.article__meta {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
  line-height: 1.9;
  margin-bottom: var(--space-7);
}

.article h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-headline);
  letter-spacing: var(--tracking-headline);
  color: var(--text-primary);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}
.article p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: none;
}
.article p + p { margin-top: var(--space-3); }

/* External links — same underline treatment as the path links */
.article a.text-link {
  color: var(--text-primary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.article a.text-link:hover { border-color: var(--text-primary); }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-4);
}
.article th, .article td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.article th {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-label);
}

.article__note {
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--text-label);
  font-style: italic;
}

.article__foot {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-4);
}
.article__foot p + p { margin-top: var(--space-2); }

/* Article contents rail — sticky legend, hidden below 1100px */
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: var(--space-7);
  justify-content: center;
}
.article-toc {
  position: sticky;
  top: 0;
  align-self: start;
  padding-top: calc(72px + var(--space-8));
}
.article-toc .mono-label { display: block; margin-bottom: var(--space-2); }
.article-toc a {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--text-label);
  text-decoration: none;
  padding: 6px 0 6px var(--space-2);
  border-left: 1px solid var(--border-subtle);
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}
.article-toc a:hover {
  color: var(--text-primary);
  border-left-color: var(--text-primary);
}
.article h2 { scroll-margin-top: 96px; }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-toc { display: none; }
}

/* Hero tightening — keep entries and image visible in the first viewport */
.hero { padding-top: clamp(64px, 9vh, 112px); }
.hero__mark { width: clamp(140px, 15vw, 190px); }
.hero__line { margin-top: var(--space-4); }
