/* XPACE · static presentation, inspired by Material Kit's raised card layout. */
:root {
  color-scheme: light;
  --page: #eeeff0;
  --surface: #fff;
  --ink: #24272a;
  --muted: #70757b;
  --line: #e8e9eb;
  --soft: #f5f6f7;
  --nav: rgba(255, 255, 255, .91);
  --shadow: 0 16px 38px -18px rgba(20, 25, 35, .28);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111214;
  --surface: #1c1e21;
  --ink: #f0f1f2;
  --muted: #a5aab1;
  --line: #35383c;
  --soft: #282b2f;
  --nav: rgba(30, 32, 35, .94);
  --shadow: 0 16px 38px -18px rgba(0, 0, 0, .65);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #56a889; outline-offset: 5px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 14px 22px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 20px; }
.site-header { position: fixed; z-index: 20; top: 22px; left: 24px; right: 24px; }
.nav-shell { max-width: 1180px; min-height: 68px; margin: auto; padding: 12px 20px 12px 26px; display: flex; align-items: center; gap: 30px; background: var(--nav); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(20px); border-radius: 12px; box-shadow: 0 6px 24px #00000012; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand img, .footer-brand img { object-fit: contain; }
.brand-light { font-weight: 450; }
.primary-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.primary-nav a { font-size: 12px; font-weight: 550; padding: 10px 0; white-space: nowrap; }
.primary-nav a:hover { opacity: .6; }
.primary-nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #6a9a80; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon, .menu-toggle { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .brand img { filter: invert(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; background: var(--ink); color: var(--surface); border-radius: 7px; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: 0 3px 8px #00000018; }
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.hero { --front-width: clamp(920px, 125vw, 1546px); --stance-width: clamp(1420px, 188vw, 2240px); --robot-top: 130px; --front-opacity: .53; --stance-opacity: .35; position: relative; min-height: 720px; height: 85svh; max-height: 960px; overflow: hidden; background: #111214; color: #fff; display: grid; place-items: center; padding: 130px 24px 130px; }
/* Two persistent layers crossfade; shared head anchors prevent a position jump. */
.hero-art { position: absolute; inset: 0; overflow: hidden; isolation: isolate; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, #303338 0, #16181b 45%, #0c0d0f 85%); }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgb(238, 239, 240); opacity: 0; transition: opacity 520ms ease; }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, #111214 0%, transparent 30%), linear-gradient(90deg, transparent 10%, #11121499 48%, transparent 90%); opacity: 1; transition: opacity 520ms ease; }
.hero-robot { position: absolute; z-index: 1; max-width: none; width: var(--front-width); height: auto; top: var(--robot-top); left: 62%; opacity: 0; filter: grayscale(1); mask-image: linear-gradient(#000 60%, transparent 98%); transition: opacity 520ms ease; }
/* Account for each source image's transparent margins, aligning the head crown. */
.hero-robot--front { transform: translate(-52%, -10%); }
/* Multiply removes the light image backdrop; feather all edges into the hero. */
.hero-robot--stance {
  width: var(--stance-width);
  transform: translate(-48%, -7.5%);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(180deg, transparent, #000 6%, #000 42%, transparent 85%), linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-composite: intersect;
}
html[data-theme="dark"] .hero-robot--front { opacity: var(--front-opacity); }
html[data-theme="light"] .hero-robot--stance { opacity: var(--stance-opacity); }
html[data-theme="light"] .hero { background: rgb(238, 239, 240); color: #24272a; }
html[data-theme="light"] .hero-art::before { opacity: 1; }
html[data-theme="light"] .hero-art::after { opacity: 0; }
.hero, .hero-eyebrow, .hero-subtitle, .hero-link, .status-dot,
body, .main-card, .nav-shell, .nav-cta, .badge {
  transition: background-color 520ms ease, color 520ms ease, border-color 520ms ease, box-shadow 520ms ease;
}
html[data-theme="light"] .hero-eyebrow,
html[data-theme="light"] .hero-subtitle { color: #545b63; }
html[data-theme="light"] .hero-link { border-bottom-color: #24272a55; }
html[data-theme="light"] .status-dot { background: #467c64; box-shadow: 0 0 15px #467c6433; }
.hero-copy { position: relative; z-index: 1; text-align: center; margin-top: -14px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 3px; }
.hero-eyebrow { color: #d3d6d9; display: flex; align-items: center; justify-content: center; gap: 11px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #c4e5d4; box-shadow: 0 0 15px #c4e5d466; }
.hero h1 { font-size: clamp(68px, 8.4vw, 128px); line-height: 1.1; letter-spacing: .04em; font-weight: 650; width: fit-content; margin: 23px auto 20px; padding-left: .04em; }
.hero-subtitle { font-size: clamp(15px, 1.4vw, 19px); color: #d2d4d6; font-weight: 350; line-height: 1.7; }
.hero-link { display: inline-flex; align-items: center; gap: 32px; margin-top: 35px; padding: 13px 0; border-bottom: 1px solid #ffffff55; font-size: 12px; }
.hero-link span, .hero-link .download-icon { transition: transform .2s; }
.hero-link:hover span, .hero-link:hover .download-icon { transform: translateY(4px); }
.main-card { position: relative; z-index: 2; max-width: 1680px; margin: -72px auto 0; width: calc(100% - 48px); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 60px -30px #00000040; }
.catalog { max-width: 1180px; margin: auto; padding: 0 32px; }
.catalog-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 45px; padding: 65px 0 70px; border-top: 1px solid var(--line); }
.category-heading { align-self: start; position: sticky; top: 125px; padding-top: 4px; }
.category-heading h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.8px; margin-bottom: 13px; }
.category-heading p { max-width: 230px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.research-content { min-width: 0; display: grid; gap: 42px; }
.research-block { min-width: 0; }
.research-block > h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.35; letter-spacing: -.5px; }
.research-block > p, .research-content > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.research-block > p + p { margin-top: 12px; }
.research-block > p + h3 { margin-top: 28px; }
.research-group { display: grid; gap: 38px; min-width: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.research-group-heading h3 { margin-bottom: 10px; font-size: 25px; line-height: 1.35; letter-spacing: -.5px; }
.research-group-heading p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.research-block > h4 { margin-bottom: 12px; font-size: 21px; line-height: 1.4; letter-spacing: -.4px; }
.research-detail-title { margin: 30px 0 12px; font-size: 17px; line-height: 1.5; }
.research-block > .research-followup { margin-top: 30px; }
.inline-research-link { display: inline-block; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.evaluation-setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.evaluation-setup > div { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.evaluation-setup dt { margin-bottom: 10px; font-size: 13px; font-weight: 650; }
.evaluation-setup dd { margin: 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.experiment-figure { min-width: 0; margin: 24px 0 0; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.table-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 18px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.table-title > span { flex-shrink: 0; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--muted) var(--soft); }
.table-scroll:focus-visible { outline: 2px solid #6086b0; outline-offset: 4px; }
.experiment-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.experiment-table th, .experiment-table td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.experiment-table tr > :first-child { text-align: left; }
.experiment-table thead th { background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 600; }
.experiment-table tbody th { font-weight: 500; }
.experiment-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.experiment-table .table-group th { padding-block: 8px; color: var(--muted); background: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: .25px; text-align: center; }
.experiment-table strong { font-weight: 750; }
.table-reference { display: block; color: var(--muted); font-size: 10px; }
.experiment-table--compact { min-width: 390px; }
.experiment-table--recipes { min-width: 0; }
.experiment-table--recipes th { white-space: normal; }
.experiment-table--recipes tr > :first-child { width: 48%; }
.table-note { margin-top: 14px; font-size: 12px; line-height: 1.75; color: var(--muted); }
@media (max-width: 1100px) {
  .evaluation-setup { grid-template-columns: 1fr; gap: 10px; }
  .evaluation-setup > div { padding: 14px 16px; }
  .evaluation-setup dt { margin-bottom: 5px; }
}
@media (max-width: 540px) {
  .research-group { gap: 32px; padding-top: 26px; }
  .research-group-heading h3 { font-size: 23px; }
  .research-block > h4 { font-size: 19px; }
  .experiment-table th, .experiment-table td { padding: 10px 8px; }
  .experiment-table--recipes { font-size: 11px; }
  .experiment-table--recipes thead th { font-size: 10px; }
}
.research-figure { margin: 24px 0 0; }
.research-figure > a { display: block; position: relative; padding: clamp(10px, 1.5vw, 20px); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; transition: box-shadow .2s; }
.research-figure > a:hover { box-shadow: 0 16px 32px -14px #0005; }
.research-figure > a::after { content: "↗"; position: absolute; top: 8px; right: 10px; font-size: 16px; color: #70757b; }
.research-figure img { width: 100%; height: auto; }
.research-figure figcaption { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.recovery-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: recovery; margin: 24px 0; padding: 0; }
.recovery-flow li { counter-increment: recovery; display: flex; align-items: baseline; gap: 12px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.recovery-flow li::before { content: counter(recovery, decimal-leading-zero); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.result-highlight { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.result-highlight > strong { display: block; font-size: clamp(27px, 3vw, 38px); font-weight: 600; line-height: 1.3; letter-spacing: -1px; }
.result-highlight > p { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.research-findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.research-findings article { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--soft); }
.research-findings h4 { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.research-findings p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.contributors-content { min-width: 0; }
.contributor-names { font-size: 16px; line-height: 2; }
.contributor-name { white-space: nowrap; }
.contributor-mark { margin-left: 2px; color: #467c64; font-size: .7em; font-weight: 650; }
[data-theme="dark"] .contributor-mark { color: #a4cfb8; }
.contributor-affiliation { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.contributor-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contributor-notes li { display: inline-flex; align-items: baseline; gap: 5px; }
.citation-block { position: relative; margin-top: 30px; }
.citation-copy { position: absolute; top: 12px; right: 12px; z-index: 1; min-width: 64px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; transition: color .2s, border-color .2s; }
.citation-copy:hover, .citation-copy.is-copied { color: var(--ink); border-color: #6a9a80; }
.citation-copy:disabled { cursor: wait; }
.citation-pre { margin: 0; padding: 58px 20px 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font: 12px/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; box-shadow: var(--shadow); }
.citation-pre code { font: inherit; }
.citation-status { min-height: 1.6em; margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* Fixed colors keep this control identical in both themes. */
.back-to-top { position: fixed; z-index: 15; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #24272a; color: #fff; border: 1px solid #ffffff40; box-shadow: 0 4px 16px #00000030; transition: transform .2s ease, background-color .2s ease; }
.back-to-top svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { background: #3b4045; transform: translateY(-3px); }
.site-footer { background: #111214; color: #c8cacf; margin-top: -24px; padding: 83px max(5%, calc((100% - 1116px) / 2)) 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-size: 13px; font-weight: 600; }
.footer-brand span { color: #7f858e; font-size: 11px; font-weight: 400; }
.site-footer p, .design-credit { color: #a5aab1; }
.preview-dialog { width: min(1160px, calc(100% - 32px)); max-height: 90svh; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #0006; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.dialog-heading .eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 8px; }
.dialog-heading h2 { font-size: 24px; }
.dialog-close { flex-shrink: 0; font-size: 27px; }
.dialog-image { width: 100%; height: auto; max-height: 65svh; object-fit: contain; border-radius: 8px; background: white; }
.dialog-caption { margin-top: 18px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.dialog-original { display: inline-block; margin-top: 14px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
/* Research hero and Material-inspired raised video cards. */
.hero-copy { max-width: 820px; }
.hero-copy .hero-subtitle { max-width: none; font-size: var(--hero-subtitle-size, clamp(11px, 1.6vw, 21px)); font-weight: 500; line-height: 1.5; }
.hero-subtitle-line { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px 100px; margin-top: 28px; }
.hero-actions .hero-link { margin-top: 0; gap: 8px; }
.capabilities { max-width: 1180px; padding: 0 32px 72px; margin: auto; }
.overview { max-width: 1040px; margin: auto; padding: clamp(48px, 6vw, 84px) 32px 52px; text-align: center; }
.overview h2 { max-width: 880px; margin: 0 auto 24px; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; letter-spacing: -1.1px; text-wrap: balance; }
.overview > p { max-width: 860px; margin: auto; text-align: left; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.85; color: var(--muted); }
.overview .research-figure { margin-top: 36px; text-align: left; }
.demo-group + .demo-group { margin-top: 54px; }
.demo-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.demo-group-heading h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.6px; }
.demo-group-heading > p { max-width: 300px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.demo-grid { display: grid; gap: 26px; }
.demo-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-card { min-width: 0; padding: 12px 12px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); transition: background-color 520ms ease, border-color 520ms ease; }
.demo-media { display: block; position: relative; margin-top: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: #111214; box-shadow: 0 8px 18px #0002; transition: box-shadow .25s; }
.demo-media:hover { box-shadow: 0 10px 22px #0003; }
.demo-media video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.demo-expand { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; padding: 8px 11px; color: #fff; background: #111214cc; font-size: 10px; backdrop-filter: blur(8px); }
.demo-expand svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.demo-copy { padding: 23px 10px 0; }
.demo-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }
.demo-copy h3 { font-size: 18px; letter-spacing: -.4px; line-height: 1.4; margin: 9px 0 13px; }
.demo-prompt { font-size: 13px; line-height: 1.7; padding: 10px 12px; border-left: 2px solid var(--line); background: var(--soft); border-radius: 0 5px 5px 0; }
.demo-description { margin-top: 15px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.video-dialog { width: min(1200px, calc(100% - 40px)); max-height: 92svh; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #0006; }
.video-close { flex-shrink: 0; font-size: 27px; }
.expanded-video { display: block; width: 100%; max-height: 65svh; aspect-ratio: 16 / 9; background: #000; border-radius: 9px; object-fit: contain; }
.video-prompt { margin-top: 17px; font-size: 14px; line-height: 1.7; }
.video-error { margin-top: 12px; font-size: 13px; color: var(--muted); }
.video-error a { text-decoration: underline; }
@media (max-width: 900px) {
  .demo-grid--trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-group-heading { display: block; }
  .demo-group-heading > p { max-width: 550px; margin-top: 12px; }
}
@media (max-width: 600px) {
  .hero { height: auto !important; min-height: 780px; max-height: none !important; padding-top: 130px; padding-bottom: 165px; }
  .hero-eyebrow { letter-spacing: 1.5px; line-height: 1.8; }
  .hero-actions { gap: 18px 56px; }
  .hero-actions .hero-link { gap: 8px; }
  .capabilities { padding: 0 20px 52px; }
  .overview { padding-inline: 20px; padding-bottom: 38px; }
  .demo-grid--pair, .demo-grid--trio { grid-template-columns: 1fr; gap: 30px; }
  .demo-group-heading h2 { font-size: 20px; }
  .video-dialog { width: calc(100% - 20px); padding: 16px; }
  .video-dialog .dialog-heading h2 { font-size: 20px; }
}
.download-icon, .external-link-icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-link .download-icon { width: 12px; height: 12px; }
.report-dialog { width: min(520px, calc(100% - 32px)); max-height: 90svh; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #0006; }
/* Keep every modal and its backdrop in the top layer throughout the same fade. */
.animated-dialog { opacity: 0; transform: translateY(-50px); transition: opacity .3s ease-out, transform .3s ease-out; }
.animated-dialog.is-visible { opacity: 1; transform: translateY(0); }
.animated-dialog::backdrop { background: #0009; opacity: 0; transition: opacity .3s ease-out; }
.animated-dialog.is-visible::backdrop { opacity: 1; }
.report-close { flex-shrink: 0; font-size: 27px; }
.report-dialog .dialog-heading h2 { font-size: clamp(19px, 4vw, 24px); }
#report-description { font-size: 16px; line-height: 1.7; }
.report-meta { margin-top: 16px; font-size: 12px; color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; font-size: 12px; }
.report-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-download, .report-arxiv { font-weight: 650; }
/* Match AnyWorld's independent image scales without moving the head anchors. */
@media (max-width: 1080px) {
  .hero { --front-width: clamp(900px, 155vw, 1320px); --stance-width: clamp(1300px, 220vw, 1900px); }
}
@media (max-width: 820px) {
  .hero { --front-width: 980px; --stance-width: 1500px; }
}
@media (max-width: 1100px) {
  .nav-shell { gap: 20px; padding-left: 18px; }
  .brand-light { display: none; }
  .catalog-section { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
  .category-heading h2 { font-size: 23px; }
  .nav-shell { min-height: 62px; flex-wrap: wrap; gap: 0; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .menu-toggle span { width: 18px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { display: none; order: 3; flex-basis: 100%; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); max-height: calc(100svh - 140px); overflow-y: auto; }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 13px 4px; }
  .research-findings { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .site-header { left: 18px; right: 18px; top: 16px; }
  .hero { min-height: 650px; height: 78svh; }
  .hero { --robot-top: 135px; --front-opacity: .38; --stance-opacity: .25; }
  .main-card { width: calc(100% - 32px); }
  .catalog-section { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 48px; }
  .category-heading { position: static; }
  .category-heading p { max-width: 480px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 100px; }
  .site-header { top: 12px; left: 12px; right: 12px; }
  .nav-shell { padding: 8px 10px 8px 14px; min-height: 58px; }
  .brand { font-size: 12px; gap: 9px; }
  .brand img { width: 29px; }
  .brand-light { display: inline; }
  .nav-cta { display: none; }
  .hero { height: 740px; min-height: 600px; max-height: 88svh; padding-inline: 24px; }
  .hero h1 { font-size: clamp(62px, 18vw, 90px); }
  .hero-eyebrow { font-size: 9px; }
  .hero-subtitle { max-width: 275px; margin: auto; }
  .hero { --robot-top: 150px; --front-opacity: .28; --stance-opacity: .16; }
  .main-card { width: calc(100% - 20px); border-radius: 12px; margin-top: -60px; }
  .catalog { padding: 0 20px; }
  .research-content { gap: 32px; }
  .research-block > h3 { font-size: 20px; }
  .research-block > p, .research-content > p { font-size: 14px; }
  .recovery-flow { grid-template-columns: 1fr; }
  .result-highlight { padding: 20px; }
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .preview-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, dialog::backdrop { transition: none !important; }
}
