/* ══════════════════════════════════════════════════════════════════════════
   Operations OS — نظام العمليات · page layer v0.2 (2026-10-03)

   Loads after the shared sheets (styles.css · header.css · footer.css), which are byte-identical to
   Revenue OS, Reputation and Content OS. Everything specific to this page lives here, prefixed `ox-`.

   THE DRAWING ALPHABET (page master, header block) — it is what makes the page hard to copy:
   - a person or a team is a CIRCLE;
   - the request is a SQUARE;
   - ownership is the square with exactly ONE circle — a solid line to it in the hero drawing, inside it on
     the rail;
   - CORAL is drawn only for an exception or a human decision (Architecture §10), and an exception is a
     coral-EDGED SQUARE, never a circle. The primary call to action and the shared focus ring are the
     documented exemptions. Calm (resolution, ownership held) is sage.

   COLOUR VALUES are measured against the ground they land on: scaffolding lines may sit near 1.8:1, but
   anything a reader must resolve is ≥ 3:1, and every var() used here is defined here or in the shared
   sheets — a var() with no definition draws nothing, silently.

   MOTION: three signatures — the ownership line draws in the hero, the star becomes a rail, the request
   walks the example track and stops. Each plays ONCE when its own drawing is seen, then holds its end state;
   replay is a button. Nothing loops. #status has no motion at all. Every animation has a reduced-motion
   path and the manual switch (html[data-motion="off"]).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── page tokens ─────────────────────────────────────────────────────────── */

.ox-page {
  --ox-line: #2f394d;            /* scaffolding · ~1.8:1 on ink                      */
  --ox-line-strong: #7d8fa8;     /* load-bearing · ≥ 3:1 on ink                      */
  --ox-face: #1b2236;            /* a raised face on ink                             */
  --ox-label: var(--v4-on-ink-mid);
  --ox-coral: var(--v4-coral);   /* exception / human decision only                  */
  --ox-sage: #7fb39d;            /* ownership held · resolution                      */
  --ox-draw: cubic-bezier(.2, .65, .3, 1);
}
.ox-page .ros-sec--cream {
  --ox-line: #ded6c9;
  --ox-line-strong: #7a6f61;     /* load-bearing on cream                            */
  --ox-face: #faf7f1;
  --ox-label: var(--v4-on-light-mid);
  --ox-coral: #ad3b28;           /* NEVER #ff5a45 as text on cream                   */
  --ox-sage: #3f6a58;
}
/* two cream sections in a row get a hairline, so they read as two chapters */
.ox-page .ros-sec--cream + .ros-sec--cream { border-top: 1px solid #e3d9c8; }

/* The shared focus ring is --v4-coral, 2.65:1 on cream. */
.ros-sec--cream :where(a, button, summary):focus-visible { outline-color: #ad3b28; }

.ox-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ox-eyebrow {
  font-family: var(--v4-system);
  font-size: var(--v4-fs-2); font-weight: 700; letter-spacing: .04em;
  color: var(--v4-on-ink-mid); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.ox-eyebrow::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(270deg, var(--v4-line), transparent); }
.ros-sec--cream .ox-eyebrow { color: var(--v4-on-light-mid); }
.ros-sec--cream .ox-eyebrow::after { background: linear-gradient(270deg, #cfc4b3, transparent); }

/* the truth tag: dashed = illustrative. A solid tag appears nowhere on this page, and that is the statement. */
.ox-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--v4-fs-3); line-height: 1.5; color: var(--ox-label);
  border: 1px dashed var(--ox-line-strong); border-radius: 999px;
  padding: 5px 14px; margin: 0; white-space: nowrap;
}
.ox-tag--route { margin: 0 0 28px; white-space: normal; }

.ox-cta { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ox-cta__note {
  flex-basis: 100%; font-size: var(--v4-fs-3); line-height: 1.8; color: var(--v4-on-ink-mid);
  max-width: 52ch; margin: 0;
}
.ros-sec--cream .ox-cta__note { color: var(--v4-on-light-mid); }

/* long reading lines: the shared ledes run to ~90 Arabic characters at desktop width */
.ox-page .ros-lede--wide { max-width: 58ch; }

/* The Arabic leading of the shared heading (.ros-h2) is set in the shared sheet since 2026-10-10
   (styles.css, `html[lang="ar"] .ros-h2`, 1.45). From 2026-10-09 this sheet held it for these two pages alone
   (`.ox-page .ros-h2`, 1.4): the shared rule outranks that one, so it was removed. Check: check-line-collisions.mjs. */

/* The shared entrance (opacity + rise + 6px blur, staggered by item index) on every list reads as one recipe
   stamped everywhere, and the index delay is pure latency once items cross the trigger one at a time. On this
   page: no blur, 320ms, no delay — except the #problem thread, where the stagger IS the idea. */
.ros-js .ox-page [data-reveal] { filter: none; transition-duration: 320ms; transition-delay: 0ms; }
.ros-js .ox-page .ox-thread [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* controls exist only when the script reports ready, and never under the OS reduced-motion setting, where
   there is nothing to replay or stop */
.ox-ctl {
  font: inherit; font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); background: transparent; cursor: pointer;
  border: 1px solid var(--v4-line); border-radius: 999px; padding: 9px 18px; min-height: 44px;
  transition: color 160ms ease, border-color 160ms ease;
  display: none;
}
.ox-ready .ox-ctl { display: inline-block; }
.ox-ctl:hover { color: var(--v4-on-ink); border-color: var(--v4-on-ink-low); }
.ox-ctl:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .ox-ready .ox-ctl { display: none; } }

/* SVG text is reading text. A font-size in a scaled viewBox is a RATIO: these figures are 440 units wide, never
   wider than 480px, and sit in a panel whose padding bottoms out at 14px. On a 320px phone that leaves
   320 − 2×18 (gutter) − 2×14 (panel) = 256px of figure, so 23px renders at 13.4px, and at most 25.1px.
   verify.py recomputes this product from this file and fails below 13.3px. */
.ox-fig { display: block; width: 100%; max-width: 480px; height: auto; overflow: visible; margin-inline: auto; }
/* Inter first, as in every stack of the shared sheet: it paints the word gaps. Tajawal first made the five gaps
   in these labels cost two more font files, Tajawal's Latin cuts at 500 and 700 (check-fonts.mjs). */
.ox-fig text { font-family: "Inter", "Tajawal", system-ui, sans-serif; }
.ox-fig .ox-t-label { font-size: 23px; font-weight: 500; fill: var(--ox-label); }
.ox-fig .ox-t-read  { font-size: 23px; font-weight: 800; fill: var(--v4-on-ink); }
.ox-fig .ox-t-alert { font-size: 23px; font-weight: 700; fill: var(--ox-coral); }

/* ── 01 · hero ───────────────────────────────────────────────────────────── */

.ox-hero { padding-block: clamp(18px, 2.6vw, 40px) clamp(48px, 6vw, 96px); }
.ox-crumbs {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); margin: 0 0 clamp(12px, 2vw, 26px);
}
.ox-crumbs a { color: var(--v4-on-ink-mid); text-decoration: none; padding-block: 10px; }
.ox-crumbs a:hover { color: var(--v4-on-ink); }
.ox-crumbs [aria-current] { color: var(--v4-on-ink); }

.ox-hero__in { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 981px) { .ox-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* two lines from 360px to 1440px: the question, then its second half */
.ox-h1 {
  font-size: clamp(30px, 3.7vw, 54px); line-height: 1.26; font-weight: 900;
  margin: 0 0 18px; max-width: 21ch; text-wrap: balance;
}
.ox-hero__tension {
  font-size: var(--v4-fs-5); line-height: 1.75; max-width: 42ch;
  color: rgba(253, 246, 242, .86); margin: 0 0 18px;
  padding-inline-start: 16px; border-inline-start: 2px solid var(--ox-line-strong);
}
.ox-hero__promise { font-size: var(--v4-fs-5); line-height: 1.8; max-width: 44ch; font-weight: 700; margin: 0; }
/* button, then "free, 15 minutes" directly under it, then the anchor: all in the first screen */
.ox-cta--hero { display: grid; justify-items: start; gap: 10px; margin-top: 24px; }
.ox-cta--hero .ox-cta__note { color: var(--v4-on-ink); max-width: 46ch; }
.ox-see {
  font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); text-decoration: underline;
  text-decoration-color: var(--v4-line); text-underline-offset: 5px; padding-block: 10px;
  transition: color 160ms ease;
}
.ox-see:hover { color: var(--v4-on-ink); }

/* the request card */
.ox-card {
  position: relative; margin: 0; padding: clamp(20px, 2.4vw, 32px);
  background: linear-gradient(160deg, #161d31 0%, #10162a 100%);
  border-radius: 6px; border: 1px solid var(--ox-line-strong);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .8);
  max-width: 540px; justify-self: center; width: 100%;
  animation: ox-card-in .7s var(--ox-draw) .15s both;
}
.ox-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0; }
.ox-card__title { font-size: var(--v4-fs-6); }

/* the ownership drawing: request (square) — one solid line — owner (circle), across the whole card.
   HTML, not SVG: it follows the page direction, so the circle always sits beside the owner's name. */
.ox-own { display: flex; align-items: flex-start; margin: 20px 0 8px; }
.ox-own__node { flex: none; display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 92px; }
.ox-own__ico { height: 68px; display: grid; place-items: center; }
.ox-own__sq { display: block; width: 46px; height: 46px; background: var(--ox-sage); }
.ox-own__who { display: block; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ox-sage); background: rgba(127, 179, 157, .14); }
.ox-own__line { flex: 1 1 auto; min-width: 36px; height: 3px; margin-top: 33px; background: var(--ox-sage); transform-origin: right center; }
[dir="ltr"] .ox-own__line { transform-origin: left center; }
.ox-own__k { font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); line-height: 1.5; }
.ox-own__v { font-size: var(--v4-fs-4); font-weight: 800; color: var(--ox-sage); line-height: 1.5; }

.ox-card__fields { margin: 0; display: grid; }
.ox-field {
  display: grid; grid-template-columns: minmax(7.5em, auto) 1fr; gap: 6px 18px; align-items: baseline;
  padding-block: 13px; border-top: 1px solid var(--ox-line);
}
.ox-field dt { font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); }
.ox-field dd { margin: 0; font-size: var(--v4-fs-4); font-weight: 700; line-height: 1.6; }
.ox-field--wait dd { color: var(--v4-on-ink-mid); font-weight: 500; }
.ox-field--wait dd::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-inline-end: 10px;
  border: 1.5px dashed var(--ox-line-strong); vertical-align: middle;
}

/* first paint: the card arrives, the line draws from the request to the owner, the owner appears. A CSS
   animation, never a JS-revealed state — except on a phone, where the card starts below the fold: the script
   holds the line and the owner (`is-held`) and releases them (`is-live`) when the card is actually seen. */
.ox-own__line { animation: ox-grow .6s var(--ox-draw) .9s both; }
.ox-own__who, .ox-own__v { animation: ox-arrive .45s var(--ox-draw) 1.4s both; }
.ox-card.is-held .ox-own__line { animation: none; transform: scaleX(0); }
.ox-card.is-held .ox-own__who, .ox-card.is-held .ox-own__v { animation: none; opacity: 0; }
.ox-card.is-live .ox-own__line { animation-delay: .15s; }
.ox-card.is-live .ox-own__who, .ox-card.is-live .ox-own__v { animation-delay: .65s; }
@keyframes ox-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ox-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ox-arrive { from { opacity: 0; } to { opacity: 1; } }

/* ── 02 · problem ───────────────────────────────────────────────────────── */

.ox-problem { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 981px) { .ox-problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.ox-problem__line { font-size: var(--v4-fs-6); font-weight: 800; margin: 0 0 22px; }
.ox-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ox-thread li {
  position: relative; padding: 14px 0; padding-inline-start: 34px;
  font-size: var(--v4-fs-5); line-height: 1.6; color: var(--v4-on-light);
}
/* one thread, one solid marker per fragment (a request), and a break that widens fragment by fragment */
.ox-thread li::before {
  content: ""; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--ox-line-strong) 0 calc(100% - var(--gap, 0px)), transparent 0);
}
.ox-thread li:nth-child(2) { --gap: 12px; }
.ox-thread li:nth-child(3) { --gap: 22px; }
.ox-thread li:nth-child(4) { --gap: 32px; }
.ox-thread li:nth-child(5) { --gap: 42px; }
.ox-thread li::after {
  content: ""; position: absolute; inset-inline-start: 4px; top: 23px; width: 10px; height: 10px;
  background: var(--ox-line-strong);
}
.ox-problem__thesis { border-inline-start: 1px solid var(--ox-line); padding-inline-start: clamp(0px, 3vw, 40px); }
@media (max-width: 980px) { .ox-problem__thesis { border: 0; padding: 0; } }
.ox-problem__t2 { font-size: var(--v4-fs-6); font-weight: 800; line-height: 1.6; margin: 0 0 26px; max-width: 34ch; }
.ox-argument {
  font-size: clamp(21px, 2.2vw, 27px); font-weight: 900; line-height: 1.5; margin: 0 0 26px;
  padding: 20px 22px; background: #fff; box-shadow: var(--ros-shadow-paper); border-radius: 4px; max-width: 30ch;
}
.ox-problem__q { font-size: var(--v4-fs-5); line-height: 1.75; margin: 0; max-width: 36ch; }

/* ── 03 · shift — the star becomes a rail ───────────────────────────────── */

.ox-shift { margin: 0; display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 981px) { .ox-shift { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ox-shift__panel {
  background: var(--v4-ink-lift); border-radius: 6px; padding: clamp(14px, 2.4vw, 32px);
  box-shadow: var(--ros-shadow-card); display: flex; flex-direction: column;
}
.ox-shift__panel--after { background: linear-gradient(160deg, #142225 0%, #10192a 70%); }
.ox-shift__h { font-size: var(--v4-fs-6); font-weight: 800; margin: 0 0 6px; }
.ox-shift__panel--after .ox-shift__h { color: var(--ox-sage); }
.ox-shift__p { font-size: var(--v4-fs-4); line-height: 1.8; color: var(--v4-on-ink-mid); margin: 0 0 18px; max-width: 46ch; min-height: 3.6em; }
.ox-shift__panel .ox-fig { margin-top: auto; }
.ox-shift__cap { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ox-shift__sum {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; line-height: 1.45; margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 28ch; text-wrap: balance;
}

.ox-who circle { fill: var(--ox-face); stroke: var(--ox-line-strong); stroke-width: 2; }
.ox-who .ox-who--hub { stroke: var(--v4-on-ink); stroke-width: 2.5; }
.ox-star__links path { fill: none; stroke: var(--ox-line-strong); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
.ox-star__pile rect { fill: var(--ox-face); stroke: var(--v4-on-ink-mid); stroke-width: 1.5; }
/* the links cross under this label: a knockout halo in the panel's own colour keeps it readable */
.ox-fig--star .ox-t-hub { paint-order: stroke; stroke: var(--v4-ink-lift); stroke-width: 8px; stroke-linejoin: round; }

.ox-rail__line { stroke: var(--ox-sage); stroke-width: 2.5; fill: none; }
.ox-fig--rail .ox-who circle:not(.ox-who--hub) { stroke: var(--ox-sage); }
.ox-rail__req { transform: translate(168px, 250px); }
.ox-rail__sq { fill: var(--ox-sage); stroke: var(--ox-sage); stroke-width: 2.5; }
/* halted: the square keeps its place inside its owner's circle, loses its fill and gains a coral edge, and
   the coral line reaches the manager. This is the END state, drawn by the markup, so it holds when no
   sequence ever runs. */
.ox-rail__req.is-halted .ox-rail__sq, .ox-fig--rail:not(.is-playing) .ox-rail__sq { fill: var(--v4-ink-lift); stroke: var(--ox-coral); }
.ox-rail__alert { fill: none; stroke: var(--ox-coral); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ox-fig--rail.is-playing .ox-rail__alert { stroke-dashoffset: 1; }
.ox-fig--rail.is-playing .ox-t-alert { opacity: 0; }
.ox-fig--rail.is-alerting .ox-rail__alert { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ox-draw); }
.ox-fig--rail.is-alerting .ox-t-alert { opacity: 1; transition: opacity .4s var(--ox-draw) .5s; }
.ox-fig--star.is-playing .ox-star__links path { stroke-dashoffset: 1; }
.ox-fig--star.is-drawn .ox-star__links path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ox-draw); }
.ox-fig--star.is-drawn .ox-star__links path:nth-child(2) { transition-delay: .1s; }
.ox-fig--star.is-drawn .ox-star__links path:nth-child(3) { transition-delay: .2s; }
.ox-fig--star.is-drawn .ox-star__links path:nth-child(4) { transition-delay: .3s; }
.ox-fig--star.is-drawn .ox-star__links path:nth-child(5) { transition-delay: .4s; }
.ox-fig--star.is-drawn .ox-star__links path:nth-child(6) { transition-delay: .5s; }

/* ── 04 · example — the track, the token, the stop ──────────────────────── */

.ox-track { position: relative; --ox-rail-x: 11px; }
.ox-moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.ox-moment { position: relative; padding: 0 0 26px; padding-inline-start: 46px; }
.ox-moment::before {     /* the one solid line that joins the moments — never an arrow */
  content: ""; position: absolute; inset-inline-start: var(--ox-rail-x); top: 6px; bottom: -6px; width: 2px;
  background: var(--ox-line-strong);
}
.ox-moment:last-child::before { display: none; }
.ox-tick {
  position: absolute; inset-inline-start: calc(var(--ox-rail-x) - 5px); top: 4px; width: 12px; height: 12px;
  background: var(--v4-ink); border: 2px solid var(--ox-line-strong);
}
/* the approval moment is a person with authority: the only circle in this figure */
.ox-tick--who { border-radius: 50%; width: 16px; height: 16px; inset-inline-start: calc(var(--ox-rail-x) - 7px); top: 2px; border-color: var(--ox-coral); }
.ox-moment__tag {
  display: inline-block; font-size: var(--v4-fs-2); font-weight: 700; color: var(--ox-sage);
  border: 1px solid rgba(127, 179, 157, .45); border-radius: 999px; padding: 2px 12px; margin: 0 0 8px;
  transition: color 240ms ease, border-color 240ms ease;
}
/* the stage where the request stops says so; the approval stage keeps a neutral tag, so the page shows one
   stop, not two */
.ox-track:not(.is-walking) .ox-moment--halt .ox-moment__tag { color: #ff8a78; border-color: rgba(255, 90, 69, .5); }
.ox-moment p { margin: 0; font-size: var(--v4-fs-4); line-height: 1.8; color: rgba(253, 246, 242, .9); max-width: 48ch; }

.ox-token {
  position: absolute; z-index: 2; width: 18px; height: 18px; top: 0; left: 0;
  background: var(--ox-sage); box-shadow: 0 0 0 4px var(--v4-ink);
  transition: transform .9s var(--ox-draw), background .3s var(--ox-draw);
  display: none; pointer-events: none;
}
.ox-ready .ox-token { display: block; }
.ox-token.is-halted { background: var(--v4-ink); outline: 2.5px solid var(--ox-coral); outline-offset: -2.5px; }

/* the stop card lives INSIDE the halted moment, so on a phone it sits right under it with no reordering */
.ox-stop {
  margin: 16px 0 0;
  border: 1px solid rgba(255, 90, 69, .55);
  background: linear-gradient(160deg, #1d1620 0%, #141522 100%); border-radius: 4px;
  padding: 18px 20px;
  transition: opacity .5s var(--ox-draw), transform .5s var(--ox-draw);
}
.ox-track.is-walking .ox-stop { opacity: .18; transform: translateY(8px); }
.ox-stop__h { font-size: var(--v4-fs-5); font-weight: 800; margin: 0 0 12px; color: #ffad99; }
.ox-reasons { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ox-ready .ox-reasons { display: flex; }
.ox-reason {
  font: inherit; font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); background: transparent; cursor: pointer;
  border: 1px solid var(--ox-line-strong); border-radius: 999px; padding: 9px 16px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
/* the chosen reason is marked by a filled square and a heavier weight, not by colour alone */
.ox-reason::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px solid currentColor; }
.ox-reason[aria-pressed="true"] {
  color: var(--v4-on-ink); font-weight: 800; border-color: var(--ox-coral);
  box-shadow: inset 0 0 0 1px var(--ox-coral); background: rgba(255, 90, 69, .12);
}
.ox-reason[aria-pressed="true"]::before { background: var(--ox-coral); border-color: var(--ox-coral); }
.ox-why { display: grid; }
.ox-why__p { margin: 0 0 12px; font-size: var(--v4-fs-4); line-height: 1.8; }
.ox-why__name { display: block; font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); font-weight: 700; margin-bottom: 2px; }
/* with the script: the three reasons share ONE grid cell, so choosing one never changes the section height */
.ox-ready .ox-why__p { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.ox-ready .ox-why__p.is-on { visibility: visible; }
.ox-ready .ox-why__name { display: none; }

/* desktop: six moments across, each pinned to its column. The halted moment spans two rows; with subgrid its
   stop card sits in the SECOND row track, below the tallest moment plus a fixed gap, and reaches across three
   columns into the empty cells. (v0.1 hung the card under the moment's own text: when a neighbour wrapped
   one line longer, the gap to it fell from 30px to 3px near 1000–1100px wide.) */
@media (min-width: 981px) {
  .ox-track { --ox-rail-y: 10px; }
  .ox-moments { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 18px; row-gap: 28px; align-items: start; }
  .ox-moment { grid-row: 1; padding: 34px 0 0; padding-inline-start: 0; }
  .ox-moment:nth-child(1) { grid-column: 1; } .ox-moment:nth-child(2) { grid-column: 2; }
  .ox-moment:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; } .ox-moment:nth-child(4) { grid-column: 4; }
  .ox-moment:nth-child(5) { grid-column: 5; } .ox-moment:nth-child(6) { grid-column: 6; }
  .ox-moment::before { top: var(--ox-rail-y); bottom: auto; inset-inline-start: 0; inset-inline-end: -18px; width: auto; height: 2px; }
  .ox-tick { top: calc(var(--ox-rail-y) - 5px); inset-inline-start: 0; }
  .ox-tick--who { top: calc(var(--ox-rail-y) - 7px); inset-inline-start: 0; }
  .ox-moment p { font-size: var(--v4-fs-3); }
  .ox-stop { margin: 40px 0 0; margin-inline-end: calc(-200% - 36px); }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 981px) {
    .ox-moment--halt { display: grid; grid-template-rows: subgrid; }
    .ox-moment--halt > .ox-moment__body { grid-row: 1; }
    .ox-moment--halt > .ox-stop { grid-row: 2; margin-top: 0; }
  }
}

.ox-controls { display: flex; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; }
.ox-idea { font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.6; margin: clamp(24px, 3vw, 40px) 0 0; max-width: 46ch; }

/* the section ends on the idea line and the link to the full example (the loop line left the page in v0.8) */
.ox-more { margin: clamp(18px, 2.4vw, 28px) 0 0; }
/* a sentence, not a label: it may wrap on a phone, and it stays a 44px target */
.ox-more .ros-btn { white-space: normal; text-align: start; line-height: 1.6; min-height: 44px; }

/* ── 05 · status — motionless, on purpose ───────────────────────────────── */

.ox-status { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; margin: 0 0 clamp(36px, 5vw, 60px); }
@media (min-width: 981px) { .ox-status { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.ox-rungs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ox-rung {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border: 1px solid var(--v4-line); border-radius: 4px;
}
.ox-rung b { font-size: var(--v4-fs-6); font-weight: 900; white-space: nowrap; }
.ox-rung small { font-family: "Inter", system-ui, sans-serif; font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); white-space: nowrap; }
.ox-rung--on { background: var(--v4-ink-lift); border-color: transparent; box-shadow: var(--ros-shadow-card); border-bottom: 3px solid var(--ox-sage); }
.ox-rung--off b { color: var(--v4-on-ink-mid); }
.ox-rung__field { flex: 1 1 40px; height: 1px; background: var(--v4-line); }
.ox-disclose { margin: 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--ox-sage); max-width: 60ch; }
.ox-disclose p { font-size: var(--v4-fs-5); font-weight: 700; line-height: 1.85; margin: 0 0 10px; }
.ox-disclose p:last-child { margin: 0; }
.ox-who-block { border-top: 1px solid var(--v4-line); padding-top: clamp(28px, 4vw, 48px); }
.ox-who-block__in { display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 861px) { .ox-who-block__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ox-who-block__bound { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.6; margin: 0 0 16px; max-width: 32ch; }
.ox-who-block__sign { margin: 0; display: grid; gap: 2px; }
.ox-who-block__sign b { font-size: var(--v4-fs-5); }
.ox-who-block__sign span { font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); }
.ox-who-block__duty {
  margin: 0; font-size: var(--v4-fs-4); line-height: 1.9; color: rgba(253, 246, 242, .9);
  padding: 18px 20px; background: var(--v4-ink-lift); border-radius: 4px; border: 1px solid var(--v4-line);
}
/* the same call, asked once more where the reader has just seen who is accountable (v0.3) */
.ox-who-block .ox-cta { display: grid; justify-items: start; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
/* under the button, as in the hero. Seen at 1440px: beside the button the note broke after its last word */
.ox-who-block .ox-cta__note { color: rgba(253, 246, 242, .86); max-width: none; text-wrap: balance; }

/* ── 06 · readiness ─────────────────────────────────────────────────────── */

.ox-groups { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0 0 clamp(28px, 4vw, 44px); }
@media (min-width: 981px) { .ox-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ox-group { background: #fff; border-radius: 4px; box-shadow: var(--ros-shadow-paper); padding: 22px 22px 8px; }
.ox-group h3 { font-size: var(--v4-fs-4); font-weight: 800; color: var(--ox-sage); margin: 0 0 8px; line-height: 1.6; }
.ox-group ul { list-style: none; margin: 0; padding: 0; }
.ox-group li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; padding-block: 14px; border-top: 1px solid #ece4d6; }
.ox-group li::before { content: ""; grid-row: span 2; width: 9px; height: 9px; margin-top: 11px; background: var(--ox-sage); }
.ox-group b { grid-column: 2; font-size: var(--v4-fs-5); font-weight: 800; line-height: 1.5; }
.ox-group span { grid-column: 2; font-size: 16px; line-height: 1.8; color: var(--v4-on-light-mid); }

.ox-dr { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 981px) { .ox-dr { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
/* the stamp is SAGE, not coral: ownership held is resolution. It sits in the flow, above the sentence it
   belongs to — v0.1 pinned it over the list and it covered the last line at 360, 390 and ~1000–1100px. */
.ox-stamp { margin: 0 0 18px; }
.ox-stamp span {
  display: inline-block; padding: 9px 22px; border: 3px double var(--ox-sage); border-radius: 6px;
  color: var(--ox-sage); font-size: var(--v4-fs-6); font-weight: 900; background: rgba(255, 255, 255, .7);
  transform: rotate(-4deg);
}
.ox-dr__verdict { font-size: var(--v4-fs-5); font-weight: 700; line-height: 1.8; margin: 0 0 14px; max-width: 52ch; }
.ox-dr__bound { font-size: var(--v4-fs-4); line-height: 1.85; margin: 0 0 14px; max-width: 56ch; padding-inline-start: 14px; border-inline-start: 2px solid var(--ox-line-strong); }
.ox-dr__fee { font-size: var(--v4-fs-4); line-height: 1.85; color: var(--v4-on-light-mid); margin: 0; max-width: 56ch; }
.ox-inputs { border: 1px solid var(--ox-line); border-radius: 4px; padding: 18px 20px; background: var(--ox-face); }
.ox-inputs h3 { font-size: var(--v4-fs-4); font-weight: 800; margin: 0 0 6px; }
.ox-inputs p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--v4-on-light-mid); }

/* ── 07 · tools ─────────────────────────────────────────────────────────── */

.ox-outcomes { list-style: none; margin: 0 0 var(--ros-stack); padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ox-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ox-outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ox-outcomes li { background: #fff; border-radius: 4px; box-shadow: var(--ros-shadow-paper); padding: 20px; display: grid; gap: 8px; align-content: start; }
.ox-outcomes b { font-size: var(--v4-fs-5); font-weight: 800; }
.ox-outcomes span { font-size: 16px; line-height: 1.8; color: var(--v4-on-light-mid); }
/* outcome marks, in the drawing alphabet */
.ox-out { position: relative; display: block; width: 46px; height: 20px; margin-bottom: 4px; }
.ox-out::before, .ox-out::after { content: ""; position: absolute; top: 2px; width: 16px; height: 16px; }
.ox-out::before { inset-inline-start: 0; }
.ox-out::after { inset-inline-end: 0; display: none; }
.ox-out--stay::before { background: var(--ox-sage); }
.ox-out--link { background: linear-gradient(var(--ox-sage), var(--ox-sage)) center / 100% 2px no-repeat; }
.ox-out--link::before, .ox-out--link::after { display: block; background: var(--ox-sage); }
/* an open square: a container missing a side. (A dashed 16px square renders as four corner brackets.) */
.ox-out--fix::before { border: 2px solid var(--ox-line-strong); border-top-color: transparent; }
.ox-out--scope::before { border: 2px solid var(--ox-line-strong); border-radius: 50%; }
.ox-examples { font-size: var(--v4-fs-4); line-height: 1.85; color: var(--v4-on-light-mid); margin: 0; max-width: 60ch; }

/* ── 08 · authority ─────────────────────────────────────────────────────── */

.ox-table-wrap { overflow-x: auto; margin: 0 0 var(--ros-stack); max-width: 1080px; }
.ox-classes { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: var(--v4-fs-4); }
.ox-classes thead th { font-size: var(--v4-fs-3); font-weight: 700; color: var(--v4-on-ink-mid); text-align: start; padding: 0 18px 4px; }
.ox-classes tbody th, .ox-classes tbody td { background: var(--v4-ink-lift); padding: 18px; text-align: start; vertical-align: top; line-height: 1.75; }
.ox-classes tbody th { font-weight: 800; white-space: nowrap; border-start-start-radius: 4px; border-end-start-radius: 4px; }
.ox-classes tbody td:last-child { color: var(--v4-on-ink-mid); border-start-end-radius: 4px; border-end-end-radius: 4px; }
.ox-class--human th, .ox-class--human td { background: #1c1622; }
.ox-class--human th { box-shadow: inset -4px 0 0 var(--ox-coral); }
[dir="ltr"] .ox-class--human th { box-shadow: inset 4px 0 0 var(--ox-coral); }
.ox-mark { display: inline-block; vertical-align: -2px; margin-inline-end: 12px; width: 14px; height: 14px; }
.ox-mark--sq { background: var(--ox-line-strong); }
.ox-mark--rule { border: 2px solid var(--ox-sage); }
.ox-mark--who { border: 2.5px solid var(--ox-coral); border-radius: 50%; }
@media (max-width: 760px) {
  .ox-classes, .ox-classes tbody, .ox-classes tr, .ox-classes th, .ox-classes td { display: block; }
  .ox-classes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ox-classes { border-spacing: 0; }
  .ox-classes tr { margin: 0 0 10px; border-radius: 4px; overflow: hidden; }
  .ox-classes tbody th { white-space: normal; padding-bottom: 6px; }
  .ox-classes tbody td { padding-top: 4px; }
}
.ox-agents { font-size: var(--v4-fs-4); line-height: 1.9; color: var(--v4-on-ink-mid); max-width: 58ch; margin: 0; scroll-margin-top: 96px; }

/* ── 09 · control — exceptions first ────────────────────────────────────── */

.ox-control { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 981px) { .ox-control { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.ox-board {
  background: linear-gradient(165deg, #111829 0%, #0b1020 100%); border-radius: 6px;
  padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--ox-line-strong);
}
.ox-board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.ox-board__head b { font-size: var(--v4-fs-6); }
.ox-board__rows { list-style: none; margin: 0; padding: 0; }
.ox-board__rows li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 13px 2px; border-top: 1px solid var(--v4-line); font-size: var(--v4-fs-4); font-weight: 700;
}
/* the halted request of the alphabet: a square with a coral edge. Never a circle. */
.ox-halt-mark { display: block; width: 13px; height: 13px; border: 2.5px solid var(--ox-coral); }
.ox-board__below { margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--ox-line-strong); }
.ox-board__below p { font-size: var(--v4-fs-3); color: var(--v4-on-ink-mid); margin: 0 0 10px; }
.ox-measures { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ox-measures li { font-size: var(--v4-fs-3); line-height: 1.5; color: var(--v4-on-ink-mid); border: 1px solid var(--v4-line); border-radius: 999px; padding: 5px 14px; }
.ox-verdict { font-size: clamp(19px, 2vw, 23px); font-weight: 800; line-height: 1.75; margin: 0; max-width: 30ch; }

/* ── 10 · fit ───────────────────────────────────────────────────────────── */

.ox-signs { list-style: none; margin: 0 0 var(--ros-stack); padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ox-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .ox-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ox-signs li {
  background: #fff; box-shadow: var(--ros-shadow-paper); border-radius: 4px;
  padding: 20px; padding-top: 30px; position: relative; font-size: var(--v4-fs-4); line-height: 1.75; font-weight: 600;
}
.ox-signs li::before { content: ""; position: absolute; inset-inline-start: 20px; top: 16px; width: 26px; height: 2px; background: var(--ox-line-strong); }
.ox-not { font-size: var(--v4-fs-4); line-height: 1.85; color: var(--v4-on-light-mid); max-width: 60ch; margin: 0; border-inline-start: 2px solid var(--ox-line-strong); padding-inline-start: 14px; }

/* ── 11 · ladder ────────────────────────────────────────────────────────── */

.ox-ladder { list-style: none; margin: 0 0 var(--ros-stack); padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 981px) { .ox-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ox-plate {
  position: relative; border: 1px solid #d8cdbd; border-radius: 4px;
  padding: 22px 20px; background: var(--ox-face); display: flex; flex-direction: column; gap: 8px;
}
.ox-plate b { font-size: var(--v4-fs-5); font-weight: 800; }
.ox-plate p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--v4-on-light-mid); }
.ox-plate--on { background: #fff; box-shadow: var(--ros-shadow-paper); border-color: transparent; border-top: 3px solid var(--ox-sage); }
.ox-plate--future { background: transparent; border-style: dashed; }
.ox-plate .ox-cta { margin-top: auto; padding-top: 10px; }
.ox-cost { max-width: 60ch; }
.ox-cost p { font-size: var(--v4-fs-4); line-height: 1.85; color: var(--v4-on-light-mid); margin: 0 0 12px; }

/* ── 12 · FAQ ───────────────────────────────────────────────────────────── */

.ox-faq { display: grid; gap: 1px; background: var(--v4-line-soft); border-block: 1px solid var(--v4-line-soft); max-width: 860px; }
.ox-faq details { background: var(--v4-ink); }
.ox-faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline;
  padding: 20px 4px; font-size: var(--v4-fs-5); font-weight: 800; line-height: 1.6; min-height: 44px;
}
.ox-faq summary::-webkit-details-marker { display: none; }
.ox-faq summary::before { content: "+"; color: var(--ox-sage); font-family: "Inter", system-ui, sans-serif; font-weight: 700; }
.ox-faq details[open] summary::before { content: "−"; }
.ox-faq__a { padding: 0 4px 22px; padding-inline-start: 30px; }
.ox-faq__a p { margin: 0; font-size: var(--v4-fs-4); line-height: 1.9; color: var(--v4-on-ink-mid); max-width: 56ch; }
.ox-faq__a a { color: var(--v4-on-ink); text-decoration: underline; text-decoration-color: var(--ox-sage); text-underline-offset: 4px; }

/* ── 13 · close ─────────────────────────────────────────────────────────── */

.ox-close { max-width: 900px; }
.ox-close__h { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.4; font-weight: 900; margin: 0 0 var(--ros-stack); text-wrap: balance; max-width: 24ch; }
.ox-close__ask { font-size: var(--v4-fs-6); margin: 0; }

/* ── motion off · reduced motion ────────────────────────────────────────────
   `animation: none` is load-bearing: a running animation with fill-mode `both` outranks a plain rule, so the
   off paths cancel the animations BY NAME rather than overriding the properties they animate. */
html[data-motion="off"] .ox-card,
html[data-motion="off"] .ox-own__line,
html[data-motion="off"] .ox-own__who,
html[data-motion="off"] .ox-own__v { animation: none; transform: none; opacity: 1; }
html[data-motion="off"] .ox-token, html[data-motion="off"] .ox-stop { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .ox-card, .ox-own__line, .ox-own__who, .ox-own__v { animation: none; transform: none; opacity: 1; }
  .ox-token, .ox-stop { transition: none; }
}

/* ── forced colours ─────────────────────────────────────────────────────────
   marks drawn as backgrounds vanish under forced colours; keep the alphabet, and mark the chosen reason */
@media (forced-colors: active) {
  .ox-own__sq, .ox-own__line, .ox-thread li::after, .ox-group li::before, .ox-out::before, .ox-out::after,
  .ox-out--link, .ox-mark--sq, .ox-token { forced-color-adjust: none; }
  .ox-reason[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; box-shadow: none; }
}

/* ── phone ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* the call is the page's only ask: one line, full width, never broken between «—» and «15» */
  .ox-cta .ros-btn--lg { width: 100%; justify-content: center; text-align: center; padding: 17px 18px; font-size: var(--v4-fs-4); white-space: nowrap; }
  .ox-field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ox-own__node { min-width: 78px; }
}
@media (max-width: 480px) {
  /* measured in v0.2: the "free" note ended 2.4px above the fold at 320×640 and 11.9px BELOW it at 360×640.
     Spacing only, no copy: the top padding, the gaps between the four lines, and three line-heights. By width,
     not height: a height query would re-space the hero each time a phone's address bar hides or returns. */
  .ox-hero { padding-block-start: 10px; }
  .ox-crumbs { margin-bottom: 6px; }
  .ox-h1 { margin-bottom: 14px; }
  .ox-hero__tension { margin-bottom: 14px; line-height: 1.65; }
  .ox-hero__promise { line-height: 1.7; }
  .ox-cta--hero { margin-top: 18px; gap: 8px; }
  .ox-cta--hero .ros-btn--lg { padding-block: 15px; }
  .ox-cta--hero .ox-cta__note { line-height: 1.7; }
}
@media (max-width: 359px) {
  /* measured: at 320px the label ran 12px past its 282px button at 17px with 18px padding */
  .ox-cta .ros-btn--lg { font-size: 16px; padding-inline: 10px; }
  /* measured at 320×640: a three-line heading at the full size pushed the button's note under the fold */
  .ox-h1 { font-size: 27px; }
  .ox-hero__tension, .ox-hero__promise { font-size: var(--v4-fs-4); }
}
