/* Local, dependency-free presentation for Xiaomi Auto World Model 2.0. */
:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --white: #fff;
  --ink: #1d1d1f;
  --muted: #65656d;
  --faint: #85858d;
  --line: #dcdce1;
  --line-strong: #c6c6cd;
  --orange: #e85d04;
  --orange-dark: #ad4200;
  --orange-soft: #fff1e8;
  --radius: 18px;
  --nav-height: 68px;
  --gutter: 28px;
  --shadow: 0 12px 42px -28px rgb(29 29 31 / 28%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-underline-offset: 4px; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
svg { display: block; }
::selection { background: #ffd8be; color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - var(--gutter) * 2)); margin-inline: auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 20px; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(-180%); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 61; background: var(--orange); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Navigation stays small and quiet while the demonstrations lead. */
.site-nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgb(210 210 215 / 72%); background: rgb(245 245 247 / 94%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-inner { min-height: var(--nav-height); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; flex-shrink: 0; }
.brand-mark { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.brand > span:last-child:not(.brand-mark) { color: var(--muted); font-weight: 450; }
.brand-sub { color: var(--muted); font-weight: 450; margin-left: 6px; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { padding-block: 8px; color: var(--muted); font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--orange-dark); }
.nav-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-links .nav-cta, .nav-links .nav-report { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: var(--white); }
.nav-links .nav-cta:hover, .nav-links .nav-report:hover { border-color: var(--orange); }
.nav-toggle { display: none; min-height: 40px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 600; }

/* Hero */
.hero { padding-top: 78px; padding-bottom: 82px; }
.hero-heading { max-width: 980px; margin-inline: auto; text-align: center; }
.eyebrow { color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.hero h1 { margin-top: 19px; font-size: clamp(42px, 5.6vw, 70px); font-weight: 650; line-height: 1.06; letter-spacing: -.055em; }
.accent { color: var(--orange); }
.hero-description { max-width: 700px; margin: 25px auto 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 11px 19px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1.4; font-weight: 650; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: #3b3b3e; box-shadow: 0 3px 12px rgb(29 29 31 / 12%); }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: var(--white); }
.button-secondary:hover { border-color: var(--orange); background: #fffaf6; }
.button svg { width: 16px; height: 16px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 36px auto 39px; }
.meta-item { display: flex; flex-direction: column; align-items: center; padding: 0 20px; border-right: 1px solid var(--line); }
.meta-item:last-child { border-right: 0; }
.meta-item strong { font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.meta-item span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hero-media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.live-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.live-label::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.hero-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.hero-tabs button { border: 0; border-radius: 6px; padding: 7px 12px; color: var(--muted); background: transparent; font-size: 11px; line-height: 1.4; font-weight: 600; }
.hero-tabs button[aria-selected="true"], .hero-tabs button.is-active { color: var(--orange-dark); background: var(--orange-soft); }
.hero-tabs button:hover { background: var(--paper); color: var(--ink); }
.hero-media > video, #hero-video { width: 100%; height: auto; max-height: 590px; object-fit: contain; background: #141416; }
.media-caption { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 15px 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.media-caption p { max-width: 820px; margin-right: auto; }
.media-caption button, .demo-toolbar button, .image-controls button, .image-controls a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 11px; line-height: 1.4; font-weight: 600; text-decoration: none; white-space: nowrap; }
.media-caption button:hover, .demo-toolbar button:hover, .image-controls button:hover, .image-controls a:hover { border-color: var(--orange); color: var(--orange-dark); background: #fffaf6; }

/* Section hierarchy */
.section { padding-block: 78px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-height) + 20px); }
.section-heading { margin-bottom: 34px; max-width: 820px; }
.section-heading h2 { margin-top: 11px; font-size: clamp(31px, 3.8vw, 46px); line-height: 1.13; font-weight: 650; letter-spacing: -.045em; }
.section-intro { max-width: 710px; margin-top: 17px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section h3 { font-size: 23px; line-height: 1.25; font-weight: 650; letter-spacing: -.03em; }
.section h4 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-button { min-height: 43px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); font-size: 12px; line-height: 1.4; font-weight: 600; transition: color 140ms ease, background 140ms ease, border-color 140ms ease; }
.tab-button:hover { color: var(--ink); border-color: var(--line-strong); background: #fafafb; }
.tab-button.is-active, .tab-button[aria-selected="true"] { color: var(--orange-dark); border-color: #eeaa7e; background: var(--orange-soft); }

/* Demonstration browser */
.demo-browser > .tab-list { margin-bottom: 24px; }
#demo-panel { padding: 27px 28px 24px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.demo-heading { display: flex; justify-content: space-between; align-items: start; gap: 28px; }
.demo-heading h3 { max-width: 420px; }
.demo-heading p { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.demo-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-block: 22px; padding-block: 16px; border-top: 1px solid #ececef; border-bottom: 1px solid #ececef; color: var(--muted); font-size: 12px; line-height: 1.6; }
.demo-facts p { margin-top: 3px; }
.fact-label { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.video-stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; border-radius: 10px; background: #141416; }
.video-stage video { width: 100%; height: auto; max-height: 720px; aspect-ratio: var(--video-ratio, 16 / 9); object-fit: contain; background: #141416; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.demo-grid[hidden] { display: none !important; }
.demo-grid-cell { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.demo-grid-cell video { display: block; width: 100%; height: auto; max-height: 200px; aspect-ratio: var(--video-ratio, 1280 / 1476); object-fit: contain; background: #141416; }
.demo-grid-cell figcaption { padding: 8px 10px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.video-status { position: absolute; top: 14px; left: 14px; right: 14px; padding: 14px 18px; border: 1px solid #e0ad7c; border-radius: 8px; background: #fff4e7; color: #7c350d; font-size: 13px; line-height: 1.5; }
.demo-toolbar { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.clip-navigation { display: flex; align-items: center; gap: 7px; }
.clip-counter { margin-right: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#demo-caption { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.media-footnote { margin: 14px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.clip-list { display: flex; align-items: stretch; gap: 11px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-top: 22px; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: #bcbcc4 #eeeef1; }
.clip-card { display: flex; flex: 0 0 174px; flex-direction: column; overflow: hidden; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--white); scroll-snap-align: start; transition: border-color 140ms ease, box-shadow 140ms ease; }
.clip-card img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; background: #ededf0; }
.clip-card span { padding: 10px 11px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.clip-card:hover { border-color: var(--line-strong); box-shadow: 0 3px 10px rgb(29 29 31 / 8%); }
.clip-card.is-active, .clip-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.clip-card.is-active span, .clip-card[aria-pressed="true"] span { color: var(--orange-dark); background: var(--orange-soft); }

/* Figures and concise technical explanation */
.approach-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.figure-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.figure-button { position: relative; display: block; width: 100%; padding: 18px; border: 0; background: var(--white); cursor: zoom-in; }
.figure-button img { width: 100%; object-fit: contain; }
.figure-button:hover { background: #fffdfa; }
.figure-button:focus-visible { outline-offset: -4px; }
.figure-card figcaption { padding: 15px 18px 17px; border-top: 1px solid #ececef; color: var(--muted); font-size: 11px; line-height: 1.6; }
.figure-card figcaption strong { color: var(--ink); font-weight: 600; }
.figure-card figcaption span { display: inline; }
.figure-card figcaption a { color: var(--orange-dark); }
.figure-zoom { position: absolute; right: 9px; bottom: 9px; display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 6px; background: rgb(255 255 255 / 94%); color: var(--muted); font-size: 15px; }
.figure-button:hover .figure-zoom { color: var(--orange-dark); border-color: var(--orange); }
.figure-card figcaption .figure-hint { display: block; margin-top: 5px; color: var(--orange-dark); font-size: 10px; }
.principle-list { min-width: 0; }
.principle { position: relative; padding: 0 0 24px 45px; }
.principle + .principle { padding-top: 23px; border-top: 1px solid var(--line); }
.principle:last-child { padding-bottom: 0; }
.principle-number { position: absolute; top: 0; left: 0; color: var(--orange); font-size: 12px; font-weight: 650; line-height: 2; font-variant-numeric: tabular-nums; }
.principle + .principle .principle-number { top: 23px; }
.principle h3 { font-size: 19px; }
.principle p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.training-module { margin-top: 45px; padding-top: 32px; border-top: 1px solid var(--line); }
.training-module > h3 { margin-bottom: 20px; }
.module-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; margin-bottom: 20px; }
.module-heading > p { flex-shrink: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stage-panel { position: relative; margin-top: 18px; padding: 27px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.stage-number { display: block; margin-bottom: 12px; color: var(--orange-dark); font-size: 10px; line-height: 1.4; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.stage-panel p { max-width: 850px; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.stage-tags span { padding: 4px 8px; border: 1px solid #e6e6ea; border-radius: 4px; background: var(--paper); color: #5a5a62; font-size: 10px; font-weight: 550; line-height: 1.5; }
.disclosure { min-width: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.disclosure summary { position: relative; padding: 16px 46px 16px 19px; cursor: pointer; list-style: none; font-size: 13px; line-height: 1.5; font-weight: 600; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; position: absolute; right: 20px; top: 13px; color: var(--orange-dark); font-size: 21px; line-height: 1.3; font-weight: 400; }
.disclosure[open] > summary::after { content: "−"; }
.disclosure summary:hover { color: var(--orange-dark); }
.disclosure[open] > summary { border-bottom: 1px solid #ececef; }
.disclosure > :not(summary) { margin: 0; padding: 17px 19px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.disclosure > :not(summary) p + p { margin-top: 12px; }
.disclosure-body > .table-wrap + p { margin-top: 15px; }
.disclosure-body > .table-wrap + .table-wrap { margin-top: 18px; }
.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.detail-columns h4 { margin-bottom: 8px; font-size: 15px; }
.detail-columns p + h4 { margin-top: 24px; }
.disclosure > p + p { padding-top: 0; }
.disclosure ul { padding-left: 37px; }
.disclosure .table-wrap { margin: 0; padding: 0; border: 0; border-radius: 0 0 10px 10px; }

/* Results: headline metrics, followed by optional supporting detail. */
[data-tab-panel="evidence"] { margin-top: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.metric-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { min-width: 0; padding: 27px 24px 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.metric-value { display: block; color: var(--orange); font-size: clamp(31px, 3.5vw, 43px); line-height: 1.1; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-label { display: block; margin-top: 11px; color: var(--ink); font-size: 13px; line-height: 1.4; font-weight: 650; }
.metric-card p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.metric-card .metric-context { margin-top: 13px; padding-top: 10px; border-top: 1px solid #ececef; color: var(--muted); font-size: 10px; }
.evidence-note { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.evidence-note + .figure-card { margin-top: 24px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); scrollbar-width: thin; scrollbar-color: #bcbcc4 #eeeef1; }
.report-table { width: 100%; border-spacing: 0; border-collapse: separate; color: var(--ink); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.report-table th, .report-table td { padding: 13px 17px; border-bottom: 1px solid #e8e8ec; text-align: left; vertical-align: middle; white-space: nowrap; }
.report-table thead th { background: #eeeef1; color: #595961; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.report-table th:first-child, .report-table td:first-child { min-width: 155px; }
.report-table tbody th { font-weight: 550; }
.report-table tbody tr:last-child > * { border-bottom: 0; }
.report-table tbody tr:hover > * { background: #fafafb; }
.report-table .ours > *, .report-table tr.highlight > *, .report-table tr[data-highlight] > * { background: var(--orange-soft); color: var(--orange-dark); font-weight: 650; }
.report-table .ours:hover > *, .report-table tr.highlight:hover > * { background: #ffeadb; }
.report-table caption { padding: 15px 17px; text-align: left; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* Keep the report's comparisons visible, with horizontal scrolling on small screens. */
.comparison-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 12px; }
.comparison-meta a { color: var(--orange-dark); font-weight: 600; }
.capability-table-wrap { margin-top: 14px; }
.capability-table { min-width: 1010px; }
.capability-table th, .capability-table td { padding: 14px 13px; white-space: normal; }
.capability-table thead th, .capability-table td:nth-child(2), .capability-table td:nth-child(3), .capability-table td:last-child { white-space: nowrap; }
.capability-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 156px; background: var(--white); box-shadow: 1px 0 0 var(--line); }
.capability-table thead th:first-child { background: #eeeef1; }
.capability-table .ours th:first-child { background: var(--orange-soft); }
.capability-table td:nth-child(4) { min-width: 165px; max-width: 185px; }
.capability-table td:nth-child(6) { min-width: 177px; max-width: 195px; }
.capability-table td:last-child { text-align: center; font-size: 15px; }
.comparison-definitions { max-width: 100%; }
.benchmark-card { min-width: 0; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.benchmark-card h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
.benchmark-card > .table-wrap { margin-top: 16px; border: 0; border-radius: 7px; }
.benchmark-card > p { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.table-note { margin-top: 10px; color: var(--muted); font-size: 11px; }

/* Data and provenance */
.data-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 38px; }
.data-total { display: flex; flex-direction: column; align-items: start; padding-top: 5px; }
.data-total strong { color: var(--orange); font-size: clamp(48px, 6vw, 68px); line-height: 1; letter-spacing: -.06em; font-weight: 650; font-variant-numeric: tabular-nums; }
.data-total > span { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.data-overview > p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.data-source-list { margin-top: 25px; }
.data-source-list .disclosure { margin-top: 8px; }
.data-source-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.data-source-list summary strong { color: var(--orange-dark); font-size: 13px; font-variant-numeric: tabular-nums; }
.summary-meta { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.4; text-align: right; }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; align-items: start; }
.recipe-wrap { margin-top: 30px; }
.recipe-wrap h3 { margin-bottom: 15px; }
.data-layout + .disclosure { margin-top: 28px; }

/* Closing */
.closing { padding-block: 72px 80px; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 750px; margin-inline: auto; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; font-weight: 650; letter-spacing: -.045em; }
.closing p { max-width: 610px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.closing > .eyebrow { margin: 0 auto 15px; color: var(--orange-dark); font-size: 10px; }
.closing .hero-actions { margin-top: 24px; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a:hover { color: var(--orange-dark); }
#back-to-top { position: fixed; z-index: 40; right: 24px; bottom: 23px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgb(255 255 255 / 95%); color: var(--muted); box-shadow: 0 3px 14px rgb(29 29 31 / 8%); font-size: 11px; }
#back-to-top:hover { color: var(--orange-dark); border-color: var(--orange); }

/* Native dialogs provide a focused view without leaving the report. */
dialog { position: fixed; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #c8c8cf; border-radius: 15px; background: var(--white); color: var(--ink); box-shadow: 0 24px 100px rgb(0 0 0 / 30%); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgb(15 15 20 / 72%); backdrop-filter: blur(5px); }
.image-dialog { width: min(1280px, calc(100vw - 48px)); }
.video-dialog { width: min(1280px, calc(100vw - 48px)); }
.dialog-topbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 19px; border-bottom: 1px solid var(--line); background: #fafafb; }
.dialog-topbar h2, .dialog-topbar h3, .dialog-topbar p, .dialog-topbar span { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.dialog-topbar button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--muted); font-size: 12px; }
.dialog-topbar button:hover { border-color: var(--ink); color: var(--ink); }
.image-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; background: #eeeef1; overscroll-behavior: contain; }
#zoom-image { display: block; max-width: none; margin: auto; background: var(--white); box-shadow: 0 3px 16px rgb(29 29 31 / 5%); }
.image-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 13px 20px 7px; border-top: 1px solid var(--line); }
.image-controls a { margin-left: 9px; }
.dialog-hint { flex-shrink: 0; padding: 8px 20px 13px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
#expanded-video { width: 100%; min-height: 0; max-height: calc(100dvh - 170px); object-fit: contain; background: #101012; }

@media (min-width: 1500px) {
  .hero { padding-top: 94px; }
}

@media (max-width: 1000px) {
  .nav-links { gap: 17px; }
  .nav-links a { font-size: 11px; }
  .brand { font-size: 13px; }
  .brand-sub { display: none; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(42px, 6.3vw, 62px); }
  .approach-grid { grid-template-columns: 1.2fr 1fr; gap: 26px; }
  .principle { padding-left: 33px; }
  .principle h3 { font-size: 17px; }
  .principle p { font-size: 12px; }
  .metric-card { padding: 23px 20px; }
  .data-layout { grid-template-columns: .9fr 1.1fr; gap: 28px; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid-cell video { max-height: 240px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .brand > span:last-child:not(.brand-mark) { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; --nav-height: 62px; }
  .nav-inner { flex-wrap: wrap; gap: 0; }
  .brand { font-size: 13px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; flex: 1 1 100%; gap: 0; padding-top: 6px; padding-bottom: 14px; }
  .nav-links.is-open, .site-nav.is-open .nav-links, .nav-toggle[aria-expanded="true"] + .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .nav-links a { padding: 9px 5px; font-size: 12px; }
  .nav-links .nav-cta, .nav-links .nav-report { width: fit-content; margin-top: 4px; }
  .hero { padding-top: 48px; padding-bottom: 55px; }
  .hero h1 { font-size: clamp(37px, 7.1vw, 52px); letter-spacing: -.05em; }
  .hero-description { max-width: 560px; font-size: 17px; }
  .hero-meta { margin-top: 30px; margin-bottom: 30px; }
  .meta-item { padding-inline: 14px; }
  .meta-item strong { font-size: 12px; }
  .meta-item span { font-size: 10px; }
  .media-bar { flex-direction: column; align-items: start; gap: 11px; padding: 13px 16px; }
  .hero-tabs { gap: 4px; width: 100%; }
  .hero-tabs button { padding: 7px 10px; font-size: 11px; }
  .media-caption { padding: 13px 16px; gap: 12px; font-size: 11px; }
  .media-caption button { font-size: 10px; padding-inline: 9px; }
  .section { padding-block: 56px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2 { font-size: 35px; }
  .section-intro { font-size: 14px; margin-top: 14px; }
  .comparison-meta { font-size: 11px; }
  .benchmark-card { padding: 17px 15px; }
  .benchmark-card h3 { font-size: 16px; }
  #demo-panel { padding: 22px 20px 17px; }
  .demo-heading { flex-direction: column; gap: 10px; }
  .demo-heading h3 { font-size: 21px; }
  .demo-heading p { max-width: none; font-size: 13px; }
  .demo-facts { gap: 20px; margin-block: 18px; }
  .demo-grid { gap: 10px; }
  .demo-grid-cell video { max-height: 180px; }
  .demo-grid-cell figcaption { padding: 7px 8px; font-size: 10px; }
  .clip-card { flex-basis: 158px; }
  .approach-grid { grid-template-columns: 1fr; gap: 28px; }
  .principle-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .principle, .principle + .principle { padding: 30px 0 0; border-top: 0; }
  .principle-number, .principle + .principle .principle-number { top: 0; }
  .principle h3 { font-size: 16px; }
  .principle p { font-size: 12px; }
  .training-module { margin-top: 31px; padding-top: 28px; }
  .module-heading { display: block; }
  .module-heading > p { margin-top: 8px; }
  .stage-panel { padding: 24px; }
  .stage-panel p { font-size: 13px; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 20px 16px; }
  .metric-value { font-size: 32px; }
  .metric-label { font-size: 12px; }
  .metric-card p { font-size: 11px; }
  .data-layout { grid-template-columns: 1fr; gap: 25px; }
  .data-overview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 28px; }
  .data-overview > p { margin-top: 0; }
  .data-source-list { margin-top: 0; }
  .data-overview > p + .data-source-list { grid-column: 1 / -1; }
  .figure-grid { gap: 16px; }
  .figure-button { padding: 15px; }
  .figure-card figcaption { padding: 13px 15px; }
  .closing { padding-block: 55px 60px; }
  .closing h2 { font-size: 33px; }
  .footer-inner { align-items: start; gap: 15px; }
  #back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; --radius: 13px; --nav-height: 60px; }
  .brand { gap: 8px; font-size: 12px; max-width: 245px; }
  .brand-mark { width: 9px; height: 9px; }
  .nav-toggle { padding: 7px 10px; font-size: 11px; }
  .hero { padding-top: 38px; padding-bottom: 45px; }
  .hero .eyebrow { max-width: 290px; margin-inline: auto; font-size: 9px; letter-spacing: .14em; }
  .hero h1 { margin-top: 17px; font-size: 39px; line-height: 1.08; }
  .hero-description { margin-top: 19px; font-size: 15px; line-height: 1.55; }
  .hero-actions { gap: 8px; margin-top: 22px; }
  .button { min-height: 43px; padding: 10px 13px; font-size: 11px; border-radius: 8px; }
  .hero-meta { margin: 25px -3px 26px; }
  .meta-item { padding-inline: 8px; }
  .meta-item strong { font-size: 11px; }
  .meta-item span { margin-top: 5px; font-size: 9px; line-height: 1.4; }
  .media-bar { padding: 12px; gap: 9px; }
  .live-label { font-size: 9px; }
  .hero-tabs { flex-wrap: nowrap; }
  .hero-tabs button { flex: 1 1 auto; padding: 8px 6px; font-size: 10px; }
  .media-caption { align-items: start; padding: 12px; gap: 9px; font-size: 10px; }
  .media-caption button { min-height: 34px; padding: 7px 8px; font-size: 9px; }
  .section { padding-block: 43px; }
  .eyebrow { font-size: 10px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { margin-top: 9px; font-size: 30px; }
  .section-intro { font-size: 13px; }
  .tab-list { gap: 7px; }
  .tab-button { min-height: 41px; padding: 9px 11px; font-size: 11px; }
  .demo-browser > .tab-list { margin-bottom: 16px; }
  #demo-panel { padding: 19px 14px 14px; border-radius: 12px; }
  .demo-heading { gap: 9px; }
  .demo-heading h3 { font-size: 21px; }
  .demo-heading p { font-size: 12px; }
  .demo-facts { grid-template-columns: 1fr; gap: 11px; margin-block: 15px; padding-block: 13px; font-size: 11px; }
  .fact-label { font-size: 9px; margin-bottom: 2px; }
  .video-stage { border-radius: 6px; }
  .demo-toolbar { gap: 5px; margin-top: 12px; }
  .clip-counter { font-size: 10px; }
  .demo-toolbar button { min-height: 36px; padding: 7px 9px; font-size: 10px; }
  #demo-caption { font-size: 11px; }
  .clip-list { gap: 9px; margin-top: 16px; padding-bottom: 9px; }
  .clip-card { flex-basis: 145px; }
  .clip-card span { padding: 8px 9px; font-size: 10px; }
  .principle-list { display: block; }
  .principle { padding: 0 0 20px 37px; }
  .principle + .principle { padding: 20px 0 20px 37px; border-top: 1px solid var(--line); }
  .principle:last-child { padding-bottom: 0; }
  .principle-number { top: 0; }
  .principle + .principle .principle-number { top: 20px; }
  .principle h3 { font-size: 18px; }
  .principle p { font-size: 12px; }
  .figure-button { padding: 12px; }
  .figure-card { border-radius: 10px; }
  .figure-card figcaption { padding: 12px 13px; font-size: 10px; }
  .training-module > h3 { font-size: 21px; }
  .stage-panel { padding: 21px 17px; }
  .stage-number { margin-bottom: 11px; font-size: 9px; }
  .stage-panel h4 { font-size: 19px; }
  .stage-panel p { font-size: 12px; }
  .stage-tags { gap: 6px; }
  .stage-tags span { font-size: 9px; }
  .disclosure summary { padding: 15px 41px 15px 15px; font-size: 12px; }
  .disclosure summary::after { right: 16px; top: 12px; }
  .disclosure > :not(summary) { padding: 15px; font-size: 12px; }
  .disclosure .table-wrap { padding: 0; }
  .detail-columns { grid-template-columns: 1fr; gap: 24px; }
  .detail-columns h4 { font-size: 15px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; }
  .metric-card { display: grid; grid-template-columns: 116px 1fr; gap: 4px 15px; padding: 19px 17px; }
  .metric-value { grid-row: 1 / span 3; align-self: center; font-size: clamp(24px, 6.6vw, 28px); }
  .metric-label { margin-top: 0; font-size: 12px; }
  .metric-card p { margin-top: 2px; font-size: 11px; }
  .metric-card .metric-context { margin-top: 6px; padding-top: 7px; font-size: 9px; }
  .evidence-note { font-size: 11px; }
  .report-table { font-size: 11px; }
  .report-table th, .report-table td { padding: 12px 13px; }
  .report-table thead th { font-size: 9px; }
  .report-table th:first-child, .report-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 135px; background: #fff; box-shadow: 1px 0 0 #e2e2e8; }
  .report-table thead th:first-child { background: #eeeef1; }
  .report-table .ours > :first-child, .report-table tr.highlight > :first-child, .report-table tr[data-highlight] > :first-child { background: var(--orange-soft); }
  .report-table:has(td[rowspan]) tbody td:first-child:not([rowspan]) { position: static; min-width: auto; box-shadow: none; }
  .data-overview { display: block; }
  .data-total strong { font-size: 59px; }
  .data-total > span { margin-top: 10px; font-size: 13px; }
  .data-overview > p { margin-top: 14px; font-size: 12px; }
  .data-source-list { margin-top: 20px; }
  .figure-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 23px; }
  .closing { padding-block: 43px 47px; }
  .closing h2 { font-size: 29px; }
  .closing p { font-size: 13px; }
  .footer-inner { flex-direction: column; gap: 8px; padding-right: 40px; font-size: 10px; }
  #back-to-top { right: 12px; bottom: 12px; min-height: 38px; padding: 8px 10px; font-size: 10px; }
  dialog, .image-dialog, .video-dialog { max-width: calc(100vw - 20px); width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .dialog-topbar { gap: 10px; padding: 11px 12px; }
  .dialog-topbar h2, .dialog-topbar h3, .dialog-topbar p, .dialog-topbar span { font-size: 12px; }
  .dialog-topbar button { min-width: 34px; min-height: 34px; padding: 5px 9px; font-size: 10px; }
  .image-viewport { padding: 12px; }
  .image-controls { gap: 6px; padding: 11px 10px 5px; }
  .image-controls button, .image-controls a { padding: 7px 9px; font-size: 10px; }
  .image-controls a { margin-left: 0; }
  .dialog-hint { padding: 7px 13px 11px; font-size: 9px; }
  #expanded-video { max-height: calc(100dvh - 155px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  :root { --gutter: 0; }
  body { background: #fff; font-size: 11pt; }
  .shell { width: 100%; }
  .site-nav, .reading-progress, .skip-link, .nav-toggle, #back-to-top, .hero-tabs, .clip-list, .demo-toolbar, .media-caption button, dialog { display: none !important; }
  .hero { padding-top: 0; padding-bottom: 30px; }
  .hero h1 { font-size: 35pt; }
  .hero-actions { display: none; }
  .section { padding-block: 30px; }
  .section-heading h2 { font-size: 25pt; }
  .hero-media, #demo-panel { box-shadow: none; }
  .metric-card, .figure-card, .principle, .stage-panel { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .report-table { font-size: 8pt; }
  .report-table th, .report-table td { padding: 7px; }
  .closing { padding-block: 30px; }
}
