/* Footage beside the 3D view (the full take's two head cameras, stacked), the capture spec and the roadmap. */
.ego { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s5) var(--pad) var(--s4) 0; }
.ego-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); min-height: 30px; }
.ego-head .label { color: var(--muted); }
.ego-keys { display: inline-flex; gap: 14px; margin-right: auto; cursor: help; }
.ego-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ego-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--a-vivid); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(15,23,42,0.12); }
.ego-key[data-person="B"] i { background: var(--b-vivid); }
.ego-view { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--ink); }
.ego-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Each caption sits on its own dark pill, so it reads over any frame (white on rgba(15,23,42,.72) >= 6.6:1). */
.ego-cap { position: absolute; inset: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding: 10px; color: #fff; pointer-events: none; }
.ego-cap .label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; background: rgba(15,23,42,0.72); font-weight: 600; white-space: nowrap; }
.ego-cap .label:empty { display: none; }
.ego-cap i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-vivid); }
/* The hand count is a value, not a caption: sentence case; on the narrowest phones only the camera's name. */
.ego-cap [data-ego-count] { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
@media (max-width: 400px) { .ego-cap [data-ego-count] { display: none; } }
.ego-view[data-person="B"] .ego-cap i { background: var(--b-vivid); }
.ego-src { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Under the full-width stage (<= 900px, assets/site.css): the two cameras side by side, stacked on small phones. */
@media (max-width: 900px) {
  .ego { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s4) var(--pad); }
  .ego-head { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .ego { grid-template-columns: minmax(0, 1fr); } }

/* The specs sit right under the section's rule: 6 across, 3 on laptops and tablets, 2 on phones. */
.specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { display: flex; flex-direction: column; gap: var(--s2); padding: 20px 20px var(--s5) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec .label { color: var(--muted); }
.spec b { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.spec-sub { font-size: 13px; line-height: 1.4; color: var(--ink-3); text-wrap: pretty; }
@media (max-width: 600px) { .spec { padding-right: var(--s3); } .spec b { font-size: 20px; } }
.world, .files { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.world .label, .files > .label { color: var(--muted); padding-top: 3px; }
.world span:last-child { max-width: 72ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.files dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 300px), calc((100% - 2 * var(--s6)) / 3)), 1fr)); gap: var(--s3) var(--s6); }
.files dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s3); font-size: 14px; line-height: 1.45; }
.files dt { font-weight: 600; color: var(--ink); }
.files dd { margin: 0; color: var(--ink-2); }
.limits { padding: var(--s4) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.limits summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; }
.limits summary::-webkit-details-marker { display: none; }
.limits summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.limits[open] summary::before { transform: rotate(45deg); }
.limits ul { margin: var(--s2) 0 0; padding-left: 20px; max-width: 80ch; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) {
  .world, .files { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .files dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Roadmap: 1 dot = 10 h at an 8 px pitch (5 × 2, 10 × 10 and, for v3, 50 × 20 dots: 400 × 160 px), bottoms aligned so the
   tiers read as rising bars on one line 160 px down. Each column is at least as wide as its content (v2's line stays on one
   line, v3's dots fit); where three such columns do not fit, v3 stands 25 × 40 (200 × 320 px) and the text wraps. Stacked
   (900 px and below), v3 is as wide as the column allows: 50 × 20, 40 × 25 (320 × 200 px) or 25 × 40. */
.legend { color: var(--muted); display: flex; align-items: center; gap: var(--s2); }
.legend::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.scale { display: grid; grid-template-columns: repeat(3, minmax(max-content, 1fr)); align-items: start; gap: var(--s7) var(--col-gap); padding-top: var(--gap-in); }
.tier { display: grid; grid-template-rows: 160px auto; grid-template-columns: minmax(0, 1fr); gap: var(--s4); min-width: 0; }
.tier.is-later .dots { width: 400px; height: 160px; }
.dots { align-self: end; max-width: 100%; background-image: radial-gradient(circle, var(--dot) 1.9px, transparent 2.4px); background-size: 8px 8px; }
.tier-body { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--ink); }
.tier-body .label { color: var(--muted); }
.tier-body b { font-size: var(--fs-display); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }
.tier-body span:last-child { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tier.is-current .label { color: var(--accent); }
.tier.is-v2 .tier-body { border-top-color: #94A3B8; }
.tier.is-later .tier-body { border-top: 1px dashed #94A3B8; }
@media (max-width: 1139px) {
  .scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier { grid-template-rows: 320px auto; }
  .tier.is-later .dots { width: 200px; height: 320px; }
  .tier-body span:last-child { max-width: 280px; }
}
@media (max-width: 900px) {
  .scale { grid-template-columns: minmax(0, 1fr); }
  .tier { grid-template-rows: auto auto; }
  .dots { align-self: start; }
  .tier.is-later .dots { width: 400px; height: 160px; }
  .tier-body span:last-child { max-width: none; }
}
@media (max-width: 439px) { .tier.is-later .dots { width: 320px; height: 200px; } }
@media (max-width: 359px) { .tier.is-later .dots { width: 200px; height: 320px; } }

/* Type floor: 12px on phones and any touch screen. */
@media (max-width: 600px), (any-pointer: coarse) { .spec .label, .world .label, .files > .label { font-size: 12px; } }
