/* Landing pages. Method: portfolio-hq inputs/DESIGN-SYSTEM-WEBSITE.md sections 2-9.
   Brand accents live in theme-<brand>.css, generated by build.py from content/site.json.
   Two looks: data-look="modern" (default: motion, glow, bento) and data-look="classic" (calm, serif, still). */
@layer reset, tokens, base, layout, components, looks, motion;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100vh; min-height: 100dvh; }
  img, svg { display: block; max-width: 100%; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
}

/* ------------------------------------------------------------------ tokens */
@layer tokens {
  :root {
    color-scheme: light dark;

    --bg:          light-dark(oklch(.972 .009 85), oklch(.148 .026 265));
    --bg-sunk:     light-dark(oklch(.94  .011 85), oklch(.115 .022 265));
    --surface:     light-dark(oklch(.995 .004 85), oklch(.205 .03  265));
    --surface-2:   light-dark(oklch(.955 .01  85), oklch(.245 .034 265));
    --surface-3:   light-dark(oklch(.92  .012 85), oklch(.29  .038 265));
    --line:        light-dark(oklch(.2 .03 265 / .12), oklch(1 0 0 / .1));
    --line-strong: light-dark(oklch(.2 .03 265 / .24), oklch(1 0 0 / .2));
    --line-control: light-dark(oklch(.52 .02 265), oklch(.62 .02 265)); /* 3:1+ boundary for inputs */
    --ink:         light-dark(oklch(.2  .03 265), oklch(.968 .01 85));
    --ink-2:       light-dark(oklch(.36 .03 265), oklch(.83  .015 265));
    --muted:       light-dark(oklch(.46 .03 265), oklch(.72  .02  265));

    /* accent defaults = kit default; theme-<brand>.css overrides these */
    --accent:        light-dark(oklch(.88 .19 125), oklch(.88 .19 125));
    --accent-strong: light-dark(oklch(.915 .19 125), oklch(.915 .19 125));
    --accent-text:   light-dark(oklch(.45 .13 130), oklch(.88 .19 125));
    --accent-line:   light-dark(oklch(.55 .15 130), oklch(.88 .19 125));
    --on-accent:     oklch(.2 .04 265);
    --accent-soft:   color-mix(in oklab, var(--accent) 16%, transparent);
    --focus:         var(--accent-text);

    /* status: semantic only, never brand */
    --good:    light-dark(oklch(.45 .11 165), oklch(.79 .14 165));
    --good-bg: light-dark(oklch(.93 .05 165), oklch(.32 .06 165 / .55));
    --warn:    light-dark(oklch(.47 .11 70),  oklch(.83 .14 80));
    --warn-bg: light-dark(oklch(.94 .06 85),  oklch(.36 .07 80 / .5));
    --info:    light-dark(oklch(.46 .12 250), oklch(.77 .11 250));
    --info-bg: light-dark(oklch(.94 .03 250), oklch(.33 .06 250 / .55));

    --glass: light-dark(oklch(.985 .006 85 / .72), oklch(.16 .026 265 / .66));
    --shadow-1: 0 1px 1px light-dark(oklch(.2 .03 265 / .06), oklch(0 0 0 / .3)),
                0 6px 16px -6px light-dark(oklch(.2 .03 265 / .1), oklch(0 0 0 / .4));
    --shadow-2: 0 1px 1px light-dark(oklch(.2 .03 265 / .05), oklch(0 0 0 / .25)),
                0 10px 20px -8px light-dark(oklch(.2 .03 265 / .14), oklch(0 0 0 / .45)),
                0 34px 70px -24px light-dark(oklch(.2 .03 265 / .25), oklch(0 0 0 / .6));

    /* system font stacks only (no web fonts) */
    --f-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    --f-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", Roboto, sans-serif;
    --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --f-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

    --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px;
    --gutter: clamp(16px, 4vw, 44px);
    --max: 1280px; --max-wide: 1480px; --hdr: 68px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"]  { color-scheme: dark; }

  /* browsers without light-dark(): the same palette as explicit blocks (DESIGN-SYSTEM-DASHBOARD.md 3.1), so Auto
     follows the system and the theme button still switches. Light first, then dark twice: system dark unless the
     visitor chose Light, and the manual Dark choice. Keep the two dark blocks identical, and keep all three in step
     with the light-dark() pairs above. Brand accents come from theme-<brand>.css: accent, accent-strong and
     on-accent are the same in both themes; the dark blocks derive accent-text and accent-line from the accent. */
  @supports not (color: light-dark(#000, #fff)) {
    :root {
      --bg: oklch(.972 .009 85); --bg-sunk: oklch(.94 .011 85); --surface: oklch(.995 .004 85);
      --surface-2: oklch(.955 .01 85); --surface-3: oklch(.92 .012 85);
      --line: oklch(.2 .03 265 / .12); --line-strong: oklch(.2 .03 265 / .24); --line-control: oklch(.52 .02 265);
      --ink: oklch(.2 .03 265); --ink-2: oklch(.36 .03 265); --muted: oklch(.46 .03 265);
      --accent: oklch(.88 .19 125); --accent-strong: oklch(.915 .19 125); --accent-text: oklch(.45 .13 130);
      --accent-line: oklch(.55 .15 130);
      --good: oklch(.45 .11 165); --good-bg: oklch(.93 .05 165); --warn: oklch(.47 .11 70); --warn-bg: oklch(.94 .06 85);
      --info: oklch(.46 .12 250); --info-bg: oklch(.94 .03 250); --glass: oklch(.985 .006 85 / .9);
      --shadow-1: 0 1px 1px oklch(.2 .03 265 / .06), 0 6px 16px -6px oklch(.2 .03 265 / .1);
      --shadow-2: 0 10px 20px -8px oklch(.2 .03 265 / .14), 0 34px 70px -24px oklch(.2 .03 265 / .25);
    }
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --bg: oklch(.148 .026 265); --bg-sunk: oklch(.115 .022 265); --surface: oklch(.205 .03 265);
        --surface-2: oklch(.245 .034 265); --surface-3: oklch(.29 .038 265);
        --line: oklch(1 0 0 / .1); --line-strong: oklch(1 0 0 / .2); --line-control: oklch(.62 .02 265);
        --ink: oklch(.968 .01 85); --ink-2: oklch(.83 .015 265); --muted: oklch(.72 .02 265);
        --accent-text: color-mix(in oklab, var(--accent) 70%, #fff); --accent-line: var(--accent);
        --good: oklch(.79 .14 165); --good-bg: oklch(.32 .06 165 / .55); --warn: oklch(.83 .14 80); --warn-bg: oklch(.36 .07 80 / .5);
        --info: oklch(.77 .11 250); --info-bg: oklch(.33 .06 250 / .55); --glass: oklch(.16 .026 265 / .9);
        --shadow-1: 0 1px 1px oklch(0 0 0 / .3), 0 6px 16px -6px oklch(0 0 0 / .4);
        --shadow-2: 0 10px 20px -8px oklch(0 0 0 / .45), 0 34px 70px -24px oklch(0 0 0 / .6);
      }
    }
    :root[data-theme="dark"] {
      --bg: oklch(.148 .026 265); --bg-sunk: oklch(.115 .022 265); --surface: oklch(.205 .03 265);
      --surface-2: oklch(.245 .034 265); --surface-3: oklch(.29 .038 265);
      --line: oklch(1 0 0 / .1); --line-strong: oklch(1 0 0 / .2); --line-control: oklch(.62 .02 265);
      --ink: oklch(.968 .01 85); --ink-2: oklch(.83 .015 265); --muted: oklch(.72 .02 265);
      --accent-text: color-mix(in oklab, var(--accent) 70%, #fff); --accent-line: var(--accent);
      --good: oklch(.79 .14 165); --good-bg: oklch(.32 .06 165 / .55); --warn: oklch(.83 .14 80); --warn-bg: oklch(.36 .07 80 / .5);
      --info: oklch(.77 .11 250); --info-bg: oklch(.33 .06 250 / .55); --glass: oklch(.16 .026 265 / .9);
      --shadow-1: 0 1px 1px oklch(0 0 0 / .3), 0 6px 16px -6px oklch(0 0 0 / .4);
      --shadow-2: 0 10px 20px -8px oklch(0 0 0 / .45), 0 34px 70px -24px oklch(0 0 0 / .6);
    }
  }
  @media (min-width: 1900px) { :root { --max: 1560px; --max-wide: 1760px; } }
}

/* ------------------------------------------------------------------ base */
@layer base {
  html { scroll-padding-top: calc(var(--hdr) + 16px); }
  @media (min-width: 1900px) { html { font-size: 112.5%; } }
  @media (min-width: 2300px) { html { font-size: 125%; } }
  body {
    background: var(--bg); color: var(--ink);
    font: 400 1rem/1.6 var(--f-text);
    -webkit-font-smoothing: antialiased; overflow-x: clip;
  }
  h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
  h1 { font-size: clamp(2.2rem, 1.2rem + 5.2vw, 5.6rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.02; }
  h2 { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
  h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
  p, li, dd { text-wrap: pretty; }
  p { max-width: 70ch; }
  a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  :focus:not(:focus-visible) { outline: none; }
  ::selection { background: var(--accent); color: var(--on-accent); }
  .skip {
    position: absolute; left: 12px; top: -100px; z-index: 200; padding: .7em 1em; border-radius: var(--r-s);
    background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none;
  }
  .skip:focus { top: 12px; }
  /* text for screen readers only (status context, change announcements) */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1rem;
    font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  }
  .eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
  .lede { font-size: clamp(1.1rem, .98rem + .5vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
}

/* ------------------------------------------------------------------ layout */
@layer layout {
  .wrap      { width: min(100% - 2 * var(--gutter), var(--max));      margin-inline: auto; }
  .wrap-wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; }
  .section       { padding-block: clamp(64px, 9vw, 130px); position: relative; }
  .section-tight { padding-block: clamp(40px, 5vw, 80px); }
  .section-alt   { background: color-mix(in oklab, var(--bg-sunk) 70%, var(--bg)); }
  .sec-head { margin-bottom: clamp(28px, 4vw, 56px); display: grid; gap: .4rem; }
  .sec-head .eyebrow { margin-bottom: .3rem; }
  .sec-note { color: var(--muted); font-size: .95rem; margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .45em; align-items: center; }

  .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
  .span-12 { grid-column: 1 / -1; }
  @media (max-width: 980px) {
    .bento > * { grid-column: span 12; }
    .bento > .span-3, .bento > .span-4, .bento > .span-5, .bento > .span-7 { grid-column: span 6; }
  }
  @media (max-width: 620px) { .bento > *, .bento > [class*="span-"] { grid-column: 1 / -1; } }

  .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
  @media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
}

/* ------------------------------------------------------------------ components */
@layer components {
  /* header */
  .site-header {
    position: sticky; top: 0; z-index: 100; view-transition-name: site-header;
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--line);
  }
  .hdr { display: flex; align-items: center; gap: 12px; min-height: var(--hdr); }
  .wordmark {
    display: inline-flex; align-items: baseline; gap: .45em; min-width: 0; margin-right: auto;
    font: 750 1.08rem/1.1 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  }
  .wordmark:hover { text-decoration: none; }
  .wm-brand { color: var(--accent-text); white-space: nowrap; }
  .wm-sep { color: var(--muted); font-weight: 400; }
  .wm-product { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hdr-panel { display: flex; align-items: center; gap: 14px; }
  .nav {
    display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px;
    background: color-mix(in oklab, var(--surface) 60%, transparent);
  }
  .nav a {
    padding: .5em .95em; border-radius: 999px; color: var(--ink-2); text-decoration: none;
    font-weight: 560; font-size: .92rem; line-height: 1.2; white-space: nowrap;
  }
  .nav a:hover { color: var(--ink); background: var(--surface-2); }
  .nav a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
  .prefs { display: flex; align-items: center; gap: 8px; }
  .seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .seg button, .theme-btn {
    min-height: 34px; padding: .4em .85em; border-radius: 999px;
    font: 600 .8rem/1 var(--f-text); color: var(--ink-2);
  }
  .seg button:hover, .theme-btn:hover { color: var(--ink); background: var(--surface-2); }
  .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .theme-btn { display: inline-flex; align-items: center; gap: .5em; border: 1px solid var(--line-strong); }
  .theme-ic {
    width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  }
  .menu-btn {
    display: none; align-items: center; gap: .55em; min-height: 40px; padding: .45em .9em;
    border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .9rem;
  }
  .menu-ic { width: 16px; height: 10px; border-block: 2px solid currentColor; position: relative; }
  .menu-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; }
  html:not(.js) .prefs { display: none; }

  /* Drawer at 70em (1120px at the default text size; in em so it follows the visitor's text size). Measured on the
     built pages: inline, the nav and the display options take 715px, so at 941px a product name after the longest
     brand prefix kept 21px, and it needs about 1075px to show 12 characters. 70em leaves room for a classic
     scrollbar and slightly wider system fonts. */
  @media (max-width: 70em) {
    html.js .menu-btn { display: inline-flex; }
    html.js .hdr-panel {
      position: absolute; right: var(--gutter); top: calc(var(--hdr) + 8px); width: min(100% - 2 * var(--gutter), 26rem);
      /* never taller than the space under the sticky header: on a short or zoomed viewport the lower controls
         scroll inside the drawer, so a focused control is never left below the screen edge (WCAG 2.4.11) */
      max-height: calc(100vh - var(--hdr) - 16px); max-height: calc(100dvh - var(--hdr) - 16px);
      overflow-y: auto; overscroll-behavior: contain;
      flex-direction: column; align-items: stretch; gap: 12px; padding: 12px;
      border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2);
      opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
      transition: opacity .25s, transform .35s var(--ease), visibility 0s .3s;
    }
    html.js .hdr-panel[data-open="true"] {
      opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease);
    }
    html.js .nav { flex-direction: column; flex: none; padding: 0; border: 0; border-radius: 0; background: none; }
    html.js .nav a { padding: .8em 1em; border-radius: var(--r-s); font-size: 1rem; }
    html.js .prefs { flex: none; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
  }
  /* without JS there is no drawer: the nav wraps under the wordmark (display options need JS and are hidden). The
     wrapped header is taller than --hdr, so it stops being sticky rather than cover focused content (WCAG 2.4.11). */
  @media (max-width: 940px) {
    html:not(.js) .site-header { position: relative; }
    html:not(.js) .hdr { flex-wrap: wrap; padding-block: 10px; }
    html:not(.js) .hdr-panel, html:not(.js) .nav { flex-wrap: wrap; }
  }

  /* buttons */
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
  .btn {
    --bx: 0px; --by: 0px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 46px; padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
    font-weight: 650; font-size: .98rem; line-height: 1.1; text-decoration: none; text-align: center;
    transform: translate(var(--bx), var(--by));
    transition: transform .35s var(--ease), background .2s, box-shadow .3s, border-color .2s, color .2s;
  }
  .btn:hover { text-decoration: none; }
  .btn-primary {
    background: var(--accent); color: var(--on-accent);
    box-shadow: 0 1px 0 oklch(1 0 0 / .5) inset, 0 -2px 0 oklch(0 0 0 / .12) inset,
                0 10px 24px -10px var(--accent), 0 2px 4px oklch(0 0 0 / .15);
  }
  .btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 1px 0 oklch(1 0 0 / .5) inset, 0 -2px 0 oklch(0 0 0 / .12) inset,
                0 14px 32px -10px var(--accent), 0 2px 4px oklch(0 0 0 / .15);
  }
  .btn-primary:active { transform: translate(var(--bx), calc(var(--by) + 1px)); }
  .btn-ghost { border-color: var(--line-control); background: color-mix(in oklab, var(--surface) 50%, transparent); color: var(--ink); }
  .btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }

  /* hero */
  .hero { position: relative; isolation: isolate; padding-block: clamp(48px, 8vw, 120px) clamp(48px, 7vw, 100px); }
  .hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 70% at 8% -10%, var(--accent-soft), transparent 70%),
                radial-gradient(45% 55% at 100% 0%, color-mix(in oklab, var(--info) 10%, transparent), transparent 70%);
  }
  /* start, not end: the live details make the card taller than the copy, which must stay at the top */
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero h1 { margin-bottom: 1.1rem; }
  .summary { margin-top: 1.4rem; color: var(--ink-2); max-width: 62ch; }
  .hero-fine { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
  .status-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.6rem; }
  .status-note { color: var(--ink-2); font-size: .95rem; max-width: 60ch; }

  /* status pill */
  .status {
    display: inline-flex; align-items: center; gap: .55em; padding: .55em .9em; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface);
    font: 650 .76rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
  }
  .status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
  /* live data (assets/site.js): tones come from the status enum at run time (assets/portfolio.js STATUS_TONE),
     never from the HTML. The production-ready tone is "verified", so no file matches the host's deploy guard. */
  .status[data-state="verified"] { color: var(--good); background: var(--good-bg); border-color: transparent; }
  .status[data-state="verified"] .dot { background: var(--good); }
  .status[data-state="demo"] { color: var(--info); background: var(--info-bg); border-color: transparent; }
  .status[data-state="demo"] .dot { background: var(--info); }
  .status[data-state="beta"] { color: var(--info); background: var(--info-bg); border-color: transparent; }
  .status[data-state="beta"] .dot { background: var(--info); }
  .status[data-state="building"] { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
  .status[data-state="building"] .dot { background: var(--warn); }
  .status[data-state="landing"], .status[data-state="offline"], .status[data-state="unknown"] { border-style: dashed; }
  .status a { color: inherit; }
  .live-health { display: inline-flex; align-items: center; gap: .45em; font: 600 .76rem/1 var(--f-mono); color: var(--ink-2); }
  .live-health .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 2px solid var(--muted); }
  .live-health[data-h="up"] .dot { background: var(--good); border-color: var(--good); }
  .live-health[data-h="login"] .dot, .live-health[data-h="redirect"] .dot { background: var(--info); border-color: var(--info); }
  .live-health[data-h="degraded"] .dot, .live-health[data-h="down"] .dot { background: var(--warn); border-color: var(--warn); }
  .live-facts { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .live-src { margin-top: .8rem; font-size: .82rem; color: var(--muted); }
  .live-stale { color: var(--warn); font-weight: 650; }
  .unk { color: var(--muted); font-style: italic; }

  /* chips (feature and surface states) */
  .chip {
    display: inline-flex; align-items: center; gap: .4em; padding: .38em .7em; border-radius: 999px; width: fit-content;
    font: 650 .7rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
    border: 1px solid transparent;
  }
  .chip[data-chip="built"] { color: var(--good); background: var(--good-bg); }
  .chip[data-chip="partly"] { color: var(--warn); background: var(--warn-bg); }
  .chip[data-chip="planned"], .chip[data-chip="soon"], .chip[data-chip="internal"] { color: var(--muted); border: 1px dashed var(--line-control); }

  /* cards with cursor-following glow */
  .card {
    --mx: 50%; --my: 0%;
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface);
    box-shadow: var(--shadow-1); padding: clamp(20px, 2.4vw, 34px);
    transition: border-color .3s, box-shadow .4s;
  }
  .card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 18%, transparent), transparent 65%);
    opacity: 0; transition: opacity .4s;
  }
  @media (hover: hover) and (pointer: fine) {
    .card:hover::before { opacity: 1; }
    .card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
  }

  .glance { padding: clamp(20px, 2.2vw, 30px); }
  .glance-h { font: 650 .74rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
  .glance-list > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
  .glance-list dt { color: var(--muted); font-size: .9rem; }
  .glance-list dd { font-weight: 600; }
  @media (max-width: 420px) { .glance-list > div { grid-template-columns: 1fr; gap: .15rem; } }

  .statement {
    font: 650 clamp(1.45rem, 1rem + 2vw, 2.6rem)/1.2 var(--f-display); letter-spacing: -.025em;
    color: var(--ink); max-width: 32ch; text-wrap: balance;
  }

  .feat { display: flex; flex-direction: column; gap: .75rem; min-height: 200px; }
  .feat h3 { margin-top: auto; padding-top: 1.4rem; }
  .feat p { color: var(--ink-2); }
  .feat[data-state="planned"] { background: color-mix(in oklab, var(--surface) 55%, transparent); border-style: dashed; border-color: var(--line-strong); }

  /* steps */
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
  .step { counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--accent-line); }
  .step::before {
    content: counter(step, decimal-leading-zero); display: block; margin-bottom: .9rem;
    font: 650 .8rem/1 var(--f-mono); letter-spacing: .1em; color: var(--accent-text);
  }
  .step h3 { margin-bottom: .5rem; }
  .step p { color: var(--ink-2); }

  /* audience and surfaces */
  .audience { display: grid; gap: 10px; margin-top: 1.6rem; }
  .audience li {
    padding: .9rem 1.1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
    font-weight: 600; display: flex; gap: .7em; align-items: baseline;
  }
  .audience li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-line); flex: none; transform: translateY(-1px); }
  .surfaces { display: grid; gap: 10px; margin-top: 1.6rem; }
  .surfaces li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .9rem 1.1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
  }
  .surf-name { font-weight: 650; }
  .empty-note {
    margin-top: 1.6rem; padding: 1.2rem; border-radius: var(--r-m); border: 1.5px dashed var(--line-strong); color: var(--ink-2);
  }

  /* pricing */
  .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  .plan { display: flex; flex-direction: column; gap: .7rem; }
  .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em; }
  .price { font: 750 clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
  .plan-period { color: var(--muted); font-size: .92rem; }
  .plan-notes { color: var(--ink-2); font-size: .95rem; }
  .plan-tbd { border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
  .plan-tbd p { color: var(--ink-2); }
  .price-note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }

  /* FAQ */
  .faq { border-top: 1px solid var(--line-strong); max-width: 900px; }
  .faq details { border-bottom: 1px solid var(--line-strong); }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem;
    padding: 20px 0; font: 650 clamp(1.02rem, .98rem + .3vw, 1.2rem)/1.35 var(--f-display); color: var(--ink);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; flex: none; font: 500 1.5rem/1 var(--f-mono); color: var(--accent-text);
    transition: transform .35s var(--ease);
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq-a { padding: 0 0 22px; color: var(--ink-2); }

  /* disclaimer */
  .disclaimer {
    padding: clamp(18px, 2vw, 26px); border-radius: var(--r-m); border: 1px solid var(--line-strong);
    border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--ink);
  }

  /* related */
  .related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  .rel { display: flex; flex-direction: column; gap: .5rem; height: 100%; text-decoration: none; color: var(--ink); }
  .rel:hover { text-decoration: none; }
  .rel-name { font: 700 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; }
  .rel-name::after { content: " \2192"; color: var(--accent-text); }
  .rel-tag { color: var(--ink-2); font-size: .95rem; margin-bottom: .4rem; }

  /* directory (root index) */
  .dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 4vw, 56px); }
  .dir-group h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); margin-bottom: 1rem; }
  .dir-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; border-top: 1px solid var(--line); }
  .dir-list a { font-weight: 650; }

  /* footer with watermark wordmark */
  .site-footer {
    position: relative; overflow: hidden; isolation: isolate; background: var(--bg-sunk);
    border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 88px) 0 clamp(96px, 18vw, 260px);
  }
  .foot { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
  @media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
  .foot-title { font: 750 1.3rem/1.2 var(--f-display); letter-spacing: -.02em; }
  .foot-meta { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
  .foot-h { font: 650 .74rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
  .foot-list { display: grid; gap: .45rem; }
  .foot-mega {
    position: absolute; right: -1vw; bottom: -.2em; z-index: 0; white-space: nowrap;
    font: 800 clamp(5rem, 22vw, 24rem)/.8 var(--f-display); letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 1px var(--line-strong); opacity: .8; pointer-events: none; user-select: none;
  }
  @supports not (-webkit-text-stroke: 1px black) { .foot-mega { color: var(--line); } }
}

/* ------------------------------------------------------------------ looks */
@layer looks {
  :root[data-look="classic"] {
    --f-display: var(--f-serif);
    --r-s: 4px; --r-m: 4px; --r-l: 6px; --r-xl: 8px;
    --shadow-1: none; --shadow-2: none;
  }
  [data-look="classic"] :is(h1, h2, h3):not(.glance-h, .foot-h, .eyebrow),
  [data-look="classic"] .statement, [data-look="classic"] .price, [data-look="classic"] .foot-title,
  [data-look="classic"] .rel-name, [data-look="classic"] .wordmark, [data-look="classic"] .faq summary {
    letter-spacing: 0; font-weight: 600;
  }
  [data-look="classic"] h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.08; }
  [data-look="classic"] h2:not(.glance-h, .foot-h, .eyebrow) { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); }
  [data-look="classic"] .dir-group h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
  [data-look="classic"] .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line-strong); }
  [data-look="classic"] .nav, [data-look="classic"] .seg { border-radius: 4px; }
  [data-look="classic"] .nav a, [data-look="classic"] .seg button, [data-look="classic"] .theme-btn,
  [data-look="classic"] .menu-btn, [data-look="classic"] .btn, [data-look="classic"] .status { border-radius: 3px; }
  [data-look="classic"] .btn-primary, [data-look="classic"] .btn-primary:hover { box-shadow: none; }
  [data-look="classic"] .hero::before, [data-look="classic"] .card::before { display: none; }
  [data-look="classic"] .section-alt { background: var(--bg); }
  [data-look="classic"] .section + .section, [data-look="classic"] .section-tight { border-top: 1px solid var(--line-strong); }
  [data-look="classic"] .section { padding-block: clamp(48px, 6vw, 88px); }
  [data-look="classic"] .bento { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  [data-look="classic"] .bento > * { grid-column: auto; }
  [data-look="classic"] .card { border-color: var(--line-strong); }
  [data-look="classic"] .feat { min-height: 0; }
  [data-look="classic"] .feat h3 { margin-top: 0; padding-top: .2rem; }
  [data-look="classic"] .eyebrow { font-family: var(--f-text); letter-spacing: .08em; }
  [data-look="classic"] .eyebrow::before { display: none; }
  [data-look="classic"] .chip { border-radius: 3px; }
  [data-look="classic"] .faq summary { font-family: var(--f-serif); }
  [data-look="classic"] .foot-mega { display: none; }
  [data-look="classic"] .site-footer { padding-bottom: clamp(48px, 6vw, 88px); }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@layer motion {
  .status[data-state="verified"] .dot { animation: ping 2.4s infinite; }
  @keyframes ping {
    0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 55%, transparent); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  /* scroll-driven reveals: CSS only; with no support (or no JS) the content is simply visible */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      :root:not([data-look="classic"]) .rv {
        animation: rv-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 75%;
      }
    }
  }
  @keyframes rv-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

  ::view-transition-old(root) { animation: 280ms var(--ease-io) both vt-out; }
  ::view-transition-new(root) { animation: 500ms var(--ease) both vt-in; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

  /* Classic look: no motion at all */
  :root[data-look="classic"] *, :root[data-look="classic"] *::before, :root[data-look="classic"] *::after {
    animation: none !important; transition: none !important;
  }
  :root[data-look="classic"]::view-transition-old(root), :root[data-look="classic"]::view-transition-new(root) { animation: none !important; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }
}

/* Generator v2 page components (multi-page sites on their own domain). Method: portfolio-hq
   inputs/DESIGN-SYSTEM-WEBSITE.md; tokens and base components come from assets/site.css, which build.py puts first
   in the same file. Same cascade layers; the brand theme block is appended last. No colours are hand-written here:
   every colour is a token. */

@layer components {
  /* header extras */
  .btn-sm { padding: .5em .95em; font-size: .9rem; min-height: 40px; }
  .btn-text { background: none; border: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; padding-inline: .2em; }
  .btn-text:hover { text-decoration-thickness: 2px; }
  .hdr-cta { flex: none; }
  @media (max-width: 560px) { .hdr-cta { display: none; } }
  .wm-mark { width: 1.15em; height: 1.15em; border-radius: .3em; background: var(--accent); flex: none; align-self: center;
    box-shadow: inset 0 0 0 .2em var(--accent), inset 0 0 0 .32em var(--on-accent); }
  .lang { display: flex; gap: .4rem; font-size: .9rem; }
  .lang a { padding: .35em .6em; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; }
  .lang a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }

  /* breadcrumb */
  .crumbs { padding-top: 1.1rem; font-size: .86rem; color: var(--muted); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
  .crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
  .crumbs a { color: var(--ink-2); text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs [aria-current] { color: var(--ink); }

  /* hub product-section navigation */
  .subnav ul { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
  .subnav a { display: inline-flex; padding: .45em .9em; border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; font-size: .92rem; }
  .subnav a:hover { background: var(--surface-2); color: var(--ink); }
  .subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

  /* heroes */
  .hero-v2 .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .hero-v2 h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); }
  .section .wrap > h2:not(.eyebrow), .section-tight .wrap > h2, .two-col > div > h2 { margin-bottom: 1rem; }
  .who-grid { align-items: start; }
  .who-grid .sub-h { margin-top: 1.6rem; }
  .status-panel { display: grid; gap: .8rem; padding: clamp(1.4rem, 2.5vw, 2rem); align-content: start; }
  .status-panel h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
  @media (max-width: 900px) { .hero-v2 .hero-grid { grid-template-columns: 1fr; } }
  .hero-visual { position: relative; display: grid; gap: 1rem; justify-items: end; }
  .hero-visual > .frame { width: 100%; }
  .page-hero { position: relative; padding-block: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 56px); }
  .page-hero h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 4rem); margin-bottom: .9rem; }
  .ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end; }
  @media (max-width: 760px) { .ph-grid { grid-template-columns: 1fr; } }
  .ph-side { display: grid; gap: 1rem; justify-items: end; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.6rem; }
  .app-slot:empty { display: none; }
  .app-slot { display: contents; }

  /* the content frame (design system 7: one frame for every image) */
  .frame { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line);
    background: var(--surface-3); box-shadow: var(--shadow-post, var(--shadow-2)); }
  .frame img, .frame video, .frame picture { display: block; width: 100%; height: auto; }
  .frame figcaption { padding: .7rem 1rem; font-size: .88rem; color: var(--muted); background: var(--surface); }
  .r-16x10 { aspect-ratio: 16 / 10; } .r-16x9 { aspect-ratio: 16 / 9; } .r-4x5 { aspect-ratio: 4 / 5; }
  .r-9x16 { aspect-ratio: 9 / 16; } .r-4x3 { aspect-ratio: 4 / 3; } .r-1x1 { aspect-ratio: 1 / 1; }
  .media:not(.slot) { aspect-ratio: auto; }

  /* reserved real-media slot (UNIVERSAL 30): designed, clearly pending, never a fake screenshot. The label is the
     element's data-media-label, drawn by CSS, so it is not page text. */
  .slot { position: relative; display: grid; place-items: center; isolation: isolate;
    background:
      radial-gradient(120% 80% at 85% 0%, var(--accent-soft), transparent 60%),
      repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--line) 60%, transparent) 14px 15px),
      var(--surface-2); }
  .slot::after { content: attr(data-media-label); position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
    padding: .55em .8em; border-radius: var(--r-s); background: var(--glass); border: 1px dashed var(--line-control);
    font: 600 .72rem/1.35 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); text-align: center; }
  .slot-ui { width: 62%; display: grid; gap: .55rem; opacity: .9; }
  .slot-ui span { display: block; height: .7rem; border-radius: 99px; background: color-mix(in oklab, var(--ink) 10%, transparent); }
  .slot-ui span:nth-child(1) { width: 46%; height: .95rem; background: color-mix(in oklab, var(--accent) 45%, transparent); }
  .slot-ui span:nth-child(2) { width: 88%; } .slot-ui span:nth-child(3) { width: 70%; }
  .slot-play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--surface);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
  .slot-play::before { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid;
    border-width: 12px 0 12px 18px; border-color: transparent transparent transparent var(--accent-text); }
  @media (max-width: 480px) { .slot::after { font-size: .62rem; left: .5rem; right: .5rem; bottom: .5rem; } }

  /* runtime status (space reserved: no layout shift when the data arrives) */
  .site-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 34px; }
  .ss-health { font-size: .88rem; color: var(--ink-2); }
  .status-list { display: grid; gap: 1rem; }
  .status-card { display: grid; gap: .6rem; }
  .sc-h { font-size: 1.35rem; }

  /* sections */
  .statement { font: 650 clamp(1.4rem, 1rem + 1.8vw, 2.4rem)/1.25 var(--f-display); letter-spacing: -.02em; max-width: 34ch; }
  .statement-sm { font: 600 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.35 var(--f-display); max-width: 48ch; }
  .muted { color: var(--muted); }
  .more { margin-top: 1.4rem; font-weight: 600; }
  .more a { text-decoration: none; }
  .more a:hover { text-decoration: underline; }
  .sub-h { font-size: 1.1rem; margin-bottom: .8rem; }
  .sub-h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 1rem; }
  .how-grid { align-items: start; }
  .teaser-col { display: grid; gap: .8rem; align-content: start; }
  .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  .aud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
  .aud { padding: 1.2rem 1.3rem; }
  .aud h3 { font-size: 1.05rem; }
  .steps-page { gap: clamp(20px, 3vw, 36px); }
  .step-lg h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
  .table-wrap table { width: 100%; font-size: .95rem; }
  .table-wrap th, .table-wrap td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
  .table-wrap thead th { font: 600 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .t-right { text-align: right !important; } .t-center { text-align: center !important; }
  .notes, .mod-list, .ask-list, .link-list { display: grid; gap: .6rem; }
  .notes li { padding-left: 1.2rem; position: relative; }
  .notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-line); }
  .mod-list li { display: flex; align-items: center; gap: .7rem; }
  .ask-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
  .link-list { margin-top: 1.4rem; }
  .case-grid, .prod-grid, .post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
  .case { display: grid; gap: .5rem; padding: 1.5rem; text-decoration: none; color: inherit; height: 100%; }
  .case-h { font-size: 1.35rem; }
  .prod-card { display: grid; gap: .6rem; align-content: start; padding: 1.5rem; }
  .pcard-h { font-size: 1.4rem; }
  .pcard-h a { color: var(--ink); text-decoration: none; }
  .pcard-h a:hover { color: var(--accent-text); }
  .pcard-out { font-weight: 600; margin-top: .2rem; }
  .pcard-out a { text-decoration: none; }
  .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 1rem; }
  .person { padding: 1.2rem 1.3rem; }
  .person h3 { font-size: 1.1rem; }

  /* contact (forms fallback, FRONTEND-MASTER 10) and brochure */
  .contact-card { display: grid; gap: .8rem; padding: clamp(1.4rem, 2.5vw, 2rem); }
  .contact-card h2, .contact-card h3 { font-size: 1.4rem; }
  .contact-list { display: grid; gap: .45rem; font-size: 1.05rem; }
  .contact-list a { font-weight: 600; }
  .c-name { font-weight: 650; }
  .c-company { color: var(--muted); }
  .form-note { font-size: .92rem; color: var(--ink-2); padding: .7rem .9rem; border-left: 3px solid var(--accent-line); background: var(--surface-2); border-radius: 0 var(--r-s) var(--r-s) 0; }
  .brochure { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem; margin-top: 1.2rem; }
  .brochure:not(:has(.brochure-cover)) { grid-template-columns: 1fr; }
  .brochure h2, .brochure h3 { font-size: 1.25rem; margin-bottom: .4rem; }
  .brochure-cover { width: 120px; height: auto; border-radius: var(--r-s); box-shadow: var(--shadow-1); }
  .cta-band { background: color-mix(in oklab, var(--accent) 12%, var(--bg)); border-block: 1px solid var(--line); }
  .cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
  .cta-inner h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }

  /* live form (previews only until D-T3) */
  .lead-form { display: grid; gap: .5rem; padding: clamp(1.4rem, 2.5vw, 2rem); }
  .lead-form label { font-weight: 600; font-size: .95rem; margin-top: .4rem; }
  .lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; min-height: 44px; padding: .6rem .8rem;
    border: 1px solid var(--line-control); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; }
  .lead-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
  .lead-form .check input { width: 22px; height: 22px; margin-top: .15rem; flex: none; }
  .lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-status:empty { display: none; }
  .form-status { padding: .7rem .9rem; border-radius: var(--r-s); background: var(--surface-2); }
  .form-status[data-tone="error"] { color: var(--warn); background: var(--warn-bg); }
  .form-status[data-tone="ok"] { color: var(--good); background: var(--good-bg); }

  /* prose (approved Markdown pages and posts) */
  .prose { max-width: 72ch; }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); margin-top: 2em; }
  .prose h3 { margin-top: 1.6em; }
  .prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
  .prose blockquote { border-left: 3px solid var(--accent-line); padding: .2em 0 .2em 1.1em; color: var(--ink-2); }
  .prose code { font: .9em var(--f-mono); background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
  .prose pre { overflow-x: auto; padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--bg-sunk); border: 1px solid var(--line); }
  .prose pre code { background: none; padding: 0; }
  .prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
  .md-fig { margin-block: 1.6em; }

  /* blog */
  .post-card { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; height: 100%; }
  .pc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
  .pc-img img { width: 100%; height: 100%; object-fit: cover; }
  .pc-body { display: grid; gap: .5rem; padding: 1.2rem 1.3rem 1.4rem; align-content: start; }
  .pc-meta { font-size: .82rem; color: var(--muted); }
  .pc-meta a { color: var(--accent-text); }
  .pc-title { font-size: 1.25rem; }
  .pc-title a { color: var(--ink); text-decoration: none; }
  .pc-title a:hover { color: var(--accent-text); }
  .cats ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
  .cats a { display: inline-flex; padding: .4em .85em; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
  .cats a[aria-current="page"], .cats a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
  .post-head { padding-top: clamp(24px, 4vw, 56px); }
  .post-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); max-width: 22ch; margin-bottom: .9rem; }
  .byline { color: var(--muted); font-size: .95rem; }
  .post-hero { margin-block: clamp(20px, 3vw, 40px); }
  .post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 800px; padding-bottom: clamp(40px, 6vw, 80px); }
  .summary-box { padding: 1.1rem 1.3rem; font-size: 1.08rem; color: var(--ink-2); max-width: none; }
  .toc { padding: 1rem 1.3rem; }
  .toc-h { font: 600 .78rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
  .toc ol { padding-left: 1.2em; display: grid; gap: .3em; }
  .takeaways { padding: 1.2rem 1.4rem; border-left: 4px solid var(--accent-line); }
  .takeaways ul { padding-left: 1.2em; display: grid; gap: .4em; margin-top: .6rem; }
  .author { padding: 1rem 1.3rem; }
  .author-name { font-weight: 650; }
  .sources ul { padding-left: 1.2em; display: grid; gap: .3em; font-size: .92rem; word-break: break-word; }
  .post-products { font-weight: 600; }

  /* mascot box (sizes per tier come from sitegen/mascot.py; the element itself is styled by assets/mascot/mascot.css) */
  .mk-slot { position: relative; width: var(--mk-w, 120px); flex: none; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .4rem; }
  /* the Pause label is wider than a peek box: it keeps its own width and grows inward (towards the text), so it cannot
     widen the track and push the mascot past the page edge on a 360 px screen */
  .mk-slot > .mk-toggle { justify-self: unsafe end; max-inline-size: none; white-space: nowrap; }
  .mk-at-hero > .mk-toggle { justify-self: unsafe start; }
  .mk-slot site-mascot { display: block; width: 100%; }
  .mk-slot site-mascot img { width: 100%; height: auto; }
  .mk-at-hero { justify-self: start; margin-top: -1rem; }
  .mk-at-end { justify-self: end; }
  .mk-toggle { display: inline-flex; align-items: center; gap: .45em; min-height: 32px; padding: .3em .7em;
    border: 1px solid var(--line-strong); border-radius: 99px; font-size: .8rem; color: var(--ink-2); background: var(--surface); }
  .mk-toggle[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
  .mk-toggle-ic { width: .7em; height: .7em; flex: none;
    background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
  .mk-toggle[aria-pressed="false"] .mk-toggle-ic { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .mk-toggle-local { font-size: .72rem; min-height: 28px; }
  .prefs .mk-toggle { min-height: 36px; }

  .foot-preview { margin-top: .8rem; padding: .5rem .7rem; border: 1px dashed var(--warn); border-radius: var(--r-s); color: var(--warn); font-size: .85rem; }
  .empty-note { color: var(--muted); }
}

@layer looks {
  [data-look="classic"] .frame { box-shadow: none; }
  [data-look="classic"] .slot { background: var(--surface-2); }
  [data-look="classic"] .cta-band { background: var(--bg); }
  [data-look="classic"] .page-hero h1, [data-look="classic"] .post-head h1 { font-family: var(--f-serif); letter-spacing: -.01em; font-weight: 600; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-look="classic"]) .mk-at-hero { animation: mk-in .7s var(--ease) both .2s; }
    @keyframes mk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  }
  @media (prefers-reduced-motion: reduce) {
    .mk-slot, .mk-slot * { animation: none !important; transition: none !important; }
  }
}

/* Mascot boxes: generated by sitegen/mascot.py from TIER_MAX_360 / TIER_MAX_WIDE. Do not edit. */
@layer components {
  .mk-slot.mk-hero { --mk-w: 260px; }
  .mk-slot.mk-mid { --mk-w: 168px; }
  .mk-slot.mk-face { --mk-w: 96px; }
  .mk-slot.mk-peek { --mk-w: 84px; }
  @media (max-width: 480px) {
    .mk-slot.mk-hero { display: none; }
    .mk-slot.mk-mid { --mk-w: 88px; }
    .mk-slot.mk-face { --mk-w: 64px; }
    .mk-slot.mk-peek { --mk-w: 56px; }
  }
}

/* Generated by build.py from content/site.json brands.godengine. Do not edit. */
@layer tokens {
  :root {
    --accent: light-dark(oklch(0.80 0.15 82), oklch(0.80 0.15 82));
    --accent-strong: light-dark(oklch(0.835 0.15 82), oklch(0.835 0.15 82));
    --on-accent: light-dark(oklch(0.2 0.04 265), oklch(0.2 0.04 265));
    --accent-text: light-dark(oklch(0.51 0.105 82), oklch(0.80 0.15 82));
    --accent-line: light-dark(oklch(0.62 0.127 82), oklch(0.80 0.15 82));
    --warn: light-dark(oklch(0.50 0.13 50), oklch(0.80 0.13 55));
    --warn-bg: light-dark(oklch(0.94 0.035 55), oklch(0.36 0.07 55 / 0.5));
  }
}
@supports not (color: light-dark(#000, #fff)) {
  @layer tokens {
  :root {
    --accent: oklch(0.80 0.15 82);
    --accent-strong: oklch(0.835 0.15 82);
    --on-accent: oklch(0.2 0.04 265);
    --accent-text: oklch(0.51 0.105 82);
    --accent-line: oklch(0.62 0.127 82);
    --warn: oklch(0.50 0.13 50);
    --warn-bg: oklch(0.94 0.035 55);
  }
  }
}

/* Startup Intelligence skin: "the assumption ledger". Appended after the shared stylesheet (sitegen/run.py load_skin),
   so it builds on the same tokens, layers and components and only changes this site's look:
   - warm paper and a faint engineering grid; at night, a blueprint;
   - serif headlines as in the product's own report reader (web/src/styles/tokens.css: Iowan Old Style, Palatino);
   - the GodEngine gold (hue 82) for the brand and for the one block that carries the load;
   - the report's evidence tiers as data colours: measured, modelled, asserted (the app's validated blue ramp).
   Colours are tokens with light and dark values; motion is transform and opacity only, and stops for reduced motion,
   the Classic look, the mascot's pause and narrow screens. No images, no fonts, no external requests. */

@layer tokens {
  :root {
    --bg:        light-dark(oklch(.968 .012 84), oklch(.165 .032 256));
    --bg-sunk:   light-dark(oklch(.938 .014 84), oklch(.135 .03 256));
    --surface:   light-dark(oklch(.992 .006 84), oklch(.205 .036 256));
    --surface-2: light-dark(oklch(.952 .012 84), oklch(.24 .04 256));
    --surface-3: light-dark(oklch(.915 .014 84), oklch(.28 .042 256));
    --line:      light-dark(oklch(.25 .03 70 / .14), oklch(.9 .03 85 / .12));
    --line-strong: light-dark(oklch(.25 .03 70 / .28), oklch(.9 .03 85 / .24));
    --ink:       light-dark(oklch(.19 .02 70), oklch(.955 .012 85));
    --ink-2:     light-dark(oklch(.36 .02 70), oklch(.84 .018 85));
    --muted:     light-dark(oklch(.47 .02 70), oklch(.74 .02 85));
    --glass:     light-dark(oklch(.968 .012 84 / .9), oklch(.165 .032 256 / .9));
    --f-display: var(--f-serif);
    --r-s: 6px; --r-m: 8px; --r-l: 10px; --r-xl: 14px;
    --si-grid:   light-dark(oklch(.3 .03 70 / .07), oklch(.85 .08 85 / .07));
    --si-paper:  light-dark(oklch(.995 .004 84), oklch(.215 .036 256));
    --si-shadow: 0 1px 0 light-dark(oklch(.3 .03 70 / .1), oklch(0 0 0 / .4)), 0 18px 40px -22px light-dark(oklch(.3 .04 70 / .45), oklch(0 0 0 / .7));
    /* the report's evidence tiers (web/src/styles/tokens.css): strongest is darkest on paper */
    --si-measured: light-dark(#0d366b, #9cc3f5);
    --si-modelled: light-dark(#2a78d6, #5c9ce8);
    --si-asserted: light-dark(#86b6ef, #2f5f9e);
    --si-on-asserted: light-dark(#0b1f3d, #eef4fc);
    --si-kill:   light-dark(oklch(.52 .16 30), oklch(.72 .14 32));
    --si-bar:    light-dark(oklch(.3 .03 70 / .22), oklch(.9 .03 85 / .2));
  }
}
@supports not (color: light-dark(#000, #fff)) {
  @layer tokens {
    :root { --bg: oklch(.968 .012 84); --surface: oklch(.992 .006 84); --ink: oklch(.19 .02 70); --si-grid: oklch(.3 .03 70 / .07);
      --si-paper: oklch(.995 .004 84); --si-measured: #0d366b; --si-modelled: #2a78d6; --si-asserted: #86b6ef; --si-on-asserted: #0b1f3d;
      --si-kill: oklch(.52 .16 30); --si-bar: oklch(.3 .03 70 / .22); }
  }
}

@layer components {
  /* type: the report reader's serif, set lighter and calmer than the shared default */
  h1, main h2:not([class]) { font-weight: 500; letter-spacing: -.018em; }
  h1 { font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.8rem); line-height: 1.06; }
  main h2:not([class]) { font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3.2rem); line-height: 1.08; }
  .case-h, .sub-h2 { font-family: var(--f-serif); font-weight: 500; }
  h2.eyebrow { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .16em; }
  .si-chain-copy h2, .si-ladder-copy h2, .si-range-copy h2, .si-what-head h2 { margin-bottom: 1rem; }
  h3 { font-family: var(--f-text); font-weight: 650; letter-spacing: -.01em; }
  .eyebrow { color: var(--ink-2); letter-spacing: .16em; }
  .eyebrow::before { width: .62em; height: .62em; border-radius: 1px; background: var(--accent); }
  .lede { color: var(--ink-2); }
  .statement { font-weight: 450; letter-spacing: -.012em; }

  /* header: a ruled ledger line, the mark is a stack with one block pushed out */
  .site-header { background: var(--glass); border-bottom: 3px double var(--line-strong); }
  .wordmark { font-family: var(--f-serif); font-weight: 600; letter-spacing: -.01em; font-size: 1.14rem; }
  .wm-mark { width: 1.05em; height: 1.05em; border-radius: 1px; box-shadow: none; transform: translateY(.12em);
    background: linear-gradient(var(--ink), var(--ink)) 0 0 / 72% 28% no-repeat,
                linear-gradient(var(--accent), var(--accent)) 100% 50% / 72% 28% no-repeat,
                linear-gradient(var(--ink), var(--ink)) 0 100% / 72% 28% no-repeat; }
  .nav { border: 0; background: none; gap: .2rem; }
  .nav a { border-radius: 0; padding: .55em .7em; border-bottom: 2px solid transparent; }
  .nav a:hover { background: none; border-bottom-color: var(--line-strong); }
  .nav a[aria-current="page"] { background: none; color: var(--ink); border-bottom-color: var(--accent); }

  /* buttons and chips: square-cornered, like stamps on a form */
  .btn { border-radius: 6px; }
  .btn-primary { box-shadow: 0 1px 0 oklch(1 0 0 / .45) inset, 0 -2px 0 oklch(0 0 0 / .14) inset, 0 8px 18px -10px var(--accent); }
  .chip { border-radius: 3px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }
  .status { border-radius: 4px; }
  .card { border-radius: var(--r-m); background: var(--si-paper); box-shadow: var(--si-shadow); }
  .card::before { display: none; }
  .frame { border-radius: var(--r-m); }
  .section-alt { background: var(--bg-sunk); }

  /* grid paper behind the working sections */
  .si-hero, .si-chain-sec, .si-range-sec, .page-hero {
    background-image: linear-gradient(var(--si-grid) 1px, transparent 1px), linear-gradient(90deg, var(--si-grid) 1px, transparent 1px);
    background-size: 28px 28px; background-position: -1px -1px; }

  /* ---------------------------------------------------------------- home hero */
  .si-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(36px, 6vw, 96px) clamp(40px, 6vw, 88px); }
  .si-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
  .si-hero h1 { margin-bottom: 1.1rem; max-width: 18ch; }
  .si-hero-fine { margin-top: 1.2rem; font-size: .95rem; color: var(--ink-2); }
  .si-hero-fine a { font-weight: 600; }
  .si-hero-visual { position: relative; display: grid; gap: .8rem; }
  .si-plate { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-l); overflow: hidden;
    background: var(--si-paper); box-shadow: 14px 14px 0 -1px var(--bg-sunk), 14px 14px 0 0 var(--line-strong), var(--si-shadow); }
  .si-plate picture, .si-plate img { display: block; width: 100%; height: auto; }
  .si-plate figcaption { padding: .55rem .9rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
  .si-call { position: absolute; display: inline-flex; align-items: center; gap: .45em; padding: .35em .6em; border-radius: 4px;
    background: var(--si-paper); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1);
    font: 600 .72rem/1.1 var(--f-mono); letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
  .si-call-k { position: relative; padding: .15em .35em; border-radius: 2px; background: var(--accent); color: var(--on-accent); }
  .si-call::after { content: ""; position: absolute; top: 50%; left: 100%; width: 34px; height: 1px; background: var(--accent-line); }
  .si-call::before { content: ""; position: absolute; top: calc(50% - 3px); left: calc(100% + 31px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent-line); }
  .si-call-a { right: calc(45% + 38px); top: 38%; }
  .si-call-b { right: calc(45% + 38px); top: 49%; } .si-call-b .si-call-k { background: var(--si-asserted); color: var(--si-on-asserted); }
  .si-hero-visual .mk-slot { position: absolute; left: -54px; bottom: 2.9rem; z-index: 2; }
  .si-drift { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .si-drift span { position: absolute; font: 600 .7rem/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); opacity: .55;
    padding: .3em .45em; border: 1px dashed var(--line-strong); border-radius: 3px; }
  .si-drift span:nth-child(1) { left: 56%; top: 9%; } .si-drift span:nth-child(2) { left: 74%; top: 5%; }
  .si-drift span:nth-child(3) { left: 60%; bottom: 6%; } .si-drift span:nth-child(4) { right: 3%; top: 12%; }
  .si-drift span:nth-child(5) { right: 7%; bottom: 4%; } .si-drift span:nth-child(6) { left: 47%; bottom: 14%; }
  @media (max-width: 980px) { .si-hero-grid { grid-template-columns: 1fr; } .si-hero h1 { max-width: 20ch; } .si-drift { display: none; }
    .si-hero-visual .mk-slot { position: relative; left: auto; bottom: auto; justify-self: end; margin-top: -.5rem; margin-right: 6px; }
    .si-hero-visual .mk-slot > .mk-toggle { justify-self: unsafe end; } /* the slot sits at the right edge: grow inward */ }
  @media (max-width: 620px) { .si-call { font-size: .6rem; padding: .3em .45em; } .si-call::after { width: 18px; } .si-call::before { left: calc(100% + 15px); }
    .si-call-a, .si-call-b { right: calc(45% + 22px); } }

  /* problem: the statement, and what you get instead */
  .si-problem-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
  .si-queue { padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--r-l); background: var(--ink); color: var(--bg); position: relative; }
  .si-queue::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; background: var(--accent); border-radius: 0 3px 3px 0; }
  /* the card inverts with the theme (ink on paper at night), so the label uses the gold that reads on paper there:
     bright gold on the cream card was 1.66:1 in dark mode; oklch(.51 .105 82) is 5.1:1 */
  .si-queue-k { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(var(--accent), oklch(.51 .105 82)); margin-bottom: .6rem; }
  .si-queue-v { font: 450 clamp(1.1rem, 1rem + .6vw, 1.45rem)/1.4 var(--f-serif); color: var(--bg); }
  @media (max-width: 820px) { .si-problem-grid { grid-template-columns: 1fr; } }

  /* see a report: the film and the stack of sheets */
  .si-see-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  .si-film { margin: 0; display: grid; gap: .6rem; }
  .si-film-frame { position: relative; padding: 28px 10px 10px; border-radius: var(--r-l); background: oklch(.2 .03 256); box-shadow: var(--si-shadow); }
  .si-film-frame::before { content: "report reader  \00B7  no sound  \00B7  captions on"; position: absolute; left: 14px; top: 8px;
    font: 600 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: oklch(.82 .1 82); }
  .si-film-frame::after { content: ""; position: absolute; right: 14px; top: 10px; width: 28px; height: 8px;
    background: radial-gradient(circle, oklch(.82 .1 82) 2.5px, transparent 3px) 0 0 / 10px 8px repeat-x; opacity: .8; }
  .si-film video { display: block; width: 100%; height: auto; border-radius: 4px; background: #000; aspect-ratio: 16 / 9; }
  .si-film figcaption { font-size: .86rem; color: var(--muted); }
  .si-sheets { position: relative; min-height: clamp(320px, 34vw, 520px); }
  .si-sheet { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--si-shadow); }
  .si-sheet picture, .si-sheet img { display: block; width: 100%; height: auto; }
  .si-sheet figcaption { padding: .5rem .8rem; font-size: .78rem; color: var(--muted); background: var(--si-paper); border-top: 1px solid var(--line); }
  .si-sheets .si-sheet { position: absolute; width: 58%; transition: transform .45s var(--ease), box-shadow .3s; }
  .si-sheet-1 { left: 0; top: 6%; transform: rotate(-4deg); }
  .si-sheet-2 { left: 21%; top: 0; transform: rotate(1.5deg); z-index: 1; }
  .si-sheet-3 { right: 0; top: 9%; transform: rotate(5deg); z-index: 2; }
  .si-sheets .si-sheet:hover { transform: rotate(0) translateY(-10px) scale(1.03); z-index: 3; }
  @media (max-width: 900px) {
    .si-see-grid { grid-template-columns: 1fr; }
    .si-sheets { min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto;
      scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .si-sheets .si-sheet { position: static; width: auto; transform: none; scroll-snap-align: start; }
  }

  /* the nine-link claim check */
  .si-chain-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
  .si-rule { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--si-paper); border-radius: 0 6px 6px 0; color: var(--ink-2); }
  .si-chain-box { display: grid; gap: 1rem; }
  .si-chain { margin: 0; padding: 0; border: 0; }
  .si-legend { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
  .si-links { display: grid; gap: 6px; }
  .si-link { display: grid; grid-template-columns: auto auto 1fr; gap: .8rem; align-items: start; padding: .7rem .9rem; cursor: pointer;
    border: 1px solid var(--line); border-radius: 6px; background: var(--si-paper); transition: border-color .2s, background .2s, transform .2s var(--ease); }
  .si-link:hover { border-color: var(--line-strong); }
  .si-link input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent-line); }
  .si-link-code { font: 700 .74rem/1 var(--f-mono); padding: .35em .45em; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--ink-2); margin-top: .05rem; }
  .si-link-txt { display: grid; gap: .15rem; }
  .si-link-name { font-weight: 650; }
  .si-link-q { font-size: .9rem; color: var(--ink-2); }
  .si-req { justify-self: start; font: 600 .62rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
    border: 1px solid var(--accent-line); border-radius: 3px; padding: .25em .4em; }
  .si-links li.is-on .si-link { border-color: var(--accent-line); background: color-mix(in oklab, var(--accent) 12%, var(--si-paper)); transform: translateX(4px); }
  .si-links li.is-on .si-link-code { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .si-verdict { padding: 1rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--si-paper); min-height: 5.2em; }
  [data-result="run"] + .si-verdict { border: 1px solid var(--si-modelled); box-shadow: inset 4px 0 0 var(--si-modelled); }
  [data-result="refuse"] + .si-verdict { border: 1px solid var(--si-kill); box-shadow: inset 4px 0 0 var(--si-kill); }
  .si-verdict strong { margin-right: .3em; }
  @media (max-width: 900px) { .si-chain-grid { grid-template-columns: 1fr; } }

  /* the report as a ledger of entries */
  .si-what-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
  .si-what-head { position: sticky; top: calc(var(--hdr) + 24px); }
  .si-ledger { border-top: 2px solid var(--ink); }
  .si-entry { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line-strong); }
  .si-entry-no { font: 600 .82rem/1.6 var(--f-mono); color: var(--muted); }
  .si-entry h3 { font-size: 1.12rem; margin-bottom: .3rem; }
  .si-entry h3 a { color: var(--ink); text-decoration-color: var(--accent-line); }
  .si-entry p { color: var(--ink-2); font-size: .97rem; }
  .si-entry[data-state="planned"] { border-bottom-style: dashed; }
  .si-entry[data-state="planned"] h3, .si-entry[data-state="planned"] p { color: var(--muted); }
  @media (max-width: 900px) { .si-what-grid { grid-template-columns: 1fr; } .si-what-head { position: static; } }
  @media (max-width: 520px) { .si-entry { grid-template-columns: 2.2rem minmax(0, 1fr); } .si-entry .chip { grid-column: 2; justify-self: start; } }

  /* steps */
  .si-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); counter-reset: none; }
  .si-step { position: relative; padding: 1.2rem 1.1rem 1.3rem; border-top: 2px solid var(--ink); background: var(--si-paper); border-radius: 0 0 8px 8px; box-shadow: var(--si-shadow); }
  .si-step-no { display: block; font: 450 2.6rem/1 var(--f-serif); color: var(--accent-text); margin-bottom: .6rem; }
  .si-step h3 { margin-bottom: .4rem; }
  .si-step p { color: var(--ink-2); font-size: .96rem; }
  .si-steps-big .si-step-no { font-size: 3.4rem; }
  @media (max-width: 980px) { .si-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .si-steps { grid-template-columns: 1fr; } }

  /* the evidence ladder */
  .si-ladder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
  .si-honest { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--si-paper); color: var(--ink-2); }
  .si-photo { margin: 1.4rem 0 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
  .si-photo picture, .si-photo img { display: block; width: 100%; height: auto; }
  .si-photo figcaption { padding: .45rem .8rem; font-size: .78rem; color: var(--muted); background: var(--si-paper); }
  .si-ladder { position: relative; display: grid; gap: 10px; padding-inline: 22px; }
  .si-ladder::before, .si-ladder::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 6px; border-radius: 3px; background: var(--line-strong); }
  .si-ladder::before { left: 0; } .si-ladder::after { right: 0; }
  .si-rung { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; padding: .8rem 1rem;
    border-radius: 6px; background: var(--si-paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
  /* home "Who it is for": each audience with the line from its use-case page and a link to it */
  .si-auds { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
  .si-aud { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border-top: 3px solid var(--line-strong); }
  .si-aud h3 { margin: 0; font: 600 1.12rem/1.2 var(--f-serif); }
  .si-aud p { margin: 0; font-size: .93rem; color: var(--ink-2); }
  .si-aud-link { margin-top: auto; padding-top: .2rem; font-size: .9rem; font-weight: 600; }
  /* pricing: what a report includes today, each part with its state */
  .si-inc li { align-items: flex-start; }
  .si-inc .chip { flex: none; min-width: 8.6em; justify-content: center; margin-top: .15em; }
  .si-rung-code { font: 700 .95rem/1 var(--f-mono); color: var(--ink); }
  .si-rung-name { font: 500 1.1rem/1.2 var(--f-serif); }
  .si-rung-tier { font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: .35em .5em; border-radius: 3px; color: #fff; }
  .si-rung-what { grid-column: 2 / -1; font-size: .9rem; color: var(--ink-2); }
  .si-rung[data-tier="measured"] .si-rung-tier { background: var(--si-measured); color: light-dark(#fff, #0b1f3d); }
  /* white on the app's #2a78d6 is 4.42:1, under WCAG AA for this small label; one step darker (#2774d2) is 4.65:1 */
  .si-rung[data-tier="modelled"] .si-rung-tier { background: light-dark(#2774d2, var(--si-modelled)); color: light-dark(#fff, #0b1f3d); }
  .si-rung[data-tier="asserted"] .si-rung-tier { background: var(--si-asserted); color: var(--si-on-asserted); }
  .si-rung[data-tier="measured"] { border-left: 4px solid var(--si-measured); }
  .si-rung[data-tier="modelled"] { border-left: 4px solid var(--si-modelled); }
  .si-rung[data-tier="asserted"] { border-left: 4px solid var(--si-asserted); }
  @media (max-width: 900px) { .si-ladder-grid { grid-template-columns: 1fr; } }

  /* range, not a score */
  .si-range-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
  .si-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: .8rem; }
  .si-range-fig { margin: 0; padding: clamp(14px, 2vw, 22px); border-radius: var(--r-l); background: var(--si-paper); border: 1px solid var(--line-strong); box-shadow: var(--si-shadow); display: grid; gap: .9rem; }
  .si-dist { display: block; width: 100%; height: auto; }
  .si-bar { fill: var(--si-bar); transition: fill .25s; }
  .si-bar.is-clear { fill: var(--accent); }
  .si-band { fill: color-mix(in oklab, var(--si-asserted) 22%, transparent); }
  .si-median { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; }
  .si-axis { stroke: var(--line-strong); }
  .si-thr line { stroke: var(--si-kill); stroke-width: 2.5; }
  .si-thr rect { fill: var(--si-kill); }
  .si-thr { transition: transform .25s var(--ease); }
  .si-ax-l, .si-ax-r { font: 600 11px var(--f-mono); fill: var(--muted); letter-spacing: .04em; }
  .si-range-ctl { display: grid; gap: .45rem; }
  .si-range-ctl label { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .si-range-ctl input[type="range"] { width: 100%; accent-color: var(--si-kill); min-height: 32px; }
  .si-range-out { font-size: .98rem; }
  .si-range-out strong { font: 600 1.25rem/1 var(--f-serif); }
  .si-range-fig figcaption { font-size: .8rem; color: var(--muted); }
  @media (max-width: 900px) { .si-range-grid { grid-template-columns: 1fr; } }

  /* product: the report, page by page */
  .si-anatomy { display: grid; gap: clamp(36px, 6vw, 88px); }
  .si-anat { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
  .si-anat:nth-child(even) .si-sheet { order: 2; }
  .si-anat .si-sheet { transform: rotate(-1.2deg); max-width: 460px; justify-self: center; }
  .si-anat:nth-child(even) .si-sheet { transform: rotate(1.2deg); }
  .si-anat-no { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
  .si-anat-copy h3 { font: 500 clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.15 var(--f-serif); margin-bottom: .7rem; }
  .si-anat-copy p { color: var(--ink-2); margin-bottom: .9rem; }
  @media (max-width: 820px) { .si-anat { grid-template-columns: 1fr; } .si-anat:nth-child(even) .si-sheet { order: 0; } }
  .si-pending-doc, .si-pending-rec { margin-top: clamp(28px, 4vw, 48px); max-width: 560px; }
  .si-pending-rec { max-width: 760px; }

  /* how it works: the nine stages */
  .si-disclose summary { cursor: pointer; font-weight: 650; margin-bottom: 1rem; color: var(--accent-text); }
  .si-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
  .si-stage { padding: 1rem 1.1rem; border-radius: 8px; background: var(--si-paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
  .si-stage-no { font: 600 .74rem/1 var(--f-mono); color: var(--accent-text); letter-spacing: .1em; }
  .si-stage h3 { margin: .4rem 0 .3rem; font-size: 1.05rem; }
  .si-stage p { font-size: .92rem; color: var(--ink-2); }
  @media (max-width: 900px) { .si-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .si-stages { grid-template-columns: 1fr; } }

  .si-status { border-top: 3px solid var(--accent); }
  /* FAQ: the question heading takes the summary's type at every level (h2 on /faq/, h3 elsewhere) */
  .faq .faq-q { font: inherit; letter-spacing: inherit; margin: 0; color: inherit; }
  .faq summary { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); }
  .site-footer { border-top: 3px double var(--line-strong); }
  .foot-title { font-family: var(--f-serif); font-weight: 600; }
  .foot-mega { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.03em; }

  /* sections below the first two are laid out only when they come near the screen: the home page's first layout fell
     from about 580 ms to 240 ms on the Lighthouse mobile CPU preset, and its blocking time from about 400 ms to 30 ms.
     Content stays in the page for search, find-in-page and screen readers; "auto" keeps each section's real size once
     it has been seen. No section here draws outside its own box (checked at 360, 768 and 1280 px). */
  main > section:nth-child(n+3), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-look="classic"]) .si-drift span { animation: si-drift 22s ease-in-out infinite alternate; }
    :root:not([data-look="classic"]) .si-drift span:nth-child(2n) { animation-duration: 28s; animation-delay: -6s; }
    :root:not([data-look="classic"]) .si-drift span:nth-child(3n) { animation-duration: 34s; animation-delay: -12s; }
    @keyframes si-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14px, -18px, 0); } }
    :root:not([data-look="classic"]) .si-call { animation: si-call-in .7s var(--ease) both .45s; }
    :root:not([data-look="classic"]) .si-call-b { animation-delay: .75s; }
    @keyframes si-call-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
    /* the load-bearing callout's pulse: a ring that grows and fades (transform and opacity, no repaint per frame) */
    :root:not([data-look="classic"]) .si-call-a .si-call-k::after { content: ""; position: absolute; inset: -3px; border-radius: 4px;
      border: 2px solid var(--accent); opacity: 0; pointer-events: none; animation: si-pulse 2.8s ease-out infinite 1.4s; }
    @keyframes si-pulse { 0% { opacity: .75; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45); } }
    @supports (animation-timeline: view()) {
      :root:not([data-look="classic"]) .si-rung { animation: si-rung-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
      @keyframes si-rung-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
      :root:not([data-look="classic"]) .si-sheets .si-sheet { animation: si-sheet-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
      @keyframes si-sheet-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
    }
  }
  @media (max-width: 620px) { .si-drift span { animation: none !important; } }
  /* the "Mascot animation" pause also stops this page's ambient motion (WCAG 2.2.2; skin.js sets data-si-still from the
     kit's stored choice, the skip link "Mascot and motion settings" reaches the site-wide control) */
  :root[data-si-still] :is(.si-drift span, .si-call, .si-rung, .si-sheets .si-sheet),
  :root[data-si-still] .si-call-k::after { animation: none !important; }
  @media (prefers-reduced-motion: reduce) {
    .si-sheets .si-sheet, .si-link, .si-thr, .si-bar { transition: none !important; }
  }
}
