/*
  meet.css: the Learn The System probe page (was Meet The System; learn-1 made it the three-step walk), the home page's sibling.
  Tokens, type and the 1440 column are the home page's (home.css round 5): the :root block and the nav are copied value for
  value; below the nav everything is this page's. Palette: the Forge's gold (tokens.css --cer-gold-hot) for the Forge half,
  the accent cyan for Command, as the creed row pairs them. Sharp corners, no grid, no pattern.

  THE MARKS (assets/forge-icon.svg, assets/command-icon.svg): CANON files, verbatim. Their doc comments set the law this
  file obeys: (1) both carry the same padded viewBox (-12 -12 224 248), one coordinate system, so BOTH are drawn at the
  same px-per-unit (the shield path is the same size in both) and sized by the box, never one stretched to match the other;
  (2) the ink box is not the viewBox: the ink centre sits ~2 units ABOVE the viewBox centre, so the floated icon is placed
  by ink (see --ink-off); (3) Command's rim is size-tiered and this page only ever draws the DISPLAY tier (>= 64 px), the file
  as it is; (4) no stroke-linejoin or path change: they are image elements of the file, nothing redrawn.
*/

:root {
  --bg: #000; /* c8, his word Sat 2026-10-31: all black, every page (was #050508) */
  --bg-soft: #0b0b12;
  --bg-raise: #101019;
  --ink: #e8e8f0;
  --ink-dim: #8a8a9a;
  --line: rgba(138, 138, 154, 0.16);
  --accent: #22d3ee;
  --accent-deep: #0891b2;
  --sans: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;

  --gold-hot: #ffe6ad;
  --cyan-hot: #eafdff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* the house easing (home.css) */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --column: min(1440px, max(78vw, 960px));
  --ls: 1;

  /* ---- this page ---- */
  --icon: clamp(220px, 18.7vw, 363px);          /* the rest box height (round 2: +10%); ink = 0.9 of it: ~242 at 1440, ~327 at 2560 */
  --grow: 1.15;                                 /* ROUND 3: the floated mark is never smaller than at rest; it grows to 1.15 x */
  --fh: calc(var(--icon) * var(--grow));        /* the floated box height: 1.15 x the rest box, at every window height (was min(rest, 30dvh)) */
  --fu: calc(var(--fh) / 248);                  /* px per canonical unit while floated */
  --pair-gap: clamp(90px, 10vw, 210px);         /* between the two halves' boxes (round 2: a quarter smaller) */
  --bob-d: 2s;                                  /* one way of the float at rest: a 4 s period (alternate) */
  --bob-a: 6px;                                 /* its amplitude: +-6 px, 12 px top to bottom */
  /* ROUND 3: the mark never gives way, so a SHORT window gives the room instead, in this order: first the gaps, then the write-up's
     size. The dvh terms are no-ops at 1440 x 900, 1920 x 1080 and 2560 x 1440 (measured identical); they bite only below that,
     e.g. 1920 x 900, where 1.15 x the mark plus title, write-up and button would otherwise run off the bottom. */
  --panel-gap: clamp(20px, min(2.4vw, 4.3dvh), 48px);   /* icon ink edge to title / write-up */
  --btn-gap: clamp(24px, min(2.2vw, 3.95dvh), 48px);    /* write-up to the button */
  --copy-size: clamp(17px, min(1.25vw, 2.5dvh), 30px);
  --t-fly: 300ms;
  --t-back: 240ms;
}
@media (min-width: 1900px) { :root { --ls: 1.3; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* The same single, centred, very quiet pool of cyan as the home page. A radial wash, nothing patterned. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* r87 (his word: "lets see it" black): the pool is off on this page, to look at; it came from the old home page, and the Learn page has had no
     badge for it to light since the Empire step left. To put it back: background: radial-gradient(ellipse 52% 62% at 50% 54%, rgba(34, 211, 238, 0.045), transparent 70%); */
  background: none;
}

/* r242 (his rule: one in, one out): the nav's rules live in home.css only (loaded before this sheet on the Tools and FAQ pages); this sheet carries the nav's own width token and nothing else of it.
   The wide nav, shared with home B (1680px column); the page body below keeps --column 1440 */
body.page-meet { --nav-column: 1680px; }

/* ================= STAGE: THE WALK (learn-1) =================
   B's stage, rect for rect (home.css .stage + b.css .centre / .hero, b.js's --z): the stage is the room between the nav and
   the gutter; the walk is the hero's box, the 1440 column wide and 714 x z tall (the ring stack's box on B; meet.js writes
   --z by b.js's rule), centred in that room. So the box's top is B's hero top and its floor is B's floor: the Doctrine line
   at the floor sits where B's does, on every step.
   No z-index on the stage or anything inside it: a stacking context here would trap the floated icon under the backdrop. */
:root {
  --gutter: clamp(20px, 2.4vw, 64px);       /* home.css */
  --z: 1.1;                                  /* first paint only; meet.js writes the real one */
  --quote-size: clamp(13px, 0.62vw, 15px);   /* b.css */
  --hl-size: clamp(26px, 2.05vw, 54px);      /* b.css */
  --doctrine-gold: #e3c778;                  /* b.css: the Doctrine's founding gold */
  --walk-size: clamp(15px, 0.8vw, 20px);     /* forge.css: the walkthrough's reading size */
  --walk-ink: color-mix(in srgb, var(--ink) 80%, var(--bg));
  --arrow: calc(var(--walk-size) * 1.85);    /* r79: was forge.css's clamp(40px, 2.1vw, 50px), sized for a title; the arrows now sit at the text block's middle, so they scale with the text (28.4 / 37 / 37 px) */
  --arrow-gap: clamp(12px, 0.75vw, 18px);    /* forge.css */
  --stage-steel: #a4bac7;                    /* forge.css: VULNERABLE's ink */
  --stage-gold: var(--cer-gold-hot);         /* forge.css: FORTIFIED's ink */
  --stage-unlit: #5d6378;                    /* forge.css */
  /* the stepper: its type and the band it holds at the box's top */
  --step-size: clamp(15px, 0.86vw, 22px);
  --band: calc(var(--step-size) * 1.5 + var(--gutter) * 0.6);
  --head-y: calc(44px * var(--z));           /* r67: where every step's heading starts, from the stack's top */
  --eyebrow-gap: calc(var(--hl-size) * 0.9);  /* r67/r72: the stepper's line to the heading: the Forge page's, measured (0.90 x the heading size at all three screens; b.css's 1.15 margin is eaten by its row layout) */
  /* the room the floor keeps: B's floor offset, the quote's two lines (sentence + attribution), a little air above. The box is
     791 px tall at all three screens (z 1.108) while the gutter grows to 64 px, so the air is a fraction of a gutter: step 3
     (the page as it was, its icons at full size) needs ~640 px of the box at 2560 and 3840 */
  --floor-room: calc(21.5px * var(--z) - 21px + var(--quote-size) * 3.45 + var(--gutter) * 0.4);
}

/* r73 (his word: "on 1920x1080 look where the eyebrows and main titles start on the splash and the Forge ... get the Learn page to start and be spaced
   in the same area"): the heading starts where the Forge page's first heading does; the stepper line rides --eyebrow-gap above it, so the
   eyebrow lands on the Forge's eyebrow too. r251: that place is the shared slot (../slot.css --slot-hl, the headline's top below the box's top; the
   box is the hero here), one rule for every page, read in a unit the classic scrollbar does not shift; the three rounded constants
   (303.8 / 180.6 / 176.6 px, one per width band) are retired. --head-y is measured from the stack's top, which is --band below the box's. */
@media (min-width: 1024px) { :root { --head-y: max(0px, calc(var(--slot-hl) - var(--band))); } }

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0 var(--gutter) var(--gutter);
}
.centre {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  width: min(var(--column), 100%);
}
.learn {
  position: relative;
  height: calc(714px * var(--z));
  min-width: 0;
}

/* THE STEPPER: the three names in one centred row, the current one in the accent, the other two dim. One weight in every
   state (only the ink changes), so the three keep their slots on every step: nothing moves, nothing pops in. */
.stepper {
  position: absolute;
  left: 0;
  right: 0;
  /* r67: the Forge page's eyebrow slot: left-aligned at the block's edge, a line above the headings, which every step starts at
     one y (--head-y, from the stack's top) */
  top: calc(var(--band) + var(--head-y) - var(--step-size) * 1.5 - var(--eyebrow-gap));
  display: flex;
  justify-content: flex-start;
  z-index: 3;            /* r70: it now sits inside the stack's box, which is later in the page and drew over it (the clicks missed) */
  pointer-events: none;  /* the row itself is not a target; only the three names are */
  align-items: center;
  column-gap: 0.85em;
  font-size: var(--step-size);
  font-weight: 500;      /* r71: the splash and Forge eyebrows' own (b.css .eyebrow): size, weight, line-height, tracking */
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.step-name {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-dim);
  background: none;
  border: 0;
  padding: 4px 2px;      /* r70: a roomier target than the bare text */
  margin: -4px -2px;
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.3s ease;
}
.step-name:hover:not([aria-current]) { color: var(--ink); }
.step-name[aria-current="step"] { color: var(--accent); cursor: default; }
.step-sep { color: var(--stage-unlit); }
/* r98 (his word: "make The Tools be a sub menu beside The System again"): the two names are links to the two pages; the current one in the accent, the other dim */
a.step-name { text-decoration: none; }
/* r93: the walk has one step now, so the stepper's one name is a plain label, not a selector: the eyebrow's white (the splash and Forge eyebrows' ink) */
.step-label { color: var(--ink); }
.next-label { text-decoration: none; }
.next-label:hover { text-decoration: none; }

/* THE ARROWS: the Forge page's (forge.css .walk-arrow), beside the stage: ‹ hangs left of the box, › right of it, both on the
   box's centre line, in fixed slots. Next is always lit (the Forge's lit state): this walk advances by reading. */
.learn-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: var(--arrow);
  height: var(--arrow);
  display: grid;
  place-items: center;
  padding: 0 0 0.12em;
  font: inherit;
  font-size: calc(var(--arrow) * 0.62);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
/* r77 (his word: "i do want those arrows on the left side like the Forge page does"): the Forge page's slots: ‹ in the gutter left of the
   block, › at the block's right edge, both centred on the title's line (forge.css .walk-arrow: heading line centre, hl x 1.15 / 2 below its top) */
.learn-arrow { top: calc(var(--arrow-y, var(--band) + var(--head-y) + var(--hl-size) * 0.575) - var(--arrow) / 2); translate: none; z-index: 3; /* above the steps: › now sits inside their box */ }
.learn-prev { left: calc(-1 * (var(--arrow) + var(--arrow-gap))); }
.learn-next { left: calc(var(--block-w, 616px) + var(--arrow-gap)); right: auto; }   /* r78: at the block's mid-height the text runs to its edge, so › stands just outside it, the ‹'s mirror */
.learn-arrow:hover { color: var(--ink); border-color: rgba(138, 138, 154, 0.4); }
.learn-arrow:active { transform: translateY(1px); }
.learn-next[aria-disabled="false"] { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.055); }
.learn-next[aria-disabled="false"]:hover { color: var(--cyan-hot); border-color: var(--accent); background: rgba(34, 211, 238, 0.1); }
.learn-arrow[aria-disabled="true"] { cursor: default; color: var(--stage-unlit); border-color: rgba(138, 138, 154, 0.1); background: transparent; transform: none; }
/* below the width that leaves the gutters room for them, the arrows step inside the box and the steps give them their lane */
/* r86 (checks): between 1024 and 1599 px the page has no gutter for the ‹ that hangs left of the block, so the whole walk steps in by the arrow's lane
   and the arrows keep their wide-screen slots (the old rule here, which put them at the box's far edges, never applied: the base .learn-stack rule below
   comes after it and wins, so on a 1280 screen the ‹ sat on the text) */
@media (min-width: 1024px) and (max-width: 1070px) {
  .learn { margin-left: calc(var(--arrow) + var(--arrow-gap)); }
}

/* THE STEPS: stacked in one cell under the band (forge.css .walk-step), the current one shown, a 0.22 s cross-fade */
.learn-stack {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--band);
  bottom: var(--floor-room);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.learn-step {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
.learn-step.is-current { visibility: visible; opacity: 1; transition: opacity 0.22s var(--ease-out), visibility 0s; }

/* the headings: B's beats' type at the creed's scale (forge.css .hl) */
.hl {
  margin: 0;
  font-size: var(--hl-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-spacing: 0.09em;
  white-space: nowrap;
  color: var(--ink);
}
.learn-text { margin-top: calc(var(--hl-size) * 0.36); }
.learn-text p {
  margin: 0;
  font-size: var(--walk-size);
  line-height: 1.55;
  color: var(--walk-ink);
  text-wrap: pretty;
}
.learn-text > * + * { margin-top: 0.85em; }
.learn-text > p + p { margin-top: 0.7em; }
/* capitals mint canon: the stage words carry their own ink, never bold (forge.css) */
.canon { letter-spacing: 0.04em; font-weight: 600; }
.canon-steel { color: var(--stage-steel); }
.canon-gold { color: var(--stage-gold); }
/* a Doctrine sentence in the text: the floor's gold and its attribution's voice, at the reading size */
.quote { margin: 0; font-size: var(--walk-size); line-height: 1.55; }
.learn-text > .quote { margin-top: 1.1em; }
.learn-text > .quote + p { margin-top: 1.1em; }
.quote blockquote { margin: 0; }
.learn-text .quote p { font-weight: 500; color: var(--doctrine-gold); }
.quote figcaption { margin-top: 0.2em; font-size: 0.86em; letter-spacing: 0.04em; color: color-mix(in srgb, var(--doctrine-gold) 72%, transparent); }

/* STEP 1: the words on the left (THE BLOCK: b.js's --block-w, the Forge page's left block), the document on the right,
   centred where the Forge page puts its ceremony */
.s1 { height: 100%; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.s1-copy { align-self: start; padding-top: var(--head-y); justify-self: start; width: var(--block-w, 100%); min-width: 0; }
/* r84 (his word: "lets take a look, then revert if it didnt land"): the reader's cell runs the walk box's full height, not just the stack's: the
   stepper and the floor quote are both on the left, so the right column is free above (the band) and below (the floor room). The
   reader is height-limited, so it grows ~20-27%. Revert = delete the two margins. */
.s1-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; margin-top: calc(-1 * var(--band)); margin-bottom: calc(-1 * var(--floor-room)); }

/* THE SMALL READER'S FRAME (the page's own; the page inside is Command's, doctrine-reader.css). Shrink-wrapped to the fitted
   page; its controls at the bottom INSIDE the frame in the reader's own idiom (Command's 28 px square, its border ink, its
   chevrons, gold on hover), so they never read as the walk's ‹ ›. */
.ptd {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: clamp(14px, 0.9vw, 22px);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.ptd-page { position: relative; flex: none; display: flex; }
.ptd-page .doctrine-page-surface { margin: 0; }
.ptd-click-expands { cursor: zoom-in; }
/* r102: THE BADGE (the splash's Fortified crest, static: gold line, cyan keep, EMPIRE; no glow, no rings) stands in the reader's cell on every page until
   Character; at Character it shrinks away and the reader grows up out of the same spot (and back). Its box is a size container so the shield and the
   label scale with the cell (the reader is a sibling, so containment never touches it). Timings are the one place to tune (r104, his "too fast"): out 0.6 s, in 0.9 s after a 0.55 s hand-off. */
.s1-stage { position: relative; }
.s1-copy { position: relative; z-index: 2; }   /* the text column paints above the badge's cell, which overlaps it at phone width (the page's own blue label must stay clickable) */
.sys-badge { position: absolute; inset: 0; container-type: size; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) 0.55s, transform 0.9s var(--ease-out) 0.55s; }
.sys-badge-in { display: flex; flex-direction: column; align-items: center; }
.sys-badge svg { display: block; height: 38cqh; width: auto; aspect-ratio: 100 / 112; }
.sys-badge .shield-line { stroke: #ffd966; }
.sys-badge .keep { fill: #3de8ff; }
.sys-badge-label { margin-top: 3.6cqh; font-size: 2.9cqh; line-height: 1.2; font-weight: 600; letter-spacing: 0.46em; text-indent: 0.46em; white-space: nowrap; color: #9beffb; }
.ptd { opacity: 0; visibility: hidden; transform: scale(0.94); transition: opacity 0.6s ease-in, transform 0.6s ease-in, visibility 0s linear 0.6s; }
.reader-on .ptd { opacity: 1; visibility: visible; transform: none; transition: opacity 0.9s var(--ease-out) 0.55s, transform 0.9s var(--ease-out) 0.55s, visibility 0s linear 0.55s; }
.reader-on .sys-badge { opacity: 0; transform: scale(0.7); transition: opacity 0.6s ease-in, transform 0.6s ease-in; }
@media (prefers-reduced-motion: reduce) { .sys-badge, .ptd, .reader-on .ptd, .reader-on .sys-badge { transition: none !important; } }   /* r74: any click on the small page expands it (the Contents entries keep their pointer) */
.ptd-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 28px; }
.ptd-trio { grid-column: 2; display: flex; align-items: center; gap: 10px; }
.ptd-count {
  min-width: 5.2em;
  text-align: center;
  font-family: var(--font-site-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--doctrine-page-dim);
  font-variant-numeric: tabular-nums;
}
.ptd-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--empire-border));
  border-radius: 5px;
  color: var(--doctrine-page-dim);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.ptd-btn svg { display: block; }
.ptd-btn:hover:not(:disabled), .ptd-btn:focus-visible { color: var(--doctrine-ink-border); border-color: var(--doctrine-ink-border); }
.ptd-btn:disabled { opacity: 0.35; cursor: default; }
.ptd-expand { grid-column: 3; justify-self: end; }

/* r76: THE DRUMS. The Thesis is a run of short pages under one fixed title. They stack in ONE grid cell (the tallest sets the height,
   so nothing moves as they change) and cross-fade like the steps. Each is a cyan lead line, then its elaboration in the body type.
   Cyan is the page's guiding ink (the stepper's current name, the Forge's "Try pushing..."); gold stays the Doctrine's. */
.drums { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 0; }   /* r92: each page carries its own title, so no gap above the container */
.drums > .drum { margin-top: 0; }   /* r92: .learn-text's sibling spacing must not push the later pages down: every title sits at one y */
.drum {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out), visibility 0s linear 0.22s;
}
.drum.is-current { visibility: visible; opacity: 1; transition: opacity 0.22s var(--ease-out), visibility 0s; }
.learn-text .drum-lead {
  font-size: clamp(18px, 1.12vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: var(--accent);
  margin-bottom: 0.45em;
}
.learn-text .drum-go { margin-top: calc(var(--walk-size) * 1.15); }
.drum .hl + p { margin-top: calc(var(--hl-size) * 0.36); }   /* r99: the body under a page's title keeps the gap the old shared text block had */
.learn-text .term { color: var(--accent); font-weight: 600; }   /* r99: a defined term in the Empire's page: cyan, the page's guiding ink */
/* the Forge page's pulsing next label (forge.css .walk-next-label / next-pulse, r49): small, cyan, semi-bold, the house 2 s breath; still under reduced motion */
.next-label {
  font: inherit;
  font-size: clamp(13px, 0.7vw, 17px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: cta-pulse 1.4s ease-in-out infinite;   /* LIVE 9: the one breath in home.css */
}
.next-label:hover { color: var(--cyan-hot); }
.next-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .next-label { animation: none; } }
/* r122 (his word: the same button as Set Daily Loss Limits on the Forge page, "but dont make it pulse"): the next label, standing still */
.next-label--still { animation: none; }
.page-command .s3-stage { display: none; }   /* r122: the Command page has only its title for now */
/* r129: the FAQ's reader is a desktop piece; a phone gets the title only, as the walk pages did (the reader collapsed when it was tried at 390) */

/* the walk's progress: "3 / 8" */
.learn-count {
  /* r81 (his word: "that bottom line is reserved for the quote, put it at the bottom of the text block"): centred under the left block,
     hanging from the drums' bottom edge (meet.js --block-bottom), a fixed slot on every page */
  position: absolute;
  left: 0;
  width: var(--block-w, 616px);
  top: calc(var(--block-bottom, 60%) + var(--walk-size) * 1.2);
  height: calc(var(--step-size) * 1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-site-mono);
  font-size: calc(var(--step-size) * 0.72);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}


/* STEP 3: the page as it was, under its heading */
/* r69: the title and its line on the left at the heading's y, the two icons on the right, closer together */
.s3 { height: 100%; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.s3-copy { align-self: start; justify-self: start; width: var(--block-w, 100%); min-width: 0; padding-top: var(--head-y); }
.s3-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; --pair-gap: clamp(36px, 2.4vw, 72px); }
.s3-line {
  margin: calc(var(--hl-size) * 0.25) 0 0;
  font-size: clamp(17px, 1.05vw, 26px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--ink-dim);
}
/* r116: the Tools page's body, under the headline: the Forge's overview, in the walk's own body size and ink; hovering (or keyboard-focusing)
   the Forge icon, or the overview itself, turns the whole overview the Forge's colour (the panel's --gold-hot) */
.s3-body {
  margin: calc(var(--hl-size) * 0.55) 0 0;
  max-width: 34em;
  font-size: var(--walk-size);
  line-height: 1.55;
  color: var(--walk-ink);
  text-wrap: pretty;
  transition: color 0.25s ease;
}
.s3-body .term { font-weight: 600; }
.s3-body-forge .term { color: var(--gold-hot); }
.s3-body-command .term { color: var(--accent); }
.s3-indent { display: block; padding-left: 1.6em; margin-top: 0.35em; }   /* r138: the Forge's Badge line, below the opening line and indented (his words) */
.s3-badge { display: none; }   /* m13: the phone's FORTIFIED badge in the Forge paragraph; not on the desktop (the phone block below 1024 shows it) */
.s3-shot { display: none; }    /* m16: the phone's Command Overview picture in the Command paragraph; not on the desktop */
.s3-go-pricing { display: none; }   /* m71: the phone's CONTINUE TO PRICING door at the end of the Tools page; not on the desktop (which has "› Sample The Forge") */
.s3-go { margin: 0.55em 0 0; }   /* r122: the Sample button under each overview; r202: the r198 gap is removed (his word: "remove the gap on sample the Forge"), back to the r122 spacing; the larger text (r198) stays */
.s3-go .next-label { font-size: var(--walk-size); }   /* r198: the button's text takes the line's size (the line above it is --walk-size) */
.s3-body + .s3-body { margin-top: 0.8em; }   /* r119: Command's overview under the Forge's (r125: the one button sits under both) */
.page-tools:has(.half-forge:hover) .s3-body-forge,
.page-tools:has(.half-forge:focus-visible) .s3-body-forge,
.s3-body-forge:hover { color: var(--gold-hot); }
.page-tools:has(.half-command:hover) .s3-body-command,
.page-tools:has(.half-command:focus-visible) .s3-body-command,
.s3-body-command:hover { color: var(--accent); }

/* THE FLOOR: the Doctrine line (b.css .floor / .doctrine, value for value), at B's floor: its slot's bottom (21.5 x z - 21) px
   above the box's bottom, centred on the box */
.floor {
  position: absolute;
  left: 0;
  width: var(--block-w, 100%);   /* r66: under the left block, as the Forge page's .copy column holds it (centred in the block, caption right) */
  bottom: calc(21.5px * var(--z) - 21px);
  display: flex;
  flex-direction: column;
  align-items: safe center;
  justify-content: flex-end;
}
.doctrine {
  margin: 0;
  width: max-content;
  max-width: 100%;
  text-align: center;
  color: var(--doctrine-gold);
  font-size: var(--quote-size);
  line-height: 1.5;
  letter-spacing: 0.012em;
}
.doctrine blockquote { margin: 0; }
.doctrine p { font-weight: 500; text-wrap: balance; }
.doctrine figcaption { margin-top: 0.3em; font-weight: 400; letter-spacing: 0.04em; white-space: nowrap; text-align: right; color: color-mix(in srgb, var(--doctrine-gold) 72%, transparent); }

.pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  column-gap: var(--pair-gap);
  position: relative;
}
/* r146: a small caption at the pair's bottom-right, under the two titles (hidden with the icons on a small screen) */
.pair-note {
  position: absolute; right: 0; top: 100%;
  font-size: clamp(11px, 0.62vw, 15px);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, var(--bg));
  pointer-events: none; user-select: none;
}

/* One half = one hit target: the icon and its name together. */
.half {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: clamp(16px, 1.6vw, 40px);
  padding: clamp(12px, 1.2vw, 28px) clamp(16px, 1.6vw, 40px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  --hot: var(--gold-hot);
  --halo: 255, 217, 102;
}
.half-command { --hot: var(--cyan-hot); --halo: 34, 211, 238; --halo-hot: 103, 232, 249; }
.half-forge { --halo-hot: 255, 230, 173; }

.slot {
  position: relative;
  display: block;
  width: calc(var(--icon) * 224 / 248);
  height: var(--icon);
}
/* ROUND 2: two nested layers, so the float at rest and the hover lift COMPOSE and never reset one another.
   .mark-lift (the outer element) carries everything that responds to the pointer and everything that flies: the hover lift
   (translate), the press (scale), the glow (filter), the float to the centre (is-float, and the FLIP in meet.js).
   .mark (the inner image) carries ONLY the bob, a CSS animation that nothing ever touches: it does not stop, restart or
   jump on hover, on click, through the flight, at the centre, or on close. Offsets add: y = bob + lift. */
.mark-lift {
  position: absolute;
  inset: 0;
  display: block;
  filter: drop-shadow(0 0 0 rgba(var(--halo), 0));
  transition: filter 0.45s ease-out, translate 0.3s var(--ease-out), scale 0.12s ease-out;
}
.mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  /* A slow, short, continuous bob (the owner: "something on their screen, something you want to touch"). 4 s period = 2 s each
     way (alternate), +-6 px, an ease-in-out sine, so it eases at the top and the bottom and never bounces. The two halves are
     180 degrees apart: Command starts half a period in (animation-delay -2s), so one rises as the other sinks. */
  animation: bob var(--bob-d) cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  will-change: transform;
}
.half-command .mark { animation-delay: calc(var(--bob-d) * -1); }
@keyframes bob {
  from { transform: translateY(calc(var(--bob-a) * -1)); }
  to   { transform: translateY(var(--bob-a)); }
}

/* The name: the nav's type, a step larger (weight 500 where the nav is 400, ~1.5vw where the nav is ~0.74vw), in the ink. */
.name {
  position: relative;
  display: block;
  font-size: clamp(18px, 1.5vw, 38px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  transition: translate 0.3s var(--ease-out);
}
/* The light-up is the creed's own: an additive overlay duplicate of the word, opacity only, in the half's colour. */
.name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  color: var(--hot);
  transition: opacity 0.45s ease-out;
}
.half-forge .name::after   { text-shadow: 0 0 14px rgba(255, 217, 102, 0.8), 0 0 40px rgba(255, 217, 102, 0.42); }
.half-command .name::after { text-shadow: 0 0 16px rgba(103, 232, 249, 0.9), 0 0 42px rgba(34, 211, 238, 0.55); }

@media (hover: hover) and (pointer: fine) {
  .half:hover .mark-lift { translate: 0 -4px; filter: drop-shadow(0 0 14px rgba(var(--halo), 0.7)) drop-shadow(0 0 42px rgba(var(--halo), 0.42)); }
  .half:hover .name { translate: 0 -4px; }
  .half:hover .name::after { opacity: 1; }
/* r61 (his word: "when we hover could it stay elevated and not moving"): the bob holds where it is while the pointer or the keyboard is on a half, so the lift reads as a held, raised mark; it resumes from the same phase on leaving (a pause, never a restart, so no jump). */
.half:hover .mark, .half:focus-visible .mark { animation-play-state: paused; }
/* r117 (his word: hovering the Forge's overview text should send the Forge icon gold and frozen, "just like if you hover the icon"): the same three
   hover effects, driven from the overview text (CSS only; meet.js rejoins the released mark on pointerleave exactly as for the icon) */
.page-tools:has(.s3-body-forge:hover) .half-forge .mark-lift { translate: 0 -4px; filter: drop-shadow(0 0 14px rgba(var(--halo), 0.7)) drop-shadow(0 0 42px rgba(var(--halo), 0.42)); }
.page-tools:has(.s3-body-forge:hover) .half-forge .name { translate: 0 -4px; }
.page-tools:has(.s3-body-forge:hover) .half-forge .name::after { opacity: 1; }
.page-tools:has(.s3-body-forge:hover) .half-forge .mark { animation-play-state: paused; }
/* r119: the same for Command's overview and the Command icon */
.page-tools:has(.s3-body-command:hover) .half-command .mark-lift { translate: 0 -4px; filter: drop-shadow(0 0 14px rgba(var(--halo), 0.7)) drop-shadow(0 0 42px rgba(var(--halo), 0.42)); }
.page-tools:has(.s3-body-command:hover) .half-command .name { translate: 0 -4px; }
.page-tools:has(.s3-body-command:hover) .half-command .name::after { opacity: 1; }
.page-tools:has(.s3-body-command:hover) .half-command .mark { animation-play-state: paused; }
/* r94 (his word: when an icon is selected, "keep it frozen ... we dont want it to look like something to click and open anymore"): while a half is open
   BOTH marks stop bobbing, so the open one is still and the pair resumes in step (the phases are paused together, never reset) */
html[data-open="forge"] .half-forge .mark, html[data-open="command"] .half-command .mark { animation-play-state: paused; }
}
.half:focus-visible { outline: none; }
.half:focus-visible .mark-lift { translate: 0 -4px; filter: drop-shadow(0 0 14px rgba(var(--halo), 0.7)) drop-shadow(0 0 42px rgba(var(--halo), 0.42)); }
.half:focus-visible .name { translate: 0 -4px; }
.half:focus-visible .name::after { opacity: 1; }
.half:focus-visible .name { outline: 2px solid var(--accent); outline-offset: 6px; }
.half:active .mark-lift { scale: 0.97; transition-duration: 0.45s, 0.3s, 0.07s; }
.half:active .name::after { opacity: 1; transition-duration: 0.05s; }

/* ================= THE FLOAT ================= */
/* While open, the SAME image element leaves its slot (the slot keeps its box) and sits at the viewport centre, placed by its INK:
   the ink centre is 2 canonical units above the viewBox centre, so the box is nudged down by 2 units to put the ink on the centre. */
.half .mark-lift.is-float {
  position: fixed;
  inset: auto;
  z-index: 60;
  width: calc(var(--fh) * 224 / 248);
  height: var(--fh);
  left: calc(50% - var(--fh) * 224 / 496);
  top: calc(50% - var(--fh) / 2 + 2 * var(--fu));
  translate: none;
  scale: none;
  transition: none;
  pointer-events: none;
}
.half-forge .mark-lift.is-float   { filter: drop-shadow(0 0 14px rgba(255, 217, 102, 0.55)) drop-shadow(0 0 46px rgba(255, 217, 102, 0.3)); }
.half-command .mark-lift.is-float { filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.6)) drop-shadow(0 0 46px rgba(34, 211, 238, 0.32)); }
/* flying home: back in its slot but still above the backdrop until it lands */
.half .mark-lift.is-returning { z-index: 60; translate: none; scale: none; transition: none; pointer-events: none; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 5, 8, 0.84);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-back) ease-out, visibility 0s linear var(--t-back);
}
.is-open .backdrop { opacity: 1; visibility: visible; transition: opacity var(--t-fly) ease-out, visibility 0s; }

/* The panels: fixed layers, click-through (a click on empty space is a click on the backdrop). Their two halves anchor
   to the icon: the title's bottom edge and the write-up's top edge sit --panel-gap off the ink (111 units from the centre). */
.panel {
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.14s ease-out, visibility 0s linear 0.14s;
  --w: 62ch;
}
.panel.is-active { visibility: visible; opacity: 1; transition: opacity 0.22s ease-out 0.06s, visibility 0s; }
.panel-forge   { --tone: var(--gold-hot); --ih: 102; }   /* ink half-height in canonical units: the Forge shield 8..212 */
.panel-command { --tone: var(--accent); --ih: 111.25; } /* Command outline (stroke out, mitre apex) -1.1..221.4 */

.panel-top, .panel-bottom {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  width: min(var(--w), calc(100vw - 40px));
  font-size: var(--copy-size);   /* so 62ch is 62 of THIS size's zeros */
}
.panel-top {
  bottom: calc(50% + var(--ih) * var(--fu) + var(--panel-gap));
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1.6em;
}
.panel-bottom {
  top: calc(50% + var(--ih) * var(--fu) + var(--panel-gap));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}
.panel-title {
  font-size: clamp(24px, 1.7vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  word-spacing: 0.09em;
  line-height: 1.15;
  color: var(--tone);
  text-shadow: 0 0 22px color-mix(in srgb, var(--tone) 35%, transparent);
}
.panel-copy {
  font-size: var(--copy-size);
  font-weight: 400;
  line-height: 1.55;
  /* justified, last line centred: every full line ends on the column's edges, so the X above (its right edge on the
     column's right edge) sits over the text's own right edge, not over the ragged air of a centred paragraph */
  text-align: justify;
  text-align-last: center;
  color: var(--ink);
}
.panel-copy .term { color: var(--tone); font-weight: 600; }   /* r115: the panel's own name inside its write-up, in the panel's tone (the Forge's gold) */
.panel .btn-system { margin-top: var(--btn-gap); }

/* The X, drawn in CSS (two bars), its VISIBLE glyph is the button's box, so the box's right edge is the write-up column's right edge.
   The hit area is larger than the glyph (the ::after), which does not count toward the box. */
.x {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: clamp(20px, 1.4vw, 34px);
  height: clamp(20px, 1.4vw, 34px);
  border: 0;
  cursor: pointer;
  color: var(--ink-dim);
  pointer-events: auto;
  transition: color 0.2s ease, filter 0.3s ease, scale 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
/* two corner-to-corner diagonals, so the glyph's ink reaches the box edge on every side */
.x {
  background:
    linear-gradient(45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px)),
    linear-gradient(-45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px));
}
.x::before { content: ""; position: absolute; inset: -14px; }   /* the hit area: bigger than the glyph, not part of its rect */
.x:hover { color: var(--tone); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tone) 60%, transparent)); }
.x:active { scale: 0.92; }

/* The write-up and the button reveal a beat after the icon sets off. */
.panel .panel-top, .panel .panel-bottom { transition: transform 0.28s var(--ease-out) 0.05s; }
.panel:not(.is-active) .panel-top    { transform: translateY(8px); }
.panel:not(.is-active) .panel-bottom { transform: translateY(-8px); }

/* ---- the button: the home page's .btn-system, copied ---- */
.btn-system {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(48px, 3.3vw, 63px);
  padding: 0 clamp(36px, 2.9vw, 57px);
  color: var(--accent);
  font-size: clamp(14px, 0.9vw, 18px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.055);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-system::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  box-shadow: 0 0 36px 4px rgba(34, 211, 238, 0.42), inset 0 0 26px rgba(34, 211, 238, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.btn-label { position: relative; }
.btn-system:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.1); color: var(--cyan-hot); text-shadow: 0 0 14px rgba(103, 232, 249, 0.75); }
.btn-system:hover::before { opacity: 1; }
.btn-system:active { transform: scale(0.975); background: rgba(34, 211, 238, 0.2); transition-duration: 0.07s; }
.btn-system:active::before { opacity: 1; box-shadow: 0 0 52px 10px rgba(103, 232, 249, 0.6), inset 0 0 34px rgba(103, 232, 249, 0.34); transition-duration: 0.07s; }

.no-anim, .no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

/* ================= BELOW lg: stacked, and the float is a slide-up sheet ================= */
@media (max-width: 1023px) {
  :root { --icon: clamp(140px, 40vw, 220px); --copy-size: 16px; }
  /* m2 (the mobile lane): the phone nav rules that lived here (the wrapping row; --ls 0.8) are RETIRED — home.css carries the one
     shared rule for every page (the bar + the panel behind the three-bar button). */
  .stage { justify-content: flex-start; padding-top: 48px; padding-bottom: 48px; }   /* m6: the first words 48 px under the bar, as on every page */
  /* m6 (his word: the disclosures off the bottom; our own words fill the screen): the fold stays a full screen tall; the Tools page's three
     blocks (the headline, the Forge, Command) spread down it — the first at the top line, the last at the floor */
  .page-tools .centre { flex: 1 1 auto; align-items: stretch; }
  /* gate 1 (walk finding 12): the fold dissolves below 1024 and the stage carries the first-screen height, so header.nav sticks for the whole page (see b.css) */
  body.page-meet .fold { min-height: calc(100dvh - 64px); grid-template-rows: minmax(0, 1fr); }   /* one row, as b.css */   /* sitting 2: as b.css — the bar is fixed, the fold 100dvh less the bar */
  /* m31 (his word: uniform headline spacing): the first line under the headline 18 px below it, on Tools and FAQ as on Pricing and Get Started; the
     centre grid's 32 px row-gap (a tablet rule) no longer pushes the FAQ headline to 144 */
  .page-tools .centre, .page-faq .centre { row-gap: 0; }
  .page-faq .centre { align-items: start; }   /* on a tablet the list is shorter than the screen; it is not centred down it — the headline holds the top line */
  .page-tools .hl { margin-bottom: 0; }
  body.page-tools .s3-body-forge { margin-top: 18px; }
  .page-faq .s1 { row-gap: 0; }
  .page-faq .hl { margin-bottom: 0; }
  body.page-faq .faq-list { margin-top: 5px; }   /* the first question's TEXT 18 px under the headline: its row carries 13 px of its own above the words */
  .page-tools .learn { grid-template-rows: minmax(0, 1fr); }
  .page-tools .learn-stack { grid-template-rows: minmax(0, 1fr); }
  .page-tools .learn-step, .page-tools .s3 { height: 100%; }
  .page-tools .s3-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; }   /* m31: no spread — the page is full of its own content now (the badge, the picture); the blocks follow each other at their own gaps */
  /* m13 (his word, Fri 2026-10-30: "center the main header, center The Forge below the header and put a fortified badge with no empire line and
     no count centered under the forge subtitle"): the Tools page on a phone is centred; the Forge paragraph carries a static FORTIFIED badge
     (the splash crest's own shield, gold line + cyan keep — r102's static form: no glow, no rings, no EMPIRE, no count) under its opening line */
  .page-tools .hl, .page-tools .s3-body { text-align: center; }
  .page-tools .s3-indent { padding-left: 0; }
  /* m14 (his word: "put an Overlay on your screen. under The Forge"): the name on its own line, the dash dropped, the line under it */
  /* m23: the dash is back in the title (was hidden by m14) */
  /* m15 (his word: "an overlay on your screen under the badge"): the paragraph stacks — The Forge · the badge · an Overlay on your screen. · the Badge line */
  .page-tools .s3-body-forge { display: flex; flex-direction: column; align-items: center; }   /* m24 (his word, "i like my original best"): the name · the picture · the title's second half · the description */
  /* m22 (his "lets see it", after the chair's view that a title split across a picture reads as a fragment): the whole title above the picture,
     two lines in its colour, then the picture, then the description — both blocks */
  /* m23 (his word: "we are missing the break though ... with the real site there is the -"): the title is the desktop's own line, whole —
     "The Forge — an Overlay on your screen." — centred above the picture; it fits one line at 390 */
  .page-tools .s3-body-forge .dash { display: none; }
  .page-tools .s3-body-forge .term { order: 1; }
  .page-tools .s3-body-forge .sub { order: 2; margin-top: 0.15em; }   /* m62 (his word "title above"): the title's second half under the name, the picture under both */
  .page-tools .s3-body-forge .s3-badge { order: 3; margin: 18px 0 16px; }
  .page-tools .s3-body-forge .s3-indent { order: 4; }
  /* m16 (his word: "the same thing with Command - center the subtitle, our overview picture centered under that - it will be expandable ... then
     a Dashboard in your browser. under the image"): Command · the Overview picture (tap to expand) · a Dashboard in your browser. · the body */
  .page-tools .s3-body-command { display: flex; flex-direction: column; align-items: center; }
  /* m23: the dash is back in the title (was hidden by m16) */
  .page-tools .s3-body-command .dash { display: none; }
  .page-tools .s3-body-command .term { order: 1; }
  .page-tools .s3-body-command .sub { order: 2; margin-top: 0.15em; }
  .page-tools .s3-body-command .s3-shot { order: 3; display: flex; flex-direction: column; align-items: center; width: 100%; margin: 16px 0 14px; }
  .page-tools .s3-body-command .s3-indent { order: 4; }
  /* m18 (his word: the line under the name "is still a part of the title"): the title's second half, on the far side of the picture, in the title's colour */
  /* m60 (his phone: the Forge body "goes gold" after a scroll — a touch leaves the desktop's r116 hover stuck): no hover colouring below 1024; the body's own ink holds */
  .page-tools:has(.half-forge:hover) .s3-body-forge, .page-tools .s3-body-forge:hover, .page-tools:has(.half-command:hover) .s3-body-command, .page-tools .s3-body-command:hover { color: var(--walk-ink); }
  .page-tools .s3-body-forge .sub { color: var(--gold-hot); }   /* the name's own token (.s3-body-forge .term), never a second gold */
  .page-tools .s3-body-command .sub { color: var(--accent); }
  .page-tools .s3-shot-open { display: block; width: 100%; max-width: 420px; margin: 0; padding: 0; border: 0; background: none; line-height: 0; cursor: zoom-in; }
  .page-tools .s3-shot-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .page-tools .s3-shot-open img { display: block; width: 100%; height: auto; border: 1px solid rgba(34, 211, 238, 0.45); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.14), 0 0 10px 0 rgba(34, 211, 238, 0.12), 0 16px 40px rgba(0, 0, 0, 0.55); }
  /* the expanded picture: over the page, as wide as the window allows (a phone turned sideways gives it the longer edge); a tap, the X or Escape closes */
  .s3-shot-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(2, 3, 6, 0.92); cursor: zoom-out; animation: s3-lb-in 0.18s ease-out both; }
  .s3-shot-lb-img { display: block; max-width: calc(100svw - 24px); max-height: calc(100svh - 24px); width: auto; height: auto; object-fit: contain; border: 1px solid rgba(138, 138, 154, 0.28); }   /* sitting 2 (his phone): sized to the SMALL viewport, so a collapsing toolbar cannot grow it */
  .s3-shot-lb-x { position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; font: inherit; font-size: 16px; color: var(--ink); background: rgba(5, 5, 8, 0.7); border: 1px solid var(--line); cursor: pointer; }
  html.is-shot-open { overflow: hidden; }
  html.is-shot-open body { position: fixed; left: 0; right: 0; overflow: hidden; }   /* sitting 2: the iOS lock — the body pinned at its saved scroll (top set by shot.js), restored on close */
  @keyframes s3-lb-in { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .s3-shot-lb { animation: none; } }
  .page-tools .s3-badge { display: flex; justify-content: center; margin: 22px 0 18px; }
  .page-tools .s3-badge svg { display: block; height: 128px; width: auto; aspect-ratio: 100 / 112; }
  .page-tools .s3-badge .shield-line { stroke: #ffd966; }
  .page-tools .s3-badge .keep { fill: #3de8ff; }
  /* learn-1 below lg: the walk is as tall as its tallest step; the stepper wraps; the arrows sit beside the stepper; step 1
     stacks the words over the document (the reader's frame takes 70% of the window's height) */
  .learn { height: auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; /* r93: the arrow buttons are 44 px here; --arrow is the text-sized one now */ column-gap: 8px; row-gap: 24px; }
  .stepper { position: static; grid-column: 2; grid-row: 1; flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  .page-tools .stepper { grid-column: 1 / -1; } /* r98: the Tools page has no arrows, so its menu starts at the left edge */
  .page-tools .stepper, .page-faq .stepper { display: none; }   /* m6: the stepper is already invisible on these two pages (inline visibility:hidden); below 1024 it takes no row either, so the headline stands at the shared top line */
  .page-tools .learn, .page-faq .learn { grid-template-rows: auto; row-gap: 0; }
  .page-tools .learn-stack, .page-faq .learn-stack { grid-row: 1; }
  .learn-arrow { position: static; translate: none; grid-row: 1; align-self: center; width: 44px; height: 44px; }
  .learn-prev { grid-column: 1; }
  .learn-next { grid-column: 3; }
  .learn-count { display: none; }   /* r76: below 1024 the stacked page has no slot for it yet (desktop first) */
  .learn-stack { position: static; grid-column: 1 / -1; grid-row: 2; }
  .floor { position: static; grid-column: 1 / -1; grid-row: 3; width: auto; }
  .doctrine { width: auto; }
  .doctrine p, .doctrine figcaption { white-space: normal; }
  .s1 { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .s1-copy { width: 100%; }
  .pair-note { display: none; }
  .half .slot { display: none; }   /* r105 (his word: the Tools page too): no icons on a small screen; the two names stay and open the same write-ups */
  /* m3 (his word, Fri 2026-10-30: "no samples on the tools page, no links to the forge or command on mobile"): below 1024 the Tools page
     is the two write-ups only — the pair of names (links to /forge/ and /command/), the "› Sample The Forge" door and its lead line
     "Learn how they work together!" are not shown. The pages are still reachable from the nav panel. */
  .page-tools .s3-stage, .page-tools .s3-go, .page-tools .s3-body-tie { display: none; }
  /* m71–m72 (his words, Sat 2026-10-31: "a Pricing link button at the bottom of the tools page ... it should all flow", then "button" after seeing the Command page's pulsing line beside it): the splash's MEET THE TOOLS button (.btn-system, home.css), CONTINUE TO PRICING, centred 32 px under Command's body */
  .page-tools .s3-go-pricing { display: block; margin: 32px 0 8px; text-align: center; }
  .page-tools .s3-go-pricing .btn-system { display: inline-flex; }
  .s1-stage { display: none; }   /* r104 (his word: on mobile "only the text ... we dont show the forge or reader"): below 1024 the badge and the reader are not shown */
  .hl { white-space: normal; font-size: clamp(26px, 7.4vw, 40px); }
  .pair { flex-direction: column; align-items: flex-start; row-gap: 4px; }
  .half { align-items: flex-start; padding: 10px 0; }
  .s3 { grid-template-columns: minmax(0, 1fr); row-gap: 12px; height: auto; }   /* r105: the Tools page below 1024: the title, its line, then the two names, one column, text only */
  .page-tools .learn-step, .page-tools .learn-stack { height: auto; min-height: 0; }
  .s3-copy { width: 100%; padding-top: 0; }   /* m6: --head-y is the desktop's headline offset; below 1024 the shared top line is the stage's padding */
  .page-faq .s1-copy, .page-faq .faq-col { padding-top: 0; }
  .s3-stage { justify-content: flex-start; align-items: flex-start; }
  .name { font-size: 20px; }
  html.is-open { overflow: hidden; }

  .panel {
    inset: auto 0 0 0;
    max-height: 90dvh;
    overflow-y: auto;
    pointer-events: auto;
    visibility: hidden;
    opacity: 1;
    background: var(--bg-raise);
    border-top: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
    padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform var(--t-back) var(--ease-drawer), visibility 0s linear var(--t-back);
  }
  .panel.is-active { visibility: visible; transform: translateY(0); transition: transform var(--t-fly) var(--ease-drawer), visibility 0s; }
  .panel-top, .panel-bottom { position: relative; left: auto; bottom: auto; top: auto; translate: none; width: 100%; font-size: 16px; }
  .panel-top { justify-content: flex-start; min-height: 36px; padding-right: 48px; }
  .panel-bottom { margin-top: 14px; align-items: stretch; transition: none; }
  .panel .panel-top, .panel .panel-bottom { transition: none; }
  .panel:not(.is-active) .panel-top, .panel:not(.is-active) .panel-bottom { transform: none; }
  .panel-copy { text-align: left; text-align-last: auto; font-size: 16px; line-height: 1.6; }
  .panel-title { font-size: 26px; }
  .x { width: 22px; height: 22px; top: 8px; translate: none; right: 0; }
  .panel .btn-system { width: 100%; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; will-change: auto; }   /* round 2: the marks stay still; the rest is round 1's cross-fade */
  .learn-step, .learn-step.is-current, .drum, .drum.is-current { transition: none; }   /* learn-1: the steps cut (forge.css's reduced-motion rule); r86: the drums too */
  .learn-arrow:active { transform: none; }
  .backdrop, .panel, .panel-top, .panel-bottom, .mark-lift, .name, .name::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .panel.is-active { transition: opacity 0.2s linear, visibility 0s !important; }
  .backdrop { transition: opacity 0.2s linear, visibility 0s linear 0.2s !important; }
  .is-open .backdrop { transition: opacity 0.2s linear, visibility 0s !important; }
  .panel-top, .panel-bottom { transform: none !important; }
}

/* r46 (his word: "is it inexpensive to add our footer from our actual page to our test"): the live compliance footer, CSS copied verbatim
   from the live index.html (FOOTER block, unmodified), so the test shows the page's real bottom. scrollbar-gutter: the page now scrolls on
   a short window, and a scrollbar appearing must not shove the layout left. */
html { scrollbar-gutter: stable; }
/* ================= FOOTER (compliance) ================= */
footer {
  text-align: center;
  padding: 26px 24px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(138,138,154,0.55);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.compliance-footer {
  max-width: 1080px;
  margin: 22px auto;
  text-align: left;
}
.disclosure {
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.disclosure-title {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 700;
  margin-bottom: 6px;
}
.disclosure-more {
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}
.disclosure-more a,
.attribution-line a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: rgba(138,138,154,0.35);
  text-underline-offset: 2px;
}
.disclosure-more a:hover,
.attribution-line a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.attribution {
  max-width: 1080px;
  margin: 0 auto 18px;
  text-align: left;
}
.attribution-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
  margin-bottom: 16px;
  text-align: center;
}
.attribution-label { color: var(--ink-dim); }
.attribution-sep { color: rgba(138,138,154,0.4); }
.platform-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.platform-logo img {
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.platform-logo:hover img { opacity: 1; }
.platform-logo--ninjatrader img { height: 20px; width: auto; }
.platform-logo--kinetick {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease;
}
.platform-logo--kinetick:hover { border-color: rgba(255, 255, 255, 0.18); }
.platform-logo--kinetick img { display: block; height: 52px; width: auto; opacity: 1; }
.attribution-note {
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-dim);
}
.footer-copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(138,138,154,0.14);
}
/* r59: the nav + stage keep the page's full-window grid inside one screen block (.fold), so the footer below adds scroll and takes
   nothing from the stage; the same device as the Forge page's .forge-screen (r46). */
body.page-meet { display: block; }
.page-meet .fold { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
