/* URAI project page.
   Design variables follow the HexaFuture site (hexafuture.ai/home): black stage, system UI type,
   brand blues, 1440 px frame with a fluid gutter, a translucent fixed bar and a ruled footer. */
:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --blue: #087fba;
  --blue-light: #63bdea;
  --blue-accent: #75c7ef;
  --blue-focus: #91d4fc;
  --blue-brand: #008ed6;
  --text-body: #c9cccf;
  --text-soft: #aeb8c0;
  --text-sub: #d1d6da;
  --text-muted: #9ba7b2;
  --text-dim: #687782;
  --line: #24313a;
  --line-strong: #2d4353;
  --line-hover: #4b7690;
  --surface: #05080a;
  --surface-2: #0a1117;
  --warm: #dccab0;
  --warm-light: #f1e4cf;
  --warm-shade: #a08e75;
  --steel: #637c88;
  --good: #8fd3b0;
  --bad: #e58a7a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --site-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --site-width: 1440px;
  --content-width: 1200px;
  --reading-width: 860px;
  --site-gutter: clamp(24px, 4vw, 80px);
  --site-header-height: 80px;
  --anchor-offset: 104px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--anchor-offset); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--black); color: var(--text-body); }
body {
  font: 400 17px/1.65 var(--site-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: #087fba33; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 4px; }
::selection { background: var(--blue); color: var(--white); }
strong { color: var(--white); font-weight: 600; }
sup { line-height: 0; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 20px; top: -100px; z-index: 110; padding: 14px 20px; background: var(--white); color: var(--black); }
.skip-link:focus { top: 16px; }
.wrap { width: calc(100% - 2 * var(--site-gutter)); max-width: var(--content-width); margin-inline: auto; }
.reading { max-width: var(--reading-width); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: calc(var(--site-header-height) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  background: #050607;
  isolation: isolate;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgb(255 255 255 / 12%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.site-header.is-scrolled::after { opacity: 1; }
@supports ((backdrop-filter: blur(22px)) or (-webkit-backdrop-filter: blur(22px))) {
  .site-header { background: transparent; }
  .site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 -20px;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(0 0 0 / 88%), rgb(0 0 0 / 68%) 74%, rgb(0 0 0 / 28%));
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    -webkit-mask-image: linear-gradient(#000 0 72%, transparent 100%);
    mask-image: linear-gradient(#000 0 72%, transparent 100%);
    opacity: .72;
    transition: opacity 220ms ease;
  }
  .site-header.is-scrolled::before { opacity: 1; }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 2 * var(--site-gutter));
  max-width: var(--site-width);
  height: 100%;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; flex: none; width: 140px; min-height: 44px; }
.brand img { width: 100%; height: auto; aspect-ratio: 1192 / 402; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 12px 8px;
  color: #c8cacc;
  font: 400 14px/20px var(--site-font);
  white-space: nowrap;
  transition: color 180ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 8px 6px;
  height: 1px;
  background: var(--blue-accent);
  opacity: .8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}
.site-nav a[aria-current="true"] { color: var(--white); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-window { display: block; height: 20px; overflow: hidden; }
.nav-label { position: relative; display: block; transition: transform 320ms var(--ease); }
.nav-label::after { content: attr(data-label) / ""; position: absolute; inset: 100% 0 auto; color: var(--white); }
.site-nav a:focus-visible { color: var(--white); }
.site-nav a:focus-visible .nav-label { transform: translateY(-100%); }
.site-nav a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--white); }
  .site-nav a:hover .nav-label { transform: translateY(-100%); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* ---------------------------------------------------------------- hero */
.hero { padding-top: 152px; text-align: center; }
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.eyebrow > span:first-child { color: var(--blue-accent); }
.eyebrow > span[aria-hidden] { color: #587180; }
.title { margin: 0 auto; max-width: 1120px; color: var(--white); font-weight: 450; text-wrap: balance; }
.title-main {
  display: block;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.title-sub {
  display: block;
  margin-top: 20px;
  color: var(--text-sub);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.system-line { margin: 26px auto 0; color: var(--text-muted); font-size: 15px; }
.system-line b { color: var(--blue-accent); font-weight: 600; letter-spacing: .02em; }
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  max-width: 940px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  color: #e3e7ea;
  font-size: 16px;
  line-height: 1.7;
}
.authors li { white-space: nowrap; }
.authors sup { margin-left: 2px; color: var(--blue-accent); font-size: 11px; }
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 22px;
  margin: 16px auto 0;
  max-width: 900px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.affiliations sup { margin-right: 3px; color: var(--blue-accent); font-size: 10px; }
.corresponding { margin: 6px 0 0; color: var(--text-dim); font-size: 13px; }
.corresponding sup { color: var(--blue-accent); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgb(255 255 255 / 3%);
  color: var(--white);
  font: 600 14px/1.4 var(--site-font);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; }
.btn .btn-arrow { color: var(--blue-accent); transition: transform 200ms var(--ease); }
a.btn:hover, a.btn:focus-visible { border-color: var(--line-hover); background: var(--surface-2); }
a.btn:hover .btn-arrow, a.btn:focus-visible .btn-arrow { transform: translate(3px, -3px); }
.btn.is-soon { border-style: dashed; border-color: var(--line); background: none; color: var(--text-dim); cursor: not-allowed; }
.btn .soon { color: var(--text-dim); font-size: 12px; font-weight: 400; }
.summary-line {
  max-width: 820px;
  margin: 40px auto 0;
  color: var(--text-body);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: balance;
}

/* A single light pass over the title, in the manner of the HexaFuture landing copy. */
@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .shine {
      --ink: var(--white);
      background-image: linear-gradient(110deg, var(--ink) 35%, #80cdf3 44%, #effaff 50%, #80cdf3 56%, var(--ink) 65%);
      background-repeat: no-repeat;
      background-size: 300% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shine-pass 2600ms cubic-bezier(.25, .6, .35, 1) 120ms both;
    }
    .title-sub.shine { --ink: var(--text-sub); animation-delay: 320ms; }
    @keyframes shine-pass { from { background-position: 100% 0; } to { background-position: 0 0; } }
  }
}

/* ---------------------------------------------------------------- teaser */
.teaser { margin: 64px auto 0; }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  aspect-ratio: 960 / 430;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-label, .code-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.photo-label { top: 10px; left: 10px; background: rgb(0 0 0 / 66%); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.photo-label.right { left: auto; right: 10px; }
.code-chip { right: 10px; bottom: 10px; }
.code, .code-chip { font-family: var(--mono); font-size: 12.5px; }
.code {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.tool-reusable { border: 1px solid var(--blue-light); background: rgb(5 20 30 / 82%); color: #a9dcf6; }
.tool-task { border: 1px dashed var(--warm); background: rgb(28 22 14 / 82%); color: var(--warm-light); }
.figure-caption { max-width: var(--reading-width); margin: 16px auto 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; text-align: left; }
.figure-caption b { color: #dfe4e8; font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section { padding: 120px 0 0; }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { justify-content: flex-start; margin-bottom: 18px; }
.section-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 450;
  line-height: 1.23;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-lead { max-width: var(--reading-width); margin: 20px 0 0; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.subsection { margin-top: 88px; }
.subsection-title { margin: 0 0 12px; color: var(--white); font-size: 24px; font-weight: 450; line-height: 1.3; letter-spacing: -.02em; }
.abstract p { margin: 0; color: var(--text-body); font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 18px; color: var(--text-body); font-size: 17px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- method figures */
.scene-figure {
  margin: 0 0 40px;
  padding: 28px 32px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(120% 80% at 50% 0%, #07121a 0%, #030507 60%, #020304 100%);
}
.scene-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.scene-title { margin: 0; color: var(--white); font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.scene-title .panel { margin-right: 10px; color: var(--blue-accent); font-weight: 400; }
.scene-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.scene-controls { display: flex; flex: none; gap: 4px; }
.scene-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: #a7bac8;
  font-size: 12px;
  transition: border-color 180ms ease, color 180ms ease;
}
.scene-btn:hover, .scene-btn:focus-visible { border-color: #354956; color: var(--white); }
.scene-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.scene-btn .icon-play { display: none; }
.scene-btn[aria-pressed="true"] .icon-pause { display: none; }
.scene-btn[aria-pressed="true"] .icon-play { display: block; }
.scene-stage { position: relative; width: 100%; margin-inline: auto; }
.scene-figure[data-layout="tall"] .scene-stage { max-width: 460px; }
/* A recording that plays on from a photo slot (assets/js/motion/clips.js) lies under the SVG in the slot's box, so
   the slot's frame, chips and shade stay on top while its still fades out over the recording's first frame. */
.scene-stage > .scene-svg { position: relative; z-index: 1; }
.slot-clip { position: absolute; z-index: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.slot-clip.is-shown { visibility: visible; }
.slot-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-progress { height: 1px; margin-top: 18px; background: var(--line); overflow: hidden; }
.scene-progress span { display: block; height: 100%; background: var(--blue-light); transform: scaleX(0); transform-origin: left center; }
.scene-status { min-height: 3.3em; margin: 14px 0 0; color: var(--text-sub); font-size: 15px; line-height: 1.6; }
.scene-figure .figure-caption { max-width: none; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.scene-figure.is-static .scene-controls, .scene-figure.is-static .scene-progress { display: none; }

/* (c) what one model call controls: HTML rows, SVG timelines */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode { min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mode.is-ours { border-color: var(--blue); background: rgb(8 127 186 / 9%); }
.mode-name { margin: 0; color: var(--white); font-size: 16px; font-weight: 600; line-height: 1.4; }
.mode.is-ours .mode-name { color: var(--blue-accent); }
.mode-track { position: relative; height: 34px; margin: 14px 0 12px; }
.mode p { margin: 0; color: var(--text-body); font-size: 14.5px; line-height: 1.55; }
.mode .mode-effect { margin-top: 8px; color: var(--text-muted); font-weight: 600; font-size: 13.5px; }
.mode.is-ours .mode-effect { color: var(--blue-accent); }
.mode-count { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
.mode-count output { color: var(--white); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.tl-seg { position: absolute; top: 0; bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #47545d; transition: background-color 200ms ease, box-shadow 200ms ease; }
.tl-dot.is-on { background: var(--white); box-shadow: 0 0 8px rgb(255 255 255 / 45%); }
.tl-ring { position: absolute; left: -4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid var(--white); border-radius: 50%; opacity: 0; }
.tl-code {
  position: absolute; left: 15px; top: 50%; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 22px; margin-top: -11px; border: 1px solid #5f6f79; border-radius: 4px;
  background: #0b141b; color: var(--text-sub); font: 700 12px/1 var(--mono); transition: border-color 200ms ease, background-color 200ms ease;
}
.tl-code.is-on { border-color: var(--white); background: rgb(255 255 255 / 12%); color: var(--white); }
.tl-bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgb(255 255 255 / 7%); overflow: hidden; }
.tl-fill { position: absolute; inset: 0; border-radius: 3px; background: var(--steel); transform: scaleX(0); transform-origin: left center; }
.tl-bar.ours .tl-fill { background: var(--blue-light); }
.tl-head { position: absolute; top: -5px; bottom: -5px; width: 1px; background: rgb(255 255 255 / 55%); }
.modes-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
.modes-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.legend-bar { width: 26px; height: 6px; border-radius: 3px; background: var(--steel); }
.legend-bar.ours { background: var(--blue-light); }

/* ---------------------------------------------------------------- results */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.stat { padding: 28px 28px 30px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-value { display: block; color: var(--white); font-size: clamp(34px, 3.2vw, 46px); font-weight: 450; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-value small { color: var(--text-muted); font-size: .5em; letter-spacing: -.01em; }
.stat-value .accent { color: var(--blue-accent); }
.stat-label { display: block; margin-top: 12px; color: var(--white); font-size: 15px; font-weight: 600; }
.stat p { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.chart { margin-top: 48px; }
.chart-title { margin: 0 0 6px; color: var(--white); font-size: 17px; font-weight: 600; }
.chart-note { margin: 0 0 22px; color: var(--text-muted); font-size: 13.5px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; color: var(--text-muted); font-size: 13px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 8px; border-radius: 2px; }
.swatch.native, .bar.native { background: #3d4f5b; }
.swatch.program, .bar.program { background: repeating-linear-gradient(135deg, var(--warm-shade) 0 3px, #6e6152 3px 6px); }
.swatch.urai, .bar.urai { background: var(--blue-light); }
.agent-rows { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.agent-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; }
.agent-name { color: var(--white); font-size: 15px; line-height: 1.35; }
.agent-name small { display: block; color: var(--text-dim); font-size: 12.5px; }
.bars { display: grid; gap: 5px; }
.bar-line { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; align-items: center; }
.bar-track { height: 14px; border-radius: 3px; background: rgb(255 255 255 / 4%); overflow: hidden; }
.bar { display: block; width: var(--v); height: 100%; border-radius: 3px; transform-origin: left center; }
.bar-val { color: var(--text-body); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.bar-line.urai .bar-val { color: var(--white); font-weight: 600; }
.reveal .bar { transform: scaleX(0); transition: transform 1100ms var(--ease); }
.reveal.is-visible .bar { transform: scaleX(1); }
.reveal.is-visible .bar-line:nth-child(2) .bar { transition-delay: 120ms; }
.reveal.is-visible .bar-line:nth-child(3) .bar { transition-delay: 240ms; }

.table-wrap { margin-top: 48px; }
.table-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--line-strong); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--text-muted); font-weight: 500; vertical-align: bottom; border-bottom: 1px solid var(--line-strong); }
tbody td { color: var(--text-body); border-bottom: 1px solid #121b21; }
tbody tr.group-end td { border-bottom-color: var(--line-strong); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-urai td { color: var(--white); }
tbody tr.is-urai td:first-child { color: var(--blue-accent); }
td.best { font-weight: 700; }
.table-note { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.scroll-hint { display: none; margin: 8px 0 0; color: var(--text-dim); font-size: 12px; }

.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.compare-card { min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.compare-card h4 { margin: 0; color: var(--white); font-size: 17px; font-weight: 600; }
.compare-ratio { margin: 10px 0 2px; color: var(--blue-accent); font-size: 38px; font-weight: 450; line-height: 1.1; letter-spacing: -.03em; }
.compare-ratio small { color: var(--text-muted); font-size: 15px; letter-spacing: 0; }
.compare-ratio + .compare-ratio { margin-top: 2px; }
.compare-metric { margin-top: 18px; }
.compare-metric > span { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 12.5px; }
.compare-bars { display: grid; gap: 6px; }
.compare-bars .bar-line { grid-template-columns: 96px minmax(0, 1fr) 62px; }
.compare-bars .who { color: var(--text-muted); font-size: 12.5px; line-height: 1.25; }
.compare-bars .bar-line.urai .who { color: var(--blue-accent); }
.compare-success { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
.compare-success b { color: var(--white); font-weight: 600; }
.callout { margin: 20px 0 0; padding: 16px 20px; border-left: 2px solid var(--blue); background: rgb(8 127 186 / 7%); color: var(--text-soft); font-size: 14px; line-height: 1.7; }

.solo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-block: 1px solid var(--line); }
.solo div { padding: 18px 18px 18px 0; }
.solo div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.solo b { display: block; color: var(--white); font-size: 26px; font-weight: 450; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.solo span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }

.strips { margin: 36px 0 0; }
.strip-head { display: grid; grid-template-columns: 190px repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; color: var(--text-dim); font-size: 12px; text-align: center; }
.strip-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px; align-items: center; padding: 6px 0; }
.strip-label { display: grid; justify-items: start; gap: 6px; padding-right: 10px; }
.strip-label b { color: var(--white); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.strip-frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.strip-frames img { width: 100%; height: auto; aspect-ratio: 640 / 288; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2); }
.paper-figure { margin: 44px 0 0; }
.paper-figure .figure-card { display: block; padding: 16px; border-radius: 8px; background: #fff; cursor: zoom-in; }
.paper-figure img { width: 100%; height: auto; }

.evolution-case { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.case-numbers { display: grid; gap: 0; border-block: 1px solid var(--line); }
.case-numbers div { padding: 16px 0; }
.case-numbers div + div { border-top: 1px solid var(--line); }
.case-numbers b { display: block; color: var(--white); font-size: 24px; font-weight: 450; font-variant-numeric: tabular-nums; }
.case-numbers span { color: var(--text-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- citation */
.bibtex { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.bibtex pre { margin: 0; padding: 22px 120px 22px 24px; color: #d6dde2; font: 13.5px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.bib-line { display: block; }
.bib-line.field { padding-left: 6ch; text-indent: -4ch; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-sub);
  font-size: 13px;
  transition: border-color 180ms ease, color 180ms ease;
}
.copy-btn:hover, .copy-btn:focus-visible { border-color: var(--line-hover); color: var(--white); }
.copy-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.copy-btn[data-state="done"] { border-color: var(--blue); color: var(--blue-accent); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 140px; background: var(--black); color: var(--white); font: 400 14px/1.5 var(--site-font); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  width: calc(100% - 2 * var(--site-gutter));
  max-width: var(--site-width);
  min-height: 140px;
  margin: 0 auto;
  padding: 36px 0 max(36px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; width: 132px; min-height: 44px; }
.footer-brand img { width: 100%; height: auto; }
.footer-sep { color: var(--text-dim); }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-size: 15px; transition: color 180ms ease; }
.footer-link:hover, .footer-link:focus-visible { color: var(--white); }
.footer-copy { color: var(--text-dim); font-size: 14px; }

/* ---------------------------------------------------------------- hexagon cursor (fine pointers only) */
.hex-cursor, .hex-ripple { display: none; }
@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  .hex-cursor, .hex-ripple {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    display: block;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    pointer-events: none;
    will-change: transform;
  }
  .hex-cursor[hidden], .hex-ripple[hidden] { display: none; }
  html.hex-cursor-on, html.hex-cursor-on * { cursor: none !important; }
  html.hex-cursor-on :is(input, textarea, pre, pre *) { cursor: text !important; }
  .hex-cursor svg, .hex-ripple svg { width: 100%; height: 100%; overflow: visible; }
  .hex-cursor .shell { fill: #030c16d9; stroke: #e4e8dd; stroke-width: 2.3; stroke-linejoin: round; transition: stroke 180ms ease; }
  .hex-cursor .halo { fill: none; stroke: #31b7f2; stroke-width: 4; opacity: .38; filter: blur(4px); }
  .hex-cursor .eyes { fill: #31b7f2; }
  .hex-cursor .body { transform-origin: 24px 24px; transition: transform 180ms cubic-bezier(.2, .7, .3, 1); }
  .hex-cursor[data-state="hover"] .body { transform: scale(1.1); }
  .hex-cursor[data-state="hover"] .shell { stroke: #e9f7ff; }
  .hex-cursor[data-state="press"] .body { transform: scale(.94); }
  .hex-ripple path { fill: none; stroke: #31b7f2; stroke-width: 1.1; stroke-linejoin: round; opacity: 0; transform-origin: 24px 24px; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .modes, .compare { grid-template-columns: minmax(0, 1fr); }
  .compare { max-width: 640px; }
  .evolution-case { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .strip-head, .strip-row { grid-template-columns: 150px minmax(0, 1fr); }
  .strip-head { grid-template-columns: 150px repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { padding-top: 140px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .solo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solo div:nth-child(3) { padding-left: 0; border-left: 0; }
  .solo div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .agent-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .strip-head { display: none; }
  .strip-row { grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); }
  .strip-label { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .strip-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-frames { counter-reset: frame; }
  .scroll-hint { display: block; }
}
@media (max-width: 600px) {
  :root { --site-header-height: 72px; --anchor-offset: 88px; --site-gutter: 24px; }
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .brand { width: 106px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding-inline: 6px; }
  .site-nav a::after { right: 6px; left: 6px; }
  .hero { padding-top: 116px; }
  .eyebrow { margin-bottom: 22px; font-size: 12px; gap: 10px; }
  .title-main { font-size: clamp(32px, 8.8vw, 40px); line-height: 1.08; }
  .title-sub { margin-top: 14px; font-size: 20px; }
  .system-line { font-size: 14px; }
  .authors { gap: 0 14px; margin-top: 30px; font-size: 15px; }
  .affiliations { flex-direction: column; gap: 0; font-size: 13.5px; }
  .actions { gap: 8px; margin-top: 28px; }
  .btn { padding: 9px 14px; }
  .summary-line { margin-top: 30px; font-size: 17px; }
  .teaser { margin-top: 44px; }
  .teaser-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo-label { font-size: 12px; }
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 28px; }
  .subsection { margin-top: 64px; }
  .subsection-title { font-size: 21px; }
  .abstract p { font-size: 16.5px; line-height: 1.72; }
  .scene-figure { margin-bottom: 28px; padding: 18px 14px 16px; border-radius: 8px; }
  .scene-head { flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .scene-controls { align-self: flex-end; margin-top: -6px; }
  .scene-title { font-size: 18px; }
  .scene-status { font-size: 14.5px; }
  .mode { padding: 16px 14px 14px; }
  .compare-card { padding: 18px 16px; }
  .compare-ratio { font-size: 32px; }
  .compare-bars .bar-line { grid-template-columns: 84px minmax(0, 1fr) 58px; gap: 8px; }
  .solo b { font-size: 22px; }
  .bibtex pre { padding: 56px 16px 18px; font-size: 12.5px; }
  .site-footer { margin-top: 96px; }
  .footer-inner { flex-direction: column; gap: 6px; min-height: 132px; padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); }
  .footer-sep { display: none; }
}
@media (max-width: 360px) {
  :root { --site-gutter: 14px; }
  .site-nav a { padding-inline: 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal .bar { transform: none; }
  .hex-ripple { display: none !important; }
}
@media (forced-colors: active) {
  .shine { background: none; -webkit-text-fill-color: currentColor; }
}
@media print {
  .site-header, .scene-controls, .scene-progress, .copy-btn, .hex-cursor, .hex-ripple { display: none !important; }
  .site-footer { margin-top: 40px; }
}
