/* BETA Cutting Room website. Light theme. Self-hosted font only; no external resources.
   Motion rules live under `.motion`, which the page sets only when the visitor allows motion.
   Without it (reduced motion, no JavaScript) everything shows in its final state. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f4f2eb;
  --surface-3: #ebe8de;
  --ink: #10231c;
  --ink-2: #364740;
  --muted: #55645d;
  --line: #e3e0d5;
  --line-strong: #c7c3b4;
  --brand: #176b52;
  --brand-hover: #0f5641;
  --brand-ink: #ffffff;
  --brand-soft: #e7f3ec;
  --brand-soft-2: #cde8da;
  --amber: #f4b740;
  --amber-soft: #fdf1d6;
  --amber-ink: #5f4100;
  --coral: #e0583a;
  --coral-ink: #b13a1d;
  --coral-soft: #fce9e3;
  --sky: #2f74c0;
  --sky-soft: #e5effa;
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);
  --ok: #17703f;
  --ok-soft: #e4f3e9;
  --warn-bg: #fdf3dc;
  --warn-line: #e2b54a;
  --warn-ink: #573e00;
  --prov-bg: #fde9df;
  --prov-line: #e89a76;
  --prov-ink: #7a2e0b;
  --pos: #2f74c0;
  --neg: #e0583a;
  --ref: #e07a1f;
  --beta: #2f74c0;
  --grid: #e3e0d5;
  --zero: #8a877d;
  --s1: #2f74c0;
  --s2: #d98b0f;
  --s3: #1f8a63;
  --fabric: #eef2f0;
  --mat-line: rgba(23, 107, 82, 0.07);
  --shadow-s: 0 1px 2px rgba(16, 35, 28, 0.05), 0 2px 8px rgba(16, 35, 28, 0.04);
  --shadow: 0 1px 2px rgba(16, 35, 28, 0.05), 0 8px 24px rgba(16, 35, 28, 0.07);
  --shadow-l: 0 2px 6px rgba(16, 35, 28, 0.06), 0 24px 60px rgba(16, 35, 28, 0.13);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-back: cubic-bezier(0.25, 0.9, 0.3, 1.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.62 var(--font); text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.55em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 760; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); font-weight: 720; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 660; letter-spacing: -0.01em; line-height: 1.25; }
.h-small { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li + li { margin-top: 0.3em; }
a { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.15s, text-decoration-thickness 0.15s; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.3em; background: var(--surface); }
pre { background: #0f2019; color: #e3efe9; border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.55; margin: 0 0 1em; }
pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; overflow-wrap: normal; color: inherit; }
.break { word-break: break-all; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.nowrap { white-space: nowrap; }
.placeholder-text { color: var(--muted); font-style: italic; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 650; }
.skip-link:focus { top: 1rem; color: var(--brand-ink); }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(16, 35, 28, 0.06); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { transition: transform 0.35s var(--ease-back); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--display); font-size: 1.16rem; font-weight: 500; letter-spacing: -0.02em; color: var(--brand); white-space: nowrap; }
.brand-name b { font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.logo-mark { flex: none; display: block; }
.nav-desktop { margin-left: auto; }
.nav-list, .nav-list-mobile, .footer-list { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 0.15rem; }
.nav-list li + li, .nav-list-mobile li + li, .footer-list li + li { margin-top: 0; }
.nav-list a { position: relative; display: block; padding: 0.5rem 0.75rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: 0.97rem; }
.nav-list a::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.28rem; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface-2); }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 14rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); padding: 0.4rem; }
.motion .nav-mobile[open] nav { animation: drop-in 0.22s var(--ease) both; }
.nav-list-mobile a { display: block; padding: 0.75rem 0.9rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 560; }
.nav-list-mobile a:hover { background: var(--surface-2); }
.nav-list-mobile a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 959px) { .nav-desktop { display: none; } .header-tools { margin-left: auto; } }
@media (min-width: 960px) { .nav-mobile { display: none; } }
@media (max-width: 440px) { .header-cta { display: none !important; } }
@media (max-width: 360px) { .brand-name { font-size: 1rem; } }

/* ---------- Buttons, pills and badges ---------- */
.btn { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.6rem; min-height: 2.9rem; padding: 0.65rem 1.2rem; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; line-height: 1.2; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 1px rgba(16, 35, 28, 0.15), 0 6px 16px rgba(23, 107, 82, 0.25); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); box-shadow: 0 2px 4px rgba(16, 35, 28, 0.15), 0 12px 26px rgba(23, 107, 82, 0.32); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.btn-secondary:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.93rem; border-radius: 10px; }
.btn-large { flex-direction: column; align-items: flex-start; gap: 0.05rem; padding: 0.7rem 1.3rem; min-height: 3.6rem; }
.btn-label { font-size: 1.02rem; }
.btn-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.85; }
.btn-disabled, .btn-disabled:hover { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-strong); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; transition: transform 0.2s var(--ease), border-color 0.2s; }
.btn-icon:hover { border-color: var(--brand); transform: scale(1.06); }
.btn-icon:active { transform: scale(0.94); }
.btn-icon .i-play { display: none; }
.btn-icon.is-paused .i-play { display: block; }
.btn-icon.is-paused .i-pause { display: none; }
.badge { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.badge-sample { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.badge-provisional { background: var(--prov-bg); border-color: var(--prov-line); color: var(--prov-ink); }
.badge-final { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 620; color: var(--ink-2); text-decoration: none; box-shadow: var(--shadow-s); }
a.pill { transition: transform 0.2s var(--ease), border-color 0.2s; }
a.pill:hover { transform: translateY(-1px); border-color: var(--amber); color: var(--ink); text-decoration: none; }
.pill-fun { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 55%, transparent); color: var(--amber-ink); }
.pill-fun span { color: #b07800; }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: 0.2rem; }
.link-arrow span { display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.replay { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.replay:hover { border-color: var(--brand); color: var(--brand); }
.replay:hover svg { transform: rotate(-200deg); }
.replay svg { transition: transform 0.5s var(--ease); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.25rem, 2.25rem + 4vw, 6rem) 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 50rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.35em; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 750; color: var(--brand); margin-bottom: 0.8rem; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 4px, transparent 4px 7px); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.prose { max-width: 48rem; }
.prose h3 { margin-top: 1.75rem; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

/* Inner page heads: a cutting-mat grid and a few floating pattern pieces. */
.page-head { position: relative; overflow: hidden; padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.75rem); background:
  linear-gradient(var(--mat-line) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, var(--mat-line) 1px, transparent 1px) 0 0 / 32px 32px,
  radial-gradient(ellipse 60% 90% at 90% 0%, var(--brand-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 0.35em; max-width: 50rem; }
.page-head-art { position: absolute; right: max(1rem, calc((100vw - 76rem) / 2)); top: 50%; width: 15rem; height: 11rem; transform: translateY(-50%); pointer-events: none; }
.page-head-art span { position: absolute; border: 2px solid; border-radius: 12px 40px 12px 12px; }
.page-head-art span:nth-child(1) { width: 6rem; height: 8rem; right: 8rem; top: 1rem; border-color: var(--s1); background: color-mix(in srgb, var(--s1) 12%, var(--surface)); transform: rotate(-8deg); }
.page-head-art span:nth-child(2) { width: 5.5rem; height: 6.5rem; right: 2rem; top: 0; border-color: var(--s2); background: color-mix(in srgb, var(--s2) 14%, var(--surface)); border-radius: 40px 12px 12px 12px; transform: rotate(6deg); }
.page-head-art span:nth-child(3) { width: 4rem; height: 4.5rem; right: 4.5rem; top: 6.5rem; border-color: var(--s3); background: color-mix(in srgb, var(--s3) 14%, var(--surface)); border-radius: 50% 50% 12px 12px; transform: rotate(-3deg); }
@media (max-width: 899px) { .page-head-art { display: none; } }
.motion .page-head h1, .motion .page-head .lead, .motion .page-head .eyebrow { animation: rise 0.7s var(--ease) both; }
.motion .page-head .lead { animation-delay: 0.08s; }
.motion .page-head-art span { animation: piece-in 0.9s var(--ease-back) both; }
.motion .page-head-art span:nth-child(2) { animation-delay: 0.12s; }
.motion .page-head-art span:nth-child(3) { animation-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); background:
  linear-gradient(var(--mat-line) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, var(--mat-line) 1px, transparent 1px) 0 0 / 32px 32px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob-1 { width: 46rem; height: 46rem; right: -14rem; top: -18rem; background: radial-gradient(circle, rgba(23, 107, 82, 0.13), transparent 65%); }
.blob-2 { width: 34rem; height: 34rem; left: -12rem; bottom: -20rem; background: radial-gradient(circle, rgba(244, 183, 64, 0.2), transparent 65%); }
.blob-3 { width: 24rem; height: 24rem; right: 30%; bottom: -12rem; background: radial-gradient(circle, rgba(47, 116, 192, 0.1), transparent 65%); }
.motion .blob { animation: blob-in 1.6s var(--ease) both; }
.motion .blob-2 { animation-delay: 0.15s; }
.motion .blob-3 { animation-delay: 0.3s; }
.hero-inner { position: relative; display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1.08fr; gap: 3rem; } }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.hero-title { font-size: clamp(2.2rem, 1.35rem + 2.9vw, 3.45rem); margin-bottom: 0.45em; }
.hl { color: var(--brand); text-decoration: underline dashed var(--amber); text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.hero-lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); max-width: 37rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.9rem 0 1.4rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: 0.95rem; font-weight: 580; }
.trust-list li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-list li::before { content: ""; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--brand-soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23176b52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.humble { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.6rem 0 0; padding: 0.85rem 1rem; max-width: 37rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; font-size: 0.97rem; color: var(--ink-2); box-shadow: var(--shadow-s); }
.humble strong { color: var(--ink); }
.humble-icon { color: var(--coral); flex: none; margin-top: 0.05rem; }
.humble-icon .icon { width: 22px; height: 22px; }
.motion .hero-copy > * { animation: rise 0.75s var(--ease) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.motion .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.motion .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.motion .hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.motion .hero-copy > :nth-child(6) { animation-delay: 0.38s; }
.motion .humble .icon { animation: beat 0.9s var(--ease) 1.4s 2; }

.hero-figure { margin: 0; perspective: 1000px; }
.hero-figure figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.8rem; text-align: center; }
.hero-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s var(--ease); }
.motion .hero-figure { animation: card-in 0.9s var(--ease) 0.1s both; }
.window-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.window-bar i { width: 0.68rem; height: 0.68rem; border-radius: 50%; background: var(--line-strong); }
.window-bar i:nth-child(1) { background: #ec6a52; }
.window-bar i:nth-child(2) { background: #f2b740; }
.window-bar i:nth-child(3) { background: #3fb27f; }
.window-bar span:first-of-type { margin-left: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar .badge { margin-left: auto; }
.hero-stage { padding: 1rem 1rem 0.4rem; }
.hero-status { display: grid; margin: 0.3rem 0 0.4rem; min-height: 1.6rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); padding-right: 6.5rem; }
.st { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.45rem; }
.st-1 { opacity: 0; }
.tick { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.78rem; }
.spinner { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid var(--brand-soft-2); border-top-color: var(--brand); }
.hero-card .replay { position: absolute; right: 0.8rem; bottom: 0.7rem; }

/* Hero marker animation: pieces fly in, the length line draws, a validator scan sweeps. */
.illus text { font-family: var(--font); }
.fabric { fill: var(--fabric); }
.selvedge { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.pc { stroke-width: 1.4; stroke-linejoin: round; }
.pc-1 { fill: color-mix(in srgb, var(--s1) 18%, var(--surface)); stroke: var(--s1); }
.pc-2 { fill: color-mix(in srgb, var(--s2) 20%, var(--surface)); stroke: var(--s2); }
.pc-3 { fill: color-mix(in srgb, var(--s3) 20%, var(--surface)); stroke: var(--s3); }
.grain { stroke: var(--ink-2); stroke-width: 1.2; fill: none; opacity: 0.6; }
.dim path { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.dim text, .legend-sizes text { fill: var(--ink-2); font-size: 15px; }
.scan { fill: var(--brand); opacity: 0; }
.fly, .dim-line, .scan { transform-box: fill-box; transform-origin: center; }
.dim-line { transform-origin: left; }
.motion .is-playing .fly { animation: fly 0.95s var(--ease-back) both; animation-delay: calc(0.35s + var(--i) * 75ms); }
.motion .is-playing .dim-line { animation: grow-x 0.8s var(--ease) 2s both; }
.motion .is-playing .dim-length text { animation: fade-in 0.5s ease 2.3s both; }
.motion .is-playing .scan { animation: scan 1.1s ease-in-out 2.35s both; }
.motion .is-playing .st-1 { animation: status-out 3.5s linear both; }
.motion .is-playing .st-2 { animation: pop-in 0.45s var(--ease-back) 3.4s both; }
.motion .is-playing .spinner { animation: spin 0.8s linear 4; }

/* ---------- Stats band ---------- */
.stats { padding: 0 0 clamp(1rem, 0.5rem + 2vw, 2.5rem); margin-top: calc(-1 * clamp(1rem, 0.5rem + 2vw, 2.5rem)); position: relative; z-index: 1; }
.stat-band { list-style: none; margin: 0; padding: 1.25rem 1.3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 1.25rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.stat-band li { margin: 0; display: grid; gap: 0.2rem; align-content: start; }
.stat-big { font-family: var(--display); font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); font-weight: 760; letter-spacing: -0.04em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-big small { font-size: 0.55em; margin-left: 0.05em; }
.stat-text { color: var(--ink-2); font-size: 0.95rem; max-width: 16rem; }
@media (min-width: 900px) { .stat-band li + li { border-left: 1px solid var(--line); padding-left: 2rem; } }

/* ---------- Workflow ---------- */
.flow { position: relative; }
.flow-track { position: relative; height: 22px; overflow: hidden; margin: 0 -11px 1.3rem; }
.flow-track::before, .flow-fill { content: ""; position: absolute; left: 11px; right: 11px; top: 8px; height: 6px; border-radius: 6px; }
.flow-track::before { background: var(--surface-3); }
.flow-fill { background: linear-gradient(90deg, var(--brand), #2f9e78 60%, var(--amber)); transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform 0.5s var(--ease); }
.flow-runner { position: absolute; left: 11px; right: 11px; top: 0; bottom: 0; transform: translateX(calc(var(--progress, 1) * 100%)); transition: transform 0.5s var(--ease); }
.flow-runner::before { content: ""; position: absolute; left: -9px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); box-shadow: 0 2px 6px rgba(23, 107, 82, 0.35); }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
@media (min-width: 1100px) { .flow-steps { grid-template-columns: repeat(4, 1fr); } }
.flow-step { margin: 0 !important; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem 1.05rem; display: flex; flex-direction: column; gap: 0.2rem; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.flow-step:focus-visible { outline-offset: 2px; }
.flow-step h3 { margin: 0.35rem 0 0.15rem; }
.flow-step p { color: var(--ink-2); font-size: 0.97rem; margin: 0 0 0.6rem; flex: 1; }
.flow-node { display: block; }
.flow-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-back); }
.flow-step.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.flow-step.is-current .flow-icon { background: var(--brand); color: #fff; transform: scale(1.08) rotate(-4deg); }
.motion .flow-ready .flow-step:not(.is-lit) { opacity: 0.32; transform: translateY(10px); }
.replay-inline { margin-top: 1.25rem; }
@media (max-width: 719px) { .flow-track { display: none; } }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-num { font-size: 0.78rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.6rem; }
.step-module { align-self: flex-start; font-size: 0.78rem; font-weight: 650; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 0.12rem 0.6rem; }

/* ---------- Showcase ---------- */
.showcase-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden; }
.showcase:not(.is-carousel) .showcase-frame > .window-bar { display: none; }
.slides { display: grid; gap: 1.25rem; padding: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.slide { margin: 0; }
.slide img, .slide svg { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.slide figcaption { font-size: 0.93rem; color: var(--ink-2); margin-top: 0.6rem; }
.is-carousel .slides { display: grid; grid-template-columns: 1fr; padding: 0; gap: 0; }
.is-carousel .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: scale(1.012); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.6s; }
.is-carousel .slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), visibility 0s; }
.is-carousel .slide img { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.is-carousel .slide figcaption { margin: 0; padding: 0.8rem 1.1rem 0.9rem; font-weight: 560; }
.showcase-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.25rem; margin: -0.25rem; scrollbar-width: thin; flex: 1; }
.tab { position: relative; overflow: hidden; flex: none; min-height: 2.6rem; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 0.92rem; font-weight: 620; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease); }
.tab:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.motion .tab.is-timing .tab-progress { animation: grow-x var(--slide-ms, 5s) linear both; }

/* ---------- Benchmark highlight ---------- */
.bench-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.bench-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem 1.2rem; }
.bench-card header h3 { margin-bottom: 0.15rem; }
.bench-numbers { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.1rem 0 1.2rem; }
.bench-stat { display: grid; gap: 0.15rem; }
.bench-value { font-family: var(--display); font-size: clamp(2.3rem, 1.9rem + 1.6vw, 3.1rem); font-weight: 760; letter-spacing: -0.04em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.bench-value.is-neg { color: var(--coral-ink); }
.bench-value small { font-size: 0.45em; letter-spacing: 0; font-weight: 650; }
.bench-label { font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
.wtl-block { margin-bottom: 0.8rem; }
.wtl-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-3); transform-origin: left; }
.wtl-bar span { display: block; height: 100%; }
.wtl-win { background: var(--brand); }
.wtl-tie { background: var(--line-strong); }
.wtl-loss { background: var(--coral); }
.motion [data-reveal] .wtl-bar { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.25s; }
.motion [data-reveal].is-in .wtl-bar { transform: none; }
.wtl-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0.55rem 0 0; font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wtl-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; }
.dot-win { background: var(--brand); }
.dot-tie { background: var(--line-strong); }
.dot-loss { background: var(--coral); }
.bench-foot { margin-top: 1.5rem; max-width: 52rem; }
.bench-foot p { color: var(--ink-2); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.card-grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.section-alt .card, .section-alt .flow-step { background: var(--bg); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.feature-card:hover, .audience-card:hover, .download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft-2); }
.card-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 0.85rem; flex: none; transition: transform 0.4s var(--ease-back), background-color 0.3s, color 0.3s; }
.card-icon-small { width: 2.35rem; height: 2.35rem; border-radius: 10px; margin-bottom: 0.7rem; }
.card-icon-small .icon { width: 22px; height: 22px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; }
.download-card p:first-of-type { flex: 1; }
.download-card .small { margin: 0.75rem 0 0; }
.download-main { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.65rem; }
.check-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.check-list-big li { font-size: 1.02rem; }
.check-list-big li + li { margin-top: 0.6em; }
.callout { border-radius: var(--radius); padding: 1.2rem 1.35rem; margin: 1.5rem 0; border: 1px solid var(--line); background: var(--surface); }
.section-alt .callout { background: var(--bg); }
.callout h3, .callout .h-small { margin-bottom: 0.4em; }
.callout > :last-child { margin-bottom: 0; }
.callout-accent { border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: var(--brand-soft) !important; }
.callout-warn { border-color: var(--warn-line); background: var(--warn-bg) !important; color: var(--warn-ink); }
.callout-warn a, .callout-warn code { color: inherit; }
.not-yet { border-left: 4px solid var(--amber); }
.split { display: grid; gap: 1.75rem 3rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } .split > .callout { margin-top: 0; } .split-even { grid-template-columns: 1fr 1fr; align-items: center; } }
.plain-steps li { margin-bottom: 0.5em; }
.legend-list { list-style: none; padding: 0; }
.legend-list li { display: block; }
.toc ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0.5rem; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 580; font-size: 0.95rem; transition: border-color 0.2s, transform 0.2s var(--ease); }
.toc a:hover { border-color: var(--brand); transform: translateY(-1px); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3rem; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 0.95rem; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 0.95rem; top: 2.2rem; bottom: 0.3rem; width: 2px; background: repeating-linear-gradient(var(--line-strong) 0 5px, transparent 5px 9px); }
.steps h3 { margin-bottom: 0.3em; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.doc-list li { margin: 0; display: grid; gap: 0.15rem; padding: 0.95rem 1.15rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.2s, transform 0.2s var(--ease); }
.doc-list li:hover { border-color: var(--brand-soft-2); transform: translateX(3px); }
.doc-title { font-weight: 650; }
.doc-list code { justify-self: start; font-size: 0.8rem; color: var(--muted); }
.faq { max-width: 48rem; }

/* ---------- Your data stays in your factory ---------- */
.section-data { background: radial-gradient(ellipse 70% 80% at 85% 50%, var(--brand-soft), transparent 70%); }
.factory-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.f-wall { fill: var(--bg); stroke: var(--ink-2); stroke-width: 2.2; stroke-linejoin: round; }
.f-floor { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.f-label { fill: var(--brand); font-size: 18px; font-weight: 700; }
.f-box { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.f-screen { fill: var(--brand-soft-2); }
.f-paper { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.f-stroke { stroke: var(--ink-2); stroke-width: 2; fill: none; stroke-linecap: round; }
.f-led { fill: var(--brand); }
.f-cap { fill: var(--ink-2); font-size: 14px; font-weight: 650; }
.f-link { stroke: var(--brand-soft-2); stroke-width: 4; stroke-linecap: round; }
.f-packet { fill: var(--brand); opacity: 0; }
.f-cloud-shape { fill: var(--surface-2); stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.f-no circle { fill: var(--coral-ink); stroke: var(--surface); stroke-width: 3; }
.f-no path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.f-cut { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 5; }
.f-node, .f-no, .f-packet { transform-box: fill-box; transform-origin: center; }
.motion .factory-wrap .f-node { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-back); transition-delay: calc(0.25s + var(--i) * 0.15s); }
.motion .factory-wrap.is-in .f-node { opacity: 1; transform: none; }
.motion .factory-wrap .f-no { opacity: 0; transform: scale(0.5) rotate(-30deg); transition: opacity 0.4s, transform 0.6s var(--ease-back); transition-delay: 1s; }
.motion .factory-wrap.is-in .f-no { opacity: 1; transform: none; }
.motion .factory-wrap.is-in .f-packet { animation: packet 1.3s var(--ease) calc(1.2s + var(--i) * 0.65s) 3; }

/* ---------- Fun project and Help us improve ---------- */
.fun-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .fun-grid { grid-template-columns: 1fr 1.05fr; align-items: stretch; } }
.fun-card { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--amber-soft), #fff8e6 60%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 20px; padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.fun-card::after { content: "✦"; position: absolute; right: 1.2rem; top: 0.6rem; font-size: 4.5rem; line-height: 1; color: color-mix(in srgb, var(--amber) 55%, transparent); pointer-events: none; }
.motion .fun-card.is-in::after { animation: twinkle 1.2s var(--ease-back) 0.4s both; }
.fun-card h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); max-width: 22ch; }
.fun-card p { color: var(--ink-2); max-width: 36rem; }
.fun-badge { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--amber); color: #3b2800; font-weight: 750; font-size: 0.85rem; margin-bottom: 1rem; }
.help-block { padding: clamp(0.25rem, 0.5vw, 0.5rem) 0; }
.h-help { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); }
.help-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.help-links li { margin: 0; }
.help-links-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.help-link { display: flex; align-items: flex-start; gap: 0.9rem; height: 100%; padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s; }
.section-alt .help-link { background: var(--bg); }
.help-link:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); transform: translateX(4px); text-decoration: none; }
.help-link .card-icon { margin: 0; }
.help-link:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.help-link strong { display: block; color: var(--brand); font-size: 1.02rem; }
.help-text { display: block; color: var(--ink-2); font-size: 0.93rem; margin-top: 0.1rem; }

/* ---------- Benchmark page ---------- */
.tile-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); margin-bottom: 1.75rem; }
.tile { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-s); }
.tile-value { font-family: var(--display); font-size: 2.1rem; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; color: var(--brand); }
.tile-label { color: var(--ink-2); font-size: 0.95rem; }
.tile-sub { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.run-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.section:not(.section-alt) .run-card { background: var(--surface); }
.run-sample { border-left: 4px solid var(--warn-line); }
.run-provisional { border-left: 4px solid var(--prov-line); }
@media (max-width: 640px) { .run-card { padding: 1.1rem 1rem; } .callout { padding: 1rem; } }
.run-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.run-head h3 { margin: 0; font-size: 1.3rem; }
.status-note { font-size: 0.95rem; color: var(--ink-2); }
.progress { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; font-size: 0.95rem; color: var(--ink-2); }
.progress progress { width: min(18rem, 60%); height: 0.6rem; accent-color: var(--prov-line); }
.stat-row { display: grid; gap: 0.75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: 1rem 0 0.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value { font-family: var(--display); font-size: 1.85rem; font-weight: 740; letter-spacing: -0.03em; line-height: 1.15; }
.stat-label { font-size: 0.9rem; color: var(--ink-2); }
.wtl { font-size: 0.95rem; color: var(--ink-2); }
.facts { display: grid; gap: 0.4rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin: 0.75rem 0 1rem; }
.facts div { display: grid; gap: 0.05rem; }
.facts dt { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; }
.disclosure { border-top: 1px solid var(--line); padding: 0.2rem 0; }
.disclosure:last-child { border-bottom: 1px solid var(--line); }
.disclosure > summary { cursor: pointer; font-weight: 650; padding: 0.75rem 0; list-style-position: outside; margin-left: 1.1rem; transition: color 0.2s; }
.disclosure > summary:hover { color: var(--brand); }
.disclosure > summary::marker { color: var(--brand); }
.disclosure[open] > summary { margin-bottom: 0.25rem; }
.motion .disclosure[open] > :not(summary) { animation: rise 0.35s var(--ease) both; }
.ref-list li + li { margin-top: 0.7em; }

/* Charts */
.chart { margin: 1.25rem 0; padding: 1rem 1.2rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart figcaption { display: grid; gap: 0.15rem; margin-bottom: 0.6rem; }
.chart-title { font-weight: 700; }
.chart-desc { color: var(--ink-2); font-size: 0.92rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart-legend-split { justify-content: space-between; }
.swatch { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 3px; }
.swatch-neg { background: var(--neg); }
.swatch-pos { background: var(--pos); }
.swatch-beta { background: var(--beta); border-radius: 50%; }
.swatch-ref { border: 2.5px solid var(--ref); border-radius: 50%; background: var(--surface); }
.chart-rows { list-style: none; margin: 0; padding: 0; }
.chart-rows li + li { margin-top: 0; }
.chart-row, .chart-axis { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr) 6.2rem; gap: 0.2rem 0.9rem; align-items: center; }
.chart-row { min-height: 2rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.chart-row:last-child { border-bottom: 0; }
.chart-label { font-size: 0.9rem; line-height: 1.3; padding: 0.2rem 0; }
.chart-label small { display: block; color: var(--muted); }
.chart-value { font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; white-space: nowrap; }
.chart-value-wide { font-weight: 600; }
.chart-value-wide .muted { font-weight: 400; }
.chart:has(.chart-value-wide) .chart-row, .chart:has(.chart-value-wide) .chart-axis { grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr) 9.5rem; }
.chart-track { display: block; overflow: visible; }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-zero { stroke: var(--zero); stroke-width: 1.5; }
.bar-neg { fill: var(--neg); }
.bar-pos, .bar-single { fill: var(--pos); }
.dot-link { stroke: var(--line-strong); stroke-width: 2; }
.dot-ref { fill: var(--surface); stroke: var(--ref); stroke-width: 2.5; }
.dot-beta { fill: var(--beta); stroke: var(--surface); stroke-width: 1.5; }
.chart-ticks { display: block; overflow: visible; }
.chart-ticks text { fill: var(--muted); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .chart { padding: 0.9rem 0.9rem 0.8rem; }
  .chart-row, .chart:has(.chart-value-wide) .chart-row { grid-template-columns: minmax(0, 1fr) auto; padding: 0.3rem 0; }
  .chart-row .chart-track { grid-column: 1 / -1; grid-row: 2; }
  .chart-axis, .chart:has(.chart-value-wide) .chart-axis { grid-template-columns: minmax(0, 1fr); }
  .chart-axis > span { display: none; }
  .chart-legend-split { flex-direction: column; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; font-weight: 700; padding: 0.75rem 1rem 0.25rem; }
.data-table th, .data-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-size: 0.82rem; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--surface-2); }
.data-table tbody th { font-weight: 600; }
.data-table tbody tr { transition: background-color 0.15s; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.data-table tbody tr:last-child > * { border-bottom: 0; }

/* Compare table */
.compare-wrap { border-radius: 12px; }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 64rem; font-size: 0.88rem; line-height: 1.4; }
.compare-table th, .compare-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; background: var(--surface); }
.compare-table thead th { position: sticky; top: 0; background: var(--surface-2); border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.col-name { display: block; font-weight: 700; font-size: 0.95rem; }
.col-products { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.feature-col { position: sticky; left: 0; z-index: 1; min-width: 9.5rem; max-width: 12rem; font-weight: 650; box-shadow: 1px 0 0 var(--line); }
thead .feature-col { z-index: 2; }
.beta-col { background: var(--brand-soft) !important; }
.compare-table td:nth-child(2) { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.group-row th { background: var(--bg) !important; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.5rem 0.75rem; position: static; }
.cell { min-width: 7.5rem; }
.cell-doc-detail { color: var(--ink); }
@media (max-width: 640px) { .feature-col { min-width: 7.5rem; max-width: 8.5rem; } .compare-table th, .compare-table td { padding: 0.55rem 0.6rem; } }
.cell > span:last-child { display: inline; }
.cell-mark, .legend-list .cell-mark { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: -0.05em; flex: none; }
.cell-yes .cell-mark, .mark-yes { background: var(--ok); }
.cell-partial .cell-mark, .mark-partial { background: linear-gradient(90deg, var(--ok) 50%, transparent 50%); border: 1.5px solid var(--ok); }
.cell-doc .cell-mark, .mark-doc { border: 2px solid var(--sky); }
.cell-nv .cell-mark, .mark-nv { border: 1.5px dashed var(--muted); }
.cell-no .cell-mark { background: var(--line-strong); }
.cell-info .cell-mark { display: none; }
.cell-nv { color: var(--ink-2); }
.src { white-space: nowrap; font-size: 0.78rem; }
.src a { text-decoration: none; }
.source-list { list-style: none; padding: 0; columns: 2 26rem; column-gap: 2rem; font-size: 0.92rem; }
.source-list li { break-inside: avoid; margin: 0 0 0.45rem; }
.src-id { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* Placeholders (only used when a screenshot file is missing) */
.ph-window { fill: var(--surface); stroke: var(--line-strong); }
.ph-bar, .ph-side { fill: var(--surface-2); }
.ph-dot { fill: var(--line-strong); }
.ph-tab { fill: var(--line); }
.ph-tab-on { fill: var(--brand-soft); stroke: var(--brand); }
.ph-fabric { fill: var(--fabric); }
.ph-piece { stroke-width: 1.2; }
.ph-p1 { fill: color-mix(in srgb, var(--s1) 20%, var(--surface)); stroke: var(--s1); }
.ph-p2 { fill: color-mix(in srgb, var(--s2) 20%, var(--surface)); stroke: var(--s2); }
.ph-p3 { fill: color-mix(in srgb, var(--s3) 22%, var(--surface)); stroke: var(--s3); }
.ph-row { fill: var(--surface-2); stroke: var(--line); }
.ph-head { fill: var(--line-strong); }
.ph-qr { fill: var(--ink-2); }
.ph-line { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.ph-dash { stroke: var(--muted); stroke-dasharray: 4 3; fill: none; }
.ph-text { fill: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2019; color: #c9d8d1; padding: 3.25rem 0 3rem; font-size: 0.95rem; }
.site-footer a { color: #e9f3ee; text-decoration-color: rgba(233, 243, 238, 0.35); }
.site-footer a:hover { color: #ffffff; text-decoration-color: var(--amber); }
.site-footer :focus-visible { outline-color: var(--amber); }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.site-footer .brand-name { color: #8fd3b4; }
.site-footer .brand-name b { color: #ffffff; }
.footer-fun { color: #f6d58c; font-weight: 600; }
.site-footer .muted { color: #a9bdb4; }
.footer-h { font-family: var(--font); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fd3b4; margin: 0.3rem 0 0.8rem; font-weight: 750; }
.footer-list { display: grid; gap: 0.5rem; }

/* ---------- Motion: shared keyframes and the scroll reveal ---------- */
.motion [data-reveal]:not([data-stagger]) { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.motion [data-reveal].is-in:not([data-stagger]) { opacity: 1; transform: none; }
.motion [data-reveal][data-stagger] > *, .motion [data-reveal] [data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s, border-color 0.3s; transition-delay: calc(var(--d, 0) * 70ms); }
.motion [data-reveal][data-stagger].is-in > *, .motion [data-reveal].is-in [data-stagger] > * { opacity: 1; transform: none; }
.motion [data-reveal].is-in [data-stagger] > *:hover, .motion [data-reveal][data-stagger].is-in > *:hover { transition-delay: 0s; }
.motion .card-grid.is-in > .card:hover { transform: translateY(-4px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes blob-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes piece-in { from { opacity: 0; transform: translate(60px, -30px) rotate(40deg); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fly {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.8); }
  45% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes scan {
  0% { opacity: 0; transform: translateX(0); }
  12% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(600px); }
}
@keyframes status-out { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: none; } 30% { transform: scale(1.22); } 60% { transform: scale(0.95); } }
@keyframes twinkle { from { opacity: 0; transform: scale(0.3) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes packet { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(40px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .bar-neg, .bar-pos, .bar-single, .dot-beta { fill: CanvasText; }
  .dot-ref { stroke: CanvasText; }
  .cell-mark, .swatch, .dot, .trust-list li::before { forced-color-adjust: none; border: 1px solid CanvasText; }
  .wtl-bar span { forced-color-adjust: none; border-right: 2px solid Canvas; }
}

@media print {
  .site-header, .skip-link, .cta-row, .site-footer nav, .replay, .showcase-controls, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; }
  .section-alt, .site-footer { background: none; color: #000; }
  details > :not(summary) { display: block; }
}
