/* v4: blueprint (Barlow, grid, dimension lines) + technical catalogue (spec chips, physics report).
   Signal yellow = headline highlights, primary CTAs, key numbers. Teal = SimReady badge / secondary accents only.
   Red is never used. */
:root {
  --bg: #0a1014;
  --panel: #0f171c;
  --panel-2: #141e24;
  --panel-3: #1b262d;
  --ink: #e9eff0;
  --ink-2: #b3c0c3;
  --ink-3: #8a9a9e;
  --line: rgba(160, 200, 205, .10);
  --line-2: rgba(160, 200, 205, .20);
  --line-3: rgba(160, 200, 205, .32);
  --grid: rgba(94, 234, 212, .045);
  --grid-fine: rgba(94, 234, 212, .022);
  --yellow: #f5b800;
  --yellow-2: #ffcb2e;
  --yellow-ink: #1a1300;
  --yellow-soft: rgba(245, 184, 0, .12);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, .12);
  --accent: var(--yellow);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --stage: #0e1114;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.mono, code { font-family: var(--mono); }
.y { color: var(--yellow); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 16, 20, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; flex: none; }
.logo .mark { width: 24px; height: 25px; background: url(../mark.svg) center/contain no-repeat; flex: none; }
.logo .wm b { color: var(--yellow); font-weight: inherit; }
.head-search { flex: 0 1 420px; margin: 0 auto; position: relative; display: block; }
.head-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.head-search input {
  width: 100%; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  padding: 9px 44px 9px 36px; font: 400 14px var(--mono); border-radius: 0;
}
.head-search input::placeholder { color: var(--ink-3); }
.head-search input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.head-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line-2); padding: 0 6px; font: 12px var(--mono); color: var(--ink-3); pointer-events: none; }
.nav { display: flex; gap: 4px; flex: none; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 10px; font: 600 15px var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }

/* ---------------------------------------------------------------- shared atoms */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none;
  background: var(--yellow); color: var(--yellow-ink); border: 0; padding: 13px 22px;
  font: 700 16px/1.1 var(--cond); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .12s;
}
.btn:hover { background: var(--yellow-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--yellow); color: var(--yellow); }
.btn.secondary { background: var(--panel-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.secondary:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn.sr-btn { box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .5); }
.btn.sr-btn:hover { box-shadow: inset 0 0 0 1px var(--teal); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--panel-2); color: var(--ink-3); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.btn small { font: 400 12.5px var(--mono); letter-spacing: 0; text-transform: none; opacity: .85; white-space: nowrap; }
.tbtn {
  background: var(--panel-3); border: 1px solid var(--line-2); padding: 6px 12px; cursor: pointer; color: var(--ink);
  font: 600 13px var(--cond); letter-spacing: .12em; text-transform: uppercase;
}
.tbtn:hover { border-color: var(--yellow); color: var(--yellow); }

.chips-spec { display: flex; flex-wrap: wrap; gap: 5px; }
.spec {
  font: 500 11.5px/1 var(--mono); padding: 5px 7px; background: rgba(10, 16, 20, .78); border: 1px solid var(--line-2);
  color: #d3dcde; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.spec.mv b { color: var(--yellow); font-weight: 600; }
.sr {
  display: inline-flex; align-items: center; gap: 6px; color: var(--teal); border: 1px solid rgba(45, 212, 191, .45);
  background: rgba(8, 30, 28, .8); font: 600 11.5px/1 var(--mono); padding: 5px 7px; white-space: nowrap;
}
.sr::before { content: ""; width: 6px; height: 6px; background: var(--teal); flex: none; }

.sec { display: flex; align-items: center; gap: 16px; font: 600 15px var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin: 72px 0 22px; }
.sec .no { color: var(--yellow); font-size: 30px; letter-spacing: 0; font-weight: 700; }
.sec::after { content: ""; flex: 1; border-top: 1px dashed var(--line-2); }
.sec small { order: 3; font: 400 13px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
h2.sec { font-weight: 600; }
.sec, section[id] { scroll-margin-top: 84px; }

/* ---------------------------------------------------------------- home hero */
.hero { display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: 48px; align-items: center; padding: 48px 0 24px; min-height: min(80vh, 760px); }
.eyebrow { font: 600 13px var(--cond); letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase; margin: 0; }
.eyebrow b { color: var(--teal); font-weight: 600; }
.hero h1 { font: 700 clamp(56px, 7.6vw, 124px)/.88 var(--cond); text-transform: uppercase; margin: 16px 0 22px; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.lede { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 30ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin-top: 38px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.hero-stats b { display: block; font: 700 40px/1 var(--cond); color: var(--yellow); font-variant-numeric: tabular-nums; }
.hero-stats span { font: 600 12px var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.hero-fig { position: relative; margin: 0; padding: 0 0 38px 38px; }
.hero-fig .stage { position: relative; display: block; border: 1px solid var(--line-2); background: var(--stage); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; }
.hero-fig .stage img, .hero-fig .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fig .stage video { opacity: 0; transition: opacity .4s; }
.hero-fig .stage.playing video { opacity: 1; }
.hero-fig .cap { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 8px; align-items: center; background: rgba(10, 16, 20, .82); padding: 6px 10px; font: 500 13px var(--mono); color: var(--ink-2); }
.hero-fig .cap b { color: var(--yellow); font-weight: 600; }
.hero-fig .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--yellow); z-index: 2; pointer-events: none; }
.hero-fig .corner.tl { left: 46px; top: 8px; border-right: 0; border-bottom: 0; }
.hero-fig .corner.br { right: 8px; bottom: 46px; border-left: 0; border-top: 0; }
.dimline { position: absolute; color: var(--yellow); font: 600 13px var(--cond); letter-spacing: .1em; }
.dimline.h { left: 38px; right: 0; bottom: 8px; height: 14px; border-left: 1px solid; border-right: 1px solid; }
.dimline.h::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid; }
.dimline.h span { position: absolute; left: 50%; top: -3px; transform: translateX(-50%); background: var(--bg); padding: 0 8px; white-space: nowrap; }
.dimline.v { left: 8px; top: 0; bottom: 38px; width: 14px; border-top: 1px solid; border-bottom: 1px solid; }
.dimline.v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px solid; }
.dimline.v span { position: absolute; top: 50%; left: 7px; transform: translate(-50%, -50%) rotate(-90deg); background: var(--bg); padding: 0 8px; white-space: nowrap; }
.callouts { position: absolute; left: 52px; bottom: 52px; z-index: 2; display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.callouts li { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--ink); background: rgba(10, 16, 20, .82); border-left: 2px solid var(--yellow); padding: 3px 8px; }
.callouts li i { font-style: normal; color: var(--yellow); }
.callouts li small { color: var(--ink-3); font-size: 11px; }

/* ---------------------------------------------------------------- category tiles */
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.cat-tile {
  position: relative; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 3 / 4; background: var(--stage);
  cursor: pointer; padding: 0; text-align: left; display: block; color: var(--ink);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile:hover, .cat-tile[aria-pressed="true"] { border-color: var(--yellow); }
.cat-tile .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 10px 10px; background: linear-gradient(transparent, rgba(5, 9, 11, .94)); font: 700 18px/1.05 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.cat-tile .n { position: absolute; top: 9px; right: 10px; font: 600 13px var(--mono); color: var(--yellow); background: rgba(10, 16, 20, .8); padding: 1px 6px; }

/* ---------------------------------------------------------------- library toolbar + bento */
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2);
  padding: 6px 12px; font: 600 14px var(--cond); letter-spacing: .1em; text-transform: uppercase;
}
.chip small { font: 400 12px var(--mono); letter-spacing: 0; color: var(--ink-3); }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.chip[aria-pressed="true"] small { color: var(--yellow-ink); }
.count { color: var(--ink-3); font: 400 13px var(--mono); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 12px; padding-bottom: 40px; }
.card { container-type: inline-size; --cap: 60px; position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border: 1px solid var(--line-2); background: var(--stage); }
.card.big { grid-column: span 2; grid-row: span 2; }
.card .thumb { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .thumb img { transform: scale(1.045); }
.card .thumb video.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .3s; }
.card .thumb.previewing video.preview { opacity: 1; }
.card::before, .card::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--yellow); z-index: 3; opacity: 0; transition: opacity .25s; pointer-events: none; }
.card::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.card::after { right: 8px; bottom: calc(var(--cap) + 8px); border-left: 0; border-top: 0; }
.card:hover::before, .card:hover::after, .card:focus-visible::before, .card:focus-visible::after { opacity: 1; }
.card:hover, .card:focus-visible { border-color: rgba(245, 184, 0, .6); outline: none; }
.card .tag { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 12px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: rgba(10, 16, 20, .8); padding: 2px 8px; }
.card .meta { flex: 0 0 var(--cap); box-sizing: border-box; z-index: 2; padding: 8px 12px; background: rgba(8, 13, 16, .98); border-top: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.card .meta .chips-spec { flex-wrap: nowrap; overflow: hidden; gap: 4px; align-items: center; }
.card .meta .spec, .card .meta .sr { flex: 0 0 auto; font-size: 11px; padding: 1px 6px; white-space: nowrap; }
@container (max-width: 345px) { .card .meta .spec.opt-hide { display: none; } }
.card h3 { margin: 0; font: 700 18px/1.1 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; }
.card.big { --cap: 72px; } .card.big h3 { font-size: 24px; }
.empty { padding: 60px; text-align: center; color: var(--ink-3); grid-column: 1 / -1; font-family: var(--mono); }

/* ---------------------------------------------------------------- asset page */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 600 13px var(--cond); letter-spacing: .24em; color: var(--ink-3); text-transform: uppercase; margin: 26px 0 14px; }
.crumbs a { color: var(--yellow); text-decoration: none; }
.sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(330px, 5fr); border: 1px solid var(--line-2); background: rgba(15, 23, 28, .9); }
.sheet-view { border-right: 1px solid var(--line-2); min-width: 0; }
.sheet-spec { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pn { font: 500 13px var(--mono); color: var(--ink-3); letter-spacing: .04em; margin: 0; }
.pn b { color: var(--yellow); font-weight: 500; }
.sheet-spec h1 { margin: 0; font: 700 clamp(40px, 4.6vw, 72px)/.92 var(--cond); text-transform: uppercase; letter-spacing: .005em; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; }
.kv dt { color: var(--ink-3); padding-right: 18px; }
.kv dd { text-align: right; font: 500 14px var(--mono); color: var(--ink); }
.kv dd.y { color: var(--yellow); }
.blk h2 { font: 600 13px var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.blk h2 small { font: 400 13px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-left: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.opt { border: 1px solid var(--line-2); background: var(--panel-2); padding: 7px 16px; cursor: pointer; color: var(--ink-2); font: 600 14px var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.opt:hover { color: var(--ink); border-color: var(--ink-3); }
.opt[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--yellow-ink); }
.swatch { width: 30px; height: 30px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-3); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--yellow); }
.swatch:disabled { opacity: .3; cursor: not-allowed; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); text-align: center; margin-top: 10px; }
.dims div { background: var(--panel-2); padding: 9px 4px; }
.dims b { display: block; font: 700 24px/1.1 var(--cond); font-variant-numeric: tabular-nums; }
.dims span { font: 600 11px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.dl { display: grid; gap: 8px; }
.dl .btn { width: 100%; }
.note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.sr-line { margin: 0; font-size: 14px; color: var(--ink-2); }
.sr-line .sr { margin-right: 6px; }

.viewer-box { position: relative; overflow: hidden; background: var(--stage); height: min(68vh, 700px); min-height: 360px; }
.viewer-box canvas { position: relative; z-index: 1; width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: .9; }
.viewer-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; padding-bottom: 64px; z-index: 3; font-size: 14px; }
.viewer-overlay .pill { background: rgba(10, 16, 20, .86); border: 1px solid var(--line-2); padding: 7px 16px; font-family: var(--mono); font-size: 13px; }
.viewer-tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 4; }
.viewer-tools button { background: rgba(10, 16, 20, .82); border: 1px solid var(--line-2); padding: 6px 11px; cursor: pointer; color: var(--ink); font: 600 13px var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.viewer-tools button:hover { border-color: var(--yellow); color: var(--yellow); }
.viewer-tools button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.viewer-hint { position: absolute; right: 14px; bottom: 16px; font: 600 12px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); z-index: 4; text-shadow: 0 1px 2px #000; }
.main-view { cursor: default; }
.main-view.dragging { cursor: grabbing; }
.main-view:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.main-view .spin-canvas, .main-view .spin-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.main-view .spin-video { object-fit: contain; z-index: 2; background: inherit; }
.main-view .viewer-hint { transition: opacity .6s; }
.main-view .viewer-hint.faded { opacity: 0; }
.main-view .viewer-tools button#btn-3d { border-color: rgba(245, 184, 0, .6); }
.spin-note { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 4; max-width: calc(100% - 24px); background: rgba(10, 16, 20, .86); border: 1px solid var(--line-2); padding: 5px 14px; font-size: 12.5px; color: var(--ink-2); text-align: center; }
/* moving-part callouts over the turntable (click = play that part's clip) */
.view-callouts { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-height: calc(100% - 70px); overflow: hidden; }
.view-callouts button { display: flex; align-items: center; gap: 8px; border: 0; border-right: 2px solid var(--yellow); background: rgba(10, 16, 20, .82); color: var(--ink); padding: 4px 9px; font: 500 12px var(--mono); cursor: pointer; text-align: right; }
.view-callouts button i { font-style: normal; color: var(--ink-3); }
.view-callouts button:hover, .view-callouts button.on { background: var(--yellow); color: var(--yellow-ink); }
.view-callouts button:hover i, .view-callouts button.on i { color: var(--yellow-ink); }
.view-callouts .more { font: 500 11px var(--mono); color: var(--ink-3); background: rgba(10, 16, 20, .82); padding: 2px 8px; }

.modal3d { position: fixed; inset: 0; z-index: 60; background: rgba(4, 7, 9, .9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal3d .viewer-box { width: min(1400px, 100%); height: min(86vh, 900px); border: 1px solid var(--line-2); }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 5; background: rgba(10, 16, 20, .86); border: 1px solid var(--line-2); padding: 6px 12px; font: 600 13px var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.modal-close:hover { border-color: var(--yellow); color: var(--yellow); }
body.modal-open { overflow: hidden; }

.strip { display: flex; gap: 1px; overflow-x: auto; background: var(--line-2); border-top: 1px solid var(--line-2); scrollbar-width: thin; }
.shot { flex: 1 0 150px; position: relative; padding: 0; border: 0; overflow: hidden; background: var(--stage); cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: .82; transition: opacity .2s; }
.shot:hover img { opacity: 1; }
.shot span { position: absolute; left: 6px; bottom: 6px; font: 500 11px var(--mono); background: rgba(10, 16, 20, .82); padding: 1px 7px; }

/* moving parts list */
.anim-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.anim-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #0f171c; }
.anim-row .no { font: 700 22px/1 var(--cond); color: var(--yellow); width: 28px; flex: none; }
.anim-row .nm { font: 600 17px/1.15 var(--cond); text-transform: uppercase; letter-spacing: .05em; overflow-wrap: anywhere; }
.anim-row .rg { font: 400 12px var(--mono); color: var(--ink-3); }
.anim-row .grow { flex: 1; min-width: 0; }
.anim-row button { min-width: 66px; }
.anim-row.playing { background: #241e0a; box-shadow: inset 3px 0 0 var(--yellow); }

/* physics report */
.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.rcard { background: rgba(15, 23, 28, .92); border: 1px solid var(--line-2); padding: 18px 20px; min-width: 0; }
.rcard h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; font: 600 14px var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.rcard h3 .ok, .rcard h3 .warn { letter-spacing: .04em; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.big-num { font: 700 68px/1 var(--cond); color: var(--yellow); font-variant-numeric: tabular-nums; }
.big-num small { font-size: 26px; color: var(--ink-3); margin-left: 6px; }
.xyz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.xyz div { background: var(--panel-2); padding: 8px 10px; }
.xyz span { display: block; font: 600 12px var(--cond); letter-spacing: .2em; color: var(--ink-3); }
.xyz b { font: 500 22px var(--mono); font-variant-numeric: tabular-nums; }
.ok { color: var(--teal); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.warn { color: var(--yellow); font-family: var(--mono); font-size: 13px; }
.pass { display: inline-block; padding: 3px 10px; background: var(--teal-soft); color: var(--teal); font: 700 13px var(--cond); letter-spacing: .16em; }
.rtab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rtab th { font: 600 12px var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rtab td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtab tr:last-child td { border-bottom: 0; }
.rtab .n { text-align: right; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtab .t { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.bar { height: 6px; background: var(--line-2); position: relative; min-width: 60px; }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--yellow); }

/* sections below */
.section { margin: 8px 0 30px; }
.desc { color: var(--ink-2); max-width: 860px; margin: 0; font-size: 16px; }
.lower { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.panel { background: rgba(15, 23, 28, .92); border: 1px solid var(--line-2); padding: 18px 20px; margin-bottom: 12px; }
.panel h2 { font: 600 13px var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.panel .kv dd { text-align: left; }
.attr { font: 12.5px var(--mono); background: var(--panel-2); padding: 10px; word-break: break-word; color: var(--ink-2); }
.table-wrap { overflow-x: auto; background: rgba(15, 23, 28, .92); border: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#params th, #params td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
#params th { background: var(--panel-2); font: 600 12px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
td code { font-size: 12.5px; color: var(--ink); }
td.d { color: var(--ink-2); width: 48%; }
td.opts { color: var(--ink-2); min-width: 140px; max-width: 260px; }
td.unit { white-space: nowrap; color: var(--ink-3); }
#params tr:last-child td { border-bottom: 0; }
.custom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 22px; }
.slider label { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; color: var(--ink-2); }
.slider label code { color: var(--ink); }
.slider input[type=range] { width: 100%; accent-color: var(--yellow); }
.slider .rng { font: 11px var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; }
.soon { background: var(--yellow-soft); border: 1px solid rgba(245, 184, 0, .3); color: var(--ink-2); padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.soon strong { color: var(--ink); }

.lightbox { position: fixed; inset: 0; background: rgba(4, 7, 9, .95); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }

/* about */
.prose { max-width: 820px; padding: 10px 40px 64px; }
.prose h1 { font: 700 clamp(40px, 5vw, 64px)/.95 var(--cond); text-transform: uppercase; margin: 36px 0 14px; }
.prose h2 { font: 700 26px var(--cond); text-transform: uppercase; letter-spacing: .04em; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--yellow); }
.prose code { font-size: 13.5px; background: var(--panel-2); padding: 1px 6px; color: var(--ink); }
.prose pre { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-2); padding: 14px 16px; overflow-x: auto; font-size: 13px; }
.prose pre code { background: none; padding: 0; color: inherit; }

.site-footer { margin-top: 80px; border-top: 1px solid var(--line-2); color: var(--ink-3); padding: 24px 0 34px; font: 500 13px var(--cond); letter-spacing: .2em; text-transform: uppercase; background: rgba(10, 16, 20, .9); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-view { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .lower { grid-template-columns: minmax(0, 1fr); }
  .c3, .c4, .c5 { grid-column: span 6; } .c6, .c7, .c8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .prose { padding: 10px 16px 48px; }
  .site-header .wrap { gap: 10px 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .logo { font-size: 19px; }
  .nav { margin-left: auto; }
  .nav a { font-size: 13px; padding: 4px 6px; letter-spacing: .1em; }
  .head-search { order: 3; flex: 1 0 100%; }
  .head-search kbd { display: none; }
  .hero { padding: 26px 0 8px; }
  .hero h1 { font-size: 58px; margin: 10px 0 14px; }
  .lede { font-size: 17px; margin-bottom: 20px; }
  .hero-stats { gap: 20px; margin-top: 24px; }
  .hero-stats b { font-size: 30px; }
  .hero-fig { padding: 0 0 30px 30px; }
  .dimline.h { left: 30px; } .dimline.v { bottom: 30px; }
  .hero-fig .corner.tl { left: 38px; } .hero-fig .corner.br { bottom: 38px; }
  .callouts { display: none; }
  .hero-fig .cap { font-size: 11px; padding: 4px 8px; }
  .sec { margin: 48px 0 16px; letter-spacing: .22em; font-size: 13px; }
  .sec small { display: none; }
  .cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile .nm { font-size: 15px; padding: 30px 8px 8px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 8px; }
  .card .meta { flex: 0 0 var(--cap); box-sizing: border-box; z-index: 2; padding: 8px 12px; background: rgba(8, 13, 16, .98); border-top: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.card .meta .chips-spec { flex-wrap: nowrap; overflow: hidden; gap: 4px; align-items: center; }
.card .meta .spec, .card .meta .sr { flex: 0 0 auto; font-size: 11px; padding: 1px 6px; white-space: nowrap; }
  .card h3 { font-size: 16px; }
  .card.big h3 { font-size: 24px; }
  .card .spec { font-size: 10px; padding: 3px 5px; }
  .card:not(.big) .spec.opt-hide { display: none; }
  .card .tag { display: none; }
  .viewer-box { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .modal3d { padding: 8px; } .modal3d .viewer-box { height: 80vh; aspect-ratio: auto; }
  .viewer-hint { display: none; }
  .main-view .viewer-tools { left: auto; right: 8px; bottom: 8px; }
  .main-view .viewer-tools button { font-size: 11.5px; padding: 4px 8px; }
  .view-callouts { display: none; }
  .spin-note { top: 8px; font-size: 11.5px; }
  .sheet-spec { padding: 18px 16px 20px; }
  .rgrid { gap: 8px; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .big-num { font-size: 52px; }
  .rcard { padding: 14px; }
  .rtab { font-size: 13.5px; }
  .rtab .hide-m { display: none; }
  #params thead { display: none; }
  #params, #params tbody, #params tr, #params td { display: block; width: auto; max-width: none; }
  #params tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  #params td { border: 0; padding: 2px 0; white-space: normal; }
  #params td:empty { display: none; }
  #params td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--ink-3); }
  .site-footer { font-size: 12px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 1101px) {
  .sheet-view { display: flex; flex-direction: column; }
  .sheet-view .main-view { flex: 1 1 auto; height: auto; min-height: min(68vh, 700px); }
}
@media (max-width: 760px) {
  .cat-row { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 116px; }
}
