/* ============================================================
   Rebar Automation Platform — landing page
   Swiss Modernism 2.0, dark engineering palette.
   Base unit 8px. 12-column grid. Single accent.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
/* Light, paper-like engineering palette. Every colour in the sheet resolves
   through these — swap this block and the whole page follows. */
:root {
  /* surfaces */
  --bg:            #F7F7F4;   /* warm paper */
  --bg-elev:       #FFFFFF;   /* cards lift off the paper */
  --bg-elev-2:     #FFFFFF;
  --bg-inset:      #F1F1ED;   /* recessed panels, table heads, code */

  /* ink */
  --fg:            #14181F;
  --fg-muted:      #4E5765;
  --fg-dim:        #5E6774;

  /* line */
  --line:          rgba(20, 26, 36, .11);
  --line-strong:   rgba(20, 26, 36, .20);
  --blueprint:     rgba(30, 64, 120, .07);

  /* accent — one accent only.
     --accent is contrast-safe for TEXT and small marks;
     --accent-fill is the brighter graphic/button orange, always with dark ink on top. */
  --accent:        #C2410C;
  --accent-fill:   #F26322;
  --accent-soft:   rgba(242, 99, 34, .11);
  --accent-line:   rgba(194, 65, 12, .34);
  --on-accent:     #2B1508;   /* ink on --accent-fill  (5.4:1) */
  --on-accent-deep: #FFFFFF;  /* ink on --accent       (5.2:1)
                                 --on-accent is only 3.3:1 on the darker accent,
                                 so anything filled with --accent takes this one */

  /* semantic status (always paired with text or an icon, never colour alone) */
  --ok:            #12724A;   /* 5.2:1 on --ok-soft; #157F52 was 4.39 and failed */
  --ok-soft:       rgba(21, 127, 82, .10);

  /* drawing */
  --draw-line:     rgba(20, 26, 36, .38);   /* concrete outline, dimension lines */
  --draw-faint:    rgba(20, 26, 36, .16);   /* distribution reinforcement */
  --draw-hatch:    rgba(20, 26, 36, .07);   /* section hatch */
  --bar:           #2F6FD0;                 /* main reinforcement */
  --bar-anchor:    #157F52;                 /* anchorage extension */

  /* syntax */
  --syn-var:       #1F5FBF;
  --syn-num:       #0F7B52;
  --syn-kw:        #8B3FB0;

  /* effects */
  --header-bg:     rgba(247, 247, 244, .82);
  --hover-tint:    rgba(20, 26, 36, .035);
  --shadow-card:   0 24px 60px -34px rgba(20, 26, 36, .30);

  /* type */
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* rhythm */
  --u: 8px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --radius: 3px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.022em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--fg); }

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

::selection { background: var(--accent-fill); color: var(--on-accent); }

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(52px, 6vw, 84px); position: relative; scroll-margin-top: 74px; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: calc(var(--u) * 5); max-width: 72ch; }
.section-head .kicker { margin-bottom: calc(var(--u) * 2); }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  max-width: 20ch;
}
.section-head .lede {
  margin-top: calc(var(--u) * 3);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-muted);
  max-width: 68ch;
  line-height: 1.65;
}

/* Swiss numbered kicker */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.5);
}
.kicker::before {
  content: attr(data-num);
  color: var(--accent);
}
.kicker.no-num::before { content: none; }

.grid { display: grid; gap: calc(var(--u) * 3); }
@media (min-width: 760px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px)  { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .g-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent-deep);
  padding: 12px 20px; font-weight: 600; font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Over the photographic hero the bar is transparent with light type; the
   `is-scrolled` class (set in app.js) restores the solid light bar. */
.site-header--over:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header--over:not(.is-scrolled) .brand__name,
.site-header--over:not(.is-scrolled) .nav a:hover { color: #FFFFFF; }
.site-header--over:not(.is-scrolled) .brand__sub,
.site-header--over:not(.is-scrolled) .nav a { color: rgba(255,255,255,.80); }
.site-header--over:not(.is-scrolled) .brand__mark rect { stroke: rgba(255,255,255,.34); }
.site-header--over:not(.is-scrolled) .lang {
  border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header--over:not(.is-scrolled) .lang button { color: rgba(255,255,255,.80); }
.site-header--over:not(.is-scrolled) .lang button:hover { color: #FFFFFF; }
.site-header--over:not(.is-scrolled) .lang button[aria-pressed="true"] {
  background: var(--accent-fill); color: var(--on-accent);
}
.site-header--over:not(.is-scrolled) .lang__sep { background: rgba(255,255,255,.30); }
.header-inner {
  display: flex; align-items: center; gap: calc(var(--u) * 3);
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--mono);
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); display: block; font-weight: 400; margin-top: 1px;
}

.nav { display: none; gap: calc(var(--u) * 3.5); }
@media (min-width: 1100px) { .nav { display: flex; } }
.nav a {
  font-size: 13.5px; color: var(--fg-muted);
  transition: color var(--dur) var(--ease);
  padding-block: 6px;
}
.nav a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: calc(var(--u) * 2); }

/* language switch */
.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-inset);
}
.lang button {
  appearance: none; border: 0; background: transparent;
  color: var(--fg-dim);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  padding: 0 12px; height: 34px; min-width: 46px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent-deep); }
.lang__sep { width: 1px; height: 18px; background: var(--line-strong); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.btn--primary:hover { background: #D9520F; }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg-dim); background: var(--hover-tint); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.header-actions .btn--primary { display: none; }
@media (min-width: 700px) { .header-actions .btn--primary { display: inline-flex; } }

/* ---------- 7. Hero ---------- */
/* A dark, full-bleed photographic hero. The rest of the page is light; this is
   the one place that inverts, which is what makes it read as an opening shot. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero--photo {
  min-height: clamp(560px, 86vh, 820px);
  display: grid; align-items: center;
  margin-top: calc(var(--header-h, 67px) * -1);
  padding-block: calc(var(--header-h, 67px) + clamp(56px, 7vw, 92px)) clamp(48px, 6vw, 76px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 62% 50%; }
/* two scrims: a horizontal one so the copy sits on darkness, and a soft top
   one so the transparent header stays legible over any part of the image */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,15,.72) 0%, rgba(8,11,15,0) 26%),
    linear-gradient(96deg, rgba(8,11,15,.96) 0%, rgba(8,11,15,.93) 44%, rgba(8,11,15,.62) 72%, rgba(8,11,15,.26) 100%);
}
.hero-inner { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.28); border-radius: 100px;
  padding: 6px 14px 6px 10px; margin-bottom: calc(var(--u) * 3);
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); flex: none;
  box-shadow: 0 0 0 3px rgba(242,99,34,.28);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.034em;
  max-width: 17ch;
  color: #FFFFFF;
  text-wrap: balance;
}
.hero h1 .em { color: #FF8A4C; }
.hero .sub {
  margin-top: calc(var(--u) * 3.5);
  font-size: clamp(16.5px, 1.75vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,.93);
  max-width: 56ch;
}
.hero .cta-row { margin-top: calc(var(--u) * 4.5); display: flex; flex-wrap: wrap; gap: calc(var(--u) * 1.5); }
.hero .btn--ghost { border-color: rgba(255,255,255,.45); color: #FFFFFF; }
.hero .btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.13); }

.compat.compat--dark {
  margin-top: calc(var(--u) * 4);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.compat.compat--dark .compat__mark { background: #FFFFFF; color: #14181F; }
.compat.compat--dark .compat__txt b { color: #FFFFFF; }
.compat.compat--dark .compat__txt span { color: rgba(255,255,255,.78); }

/* ---------- 7b. USP metrics band ---------- */
.metrics-band { background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.metrics {
  display: grid;
}
@media (min-width: 640px)  { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: calc(var(--u) * 4) calc(var(--u) * 3) calc(var(--u) * 4) 0; }
@media (min-width: 640px) {
  .metric + .metric { border-left: 1px solid var(--line); padding-left: calc(var(--u) * 3); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1040px) {
  .metric:nth-child(3) { border-left: 1px solid var(--line); padding-left: calc(var(--u) * 3); }
}
@media (max-width: 639px) { .metric + .metric { border-top: 1px solid var(--line); } }
.metric__val {
  font-family: var(--mono); font-size: clamp(25px, 3vw, 33px); font-weight: 600;
  letter-spacing: -.02em; color: var(--fg); display: block;
  font-feature-settings: "tnum" 1;
}
.metric__val .u { color: var(--accent); }
.metric__lbl { margin-top: 9px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; max-width: 30ch; }

/* ---------- 8. Hero drawing ---------- */
.drawing {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: calc(var(--u) * 2);
  box-shadow: var(--shadow-card);
}
.drawing__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 8px 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
  margin-bottom: calc(var(--u) * 1.5);
}
.drawing__bar .tag { color: var(--accent); }
.drawing svg { display: block; width: 100%; height: auto; }
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: calc(var(--u) * 1.5);
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
}
.legend li {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--fg-muted);
}
.legend sub { font-size: 8px; }
.legend__key { flex: none; width: 15px; height: 13px; position: relative; }
.legend__key::before, .legend__key::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2.6px; border-radius: 2px;
}
.legend__key--bar::before  { left: 6px; background: var(--bar); }
.legend__key--lap::before  { left: 3px; background: var(--accent-fill); }
.legend__key--lap::after   { left: 9px; background: var(--accent-fill); }
.legend__key--anch::before { left: 6px; background: var(--bar-anchor); }

/* animated draw-in */
.dw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 1.5s var(--ease) forwards; }
.dw-2 { animation-delay: .18s; }
.dw-3 { animation-delay: .34s; }
.fade-in { opacity: 0; animation: fadein .7s var(--ease) forwards; }
.fi-1 { animation-delay: .8s; } .fi-2 { animation-delay: 1s; } .fi-3 { animation-delay: 1.2s; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- 9. Cards ---------- */
.card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: calc(var(--u) * 3.5);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -.012em; }
.card p { color: var(--fg-muted); font-size: 15px; line-height: 1.62; }
.card__ico {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: calc(var(--u) * 2.5);
}
.card__ico svg { width: 17px; height: 17px; }
.card__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--fg-dim); margin-bottom: calc(var(--u) * 1.5);
}

/* ---------- 10. Pipeline ---------- */
.pipeline {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.pipeline__head {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.pipeline__grid { display: grid; }
@media (min-width: 700px)  { .pipeline__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pipeline__grid { grid-template-columns: repeat(3, 1fr); } }
.stage { padding: calc(var(--u) * 3.5); border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 700px)  { .stage:nth-child(2n)   { border-left: 1px solid var(--line); } }
@media (min-width: 1100px) { .stage:nth-child(2n)   { border-left: 0; }
                             .stage:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); } }
.stage:last-child, .stage:nth-last-child(2), .stage:nth-last-child(3) { border-bottom: 0; }
@media (max-width: 1099px) { .stage:nth-last-child(3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 699px)  { .stage:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.stage__n {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.stage h3 { font-size: 16px; margin-bottom: 8px; }
.stage p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.stage__meta {
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: .04em; line-height: 1.6;
  padding-top: 12px; border-top: 1px dashed var(--line);
}

/* ---------- 11. Cascade ---------- */
.cascade { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.layer {
  display: grid; gap: 4px calc(var(--u) * 3);
  padding: calc(var(--u) * 2.75) calc(var(--u) * 3);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--dur) var(--ease);
  background: var(--bg-elev);
}
.layer:last-child { border-bottom: 0; }
.layer:hover { background: var(--bg-inset); }
@media (min-width: 860px) {
  .layer { grid-template-columns: 74px minmax(0, 260px) minmax(0, 1fr) minmax(0, 210px); align-items: baseline; gap: calc(var(--u) * 3); }
}
.layer__id {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--accent);
}
.layer__name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.layer__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.layer__who {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-dim);
}
.layer__who.mono-cell { text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--fg-muted); }
.layer--locked { background: var(--bg-inset); }
.layer--locked .layer__id { color: var(--fg-dim); }
/* indentation ladder */
.layer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent-fill); opacity: var(--str, .2);
}

/* ---------- 12. Code / trace ---------- */
.code {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-inset); overflow: hidden;
}
.code__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim);
  background: var(--bg-elev);
}
.code__head .dotrow { display: flex; gap: 5px; margin-right: 4px; }
.code__head .dotrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.code pre {
  margin: 0; padding: calc(var(--u) * 2.5) calc(var(--u) * 2.5);
  font-family: var(--mono); font-size: 13px; line-height: 1.85;
  color: var(--fg); overflow-x: auto; tab-size: 2;
}
.code pre::-webkit-scrollbar { height: 8px; }
.code pre::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.c-cm { color: var(--fg-dim); }        /* comment */
.c-fn { color: var(--accent); }        /* function */
.c-va { color: var(--syn-var); }              /* variable */
.c-nu { color: var(--syn-num); }              /* number+unit */
.c-op { color: var(--fg-muted); }      /* operator */
.c-kw { color: var(--syn-kw); }              /* keyword */

/* derivation trace */
.trace { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
.trace__head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-inset);
}
.trace__title { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.trace__host { font-family: var(--mono); font-size: 12px; color: var(--fg); }
.trace__row {
  display: grid; gap: 3px 16px; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
}
@media (min-width: 700px) {
  .trace__row { grid-template-columns: 34px minmax(0, 215px) minmax(0, 1fr) auto; align-items: baseline; }
}
.trace__lyr { color: var(--fg-dim); font-weight: 600; }
.trace__src { color: var(--fg-muted); }
.trace__exp { color: var(--fg); word-break: break-word; }
.trace__out { color: var(--fg-dim); text-align: left; white-space: nowrap; }
@media (min-width: 700px) { .trace__out { text-align: right; } }
.trace__row--win { background: var(--accent-soft); }
.trace__row--win .trace__lyr,
.trace__row--win .trace__out { color: var(--accent); }
.trace__row--win .trace__src { color: var(--fg); }
.trace__row--skip { opacity: .55; }
.trace__foot {
  padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  align-items: baseline; background: var(--bg-inset);
}
.trace__foot .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.trace__foot .val { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--accent); }
.trace__note { font-size: 12.5px; color: var(--fg-dim); line-height: 1.5; }

/* ---------- 13. Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
thead th {
  text-align: left; padding: 15px 20px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-inset);
  white-space: nowrap;
}
tbody td { padding: 17px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; color: var(--fg-muted); line-height: 1.58; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--bg-inset); }
td.case { color: var(--fg); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
td.mono, .mono-cell { font-family: var(--mono); font-size: 13px; }

/* ---------- 14. Split lists (scope boundary) ---------- */
.boundary { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .boundary { grid-template-columns: 1fr 1fr; } }
.boundary__col { background: var(--bg-elev); padding: calc(var(--u) * 4); }
.boundary__col--out { background: var(--bg-inset); }
.boundary__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; margin-bottom: calc(var(--u) * 2.5);
}
.boundary__tag--in  { color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(21,127,82,.28); }
.boundary__tag--out { color: var(--fg-dim); background: var(--hover-tint); border: 1px solid var(--line-strong); }
.boundary h3 { font-size: 21px; margin-bottom: 10px; }
.boundary__lede { font-size: 14.5px; color: var(--fg-muted); margin-bottom: calc(var(--u) * 3); line-height: 1.6; }
.checklist li {
  display: flex; gap: 12px; padding: 9px 0;
  font-size: 14.5px; color: var(--fg-muted); line-height: 1.55;
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.checklist--in svg  { color: var(--ok); }
.checklist--out svg { color: var(--fg-dim); }


/* ---------- 15. Before / after shift ---------- */
.shift { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .shift { grid-template-columns: 1fr 1fr; } }
.shift__col { background: var(--bg-inset); padding: calc(var(--u) * 4); }
.shift__col--after { background: linear-gradient(150deg, var(--accent-soft), transparent 55%), var(--bg-elev); }
.shift__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; margin-bottom: calc(var(--u) * 3);
  color: var(--fg-muted); background: var(--hover-tint); border: 1px solid var(--line-strong);
}
.shift__col--after .shift__tag { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.shift ul li {
  display: flex; gap: 13px; padding: 13px 0;
  font-size: 15.5px; line-height: 1.5; color: var(--fg-muted);
  border-bottom: 1px dashed var(--line);
}
.shift ul li:last-child { border-bottom: 0; }
.shift ul li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.shift__col--before svg { color: var(--fg-dim); }
.shift__col--after  svg { color: var(--accent); }
.shift__col--after ul li { color: var(--fg); }

/* ---------- 16. Step strip ---------- */
.steps { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); overflow: hidden; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: calc(var(--u) * 4) calc(var(--u) * 3.5); border-bottom: 1px solid var(--line); }
@media (min-width: 700px)  { .step:nth-child(2n) { border-left: 1px solid var(--line); }
                             .step:nth-child(n+3) { border-bottom: 0; } }
@media (min-width: 1100px) { .step { border-bottom: 0; border-left: 1px solid var(--line); }
                             .step:first-child { border-left: 0; } }
.step__n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.58; }

/* ---------- 17. Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 1.5); }
.chip {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); padding: 14px 18px;
  font-size: 14px; color: var(--fg-muted); line-height: 1.5;
  flex: 1 1 240px;
}
.chip svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
/* stacked variant: chips size to their content instead of filling the column */
.chips--stack { flex-direction: column; align-items: stretch; }
.chips--stack .chip { flex: 0 0 auto; }
.chip strong { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }

/* ---------- 18. Inline CTA band ---------- */
.ctaband {
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: linear-gradient(115deg, var(--accent-soft), transparent 58%), var(--bg-elev);
  padding: calc(var(--u) * 4.5);
  display: grid; gap: calc(var(--u) * 3); align-items: center;
}
@media (min-width: 900px) { .ctaband { grid-template-columns: 1fr auto; gap: calc(var(--u) * 5); } }
.ctaband h3 { font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -.018em; margin-bottom: 10px; max-width: 26ch; }
.ctaband p { color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; max-width: 58ch; }
.ctaband .btn { white-space: nowrap; }

/* ---------- 19. Validation strip ---------- */
.valstrip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .valstrip { grid-template-columns: repeat(3, 1fr); } }
.valstrip__item { background: var(--bg-elev); padding: calc(var(--u) * 3.5); }
.valstrip__item h3 { font-size: 15.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.valstrip__item p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.valstrip__q { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }

/* ---------- 16. Persona ---------- */
.persona { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: calc(var(--u) * 4); height: 100%; display: flex; flex-direction: column; }
.persona__role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: calc(var(--u) * 2); }
.persona h3 { font-size: 20px; margin-bottom: 10px; }
.persona__q { font-size: 15px; color: var(--fg-muted); line-height: 1.6; font-style: italic; padding-left: 14px; border-left: 2px solid var(--accent-line); margin-bottom: calc(var(--u) * 3); }
.persona ul { margin-top: auto; }
.persona li { display: flex; gap: 11px; padding: 8px 0; font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; }
.persona li svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }

/* ---------- 17. Callout ---------- */
.callout {
  border: 1px solid var(--accent-line);
  background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--bg-elev);
  border-radius: var(--radius);
  padding: calc(var(--u) * 4);
  display: grid; gap: calc(var(--u) * 2);
}
@media (min-width: 900px) { .callout { grid-template-columns: 46px 1fr; gap: calc(var(--u) * 3); } }
.callout__ico { color: var(--accent); }
.callout h3 { font-size: 19px; margin-bottom: 10px; }
.callout p { color: var(--fg-muted); font-size: 15px; line-height: 1.65; max-width: 78ch; }

.note {
  border-left: 2px solid var(--line-strong);
  padding: 4px 0 4px 18px;
  font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; max-width: 78ch;
}

/* ---------- 18. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: calc(var(--u) * 3) 44px calc(var(--u) * 3) 0;
  font-size: 17px; font-weight: 600; letter-spacing: -.012em;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 1.5px solid var(--fg-dim); border-bottom: 1.5px solid var(--fg-dim);
  transform: rotate(45deg); transform-origin: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq .answer { padding: 0 0 calc(var(--u) * 3.5); color: var(--fg-muted); font-size: 15px; line-height: 1.68; max-width: 80ch; }

/* ---------- 19. CTA ---------- */
/* The closing CTA is a dark photographic band — it bookends the two bands
   above and gives the page a definite end rather than fading out. */
.cta { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta .band__img { z-index: -2; }
.cta .band__img img { filter: saturate(.5) contrast(1.05); }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,15,20,.90) 0%, rgba(11,15,20,.80) 50%, rgba(11,15,20,.90) 100%);
}
.cta .kicker { color: rgba(255,255,255,.62); justify-content: center; }
.cta .kicker::before { color: #FFB893; }
.cta .btn--ghost { border-color: rgba(255,255,255,.45); color: #FFFFFF; }
.cta .btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.13); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 5%, transparent 72%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 74ch; margin-inline: auto; }
.cta h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.03em; color: #FFFFFF; }
.cta p { margin-top: calc(var(--u) * 3); font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.86); line-height: 1.62; }
.cta .cta-row { margin-top: calc(var(--u) * 5); display: flex; flex-wrap: wrap; gap: calc(var(--u) * 1.5); justify-content: center; }

/* ---------- 20. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: calc(var(--u) * 5); background: var(--bg-inset); }
.footer-inner { display: grid; gap: calc(var(--u) * 4); }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-inner h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: calc(var(--u) * 2); font-weight: 500; }
.footer-inner li { padding: 6px 0; }
.footer-inner li a { font-size: 14px; color: var(--fg-muted); transition: color var(--dur) var(--ease); }
.footer-inner li a:hover { color: var(--accent); }
.footer-blurb { font-size: 14px; color: var(--fg-dim); line-height: 1.62; max-width: 44ch; margin-top: calc(var(--u) * 2); }
.footer-bottom {
  margin-top: calc(var(--u) * 5); padding-top: calc(var(--u) * 3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2); justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-dim);
}

/* ---------- 21. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }


/* ---------- 20. Photography ---------- */
/* Every photo is boxed with an explicit aspect-ratio so nothing reflows
   while it loads (CLS), and carries a hairline + subtle warm wash so the
   images read as one set rather than as stock. */
.media {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-inset);
}
.media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.03);
}
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(242,99,34,.05), rgba(20,26,36,.06));
}
.media--wide  { aspect-ratio: 21 / 9; }
.media--photo { aspect-ratio: 4 / 3; }
.media--tall  { aspect-ratio: 3 / 4; }

/* full-bleed band with an overlaid statement */
.band {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  min-height: clamp(300px, 42vw, 460px);
  display: grid; align-items: center;
  isolation: isolate;
}
.band__img { position: absolute; inset: 0; z-index: -2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12,16,22,.88) 0%, rgba(12,16,22,.72) 42%, rgba(12,16,22,.30) 100%);
}
.band__inner { padding-block: clamp(44px, 6vw, 72px); }
.band__kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #FFB893; display: block; margin-bottom: calc(var(--u) * 2);
}
.band h2 {
  color: #FFFFFF; font-size: clamp(25px, 3.6vw, 40px); max-width: 20ch; letter-spacing: -.024em;
}
.band p {
  color: rgba(255,255,255,.86); font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.62; max-width: 54ch; margin-top: calc(var(--u) * 2.5);
}
.band .btn--ghost { border-color: rgba(255,255,255,.45); color: #FFFFFF; margin-top: calc(var(--u) * 3.5); }
.band .btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.12); }
.band__credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 1;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.media__credit {
  position: absolute; right: 8px; bottom: 6px; z-index: 1;
  font-family: var(--mono); font-size: 9.5px;
  color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* image + copy, side by side */
.split { display: grid; gap: calc(var(--u) * 4); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--u) * 6); }
  .split--rev .split__media { order: 2; }
}
.split h3 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: calc(var(--u) * 2); letter-spacing: -.018em; }
.split p { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }

/* ---------- 21. Compatibility lockup ---------- */
.compat {
  display: inline-flex; align-items: center; gap: 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-elev); padding: 11px 17px 11px 13px;
}
.compat__mark {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 3px; background: var(--fg); color: var(--bg-elev);
}
.compat__mark svg { width: 17px; height: 17px; }
.compat__txt { line-height: 1.4; max-width: 46ch; }
.compat__txt b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.008em; color: var(--fg); }
.compat__txt span { display: block; font-size: 12.5px; color: var(--fg-dim); margin-top: 2px; }
.compat__txt sup { font-size: .62em; vertical-align: super; line-height: 0; }

/* ---------- 22. Roadmap ---------- */
/* The signature device: every track is drawn as a reinforcement bar running
   left to right through the four horizons: full weight where the capability
   is live, thinner as the commitment thins, and a dashed anchorage tail under
   "Verkennend". Same drawing vocabulary as the wall elevation above, and the
   weights encode certainty rather than decorating the section.
   Colours come from the drawing tokens (--bar, --bar-anchor, --draw-line), so
   the roadmap re-themes with everything else. */

/* visually hidden, still in the accessibility tree */
.vh, .rm-cell__h {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.rm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: calc(var(--u) * 3); }
.rm-filters button {
  appearance: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg-muted);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.rm-filters button { display: inline-flex; align-items: baseline; gap: 8px; }
.rm-filters button:hover { border-color: var(--fg-dim); color: var(--fg); }
.rm-f__id { color: var(--accent); font-weight: 600; }
.rm-filters button[aria-pressed="true"] .rm-f__id { color: inherit; opacity: .78; }
.rm-filters button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent-deep);
}

.rm-board {
  --rm-label: 208px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}

/* --- horizon header: a dimension line with a tick at every boundary --- */
.rm-head { display: none; }
@media (min-width: 1000px) {
  .rm-head {
    display: grid; grid-template-columns: var(--rm-label) repeat(4, minmax(0, 1fr));
    background: var(--bg-inset); border-bottom: 1px solid var(--line-strong);
  }
}
.rm-head__corner {
  padding: calc(var(--u) * 2.25) calc(var(--u) * 2.5);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.rm-head__axis,
.rm-head__arrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim);
}
.rm-head__arrow { color: var(--accent); }
.rm-h { padding: calc(var(--u) * 2.25) calc(var(--u) * 2.25); position: relative; }
/* the dimension tick that makes the header read as a measured axis */
.rm-h::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 13px;
  background: var(--draw-line);
}
.rm-h__name {
  display: block;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
}
.rm-h[data-h="1"] .rm-h__name { color: var(--accent); }
.rm-h[data-h="4"] .rm-h__name { color: var(--fg-dim); }
.rm-h__desc {
  display: block; margin-top: 7px;
  font-size: 12.5px; line-height: 1.5; color: var(--fg-dim); max-width: 28ch;
}

/* --- track rows --- */
.rm-track { border-bottom: 1px solid var(--line); }
.rm-track:last-child { border-bottom: 0; }
/* `hidden` must beat the grid display the media query sets below */
.rm-track[hidden] { display: none; }
@media (min-width: 1000px) {
  .rm-track {
    display: grid;
    grid-template-columns: var(--rm-label) repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
  }
  .rm-track__label { grid-row: 1 / 3; grid-column: 1; border-right: 1px solid var(--line); }
  .rm-rail        { grid-row: 1; grid-column: 2 / -1; }
  .rm-cell        { grid-row: 2; }
}

.rm-track__label {
  background: var(--bg-inset);
  padding: calc(var(--u) * 3) calc(var(--u) * 2.5);
}
.rm-track__id {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .16em;
  color: var(--accent); display: block; margin-bottom: 10px;
}
.rm-track__label h3 { font-size: 16.5px; letter-spacing: -.014em; }
.rm-track__label p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--fg-dim); }

/* --- the rail: one continuous member, thinning across the horizons --- */
.rm-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: calc(var(--u) * 2.5) 0 calc(var(--u) * 1.25);
}
.rm-rail i {
  display: block; border-radius: 4px;
  background: var(--bar);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .85s var(--ease);
}
/* full member, thinning to a hairline, then an anchorage tail */
.rm-rail i:nth-child(1) { height: 8px; }
.rm-rail i:nth-child(2) { height: 5px; opacity: .55; transition-delay: .16s; }
.rm-rail i:nth-child(3) { height: 3px; background: var(--draw-line); transition-delay: .32s; }
.rm-rail i:nth-child(4) {
  height: 3px; border-radius: 0; transition-delay: .48s;
  background: repeating-linear-gradient(90deg,
              var(--bar-anchor) 0 9px, transparent 9px 17px);
}
.rm-track.is-in .rm-rail i { transform: scaleX(1); }

/* --- capability cells --- */
.rm-cell { padding: calc(var(--u) * 1.5) calc(var(--u) * 2.25) calc(var(--u) * 3); }
@media (min-width: 1000px) {
  .rm-cell + .rm-cell { border-left: 1px solid var(--line); }
}
.rm-item {
  position: relative; padding: 10px 0 10px 19px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px; line-height: 1.5; color: var(--fg-muted);
}
.rm-item:last-child { border-bottom: 0; }
.rm-item::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 9px; height: 9px; border-radius: 1px;
}
.rm-cell[data-h="1"] .rm-item::before { background: var(--bar); }
.rm-cell[data-h="2"] .rm-item::before { background: var(--bar); opacity: .5; }
.rm-cell[data-h="3"] .rm-item::before { background: transparent; border: 1.5px solid var(--draw-line); }
.rm-cell[data-h="4"] .rm-item::before {
  background: transparent; border: 1.5px solid var(--bar-anchor);
  border-radius: 50%; opacity: .75;
}
.rm-item b { display: block; font-weight: 600; color: var(--fg); }
.rm-item span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--fg-dim); }

/* --- below the matrix breakpoint the board stacks; horizon labels, hidden
       on the desktop grid because the header carries them, become headings --- */
@media (max-width: 999px) {
  .rm-rail { display: none; }
  .rm-track__label { border-bottom: 1px solid var(--line); }
  .rm-cell { padding-top: calc(var(--u) * 2.5); }
  .rm-cell + .rm-cell { border-top: 1px dashed var(--line); }
  .rm-cell__h {
    position: static; width: auto; height: auto; margin: 0 0 12px; clip-path: none;
    display: block; overflow: visible; white-space: normal;
    font-family: var(--mono); font-size: 10.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  }
  .rm-cell[data-h="3"] .rm-cell__h,
  .rm-cell[data-h="4"] .rm-cell__h { color: var(--fg-dim); }
}

.rm-foot { margin-top: calc(var(--u) * 3.5); }

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .dw { stroke-dashoffset: 0; }
  .fade-in { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .rm-rail i { transform: scaleX(1); }
}

/* ---------- 24. Print ---------- */
@media print {
  .site-header, .cta-row, .lang { display: none; }
  body { background: #fff; color: #000; }
}
