/* The Works home page, as served from works-landing/index.html until 13 Oct 2026, scoped to the shadow root on /platform/.
   Selectors that targeted html, body and :root now target the shadow host; html classes (js, motion, loading, fine) live on the host. */
:host { display: block; }
.scrollbar { position: fixed; top: 0; bottom: auto; left: 0; z-index: 70; height: 2px; }
/* ==========================================================================
   Outside The Box — design system stylesheet · v1.0 · 12 September 2026
   One file, three layers:
     1. Tokens      — semantic custom properties, dark and light
     2. Foundations — reset, type, grid, the outside column
     3. Components  — web surfaces and application (OTB Works) surfaces
   Rule: components read tokens only. No literal colour or size below layer 1.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:host {
  /* grounds — three layers, never more */
  --ground-0: #0e0e0c;      /* page */
  --ground-1: #16160f;      /* panel, input, raised block */
  --ground-2: #1d1d16;      /* hover on a panel, table row hover */
  --ground-rgb: 14,14,12;   /* for scrims: rgba(var(--ground-rgb), .x) */

  /* inks — three levels of text, one decorative */
  --ink-1: #f0ede4;         /* headings, emphasis, primary text     16.5:1 */
  --ink-2: #8f8c82;         /* body                                  5.7:1 */
  --ink-3: #807d73;         /* meta, captions, timestamps — 4.7:1 on ground-0 only; on a panel meta uses ink-2 */
  --ink-mute: #4a4840;      /* decorative only: rules, dashed gates, disabled outlines. Never text. */

  /* lines */
  --line-1: #262620;        /* hairline */
  --line-2: #4a4840;        /* emphasised rule, dashed gate border */
  --line-ink: #f0ede4;      /* the one heavy rule (table head, timeline) */

  /* the accent — one hue, three jobs */
  --accent: #ff5c1f;        /* fills: button, active chip, the square */
  --accent-text: #ff5c1f;   /* links, kickers — 6.3:1 on ground-0 */
  --accent-press: #e84e14;  /* pressed / active */
  --accent-ink: #0e0e0c;    /* text set on an accent fill — 6.3:1 */

  /* state — semantic, separate from the accent, used as square pips */
  --good: #7cba6d;
  --warn: #e8b64c;
  --bad:  #e0574c;
  --info: #8f8c82;

  /* type */
  --font-sans: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* type scale — display steps are fluid, text steps are fixed */
  --t-display-1: clamp(38px, 5.6vw, 76px);   /* page hero        w600 lh1.02 ls-.035em */
  --t-display-2: clamp(30px, 4.5vw, 58px);   /* band / CTA       w600 lh1.05 ls-.03em  */
  --t-h1: clamp(26px, 3.2vw, 42px);          /* section          w600 lh1.15 ls-.02em  */
  --t-h2: clamp(20px, 2.2vw, 28px);          /* subsection       w600 lh1.2  ls-.5px   */
  --t-h3: 20px;                              /* tile, row        w600 lh1.25 ls-.3px   */
  --t-lede: 17px;                            /* standfirst       w400 lh1.7            */
  --t-body: 16px;                            /* prose            w400 lh1.8            */
  --t-body-sm: 14.5px;                       /* excerpt, cell    w400 lh1.65           */
  --t-ui: 13.5px;                            /* nav, buttons     w500 lh1.3            */
  --t-caption: 12px;                         /* captions         w400 lh1.5            */
  --t-pull: clamp(22px, 2.6vw, 34px);        /* Fraunces 300 i   lh1.45                */
  --t-label: 11px;                           /* mono, ls .15em, uppercase              */
  --t-meta: 11px;                            /* mono, ls .09em, sentence case          */

  /* spacing — 4-based, named by step */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* layout */
  --page-max: 1240px;      /* marketing */
  --prose-max: 680px;      /* running text */
  --article-max: 720px;    /* long-form body */
  --gutter: 48px;          /* page side padding, desktop */
  --gutter-sm: 24px;       /* page side padding, phone */
  --outside: 72px;         /* the outside column: markers live here, beyond the content edge */
  --grid-gap: 24px;

  /* shape */
  --radius-0: 0;           /* everything */
  --radius-1: 3px;         /* floating surfaces only: menus, tooltips, icon tiles */
  --radius-pill: 999px;    /* pills and the theme toggle */

  /* the square — the accent element. Derived from the mark: 28/120 of its width. */
  --sq: 10px;              /* inline marker */
  --sq-lg: 28px;           /* frame corner */

  /* image treatment */
  --img-filter: brightness(.75) saturate(.85);
  --img-filter-hover: brightness(.85) saturate(.95);
  --img-scrim: rgba(var(--ground-rgb), .35);

  /* motion — one curve, four durations */
  --ease-settle: cubic-bezier(.19,.71,.22,1);
  --d-fast: 200ms; --d-base: 250ms; --d-slow: 400ms; --d-reveal: 1150ms;

  /* focus */
  --focus-ring: 0 0 0 2px var(--ground-0), 0 0 0 4px var(--accent);
}

:host([data-theme="light"]) {
  --ground-0: #eaedee; --ground-1: #dfe3e4; --ground-2: #f4f5f5; --ground-rgb: 234,237,238;
  --ink-1: #17191b; --ink-2: #585f63; --ink-3: #60686c; --ink-mute: #b0b6b9;
  --line-1: #cbd1d3; --line-2: #b0b6b9; --line-ink: #17191b;
  --accent: #e84e14;        /* fills darken one step on paper-like grounds — 3.2:1 as a UI colour */
  --accent-text: #b8390a;   /* text and underlines — 4.9:1 on ground-0 */
  --accent-press: #c94210;
  --accent-ink: #17191b;
  --good: #376e2d; --warn: #855e10; --bad: #b3261e; --info: #585f63;  /* deepened so a pill word is 4.5:1 on paper grounds */
  --img-filter: brightness(.95) saturate(.85);
  --img-filter-hover: brightness(1) saturate(.95);
  --focus-ring: 0 0 0 2px var(--ground-0), 0 0 0 4px var(--accent-text);
}

/* the same light palette when nothing is stamped and the reader's system asks for light.
   The two blocks carry identical values and move together; both are generated from tokens.json. */
@media (prefers-color-scheme: light) {
  :host(:not([data-theme="dark"])) {
    --ground-0: #eaedee; --ground-1: #dfe3e4; --ground-2: #f4f5f5; --ground-rgb: 234,237,238;
    --ink-1: #17191b; --ink-2: #585f63; --ink-3: #60686c; --ink-mute: #b0b6b9;
    --line-1: #cbd1d3; --line-2: #b0b6b9; --line-ink: #17191b;
    --accent: #e84e14; --accent-text: #b8390a; --accent-press: #c94210; --accent-ink: #17191b;
    --good: #376e2d; --warn: #855e10; --bad: #b3261e; --info: #585f63;
    --img-filter: brightness(.95) saturate(.85);
    --img-filter-hover: brightness(1) saturate(.95);
    --focus-ring: 0 0 0 2px var(--ground-0), 0 0 0 4px var(--accent-text);
  }
}

/* ---------- 2. FOUNDATIONS ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:host { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:host {
  background: var(--ground-0); color: var(--ink-1);
  font-family: var(--font-sans); font-size: var(--t-body); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background var(--d-slow) ease, color var(--d-slow) ease;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-0); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* type roles */
.display-1 { font-size: var(--t-display-1); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.display-2 { font-size: var(--t-display-2); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.h1 { font-size: var(--t-h1); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.2; letter-spacing: -.5px; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.3px; }
.lede { font-size: var(--t-lede); line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.lede b, .prose b { color: var(--ink-1); font-weight: 500; }
.prose { font-size: var(--t-body); line-height: 1.8; color: var(--ink-2); max-width: var(--prose-max); }
.prose p + p { margin-top: 18px; }
.prose a, .link { color: var(--ink-1); text-decoration: none; border-bottom: 1px solid var(--accent-text); transition: color var(--d-fast); }
.prose a:hover, .link:hover { color: var(--accent-text); }
.small { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); }
.caption { font-size: var(--t-caption); line-height: 1.5; color: var(--ink-3); }
.pull { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: var(--t-pull); line-height: 1.45; color: var(--ink-2); }
.pull em { font-style: italic; color: var(--accent-text); }
.label { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .15em; text-transform: uppercase; color: var(--accent-text); }
.label.quiet { color: var(--ink-3); }
.meta { font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: .09em; color: var(--ink-3); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* the square: the accent element. Use instead of arrows, dots, bars. */
.sq { display: inline-block; width: var(--sq); height: var(--sq); background: var(--accent); vertical-align: middle; }
.sq.good { background: var(--good); } .sq.warn { background: var(--warn); } .sq.bad { background: var(--bad); } .sq.info { background: var(--info); }
.sq.hollow { background: none; border: 1.5px solid currentColor; }

/* page grid with the outside column */
.page { padding-inline: var(--gutter); }
.page > .inner { max-width: var(--page-max); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.outside-grid { display: grid; grid-template-columns: var(--outside) minmax(0, 1fr); gap: 0 var(--grid-gap); align-items: start; }
.outside-grid > .outside { position: sticky; top: 96px; }
.outside-grid > .outside .sq { margin-top: .55em; }
.outside-grid > .outside .meta { display: block; margin-top: var(--s-3); line-height: 1.9; }
@media (max-width: 900px) {
  .page { padding-inline: var(--gutter-sm); }
  .outside-grid { grid-template-columns: 1fr; }
  .outside-grid > .outside { position: static; display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
  .outside-grid > .outside .sq, .outside-grid > .outside .meta { margin: 0; }
}

/* the open frame: a box with one corner missing and the square outside it */
.frame { position: relative; border: 1px solid var(--line-1); }
.frame::before {  /* the gap — paints ground over the top-right corner of the border */
  content: ''; position: absolute; top: -1px; right: -1px; width: calc(var(--sq-lg) + 6px); height: calc(var(--sq-lg) + 6px);
  background: var(--ground-0);
}
.frame::after {   /* the square, outside */
  content: ''; position: absolute; top: calc(-1 * var(--sq-lg) + 8px); right: calc(-1 * var(--sq-lg) + 8px);
  width: var(--sq-lg); height: var(--sq-lg); background: var(--accent);
}
.frame.on-panel::before { background: var(--ground-1); }
.frame > img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.frame-quote { padding: var(--s-6) var(--s-7) var(--s-6) var(--s-6); }
.frame-quote .pull { color: var(--ink-1); }
.frame-quote .meta { margin-top: var(--s-4); display: block; }

/* rules */
.rule { border: 0; border-top: 1px solid var(--line-1); }
.rule.heavy { border-top: 1px solid var(--line-ink); }
.rule.gate { border-top: 1px dashed var(--line-2); }

/* ---------- 3. COMPONENTS — WEB ----------------------------------------- */

/* buttons: three weights, one shape, five states */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); height: 48px; padding: 0 var(--s-6);
  font-size: 14px; font-weight: 500; letter-spacing: -.1px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--radius-0); transition: background var(--d-base), color var(--d-base), border-color var(--d-base); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--ink-1); border-color: var(--ink-1); color: var(--ground-0); }
.btn-primary:active { background: var(--accent-press); border-color: var(--accent-press); color: var(--accent-ink); }
.btn-secondary { background: none; color: var(--ink-1); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-secondary:active { border-color: var(--accent-press); color: var(--accent-press); }
.btn-tertiary { background: none; color: var(--ink-1); padding: 0; height: auto; border: 0; border-bottom: 1px solid var(--accent-text); }
.btn-tertiary:hover { color: var(--accent-text); }
.btn[disabled], .btn.is-disabled { background: none; color: var(--ink-3); border-color: var(--line-1); cursor: not-allowed; pointer-events: none; }
.btn-primary[disabled], .btn-primary.is-disabled { background: var(--ground-1); }
.btn .sq { width: 8px; height: 8px; background: currentColor; }
.btn-sm { height: 36px; padding: 0 var(--s-4); font-size: 13px; }
.btn-lg { height: 56px; padding: 0 var(--s-7); font-size: 15px; }

/* kicker and section head */
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-text); }

/* pills: status words. Border only; colour comes from the state. */
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 10px 4px; border: 1px solid var(--line-1); border-radius: var(--radius-pill); color: var(--ink-2); white-space: nowrap; line-height: 1; }
.pill .sq { width: 6px; height: 6px; }
.pill.now { border-color: var(--accent-text); color: var(--accent-text); }
.pill.done { border-color: var(--good); color: var(--good); }
.pill.doing { border-color: var(--warn); color: var(--warn); }
.pill.blocked { border-color: var(--bad); color: var(--bad); }

/* chips: filters. Square, mono, toggle by fill. */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); background: none;
  border: 1px solid var(--line-1); padding: 9px 16px; cursor: pointer; transition: all var(--d-base); }
.chip:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip[aria-pressed="true"], .chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* tiles: the grid-of-panels. 1px gaps painted by the parent, not borders. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); }
.tile { background: var(--ground-0); padding: var(--s-7) var(--s-6); color: var(--ink-1); text-decoration: none; display: block; transition: background var(--d-slow); }
.tile:hover { background: var(--ground-1); }
.tile .label { display: block; margin-bottom: var(--s-4); }
.tile .h3 { margin-bottom: var(--s-3); transition: color var(--d-slow); }
.tile p { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); }
a.tile:hover .h3 { color: var(--accent-text); }
.tiles.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles, .tiles.n2, .tiles.n4 { grid-template-columns: 1fr; } }

/* stat strip: a number and what it means */
.stat { background: var(--ground-1); padding: var(--s-5) var(--s-5) var(--s-6); }
.stat .n { font-family: var(--font-serif); font-weight: 300; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .n small { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .09em; color: var(--ink-2); margin-left: 6px; }
.stat p { font-size: var(--t-caption); line-height: 1.55; color: var(--ink-2); margin-top: 10px; }

/* definition list rows: number · title · description */
.dlist { border-top: 1px solid var(--line-1); }
.dlist .row { display: grid; grid-template-columns: 90px 1fr 1.6fr; gap: 30px; padding: 36px 0; border-bottom: 1px solid var(--line-1); align-items: baseline; text-decoration: none; color: inherit; }
.dlist .row .meta { font-size: 13px; }
.dlist .row p { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); }
.dlist a.row:hover .h2 { color: var(--accent-text); }
@media (max-width: 900px) { .dlist .row { grid-template-columns: 50px 1fr; } .dlist .row p { grid-column: 2; } }

/* signal list: the square as bullet */
.siglist { list-style: none; max-width: 760px; }
.siglist li { padding: 20px 0 20px 30px; border-bottom: 1px solid var(--line-1); font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); position: relative; }
.siglist li::before { content: ''; position: absolute; left: 0; top: 30px; width: var(--sq); height: var(--sq); background: var(--accent); }
.siglist li b { color: var(--ink-1); font-weight: 500; }

/* table: heavy head rule, hairline rows, mono head */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-body-sm); line-height: 1.55; color: var(--ink-2); }
.table th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  text-align: left; padding: 0 14px 12px 0; border-bottom: 1px solid var(--line-ink); vertical-align: bottom; }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-1); vertical-align: top; }
.table td:first-child { color: var(--ink-1); font-weight: 500; }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table tr:hover td { background: var(--ground-2); }
.table.dense td { padding: 9px 12px 9px 0; }

/* forms */
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.field .hint { display: block; font-size: var(--t-caption); color: var(--ink-3); margin-top: 8px; }
.input, .field input, .field select, .field textarea { width: 100%; height: 48px; background: var(--ground-1); border: 1px solid var(--line-1); color: var(--ink-1);
  font-size: 15px; padding: 0 16px; outline: none; transition: border-color var(--d-base); border-radius: var(--radius-0); }
.field textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-text); box-shadow: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--bad); }
.field.is-invalid .error { display: block; font-size: var(--t-caption); color: var(--bad); margin-top: 8px; }
.field input[disabled] { color: var(--ink-3); background: none; border-style: dashed; cursor: not-allowed; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-body-sm); color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-2); background: var(--ground-1); flex: 0 0 auto; margin-top: 2px; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--ground-1); }

/* callouts: the dashed box is a decision; the solid box is a fact */
.callout { border: 1px solid var(--line-1); padding: var(--s-5) var(--s-6); }
.callout .label { display: block; margin-bottom: var(--s-2); }
.callout p { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); }
.callout.gate { border-style: dashed; border-color: var(--line-2); }
.callout.gate .label { color: var(--ink-1); }
.callout.gate .label::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* timeline: heavy rule with accent ticks */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); gap: 0 32px; }
.timeline > div { padding-top: 26px; position: relative; }
.timeline > div::before { content: ''; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--accent); }
.timeline .h3 { margin: 12px 0 10px; }
.timeline p { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 34px 0; border-top: 0; } .timeline > div { border-top: 1px solid var(--line-ink); } }

/* navigation */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); border-bottom: 1px solid var(--line-1); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-1); }
.brand svg { width: 30px; height: 28px; }
.brand .name { font-size: 15px; font-weight: 600; letter-spacing: -.3px; line-height: 1.1; }
.brand .name small { display: block; font-size: 9px; font-weight: 400; letter-spacing: .25em; color: var(--ink-2); }
.nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav a { font-size: 13px; color: var(--ink-1); text-decoration: none; opacity: .75; transition: opacity var(--d-fast); }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; border-bottom: 1px solid var(--accent-text); padding-bottom: 3px; }
.nav a.hot { opacity: 1; color: var(--accent-text); }
@media (max-width: 900px) {  /* the list drops under the brand as a full-width sheet */
  .nav { flex-wrap: wrap; padding-inline: var(--gutter-sm); }
  .nav ul { order: 3; width: 100%; flex-wrap: wrap; gap: var(--s-4) var(--s-5); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-1); }
}
.theme-toggle { background: none; border: 1px solid var(--line-1); color: var(--ink-1); width: 34px; height: 34px; border-radius: var(--radius-pill); cursor: pointer; display: grid; place-items: center; transition: all var(--d-base); }
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* icon tile (mega-menu item) */
.icon-tile { width: 38px; height: 38px; border: 1px solid var(--line-1); border-radius: var(--radius-1); display: grid; place-items: center; color: var(--ink-1); transition: border-color var(--d-fast), color var(--d-fast); }
.icon-tile svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a:hover > .icon-tile { border-color: var(--accent-text); color: var(--accent-text); }

/* icons */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; stroke-width: 1.8; }

/* post listing row */
.post { display: grid; grid-template-columns: 264px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line-1); text-decoration: none; color: inherit; align-items: start; }
.post .thumb { aspect-ratio: 3 / 2; background: var(--ground-1); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: transform .6s var(--ease-settle), filter var(--d-slow); }
.post:hover .thumb img { transform: scale(1.06); filter: var(--img-filter-hover); }
.post .tags { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.post .cat { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--line-1); padding: 4px 10px; }
.post .h2 { transition: color var(--d-slow); }
.post:hover .h2 { color: var(--accent-text); }
.post .excerpt { font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); margin-top: 12px; max-width: 620px; }
@media (max-width: 900px) { .post { grid-template-columns: 1fr; gap: 16px; } .post .thumb { aspect-ratio: 16 / 9; } }

/* CTA band and endline */
.cta-band { padding: var(--s-10) var(--gutter); border-top: 1px solid var(--line-1); }
.cta-band .inner { max-width: var(--page-max); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band .display-2 { max-width: 640px; }
.cta-band .display-2 em { font-style: normal; color: var(--accent-text); }

/* toast */
.toast { display: inline-flex; align-items: center; gap: 12px; background: var(--ground-1); border: 1px solid var(--line-1); border-left: 3px solid var(--good); padding: 12px 16px; font-size: var(--t-body-sm); color: var(--ink-1); }
.toast.warn { border-left-color: var(--warn); } .toast.bad { border-left-color: var(--bad); }

/* reveal: the one page-load motion. Starts visible if JS never runs. */
.reveal-root { perspective: 900px; }
:host(.js) .reveal { opacity: 0; transform: rotateX(-55deg) translateY(64px); transform-origin: 50% 0; transition: transform var(--d-reveal) var(--ease-settle), opacity .9s ease; }
:host(.js) .reveal.in { opacity: 1; transform: none; }

/* ---------- 3b. COMPONENTS — APPLICATION (OTB Works) -------------------- */
/* Density is tighter, the type is smaller, the state pips do the talking. */
.app { font-size: 13.5px; line-height: 1.5; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 560px; border: 1px solid var(--line-1); background: var(--ground-0); }
.app-side { border-right: 1px solid var(--line-1); padding: var(--s-4) 0; display: flex; flex-direction: column; }
.app-side .brand { padding: 4px var(--s-4) var(--s-4); }
.app-side .brand svg { width: 22px; height: 20px; }
.app-side .brand .name { font-size: 13px; }
.app-side .brand .name small { font-size: 8px; }
.app-side .group { padding: var(--s-3) var(--s-4) 4px; }
.app-side .group .label { font-size: 9.5px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 8px var(--s-4); color: var(--ink-2); text-decoration: none; font-size: 13.5px; border-left: 2px solid transparent; }
.app-side a:hover { color: var(--ink-1); background: var(--ground-1); }
.app-side a[aria-current="page"] { color: var(--ink-1); border-left-color: var(--accent); background: var(--ground-1); }
.app-side a .icon { width: 16px; height: 16px; }
.app-side .foot { margin-top: auto; padding: var(--s-4); border-top: 1px solid var(--line-1); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 10px var(--s-5); border-bottom: 1px solid var(--line-1); }
.app-top .crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.app-top .crumbs b { color: var(--ink-1); font-weight: 500; }
.app-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.app-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.app-h .h2 { letter-spacing: -.3px; }
.classification { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 5px; background: var(--ground-1); color: var(--ink-1); border-bottom: 1px solid var(--line-1); }
.classification::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* KPI tile */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); }
.kpi { background: var(--ground-0); padding: 14px 16px 16px; }
.kpi .label { font-size: 9.5px; display: block; margin-bottom: 8px; color: var(--ink-3); }
.kpi .n { font-family: var(--font-serif); font-weight: 300; font-size: 26px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .delta { font-family: var(--font-mono); font-size: 10.5px; margin-top: 8px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .delta .sq { width: 6px; height: 6px; }

/* filter bar */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar .input { height: 36px; font-size: 13px; width: 240px; }
.filter-bar .chip { padding: 8px 12px; font-size: 10px; }
.filter-bar .grow { flex: 1; }

/* data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-ink); white-space: nowrap; }
.dtable th[aria-sort] { color: var(--ink-1); }
.dtable th[aria-sort]::after { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-left: 8px; vertical-align: 1px; }
.dtable td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-1); color: var(--ink-2); vertical-align: middle; }
.dtable td:first-child { color: var(--ink-1); font-weight: 500; }
.dtable td.num, .dtable th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable tr:hover td { background: var(--ground-2); }
.dtable tr[aria-selected="true"] td { background: var(--ground-1); }
.dtable tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status .sq { width: 7px; height: 7px; }

/* evidence card */
.evidence { border: 1px solid var(--line-1); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.evidence .meta { grid-column: 1 / -1; }
.evidence .h3 { font-size: 15px; letter-spacing: -.2px; }
.evidence p:not(.h3) { font-size: 13px; color: var(--ink-2); grid-column: 1 / -1; }

/* empty / loading / error states — every list has all three */
.state { border: 1px dashed var(--line-2); padding: var(--s-7) var(--s-5); text-align: left; max-width: 520px; }
.state .h3 { margin-bottom: 8px; }
.state p { font-size: 13.5px; color: var(--ink-2); margin-bottom: var(--s-4); }
.state.error { border-style: solid; border-color: var(--bad); }
.skeleton { display: block; height: 12px; background: linear-gradient(90deg, var(--ground-1) 25%, var(--ground-2) 50%, var(--ground-1) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* drawer */
.drawer { border-left: 1px solid var(--line-1); background: var(--ground-1); padding: var(--s-5); width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: var(--s-4); }
.drawer .head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.drawer .kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; }
.drawer .kv dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.drawer .kv dd { color: var(--ink-1); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; } .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  :host(.js) .reveal { opacity: 1; transform: none; }
}

/* ---------- 3c. COMPONENTS — WEB, added in 1.1 --------------------------- */
/* tabs */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line-1); }
.tab { background: none; border: 0; border-bottom: 1px solid transparent; padding: 10px 0 12px; margin-bottom: -1px; font-size: var(--t-ui); font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color var(--d-fast), border-color var(--d-fast); }
.tab:hover { color: var(--ink-1); }
.tab[aria-selected="true"] { color: var(--ink-1); border-bottom-color: var(--accent-text); }

/* accordion */
.acc { border-bottom: 1px solid var(--line-1); }
.acc summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; font-size: 16px; font-weight: 500; color: var(--ink-1); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border: 1.5px solid var(--accent-text); position: relative; top: -1px; transition: background var(--d-fast); }
.acc[open] summary::before { background: var(--accent); border-color: var(--accent); }
.acc > p, .acc > .code { margin: 0 0 18px 22px; font-size: var(--t-body-sm); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.acc > .code { max-width: none; }

/* pagination */
.pager { display: flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 12px; }
.pager a { min-width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0 10px; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; transition: color var(--d-fast), border-color var(--d-fast); }
.pager a:hover { color: var(--ink-1); border-color: var(--line-2); }
.pager a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.pager .pager-gap { color: var(--ink-3); padding: 0 4px; }
.pager .pager-prev, .pager .pager-next { letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }

/* tooltip */
.tip { position: relative; border-bottom: 1px dotted var(--ink-3); cursor: help; }
.tip-box { position: absolute; left: 0; top: calc(100% + 8px); z-index: 10; width: max-content; max-width: 36ch; background: var(--ground-1); border: 1px solid var(--line-1); padding: 10px 12px; font-size: var(--t-body-sm); line-height: 1.5; color: var(--ink-1); opacity: 0; visibility: hidden; transition: opacity var(--d-fast) 150ms, visibility 0s 300ms; }
.tip:hover .tip-box, .tip:focus-visible .tip-box, .tip:focus-within .tip-box { opacity: 1; visibility: visible; transition-delay: 150ms, 0s; }

/* dialog */
.dialog-scrim { background: rgba(var(--ground-rgb), .55); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
.dialog { width: 420px; max-width: 100%; background: var(--ground-0); border: 1px solid var(--line-1); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 14px; }

/* mega-menu */
.mega-panel { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); background: var(--ground-1); border: 1px solid var(--line-1); border-radius: var(--radius-1); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); max-width: calc(100vw - 32px); }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 4px 28px; }
.mega-item { display: flex; gap: 14px; align-items: flex-start; padding: 11px 12px; border-radius: var(--radius-1); text-decoration: none; color: var(--ink-1); transition: background var(--d-fast); }
.mega-item:hover { background: var(--ground-0); }
.mega-item b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.mega-item small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.mega-sub { display: flex; gap: 20px; margin-top: 12px; padding: 13px 12px 0; border-top: 1px solid var(--line-1); flex-wrap: wrap; align-items: baseline; }
.mega-sub a { font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.mega-sub a:hover { color: var(--accent-text); }
@media (max-width: 900px) { .mega-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line-1); padding: 70px var(--gutter) 44px; }
.foot-grid { max-width: var(--page-max); margin: 0 auto 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.fg-brand svg { color: var(--ink-1); }
.fg-brand p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 14px; max-width: 250px; }
.fg-brand a { color: var(--ink-1); text-decoration: none; border-bottom: 1px solid var(--accent-text); }
.foot-grid .label { display: block; margin-bottom: 14px; }
a.fg-link { display: block; font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 5px 0; transition: color var(--d-fast); }
a.fg-link:hover { color: var(--accent-text); }
.foot-meta { max-width: var(--page-max); margin: 0 auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; gap: 16px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .fg-brand { grid-column: 1 / -1; } }

/* skip link */
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-size: 13px; z-index: 100; }
.skip:focus { top: 16px; }

/* chart chrome — the tokens a chart reads; series colours are literal hex on purpose (validated set) */
:host { --viz-grid: var(--line-1); --viz-axis: var(--line-2); --viz-ink: var(--ink-1); --viz-ink-2: var(--ink-2); --viz-label: var(--ink-3); }


/* Layout concept: the OTB outside column runs the whole page; one product screen sits in the open-corner frame,
   the visitor scrolls through it, then pulls back from it into the room where the pack is read. */
:host { background: var(--ground-0); }
:host { overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page > .inner { position: relative; }
.display-1, .display-2, .h1 { color: var(--ink-1); }
.display-2 em, .display-1 em { font-style: normal; color: var(--accent-text); }

/* nav */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 18px var(--gutter); padding-top: calc(18px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid transparent; transition: background var(--d-slow), border-color var(--d-slow); }
.topnav.scrolled { background: rgba(var(--ground-rgb), .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: var(--line-1); }
.topnav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
.topnav ul a { font-size: 13px; color: var(--ink-1); text-decoration: none; opacity: .75; transition: opacity var(--d-fast), color var(--d-fast); }
.topnav ul a:hover { opacity: 1; color: var(--accent-text); }
.topnav .right { display: flex; align-items: center; gap: var(--s-5); }
.topnav .right .btn-sm { height: 40px; padding: 0 var(--s-5); font-size: 13.5px; }
.topnav ul a { opacity: .85; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
:host([data-theme="light"]) .theme-toggle .sun { display: block; } :host([data-theme="light"]) .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) { :host(:not([data-theme="dark"])) .theme-toggle .sun { display: block; } :host(:not([data-theme="dark"])) .theme-toggle .moon { display: none; } }
.scrollbar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .scrollbar { animation: sb linear both; animation-timeline: scroll(root); } @keyframes sb { from { transform: scaleX(0) } to { transform: scaleX(1) } } }
.topnav .short { display: none; }
.topnav .btn { white-space: nowrap; }
@media (max-width: 600px) { .hero .kicker .k2 { display: none; } .topnav .right .btn-sm { height: 36px; padding: 0 var(--s-3); font-size: 12.5px; } }
@media (max-width: 900px) { .topnav ul { display: none; } .topnav { padding-inline: var(--gutter-sm); } .brand .name small { display: none; } .brand .name { white-space: nowrap; } .topnav .long { display: none; } .topnav .short { display: inline; } .topnav .right { gap: var(--s-4); } }

/* loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ground-0); display: grid; place-items: center; pointer-events: none; }
.loader .l-mark { width: 92px; height: 84px; }
.loader .l-box { fill: none; stroke: var(--ink-1); stroke-width: 7; stroke-linecap: square; stroke-dasharray: 212; stroke-dashoffset: 212; }
.loader .l-sq { opacity: 0; transform-origin: 92px 22px; }
.loader .l-word { margin-top: 20px; text-align: center; opacity: 0; }
:host(.motion.loading) .loader .l-box { animation: lbox .9s .15s var(--ease-settle) forwards; }
:host(.motion.loading) .loader .l-sq { animation: lsq .45s .95s cubic-bezier(.2,.7,.3,1.3) forwards; }
:host(.motion.loading) .loader .l-word { animation: lfade .5s 1.2s forwards; }
:host(.motion) .loader { animation: lout .5s 1.35s var(--ease-settle) forwards; }
:host(:not(.motion)) .loader { display: none; }
@keyframes lbox { to { stroke-dashoffset: 0; } }
@keyframes lsq { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }
@keyframes lfade { to { opacity: 1; } }
@keyframes lout { to { opacity: 0; visibility: hidden; } }

/* hero */
.hero { position: relative; isolation: isolate; z-index: 2; min-height: 100svh; padding-bottom: 150px; display: flex; align-items: flex-end;  overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: 0; }
.hero-img { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.03); transition: transform .9s var(--ease-settle); }
.hero-img video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: brightness(.82) saturate(.9); will-change: transform; transform: scale(1.04); display: block; }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--ground-0) 4%, rgba(var(--ground-rgb), .62) 38%, rgba(var(--ground-rgb), .12) 70%, rgba(var(--ground-rgb), .55) 100%); }
/* the hero is always dark: the footage is dusk, so the light theme starts below it */
.hero, .topnav:not(.scrolled) { --ground-0: #0e0e0c; --ground-1: #16160f; --ground-rgb: 14,14,12; --ink-1: #f0ede4; --ink-2: #b9b5aa; --ink-3: #8f8c82; --line-1: #3a3a32; --line-2: #4a4840; --accent: #ff5c1f; --accent-text: #ff5c1f; --accent-ink: #0e0e0c; color-scheme: dark; }
.hero { background: #0e0e0c; color: var(--ink-1); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-1); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.scroll-cue b { position: relative; width: 1px; height: 54px; background: rgba(240, 237, 228, .35); overflow: hidden; display: block; }
.scroll-cue b::after { content: ''; position: absolute; left: -3px; top: -8px; width: 7px; height: 7px; background: var(--accent); animation: dripcue 1.8s var(--ease-settle) infinite; }
@keyframes dripcue { to { top: 54px; } }
.scroll-cue:hover { color: var(--accent-text); }
@media (max-width: 600px) { .scroll-cue { font-size: 10.5px; white-space: normal; width: calc(100% - 48px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue b::after, .stepper li.cue b::after { animation: none; top: 22px; } }
.hero .page { position: relative; z-index: 1; width: 100%; padding-top: 120px; }
.hero .kicker { display: block; margin-bottom: var(--s-6); }
.hero .display-1 { max-width: 12ch; font-size: clamp(44px, 7.4vw, 112px); }
.hero .display-1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero .display-1 .ln > span { display: inline-block; }
.hero .foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: end; margin-top: var(--s-7); }
.hero .lede { max-width: 30em; }
.hero .actions { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; justify-self: end; }
.hud { display: flex; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line-1); }
.hud .meta { color: var(--ink-2); }
.hud .meta::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--ink-3); margin-right: 10px; vertical-align: 1px; }
.hud .meta.cue::before { display: none; }
@media (max-width: 900px) { .hero .foot { grid-template-columns: 1fr; } .hero .actions { justify-self: start; } .hero .display-1 { max-width: 10ch; } }

/* hero entrance (motion only) */
:host(.motion) .hero .kicker, :host(.motion) .hero .foot, :host(.motion) .scroll-cue { opacity: 0; animation: lfade .9s var(--ease-settle) forwards; }
:host(.motion) .hero .kicker { animation-delay: 1.6s; } :host(.motion) .hero .foot { animation-delay: 2.3s; } :host(.motion) .scroll-cue { animation-delay: 2.6s; }
:host(.motion) .hero .display-1 .ln > span { transform: translateY(110%); animation: up 1s var(--ease-settle) forwards; }
:host(.motion) .hero .display-1 .ln:nth-child(1) > span { animation-delay: 1.65s; } :host(.motion) .hero .display-1 .ln:nth-child(2) > span { animation-delay: 1.8s; } :host(.motion) .hero .display-1 .ln:nth-child(3) > span { animation-delay: 1.95s; }
@keyframes up { to { transform: none; } }

/* sections */
.sec { padding-block: clamp(96px, 12vh, 160px) 0; }
.sec .outside .meta { color: var(--ink-3); }
.sec-head { max-width: 980px; }
.sec-head .display-2 { margin-top: var(--s-4); }
.sec-head .lede { margin-top: var(--s-5); }

/* thesis: words light as the reader passes */
.thesis .display-2 { font-size: clamp(30px, 4.2vw, 56px); max-width: 22ch; }
.thesis .w { opacity: .18; transition: opacity var(--d-slow) ease; }
.thesis .w.lit { opacity: 1; }
:host(:not(.motion)) .thesis .w { opacity: 1; }
.thesis .pull { margin-top: var(--s-7); max-width: 30em; }
.thesis .pull .meta { display: block; margin-top: var(--s-4); font-style: normal; }

/* the stage */
.stage { position: relative; margin-top: clamp(64px, 10vh, 120px); z-index: 1; isolation: isolate; background: var(--ground-0); }
.thesis { position: relative; z-index: 2; background: var(--ground-0); }
.stage-pin { position: relative; min-height: 100svh; overflow: hidden; }
.stage-inner { position: relative; z-index: 2; max-width: none; margin-inline: auto; padding-inline: var(--gutter); min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.stepper { position: absolute; z-index: 4; top: calc(88px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); transition: color var(--d-base); }
.stepper li + li:not(.cue)::before { content: ''; width: clamp(18px, 3vw, 48px); height: 1px; background: var(--line-2); margin: 0 14px; }
.stepper li i { width: 10px; height: 10px; border: 1.5px solid var(--line-2); display: block; transition: background var(--d-base), border-color var(--d-base); }
.stepper li .n { color: var(--ink-3); }
.stepper li.done { color: var(--ink-2); } .stepper li.done i { background: var(--ink-3); border-color: var(--ink-3); }
.stepper li.on { color: var(--ink-1); } .stepper li.on i { background: var(--accent); border-color: var(--accent); } .stepper li.on .n { color: var(--accent-text); }
.stepper li.cue { margin-left: clamp(18px, 3vw, 40px); padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--line-1); color: var(--ink-1); gap: 10px; }
.stepper li.cue b { position: relative; width: 1px; height: 22px; background: var(--line-2); overflow: hidden; display: block; }
.stepper li.cue b::after { content: ''; position: absolute; left: -2px; top: -6px; width: 5px; height: 5px; background: var(--accent); animation: drip 1.6s var(--ease-settle) infinite; }
@keyframes drip { to { top: 22px; } }
:host(:not(.motion)) .stepper { display: none; }
@media (max-width: 900px) { .stepper { font-size: 10.5px; top: calc(76px + env(safe-area-inset-top, 0px)); } .stepper li:not(.on) .w, .stepper li .n { display: none; } .stepper li + li:not(.cue)::before { width: 12px; margin: 0 8px; } .stepper li.cue { display: none; } }
.scenes { position: relative; min-height: 100svh; display: grid; align-items: center; perspective: 1800px; --sw: min(68vw, calc((100svh - 340px) * 1.6), 1240px); padding-top: 56px; }
.tilt { transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s var(--ease-settle); transform-style: preserve-3d; will-change: transform; }
.tilt.still { transform: none; transition: none; }
.scene { margin: 0; display: grid; grid-template-columns: var(--sw); justify-content: center; row-gap: var(--s-5); align-items: start; grid-area: 1 / 1; }
.scene .cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s-2) var(--s-7); align-items: start; }
.scene .cap .meta { grid-column: 1 / -1; display: block; font-family: var(--font-sans); letter-spacing: 0; }
.scene .cap .h1 { font-size: clamp(22px, 2.2vw, 32px); margin: 0; }
.scene .cap .small { max-width: none; }
.scene .cap-fact { display: none; }
.stage-frame { margin-right: calc(var(--sq-lg) - 8px); margin-top: calc(var(--sq-lg) - 8px); }
:host(.motion) .scene .cap .meta { display: none; }
.stage-frame.on-ground::before { background: var(--ground-0); }
.stage-frame .screen { width: 100%; aspect-ratio: 16 / 10; }
:host(.motion) .scene { opacity: 0; visibility: hidden; will-change: transform; }
:host(.motion) .scene.is-on { visibility: visible; }
:host(.motion) .scene-5.pullback .stage-frame { z-index: 5; position: relative; }
:host(.motion) .scene-5.pullback .cap { pointer-events: none; }
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: 1fr; align-content: center; }
  .scenes { --sw: 100%; }
  .scene { grid-template-columns: 1fr; row-gap: var(--s-4); align-content: center; }
  .scene .cap { grid-template-columns: 1fr; gap: var(--s-2); }
  .scene .cap .h1 { font-size: 21px; } .scene .cap .small { font-size: 14px; }
}

/* the room: a photograph, the product screen mapped onto its wall display */
.room { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; visibility: hidden; }
.room-photo { position: absolute; inset: 0; opacity: 0; transform-origin: 0 0; will-change: transform, opacity; --mx: 50%; --my: 50%; --r: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) * .55), transparent var(--r)); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) * .55), transparent var(--r)); }
:host(:not(.motion)) .room-photo { -webkit-mask-image: none; mask-image: none; }
.room-photo img { position: absolute; left: 0; top: 0; width: 1920px; height: 1077px; max-width: none; transform-origin: 0 0; filter: brightness(var(--br, .62)) saturate(.85) blur(var(--bl, 0px)); }
:host([data-theme="light"]) .room-photo img { filter: brightness(calc(var(--br, .62) + .3)) saturate(.85) blur(var(--bl, 0px)); }
@media (prefers-color-scheme: light) { :host(:not([data-theme="dark"])) .room-photo img { filter: brightness(calc(var(--br, .62) + .3)) saturate(.85) blur(var(--bl, 0px)); } }
.room-glow { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; border-radius: 50%; box-shadow: 0 0 120px 70px rgba(240, 237, 228, .13); transform-origin: 0 0; }
.room-scrim { position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none; background: linear-gradient(to top, rgba(14,14,12,.82) 0%, rgba(14,14,12,.45) 32%, rgba(14,14,12,0) 58%), linear-gradient(to right, rgba(14,14,12,.55) 0%, rgba(14,14,12,0) 45%); }
:host(:not(.motion)) .room-scrim { opacity: 1; }
.room-cap { position: absolute; left: var(--gutter); bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 6; width: calc(40% - var(--gutter)); max-width: 480px; opacity: 0; }
.room-cap .display-2 { font-size: clamp(24px, 2.8vw, 42px); color: #f0ede4; }  /* on the photograph in both themes, as the mega-card text is */
.room-cap .small { margin-top: var(--s-4); max-width: 46ch; color: rgba(240, 237, 228, .82); }
.room-cap .meta { display: block; margin-bottom: var(--s-3); color: #ff5c1f; }
.room-credit { position: absolute; right: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6; opacity: 0; color: rgba(240, 237, 228, .6); }
:host(.motion) .stage-frame.landing { border-color: transparent; }
:host(.motion) .stage-frame.landing .screen { filter: brightness(.9); }
:host(.motion) .stage-frame.landing::before, :host(.motion) .stage-frame.landing::after { opacity: 0; }
.stage-frame::before, .stage-frame::after { transition: opacity .25s ease; }
.stage-frame { transition: border-color .25s ease; }
:host(.motion) .stage-frame.landing { transform-origin: 0 0; }
@media (max-width: 1100px) { .room-cap { left: var(--gutter-sm); right: var(--gutter-sm); width: auto; max-width: 520px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } .room-credit { right: auto; left: var(--gutter-sm); bottom: auto; top: calc(84px + env(safe-area-inset-top, 0px)); } }

/* static mode: scenes stack, the room is a figure */
:host(:not(.motion)) .stage-pin { min-height: 0; }
:host(:not(.motion)) .stage-inner { min-height: 0; align-items: start; padding-top: var(--s-6); }
:host(:not(.motion)) .scenes { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: clamp(64px, 9vw, 120px); }

:host(:not(.motion)) .room { position: relative; inset: auto; visibility: visible; height: min(72vh, 640px); margin-top: clamp(64px, 9vw, 120px); pointer-events: auto; }
:host(:not(.motion)) .room-photo, :host(:not(.motion)) .room-credit { opacity: 1; }
:host(:not(.motion)) .room-cap { opacity: 1; }
:host(:not(.motion)) .room .slot { position: absolute; left: 0; top: 0; z-index: 5; transform-origin: 0 0; container-type: inline-size; }
:host(:not(.motion)) .room .slot .screen { aspect-ratio: 16 / 10; }

/* band photograph */
.band { position: relative; height: 62vh; min-height: 420px; overflow: hidden; margin-top: clamp(96px, 12vh, 160px); }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; filter: brightness(.5) saturate(.9); will-change: transform; }
:host([data-theme="light"]) .band img { filter: brightness(.9) saturate(.85); }
@media (prefers-color-scheme: light) { :host(:not([data-theme="dark"])) .band img { filter: brightness(.9) saturate(.85); } }
.band::before { content: ''; position: absolute; inset: 0; background: var(--img-scrim); z-index: 1; }
.band .inner { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.band .pull { color: var(--ink-1); font-size: clamp(24px, 3.4vw, 44px); max-width: 24em; }
.band .pull em { color: var(--accent-text); }
.band .tag { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; }
@media (max-width: 900px) { .band .inner, .band .tag { padding-inline: var(--gutter-sm); right: 0; } .band .tag { right: var(--gutter-sm); } }

/* where it runs */
.runs .sec-head .lede + .lede { margin-top: var(--s-4); }

/* what it does, how to get it */
.platform-link { margin-top: var(--s-6); }
.editions { margin-top: var(--s-7); }
.editions .tile .h3 { display: block; }
.editions .tile p { margin-top: var(--s-2); }
.buy-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-7); border-top: 1px solid var(--line-1); padding-top: var(--s-6); }
.buy-notes .h3 { display: block; margin-bottom: var(--s-3); }
.buy-notes .small { color: var(--ink-2); }
@media (max-width: 900px) { .buy-notes { grid-template-columns: 1fr; } }

/* talk */
.talk { padding-bottom: clamp(96px, 12vh, 160px); }
.talk .display-2 { font-size: clamp(36px, 6.4vw, 92px); letter-spacing: -.04em; line-height: .98; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.field.is-invalid select { border-color: var(--bad); }
.field .error { display: none; }
.field.is-invalid .error { display: block; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field .check { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: var(--t-body-sm); color: var(--ink-2); margin-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { border: 1px solid var(--bad); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); font-size: var(--t-body-sm); color: var(--ink-1); }
.summary ul { margin: 8px 0 0 18px; color: var(--ink-2); }
.summary a { color: var(--ink-1); border-bottom: 1px solid var(--bad); text-decoration: none; }
.sent { padding: var(--s-5) 0; }
.sent .h2 { margin-bottom: var(--s-3); }
.sent .small code, .note code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-1); user-select: all; }
.sent .copy, .note .copy { font: inherit; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid var(--line-1); color: var(--ink-2); padding: 6px 10px; margin-left: 10px; cursor: pointer; }
.sent .copy:hover, .note .copy:hover { border-color: var(--accent-text); color: var(--accent-text); }
.talk .actions { margin-top: var(--s-6); display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }
.talk .note { margin-top: var(--s-6); display: flex; gap: var(--s-4) var(--s-6); flex-wrap: wrap; align-items: center; }
.form-foot { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.form-foot .hint { font-size: var(--t-caption); color: var(--ink-3); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* footer tweaks */
.site-footer .fg-brand svg { width: 34px; height: 31px; }
.site-footer .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* reveal (the one page motion, from otb.css) — IntersectionObserver adds .in */

/* ---------------------------------------------------------------- the product screens (Works, light-first) */
.stage-frame, .room .slot { container-type: inline-size; }
.screen { position: relative; width: 100%; background: #ffffff; color: #171c29; overflow: hidden; display: flex; flex-direction: column;
  font-family: var(--font-sans); --wa: #e84e14; --wat: #b8390a; --wi: #171c29; --wi2: #5b6474; --wi3: #5f6b7a; --wl: #dde3ea; --wl2: #c3ccd6; --wp: #f3f5f8; --wp2: #e9edf2; --wgood: #376e2d; --wwarn: #855e10; --wbad: #b3261e; }
.screen { font-size: 1.62cqw; line-height: 1.45; }
.screen .bar { display: flex; align-items: center; gap: 1.2em; height: 3.4em; padding: 0 1em; border-bottom: 1px solid var(--wl); background: var(--wp); flex: none; }
.screen .btile { width: 1.9em; height: 1.9em; display: grid; place-items: center; color: var(--wi); }
.screen .btile svg { width: 1.3em; height: 1.2em; }
.screen .ws { display: flex; gap: 1.4em; font-size: .9em; font-weight: 500; color: var(--wi2); }
.screen .ws .on { color: var(--wi); box-shadow: inset 0 -2px 0 var(--wa); padding-bottom: .2em; }
.screen .spill { margin-left: auto; font-family: var(--font-mono); font-size: .72em; letter-spacing: .08em; color: var(--wi2); border: 1px solid var(--wl2); padding: .3em .7em; border-radius: 999px; }
.screen .av { width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid var(--wl2); background: var(--wp2); }
.screen .crumb { font-family: var(--font-mono); font-size: .7em; letter-spacing: .06em; color: var(--wi3); padding: .9em 2em 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .body { padding: .6em 1.4em 1.2em; display: flex; flex-direction: column; gap: .9em; flex: 1; min-height: 0; }
.screen .hero-s { font-size: 1.25em; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--wi); }
.screen .cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.6em; flex: 1; min-height: 0; }
.screen .cols.wide { grid-template-columns: 1.3fr 1fr; }
.screen .col { display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.screen .col.narrow { gap: .6em; }
.screen .ct { font-size: .82em; font-weight: 500; color: var(--wi); display: flex; justify-content: space-between; gap: 1em; align-items: baseline; }
.screen .ct span { font-family: var(--font-mono); font-size: .8em; font-weight: 400; letter-spacing: .04em; color: var(--wi3); }
.screen .pip { display: inline-block; width: .7em; height: .7em; margin-right: .5em; vertical-align: -.02em; }
.screen .pip.good { background: var(--wgood); } .screen .pip.warn { background: var(--wwarn); } .screen .pip.bad { background: var(--wbad); }
/* tables */
.screen .tbl { display: flex; flex-direction: column; font-size: .8em; }
.screen .th, .screen .tr { display: grid; align-items: center; gap: .8em; padding: .45em 0; border-bottom: 1px solid var(--wl); }
.screen .th { font-family: var(--font-mono); font-size: .78em; letter-spacing: .12em; text-transform: uppercase; color: var(--wi3); border-bottom: 1px solid var(--wi); padding-bottom: .5em; }
.screen .tr { color: var(--wi2); opacity: clamp(0, calc(var(--b) * 10 - var(--i)), 1); transform: translateY(calc((1 - clamp(0, calc(var(--b) * 10 - var(--i)), 1)) * .5em)); }
.screen .td.node { color: var(--wi); }
.screen .td.node b { font-family: var(--font-mono); font-weight: 500; font-size: .9em; margin-right: .5em; color: var(--wi2); }
.screen .td.node.leaf { padding-left: 1.4em; }
.screen .tr.branch .td.node { font-weight: 600; }
.screen .caret { display: inline-block; width: 0; height: 0; border-left: .35em solid transparent; border-right: .35em solid transparent; border-top: .45em solid var(--wi2); margin-right: .6em; vertical-align: .1em; }
.screen .td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.screen .td.muted { color: var(--wi3); }
.screen .tree .th, .screen .tree .tr { grid-template-columns: 1.6fr 1fr .9fr 3.2em; }
/* ranking bars */
.screen .rank { position: relative; display: flex; flex-direction: column; gap: .35em; padding-bottom: 1.3em; }
.screen .rk { display: grid; grid-template-columns: 9em 1fr 3em; gap: .8em; align-items: center; font-size: .8em; height: 2.1em; }
.screen .rk-l { color: var(--wi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .rk-l b { font-family: var(--font-mono); font-weight: 500; color: var(--wi2); margin-right: .4em; }
.screen .rk-t { position: relative; height: 1.1em; }
.screen .rk-t i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); transform-origin: 0 50%; transform: scaleX(clamp(0, calc(var(--b) * 2.2 - var(--i) * .25), 1)); }
.screen .rk-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--wi); text-align: right; }
.screen .rk-grid { position: absolute; top: 0; bottom: 0; left: calc(9em * .8 + .8em * .8); right: calc(3em * .8 + .8em * .8); pointer-events: none; font-size: .8em; }
.screen .rk-grid i { position: absolute; top: 0; bottom: 1.3em; border-left: 1px solid var(--wl); }
.screen .rk-grid i::after { content: attr(data-l); position: absolute; bottom: -1.3em; left: 0; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: .75em; color: var(--wi3); }
.screen .rk-grid i:nth-child(1) { left: 50%; } .screen .rk-grid i:nth-child(2) { left: 100%; }
.screen .kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--wl); border: 1px solid var(--wl); }
.screen .kpi { background: #fff; padding: .6em .8em .7em; }
.screen .kpi small { display: block; font-size: .72em; color: var(--wi2); }
.screen .kpi b { display: block; font-family: var(--font-serif); font-weight: 300; font-size: 1.9em; line-height: 1.05; letter-spacing: -.02em; color: var(--wi); margin-top: .1em; }
/* scoping */
.screen .strip { display: flex; gap: .5em; flex-wrap: wrap; font-family: var(--font-mono); font-size: .7em; letter-spacing: .03em; color: var(--wi2); }
.screen .strip span { border: 1px solid var(--wl); padding: .3em .7em; background: #fff; }
.screen .strip b { color: var(--wi); font-weight: 500; }
.screen .strip.drift span { border-color: var(--wl2); }
.screen .ev { display: block; font-family: var(--font-mono); font-size: .82em; color: var(--wat); margin-top: .25em; letter-spacing: .02em; }
.screen .gate .ev { margin-top: .5em; }
.screen .weights { display: flex; gap: 1.2em; font-family: var(--font-mono); font-size: .74em; letter-spacing: .04em; color: var(--wi2); }
.screen .weights b { color: var(--wi); font-weight: 500; }
.screen .wps .th, .screen .wps .tr { grid-template-columns: minmax(0, 1.6fr) 4.8em 4.2em minmax(0, 1.1fr) 7.4em; }
.screen .wps .td.node { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .td.score { position: relative; height: 1em; background: var(--wp2); margin-right: 2.4em; }
.screen .td.score i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); background: var(--wa); transform-origin: 0 50%; transform: scaleX(clamp(0, calc(var(--b) * 2.4 - var(--i) * .25), 1)); }
.screen .td.score em { position: absolute; left: calc(100% + .5em); top: -.2em; font-style: normal; font-family: var(--font-mono); font-size: .9em; color: var(--wi); }
.screen .tr.out .td.node, .screen .tr.out .td.num { color: var(--wi3); }
.screen .tr.out .td.score i { background: var(--wl2); }
.screen .tr.query { background: var(--wp); margin: 0 -.6em; padding-inline: .6em; }
.screen .td.st { white-space: nowrap; }
.screen .review { border: 1px solid var(--wl); background: #fff; display: flex; flex-direction: column; gap: .55em; padding: .9em 1em; font-size: .8em; align-self: start;
  opacity: clamp(0, calc((var(--b) - .55) * 4), 1); transform: translateX(calc((1 - clamp(0, calc((var(--b) - .55) * 4), 1)) * 1.5em)); }
.screen .rv-h { font-weight: 600; color: var(--wi); display: flex; justify-content: space-between; font-size: 1.05em; }
.screen .rv-h span { font-family: var(--font-mono); font-weight: 400; color: var(--wi3); font-size: .85em; }
.screen .rv-note { background: var(--wp); border: 1px solid var(--wl); padding: .5em .7em; color: var(--wi2); font-size: .92em; }
.screen .rv-title { font-weight: 600; color: var(--wi); }
.screen .rv-tbl { display: flex; flex-direction: column; }
.screen .rv-th, .screen .rv-tr { display: grid; grid-template-columns: 4.5em 1fr 1fr; gap: .6em; padding: .32em 0; border-bottom: 1px solid var(--wl); color: var(--wi2); }
.screen .rv-th { font-weight: 500; color: var(--wi); }
.screen .rv-tr span:first-child { font-family: var(--font-mono); font-size: .9em; color: var(--wi2); }
.screen .chg { color: var(--wi); background: #eef4ea; text-decoration: underline; text-decoration-color: var(--wgood); padding: 0 .25em; justify-self: start; }
.screen .chg.bad { background: #f6e9e8; text-decoration-color: var(--wbad); color: var(--wbad); }
.screen .rv-why { color: var(--wi2); font-size: .92em; line-height: 1.4; }
.screen .rv-why b { color: var(--wi); font-weight: 600; }
.screen .rv-btns { display: flex; gap: .5em; margin-top: .2em; }
.screen .rv-btns span { padding: .45em .8em; border: 1px solid var(--wl2); font-weight: 500; color: var(--wi); font-size: .92em; }
.screen .rv-btns .b1 { background: var(--wa); border-color: var(--wa); color: #fff; }
/* gantt */
.screen .gantt { display: flex; flex-direction: column; font-size: .78em; flex: 1; min-height: 0; border: 1px solid var(--wl); }
.screen .ghead, .screen .grow { display: grid; grid-template-columns: 17em 5.6em 5.6em 1fr; align-items: center; border-bottom: 1px solid var(--wl); }
.screen .ghead { background: var(--wp); font-weight: 500; color: var(--wi); }
.screen .ghead .gc { padding: .55em .7em; }
.screen .gc { padding: 0 .7em; color: var(--wi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .gc.d { font-family: var(--font-mono); font-size: .9em; color: var(--wi2); border-left: 1px solid var(--wl); align-self: stretch; display: flex; align-items: center; }
.screen .gc.name b { font-family: var(--font-mono); font-weight: 500; color: var(--wi2); margin-right: .5em; }
.screen .grow.sub .gc.name { padding-left: 2em; }
.screen .grows { position: relative; display: flex; flex-direction: column; flex: 1; }
.screen .grow { flex: 1; min-height: 2.4em; opacity: clamp(0, calc(var(--b) * 8 - var(--i)), 1); }
.screen .gt { position: relative; align-self: stretch; border-left: 2px solid var(--wl2); background-image: linear-gradient(90deg, var(--wl) 1px, transparent 1px); background-size: calc(100% / 18) 100%; }
.screen .gt.months { display: grid; grid-template-columns: repeat(18, 1fr); background-image: none; }
.screen .gt.months i { font-style: normal; font-family: var(--font-mono); font-size: .8em; color: var(--wi2); text-align: center; padding: .6em 0; border-left: 1px solid var(--wl); }
.screen .gt.months i:nth-child(7) { background: #fbe7de; color: var(--wat); }
.screen .gt i.gbase, .screen .gt i.gbar { position: absolute; left: calc(var(--s) / 18 * 100%); width: calc((var(--e) - var(--s)) / 18 * 100%); transform-origin: 0 50%; transform: scaleX(clamp(0, calc(var(--b) * 2.6 - var(--i) * .3), 1)); }
.screen .gbase { top: 70%; height: .35em; background: var(--wl2); }
.screen .gbar { top: 22%; height: 1.05em; background: var(--wa); }
.screen .gbar.crit { background: var(--wat); }
.screen .gbar.done { background: var(--wi2); }
.screen .gbar.plan { background: transparent; border: 1px solid var(--wa); }
.screen .cr { position: absolute; left: calc(13 / 18 * 100% + .5em); top: 20%; font-family: var(--font-mono); font-size: .78em; color: var(--wat); white-space: nowrap; opacity: clamp(0, calc((var(--b) - .7) * 5), 1); }
.screen .today { position: absolute; top: 0; bottom: 0; left: calc(17em + 5.6em + 5.6em + (6.15 / 18) * (100% - 17em - 5.6em - 5.6em)); width: 1px; background: var(--wi); pointer-events: none; }
.screen .today em { position: absolute; top: .2em; left: .4em; font-style: normal; font-family: var(--font-mono); font-size: .72em; color: var(--wi); letter-spacing: .08em; }
.screen .dep { position: absolute; pointer-events: none; left: calc(15em + 5.6em + 5.6em + (8 / 18) * (100% - 15em - 5.6em - 5.6em)); top: calc(2.4em * .5); width: 1px; height: calc(2.4em * 2.2); border-left: 1px solid var(--wi); border-bottom: 1px solid var(--wi); transform: translateX(-100%); display: none; }
.screen .glog { display: flex; gap: 1.2em; flex-wrap: wrap; font-family: var(--font-mono); font-size: .7em; color: var(--wi2); letter-spacing: .03em; align-items: center; }
.screen .glog .right { margin-left: auto; color: var(--wi3); }
.screen .sw { display: inline-block; width: 1.1em; height: .6em; margin-right: .5em; vertical-align: 0; }
.screen .sw.crit { background: var(--wat); } .screen .sw.live { background: var(--wa); } .screen .sw.done { background: var(--wi2); } .screen .sw.plan { border: 1px solid var(--wa); } .screen .sw.base { background: var(--wl2); height: .3em; }
/* spend */
.screen .legend { display: flex; gap: 1.1em; flex-wrap: wrap; font-family: var(--font-mono); font-size: .68em; letter-spacing: .03em; color: var(--wi2); }
.screen .legend .gap { flex: 1; }
.screen .legend i { display: inline-block; width: .9em; height: .9em; margin-right: .45em; vertical-align: -.1em; }
.screen .legend i.dash { height: 0; width: 1.2em; border-top: 2px dashed; vertical-align: .25em; }
.screen .legend i.rule { height: 0; width: 1.2em; border-top: 1.5px solid; vertical-align: .25em; }
.screen .legend i.hatch { background: repeating-linear-gradient(45deg, var(--wi3) 0 1px, transparent 1px 3.5px); }
.screen .spend { width: 100%; flex: 1 1 0; min-height: 0; font-family: var(--font-mono); }
.screen .spend .grid line { stroke: var(--wl); stroke-width: 1; }
.screen .spend .yl text, .screen .spend .xl text { fill: var(--wi3); font-size: 9px; }
.screen .spend .yl text { text-anchor: end; } .screen .spend .xl text { text-anchor: middle; }
.screen .spend .budget { stroke: var(--wl2); stroke-width: 1.2; }
.screen .spend .cont { stroke: var(--wi3); stroke-width: 1.2; stroke-dasharray: 4 3; }
.screen .spend .rec { fill: none; stroke: var(--wi); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--b) * 1.6), 1)); }
.screen .spend .fc { fill: none; stroke: var(--wa); stroke-width: 2.2; stroke-dasharray: .03 .018; stroke-dashoffset: 0; opacity: clamp(0, calc((var(--b) - .55) * 3), 1); }
.screen .spend .today { stroke: var(--wi); stroke-width: 1; opacity: .5; }
.screen .spend .axis { stroke: var(--wl2); stroke-width: 1; }
.screen .spend .pt { fill: var(--wi); stroke: #fff; stroke-width: 2; }
.screen .spend .lbl { fill: var(--wi); font-size: 9.5px; font-weight: 500; }
.screen .spend .lbl.m { fill: var(--wi3); font-weight: 400; }
.screen .spend .lbl.a { fill: var(--wat); }
.screen .spend .mcol { transform-origin: 50% 262px; transform: scaleY(clamp(0, calc(var(--b) * 2.2 - var(--i) * .08), 1)); }
/* board pack */
.screen.s5 .body { background: var(--wp); padding: .9em 1.4em 1.2em; }
.screen .pack { background: #fff; border: 1px solid var(--wl); padding: 1.1em 1.3em 1.2em; display: flex; flex-direction: column; gap: .9em; flex: 1; min-height: 0;
  opacity: clamp(0, calc(var(--b) * 3), 1); transform: translateY(calc((1 - clamp(0, calc(var(--b) * 3), 1)) * 1.2em)); }
.screen .pk-h { display: flex; justify-content: space-between; gap: 1em; align-items: flex-start; border-bottom: 1px solid var(--wi); padding-bottom: .7em; }
.screen .pk-k { font-family: var(--font-mono); font-size: .72em; letter-spacing: .12em; text-transform: uppercase; color: var(--wat); margin-bottom: .3em; }
.screen .pk-gen { font-family: var(--font-mono); font-size: .68em; letter-spacing: .04em; color: var(--wi3); text-align: right; line-height: 1.5; white-space: nowrap; }
.screen .cols .col.narrow { flex: 0 0 auto; }
.screen .pack .cols { grid-template-columns: 1.2fr 1fr; }
.screen .mv-scale { display: grid; grid-template-columns: 8em 1fr; gap: .8em; font-size: .72em; }
.screen .mv-cols { display: grid; grid-template-columns: repeat(3, 1fr); font-family: var(--font-mono); color: var(--wi3); letter-spacing: .04em; }
.screen .mv-cols i { font-style: normal; text-align: center; border-top: 1px solid var(--wl); padding-top: .3em; }
.screen .movement { display: flex; flex-direction: column; }
.screen .mv { display: grid; grid-template-columns: 8em 1fr; gap: .8em; align-items: center; height: 1.55em; font-size: .72em; border-bottom: 1px solid var(--wl); opacity: clamp(0, calc(var(--b) * 18 - var(--i)), 1); }
.screen .mv-l { color: var(--wi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .mv-l b { font-family: var(--font-mono); font-weight: 500; color: var(--wi2); margin-right: .4em; }
.screen .mv-t { position: relative; height: 100%; background-image: linear-gradient(90deg, var(--wl) 1px, transparent 1px); background-size: 33.333% 100%; background-position: 16.666% 0; }
.screen .mv-t .dot { position: absolute; top: 50%; width: .8em; height: .8em; transform: translate(-50%, -50%); left: calc((var(--p) - .5) / 3 * 100%); box-shadow: 0 0 0 2px #fff; }
.screen .mv-t .dot.prev { background: #9aa3b2; }
.screen .mv-t .dot.cur { background: var(--wa); }
.screen .mv-t .line { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); left: calc((min(var(--a), var(--b)) - .5) / 3 * 100%); width: calc(abs(var(--b) - var(--a)) / 3 * 100%); background: var(--wgood); transform-origin: 0 50%; }
.screen .mv.same .line { display: none; }
.screen .mv.same .dot.prev { display: none; }
.screen .mv-legend { display: flex; gap: 1.2em; font-family: var(--font-mono); font-size: .66em; color: var(--wi2); margin-top: .4em; letter-spacing: .03em; }
.screen .mv-legend .dot { display: inline-block; width: .8em; height: .8em; margin-right: .5em; vertical-align: -.05em; }
.screen .mv-legend .dot.prev { background: #9aa3b2; } .screen .mv-legend .dot.cur { background: var(--wa); }
.screen .mv-legend .ln { display: inline-block; width: 1.2em; height: 2px; background: var(--wgood); margin-right: .5em; vertical-align: .25em; }
.screen .gate { border: 1px dashed var(--wl2); padding: .7em .9em; font-size: .8em; color: var(--wi2); line-height: 1.45; opacity: clamp(0, calc((var(--b) - .5) * 4), 1); }
.screen .gate .gl { display: block; font-family: var(--font-mono); font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: var(--wi); margin-bottom: .4em; }
.screen .gate .gl i { display: inline-block; width: .6em; height: .6em; background: var(--wa); margin-right: .6em; vertical-align: .05em; }
.screen .pk-list { list-style: none; padding: 0; margin: 0; font-size: .78em; color: var(--wi2); line-height: 1.45; opacity: clamp(0, calc((var(--b) - .6) * 4), 1); }
.screen .pk-list li { padding: .3em 0 .3em 1.1em; border-bottom: 1px solid var(--wl); position: relative; }
.screen .pk-list li::before { content: ''; position: absolute; left: 0; top: .75em; width: .45em; height: .45em; background: var(--wa); }

/* the cursor: the square, which opens into a frame corner over anything that can be pressed */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; background: var(--accent); pointer-events: none; z-index: 200; transform: translate(-50%, -50%); transition: width .2s var(--ease-settle), height .2s var(--ease-settle), background .2s, border-color .2s, opacity .3s; display: none; }
.cursor.hot { width: 28px; height: 28px; background: transparent; border: 1.5px solid var(--accent); }
.cursor.text { width: 2px; height: 22px; background: var(--accent); }
.cursor.hide { opacity: 0; }
:host(.motion.fine) .cursor { display: block; }
:host(.motion.fine), :host(.motion.fine) a, :host(.motion.fine) button, :host(.motion.fine) label, :host(.motion.fine) summary { cursor: none; }

/* ---------------------------------------------------------------- reduced motion / no-JS */
:host(:not(.motion)) .scene { --b: 1; }
@media (prefers-reduced-motion: reduce) { :host { scroll-behavior: auto; } .scrollbar { animation: none; } }

