/* ==========================================================================
   M4 AFTER DARK — a Batman-inspired MacBook Pro M4 Max concept study
   Stylesheet: fonts, tokens, layout, components, motion, print
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/geist-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --obsidian: #050607;
  --obsidian-2: #080b0d;
  --panel: #0b0f11;
  --panel-2: #0e1316;
  --ice: #e6edf1;
  --ice-dim: #c2ced5;
  --muted: #94a3ac;
  --muted-2: #6d7b84;
  --red: #e10600;
  --red-bright: #ff5a4d;
  --red-glow: rgba(225, 6, 0, 0.22);
  --blue-glow: rgba(112, 170, 204, 0.18);

  --line: rgba(230, 237, 241, 0.12);
  --line-strong: rgba(230, 237, 241, 0.26);
  --line-faint: rgba(230, 237, 241, 0.045);

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --max: 1600px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 5.25rem;

  color-scheme: dark;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  scrollbar-color: rgba(230, 237, 241, 0.25) transparent;
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--obsidian);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(225, 6, 0, 0.2);
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  touch-action: manipulation;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--red);
  color: var(--ice);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(230, 237, 241, 0.2);
  border-radius: 999px;
  border: 3px solid var(--obsidian);
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1.1rem;
  background: var(--ice);
  color: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  overflow: visible;
}

.dim {
  color: var(--muted-2);
  font-size: 0.85em;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6,
[id],
:target,
.section,
a,
button,
input,
select,
textarea {
  scroll-margin-top: 6rem;
}

/* ---------- Fixed overlays ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 25% 100%;
  display: none;
}

@media (min-width: 1000px) {
  .grid-lines {
    display: block;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Typography helpers ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  flex: none;
  background: var(--line-strong);
}

.label__no {
  color: var(--red-bright);
}

.h2 {
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.93;
  text-transform: none;
}

.h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.media-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted-2);
}

.media-cap__fig {
  margin-right: 0.5rem;
  color: var(--red-bright);
}

.fineprint {
  max-width: 78ch;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: clamp(0.85rem, 1.8vw, 1.15rem);
  padding-top: max(clamp(0.85rem, 1.8vw, 1.15rem), env(safe-area-inset-top));
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 7, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 6, 7, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-open .site-header::before {
  opacity: 1;
  pointer-events: auto;
}

.site-header__inner {
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__bat {
  width: 2.05rem;
  height: 1.05rem;
  fill: var(--ice);
  transition: fill 0.3s ease, transform 0.4s var(--ease);
}

.brand:hover .brand__bat {
  fill: var(--red-bright);
  transform: translateY(-1px);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.brand__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.3rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice-dim);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--ice);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05rem;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__foot {
  display: none;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.signal__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.13);
}

.clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.clock__city {
  color: var(--ice-dim);
  opacity: 0.62;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  border: 0;
  background: none;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle__bars span {
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-open .menu-toggle__bars span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-open .menu-toggle__bars span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.btn .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.4s var(--ease);
}

.btn:hover .icon,
.btn:focus-visible .icon {
  transform: translate(2px, -2px);
}

.btn--solid {
  background: #ffffff;
  border-color: #ffffff;
  color: #050607;
  font-weight: 600;
}

.btn--solid span {
  color: #050607;
}

.header__audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding: 0.35rem 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.footer__audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  gap: 0.5rem;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--ice);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(230, 237, 241, 0.06);
  border-color: var(--ice);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  gap: 0.45rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice-dim);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(0);
}

.text-link .icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.4rem, 7vh, 6rem);
  overflow: clip;
}

.hero__glow {
  position: absolute;
  inset: -18% 0 auto 38%;
  height: 120vh;
  pointer-events: none;
  background:
    radial-gradient(44% 38% at var(--mx, 74%) var(--my, 24%), rgba(225, 6, 0, 0.13), transparent 72%),
    radial-gradient(54% 48% at 74% 12%, rgba(112, 170, 204, 0.11), transparent 76%);
}

.hero__signal {
  position: absolute;
  top: 6%;
  right: -2%;
  width: min(48vw, 760px);
  opacity: 0.035;
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero__signal svg {
  width: 100%;
  fill: var(--ice);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.78fr);
  gap: clamp(2.5rem, 5.5vw, 6rem);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 15;
}

.hero__kicker {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.hero__kicker span {
  margin-inline: 0.25rem;
  color: var(--red-bright);
}

.hero__title {
  margin-top: 0.66rem;
  font-size: clamp(4.6rem, 12.6vw, 12rem);
  font-weight: 600;
  line-height: 0.79;
  letter-spacing: -0.062em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-top: 0.05em;
  margin-top: -0.05em;
}

.hero__line-in {
  display: block;
}

.js .hero__line-in {
  animation: hero-in 1.2s var(--ease) both;
}

.hero__line:nth-child(1) .hero__line-in {
  animation-delay: 0.08s;
}

.hero__line:nth-child(2) .hero__line-in {
  animation-delay: 0.22s;
}

@keyframes hero-in {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

.hero__line--serif {
  margin-top: 0.1em;
  padding-top: 0.12em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.58em;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--muted);
}

.hero__line--serif em {
  font-style: italic;
  color: var(--ice);
}

.hero__lede {
  max-width: 55ch;
  margin-top: clamp(1.5rem, 3vh, 2.2rem);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.65;
  color: var(--ice-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3.2vh, 2.4rem);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.4rem, 5vh, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__stats dd {
  margin-top: 0.45rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.hero__stats dd span {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__media {
  position: relative;
  z-index: 1;
}

.hero__frame {
  position: relative;
  padding: 9px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(150deg, rgba(230, 237, 241, 0.06), rgba(230, 237, 241, 0) 42%),
    var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 90px var(--blue-glow);
}

.hero__frame > picture,
.hero__frame img {
  width: 100%;
  height: 100%;
}

.hero__frame {
  aspect-ratio: 4 / 5;
  max-height: min(76vh, 800px);
}

.hero__frame img {
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(0.82) contrast(1.05) brightness(0.94);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.32), transparent 22%, transparent 72%, rgba(5, 6, 7, 0.5)),
    linear-gradient(90deg, rgba(225, 6, 0, 0.05), transparent 28%);
  mix-blend-mode: multiply;
}

.hud {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ice-dim);
  text-shadow: 0 1px 8px rgba(5, 6, 7, 0.9);
}

.hud--tl {
  top: 1.5rem;
  left: 1.5rem;
}

.hud--tr {
  top: 1.5rem;
  right: 1.5rem;
  align-items: flex-end;
  flex-direction: row;
  gap: 0.4rem;
}

.hud--bl {
  bottom: 1.5rem;
  left: 1.5rem;
}

.hud--br {
  bottom: 1.5rem;
  right: 1.5rem;
  align-items: flex-end;
}

.hud__rec {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.18);
  animation: rec-pulse 2.4s ease-in-out infinite;
}

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

.hud__corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border-color: rgba(230, 237, 241, 0.55);
  border-style: solid;
}

.hud__corner--tl {
  top: 0.7rem;
  left: 0.7rem;
  border-width: 1px 0 0 1px;
}

.hud__corner--tr {
  top: 0.7rem;
  right: 0.7rem;
  border-width: 1px 1px 0 0;
}

.hud__corner--bl {
  bottom: 0.7rem;
  left: 0.7rem;
  border-width: 0 0 1px 1px;
}

.hud__corner--br {
  bottom: 0.7rem;
  right: 0.7rem;
  border-width: 0 1px 1px 0;
}

.hud__cross {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 237, 241, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hud__cross::before,
.hud__cross::after {
  content: "";
  position: absolute;
  background: rgba(230, 237, 241, 0.35);
}

.hud__cross::before {
  top: 50%;
  left: -8px;
  right: -8px;
  height: 1px;
}

.hud__cross::after {
  left: 50%;
  top: -8px;
  bottom: -8px;
  width: 1px;
}

/* ==========================================================================
   Arkham City Hero Vista — Living Atmosphere, Skyline, & Game Menu
   ========================================================================== */
.hero--arkham-vista {
  position: relative;
  min-height: max(100vh, 760px);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(20, 30, 45, 0.45) 0%, transparent 75%),
    linear-gradient(180deg, #05070a 0%, #030406 50%, #010203 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Atmospheric VFX Canvas — Fixed Global Layer Across Entire Site */
.arkham-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* Gotham Skyline Silhouette */
.arkham-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(240px, 42vh, 480px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  transition: transform 0.15s ease-out;
}

.arkham-skyline__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arkham-beacon {
  transform-origin: 1005px 38px;
  animation: beaconPulse 2.4s infinite ease-in-out;
}

.arkham-beacon-beam {
  animation: beaconBeam 2.4s infinite ease-in-out;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.4); filter: drop-shadow(0 0 6px #e10600); }
}

@keyframes beaconBeam {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; stroke: #ff1a14; }
}

.arkham-neon {
  user-select: none;
  font-weight: 700;
  animation: neonFlicker 5s infinite alternate;
}

.arkham-neon--red {
  animation-delay: 0.8s;
}

.arkham-neon--amber {
  animation-delay: 2.1s;
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.65; }
  20%, 24%, 55% { opacity: 0.15; }
}

/* CRT Scanlines Overlay — Fixed Full-Site Ambient Atmosphere */
.arkham-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.32;
}

/* Arkham Tactical Section Accents */
.arkham-sec-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.24);
  border-radius: 3px;
  vertical-align: middle;
}

/* Global Tactical Hover Accents */
.gallery__card,
.model,
.chip-table-wrap {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery__card:hover,
.model:hover {
  border-color: rgba(225, 6, 0, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(225, 6, 0, 0.08);
}

/* Mission Status Header */
.arkham-mission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(230, 237, 241, 0.12);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-muted);
}

.arkham-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red);
  font-weight: 600;
}

.arkham-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
  animation: dotBlink 1.5s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.arkham-coord {
  color: var(--ice-dim);
}

/* Arkham Menu Navigation */
.arkham-menu {
  position: relative;
  z-index: 15;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.arkham-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 15;
}

.arkham-menu__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 46px;
  min-width: 44px;
  box-sizing: border-box;
  padding: 0.625rem 1rem;
  border-radius: 4px;
  background: rgba(10, 13, 17, 0.55);
  border: 1px solid rgba(230, 237, 241, 0.08);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ice-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.arkham-menu__item:hover,
.arkham-menu__item:focus-visible {
  background: rgba(225, 6, 0, 0.1);
  border-color: rgba(225, 6, 0, 0.3);
  border-left-color: var(--red);
  color: #ffffff;
  transform: translateX(8px);
  outline: none;
}

.arkham-menu__item.is-active {
  background: rgba(225, 6, 0, 0.14);
  border-color: rgba(225, 6, 0, 0.4);
  border-left-color: var(--red);
  color: #ffffff;
}

.arkham-menu__no {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ice-muted);
  transition: color 0.2s ease;
}

.arkham-menu__item:hover .arkham-menu__no,
.arkham-menu__item.is-active .arkham-menu__no {
  color: var(--red);
}

.arkham-menu__label {
  flex: 1;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arkham-menu__sub {
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--ice-muted);
  letter-spacing: 0.06em;
}

.arkham-menu__tag {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  background: rgba(230, 237, 241, 0.06);
  color: var(--ice-muted);
}

.arkham-menu__item:hover .arkham-menu__tag,
.arkham-menu__item.is-active .arkham-menu__tag {
  background: rgba(225, 6, 0, 0.2);
  color: var(--red);
}

/* Floating Laser Reticle */
.arkham-menu__reticle {
  position: absolute;
  left: 0;
  width: 100%;
  height: 46px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

.arkham-menu__reticle.is-visible {
  opacity: 1;
}

.arkham-menu__bracket-l,
.arkham-menu__bracket-r {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
}

.arkham-menu__line {
  flex: 1;
  height: 1px;
  margin: 0 0.5rem;
  background: linear-gradient(90deg, var(--red) 0%, transparent 60%);
  opacity: 0.35;
}

/* Glitch Chromatic Text Animation */
.arkham-menu__item.is-glitching {
  animation: arkhamGlitch 0.28s ease-out;
}

@keyframes arkhamGlitch {
  0% { transform: translateX(8px); text-shadow: none; }
  25% { transform: translateX(11px) skewX(-2deg); text-shadow: -2px 0 #00d4ff, 2px 0 #e10600; }
  50% { transform: translateX(6px) skewX(1deg); text-shadow: 2px 0 #00d4ff, -2px 0 #e10600; }
  75% { transform: translateX(9px); text-shadow: -1px 0 #00d4ff, 1px 0 #e10600; }
  100% { transform: translateX(8px); text-shadow: none; }
}

/* Prompt Bar */
.arkham-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.arkham-prompt__key {
  color: var(--red);
  font-weight: 700;
}

.arkham-prompt__sep {
  color: rgba(230, 237, 241, 0.2);
}

.arkham-prompt__txt {
  color: var(--ice-dim);
}

/* The Perched Machine Media */
.arkham-perch {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.arkham-perch .hero__frame {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.8),
              0 0 100px rgba(112, 170, 204, 0.12),
              0 0 40px rgba(225, 6, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero--arkham-vista {
    min-height: auto;
    padding-top: clamp(2rem, 5vh, 4rem);
  }
  .arkham-menu__item {
    padding: 0.55rem 0.75rem;
    font-size: 0.6875rem;
  }
  .arkham-menu__sub {
    display: none;
  }
}

/* Reduced motion */
.motion-off .arkham-beacon,
.motion-off .arkham-neon,
.motion-off .arkham-badge__dot,
.motion-off .arkham-menu__item.is-glitching {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .arkham-beacon,
  .arkham-beacon-beam,
  .arkham-neon,
  .arkham-badge__dot,
  .arkham-menu__item.is-glitching {
    animation: none !important;
  }
  .arkham-menu__item {
    transition: background-color 0.01ms, color 0.01ms !important;
  }
  .arkham-menu__reticle {
    transition: opacity 0.01ms !important;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: 1.05rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  z-index: 1;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee__group li {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  padding-inline: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee__group li::after {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  background: var(--red);
  transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 11vw, 10rem);
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section__head .label {
  grid-column: 1 / -1;
  margin-bottom: -0.4rem;
}

.section__head .h2 {
  max-width: 16ch;
}

.section__note {
  max-width: 42ch;
  padding-bottom: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Machine ---------- */
.machine {
  background:
    radial-gradient(60% 44% at 18% 34%, rgba(112, 170, 204, 0.06), transparent 74%),
    var(--obsidian);
}

.machine__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.machine__media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.machine__frame {
  position: relative;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(112, 170, 204, 0.1);
}

.machine__frame > picture,
.machine__frame img {
  width: 100%;
  height: 100%;
}

.machine__frame {
  aspect-ratio: 4 / 5;
  max-height: 760px;
}

.machine__frame img {
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.8) contrast(1.06) brightness(0.92);
}

.machine__stamp {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  z-index: 2;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(230, 237, 241, 0.3);
  background: rgba(5, 6, 7, 0.55);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ice-dim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.machine__rule {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}

.machine__body {
  padding-top: 0.3rem;
}

.machine__lede {
  max-width: 58ch;
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
  color: var(--ice-dim);
}

.machine__list {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.machine__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.machine__no {
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}

.machine__title {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.machine__item p {
  max-width: 58ch;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
}

.pull {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 2px solid var(--red);
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.055), transparent 68%);
}

.pull p {
  max-width: 22ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.pull footer {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker dt {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ticker dd {
  margin-top: 0.45rem;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ice);
}

/* ---------- Silicon ---------- */
.silicon {
  background:
    radial-gradient(50% 34% at 82% 22%, rgba(225, 6, 0, 0.055), transparent 76%),
    var(--obsidian-2);
}

.silicon__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.72fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.chip-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.42);
  -webkit-overflow-scrolling: touch;
}

.chip-table-wrap:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.chip-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.chip-table th,
.chip-table td {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.chip-table thead th {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(230, 237, 241, 0.025);
}

.chip-table thead th:first-child {
  width: 21%;
}

.chip-table__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.chip-table__sub {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.chip-table tbody th {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-table tbody tr:last-child th,
.chip-table tbody tr:last-child td {
  border-bottom: 0;
}

.chip-table .is-max {
  position: relative;
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.075), rgba(225, 6, 0, 0.02));
}

.chip-table thead .is-max {
  box-shadow: inset 0 2px 0 var(--red);
}

.chip-table thead .is-max .chip-table__name {
  color: var(--ice);
}

.chip-table tbody td.is-max {
  color: var(--ice);
}

.table-note {
  padding: 0.9rem 1.05rem 1.05rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--muted-2);
}

.bandwidth {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(230, 237, 241, 0.04), transparent 56%), var(--panel);
}

.bandwidth__title {
  margin-top: 1.2rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.bandwidth__copy {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.bars__row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 2.3rem;
  gap: 0.7rem;
  align-items: center;
}

.bars__name {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.bars__track {
  display: block;
  height: 5px;
  background: rgba(230, 237, 241, 0.09);
  overflow: hidden;
}

.bars__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ice-dim);
  transition: width 1.15s var(--ease);
}

.bars__fill--max {
  background: linear-gradient(90deg, var(--ice-dim), var(--red) 78%);
}

.is-in .bars__fill,
.no-js .bars__fill {
  width: var(--value);
}

.bars__value {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-align: right;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.bars__unit {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted-2);
}

.bandwidth__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Workload chooser */
.workload {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.workload__fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

.workload__legend {
  margin-bottom: 1.25rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.workload__options {
  display: grid;
  gap: 0.6rem;
}

.workload__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.workload__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.workload__box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(230, 237, 241, 0.018);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.workload__name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.workload__desc {
  max-width: 24ch;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
  color: var(--muted-2);
}

.workload__option:hover .workload__box {
  border-color: var(--line-strong);
}

.workload__option input:checked + .workload__box {
  border-color: rgba(225, 6, 0, 0.65);
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.1), rgba(225, 6, 0, 0.02));
}

.workload__option input:checked + .workload__box .workload__name {
  color: var(--ice);
}

.workload__option input:focus-visible + .workload__box {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.workload__result {
  align-self: stretch;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-left: 2px solid var(--red);
  background: linear-gradient(110deg, rgba(225, 6, 0, 0.07), transparent 62%), var(--panel);
}

.workload__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.workload__chip {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ice);
}

.workload__model {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.workload__copy {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--muted);
}

.workload__result .text-link {
  margin-top: 1.35rem;
}

/* Die study */
.die {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.die__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.die__title {
  margin-top: 1.2rem;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.die__copy {
  max-width: 62ch;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.68;
  color: var(--muted);
}

.die__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  gap: 0.55rem;
  flex: none;
  margin-top: 1.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-dim);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.die__toggle:hover {
  background: rgba(230, 237, 241, 0.06);
  color: var(--ice);
}

.die__icon {
  width: 0.75rem;
  height: 0.75rem;
}

.die__icon--play {
  display: none;
}

.die__toggle[data-playing="false"] .die__icon--play {
  display: block;
}

.die__toggle[data-playing="false"] .die__icon--pause {
  display: none;
}

.die__frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #040708;
  box-shadow: inset 0 0 80px rgba(112, 170, 204, 0.045), 0 0 70px rgba(112, 170, 204, 0.06);
}

.die__frame canvas {
  width: 100%;
  aspect-ratio: 1600 / 760;
  height: auto;
}

.die__readout {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
}

.die__readout span:first-child {
  color: var(--red-bright);
}

.die__legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.die__legend > div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.die__legend dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.die__legend dd {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.legend-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
}

.legend-dot--cpu {
  background: var(--ice);
}

.legend-dot--gpu {
  background: #8fb6c8;
}

.legend-dot--ne {
  background: var(--red-bright);
}

.legend-dot--mem {
  background: var(--muted-2);
}

/* ---------- Proof ---------- */
.proof {
  background:
    radial-gradient(46% 36% at 22% 18%, rgba(225, 6, 0, 0.06), transparent 76%),
    var(--obsidian);
}

.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.proof__hero {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(225, 6, 0, 0.09), transparent 52%), var(--panel);
}

.proof__stat {
  font-size: clamp(5rem, 9vw, 8.6rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.8;
  color: var(--ice);
}

.proof__stat span {
  font-weight: 400;
  color: var(--red-bright);
}

.proof__stat-label {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.proof__stat-label span {
  color: var(--muted-2);
}

.proof__stat-copy {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.bench {
  border-top: 1px solid var(--line);
}

.bench__row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 1.8fr) 4rem;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.bench__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bench__task {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.bench__note {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.bench__track {
  display: block;
  height: 8px;
  background: rgba(230, 237, 241, 0.07);
}

.bench__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(230, 237, 241, 0.82), var(--ice-dim) 52%, var(--red) 100%);
  transition: width 1.35s var(--ease);
}

.is-in .bench__fill,
.no-js .bench__fill {
  width: var(--value);
}

.bench__ratio {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: right;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

/* ---------- Armor ---------- */
.armor {
  background:
    radial-gradient(42% 34% at 76% 28%, rgba(112, 170, 204, 0.07), transparent 76%),
    var(--obsidian-2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gallery__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.4s ease, transform 0.5s var(--ease);
}

.gallery__card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.gallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #06090b;
}

.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.94);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.gallery__card:hover .gallery__media img {
  transform: scale(1.035);
  filter: saturate(0.95) contrast(1.06) brightness(1);
}

.gallery__media--lid img {
  object-position: 50% 52%;
}

.gallery__index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.3rem 0.42rem;
  background: rgba(5, 6, 7, 0.62);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--red-bright);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gallery__cap {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem;
}

.gallery__title {
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.gallery__cap p {
  margin-top: 0.65rem;
  font-size: 0.83rem;
  line-height: 1.62;
  color: var(--muted);
}

.gallery__tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.armor__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.armor__strip dt {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.armor__strip dd {
  margin-top: 0.45rem;
  font-size: clamp(0.84rem, 1.1vw, 1rem);
  line-height: 1.35;
  color: var(--ice-dim);
}

/* ---------- Specs ---------- */
.specs {
  background:
    radial-gradient(46% 30% at 82% 18%, rgba(112, 170, 204, 0.06), transparent 74%),
    var(--obsidian);
}

.specs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.specs__head > div {
  max-width: 52rem;
}

.specs__head .label {
  margin-bottom: 1.2rem;
}

.specs__head .section__note {
  margin-top: 1rem;
  padding-bottom: 0;
}

.specs__print {
  flex: none;
  margin-bottom: 0.35rem;
}

.spec-table {
  border-top: 1px solid var(--line-strong);
}

.spec-table__row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.spec-table__row:hover {
  background: rgba(230, 237, 241, 0.025);
}

.spec-table dt {
  padding-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-table dd {
  max-width: 70ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ice-dim);
}

/* ---------- Models ---------- */
.models {
  background:
    radial-gradient(50% 40% at 50% 76%, rgba(225, 6, 0, 0.065), transparent 72%),
    var(--obsidian-2);
}

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.model {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.4s ease, transform 0.5s var(--ease);
}

.model:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.model--max {
  border-color: rgba(225, 6, 0, 0.5);
  background:
    linear-gradient(170deg, rgba(225, 6, 0, 0.1), transparent 54%),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 2px 0 var(--red);
}

.model__kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

.model__kicker span {
  color: var(--muted-2);
}

.model--max .model__kicker span {
  color: var(--red-bright);
}

.model__name {
  margin-top: 1.5rem;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.model__price {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.model__copy {
  min-height: 7.5em;
  margin-top: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.model__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.model__specs dt {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.model__specs dd {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--ice-dim);
}

.model__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ice);
}

.model__link .icon {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.35s var(--ease);
}

.model__link:hover .icon {
  transform: translate(2px, -2px);
}

.outro {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(40% 80% at 50% 118%, rgba(225, 6, 0, 0.2), transparent 70%),
    var(--panel);
  text-align: center;
  overflow: hidden;
}

.outro__bat {
  width: clamp(4.5rem, 9vw, 8rem);
  margin-inline: auto;
  fill: var(--ice);
  opacity: 0.16;
}

.outro__kicker {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.outro__title {
  margin-top: 0.8rem;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.outro__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.outro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.footer__statement {
  max-width: 20ch;
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ice);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__col ul {
  display: grid;
  gap: 0.25rem;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--ice);
}

.footer__word {
  margin-top: clamp(3rem, 8vw, 6rem);
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 237, 241, 0.16);
  user-select: none;
}

.footer__disclaimer {
  max-width: 100ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted-2);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__colophon {
  flex: 1;
  min-width: 14rem;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.motion-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ice);
}

.motion-toggle__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.14);
}

.motion-off .motion-toggle__dot {
  background: var(--muted-2);
  box-shadow: none;
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  color: var(--muted);
}

.footer__top-link:hover {
  color: var(--ice);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .gallery__card:nth-child(2),
.js .models__grid .model:nth-child(2) {
  transition-delay: 0.08s;
}

.js .gallery__card:nth-child(3),
.js .models__grid .model:nth-child(3) {
  transition-delay: 0.16s;
}

/* ---------- Motion preferences ---------- */
.motion-off .marquee__track {
  animation: none;
}

.motion-off .hero__line-in {
  animation: none;
}

.motion-off .hud__rec {
  animation: none;
  opacity: 1;
}

.motion-off .gallery__card,
.motion-off .model,
.motion-off .btn .icon,
.motion-off .brand__bat {
  transition: none;
}

.motion-off .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__line-in,
  .hud__rec,
  .marquee__track {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bars__fill,
  .bench__fill {
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.motion-forced .marquee__track {
    animation: marquee 46s linear infinite !important;
  }

  html.motion-forced .marquee:hover .marquee__track {
    animation-play-state: paused !important;
  }

  html.motion-forced .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-header__end .signal {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.8fr);
  }

  .silicon__grid {
    grid-template-columns: 1fr;
  }

  .bandwidth {
    max-width: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 4.6rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(88vw, 430px);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    background:
      radial-gradient(70% 40% at 100% 0%, rgba(225, 6, 0, 0.09), transparent 70%),
      var(--obsidian-2);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.5s var(--ease), visibility 0.5s;
  }

  .nav-open .nav {
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav__link {
    display: block;
    padding-block: 0.55rem;
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 5.2vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: none;
    color: var(--ice);
  }

  .nav__link::after {
    bottom: 0.2rem;
  }

  .nav__list li {
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav__foot {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--muted-2);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__copy {
    max-width: 46rem;
  }

  .hero__frame {
    aspect-ratio: 5 / 4;
    max-height: 620px;
  }

  .hero__frame img {
    object-position: 50% 42%;
  }

  .hero__signal {
    width: 76vw;
    top: 2%;
    right: -12%;
  }

  .hero__stats {
    max-width: 40rem;
  }

  .section__head {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .section__note {
    max-width: 52ch;
    padding-bottom: 0;
  }

  .machine__grid {
    grid-template-columns: 1fr;
  }

  .machine__media {
    position: static;
  }

  .machine__frame {
    aspect-ratio: 16 / 11;
    max-height: 640px;
  }

  .machine__frame img {
    object-position: 50% 46%;
  }

  .machine__lede {
    margin-top: 0.5rem;
  }

  .proof__grid {
    grid-template-columns: 1fr;
  }

  .proof__hero {
    position: static;
    max-width: 34rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__media {
    aspect-ratio: 16 / 10;
  }

  .gallery__cap {
    flex-direction: row;
    align-items: flex-end;
    gap: 1rem;
  }

  .gallery__cap p {
    max-width: 52ch;
  }

  .gallery__tag {
    flex: none;
  }

  .models__grid {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .model__copy {
    min-height: 0;
  }

  .model__link {
    margin-top: 1.5rem;
    padding-top: 0;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }

  .outro {
    margin-top: 3rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    max-width: 40rem;
  }
}

@media (max-width: 720px) {
  .site-header__end {
    gap: 0.85rem;
  }

  .clock {
    display: none;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero__title {
    font-size: clamp(4.2rem, 24vw, 7.5rem);
  }

  .hero__line--serif {
    font-size: 0.6em;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__frame {
    aspect-ratio: 4 / 3.5;
    max-height: 460px;
  }

  .hud--br,
  .hud--bl {
    bottom: 1rem;
  }

  .hud--tl,
  .hud--tr {
    top: 1rem;
  }

  .hud--tl,
  .hud--bl {
    left: 1rem;
  }

  .hud--tr,
  .hud--br {
    right: 1rem;
  }

  .hud__cross {
    display: none;
  }

  .marquee__group li {
    font-size: 0.56rem;
  }

  .ticker {
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
  }

  .ticker > div:last-child {
    grid-column: 1 / -1;
  }

  .workload {
    grid-template-columns: 1fr;
  }

  .workload__box {
    flex-direction: column;
    gap: 0.35rem;
  }

  .workload__desc {
    max-width: none;
    text-align: left;
  }

  .die__head {
    flex-direction: column;
    gap: 0.5rem;
  }

  .die__toggle {
    margin-top: 0.5rem;
  }

  .die__legend {
    grid-template-columns: 1fr 1fr;
  }

  .die__readout {
    font-size: 0.46rem;
  }

  .die__readout span:nth-child(2) {
    display: none;
  }

  .bench__row {
    grid-template-columns: minmax(0, 1fr) 3.4rem;
    gap: 0.55rem 1rem;
  }

  .bench__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bench__ratio {
    grid-column: 2;
    grid-row: 1;
  }

  .armor__strip {
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
  }

  .armor__strip > div:last-child {
    grid-column: 1 / -1;
  }

  .specs__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .spec-table__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .footer__nav {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__statement {
    max-width: 16ch;
  }

  .footer__bottom {
    align-items: flex-start;
  }

  .footer__colophon {
    order: 5;
    flex-basis: 100%;
  }

  .footer__word {
    font-size: 22vw;
  }
}

@media (max-width: 480px) {
  .brand__sub {
    display: none;
  }

  .hero__kicker {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .section {
    padding-block: 4.5rem;
  }

  .chip-table {
    min-width: 680px;
  }

  .chip-table th,
  .chip-table td {
    padding: 0.85rem 0.8rem;
    font-variant-numeric: tabular-nums;
  }

  .machine__stamp {
    top: 1rem;
    left: 1rem;
  }

  .outro {
    padding-inline: 1rem;
  }

  .outro__actions {
    flex-direction: column;
  }

  .outro__actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   WAYNE APPLIED SCIENCES — Reticle Pins, Telemetry HUD, Tactical Glitch
   ========================================================================== */

/* ---------- Inspection Pins ---------- */
.hero__frame,
.gallery__media {
  position: relative;
}

.pin {
  position: absolute;
  top: var(--pin-top, 50%);
  left: var(--pin-left, 50%);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.pin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  height: 100%;
}

.pin__target {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
}

.pin:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
  border-radius: 4px;
}

.pin__target {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.pin__reticle {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.pin__pulse {
  fill: rgba(225, 6, 0, 0.12);
  stroke: var(--red);
  stroke-width: 1;
  transform-origin: 16px 16px;
  animation: pinRadar 2.4s ease-out infinite;
}

.pin__bracket {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: stroke 0.2s var(--ease), transform 0.2s var(--ease);
}

.pin__cross {
  stroke: rgba(230, 237, 241, 0.45);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.pin__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--red-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--red-glow);
  transition: transform 0.2s var(--ease);
}

.pin:hover .pin__bracket,
.pin[aria-expanded="true"] .pin__bracket {
  stroke: var(--red-bright);
  transform: scale(0.92);
}

.pin:hover .pin__dot,
.pin[aria-expanded="true"] .pin__dot {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 12px var(--red-bright);
}

/* Tooltip Spec Callout */
.pin__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(290px, 80vw);
  padding: 0.95rem 1.05rem;
  background: rgba(8, 10, 12, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--red);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 6, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 50;
  text-align: left;
}

.pin[aria-expanded="true"] .pin__tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pin__callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.pin__badge {
  color: var(--muted);
}

.pin__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--red-bright);
  font-weight: 500;
}

.pin__status-pulse {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 6px var(--red);
}

.pin__title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ice);
  margin: 0 0 0.3rem 0;
  line-height: 1.25;
}

.pin__spec {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--muted-2);
  margin: 0;
}

@keyframes pinRadar {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Telemetry HUD Tray ---------- */
.hud-tray {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: 1.25rem;
  z-index: 95;
  font-family: var(--font-mono);
  transition: transform 0.3s var(--ease);
}

.hud-tray__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  background: rgba(5, 6, 7, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hud-tray__toggle:hover,
.hud-tray__toggle:focus-visible {
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(225, 6, 0, 0.18);
}

.hud-tray__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red);
  animation: hudPulse 2s infinite ease-in-out;
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hud-tray__sep {
  color: var(--muted-2);
  opacity: 0.5;
}

.hud-tray__chevron {
  color: var(--red-bright);
  font-size: 0.65rem;
  transition: transform 0.25s var(--ease);
}

.hud-tray__toggle[aria-expanded="true"] .hud-tray__chevron {
  transform: rotate(180deg);
}

/* Expanded Diagnostic Panel */
.hud-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 2.5rem));
  background: rgba(7, 8, 10, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 24px rgba(225, 6, 0, 0.1);
  padding: 1.15rem;
  z-index: 100;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.hud-panel[hidden] {
  display: none;
}

.hud-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.hud-panel__bat {
  color: var(--red-bright);
  margin-right: 0.35rem;
}

.hud-panel__close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s var(--ease);
}

.hud-panel__close:hover,
.hud-panel__close:focus-visible {
  color: var(--red-bright);
}

.hud-panel__body {
  display: grid;
  gap: 0.85rem;
}

.hud-gauge {
  background: rgba(230, 237, 241, 0.02);
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
}

.hud-gauge__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.hud-gauge__val {
  color: var(--ice);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hud-gauge canvas {
  display: block;
  width: 100%;
  height: 28px;
  background: rgba(0, 0, 0, 0.35);
}

/* Memory stream rail */
.telemetry-flow {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.telemetry-flow__rail {
  width: 100%;
  height: 100%;
  position: relative;
}

.telemetry-flow__packet {
  position: absolute;
  top: 0;
  height: 100%;
  width: 18%;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  animation: memPacket 1.4s linear infinite;
}

.telemetry-flow__packet:nth-child(2) { animation-delay: 0.35s; }
.telemetry-flow__packet:nth-child(3) { animation-delay: 0.7s; }
.telemetry-flow__packet:nth-child(4) { animation-delay: 1.05s; }

@keyframes memPacket {
  0% { left: -20%; }
  100% { left: 100%; }
}

.hud-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(230, 237, 241, 0.02);
  border: 1px solid var(--line);
}

.hud-subhead {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hud-workload-name {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ice);
}

.hud-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.hud-audio-btn:hover,
.hud-audio-btn:focus-visible {
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.08);
}

.hud-audio-btn[aria-pressed="true"] .hud-audio-btn__dot {
  background: var(--red-bright);
  box-shadow: 0 0 6px var(--red);
}

.hud-audio-btn__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.hud-quicknav {
  display: grid;
  gap: 0.4rem;
}

.hud-quicknav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hud-quicknav__links a {
  padding: 0.25rem 0.45rem;
  background: rgba(230, 237, 241, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.55rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.hud-quicknav__links a:hover,
.hud-quicknav__links a:focus-visible {
  color: var(--ice);
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.08);
}

/* Glitch Heading Effect */
@keyframes batGlitch {
  0% { clip-path: inset(0 0 0 0); transform: translate(0); text-shadow: none; }
  15% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 1px); text-shadow: -1px 0 var(--red), 1px 0 rgba(112, 170, 204, 0.5); }
  30% { clip-path: inset(60% 0 15% 0); transform: translate(2px, -1px); text-shadow: 1px 0 var(--red), -1px 0 rgba(112, 170, 204, 0.5); }
  45% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); text-shadow: -1px 0 var(--red); }
  60% { clip-path: inset(40% 0 30% 0); transform: translate(1px, 0); text-shadow: 1px 0 rgba(112, 170, 204, 0.5); }
  75% { clip-path: inset(0 0 0 0); transform: translate(0); text-shadow: none; }
  100% { clip-path: inset(0 0 0 0); transform: translate(0); text-shadow: none; }
}

.js .reveal.is-in .h2.glitch-heading,
.js .reveal.is-in.glitch-heading {
  animation: batGlitch 0.65s var(--ease) 1;
}

/* Reduced motion disables */
.motion-off .pin__pulse,
.motion-off .hud-tray__pulse,
.motion-off .telemetry-flow__packet {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .pin__pulse,
  .hud-tray__pulse,
  .telemetry-flow__packet,
  .js .reveal.is-in .h2.glitch-heading,
  .js .reveal.is-in.glitch-heading {
    animation: none !important;
  }
}

/* ==========================================================================
   WAYNE APPLIED SCIENCES — ACOUSTIC TERMINAL (SOUNDTRACK DRAWER)
   ========================================================================== */

/* Floating Right-Edge Trigger Tab */
.soundtrack-trigger {
  position: fixed;
  right: 0;
  top: 48%;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.625rem;
  background: rgba(8, 11, 15, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 237, 241, 0.18);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--ice);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  transform-origin: right center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  min-width: 44px;
  min-height: 140px;
}

.soundtrack-trigger:hover,
.soundtrack-trigger:focus-visible {
  background: rgba(14, 18, 24, 0.98);
  border-color: rgba(225, 6, 0, 0.5);
  color: #ffffff;
  outline: none;
}

.soundtrack-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.soundtrack-trigger__icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
  writing-mode: horizontal-tb;
}

.soundtrack-trigger__bar {
  display: block;
  width: 2px;
  background: var(--ice);
  height: 4px;
  border-radius: 1px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.soundtrack-trigger.is-playing .soundtrack-trigger__bar:nth-child(1) {
  animation: triggerEq 0.7s infinite alternate ease-in-out;
}
.soundtrack-trigger.is-playing .soundtrack-trigger__bar:nth-child(2) {
  animation: triggerEq 0.9s infinite alternate 0.15s ease-in-out;
}
.soundtrack-trigger.is-playing .soundtrack-trigger__bar:nth-child(3) {
  animation: triggerEq 0.6s infinite alternate 0.3s ease-in-out;
}
.soundtrack-trigger.is-playing .soundtrack-trigger__bar:nth-child(4) {
  animation: triggerEq 0.8s infinite alternate 0.45s ease-in-out;
}

@keyframes triggerEq {
  0% { height: 3px; }
  100% { height: 12px; background: var(--red); }
}

.soundtrack-trigger__label {
  display: inline-block;
  white-space: nowrap;
}

.soundtrack-trigger__led {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.soundtrack-trigger.is-playing .soundtrack-trigger__led {
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
}

/* Backdrop */
.soundtrack-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.soundtrack-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-Out Drawer */
.soundtrack-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: rgba(8, 10, 13, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(230, 237, 241, 0.14);
  z-index: 1050;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.7);
}

.soundtrack-drawer[hidden] {
  display: none !important;
}

.soundtrack-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  display: flex !important;
}

.soundtrack-drawer__inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* Drawer Header */
.soundtrack-drawer__header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-bottom: 1px solid rgba(230, 237, 241, 0.1);
  padding-bottom: 1rem;
}

.soundtrack-drawer__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.soundtrack-drawer__led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.soundtrack-drawer.is-playing .soundtrack-drawer__led {
  background: var(--red);
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.8);
}

.soundtrack-drawer__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--ice-muted);
}

.soundtrack-drawer__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.soundtrack-drawer__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ice);
  margin: 0;
  letter-spacing: -0.02em;
}

.soundtrack-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(230, 237, 241, 0.15);
  border-radius: 4px;
  color: var(--ice);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.soundtrack-drawer__close:hover,
.soundtrack-drawer__close:focus-visible {
  background: rgba(225, 6, 0, 0.15);
  border-color: var(--red);
  color: #fff;
  outline: none;
}

.soundtrack-drawer__desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ice-muted);
  margin: 0;
  line-height: 1.4;
}

/* 32-Bar Visualizer Card */
.soundtrack-visualizer-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(5, 7, 9, 0.85);
  border: 1px solid rgba(230, 237, 241, 0.12);
  border-radius: 6px;
  padding: 0.875rem;
}

.soundtrack-visualizer-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ice-muted);
}

.soundtrack-visualizer-card__state {
  color: var(--red);
  font-weight: 600;
}

.soundtrack-visualizer-wrap {
  width: 100%;
  height: 88px;
  background: #020304;
  border: 1px solid rgba(230, 237, 241, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.soundtrack-visualizer-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.soundtrack-visualizer-card__footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: rgba(230, 237, 241, 0.4);
}

/* Currently Playing Track */
.soundtrack-now-playing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(14, 18, 24, 0.6);
  border-left: 2px solid var(--red);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
}

.soundtrack-now-playing__badge {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--red);
}

.soundtrack-now-playing__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice);
}

.soundtrack-now-playing__artist {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ice-muted);
}

.soundtrack-now-playing__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(230, 237, 241, 0.5);
  margin-top: 0.25rem;
}

.soundtrack-now-playing__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 4px;
  vertical-align: middle;
}

/* Transport Controls */
.soundtrack-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.soundtrack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 24, 0.85);
  border: 1px solid rgba(230, 237, 241, 0.15);
  color: var(--ice);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.soundtrack-btn:hover {
  background: rgba(225, 6, 0, 0.15);
  border-color: var(--red);
  transform: scale(1.05);
}

.soundtrack-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.soundtrack-btn--play {
  min-width: 52px;
  min-height: 52px;
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.soundtrack-btn--play:hover {
  background: #ff1a14;
  border-color: #ff1a14;
}

/* Volume Slider */
.soundtrack-volume-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: rgba(5, 7, 9, 0.6);
  border: 1px solid rgba(230, 237, 241, 0.1);
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.soundtrack-volume-wrap__label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ice-muted);
}

.soundtrack-volume-wrap__val {
  color: var(--ice);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.soundtrack-volume-wrap__control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.soundtrack-volume-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--ice);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.soundtrack-volume-mute:hover,
.soundtrack-volume-mute:focus-visible {
  color: var(--red);
  outline: none;
}

.soundtrack-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  min-height: 44px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.soundtrack-volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(230, 237, 241, 0.15);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.soundtrack-volume-slider::-moz-range-track {
  height: 6px;
  background: rgba(230, 237, 241, 0.15);
  border-radius: 3px;
}

.soundtrack-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--ice);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.soundtrack-volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ice);
  border: 2px solid var(--red);
  cursor: pointer;
}

.soundtrack-volume-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.2);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Track Cards */
.soundtrack-tracks {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.soundtrack-tracks__heading {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--ice-muted);
}

.soundtrack-tracks__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.soundtrack-track-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  min-height: 54px;
  background: rgba(10, 13, 17, 0.7);
  border: 1px solid rgba(230, 237, 241, 0.1);
  border-radius: 6px;
  color: var(--ice);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.soundtrack-track-card:hover {
  background: rgba(16, 21, 28, 0.9);
  border-color: rgba(230, 237, 241, 0.25);
}

.soundtrack-track-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.soundtrack-track-card.is-active {
  background: rgba(225, 6, 0, 0.08);
  border-color: var(--red);
}

.soundtrack-track-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ice-muted);
}

.soundtrack-track-card.is-active .soundtrack-track-card__num {
  color: var(--red);
  font-weight: 700;
}

.soundtrack-track-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.soundtrack-track-card__title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ice);
}

.soundtrack-track-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ice-muted);
}

.soundtrack-track-card__tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  background: rgba(230, 237, 241, 0.08);
  color: var(--ice-muted);
}

.soundtrack-track-card.is-active .soundtrack-track-card__tag {
  background: rgba(225, 6, 0, 0.2);
  color: var(--red);
  font-weight: 700;
}

/* Hidden YouTube Player */
.soundtrack-yt-container {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.001;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .soundtrack-drawer {
    width: 100vw;
  }
  .soundtrack-trigger {
    min-height: 110px;
    padding: 0.625rem 0.5rem;
  }
}

/* Reduced motion */
.motion-off .soundtrack-trigger__bar,
.motion-off .soundtrack-drawer.is-playing .soundtrack-drawer__led {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .soundtrack-trigger__bar,
  .soundtrack-drawer.is-playing .soundtrack-drawer__led {
    animation: none !important;
  }
  .soundtrack-drawer {
    transition: transform 0.01ms !important;
  }
  .soundtrack-backdrop {
    transition: opacity 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  @page {
    margin: 18mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header,
  .hero,
  .machine,
  .silicon,
  .proof,
  .armor,
  .models,
  .site-footer,
  .progress,
  .grid-lines,
  .grain,
  .skip-link,
  .specs__print,
  .fineprint,
  .sr-only {
    display: none !important;
  }

  .specs {
    padding: 0;
    border: 0;
    background: none;
  }

  .specs .wrap {
    max-width: none;
    padding: 0;
  }

  .specs__head {
    display: block;
    margin-bottom: 1.5rem;
  }

  .specs__head .label {
    color: #555;
  }

  .specs__head .label__no {
    color: #b00000;
  }

  .specs .h2 {
    color: #111;
    font-size: 28pt;
  }

  .specs .section__note {
    color: #444;
  }

  .spec-table {
    border-top: 1px solid #222;
  }

  .spec-table__row {
    grid-template-columns: 34mm 1fr;
    gap: 6mm;
    padding-block: 2.4mm;
    border-bottom: 1px solid #ccc;
  }

  .spec-table dt {
    color: #555;
  }

  .spec-table dd {
    color: #111;
  }

  .spec-table__row:hover {
    background: none;
  }
}
