/* ==========================================================================
   VESTIGE — VX-4 archival video console
   A warm, technical visual system for a very old idea: keep the signal.
   ========================================================================== */

:root {
  --ink: #14120e;
  --ink-2: #191611;
  --ink-3: #201c16;
  --panel: #1c1914;
  --panel-2: #232019;
  --panel-3: #2b261d;
  --paper: #dbd1bd;
  --paper-2: #d0c5af;
  --paper-ink: #191710;
  --paper-muted: #665f51;
  --ivory: #e8dfcd;
  --muted: #918878;
  --muted-2: #6c6558;
  --line: rgba(226, 213, 188, 0.13);
  --line-strong: rgba(226, 213, 188, 0.26);
  --line-dark: rgba(24, 22, 16, 0.2);
  --brass: #c6a05a;
  --brass-light: #dfc387;
  --brass-dim: #8c7345;
  --oxide: #a54f36;
  --oxide-light: #c96d4e;
  --mint: #91b6a3;
  --green: #7fa78e;
  --red: #bd503c;
  --amber: #d0a35c;

  --font-display: "Cambria", "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;

  --max: 1600px;
  --gutter: clamp(18px, 3.4vw, 54px);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  background: var(--ink);
}

html.i18n-loading body { opacity: 0; }
body { transition: opacity 160ms ease; }
html.i18n-loading body { transition: none; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 72% -12%, rgba(151, 119, 64, 0.13), transparent 62%),
    radial-gradient(900px 600px at 8% 24%, rgba(92, 111, 94, 0.06), transparent 65%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(230, 215, 185, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 215, 185, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

::selection { background: var(--brass); color: var(--ink); }

img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, blockquote, dl, dd, dt, figure { margin: 0; }
button { border: 0; background: none; }
code, pre { font-family: var(--font-mono); }

:focus-visible {
  outline: 1px solid var(--brass-light);
  outline-offset: 3px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  pointer-events: none;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.tiny { font-size: 8px; letter-spacing: 0.1em; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-texture {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- iconography */

.led {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(127, 167, 142, 0.12), 0 0 8px rgba(127, 167, 142, 0.7);
  flex: 0 0 auto;
}
.led.amber { background: var(--amber); box-shadow: 0 0 0 2px rgba(208, 163, 92, 0.12), 0 0 8px rgba(208, 163, 92, 0.65); }
.led.red { background: var(--red); box-shadow: 0 0 0 2px rgba(189, 80, 60, 0.12), 0 0 8px rgba(189, 80, 60, 0.75); animation: led-pulse 2.6s ease-in-out infinite; }

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ------------------------------------------------------------------ typography */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.78;
}
.eyebrow-light { color: var(--brass-light); }
.eyebrow-light .eyebrow-rule { background: var(--brass-light); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 em, h2 em { font-weight: 400; color: var(--brass-light); }

.kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}
.btn-solid {
  background: var(--brass);
  border-color: var(--brass);
  color: #17130d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-solid:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn-line { background: transparent; color: var(--ivory); }
.btn-line:hover { border-color: var(--brass); color: var(--brass-light); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(232, 223, 205, 0.3);
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease;
}
.text-link:hover { color: var(--brass-light); border-color: var(--brass-light); }
.text-link-dark { color: var(--paper-ink); border-color: rgba(25, 23, 16, 0.32); }
.text-link-dark:hover { color: var(--oxide); border-color: var(--oxide); }

/* ------------------------------------------------------------------ announcement */

.announcement {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 30px;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: #0f0d0a;
  border-bottom: 1px solid rgba(226, 213, 188, 0.09);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.announcement-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 15px;
  background: var(--brass);
  color: #17130d;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.announcement-sep { width: 1px; height: 10px; background: var(--line); }
.announcement-muted { color: var(--muted-2); }
.announcement a {
  margin-left: auto;
  color: var(--brass);
  transition: color 160ms ease;
}
.announcement a:hover { color: var(--brass-light); }

/* ---------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 70px;
  padding: 0 var(--gutter);
  background: rgba(20, 18, 14, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(0.9);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--brass);
}
.brand-type { display: flex; flex-direction: column; gap: 3px; }
.brand-type strong {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.22em;
}
.brand-type small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}
.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 180ms ease;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}
.lang-switch button {
  height: 24px;
  min-width: 23px;
  padding: 0 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  transition: color 150ms ease;
}
.lang-switch button:hover { color: var(--ivory); }
.lang-switch button.is-active {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang-switch > span { opacity: 0.45; }

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-header { min-height: 36px; padding: 0 15px; gap: 14px; }
.btn-sub {
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.58fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
  padding-top: clamp(34px, 4.2vw, 54px);
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 74.8%, rgba(226, 213, 188, 0.05) 74.8% 75%, transparent 75%),
    linear-gradient(180deg, transparent 0 68%, rgba(226, 213, 188, 0.04) 68% 68.15%, transparent 68.15%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero-main { position: relative; }
.hero h1 {
  max-width: 960px;
  margin-left: -0.035em;
  font-size: clamp(38px, 3.9vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 em { letter-spacing: -0.045em; }
.hero-aside { padding-bottom: 4px; }
.hero-copy {
  max-width: 460px;
  color: #b9b09f;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.005em;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 100%;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt {
  margin-bottom: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-stats dd {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.04em;
}
.hero-folio {
  position: absolute;
  top: 26px;
  right: var(--gutter);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-align: right;
}

/* ---------------------------------------------------------------------- console */

.console-section { padding-top: clamp(22px, 3vw, 42px); padding-bottom: clamp(38px, 4.5vw, 60px); }

.console-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), transparent 32%),
    #181510;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 2px 0 rgba(255, 255, 255, 0.035) inset,
    0 0 0 1px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.console-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(226, 213, 188, 0.035);
  pointer-events: none;
}

.console-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 45px;
  padding: 0 16px;
  background: #100e0b;
  border-bottom: 1px solid var(--line);
}
.console-id { display: flex; align-items: baseline; gap: 12px; }
.console-model {
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.14em;
}
.console-division {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.console-serial {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.console-modes {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}
.mode {
  position: relative;
  min-width: 84px;
  padding: 0 14px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}
.mode::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.mode:hover { color: var(--ivory); background: rgba(255, 255, 255, 0.018); }
.mode.is-active { color: var(--brass-light); }
.mode.is-active::after { transform: scaleX(1); }

.console-clock {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  font-family: var(--font-mono);
}
.clock-label { color: var(--muted-2); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.console-clock time { color: var(--ivory); font-size: 12px; letter-spacing: 0.03em; }
.clock-zone { color: var(--muted-2); font-size: 7px; letter-spacing: 0.1em; }

.console-grid {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 320px;
  align-items: stretch;
}

/* ------------------------------------------------------------------ reel index */

.reel-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(11, 10, 8, 0.22);
  border-right: 1px solid var(--line);
  padding: 13px 12px 12px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 11px;
  color: var(--ivory);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel-heading .mono { font-size: 8px; font-weight: 400; letter-spacing: 0.08em; }

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease;
}
.search-box:focus-within { border-color: var(--brass-dim); }
.search-box .icon { width: 12px; height: 12px; color: var(--muted-2); }
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box kbd {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.reel-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 8px 0 9px;
}
.reel-filters button {
  height: 22px;
  border: 1px solid transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.reel-filters button:hover { color: var(--ivory); }
.reel-filters button.is-active {
  border-color: var(--line);
  background: rgba(198, 160, 90, 0.08);
  color: var(--brass-light);
}

.reel-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.reel-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 55px;
  padding: 9px 3px 9px 5px;
  border-bottom: 1px solid rgba(226, 213, 188, 0.075);
  text-align: left;
  transition: background 150ms ease;
}
.reel-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transition: transform 170ms ease;
}
.reel-item:hover { background: rgba(255, 255, 255, 0.018); }
.reel-item.is-active { background: rgba(198, 160, 90, 0.07); }
.reel-item.is-active::before { transform: scaleY(1); }
.reel-no {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.reel-item.is-active .reel-no { color: var(--brass); }
.reel-info { min-width: 0; }
.reel-title {
  display: block;
  overflow: hidden;
  color: #d8cfbd;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reel-item.is-active .reel-title { color: var(--ivory); }
.reel-meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reel-dur {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.02em;
}
.reel-item.is-active .reel-dur { color: var(--brass-dim); }

.reel-empty {
  padding: 20px 12px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.reel-panel-foot {
  padding: 12px 2px 0;
  border-top: 1px solid var(--line);
}
.storage-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.storage-bar {
  height: 2px;
  margin: 7px 0 7px;
  background: rgba(226, 213, 188, 0.1);
}
.storage-bar span { display: block; height: 100%; background: var(--brass-dim); }
.reel-panel-foot .tiny { display: block; color: var(--muted-2); font-size: 6px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------------ deck */

.deck {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 16px 12px;
  background:
    radial-gradient(600px 300px at 50% 0, rgba(198, 160, 90, 0.025), transparent 75%),
    rgba(27, 23, 18, 0.48);
}
.deck-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 45px;
  padding: 1px 2px 9px;
}
.deck-title-wrap { min-width: 0; }
.deck-title-wrap .kicker { display: block; margin-bottom: 3px; }
.deck-heading h2 {
  overflow: hidden;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.tool-btn:hover { color: var(--ivory); border-color: var(--line-strong); }
.tool-btn.is-on { color: var(--brass-light); border-color: rgba(198, 160, 90, 0.4); background: rgba(198, 160, 90, 0.07); }
.tool-btn .icon { width: 11px; height: 11px; }
.tool-btn-file { margin-left: 3px; color: var(--ivory); }

/* --------------------------------------------------------------------- monitor */

.monitor-bezel {
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
  padding: 8px 8px 6px;
  background: linear-gradient(145deg, #242019, #0e0c09 55%, #19150f);
  border: 1px solid rgba(226, 213, 188, 0.2);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.34);
}
.monitor {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #060605;
  border: 1px solid rgba(226, 213, 188, 0.19);
  box-shadow: 0 0 0 1px #000 inset, 0 0 22px rgba(0, 0, 0, 0.9) inset;
  isolation: isolate;
}
#screen, #localVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 320ms ease, opacity 260ms ease;
}
#localVideo { position: absolute; inset: 0; max-width: none; }
#screen[data-treatment="betacam"] { filter: saturate(0.82) sepia(0.2) contrast(0.94) brightness(0.93); }
#screen[data-treatment="umatic"] { filter: saturate(0.65) sepia(0.22) contrast(0.88) brightness(0.9); }
#screen[data-treatment="quad"] { filter: grayscale(0.92) sepia(0.1) contrast(1.18) brightness(0.9); }
#screen[data-treatment="eiaj"] { filter: grayscale(1) sepia(0.14) contrast(1.14) brightness(0.89); }
#screen[data-treatment="type-c"] { filter: saturate(1.04) contrast(1.03) brightness(0.97); }
#screen[data-treatment="mii"] { filter: saturate(0.96) sepia(0.12) contrast(1.02) brightness(0.94); }
#screen[data-treatment="d1"] { filter: saturate(1.05) contrast(1.04) brightness(0.98); }
#screen[data-treatment="digibeta"] { filter: saturate(1.02) contrast(1.06) brightness(0.97); }

.screen-grain {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain-shift 0.55s steps(2) infinite;
}
.monitor.grain-off .screen-grain { display: none; }
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-1%, -1%); }
}
.screen-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.28;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0, 0, 0, 0.24) 2px, rgba(0, 0, 0, 0.24) 3px);
  mix-blend-mode: multiply;
}
.monitor[data-carrier="digital"] .screen-scanlines { opacity: 0.16; }
.monitor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 14%, transparent 78%, rgba(0, 0, 0, 0.4));
}
.screen-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 48%, transparent 52%, rgba(0, 0, 0, 0.16) 76%, rgba(0, 0, 0, 0.52) 100%);
}
.head-switch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 12px;
  pointer-events: none;
  opacity: 0.48;
  background:
    repeating-linear-gradient(90deg, rgba(224, 218, 200, 0.1) 0 2px, rgba(0, 0, 0, 0.56) 2px 5px, rgba(255, 255, 255, 0.07) 5px 7px, rgba(0, 0, 0, 0.15) 7px 12px);
  animation: head-noise 0.18s steps(3) infinite;
}
.monitor[data-carrier="digital"] .head-switch { opacity: 0.12; height: 4px; }
@keyframes head-noise {
  0% { background-position: 0 0; }
  100% { background-position: 47px 0; }
}

.osd {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(239, 231, 214, 0.88);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.osd-tl { top: 13px; left: 14px; }
.osd-tr { top: 13px; right: 14px; align-items: flex-end; text-align: right; }
.osd-bl { bottom: 16px; left: 14px; }
.osd-br { bottom: 16px; right: 14px; align-items: flex-end; text-align: right; }
.osd-label { display: flex; align-items: center; gap: 6px; color: rgba(239, 231, 214, 0.65); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.osd-tc { color: #f2ead9; font-size: 12px; letter-spacing: 0.03em; }
.osd-format { color: #f2ead9; font-size: 9px; letter-spacing: 0.12em; }
.osd-raster { color: rgba(239, 231, 214, 0.58); font-size: 7px; letter-spacing: 0.12em; }
.osd-dim { color: rgba(239, 231, 214, 0.48); font-size: 6.5px; letter-spacing: 0.1em; }

.safe-frame {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.safe-frame.is-visible { opacity: 1; }
.safe-safe, .safe-title {
  position: absolute;
  border: 1px solid rgba(233, 224, 203, 0.4);
}
.safe-safe { inset: 5%; }
.safe-title { inset: 10%; border-style: dashed; border-color: rgba(233, 224, 203, 0.3); }
.safe-safe span, .safe-title span {
  position: absolute;
  top: 4px;
  left: 5px;
  padding: 2px 4px;
  background: rgba(8, 8, 6, 0.5);
  color: rgba(233, 224, 203, 0.58);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.safe-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
}
.safe-cross i { position: absolute; background: rgba(233, 224, 203, 0.5); }
.safe-cross i:first-child { left: 0; right: 0; top: 50%; height: 1px; }
.safe-cross i:last-child { top: 0; bottom: 0; left: 50%; width: 1px; }

.monitor-switching {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(5, 5, 4, 0.55);
  transition: opacity 140ms ease;
  pointer-events: none;
}
.monitor-switching span {
  padding: 6px 10px;
  border: 1px solid rgba(226, 213, 188, 0.3);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}
.monitor.is-switching .monitor-switching { opacity: 1; }

.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 10, 8, 0.9);
  border: 1px dashed rgba(198, 160, 90, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}
.monitor.is-dragging .drop-overlay { opacity: 1; }
.drop-kicker { color: var(--brass); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; }
.drop-overlay strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.drop-note { color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }

.monitor-toast {
  position: absolute;
  left: 14px;
  bottom: 38px;
  z-index: 14;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  background: rgba(12, 11, 8, 0.9);
  border-left: 2px solid var(--brass);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.monitor-toast.is-visible { opacity: 1; transform: translateY(0); }

.bezel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 1px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.bezel-center { color: rgba(198, 160, 90, 0.55); }

/* ------------------------------------------------------------------- transport */

.transport { margin-top: 12px; }
.timeline-wrap { padding: 0 2px; }
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-meta strong { color: var(--ivory); font-size: 9px; font-weight: 400; letter-spacing: 0.04em; }
.meta-key { color: var(--brass-dim); }
.timeline {
  position: relative;
  height: 22px;
  cursor: ew-resize;
  touch-action: none;
}
.timeline-rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(226, 213, 188, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}
.timeline-cache, .timeline-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
}
.timeline-cache { background: rgba(226, 213, 188, 0.14); }
.timeline-fill { background: var(--brass); }
.timeline-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 17px;
  background: var(--brass-light);
  transform: translate(-1px, -50%);
  box-shadow: 0 0 9px rgba(223, 195, 135, 0.55);
}
.timeline-head::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 3px;
  background: var(--brass-light);
}
.timeline-cues { position: absolute; inset: 0; }
.cue-mark {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 9px;
  background: rgba(226, 213, 188, 0.38);
  transform: translateY(-50%);
}
.timeline:hover .timeline-rail { background: rgba(226, 213, 188, 0.16); }
.timeline-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}
.scale-live { display: inline-flex; align-items: center; gap: 6px; color: var(--brass); }
.scale-live .led { width: 3px; height: 3px; }

.transport-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 0 8px;
  border-top: 1px solid var(--line);
}
.transport-main { display: flex; align-items: center; gap: 4px; }
.transport-btn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.transport-btn:hover { color: var(--ivory); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
.transport-btn .icon { width: 14px; height: 14px; }
.play-btn {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 0 5px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  background: rgba(198, 160, 90, 0.06);
  color: var(--brass-light);
  box-shadow: 0 0 0 3px rgba(198, 160, 90, 0.035), inset 0 0 10px rgba(198, 160, 90, 0.05);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.play-btn:hover { background: var(--brass); color: var(--ink); transform: scale(1.025); }
.play-btn .icon { width: 17px; height: 17px; }
.play-btn .icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

.transport-readout {
  min-width: 164px;
  text-align: center;
}
.readout-key {
  display: block;
  margin-bottom: 2px;
  color: var(--brass-dim);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.transport-readout strong {
  display: block;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(232, 223, 205, 0.12);
}
.readout-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transport-aux {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.speed-group { display: flex; border: 1px solid var(--line); }
.speed-group button {
  width: 24px;
  height: 23px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  transition: color 150ms ease, background 150ms ease;
}
.speed-group button + button { border-left: 1px solid var(--line); }
.speed-group button:hover { color: var(--ivory); }
.speed-group button.is-active { background: rgba(198, 160, 90, 0.11); color: var(--brass-light); }
.toggle-btn { width: 27px; height: 27px; }
.toggle-btn.is-on { color: var(--brass-light); border-color: rgba(198, 160, 90, 0.3); }
.icon-muted { display: none; }
.toggle-btn.is-muted .icon-vol { display: none; }
.toggle-btn.is-muted .icon-muted { display: block; }
.volume {
  width: 46px;
  height: 12px;
  margin: 0 1px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.volume::-webkit-slider-runnable-track { height: 2px; background: rgba(226, 213, 188, 0.17); }
.volume::-moz-range-track { height: 2px; background: rgba(226, 213, 188, 0.17); }
.volume::-webkit-slider-thumb {
  width: 7px;
  height: 7px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--brass);
  appearance: none;
  -webkit-appearance: none;
}
.volume::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--brass); }
#fullBtn { width: 27px; height: 27px; }

.deck-status {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 25px;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.status-item { display: flex; align-items: center; gap: 6px; }
.status-spacer { flex: 1; }
.audio-meters { display: flex; align-items: center; gap: 6px; }
.meter-label { color: var(--muted-2); font-size: 6px; }
.meter { display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.meter i {
  display: block;
  width: 3px;
  height: 4px;
  background: rgba(143, 167, 142, 0.16);
  transition: background 80ms linear, height 80ms linear;
}
.meter i:nth-child(n+8) { height: 6px; }
.meter i:nth-child(n+9) { height: 8px; }
.meter i.is-on { background: var(--green); }
.meter i.is-on:nth-child(n+7) { background: var(--amber); }
.meter i.is-on:nth-child(n+9) { background: var(--oxide-light); }
#audioState { font-size: 6px; }

/* -------------------------------------------------------------------- inspector */

.inspector {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 15px 13px;
  background: rgba(12, 11, 8, 0.16);
  border-left: 1px solid var(--line);
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.inspector-heading .mono { font-size: 7px; }
.format-plate { padding: 15px 0 13px; border-bottom: 1px solid var(--line); }
.format-plate .kicker { display: block; margin-bottom: 6px; color: var(--brass-dim); }
.format-plate h2 {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: none;
}
.format-plate p {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.scope-panel {
  position: relative;
  height: 94px;
  margin: 11px 0 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(143, 167, 142, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 167, 142, 0.04) 1px, transparent 1px),
    #0b0f0c;
  background-size: 20px 20px;
  overflow: hidden;
}
.scope-panel canvas { width: 100%; height: 100%; }
.scope-legend {
  position: absolute;
  inset: 6px 7px auto;
  display: flex;
  justify-content: space-between;
  color: rgba(143, 180, 155, 0.4);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  pointer-events: none;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(226, 213, 188, 0.08);
}
.spec-grid > div {
  padding: 7px 0 6px;
  border-bottom: 1px solid rgba(226, 213, 188, 0.08);
}
.spec-grid > div:nth-child(odd) { padding-right: 8px; border-right: 1px solid rgba(226, 213, 188, 0.08); }
.spec-grid > div:nth-child(even) { padding-left: 9px; }
.spec-grid dt {
  margin-bottom: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec-grid dd {
  overflow: hidden;
  color: #cfc6b4;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition { padding: 12px 0 11px; border-bottom: 1px solid var(--line); }
.condition-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.condition-head strong { color: var(--brass-light); font-size: 10px; font-weight: 400; letter-spacing: 0.05em; }
.condition-bar {
  position: relative;
  height: 3px;
  margin: 8px 0 7px;
  background: rgba(226, 213, 188, 0.1);
}
.condition-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--oxide), var(--brass)); }
.condition-bar i {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(20, 18, 14, 0.9);
}
.condition-bar i:nth-child(1) { left: 25%; }
.condition-bar i:nth-child(2) { left: 50%; }
.condition-bar i:nth-child(3) { left: 75%; }
.condition p { color: var(--muted-2); font-family: var(--font-mono); font-size: 7px; line-height: 1.4; }

.inspect-note {
  padding: 12px 0 11px;
  color: #a69d8b;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.005em;
  border-bottom: 1px solid var(--line);
}
.checksum {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.checksum > .mono { color: var(--muted-2); font-size: 6px; letter-spacing: 0.08em; }
.checksum code { flex: 1; color: var(--muted); font-size: 7px; letter-spacing: 0.04em; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted-2);
  transition: color 150ms ease, background 150ms ease;
}
.icon-btn:hover { color: var(--ivory); background: rgba(255, 255, 255, 0.03); }
.icon-btn .icon { width: 12px; height: 12px; }

.inspector-actions { display: flex; gap: 5px; margin-top: auto; padding-top: 10px; }
.btn-inspector {
  flex: 1;
  min-height: 30px;
  padding: 0 8px;
  border-color: var(--line);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.07em;
}
.btn-inspector:hover { border-color: var(--brass); color: var(--brass-light); }
.btn-inspector-quiet { flex: 0 1 92px; color: var(--muted); }

/* ------------------------------------------------------------------ console foot */

.console-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 32px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: #100e0b;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.console-foot-item { display: inline-flex; align-items: center; gap: 6px; }
.console-foot-spacer { flex: 1; }
.console-stamp { color: var(--brass-dim); letter-spacing: 0.18em; }
.console-caption {
  margin-top: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-align: center;
}
.console-caption span { color: var(--brass-dim); margin-right: 8px; text-transform: uppercase; }

/* ------------------------------------------------------------------------ bench */

.bench { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(66px, 9vw, 126px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.6fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
}
.section-head h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.04;
}
.section-intro {
  max-width: 480px;
  padding-bottom: 6px;
  color: #a49b8b;
  font-size: 14px;
  line-height: 1.65;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(38px, 5vw, 64px);
  border: 1px solid var(--line);
  border-right: 0;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 24px 22px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 70%);
  transition: background 200ms ease;
}
.feature-card:hover { background: rgba(198, 160, 90, 0.035); }
.feature-no {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  color: var(--brass);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: square;
}
.feature-card h3 {
  margin-bottom: 10px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.feature-card p {
  max-width: 260px;
  color: #9f9686;
  font-size: 12.5px;
  line-height: 1.55;
}
.feature-tag {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  color: var(--brass-dim);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-flow {
  position: relative;
  margin-top: 22px;
  padding: 18px 22px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(198, 160, 90, 0.04), transparent 30%, transparent 70%, rgba(143, 182, 163, 0.03)),
    rgba(255, 255, 255, 0.012);
  overflow: hidden;
}
.signal-flow-head, .signal-flow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signal-flow-head .mono, .signal-flow-foot .mono { color: var(--brass-dim); }
.signal-nodes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 25px 0 22px;
}
.signal-node {
  position: relative;
  padding: 11px 12px 10px;
  border: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.3);
}
.signal-node::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -15px;
  color: var(--brass-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  transform: translateY(-50%);
}
.signal-node:last-child::after { display: none; }
.signal-node > span {
  display: block;
  margin-bottom: 7px;
  color: var(--brass-dim);
  font-family: var(--font-mono);
  font-size: 6px;
}
.signal-node strong { display: block; color: var(--ivory); font-size: 11px; font-weight: 500; letter-spacing: 0.03em; }
.signal-node small { display: block; margin-top: 3px; color: var(--muted-2); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.05em; }
.signal-line { position: relative; height: 1px; margin: 0 0 10px; background: var(--line); }
.signal-pulse {
  position: absolute;
  top: -1px;
  left: 8%;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.7;
  animation: signal-sweep 5.4s linear infinite;
}
.signal-pulse-2 { animation-delay: -2.7s; opacity: 0.3; }
@keyframes signal-sweep {
  from { left: -8%; }
  to { left: 105%; }
}

/* ------------------------------------------------------------------------ atlas */

.paper {
  position: relative;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(255, 249, 230, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(255, 250, 234, 0.15), transparent 32%),
    var(--paper);
  color: var(--paper-ink);
  border-top: 1px solid rgba(20, 18, 14, 0.4);
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(55, 46, 33, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 46, 33, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 55%);
}
.paper .eyebrow { color: var(--oxide); }
.paper .eyebrow-rule { background: var(--oxide); }
.paper h2 { color: var(--paper-ink); }
.paper h2 em { color: var(--oxide); }
.paper .section-intro { color: var(--paper-muted); }
.atlas { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 7vw, 92px); }
.section-head-paper { position: relative; z-index: 1; }

.atlas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(36px, 5vw, 62px);
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.atlas-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.atlas-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.atlas-filters button span { color: var(--oxide); font-size: 6px; }
.atlas-filters button:hover { color: var(--paper-ink); border-color: var(--line-dark); }
.atlas-filters button.is-active { border-color: var(--paper-ink); background: var(--paper-ink); color: var(--paper); }
.atlas-filters button.is-active span { color: var(--brass-light); }
.atlas-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.atlas-legend span { display: inline-flex; align-items: center; gap: 5px; }
.status-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--oxide); }
.status-dot.verified { background: #47715a; }
.status-dot.deck-io { background: var(--brass-dim); }
.status-dot.experimental { background: var(--oxide); }

.format-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: rgba(25, 23, 16, 0.18);
  border: 1px solid rgba(25, 23, 16, 0.18);
}
.format-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 118px;
  padding: 13px 13px 11px;
  background: var(--paper);
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}
.format-card:hover, .format-card:focus-visible {
  background: var(--paper-ink);
  color: var(--paper);
  z-index: 1;
}
.format-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}
.format-year {
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}
.format-card:hover .format-year { color: var(--brass-light); }
.format-card .status-dot { width: 4px; height: 4px; }
.format-card .format-name {
  display: block;
  max-width: 150px;
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.format-card:hover .format-name, .format-card:focus-visible .format-name { color: var(--paper); }
.format-meta {
  display: block;
  margin-top: auto;
  padding-top: 11px;
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.format-card:hover .format-meta { color: rgba(219, 209, 189, 0.6); }
.format-open {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 7px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.format-card:hover .format-open { opacity: 1; transform: translateX(0); }

.atlas-foot {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.atlas-stamp {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(25, 23, 16, 0.4);
  border-radius: 50%;
  color: var(--oxide);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: 0.75;
}
.atlas-foot p { max-width: 620px; color: var(--paper-muted); font-size: 12px; line-height: 1.6; }
.atlas-foot .text-link { justify-self: end; font-size: 8px; white-space: nowrap; }

/* ---------------------------------------------------------------------- lineage */

.lineage {
  padding: clamp(60px, 7vw, 92px) 0 clamp(54px, 6vw, 76px);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}
.lineage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}
.lineage-head h2 { font-size: clamp(28px, 2.7vw, 36px); line-height: 1.05; }
.lineage-head .section-intro { max-width: 390px; font-size: 12.5px; }
.lineage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, minmax(90px, 1fr));
  min-width: 1120px;
  padding-top: 32px;
  border-top: 1px solid rgba(25, 23, 16, 0.42);
}
.lineage-track::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(25, 23, 16, 0.32) 0 1px, transparent 1px 11px);
}
.milestone {
  position: relative;
  padding: 0 11px;
  text-align: left;
}
.milestone::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 11px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--paper-ink);
  border-radius: 50%;
  background: var(--paper);
  transition: background 160ms ease, transform 160ms ease;
}
.milestone:nth-child(odd)::after {
  content: "";
  position: absolute;
  top: -30px;
  left: 14px;
  width: 1px;
  height: 24px;
  background: rgba(25, 23, 16, 0.24);
}
.milestone:hover::before { background: var(--oxide); border-color: var(--oxide); transform: scale(1.3); }
.milestone-year {
  display: block;
  color: var(--oxide);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.milestone-name {
  display: block;
  margin-top: 7px;
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.milestone-line {
  display: block;
  margin-top: 7px;
  color: var(--paper-muted);
  font-size: 9.5px;
  line-height: 1.4;
}
.lineage-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 37px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------- source */

.source {
  position: relative;
  padding: clamp(70px, 9vw, 118px) 0 30px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 90% 0%, rgba(151, 117, 61, 0.13), transparent 65%),
    radial-gradient(700px 500px at 10% 100%, rgba(76, 104, 83, 0.11), transparent 70%),
    #121811;
  border-top: 1px solid rgba(0, 0, 0, 0.6);
  color: var(--ivory);
}
.source::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(224, 211, 185, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 211, 185, 0.16) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}
.source-bg-word {
  position: absolute;
  top: 36px;
  right: -12px;
  z-index: 0;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(170px, 25vw, 420px);
  line-height: 0.75;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(219, 199, 160, 0.1);
  user-select: none;
  pointer-events: none;
}
.source-inner { position: relative; z-index: 1; }
.source-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.58fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
}
.source-head h2 { font-size: clamp(34px, 3.2vw, 42px); line-height: 1.04; }
.source-head h2 em { color: var(--brass-light); }
.source-copy { max-width: 450px; padding-bottom: 6px; }
.source-copy p { color: #b8ad9a; font-size: 14px; line-height: 1.65; }
.source-copy .source-small { margin-top: 16px; color: var(--brass-dim); font-family: var(--font-display); font-size: 16px; font-style: italic; line-height: 1.4; }

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(42px, 6vw, 76px);
  align-items: start;
}
.release-card {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.release-bar {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--paper-ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.release-bar .mono { color: var(--brass-light); }
.release-body { padding: 22px 24px 18px; }
.release-version {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.release-wordmark {
  grid-column: 1 / -1;
  margin-bottom: 9px;
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.release-v {
  color: var(--paper-ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 0.84;
  letter-spacing: -0.05em;
}
.release-name { color: var(--oxide); font-family: var(--font-display); font-size: 18px; font-style: italic; }
.release-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line-dark);
}
.release-specs > div { padding: 11px 0 10px; border-bottom: 1px solid rgba(25, 23, 16, 0.09); }
.release-specs > div:nth-child(odd) { padding-right: 14px; border-right: 1px solid rgba(25, 23, 16, 0.1); }
.release-specs > div:nth-child(even) { padding-left: 14px; }
.release-specs > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 14px; }
.release-specs dt {
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.release-specs dd { margin-top: 3px; color: var(--paper-ink); font-family: var(--font-mono); font-size: 8px; }
.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--paper-ink);
  color: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}
.download-btn:hover { background: var(--oxide); color: #fff6e8; }
.download-kicker { display: block; color: var(--brass-light); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.12em; text-transform: uppercase; }
.download-file { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.02em; }
.download-btn .icon { width: 18px; height: 18px; }

.release-paths { margin-top: 12px; border-top: 1px solid var(--line-dark); }
.path-row {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(25, 23, 16, 0.1);
  color: var(--paper-ink);
  transition: color 150ms ease;
}
.path-row:hover { color: var(--oxide); }
.path-key { color: var(--paper-muted); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.1em; text-transform: uppercase; }
.path-row code { overflow: hidden; color: #2b271f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.path-arrow { font-family: var(--font-mono); font-size: 10px; }
.release-sum {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  padding-top: 11px;
  color: var(--paper-muted);
  font-family: var(--font-mono);
  font-size: 6px;
}
.release-sum code { overflow: hidden; color: var(--paper-muted); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.release-sum a { min-width: 0; color: var(--paper-muted); }
.release-sum a:hover code { color: var(--oxide); }

.source-side { padding-top: 7px; }
.terminal {
  border: 1px solid rgba(219, 199, 160, 0.18);
  background: #090d09;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(219, 199, 160, 0.1);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.terminal-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(219, 199, 160, 0.23); }
.terminal-bar i:first-child { background: rgba(165, 79, 54, 0.6); }
.terminal-bar span { margin-left: auto; }
.terminal pre {
  margin: 0;
  padding: 16px 15px 17px;
  overflow: auto;
  color: #c6c9b8;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.95;
  white-space: pre-wrap;
}
.term-dim { color: #666e5f; }
.term-ok { color: var(--brass-light); }
.source-facts { margin-top: 25px; border-top: 1px solid rgba(219, 199, 160, 0.14); }
.source-facts > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(219, 199, 160, 0.1);
}
.source-facts .fact-no { color: var(--brass-dim); font-family: var(--font-mono); font-size: 7px; }
.source-facts p { color: #978e7d; font-size: 11px; line-height: 1.5; }
.source-facts strong { color: var(--ivory); font-weight: 500; }
.source-browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.source-browse span { transition: transform 150ms ease; }
.source-browse:hover span { transform: translateX(4px); }
.source-foot {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 60px;
  padding-top: 13px;
  border-top: 1px solid rgba(219, 199, 160, 0.16);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}
.source-foot-right { margin-left: auto; color: var(--brass-dim); }

/* ----------------------------------------------------------------------- footer */

.site-footer {
  background: #0d0c09;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 34px;
}
.footer-brand .brand-mark { color: var(--muted); }
.footer-brand .brand-type strong { color: var(--ivory); }
.footer-line {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(226, 213, 188, 0.08);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.footer-mono { color: var(--brass-dim); }

/* ----------------------------------------------------------------------- dialog */

.format-dialog {
  width: min(570px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid rgba(198, 160, 90, 0.35);
  border-radius: 2px;
  background: #1b1813;
  color: var(--ivory);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}
.format-dialog::backdrop {
  background: rgba(8, 7, 5, 0.78);
  backdrop-filter: blur(7px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #100e0b;
}
.dialog-top .mono { color: var(--brass-dim); font-size: 7px; letter-spacing: 0.09em; text-transform: uppercase; }
.dialog-close { width: 27px; height: 27px; }
.dialog-head { padding: 25px 26px 17px; border-bottom: 1px solid var(--line); }
.dialog-year { color: var(--brass); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; }
.dialog-head h2 { margin-top: 8px; color: var(--ivory); font-size: 31px; line-height: 1; }
.dialog-head p { margin-top: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.dialog-note {
  padding: 18px 26px 16px;
  color: #b4aa98;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}
.dialog-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 26px;
  border-top: 1px solid var(--line);
}
.dialog-specs > div { padding: 10px 0; border-bottom: 1px solid rgba(226, 213, 188, 0.08); }
.dialog-specs > div:nth-child(odd) { padding-right: 12px; }
.dialog-specs > div:nth-child(even) { padding-left: 12px; border-left: 1px solid rgba(226, 213, 188, 0.08); }
.dialog-specs dt { color: var(--muted-2); font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.09em; text-transform: uppercase; }
.dialog-specs dd { margin-top: 3px; color: var(--ivory); font-family: var(--font-mono); font-size: 8px; }
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px 22px;
}
.dialog-actions .btn { min-height: 36px; }
.dialog-actions .mono { font-size: 7px; letter-spacing: 0.05em; }

/* ------------------------------------------------------------------ animations */

[data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------- responsive */

@media (max-width: 1380px) {
  .console-grid { grid-template-columns: 210px minmax(0, 1fr) 300px; }
  .reel-panel { padding-inline: 10px; }
  .inspector { padding-inline: 13px; }
  .format-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-actions { justify-content: flex-end; }
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); }
  .console-grid { grid-template-columns: 206px minmax(0, 1fr); }
  .inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 280px;
    gap: 0 24px;
    align-items: start;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inspector-heading { grid-column: 1 / -1; }
  .format-plate { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 20px; }
  .scope-panel { height: 92px; margin-top: 14px; }
  .spec-grid { margin-top: 2px; }
  .condition { grid-column: 1; border-right: 1px solid var(--line); padding-right: 20px; }
  .inspect-note { grid-column: 2; border-bottom: 0; padding-top: 14px; }
  .checksum { grid-column: 2; }
  .inspector-actions { grid-column: 3; grid-row: 2 / span 4; flex-direction: column; padding-top: 14px; }
  .btn-inspector { flex: 0 0 auto; width: 100%; }
  .btn-inspector-quiet { flex: 0 0 auto; }
  .bench-grid { grid-template-columns: repeat(2, 1fr); border-right: 1px solid var(--line); }
  .feature-card { border-bottom: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-last-child(-n+2) { border-bottom: 0; }
  .source-grid { grid-template-columns: 1fr 0.8fr; }
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-aside { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
  .hero-actions { margin-top: 0; justify-content: flex-end; }
  .hero-stats { margin-top: 24px; max-width: 620px; }
  .hero-folio { top: 20px; }
  .format-grid { grid-template-columns: repeat(4, 1fr); }
  .lineage-head { display: block; }
  .lineage-head .section-intro { margin-top: 18px; }
  .source-head { grid-template-columns: 1fr; gap: 26px; }
  .source-copy { max-width: 560px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .source-facts { margin-top: 0; }
  .source-browse { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 900px) {
  .announcement { gap: 10px; }
  .announcement-muted { display: none; }
  .site-header { height: 60px; }
  .open-pill { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 7vw, 50px); }
  .hero-copy { max-width: 100%; }
  .hero-aside { display: block; }
  .hero-actions { justify-content: flex-start; margin-top: 22px; }
  .hero-stats { max-width: none; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-intro { padding-bottom: 0; }
  .console-topbar { grid-template-columns: 1fr auto; }
  .console-modes { display: none; }
  .console-serial { display: none; }
  .console-grid { display: flex; flex-direction: column; }
  .deck { order: 1; padding: 11px 10px 9px; }
  .reel-panel { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 11px 10px; }
  .inspector { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 13px 12px 14px; }
  .inspector-heading { grid-column: 1 / -1; }
  .format-plate { grid-column: 1; border-right: 1px solid var(--line); }
  .scope-panel { grid-column: 2; margin-top: 14px; }
  .spec-grid { grid-column: 1 / -1; }
  .condition { grid-column: 1; border-right: 1px solid var(--line); }
  .inspect-note { grid-column: 2; }
  .checksum { grid-column: 1 / -1; }
  .inspector-actions { grid-column: 1 / -1; grid-row: auto; flex-direction: row; padding-top: 10px; }
  .btn-inspector { flex: 1; }
  .btn-inspector-quiet { flex: 0 1 130px; }
  .reel-list { display: flex; gap: 0; overflow-x: auto; border-top: 0; }
  .reel-item { flex: 0 0 208px; border-right: 1px solid var(--line); border-bottom: 0; padding-inline: 8px; }
  .reel-item::before { display: none; }
  .reel-panel-foot { display: none; }
  .reel-filters { max-width: 290px; }
  .search-box { max-width: 100%; }
  .deck-heading h2 { font-size: 18px; }
  .format-grid { grid-template-columns: repeat(3, 1fr); }
  .format-card { min-height: 108px; }
  .bench-grid { grid-template-columns: 1fr; border-right: 1px solid var(--line); }
  .feature-card { border-right: 0; min-height: 0; }
  .feature-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: 0; }
  .signal-nodes { grid-template-columns: repeat(5, 180px); overflow-x: auto; padding-bottom: 5px; }
  .atlas-foot { grid-template-columns: 70px 1fr; }
  .atlas-foot .text-link { grid-column: 2; justify-self: start; }
  .lineage-track { overflow-x: auto; padding-bottom: 8px; }
  .source-side { grid-template-columns: 1fr; }
  .source-browse { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr auto; }
  .footer-line { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 2; grid-row: 1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .announcement { height: 27px; font-size: 7px; }
  .announcement a { display: none; }
  .site-header { height: 56px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-type strong { font-size: 17px; }
  .brand-type small { font-size: 6px; letter-spacing: 0.12em; }
  .header-actions { gap: 9px; }
  .lang-switch { gap: 2px; }
  .lang-switch button { min-width: 18px; font-size: 7px; }
  .btn-header { min-height: 32px; padding: 0 11px; gap: 8px; }
  .btn-header .btn-sub { display: none; }
  .hero { padding-top: 30px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 42px); }
  .eyebrow { font-size: 8px; margin-bottom: 18px; }
  .hero-copy { font-size: 13px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .hero-stats > div { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
  .hero-stats > div:nth-child(2n) { border-right: 0; padding-left: 12px; }
  .hero-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-folio { display: none; }
  .console-section { padding-top: 14px; }
  .console-topbar { padding: 0 11px; min-height: 38px; }
  .console-model { font-size: 15px; }
  .console-division { font-size: 7px; }
  .console-clock .clock-label, .clock-zone { display: none; }
  .console-clock time { font-size: 10px; }
  .deck-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 8px; }
  .deck-tools { width: 100%; }
  .tool-btn { flex: 1; justify-content: center; }
  .tool-btn-file { flex: 1.4; }
  .monitor-bezel { padding: 5px 5px 4px; }
  .osd { font-size: 7px; }
  .osd-tc { font-size: 9px; }
  .osd-format { font-size: 7px; }
  .osd-tl { top: 9px; left: 9px; }
  .osd-tr { top: 9px; right: 9px; }
  .osd-bl { bottom: 11px; left: 9px; }
  .osd-br { bottom: 11px; right: 9px; }
  .osd-dim { font-size: 5.5px; }
  .bezel-caption { font-size: 5.5px; }
  .bezel-center { display: none; }
  .transport-row { grid-template-columns: 1fr; gap: 10px; }
  .transport-main { justify-content: center; }
  .transport-readout { order: -1; }
  .transport-readout strong { font-size: 20px; }
  .transport-aux { justify-content: space-between; gap: 3px; }
  .volume { flex: 1; width: auto; }
  .deck-status { gap: 10px; }
  .audio-meters { gap: 4px; }
  .meter i { width: 2px; }
  .status-spacer { display: none; }
  .deck-status .status-item:nth-child(3) { display: none; }
  .console-foot { gap: 12px; padding: 0 11px; font-size: 6px; }
  .console-foot .console-stamp { display: none; }
  .console-caption { display: none; }
  .reel-panel { padding: 9px 10px 10px; }
  .reel-item { flex-basis: 184px; }
  .inspector { grid-template-columns: 1fr; gap: 0; }
  .format-plate { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .scope-panel { grid-column: 1; height: 86px; }
  .spec-grid { grid-column: 1; }
  .condition { grid-column: 1; border-right: 0; }
  .inspect-note { grid-column: 1; padding-top: 12px; border-bottom: 1px solid var(--line); }
  .checksum { grid-column: 1; }
  .inspector-actions { grid-column: 1; }
  .btn-inspector-quiet { flex: 0 1 110px; }
  .bench { padding-top: 62px; padding-bottom: 62px; }
  .bench-grid { margin-top: 30px; }
  .feature-card { padding: 20px; }
  .feature-icon { margin-bottom: 20px; }
  .signal-flow { padding: 14px; }
  .signal-flow-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .signal-flow-foot { flex-wrap: wrap; gap: 7px; }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .format-card { min-height: 115px; padding: 11px; }
  .format-card .format-name { font-size: 15px; }
  .atlas-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .atlas-legend { padding-bottom: 2px; }
  .atlas-foot { grid-template-columns: 1fr; gap: 16px; }
  .atlas-foot .atlas-stamp { width: 62px; height: 62px; }
  .atlas-foot .text-link { grid-column: auto; }
  .lineage-track { min-width: 980px; }
  .lineage-foot { align-items: flex-start; flex-direction: column; gap: 7px; }
  .source { padding-top: 62px; }
  .source-head h2 { font-size: clamp(32px, 8.5vw, 40px); }
  .release-body { padding: 18px 17px 15px; }
  .release-specs { grid-template-columns: 1fr; }
  .release-specs > div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .release-specs > div:nth-child(even) { padding-left: 0; }
  .release-specs > div:nth-last-child(2) { border-bottom: 1px solid rgba(25, 23, 16, 0.09); }
  .path-row { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .source-side { gap: 20px; }
  .source-foot { flex-wrap: wrap; gap: 12px 20px; margin-top: 40px; }
  .source-foot-right { margin-left: 0; width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; padding-bottom: 26px; }
  .footer-links { grid-column: 1; grid-row: auto; justify-content: flex-start; gap: 14px; }
  .footer-line { grid-column: 1; grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .footer-mono { display: none; }
  .format-dialog { width: calc(100vw - 20px); }
  .dialog-head { padding: 20px 19px 14px; }
  .dialog-head h2 { font-size: 31px; }
  .dialog-note { padding: 14px 19px; font-size: 14px; }
  .dialog-specs { padding: 0 19px; }
  .dialog-actions { padding: 15px 19px 18px; flex-wrap: wrap; gap: 12px; }
}
