/* MForja v4 Flagship Design System: Broadcast Mastering Obsidian & Architectural Travertine */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }

@layer reset, core, theme, components, motion;

@property --tvx { syntax: "<length-percentage>"; inherits: true; initial-value: 92%; }
@property --tvy { syntax: "<length-percentage>"; inherits: true; initial-value: 32px; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body { margin: 0; min-height: 100dvh; overflow-x: hidden; overflow-wrap: break-word; }
  h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  [hidden] { display: none !important; }
}

@layer theme {
  :root, html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07080B;
    --bg-alt: #0D1017;
    --surface: #111520;
    --surface-2: #171C29;
    --surface-glass: rgba(11, 14, 20, 0.88);
    --plate: #131B29;
    --ink: #F5F7FA;
    --body: #C5CEDB;
    --muted: #93A0B4;
    --dim: #6C788B;
    --line: rgba(208, 222, 240, 0.12);
    --line-strong: rgba(208, 222, 240, 0.28);
    --spec: rgba(255, 255, 255, 0.09);
    --brand: #2AD4C5;
    --brand-hover: #5BE3D7;
    --brand-ink: #5BE3D7;
    --on-brand: #051618;
    --brand-soft: rgba(42, 212, 197, 0.13);
    --warm: #E86A24;
    --warm-ink: #F58A48;
    --warm-soft: rgba(232, 106, 36, 0.15);
    --mark-housing: #121620;
    --mark-primary: #F5F7FA;
    --mark-secondary: #2AD4C5;
    --mark-spark: #E86A24;
    --ok: #3AD29F;
    --ok-soft: rgba(58, 210, 159, 0.14);
    --tint: rgba(220, 232, 248, 0.07);
    --field: #0B0E14;
    --backdrop: rgba(4, 6, 10, 0.82);
    --hero-scrim: linear-gradient(90deg, #07080B 0%, rgba(7,8,11,0.96) 40%, rgba(7,8,11,0.78) 54%, rgba(7,8,11,0.16) 72%, rgba(7,8,11,0.02) 88%), linear-gradient(to top, #07080B 0%, rgba(7,8,11,0) 28%);
    --hero-scrim-m: linear-gradient(to bottom, #07080B 0%, rgba(7,8,11,0.92) 54%, rgba(7,8,11,0.34) 76%, rgba(7,8,11,0.78) 100%);
    --shadow-1: 0 1px 0 var(--spec) inset, 0 12px 32px -16px rgba(0,0,0,0.72);
    --shadow-2: 0 1px 0 var(--spec) inset, 0 30px 72px -26px rgba(0,0,0,0.88);
    --btn-shadow: 0 6px 24px -6px rgba(42, 212, 197, 0.42);
    --btn-shadow-hover: 0 12px 32px -6px rgba(42, 212, 197, 0.56);
    --spot-line: rgba(91, 227, 215, 0.52);
    --spot-fill: rgba(42, 212, 197, 0.07);
    --cmp-old-bg: #15171e;
    --cmp-old-text: #8b95a5;
    --cmp-new-bg: #0f2127;
    --cmp-new-text: #f5f7fa;
    --cmp-line: #e86a24;
    --cmp-knob: #e86a24;
    --cmp-knob-ink: #ffffff;
  }

  html[data-theme="light"] {
    color-scheme: light;
    --bg: #F5F2EB;
    --bg-alt: #EAE4D7;
    --surface: #FCFBF8;
    --surface-2: #F0ECE2;
    --surface-glass: rgba(252, 251, 248, 0.94);
    --plate: #E8EFEF;
    --ink: #14181F;
    --body: #2C3542;
    --muted: #4D5868;
    --dim: #6C7787;
    --line: rgba(20, 24, 31, 0.12);
    --line-strong: rgba(20, 24, 31, 0.28);
    --spec: rgba(255, 255, 255, 0.96);
    --brand: #0D6E66;
    --brand-hover: #0F847A;
    --brand-ink: #0B5D56;
    --on-brand: #FAFBF9;
    --brand-soft: rgba(13, 110, 102, 0.09);
    --warm: #C2460A;
    --warm-ink: #A33806;
    --warm-soft: rgba(194, 70, 10, 0.11);
    --mark-housing: #FFFFFF;
    --mark-primary: #14181F;
    --mark-secondary: #0D6E66;
    --mark-spark: #C2460A;
    --ok: #0E6B47;
    --ok-soft: rgba(14, 107, 71, 0.1);
    --tint: rgba(20, 24, 31, 0.055);
    --field: #FFFFFF;
    --backdrop: rgba(20, 24, 31, 0.52);
    --hero-scrim: linear-gradient(90deg, #F5F2EB 0%, rgba(245,242,235,0.97) 40%, rgba(245,242,235,0.82) 54%, rgba(245,242,235,0.18) 72%, rgba(245,242,235,0.02) 88%), linear-gradient(to top, #F5F2EB 0%, rgba(245,242,235,0) 28%);
    --hero-scrim-m: linear-gradient(to bottom, #F5F2EB 0%, rgba(245,242,235,0.94) 54%, rgba(245,242,235,0.32) 76%, rgba(245,242,235,0.78) 100%);
    --shadow-1: 0 1px 0 var(--spec) inset, 0 8px 26px -16px rgba(32, 24, 14, 0.18);
    --shadow-2: 0 1px 0 var(--spec) inset, 0 28px 60px -28px rgba(32, 24, 14, 0.24);
    --btn-shadow: 0 6px 22px -6px rgba(13, 110, 102, 0.34);
    --btn-shadow-hover: 0 12px 28px -6px rgba(13, 110, 102, 0.44);
    --spot-line: rgba(13, 110, 102, 0.42);
    --spot-fill: rgba(13, 110, 102, 0.05);
    --cmp-old-bg: #e7e1d4;
    --cmp-old-text: #555d68;
    --cmp-new-bg: #112224;
    --cmp-new-text: #f5f7fa;
    --cmp-line: #c2460a;
    --cmp-knob: #c2460a;
    --cmp-knob-ink: #ffffff;
  }

  @media (prefers-color-scheme: light) {
    html:not([data-theme]) {
      color-scheme: light;
      --bg: #F5F2EB;
      --bg-alt: #EAE4D7;
      --surface: #FCFBF8;
      --surface-2: #F0ECE2;
      --surface-glass: rgba(252, 251, 248, 0.94);
      --plate: #E8EFEF;
      --ink: #14181F;
      --body: #2C3542;
      --muted: #4D5868;
      --dim: #6C7787;
      --line: rgba(20, 24, 31, 0.12);
      --line-strong: rgba(20, 24, 31, 0.28);
      --spec: rgba(255, 255, 255, 0.96);
      --brand: #0D6E66;
      --brand-hover: #0F847A;
      --brand-ink: #0B5D56;
      --on-brand: #FAFBF9;
      --brand-soft: rgba(13, 110, 102, 0.09);
      --warm: #C2460A;
      --warm-ink: #A33806;
      --warm-soft: rgba(194, 70, 10, 0.11);
      --mark-housing: #FFFFFF;
      --mark-primary: #14181F;
      --mark-secondary: #0D6E66;
      --mark-spark: #C2460A;
      --ok: #0E6B47;
      --ok-soft: rgba(14, 107, 71, 0.1);
      --tint: rgba(20, 24, 31, 0.055);
      --field: #FFFFFF;
      --backdrop: rgba(20, 24, 31, 0.52);
      --hero-scrim: linear-gradient(90deg, #F5F2EB 0%, rgba(245,242,235,0.97) 40%, rgba(245,242,235,0.82) 54%, rgba(245,242,235,0.18) 72%, rgba(245,242,235,0.02) 88%), linear-gradient(to top, #F5F2EB 0%, rgba(245,242,235,0) 28%);
      --hero-scrim-m: linear-gradient(to bottom, #F5F2EB 0%, rgba(245,242,235,0.94) 54%, rgba(245,242,235,0.32) 76%, rgba(245,242,235,0.78) 100%);
      --shadow-1: 0 1px 0 var(--spec) inset, 0 8px 26px -16px rgba(32, 24, 14, 0.18);
      --shadow-2: 0 1px 0 var(--spec) inset, 0 28px 60px -28px rgba(32, 24, 14, 0.24);
      --btn-shadow: 0 6px 22px -6px rgba(13, 110, 102, 0.34);
      --btn-shadow-hover: 0 12px 28px -6px rgba(13, 110, 102, 0.44);
      --spot-line: rgba(13, 110, 102, 0.42);
      --spot-fill: rgba(13, 110, 102, 0.05);
      --cmp-old-bg: #e7e1d4;
      --cmp-old-text: #555d68;
      --cmp-new-bg: #112224;
      --cmp-new-text: #f5f7fa;
      --cmp-line: #c2460a;
      --cmp-knob: #c2460a;
      --cmp-knob-ink: #ffffff;
    }
  }
}

@layer core {
  :root {
    --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Fraunces", Georgia, serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gut: clamp(16px, 4.2vw, 48px);
    --shell: 1280px;
    --r-s: 8px;
    --r-m: 14px;
    --r-l: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.077, 1.121 24%, 1.149 26.3%, 1.159, 1.163 29.3%, 1.154 31.4%, 1.129 33.9%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  }

  body {
    background: var(--bg);
    color: var(--body);
    font: 400 1.04rem/1.64 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: var(--brand); color: var(--on-brand); }
  .shell { width: min(100% - 2 * var(--gut), var(--shell)); margin-inline: auto; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; }

  h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-sans); font-weight: 660; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
  h1 { font-size: clamp(2.35rem, 4.9vw + 0.5rem, 4.75rem); margin-bottom: 18px; }
  h2 { font-size: clamp(1.75rem, 3.2vw + 0.45rem, 3.15rem); margin: clamp(28px, 4vw, 44px) 0 14px; }
  h3 { font-size: clamp(1.18rem, 1vw + 0.7rem, 1.52rem); margin: 18px 0 8px; letter-spacing: -0.02em; }
  p { max-width: 68ch; text-wrap: pretty; }
  p + p, ul + p, ol + p { margin-top: 14px; }
  ul, ol { padding-left: 1.35rem; max-width: 68ch; display: grid; gap: 8px; }
  li { line-height: 1.62; }
  a { color: var(--brand-ink); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .2s var(--ease); }
  a:hover { color: var(--brand-hover); }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

  .lead { font-size: clamp(1.06rem, 0.55vw + 0.96rem, 1.3rem); color: var(--muted); line-height: 1.54; max-width: 56ch; }
  .skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 300;
    padding: 12px 18px; border-radius: var(--r-s);
    background: var(--brand); color: var(--on-brand); font-weight: 600;
    text-decoration: none; transition: top .2s var(--ease);
  }
  .skip-link:focus { top: 14px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 .74rem/1 var(--font-mono); letter-spacing: .14em;
    text-transform: uppercase; color: var(--warm-ink);
  }
  .eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
    background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); flex: none;
  }

  blockquote {
    margin: 22px 0; padding: clamp(18px, 2.5vw, 28px);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-left: 3px solid var(--warm); border-radius: var(--r-m);
    color: var(--ink); box-shadow: var(--shadow-1); max-width: 76ch;
  }

  .btn {
    --bh: 48px; position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--bh); padding: 0 22px; border-radius: 999px;
    font: 600 .95rem/1 var(--font-sans); letter-spacing: -0.005em;
    text-decoration: none; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-1); white-space: nowrap;
    transition: transform .35s var(--ease-out), background .22s, border-color .22s, box-shadow .25s;
  }
  .btn:hover { background: var(--surface-2); border-color: var(--brand); transform: translateY(-1px); color: var(--ink); }
  .btn:active { transform: scale(0.98); }
  .btn .ic { transition: transform .3s var(--ease-out); }
  .btn:hover .ic:last-child { transform: translateX(3px); }
  .btn--primary { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: var(--btn-shadow); }
  .btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); border-color: transparent; box-shadow: var(--btn-shadow-hover); }
  .btn--primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.42) 50%, transparent 72%) no-repeat -160% 0 / 60% 100%;
    transition: background-position .85s var(--ease); pointer-events: none;
  }
  .btn--primary:hover::after { background-position: 260% 0; }
  .btn--ghost { background: transparent; border-color: var(--line-strong); box-shadow: none; }
  .btn--ghost:hover { background: var(--tint); border-color: var(--ink); }
  .btn--lg { --bh: 54px; padding-inline: 26px; font-size: 1.02rem; }
  .btn--sm { --bh: 38px; padding: 0 14px; font-size: .84rem; }

  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 6px; }
  .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 5px; }
  .link .ic { transition: transform .3s var(--ease-out); }
  .link:hover .ic { transform: translateX(4px); }

  .badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font: 600 .68rem/1 var(--font-mono); letter-spacing: .09em; text-transform: uppercase;
    border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  }
  .badge--brand { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 38%, transparent); }
  .badge--warn, .badge--warm { background: var(--warm-soft); color: var(--warm-ink); border-color: color-mix(in srgb, var(--warm) 44%, transparent); }
  .badge--ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

  .sec__head { display: grid; gap: 16px; max-width: 880px; margin-bottom: clamp(28px, 4.5vw, 56px); }
  .sec__head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
  @media (min-width: 960px) { .sec__head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); gap: 48px; } }
  .sec__head h2 { margin: 8px 0 0; }

  input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; --fill: 50%; }
  input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--line-strong) var(--fill)); }
  input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--line-strong) var(--fill)); }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--brand); box-shadow: var(--shadow-1); transition: transform .2s var(--ease-out);
  }
  input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
  input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.16); }

  details.it { border-top: 1px solid var(--line); }
  details.it summary {
    list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer;
    font: 600 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  details.it summary::-webkit-details-marker { display: none; }
  details.it summary::before {
    content: "+"; display: grid; place-items: center; width: 22px; height: 22px;
    border: 1px solid var(--line-strong); border-radius: 6px; font-size: .95rem; color: var(--ink);
  }
  details.it[open] summary::before { content: "-"; }
  details.it p { padding: 0 0 18px 32px; font-size: .92rem; color: var(--muted); max-width: 82ch; }
  details.it::details-content { opacity: 0; block-size: 0; overflow: clip; transition: opacity .3s, block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  details.it[open]::details-content { opacity: 1; block-size: auto; }
  :root { interpolate-size: allow-keywords; }

  .seg {
    position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong); width: max-content; max-width: 100%;
    overflow-x: auto; scrollbar-width: none; isolation: isolate;
  }
  .seg::-webkit-scrollbar { display: none; }
  .seg__btn {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 15px; border-radius: 999px;
    font: 600 .86rem/1 var(--font-sans); color: var(--muted); white-space: nowrap; transition: color .25s;
  }
  .seg__btn:hover { color: var(--ink); }
  .seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); box-shadow: var(--btn-shadow); }
  .seg__n { font: 600 .7rem/1 var(--font-mono); opacity: .72; }
  .seg__ind {
    position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: var(--w, 0);
    transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--brand);
    box-shadow: var(--btn-shadow); transition: transform .48s var(--ease-out), width .48s var(--ease-out);
  }

  main#content { padding-bottom: 0; }
  .page-shell { padding-top: clamp(92px, 11vw, 132px); padding-bottom: clamp(48px, 6vw, 84px); }
}

@layer components {
  /* Symmetrical Scaling Glass Header */
  .site-header { position: fixed; inset: 0 0 auto; z-index: 80; }
  .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--surface-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--line); opacity: 0.94; transition: box-shadow .25s;
  }
  .site-header.is-stuck::before { box-shadow: var(--shadow-1); }
  .header-bar { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 24px); min-height: 74px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); flex: none; }
  .brand-lockup-svg, .brand-mark-lockup { height: 36px; width: auto; display: block; flex: none; }
  @media (min-width: 720px) { .brand-lockup-svg, .brand-mark-lockup { height: 42px; } }
  .brand--footer .brand-lockup-svg, .brand--footer .brand-mark-lockup { width: min(248px, 100%); height: auto; }
  .brand-dark-only { display: block; }
  .brand-light-only { display: none; }
  html[data-theme="light"] .brand-dark-only { display: none; }
  html[data-theme="light"] .brand-light-only { display: block; }
  @media (prefers-color-scheme: light) {
    html:not([data-theme]) .brand-dark-only { display: none; }
    html:not([data-theme]) .brand-light-only { display: block; }
  }

  .nav-primary { display: none; align-items: center; gap: 2px; margin-inline: auto; }
  .nav-primary ul { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; max-width: none; }
  .nav-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
    border-radius: 999px; text-decoration: none; color: var(--body); font: 550 .91rem/1 var(--font-sans);
    white-space: nowrap; transition: background .2s, color .2s;
  }
  .nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { background: var(--tint); color: var(--ink); }
  .nav-link[aria-current="page"] { box-shadow: 0 -2px 0 var(--brand) inset; }
  .nav-dropdown { position: relative; }
  .nav-popover {
    position: absolute; top: calc(100% + 10px); left: 0; width: 390px; z-index: 90;
    padding: 10px; border-radius: var(--r-m); border: 1px solid var(--line-strong);
    background: var(--surface); box-shadow: var(--shadow-2); display: grid; gap: 4px;
  }
  .nav-popover a {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink);
  }
  .nav-popover a .ic { margin-top: 2px; color: var(--brand-ink); }
  .nav-popover a span { display: flex; flex-direction: column; gap: 2px; }
  .nav-popover a:hover { background: var(--tint); }
  .nav-popover small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
  .nav-popover a.nav-pop-all {
    grid-template-columns: 1fr 20px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px;
    color: var(--brand-ink); font-weight: 600; font-size: .88rem;
  }

  .hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  @media (min-width: 1080px) { .nav-primary { display: flex; } .hdr-tools { margin-left: 0; } }
  .nav-cta-desk { display: none; }
  @media (min-width: 720px) { .nav-cta-desk { display: inline-flex; } }

  .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 44px; min-height: 40px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font: 600 .8rem/1 var(--font-mono); transition: border-color .2s, background .2s;
  }
  .theme-toggle:hover { border-color: var(--brand); background: var(--tint); }
  .ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .menu-trigger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
  @media (min-width: 1080px) { .menu-trigger { display: none; } }

  dialog.mobile-menu {
    border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none;
    background: var(--bg); color: var(--ink); opacity: 0;
    transition: opacity .28s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
  }
  dialog.mobile-menu[open] { opacity: 1; display: flex; flex-direction: column; }
  dialog.mobile-menu::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding-inline: var(--gut); border-bottom: 1px solid var(--line); }
  .mobile-menu-nav { display: grid; padding: 20px var(--gut); gap: 2px; align-content: start; flex: 1; overflow: auto; }
  .mobile-menu-nav a {
    display: flex; align-items: baseline; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--ink); font: 650 clamp(1.25rem, 4vw, 1.8rem)/1.15 var(--font-sans); letter-spacing: -0.02em;
  }
  .mobile-menu-nav a span { font: 600 .76rem/1 var(--font-mono); color: var(--warm-ink); min-width: 24px; }
  .mobile-menu-foot { padding: 16px var(--gut) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }

  .mbar {
    position: fixed; inset: auto 0 0; z-index: 65; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface-glass); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease-out);
  }
  .mbar.is-on { transform: none; }
  @media (min-width: 720px) { .mbar { display: none; } }

  /* Full-Screen 100svh Pipeline Video Hero + Kinetic 20% Rotator */
  .hero-banner {
    position: relative; min-height: max(100svh, 660px); display: flex; flex-direction: column;
    justify-content: flex-end; isolation: isolate; overflow: clip; padding-top: 96px;
    border-bottom: 1px solid var(--line);
  }
  .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
  .hero-media picture, .hero-media img, .hero-media video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  }
  @media (min-width: 820px) { .hero-media picture, .hero-media img, .hero-media video { object-position: right center; } }
  .hero-media picture, .hero-media img { z-index: 0; }
  .hero-video { z-index: 1; opacity: 0; transition: opacity 1s linear; }
  .hero-video.is-playing { opacity: 1; }
  .hero-scrim { position: absolute; inset: 0; z-index: 2; background: var(--hero-scrim-m); }
  @media (min-width: 820px) { .hero-scrim { background: var(--hero-scrim); } }

  .media-dark { display: block; } .media-light { display: none; }
  html[data-theme="light"] .media-dark { display: none; }
  html[data-theme="light"] .media-light { display: block; }
  @media (prefers-color-scheme: light) {
    html:not([data-theme]) .media-dark { display: none; }
    html:not([data-theme]) .media-light { display: block; }
  }

  .hero-vid-btn {
    position: absolute; top: 90px; right: var(--gut); z-index: 5; width: 42px; height: 42px;
    display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong);
    background: var(--surface-glass); color: var(--ink); backdrop-filter: blur(12px);
  }

  .hero-layout--editorial { position: relative; z-index: 3; padding-block: 24px clamp(28px, 4.5vh, 48px); }
  .hero-copy { max-width: min(740px, 100%); display: grid; gap: 18px; justify-items: start; }
  @media (min-width: 1020px) { .hero-copy { max-width: 56%; } }
  .hero-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .hero-chip-mark {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface-glass); color: var(--muted);
    font-size: .68rem; letter-spacing: .08em; backdrop-filter: blur(10px);
  }
  .hero-copy h1 { margin: 0; font-size: clamp(2.35rem, 4.9vw + 0.45rem, 4.7rem); line-height: 1.02; letter-spacing: -0.04em; }
  .hl-focus { position: relative; display: inline-block; color: var(--warm-ink); }
  .hl-focus em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
  .hl-ul { position: absolute; left: -2%; bottom: -0.08em; width: 104%; height: 0.22em; overflow: visible; pointer-events: none; }
  .hl-ul path { fill: none; stroke: var(--warm); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
  .hero-ghost { border-color: var(--line-strong); background: var(--surface-glass); backdrop-filter: blur(12px); color: var(--ink); }
  .hero-ghost:hover { background: var(--surface-2); border-color: var(--brand); }

  .hero-rotator {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-m);
    border: 1px solid var(--line-strong); background: var(--surface-glass); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-1); max-width: 600px; width: 100%;
  }
  .rot-drum {
    flex: none; padding: 10px 14px; border-radius: var(--r-s);
    background: var(--warm-soft); border: 1px solid color-mix(in srgb, var(--warm) 48%, transparent);
  }
  .rot-val { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; color: var(--warm-ink); line-height: 1; }
  .rot-content { min-width: 0; display: grid; gap: 4px; transition: opacity .2s, transform .25s var(--ease-out); }
  .hero-rotator.is-flipping .rot-content { opacity: 0; transform: translateY(6px); }
  .rot-meta { display: flex; align-items: center; gap: 8px; }
  .rot-vtag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--brand-ink); }
  .rot-kind { font-size: .64rem; letter-spacing: .1em; color: var(--dim); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
  .rot-line { font-size: .95rem; font-weight: 550; color: var(--ink); line-height: 1.3; margin: 0; }
  .hero-basis-line { font-size: .72rem; line-height: 1.45; color: var(--muted); max-width: 66ch; }

  .hero-rail { position: relative; z-index: 3; border-top: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(12px); }
  .hero-rail-in { display: flex; align-items: center; gap: 14px; min-height: 60px; overflow-x: auto; scrollbar-width: none; }
  .hero-rail-in::-webkit-scrollbar { display: none; }
  .rail-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 600 .68rem/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); }
  .rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
  .rail-chips { display: flex; gap: 8px; list-style: none; padding: 10px 0; margin: 0; max-width: none; flex: 1; }
  .rail-chips a {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--body);
    font: 550 .78rem/1 var(--font-mono); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
  }
  .rail-chips a:hover { border-color: var(--brand); color: var(--ink); background: var(--surface-2); }

  /* Dual-Track 20% Scrolling Marquee Band */
  .marquee-band { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 18px 16px; overflow: hidden; }
  .marquee-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .marquee-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
  .mq-viewport { display: grid; gap: 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .mq-track { display: flex; width: max-content; }
  .mq-group { display: flex; gap: 12px; padding-right: 12px; }
  .motion-ok .mq-track--fwd { animation: mq-left 48s linear infinite; }
  .motion-ok .mq-track--rev { animation: mq-right 56s linear infinite; }
  .marquee-band.is-paused .mq-track, .marquee-band:hover .mq-track { animation-play-state: paused !important; }
  @keyframes mq-left { to { transform: translateX(-50%); } }
  @keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
  .mq-card {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong); white-space: nowrap;
  }
  .mq-vtag {
    font: 700 .64rem/1 var(--font-mono); letter-spacing: .1em; padding: 4px 8px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-ink);
  }
  .mq-vtag[data-v="sports"] { background: var(--ok-soft); color: var(--ok); }
  .mq-vtag[data-v="life"] { background: var(--warm-soft); color: var(--warm-ink); }
  .mq-body { font-size: .9rem; font-weight: 600; color: var(--ink); }
  .mq-body--serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: .96rem; color: var(--warm-ink); }
  .mq-disclosure { margin-top: 12px; font-size: .72rem; line-height: 1.45; color: var(--dim); }

  /* Giant Tabular Facts Band */
  .facts { background: var(--bg); border-bottom: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
  .facts__grid { display: grid; grid-template-columns: 1fr 1fr; }
  .fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 24px 16px 24px 0; border-top: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .fact dd { font: 700 clamp(2.85rem, 6.2vw, 5.1rem)/.92 var(--font-sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
  .fact dd i { font-style: normal; color: var(--warm-ink); margin-inline: 0.03em; }
  .fact dt { font-size: .9rem; color: var(--muted); max-width: 24ch; line-height: 1.38; }
  @media (min-width: 860px) {
    .facts__grid { grid-template-columns: repeat(4, 1fr); }
    .fact { padding: 30px 24px 30px 0; border-top: 0; }
    .fact + .fact { padding-left: 26px; border-left: 1px solid var(--line); }
  }
  .facts__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-block: 4px; }
  .facts__foot details.it { border-top: 0; flex: 1 1 360px; }

  /* Section Bands & Workload Explorer */
  .section-band { padding-block: clamp(52px, 6.8vw, 96px); }
  .section-band--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
  .we-tabs-wrap { margin-bottom: 24px; }
  .we-grid {
    display: grid; gap: clamp(24px, 3.6vw, 44px); grid-template-columns: 1fr;
    padding: clamp(22px, 3.2vw, 38px); border-radius: var(--r-l);
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  }
  @media (min-width: 940px) { .we-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
  .we-controls { display: grid; gap: 20px; align-content: start; }
  .we-panel-head h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); margin: 10px 0 8px; }
  .we-bullets { padding-left: 1.2rem; display: grid; gap: 7px; color: var(--body); font-size: .94rem; }
  .we-sliders { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
  .we-slider-row { display: grid; gap: 2px; }
  .we-sl-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; }
  .we-sl-top output { color: var(--brand-ink); font-weight: 700; }
  .we-readout { display: grid; gap: 16px; align-content: start; }
  .we-plate { aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
  .we-plate img { width: 100%; height: 100%; object-fit: cover; }
  .we-metrics { display: grid; gap: 10px; margin: 0; }
  .we-stat { padding: 14px 16px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
  .we-stat.is-accent { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-soft); }
  .we-stat dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .we-stat dd { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.42rem); font-weight: 700; color: var(--ink); }
  .we-stat.is-accent dd { color: var(--brand-ink); }
  .we-caveat { font-size: .74rem; line-height: 1.45; color: var(--dim); }

  /* Broadcast Reference Grading Monitor CompareStage */
  .compare-card {
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-l);
    overflow: hidden; box-shadow: var(--shadow-2); margin: 20px 0;
  }
  .compare-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--line); background: var(--surface-2);
  }
  .compare-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .compare-group select {
    min-height: 38px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong);
    background: var(--field); color: var(--ink); font: 550 .82rem/1 var(--font-mono); max-width: 100%;
  }
  .compare-viewport {
    position: relative; width: 100%; aspect-ratio: 16 / 9; background: #07080B;
    overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize;
  }
  .compare-viewport.is-zoomed { cursor: grab; touch-action: none; }
  .compare-viewport.is-panning { cursor: grabbing; }
  .compare-viewport canvas { width: 100%; height: 100%; display: block; }
  .compare-tag {
    position: absolute; top: 14px; z-index: 3; padding: 5px 10px; border-radius: 6px;
    background: rgba(7, 8, 11, 0.84); border: 1px solid rgba(255,255,255,0.2);
    color: #F5F7FA; font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; pointer-events: none;
  }
  .compare-tag--left { left: 14px; } .compare-tag--right { right: 14px; }
  .compare-hud {
    position: absolute; left: 14px; bottom: 12px; z-index: 3; padding: 5px 10px; border-radius: 6px;
    background: rgba(7, 8, 11, 0.84); border: 1px solid rgba(255,255,255,0.16); color: #2AD4C5;
    font-size: .7rem; letter-spacing: .08em; pointer-events: none;
  }
  .compare-pip {
    position: absolute; right: 14px; bottom: 14px; z-index: 6; width: 144px; aspect-ratio: 16 / 9;
    border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 8px 24px rgba(0,0,0,0.75);
    background: #000; pointer-events: none;
  }
  .compare-pip canvas { width: 100%; height: 100%; }
  .compare-pip-box { position: absolute; border: 2px solid #E86A24; box-shadow: 0 0 0 1px #000; }
  .compare-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #2AD4C5; box-shadow: 0 0 14px rgba(42,212,197,0.75); pointer-events: none; z-index: 4; }
  .compare-knob {
    position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%;
    background: #0B0E14; color: #F5F7FA; border: 2px solid #2AD4C5; display: grid; place-items: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.72);
  }
  .compare-range-a11y { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 5; cursor: ew-resize; }
  .compare-viewport.is-zoomed .compare-range-a11y { pointer-events: none; }

  .compare-scrub-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px clamp(14px, 2vw, 22px);
    background: #0D1017; color: #C5CEDB; border-top: 1px solid rgba(255,255,255,0.1); font: 500 .78rem/1 var(--font-mono);
  }
  .compare-scrub-btns { display: flex; gap: 6px; }
  .compare-scrub-bar input[type="range"] { flex: 1; min-width: 140px; }
  .compare-scrub-bar button {
    min-height: 32px; padding: 0 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.22);
    background: #161B26; color: #F5F7FA; font: 600 .74rem/1 var(--font-mono);
  }
  .compare-scrub-bar button:hover { border-color: #2AD4C5; }

  .compare-filmstrip {
    display: flex; gap: 10px; overflow-x: auto; padding: 12px clamp(14px, 2vw, 22px);
    background: var(--bg-alt); border-top: 1px solid var(--line); scroll-snap-type: x proximity;
  }
  .film-thumb {
    position: relative; flex: none; width: 138px; display: grid; gap: 5px; text-align: left;
    padding: 6px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface);
    scroll-snap-align: start; transition: border-color .2s, transform .25s var(--ease-out);
  }
  .film-thumb:hover { border-color: var(--brand); transform: translateY(-2px); }
  .film-thumb[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
  .film-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #07080B; }
  .film-pct {
    position: absolute; top: 10px; right: 10px; padding: 3px 6px; border-radius: 4px;
    background: rgba(7,8,11,0.86); color: #2AD4C5; font-size: .64rem; font-weight: 700;
  }
  .film-cap { font-size: .68rem; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .compare-telemetry { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
  .compare-metric { background: var(--surface); padding: 14px 18px; display: grid; gap: 4px; }
  .compare-metric dt { font: 600 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .compare-metric dd { margin: 0; font: 700 1.04rem/1.25 var(--font-mono); color: var(--ink); }
  .compare-metric dd.is-accent { color: var(--brand-ink); }

  /* Animated 5-Stage SVG Pipeline + Draggable CMP Wipe */
  .pipeline-diagram { padding: clamp(16px, 2.5vw, 28px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
  .pa-flow { width: 100%; height: auto; }
  .pa-box { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
  .pa-box--active { fill: var(--plate); stroke: var(--warm); stroke-width: 2; }
  .pa-step { font: 700 11px/1 var(--font-mono); fill: var(--brand-ink); letter-spacing: 0.1em; }
  .pa-step--warm { fill: var(--warm-ink); }
  .pa-title { font: 700 18px/1 var(--font-sans); fill: var(--ink); }
  .pa-sub { font: 400 13px/1 var(--font-sans); fill: var(--muted); }
  .pa-pill { fill: var(--warm-soft); stroke: var(--warm); stroke-width: 1; }
  .pa-pill-txt { font: 700 10px/1 var(--font-mono); fill: var(--warm-ink); letter-spacing: 0.1em; }
  .pa-lbl-dim { font: 600 10.5px/1 var(--font-mono); fill: var(--dim); letter-spacing: 0.12em; }
  .pa-link { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 6 6; }
  .pa-link--warm { stroke: var(--warm); }
  .pa-bypass { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
  .motion-ok .pa-link { animation: pipe-flow 1.4s linear infinite; }
  @keyframes pipe-flow { to { stroke-dashoffset: -24; } }

  .cmp-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .cmp {
    --pos: 18%; position: relative; border-radius: var(--r-l); overflow: hidden;
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); isolation: isolate; touch-action: pan-y; cursor: ew-resize; user-select: none;
  }
  .cmp__side { padding: clamp(20px, 3vw, 40px); }
  .cmp__side--old { background: var(--cmp-old-bg); color: var(--cmp-old-text); }
  .cmp__side--new { position: absolute; inset: 0; background: var(--cmp-new-bg); color: var(--cmp-new-text); clip-path: inset(0 0 0 var(--pos)); }
  .cmp__title {
    display: inline-flex; align-items: center; font: 700 .74rem/1 var(--font-mono); letter-spacing: .12em;
    text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 16px;
  }
  .cmp__side--new .cmp__title { display: flex; width: max-content; margin-left: auto; background: var(--cmp-knob); color: var(--cmp-knob-ink); border-color: transparent; }
  .cmp__rows { list-style: none; padding: 0; margin: 0; max-width: none; }
  .cmp__rows li { display: grid; gap: 4px 24px; padding: clamp(12px, 1.5vw, 18px) 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); min-height: 92px; align-content: center; }
  @media (min-width: 760px) { .cmp__rows li { grid-template-columns: 180px 1fr; align-items: baseline; } }
  .cmp__rows span { font: 600 .7rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
  .cmp__rows p { font-size: clamp(1rem, 1.15vw + 0.65rem, 1.4rem); font-weight: 600; line-height: 1.28; max-width: none; }
  .cmp__side--old p { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
  .cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cmp-line); pointer-events: none; z-index: 2; }
  .cmp__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px; display: grid; grid-auto-flow: column; place-content: center; border-radius: 50%; background: var(--cmp-knob); color: var(--cmp-knob-ink); box-shadow: var(--shadow-2); }
  .cmp__handle .ic { width: 18px; height: 18px; margin: 0 -2px; }
  .cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 3; cursor: ew-resize; }

  /* Sticky 4-Stage Scrollytelling */
  .story { display: grid; gap: 28px; }
  .story__visual { display: none; }
  .step { display: grid; gap: 12px; justify-items: start; padding-bottom: 32px; }
  .step__img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
  .step__img img { width: 100%; height: 100%; object-fit: cover; }
  .step__n { font-size: .74rem; letter-spacing: .14em; color: var(--warm-ink); display: flex; align-items: center; gap: 10px; }
  .step__n::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .5; }
  .step h3 { font-size: clamp(1.45rem, 2vw + 0.8rem, 2.25rem); margin: 0; }
  @media (min-width: 960px) {
    .story { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 84px); align-items: start; }
    .story__visual { display: block; position: sticky; top: max(96px, calc(50vh - 280px)); }
    .story__frame { position: relative; aspect-ratio: 4 / 4.2; max-height: 560px; width: 100%; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); background: var(--surface); }
    .story__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease-out); }
    .story__img.is-on { opacity: 1; transform: none; }
    .story__img img { width: 100%; height: 100%; object-fit: cover; }
    .story__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62), transparent 40%); pointer-events: none; }
    .story__count { position: absolute; left: 22px; bottom: 34px; z-index: 2; color: #fff; display: flex; align-items: baseline; gap: 8px; font-size: .82rem; }
    .story__count b { font-size: 2.1rem; font-weight: 700; }
    .story__bar { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .story__bar i { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
    .story__bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .65s var(--ease-out); }
    .story__bar i.is-on::after { transform: none; }
    .step__img { display: none; }
    .step { min-height: min(56vh, 460px); align-content: center; opacity: .34; transition: opacity .5s; }
    .step.is-on { opacity: 1; }
  }

  /* Split Inner Page Editorial Hero */
  .phero { padding: clamp(104px, 12vw, 154px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
  .phero__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
  @media (min-width: 940px) { .phero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
  .phero__copy { display: grid; gap: 16px; justify-items: start; }
  .phero h1 { margin: 0; font-size: clamp(2.1rem, 4.2vw + 0.5rem, 4.1rem); }
  .phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
  .phero__art { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); background: var(--surface); }
  .phero__art img { width: 100%; height: 100%; object-fit: cover; }

  .stage-plate { position: relative; margin: 22px 0 32px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; background: var(--surface); }
  .stage-plate img { width: 100%; height: 100%; object-fit: cover; }

  /* Cards, Claims, Tables, Gallery, Brand Board */
  .claim-pair, .split { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 24px 0; }
  @media (min-width: 820px) { .claim-pair, .split { grid-template-columns: 1fr 1fr; } }
  .triptych { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0; }
  @media (min-width: 780px) { .triptych { grid-template-columns: repeat(3, 1fr); } }
  .claim-col, .surface-card, .triptych > section, .split > section {
    position: relative; background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-l); padding: clamp(20px, 2.8vw, 32px); box-shadow: var(--shadow-1);
    display: grid; gap: 12px; align-content: start;
  }
  .claim-value { font: 700 clamp(1.7rem, 2.8vw, 2.5rem)/1.05 var(--font-mono); color: var(--brand-ink); letter-spacing: -0.04em; }
  .claim-col ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
  .claim-col li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font: 600 .8rem/1.2 var(--font-mono); color: var(--ink); }

  .results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 18px 0 10px; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); }
  .kicker { font: 700 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--warm-ink); }
  .instrument-frame { margin: 26px 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: clamp(14px, 2.2vw, 24px); box-shadow: var(--shadow-1); display: grid; gap: 14px; }
  .fig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .fig-index { font: 700 .78rem/1 var(--font-mono); letter-spacing: .14em; color: var(--brand-ink); }
  .fig-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .fig-controls select { min-height: 36px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font: 500 .84rem/1 var(--font-mono); }
  .svg-zoom-viewport { position: relative; overflow: hidden; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-2); }
  .svg-slot { transform-origin: 0 0; transition: transform .22s var(--ease-out); }
  .svg-slot svg, .svg-slot img { width: 100%; height: auto; }
  .chart-img-dark { display: block; } .chart-img-light { display: none; }
  html[data-theme="light"] .chart-img-dark { display: none; } html[data-theme="light"] .chart-img-light { display: block; }
  @media (prefers-color-scheme: light) { html:not([data-theme]) .chart-img-dark { display: none; } html:not([data-theme]) .chart-img-light { display: block; } }
  .readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border-radius: var(--r-s); background: var(--plate); border: 1px solid var(--line); font: 500 .9rem/1.45 var(--font-mono); color: var(--ink); }
  .readout-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-ink); }

  .table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); margin: 18px 0; }
  .stack-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
  .stack-table th, .stack-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
  .stack-table thead th { background: var(--surface-2); font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .stack-table tbody tr:hover, .stack-table tbody tr.is-highlighted { background: var(--brand-soft); }

  .gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); margin: 24px 0; }
  .gallery-item { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; box-shadow: var(--shadow-1); text-align: left; width: 100%; transition: transform .3s var(--ease-out), border-color .2s; }
  .gallery-item:hover { transform: translateY(-2px); border-color: var(--brand); }
  .gallery-item[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
  .gallery-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: #07080B; }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

  .brand-board { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 22px 0; }
  .brand-swatch { border-radius: var(--r-l); border: 1px solid var(--line-strong); padding: 26px; display: grid; gap: 16px; align-content: space-between; box-shadow: var(--shadow-1); }
  .brand-swatch--dark { background: #07080B; color: #F5F7FA; } .brand-swatch--dark a { color: #5BE3D7; }
  .brand-swatch--light { background: #F5F2EB; color: #14181F; } .brand-swatch--light a { color: #0B5D56; }
  .brand-swatch img { max-width: 240px; height: auto; } .brand-swatch--mark img { width: 72px; height: 72px; }
  .brand-swatch-meta { display: flex; justify-content: space-between; gap: 8px; font: 600 .76rem/1.3 var(--font-mono); }

  /* Fine pointer masked 1px specular border + radial fill */
  @media (hover: hover) and (pointer: fine) {
    .spot { position: relative; }
    .spot::before {
      content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
      background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--spot-line), transparent 60%);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
      opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2;
    }
    .spot::after {
      content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--spot-fill), transparent 65%);
      opacity: 0; transition: opacity .35s;
    }
    .spot:hover::before, .spot:hover::after { opacity: 1; }
  }

  /* Symmetrical Centered Contact Studio + Drawer */
  .contact-studio {
    max-width: 1040px; width: 100%; margin-inline: auto;
    padding: clamp(24px, 4vw, 44px); border-radius: var(--r-l);
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  }
  .contact-head { text-align: center; max-width: 660px; margin: 0 auto 28px; display: grid; gap: 10px; justify-items: center; }
  .contact-head h2 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.3rem); }
  .contact-head p { color: var(--muted); font-size: .96rem; }
  .contact-form { display: grid; gap: 18px; }
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px 22px; }
  @media (min-width: 680px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .contact-full { grid-column: 1 / -1; }
  .field { display: grid; gap: 6px; font: 600 .86rem/1.3 var(--font-sans); color: var(--ink); text-align: left; }
  .field em { font-style: normal; color: var(--warm-ink); }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 11px 13px; border-radius: var(--r-s);
    border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font-weight: 450;
  }
  .field textarea { min-height: 112px; resize: vertical; }
  .contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .contact-verify { display: grid; justify-items: center; gap: 8px; padding-top: 4px; min-height: 82px; }
  .cf-turnstile-slot { display: flex; justify-content: center; min-height: 65px; }
  .ts-hint { font-size: .72rem; color: var(--dim); text-align: center; margin: 0; }
  .contact-submit { display: grid; justify-items: center; gap: 10px; }
  .contact-alt { font-size: .78rem; color: var(--muted); margin: 0; }
  .form-note { margin: 0; font: 600 .86rem/1.4 var(--font-mono); color: var(--brand-ink); text-align: center; }

  dialog.contact-drawer {
    margin: auto; border: 1px solid var(--line-strong); border-radius: var(--r-l);
    background: var(--surface); color: var(--ink); padding: clamp(20px, 3vw, 34px);
    width: min(760px, calc(100vw - 24px)); max-height: 92dvh; overflow: auto; box-shadow: var(--shadow-2);
  }
  dialog.contact-drawer::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); }
  .contact-drawer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .contact-drawer-top h2 { margin: 6px 0 0; font-size: 1.5rem; }

  /* Monument Footer */
  .site-footer {
    background: var(--bg-alt); border-top: 1px solid var(--line-strong);
    padding: clamp(52px, 6vw, 88px) 0 calc(76px + env(safe-area-inset-bottom));
  }
  @media (min-width: 720px) { .site-footer { padding-bottom: 36px; } }
  .footer-shell { display: grid; gap: clamp(32px, 4.5vw, 56px); }
  .footer-cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
    padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); border: 1px solid var(--line-strong);
    background: var(--surface); box-shadow: var(--shadow-2);
  }
  .footer-cta-band h2 { margin: 8px 0 8px; font-size: clamp(1.35rem, 2.2vw, 2rem); }
  .footer-cta-band p { color: var(--muted); max-width: 60ch; }

  .footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 0.85fr)); } }
  .footer-brand-col { display: grid; gap: 14px; align-content: start; justify-items: start; }
  .footer-statement { color: var(--muted); font-size: .92rem; max-width: 36ch; }
  .footer-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .footer-col h3 { margin: 0 0 12px; font: 700 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warm-ink); }
  .footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: none; }
  .footer-col a { color: var(--body); text-decoration: none; font-size: .92rem; }
  .footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--brand-ink); text-decoration: underline; }

  .footer-monument { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); opacity: 0.14; pointer-events: none; overflow: visible; }
  .footer-monument svg { width: 100%; height: auto; }
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .74rem; color: var(--dim); padding-top: 8px; }

  /* Demo Studio Mastering Console */
  .demo-steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 22px 0 28px; }
  @media (min-width: 760px) { .demo-steps { grid-template-columns: repeat(3, 1fr); } }
  .demo-step-pill { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
  .demo-step-pill.is-active { border-color: var(--brand); background: var(--brand-soft); }
  .demo-step-num { font: 700 .86rem/1 var(--font-mono); color: var(--warm-ink); }
  .demo-dropzone {
    border: 2px dashed var(--line-strong); border-radius: var(--r-m); padding: 28px 20px; text-align: center;
    cursor: pointer; background: var(--surface-2); transition: border-color .2s, background .2s;
  }
  .demo-dropzone:hover, .demo-dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
  .demo-url-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .demo-url-row input { flex: 1; min-width: 210px; min-height: 44px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); }
  .demo-meter-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
  .demo-meter-fill { height: 100%; width: 0%; background: var(--brand); transition: width .2s; }
  .demo-meter-fill--muted { background: var(--warm); }
  .demo-meter-fill.is-indeterminate { width: 38% !important; animation: mforja-meter-pulse 1.5s ease-in-out infinite; }
  @keyframes mforja-meter-pulse { 0%, 100% { opacity: .45; transform: translateX(0); } 50% { opacity: 1; transform: translateX(155%); } }
  .demo-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; margin: 14px 0 18px; }
  .demo-kpi-card { padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
  .demo-kpi-label { font: 600 .72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .demo-kpi-val { font: 700 1.28rem/1.15 var(--font-mono); color: var(--ink); }
  .demo-kpi-val.is-pos { color: var(--brand); }
  .demo-kpi-sub { font: 500 .76rem/1.35 var(--font-mono); color: var(--muted); }
  .demo-parity-bar { font-size: .8rem; color: var(--muted); padding: 10px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); margin: 12px 0; }
  .demo-gates-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
  .demo-gate-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font: 600 .72rem/1.1 var(--font-mono); letter-spacing: .03em; font-variant-numeric: tabular-nums slashed-zero;
    border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--body);
  }
  .demo-gate-pill.is-pass {
    background: var(--ok-soft); color: var(--ok);
    border-color: color-mix(in srgb, var(--ok) 42%, transparent);
  }
  .demo-gate-pill.is-warn {
    background: var(--warm-soft); color: var(--warm-ink);
    border-color: color-mix(in srgb, var(--warm) 46%, transparent);
  }
  .demo-row-delta { background: var(--surface-2); font-weight: 600; }
  .demo-probe-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .86rem; margin: 0; }
  .demo-probe-dl dt { color: var(--muted); } .demo-probe-dl dd { margin: 0; word-break: break-all; }
  .demo-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
  .demo-card-sub { font-size: .92rem; color: var(--muted); }
  .demo-prog-label { display: flex; justify-content: space-between; font: 600 .82rem/1 var(--font-mono); margin-bottom: 6px; }
  .pwa-toast { position: fixed; right: 16px; bottom: 76px; z-index: 75; display: flex; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font: 600 .78rem/1 var(--font-mono); }
  @media (min-width: 720px) { .pwa-toast { bottom: 18px; } }
  .marquee-attribution, .facts__attribution, .compare-corpus-note, .we-billing-note {
    font-size: .74rem; line-height: 1.5; color: var(--dim); margin: 8px 0 0;
  }
  .compare-corpus-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
  .facts__attribution { flex: 1 1 100%; margin: 0; padding-bottom: 10px; }
  .marquee-attribution { max-width: 96ch; }
  .sec__head--pipeline { margin-top: clamp(40px, 6vw, 72px); margin-bottom: 24px; }
  .results-measured-note { font-size: .88rem; color: var(--muted); }
  .home-corpus-note { margin-top: 16px; }
  .triptych--solutions { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
  .compare-group--spaced { margin-bottom: 14px; }
  .gallery-clip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
  .gallery-clip-num { font-size: .78rem; color: var(--brand-ink); }
  .gallery-clip-title { color: var(--ink); font-size: 1rem; }
  .gallery-clip-stat { font-size: .82rem; color: var(--body); }
  .gallery-clip-sub { font-size: .78rem; color: var(--muted); }
  .gallery-clip-desc { font-size: .8rem; color: var(--dim); line-height: 1.45; }
  .gallery-clip-credit { font-size: .74rem; color: var(--muted); }
  .site-footer--demo { margin-top: 48px; }
  .we-billing { gap: 10px; }
  .we-billing .seg { width: fit-content; }
  .footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 0; margin: 12px 0 0; }
  .footer-social a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 550 .82rem/1 var(--font-mono);
    text-decoration: none; transition: border-color .2s, color .2s, background .2s;
  }
  .footer-social a:hover { border-color: var(--brand); color: var(--ink); background: var(--surface-2); }
}

@layer motion {
  html.theme-swap::view-transition-old(root) { animation: none; z-index: 1; }
  html.theme-swap::view-transition-new(root) { animation: theme-wipe .65s var(--ease-out) both; z-index: 2; }
  @keyframes theme-wipe { from { clip-path: circle(0 at var(--tvx) var(--tvy)); } to { clip-path: circle(150vmax at var(--tvx) var(--tvy)); } }
  .motion-ok .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .85s var(--ease-out); }
  .motion-ok .rv.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    ::view-transition-new(root), ::view-transition-old(root) { animation: none !important; }
    .motion-ok .rv { opacity: 1; transform: none; }
  }
}