/* Orthic Systems · one system for every page of orthicsystems.com.
   Tokens, type, buttons, status chips, the header (with the Orthic Flow menu), the product sub-nav, the footer and the
   pilot band. Page stylesheets (home.css, styles.css) add only what their own sections need.
   The tokens match the Orthic Flow app's: paper, ink, forest, accent #1f6b52; radii 2/4/6/8; 120/200/260 ms on
   cubic-bezier(.2,0,0,1), exits at 150 ms. Archivo condensed is the display voice, Geist Mono is for figures and IDs. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geistmono-latin.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #f2eee6;  --paper-2: #e8e3d8;  --sheet: #fbfaf6;  --sheet-2: #f4f1ea;  --film: #fcfbf8;
  --ink: #151413;    --ink-2: #2a2f36;    --text-2: #41464e; --muted: #5b5f66;
  --line: #dcd5c8;   --line-2: #c6beaf;

  --night: #0d1013;  --night-2: #15191d;  --night-3: #1f2429; --night-line: rgb(255 255 255 / 0.1);
  --on-night: #eeeae2; --on-night-2: #c0bcb4; --on-night-muted: #a19e97;
  --forest: #0f3528; --forest-2: #164434; --forest-line: rgb(238 243 236 / 0.16);
  --on-forest: #eef3ec; --on-forest-2: #bcd9c8; --mint: #9ed7b9;
  --accent: #1f6b52; --amber: #e2b062;
  /* burnt orange, the accent: the pigment that marks what is worth noticing (a difference, a question, the thing
     being pointed at). Green keeps its own meaning: Orthic Flow, order, a decided record. Paper ~60%, ink and
     forest ~30%, ember ~10% across the whole site, never per component. */
  --ember: #c2561a;        /* the pigment: marks, illustration, large text (3.9:1 on paper) */
  --ember-ink: #a8461a;    /* small text and hover on light grounds (5.1:1 on paper, 5.7:1 on sheet) */
  --ember-deep: #8f3a14;   /* pressed */
  --ember-glow: #ec8a52;   /* on night and forest (7.6:1 and 5.3:1) */
  --ember-wash: #f6e4d7;   /* a faint wash behind a highlighted detail */
  --ember-line: rgb(194 86 26 / 0.45);

  --ok: #1d6f4e;     --ok-bg: #e0eee5;
  --review: #855610; --review-bg: #f5e8cf;
  --flag: #a03a29;   --flag-bg: #f6e0d9;
  --quiet: #545961;  --quiet-bg: #e5e0d6;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cond: 76%;

  /* one display line per page; everything else speaks at a reading size */
  --t-display: clamp(2.5rem, 1.35rem + 3.3vw, 4.5rem);
  --t-h2: clamp(1.875rem, 1.35rem + 1.5vw, 3rem);
  --t-h3: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  --t-lede: clamp(1.0625rem, 1rem + 0.28vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;

  --max: 1264px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: 24px;
  --section: clamp(56px, 7vw, 96px);
  --hdr: 64px;

  --r-1: 2px; --r-2: 4px; --r-3: 6px; --r-4: 8px;
  --shadow-float: 0 1px 2px rgb(21 20 19 / 0.06), 0 14px 34px -14px rgb(21 20 19 / 0.28);

  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 260ms; --dur-out: 150ms;
  --ease-out: cubic-bezier(.2, 0, 0, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 56px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans);
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-2); }
.tone-night :focus-visible, .tone-forest :focus-visible, .foot :focus-visible { outline-color: var(--mint); }
::selection { background: var(--ember-wash); color: var(--ink); }   /* what you pick out to look at */
.tone-night ::selection, .tone-forest ::selection, .foot ::selection { background: var(--mint); color: var(--night); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-3); background: var(--ink); color: var(--sheet); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------------------------ sections and tones */
.sec { position: relative; padding: var(--section) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.tone-night, .sec.tone-forest, .tone-night + .sec, .tone-forest + .sec { border-top: 0; }
.tone-sheet { background: var(--sheet); }
.tone-paper2 { background: var(--paper-2); }
.tone-night { background: var(--night); color: var(--on-night); }
.tone-forest { background: var(--forest); color: var(--on-forest); }

/* ------------------------------------------------------------------ type */
.display { font-weight: 600; font-stretch: var(--cond); font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-weight: 600; font-stretch: var(--cond); font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.025em; max-width: 22em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.012em; }
/* two-tone: the claim in ink, the explanation after it in a quieter voice, at the same size */
.more { color: var(--muted); }
.tone-night .more { color: var(--on-night-muted); }
.tone-forest .more { color: var(--on-forest-2); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--text-2); max-width: 36rem; text-wrap: pretty; }
.tone-night .lede { color: var(--on-night-2); } .tone-forest .lede { color: var(--on-forest-2); }
.note { font-size: var(--t-caption); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.tone-night .note { color: var(--on-night-muted); } .tone-forest .note { color: var(--on-forest-2); }
.mono, .id { font-family: var(--mono); font-feature-settings: "zero" 1; }
.id { font-size: 0.86em; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.tone-night .id, .tone-forest .id { color: var(--mint); }
.num { font-variant-numeric: tabular-nums; }
.sec__head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.sec__head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; }
.sec__head--split .h2 { max-width: none; }

/* ------------------------------------------------------------------ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-3);
  border: 1px solid transparent; font: 600 0.9375rem/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--sheet); } .btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; } .btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--on-night); color: var(--ink); } .btn--light:hover { background: #fff; }
.btn--mint { background: var(--mint); color: var(--night); } .btn--mint:hover { background: #b6e3cb; }
.btn--ghost { border-color: rgb(255 255 255 / 0.22); color: inherit; } .btn--ghost:hover { border-color: currentColor; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--accent); }
.go { transition: color var(--dur-1) var(--ease-out); }
.go span[aria-hidden] { transition: transform var(--dur-2) var(--ease-out); }
/* answering a pointer: the link turns to the burnt-orange pencil and its arrow steps forward */
.go:hover { color: var(--ember-ink); } .go:active { color: var(--ember-deep); }
.go:hover span[aria-hidden] { transform: translateX(3px); }
.tone-night .go { color: var(--on-night); } .tone-forest .go { color: var(--mint); }
.tone-night .go:hover, .tone-forest .go:hover { color: var(--ember-glow); }
.inline { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-1) var(--ease-out); }
.inline:hover { color: var(--ember-ink); }
.tone-night .inline, .tone-forest .inline { color: var(--mint); }
.tone-night .inline:hover, .tone-forest .inline:hover { color: var(--ember-glow); }

/* ------------------------------------------------------------------ status chips (the app's) */
.state { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-3); font-size: 0.75rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.state::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state--ok { color: var(--ok); background: var(--ok-bg); }
.state--review { color: var(--review); background: var(--review-bg); }
.state--flag { color: var(--flag); background: var(--flag-bg); }
.state--quiet { color: var(--quiet); background: var(--quiet-bg); }
.state--verified { color: #fff; background: var(--accent); }
.state--verified::before { width: 7px; height: 4px; border-radius: 0; background: none; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.tone-night .state--ok, .tone-forest .state--ok { color: #8fd3b2; background: rgb(124 195 164 / 0.14); }
.tone-night .state--review, .tone-forest .state--review { color: var(--amber); background: rgb(226 176 98 / 0.14); }
.tone-night .state--flag { color: #f0937d; background: rgb(240 147 125 / 0.14); }
.tone-night .state--quiet, .tone-forest .state--quiet { color: var(--on-night-2); background: rgb(255 255 255 / 0.08); }
.tone-night .state--verified, .tone-forest .state--verified { color: var(--night); background: var(--mint); }

/* ------------------------------------------------------------------ the brand */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand svg { flex: none; }
.brand b { font-weight: 400; color: var(--muted); }
.brand path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.brand path[pathLength]:first-child { animation: mark-draw 1s var(--ease-out) 0.15s both; }
.brand path[pathLength]:last-child { animation: mark-draw 0.55s var(--ease-out) 0.95s both; }
.brand:hover path[pathLength]:last-child { animation: mark-redraw 0.55s var(--ease-out) both; }
@keyframes mark-draw { from { stroke-dashoffset: 1; } }
@keyframes mark-redraw { 0% { stroke-dashoffset: 0; } 45% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ the header: one, on every page */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); color: var(--ink); background: var(--paper);
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr.on-night { background: var(--night); color: var(--on-night); box-shadow: 0 1px 0 var(--night-line); }
.hdr.on-forest { background: var(--forest); color: var(--on-forest); box-shadow: 0 1px 0 var(--forest-line); }
.hdr.on-night .brand b, .hdr.on-forest .brand b { color: var(--on-night-muted); }
.hdr.on-night :focus-visible, .hdr.on-forest :focus-visible { outline-color: var(--mint); }
.hdr__in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__nav { margin-left: auto; }
.hdr__list { display: flex; align-items: center; gap: 4px; }
.hdr__link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-3); background: none;
  font: 500 0.9375rem/1 var(--sans); color: inherit; opacity: 0.84; cursor: pointer; white-space: nowrap; transition: opacity var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.hdr__link:hover, .hdr__link[aria-expanded="true"] { opacity: 1; background: rgb(21 20 19 / 0.05); }
.hdr.on-night .hdr__link:hover, .hdr.on-forest .hdr__link:hover, .hdr.on-night .hdr__link[aria-expanded="true"], .hdr.on-forest .hdr__link[aria-expanded="true"] { background: rgb(255 255 255 / 0.08); }
.hdr__link[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.hdr__chev { width: 10px; height: 10px; transition: transform var(--dur-2) var(--ease-out); }
.hdr__link[aria-expanded="true"] .hdr__chev { transform: rotate(180deg); }
.hdr__cta { flex: none; }
.hdr.on-night .hdr__cta, .hdr.on-forest .hdr__cta { background: var(--on-night); color: var(--ink); }
.hdr__pilot, .hdr__menu, .sheet-only { display: none; }
.hdr__item { position: static; }

/* the Orthic Flow menu: the six jobs it does, each with its status. Its top edge is drawn as an ink rule as it opens. */
.mega { position: absolute; right: var(--pad); top: calc(100% - 4px); width: min(680px, calc(100vw - 2 * var(--pad))); padding: 10px; border-radius: var(--r-4);
  background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(-4px); visibility: hidden;
  transition: opacity var(--dur-out) var(--ease-in), transform var(--dur-out) var(--ease-in), visibility 0s linear var(--dur-out); }
.mega::before { content: ""; position: absolute; left: 10px; right: 10px; top: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-out) var(--ease-in); }
.mega.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s; }
.mega.is-open::before { transform: scaleX(1); transition: transform 420ms var(--ease-out) 60ms; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.job { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; padding: 12px; border-radius: var(--r-3); transition: background-color var(--dur-1) var(--ease-out); }
.job:hover, .job:focus-visible { background: var(--sheet-2); }
.job svg { grid-row: 1 / span 2; width: 28px; height: 28px; margin-top: 1px; color: var(--ink); }
.job svg .g { stroke: var(--accent); }
.job svg .e { stroke: var(--ember); }   /* the part of the job that finds something: the ≠, the lens */
.job__t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.job__t .state { height: 20px; font-size: 0.75rem; padding: 0 6px; }
.job__d { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.mega__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.mega__foot a { font-weight: 600; color: var(--accent); }
.mega__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__back { display: none; }

/* ------------------------------------------------------------------ the product page's own bar: its chapters and how far through you are */
.subnav { position: sticky; top: var(--hdr); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; align-items: center; gap: 20px; height: 52px; }
.subnav__name { flex: none; font-weight: 600; font-size: 0.9375rem; }
.subnav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: var(--r-3); font-size: 0.875rem; font-weight: 500; color: var(--text-2); white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.subnav__links a:hover { color: var(--ink); background: rgb(21 20 19 / 0.05); }
.subnav__links a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.subnav__ink { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 5px; overflow: visible; pointer-events: none; }
.subnav__ink path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); }

/* ------------------------------------------------------------------ the pilot band, before every footer that has no pilot section of its own */
.band { background: var(--paper-2); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.band__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.band .actions { justify-content: flex-end; }

/* ------------------------------------------------------------------ the footer: one, on every page */
.foot { background: var(--night); color: var(--on-night-2); font-size: var(--t-small); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 48px; }
.foot .brand { color: var(--on-night); } .foot .brand b { color: var(--on-night-muted); }
.foot__brand p { margin: 12px 0 20px; max-width: 22rem; }
.foot__h { margin: 0 0 6px; font-weight: 600; font-size: 0.875rem; color: var(--on-night); }
.foot__nav a { display: block; width: fit-content; padding: 6px 0; transition: color var(--dur-1) var(--ease-out); }
.foot__nav a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: grid; gap: 6px; padding-top: 24px; padding-bottom: 40px; font-size: var(--t-caption); color: var(--on-night-muted);
  background: linear-gradient(var(--night-line), var(--night-line)) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.foot__base p { max-width: 72rem; }
.motion-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--r-3);
  background: transparent; color: var(--on-night); font: 500 0.875rem/1 var(--sans); cursor: pointer; }
.motion-btn:hover { border-color: var(--on-night-2); }
.motion-btn i, .ctl i { width: 9px; height: 10px; display: inline-block; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px); }
.motion-btn[aria-pressed="true"] i, .ctl[aria-pressed="true"] i { background: none; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ------------------------------------------------------------------ her head as the pointer (mouse and trackpad; see chrome.ts)
   Over reading matter the head is the pointer. Over links, buttons and fields the system pointer comes back and the
   head waits beside it; over the film she is already on screen, so the head steps away. */
html.has-pen body, html.has-pen body * { cursor: none; }
html.has-pen :is(a, button, summary, label, [role="tab"], [role="button"]), html.has-pen :is(a, button, summary, label, [role="tab"], [role="button"]) * { cursor: pointer; }
html.has-pen :is(input, textarea, select), html.has-pen .film, html.has-pen .film * { cursor: auto; }
html.has-pen input[type="range"] { cursor: pointer; }
.pen__head, .pen__ink { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
.pen__ink { width: 100vw; height: 100vh; }
.pen__head { width: 50px; height: 50px; opacity: 0; transition: opacity var(--dur-2) var(--ease-out); will-change: transform; }
.pen-in .pen__head { opacity: 1; }
.pen-away .pen__head { opacity: 0; }

/* ------------------------------------------------------------------ narrow screens: the header becomes a sheet */
@media (max-width: 960px) {
  .hdr__in { gap: 12px; }
  .hdr__cta { display: none; }
  .hdr__pilot { display: inline-flex; margin-left: auto; }
  .hdr.on-night .hdr__pilot, .hdr.on-forest .hdr__pilot { background: var(--on-night); color: var(--ink); }
  .hdr__menu { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 44px; padding: 0 12px; margin-right: -12px; border: 0; background: none;
    font: 600 0.9375rem/1 var(--sans); color: inherit; cursor: pointer; }
  .hdr__nav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; margin: 0; padding: 8px var(--pad) 0; background: var(--sheet); color: var(--ink);
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity var(--dur-out) var(--ease-in), visibility 0s linear var(--dur-out); }
  .hdr.is-open .hdr__nav { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease-out), visibility 0s; }
  .hdr.is-open { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .hdr.is-open .brand b { color: var(--muted); }
  .hdr.is-open .hdr__pilot { background: var(--ink); color: var(--sheet); }
  .hdr__list { flex-direction: column; align-items: stretch; gap: 0; }
  .hdr__link { justify-content: space-between; width: 100%; height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; opacity: 1; }
  .hdr__link:hover { background: none; }
  .hdr__link[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .hdr__chev { transform: rotate(-90deg); }
  .hdr__link[aria-expanded="true"] .hdr__chev { transform: rotate(-90deg); }
  .hdr__item { position: static; }
  /* the second level: Orthic Flow's six jobs, over the first */
  .mega { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; width: auto; padding: 8px var(--pad) 24px; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto;
    transform: translateX(16px); z-index: 2; }
  .mega::before { display: none; }
  .mega.is-open { transform: none; }
  .mega__back { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0; border: 0; background: none; font: 600 1rem/1 var(--sans); color: var(--accent); cursor: pointer; }
  .mega__grid { grid-template-columns: minmax(0, 1fr); }
  .job { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .job:hover { background: none; }
  .mega__foot { flex-direction: column; border-top: 0; padding: 16px 0 0; margin: 0; font-size: 1rem; }
  .sheet-only { display: block; }
  .hdr__sheetcta { position: sticky; bottom: 0; margin-top: auto; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--sheet); }
  .hdr__sheetcta .btn { width: 100%; height: 48px; }
  .subnav__name { display: none; }
  .band__in { grid-template-columns: minmax(0, 1fr); }
  .band .actions { justify-content: flex-start; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .sec__head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  .subnav .btn { display: none; }
  .foot__grid { gap: 24px 16px; }
}
html.sheet-open { overflow: hidden; }

/* ------------------------------------------------------------------ reduced motion: things appear, nothing travels */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .brand path[pathLength] { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .mega { box-shadow: none; } }
/* increased contrast: the pigment darkens on light grounds and lightens on dark ones */
@media (prefers-contrast: more) { :root { --ember: #8f3a14; --ember-ink: #7a3110; --ember-glow: #f6b58c; } }
