/* ============================================================
   ME2D · SUPER-family design system
   One structure, three themes: JETS (amber) · CARS (red) · TANKS (green)
   ============================================================ */

/* ---- shared base tokens ---- */
:root {
  --ink: #eef2f8;
  --muted: #98a6bd;
  --faint: #64748f;
  --maxw: 1240px;
  --radius: 3px;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

/* ---- THEME: JETS (deep navy + afterburner amber) ---- */
body.theme-jets {
  --void: #06111f;
  --deck: #0a1c33;
  --panel: #0e2643;
  --panel-2: #123255;
  --line: #244a75;
  --line-soft: rgba(93, 140, 196, 0.16);
  --ink: #eaf1fb;
  --muted: #93a9c9;
  --faint: #5f789a;
  --burner: #ff7a1a;
  --burner-2: #ffb020;
  --burner-glow: rgba(255, 122, 26, 0.5);
  --hud: #6fe3f0;
  --grid: rgba(93, 140, 196, 0.16);
  --glow-a: rgba(255, 122, 26, 0.10);
  --glow-b: rgba(28, 78, 135, 0.35);
}

/* ---- THEME: CARS (asphalt charcoal + racing red) ---- */
body.theme-cars {
  --void: #0a0a0c;
  --deck: #121216;
  --panel: #1b1b21;
  --panel-2: #23232b;
  --line: #3d2f33;
  --line-soft: rgba(200, 170, 175, 0.12);
  --ink: #f3eef0;
  --muted: #a9a1a6;
  --faint: #766c72;
  --burner: #ff2b2b;
  --burner-2: #ff5c4d;
  --burner-glow: rgba(255, 43, 43, 0.5);
  --hud: #d7dde6;
  --grid: rgba(200, 170, 175, 0.10);
  --glow-a: rgba(255, 43, 43, 0.12);
  --glow-b: rgba(120, 30, 30, 0.28);
}

/* ---- THEME: TANKS (olive gunmetal + military green) ---- */
body.theme-tanks {
  --void: #0c0d09;
  --deck: #14160e;
  --panel: #1d1f14;
  --panel-2: #26291a;
  --line: #3a3f27;
  --line-soft: rgba(160, 175, 120, 0.13);
  --ink: #f0f2e6;
  --muted: #a4ab8e;
  --faint: #71785c;
  --burner: #a6c531;
  --burner-2: #c6dd52;
  --burner-glow: rgba(166, 197, 49, 0.45);
  --hud: #d9e4b0;
  --grid: rgba(160, 175, 120, 0.12);
  --glow-a: rgba(166, 197, 49, 0.10);
  --glow-b: rgba(70, 82, 30, 0.32);
}

/* ---- THEME: FORCES (gunmetal steel + tactical blue) ---- */
body.theme-forces {
  --void: #0a0d12;
  --deck: #10151c;
  --panel: #161c26;
  --panel-2: #1e2632;
  --line: #2c3644;
  --line-soft: rgba(150, 175, 205, 0.13);
  --ink: #eef3f9;
  --muted: #9aa8bc;
  --faint: #6b7789;
  --burner: #2e90ff;
  --burner-2: #63b3ff;
  --burner-glow: rgba(46, 144, 255, 0.5);
  --hud: #c4d3e6;
  --grid: rgba(150, 175, 205, 0.12);
  --glow-a: rgba(46, 144, 255, 0.10);
  --glow-b: rgba(28, 60, 110, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html { overflow-x: hidden; }
body {
  margin: 0;
  background-color: var(--deck);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 78% -8%, var(--glow-a), transparent 60%),
    radial-gradient(1000px 800px at 8% 12%, var(--glow-b), transparent 55%),
    linear-gradient(180deg, var(--void), var(--deck) 42%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 85%);
  opacity: 0.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--burner-2);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--burner); display: inline-block; }
.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.section-pad { padding: 96px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-top: 14px; text-transform: uppercase; }
.section-head p { color: var(--muted); max-width: 54ch; margin: 14px 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: rgba(127, 127, 127, 0.08); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--burner); color: var(--burner-2); transform: translateY(-2px); }
.btn-primary { background: var(--burner); border-color: var(--burner); color: #0e0e12; box-shadow: 0 8px 30px -10px var(--burner-glow); }
.btn-primary:hover { background: var(--burner-2); border-color: var(--burner-2); color: #0e0e12; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- NAV ---- */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--void) 72%, transparent); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand .tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em; color: var(--faint); text-transform: uppercase; }
.brand .dot { color: var(--burner); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 9px 13px; border-radius: var(--radius); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(127, 127, 127, 0.14); }
.nav-links a.cta { color: var(--burner-2); }
.nav-toggle { display: none; }

/* family switcher */
.switch { display: flex; gap: 2px; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2px; margin-left: 6px; }
.switch a { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; color: var(--faint); }
.switch a:hover { color: var(--ink); }
.switch a.here { background: var(--burner); color: #0e0e12; }

/* grouped nav with dropdown submenus */
.nav-group { position: relative; }
.nav-top { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 9px 13px; border-radius: var(--radius); transition: color 0.2s, background 0.2s; white-space: nowrap; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-top:hover, .nav-top.active { color: var(--ink); background: rgba(127, 127, 127, 0.14); }
.nav-top .chev { font-size: 0.58rem; opacity: 0.65; transition: transform 0.25s; }
.nav-top.nav-promo { color: var(--burner); font-weight: 600; justify-content: flex-start; gap: 6px; }
.nav-top.nav-promo::before { content: "\25C9"; font-size: 0.62em; }
.nav-top.nav-promo:hover { color: #0e0e12; background: var(--burner); }
.nav-menu { display: none; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); background: rgba(127, 127, 127, 0.14); }
@media (min-width: 721px) {
  .nav-group:hover > .nav-menu, .nav-group:focus-within > .nav-menu { display: block; position: absolute; top: 100%; left: 0; min-width: 214px; background: color-mix(in srgb, var(--void) 97%, transparent); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); backdrop-filter: blur(14px); z-index: 120; }
  .nav-group:hover > .nav-top .chev, .nav-group:focus-within > .nav-top .chev { transform: rotate(180deg); }
}

/* ---- HERO ---- */
.hero { position: relative; min-height: clamp(560px, 88vh, 900px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; z-index: 0; }
/* video hero: the old hero still sits ON TOP of the video and cross-fades out once playback starts */
/* video hero: the old hero still is FULLY OPAQUE and sits ON TOP of the video (hiding the paused
   first frame) until playback starts ~2s in, then it cross-fades out to reveal the moving video */
.hero-media .hero-poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 1.3s ease; }
.hero-media.playing .hero-poster { opacity: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, color-mix(in srgb, var(--void) 58%, transparent) 0%, transparent 20%, color-mix(in srgb, var(--void) 45%, transparent) 46%, color-mix(in srgb, var(--void) 86%, transparent) 72%, color-mix(in srgb, var(--void) 99%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--void) 94%, transparent) 0%, color-mix(in srgb, var(--void) 45%, transparent) 42%, transparent 66%); }

.reticle { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(62vh, 560px); height: min(62vh, 560px); transform: translate(-50%, -54%); pointer-events: none; opacity: 0.5; animation: reticle-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.reticle .ring { stroke: var(--hud); stroke-width: 1; fill: none; opacity: 0.4; }
.reticle .tick { stroke: var(--hud); stroke-width: 1.4; opacity: 0.7; }
.reticle .cross { stroke: var(--burner); stroke-width: 1.4; opacity: 0.9; }
.reticle .spin { transform-origin: 50% 50%; animation: spin 26s linear infinite; }

.hero-content { position: relative; z-index: 2; padding-bottom: 84px; max-width: 860px; animation: rise 0.9s ease both; }
.hero h1 { font-size: clamp(3.4rem, 11vw, 9rem); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.02em; margin: 18px 0 0; text-shadow: 0 4px 40px color-mix(in srgb, var(--void) 85%, transparent); }
.hero h1 .glow { color: transparent; -webkit-text-stroke: 1.5px var(--burner); text-shadow: 0 0 40px var(--burner-glow); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--ink); max-width: 46ch; margin: 24px 0 0; text-shadow: 0 1px 16px var(--void); }
.hero-sub b { color: var(--burner-2); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* phone: same hero image, cropped to frame the jet's tail (skull marking) */
@media (max-width: 768px) { .hero-media img { object-position: 28% center; } }

.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--void) 50%, transparent); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 42px; padding: 12px 0; animation: marquee 46s linear infinite; will-change: transform; }
.ticker-item { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 42px; }
.ticker-item::after { content: "◇"; color: var(--burner); }

/* ---- CARD (target-lock) ---- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.feature { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card { position: relative; display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s; filter: saturate(0.9) contrast(1.02); }
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1.1); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--panel) 92%, transparent)); }

.card .lock { position: absolute; inset: 14px; pointer-events: none; z-index: 3; }
.card .lock span { position: absolute; width: 16px; height: 16px; border: 2px solid var(--burner); opacity: 0; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card .lock .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; transform: translate(8px, 8px); }
.card .lock .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; transform: translate(-8px, 8px); }
.card .lock .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; transform: translate(8px, -8px); }
.card .lock .br { bottom: 0; right: 0; border-left: 0; border-top: 0; transform: translate(-8px, -8px); }
.card:hover .lock span { opacity: 1; transform: translate(0, 0); }

.card .desig { position: absolute; top: 14px; left: 14px; z-index: 4; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--hud); background: color-mix(in srgb, var(--void) 70%, transparent); border: 1px solid color-mix(in srgb, var(--hud) 30%, transparent); padding: 3px 8px; border-radius: 2px; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s; }
.card:hover .desig { opacity: 1; transform: translateY(0); }
.card .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; background: linear-gradient(90deg, transparent, var(--hud), transparent); opacity: 0; }
.card:hover .scan { animation: scan 1.1s ease-in-out; }

.card-body { position: relative; z-index: 5; margin-top: -46px; padding: 0 18px 18px; }
.card-body .maker { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burner-2); }
.card-body h3 { font-size: 1.3rem; margin: 6px 0 0; text-transform: uppercase; }
.card-body .meta { margin-top: 8px; font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card-body .flag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--faint); border: 1px solid var(--line-soft); padding: 2px 7px; border-radius: 2px; }

/* ---- CATEGORY TILES ---- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.cat-tile { position: relative; min-height: 300px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.7); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s; }
.cat-tile:hover img { transform: scale(1.05); filter: saturate(1) brightness(0.85); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--void) 92%, transparent)); }
.cat-tile-body { position: relative; z-index: 2; padding: 26px; width: 100%; }
.cat-tile .num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--burner); }
.cat-tile h3 { font-size: 1.8rem; text-transform: uppercase; margin: 8px 0 4px; }
.cat-tile p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.cat-tile .go { margin-top: 16px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burner-2); display: inline-flex; gap: 8px; align-items: center; transition: gap 0.2s; }
.cat-tile:hover .go { gap: 14px; }

/* ---- AIRLINES (commercial split) ---- */
.al-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.al-card { position: relative; display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.al-card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-4px); }
.al-card.hide { display: none; }
.al-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.al-media img.al-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.al-card:hover .al-media img.al-photo { transform: scale(1.06); }
.al-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--panel) 88%, transparent)); }
.al-card:hover .al-media .scan { animation: scan 1.1s ease-in-out; }
/* logo plate — fixed height + auto width + object-fit:contain guarantees the WHOLE logo shows, never cropped */
.al-plate { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; height: 40px; max-width: 66%; background: #fbfcfe; border-radius: 6px; padding: 0 11px; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5); }
.al-plate img { height: 24px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.al-plate .wm { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: #0e1420; text-transform: uppercase; white-space: nowrap; }
.al-body { padding: 16px 18px 18px; }
.al-body h3 { font-size: 1.16rem; margin: 0; text-transform: uppercase; }
.al-meta { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.al-meta .flag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--faint); border: 1px solid var(--line-soft); padding: 2px 7px; border-radius: 2px; }
.al-meta .mono { font-family: var(--font-mono); font-size: 0.72rem; color: var(--burner-2); }
.al-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; padding: 40px 0; }

/* airline logo on the detail hero — light plate so any-coloured logo reads on the dark hero */
.al-hero-logo { display: inline-flex; align-items: center; height: 66px; max-width: 260px; background: #fbfcfe; border-radius: 10px; padding: 0 20px; margin: 6px 0 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); }
.al-hero-logo img { height: 40px; width: auto; max-width: 220px; object-fit: contain; display: block; }
@media (max-width: 640px) { .al-hero-logo { height: 54px; padding: 0 16px; } .al-hero-logo img { height: 32px; } }

/* fleet cross-links on the airline detail page */
.fleet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fleet-list li { margin: 0; }
.fleet-list li a, .fleet-list li { font-family: var(--font-mono); font-size: 0.8rem; }
.fleet-list li a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); border: 1px solid var(--line-soft); background: var(--panel); padding: 8px 13px; border-radius: var(--radius); transition: border-color 0.2s, color 0.2s, gap 0.2s; }
.fleet-list li a:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); color: var(--burner-2); gap: 12px; }
.fleet-list li a .arrow { color: var(--burner); }
.fleet-list li:not(:has(a)) { color: var(--muted); border: 1px dashed var(--line-soft); padding: 8px 13px; border-radius: var(--radius); }

/* manufacturer → aircraft tiles */
.mfp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mfp { display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.mfp:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-3px); }
.mfp-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mfp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mfp:hover .mfp-media img { transform: scale(1.06); }
.mfp:hover .mfp-media .scan { animation: scan 1.1s ease-in-out; }
.mfp-body { padding: 11px 13px 13px; }
.mfp-body h4 { margin: 0; font-size: 0.98rem; text-transform: uppercase; }
.mfp-body span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* aces & pilots — portrait cards */
.ace-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ace-card { position: relative; display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.ace-card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-4px); }
.ace-card.hide { display: none; }
.ace-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: color-mix(in srgb, var(--void) 60%, #000); }
.ace-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.92) contrast(1.03); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ace-card:hover .ace-media img { transform: scale(1.05); }
.ace-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--panel) 94%, transparent)); }
.ace-card:hover .ace-media .scan { animation: scan 1.1s ease-in-out; }
.ace-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--burner) 22%, var(--panel)), var(--void)); }
.ace-noimg span { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: 0.04em; color: color-mix(in srgb, var(--burner) 70%, #fff); }
.ace-era { position: absolute; top: 12px; left: 12px; z-index: 3; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud); background: color-mix(in srgb, var(--void) 74%, transparent); border: 1px solid color-mix(in srgb, var(--hud) 30%, transparent); padding: 3px 8px; border-radius: 3px; backdrop-filter: blur(3px); }
.ace-body { padding: 14px 16px 16px; position: relative; z-index: 2; margin-top: -30px; }
.ace-body h3 { margin: 0; font-size: 1.12rem; text-transform: uppercase; line-height: 1.1; }
.ace-nick { margin: 4px 0 0; font-style: italic; color: var(--burner-2); font-size: 0.86rem; }
.ace-sub { margin-top: 9px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ace-sub .flag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--faint); border: 1px solid var(--line-soft); padding: 2px 7px; border-radius: 2px; }
.ace-sub .mono { font-family: var(--font-mono); font-size: 0.72rem; color: var(--burner-2); }

.ace-portrait { margin: 28px 0 0; max-width: 340px; }
.ace-portrait img { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius); display: block; filter: saturate(0.95) contrast(1.03); }
.ace-portrait figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.prose .ace-credit { margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--faint); opacity: 0.7; }

/* Operators — unit emblem badge */
.ace-media .op-emblem { position: absolute; top: 10px; right: 10px; z-index: 3; width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.75)); transition: transform 0.3s; }
.ace-card:hover .op-emblem { transform: scale(1.08); }
.op-feat { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.28; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.op-crest { width: 44px; height: 44px; object-fit: contain; flex: none; }
.op-crestbig { background: linear-gradient(160deg, color-mix(in srgb, var(--burner) 14%, var(--panel)), var(--void)); }
.op-crestbig img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6)); }

/* ---- WEAPONS (SUPERFORCEs) ---- */
.weap-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.weap-card { position: relative; display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.weap-card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-4px); }
.weap-card.hide { display: none; }
.weap-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--void); }
.weap-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.98) contrast(1.02); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.weap-card:hover .weap-media img { transform: scale(1.05); }
.weap-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, color-mix(in srgb, var(--panel) 55%, transparent)); }
.weap-type { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hud); background: color-mix(in srgb, var(--void) 72%, transparent); border: 1px solid color-mix(in srgb, var(--hud) 30%, transparent); padding: 3px 8px; border-radius: 3px; backdrop-filter: blur(3px); }
.weap-body { padding: 13px 16px 15px; border-top: 1px solid var(--line-soft); }
.weap-body h3 { margin: 0; font-size: 1.04rem; text-transform: uppercase; line-height: 1.12; }
.weap-note { margin: 5px 0 0; font-size: 0.8rem; color: color-mix(in srgb, var(--ink) 84%, transparent); line-height: 1.3; }
.weap-sub { margin-top: 9px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.weap-sub .flag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--faint); border: 1px solid var(--line-soft); padding: 2px 7px; border-radius: 2px; }
.weap-sub .mono { font-family: var(--font-mono); font-size: 0.7rem; color: var(--burner-2); }
.weap-hero-img { position: relative; z-index: 2; max-width: min(680px, 82%); max-height: 300px; object-fit: contain; margin: 0 auto; display: block; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6)); }
/* second in-body photo on a weapon detail page */
.weap-figure { margin: 28px 0 0; }
.weap-figure img { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius); display: block; filter: saturate(0.98) contrast(1.02); }
.weap-figure figcaption { margin-top: 11px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* newsletter signup — "THE DROP" radar band, full-bleed, picks up per-site --burner */
.wd { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 78% 50%, color-mix(in srgb, var(--burner) 13%, transparent) 0%, transparent 58%), linear-gradient(180deg, color-mix(in srgb, var(--burner) 6%, var(--panel)) 0%, var(--void, #0e0e12) 100%);
  font-family: var(--font-body); color: var(--ink); }
.wd::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px); }
.wd__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.wd__eyebrow { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--burner-2); display: inline-flex; align-items: center; gap: 0.6em; }
.wd__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--burner); display: inline-block; }
.wd__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.2rem); text-transform: uppercase; line-height: 0.96; letter-spacing: -0.015em; margin: 16px 0 0; }
.wd__title span { color: transparent; -webkit-text-stroke: 1.5px var(--burner); text-shadow: 0 0 34px color-mix(in srgb, var(--burner) 35%, transparent); }
.wd__lede { color: var(--muted); line-height: 1.65; font-size: 1.02rem; max-width: 44ch; margin: 20px 0 0; }
.wd__lede b { color: var(--ink); font-weight: 600; }
.wd__meters { display: flex; gap: 34px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.wd__meter b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.wd__meter span { display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.wd__form { display: block; }
.wd__row { display: flex; gap: 0; }
.wd__field { position: relative; flex: 1; }
.wd__field input { width: 100%; height: 58px; padding: 0 18px 0 44px; background: color-mix(in srgb, var(--ink) 3%, transparent); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); color: var(--ink); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em; outline: none; box-sizing: border-box; transition: border-color 0.2s, background 0.2s; }
.wd__field input::placeholder { color: var(--faint); text-transform: uppercase; letter-spacing: 0.16em; }
.wd__field input:focus-visible { border-color: var(--burner); background: color-mix(in srgb, var(--burner) 5%, transparent); }
.wd__tick { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--burner); font-family: var(--font-mono); font-size: 0.9rem; pointer-events: none; }
.wd__submit { position: relative; height: 58px; padding: 0 30px; display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: var(--burner); border: 1px solid var(--burner); color: #0e0e12; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; box-shadow: 0 8px 30px -10px var(--burner-glow); transition: background 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; }
.wd__submit:hover { background: var(--burner-2); border-color: var(--burner-2); transform: translateY(-1px); box-shadow: 0 12px 34px -10px var(--burner-glow); }
.wd__submit:active { transform: translateY(0); }
.wd__submit:focus-visible { outline: 2px solid var(--burner-2); outline-offset: 3px; }
.wd__fine { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin: 16px 0 0; }
.wd__consent { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; cursor: pointer; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.7; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wd__consent input { position: absolute; top: 2px; left: 0; width: 13px; height: 13px; margin: 0; opacity: 0; cursor: pointer; }
.wd__consent i { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; display: block; border: 1px solid var(--line); border-radius: 2px; transition: border-color 0.2s, background 0.2s; }
.wd__consent input:checked + i { background: var(--burner); border-color: var(--burner); }
.wd__consent input:focus-visible + i { outline: 2px solid var(--burner-2); outline-offset: 2px; }
.wd__consent a { color: var(--burner-2); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--burner-2) 35%, transparent); }
.wd__hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
@media (max-width: 900px) {
  .wd__inner { grid-template-columns: 1fr; }
  .wd__radar { display: none; }
  .wd__row { flex-direction: column; gap: 10px; }
  .wd__field input { border-right: 1px solid var(--line); border-radius: var(--radius); }
  .wd__submit { border-radius: var(--radius); justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wd__submit:hover { transform: none; } }

/* ---- "In Motion" film player ---- */
.film { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: #000; aspect-ratio: 16 / 9; }
.film video, .film .film-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; object-fit: cover; background: #000; }
/* YouTube embed: over-scale the iframe so its top title-bar and bottom logo/controls fall into the
   clipped over-scan — leaving only clean video, no YouTube marks (controls=0) */
.film .film-frame { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: calc(100% + 140px); border: 0; display: block; }
.film-play { position: absolute; inset: 0; margin: auto; width: 90px; height: 90px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #0e0e12; background: var(--burner); box-shadow: 0 10px 44px rgba(0, 0, 0, 0.55), 0 0 0 12px color-mix(in srgb, var(--burner) 20%, transparent); transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s; }
.film-play svg { width: 40px; height: 40px; margin-left: 5px; }
.film-play:hover { transform: scale(1.08); box-shadow: 0 10px 44px rgba(0, 0, 0, 0.55), 0 0 0 16px color-mix(in srgb, var(--burner) 26%, transparent); }
.film-play.hide { opacity: 0; pointer-events: none; }
.film-badge { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burner); background: color-mix(in srgb, var(--void) 74%, transparent); border: 1px solid color-mix(in srgb, var(--burner) 45%, transparent); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(3px); transition: opacity 0.3s; }
.film-badge.hide { opacity: 0; }
.specsheet .head .op-crest { width: 30px; height: 30px; }

/* SUPERCARS Head2Head banner (full-width video) */
.h2h { position: relative; display: block; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.h2h video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1) brightness(0.42); transition: filter 0.5s, transform 0.7s cubic-bezier(0.2,0.8,0.2,1); z-index: 0; }
.h2h:hover video { filter: brightness(0.55); transform: scale(1.04); }
.h2h::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at center, color-mix(in srgb, var(--void) 35%, transparent), color-mix(in srgb, var(--void) 84%, transparent)); }
.h2h-inner { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 24px; }
.h2h-eye { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--burner-2); }
.h2h-title { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: 0.02em; text-transform: uppercase; margin: 8px 0 6px; color: var(--ink); text-shadow: 0 4px 40px rgba(0,0,0,0.75); }
.h2h-bolt { width: clamp(30px, 6vw, 52px); height: clamp(30px, 6vw, 52px); color: var(--burner); filter: drop-shadow(0 0 16px var(--burner-glow)); }
.h2h-bolt svg { width: 100%; height: 100%; display: block; }
.h2h-inner p { color: var(--ink); max-width: 54ch; font-size: 1.02rem; margin: 4px 0 0; text-shadow: 0 1px 12px var(--void); }
.h2h-go { margin-top: 20px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #0e0e12; background: var(--burner); padding: 12px 22px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.h2h:hover .h2h-go { gap: 14px; }

/* home "go deeper" tiles with video backgrounds */
.cat-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.66); transition: filter 0.4s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 0; }
.cat-tile.vid:hover video { filter: saturate(1.05) brightness(0.82); transform: scale(1.04); }
.cat-tile.vid .cat-tile-body { z-index: 2; }
.cat-tile.vid::after { z-index: 1; }
/* "coming soon" tiles — not clickable, dimmed, ribbon badge */
.cat-tile.soon { cursor: default; }
.cat-tile.soon video { filter: saturate(0.5) brightness(0.42); }
.cat-tile.soon:hover video { transform: none; filter: saturate(0.55) brightness(0.48); }
.cat-tile.soon h3 { color: var(--muted); }
.cat-tile.soon img { filter: saturate(0.45) brightness(0.4); }
.cat-tile.soon:hover img { transform: none; filter: saturate(0.5) brightness(0.45); }
.soon-badge { position: absolute; top: 16px; right: 16px; z-index: 3; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burner); background: color-mix(in srgb, var(--void) 78%, transparent); border: 1px solid color-mix(in srgb, var(--burner) 50%, transparent); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(3px); }

/* ---- QUOTE ---- */
.quote { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--void) 40%, transparent); }
.quote-inner { padding: 90px 0; max-width: 900px; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.12; margin: 18px 0 0; text-wrap: balance; }
.quote blockquote .amp { color: var(--burner); }
.quote cite { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---- MANIFEST ---- */
.manifest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.manifest .cell { background: var(--deck); padding: 30px 24px; }
.manifest .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--burner-2); line-height: 1; }
.manifest .lbl { margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- DETAIL ---- */
.detail-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.detail-hero .bg { position: absolute; inset: 0; }
.detail-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.detail-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--void) 40%, transparent), color-mix(in srgb, var(--void) 92%, transparent)); }
.detail-hero .inner { position: relative; z-index: 2; padding: 60px 0; }
.detail-hero h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); text-transform: uppercase; margin: 16px 0 0; }
.detail-hero .role { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.back-link { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.back-link:hover { color: var(--burner-2); }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prose p { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); margin: 0 0 20px; font-size: 1.06rem; }
.prose p:first-child::first-letter { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; float: left; line-height: 0.8; padding: 6px 12px 0 0; color: var(--burner); }

.specsheet { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--deck)); overflow: hidden; position: sticky; top: 90px; }
.specsheet .head { padding: 14px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--burner) 8%, transparent); display: flex; justify-content: space-between; align-items: center; }
.specsheet .head span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burner-2); }
.specsheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 0.82rem; }
.specsheet .row:last-child { border-bottom: 0; }
.specsheet .row .k { color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.specsheet .row .v { color: var(--ink); text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.05); }
.photo-credit { margin: 14px 0 0; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); opacity: 0.7; }
.new-badge { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--burner); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; padding: 3px 8px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.45); }
/* SUPERFORCES cards carry a unit emblem top-right (.card .emblem, z-index 4) which would cover the NEW badge — move it to the bottom-right of the photo, clear of the emblem (top-right), the .desig hover tag (top-left) and the title band (bottom-left, -46px card-body overlap). */
.theme-forces .new-badge { top: auto; right: 12px; bottom: 52px; }
.social { display: flex; gap: 18px; margin-top: 20px; }
.social a { display: inline-flex; color: #fff; transition: transform 0.2s ease; }
.social a:hover { transform: scale(1.18); }
.social svg { width: 26px; height: 26px; fill: currentColor; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- MANUFACTURER MODE: brand grid ---- */
.brand-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-tile { display: block; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 20px; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.brand-tile:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-3px); }
.brand-logo { height: 62px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.brand-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-tile h3 { font-size: 1rem; text-transform: uppercase; }
.brand-tile .cnt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--burner-2); margin-top: 6px; }

/* curated premier-brand showcase on home */
.brand-showcase { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.brand-showtile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); transition: border-color 0.2s, transform 0.2s; text-align: center; }
.brand-showtile:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-4px); }
.brand-showtile .logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.brand-showtile .logo img { max-height: 64px; max-width: 84%; object-fit: contain; transition: transform 0.25s; }
.brand-showtile:hover .logo img { transform: scale(1.08); }
.brand-showtile h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-showtile .n { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burner-2); }
@media (max-width: 1050px) { .brand-showcase { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .brand-showcase { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .brand-showcase { grid-template-columns: repeat(2, 1fr); } }

/* ---- filter / search bar ---- */
.filterbar { border: 1px solid var(--line-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 70%, transparent); padding: 18px; margin-bottom: 22px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.field { position: relative; display: flex; align-items: center; }
.field.grow { flex: 1; min-width: 240px; }
.field svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.filters input[type=search] {
  -webkit-appearance: none; appearance: none; width: 100%;
  background: var(--void); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.85rem; padding: 13px 14px 13px 40px; border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filters input[type=search]::placeholder { color: var(--faint); }
.filters input[type=search]:focus { outline: none; border-color: var(--burner); box-shadow: 0 0 0 3px color-mix(in srgb, var(--burner) 22%, transparent); }
.filters select {
  -webkit-appearance: none; appearance: none;
  background: var(--void); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.85rem; padding: 13px 40px 13px 16px; border-radius: var(--radius); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238a97a8' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.filters select:focus { outline: none; border-color: var(--burner); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  -webkit-appearance: none; appearance: none;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); cursor: pointer;
  background: var(--void); transition: all 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.on { background: var(--burner); color: #0e0e12; border-color: var(--burner); font-weight: 600; }
.result-count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.12em; text-transform: uppercase; margin: 2px 0 22px; }
.load-more { margin: 44px auto 0; display: inline-flex; }
.load-wrap { text-align: center; }

/* search results: exactly 4 across */
#cargrid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { #cargrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { #cargrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { #cargrid { grid-template-columns: 1fr; } }

/* ---- manufacturer search + A-Z filter row ---- */
.azrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.azrow button { -webkit-appearance: none; appearance: none; font-family: var(--font-mono); font-size: 0.75rem; min-width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--line); background: var(--void); color: var(--muted); cursor: pointer; transition: all 0.15s; }
.azrow button:hover { color: var(--ink); border-color: var(--muted); }
.azrow button.on { background: var(--burner); color: #0e0e12; border-color: var(--burner); }
.azrow button.all { padding: 0 14px; }
.azrow button:disabled { opacity: 0.22; cursor: default; }

/* ---- manufacturer cards: 4 across ---- */
.mfr4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mfr4-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 18px; transition: border-color 0.2s, transform 0.2s; }
.mfr4-card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-3px); }
.mfr4-card .mlogo { height: 88px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 16px; }
.mfr4-card .mlogo img { max-width: 88%; max-height: 100%; object-fit: contain; object-position: left center; }
.mfr4-card h3 { font-size: 1.05rem; text-transform: uppercase; }
.mfr4-card .minfo { font-size: 0.8rem; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.mfr4-card .minfo b { color: var(--faint); font-weight: 600; }
.mfr4-card .mcnt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--burner-2); letter-spacing: 0.12em; text-transform: uppercase; margin-top: auto; padding-top: 12px; }
@media (max-width: 1050px) { .mfr4-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .mfr4-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .mfr4-grid { grid-template-columns: 1fr; } }

/* ---- A-Z directory bar ---- */
.azbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); margin-bottom: 20px; position: sticky; top: 74px; z-index: 20; backdrop-filter: blur(8px); }
.azbar a { font-family: var(--font-mono); font-size: 0.8rem; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--muted); background: rgba(127, 127, 127, 0.07); transition: all 0.15s; }
.azbar a:hover { background: var(--burner); color: #0e0e12; }
.azbar a.off { opacity: 0.2; pointer-events: none; }
.az-head { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--burner); margin: 46px 0 22px; display: flex; align-items: center; gap: 20px; scroll-margin-top: 130px; }
.az-head::before, .az-head::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---- rich manufacturer cards ---- */
.mfr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mfr-card { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 20px; transition: border-color 0.2s, transform 0.2s; }
.mfr-card:hover { border-color: color-mix(in srgb, var(--burner) 55%, transparent); transform: translateY(-3px); }
.mfr-card .logo { flex: 0 0 100px; height: 72px; display: flex; align-items: center; justify-content: center; }
.mfr-card .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mfr-card h3 { font-size: 1.15rem; text-transform: uppercase; }
.mfr-card .info { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.mfr-card .info b { color: var(--faint); font-weight: 600; }
.mfr-card .cnt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--burner-2); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 760px) { .mfr-grid { grid-template-columns: 1fr; } .mfr-card { gap: 14px; padding: 16px; } .mfr-card .logo { flex-basis: 78px; height: 58px; } }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 40px; background: color-mix(in srgb, var(--void) 55%, transparent); }
.footer-inner { padding: 70px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--burner-2); margin-bottom: 16px; }
.footer p, .footer li { color: var(--muted); font-size: 0.92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--burner-2); }
.footer .big { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--ink); }
.footer .big .dot { color: var(--burner); }
/* footer · Other SUPERS network */
.fnet { display: grid; gap: 2px; margin: 0 0 4px; }
.fnet-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 0 -12px; border-radius: var(--radius); position: relative; transition: background 0.18s; }
.fnet-row::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 2px; border-radius: 2px; background: var(--c); opacity: 0.55; transform: scaleY(0.6); transform-origin: center; transition: opacity 0.18s, transform 0.18s; }
.fnet-row:hover { background: color-mix(in srgb, var(--c) 9%, transparent); }
.fnet-row:hover::before { opacity: 1; transform: scaleY(1); }
.fnet-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.fnet-mark span { color: var(--c); }
.fnet-go { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); transition: color 0.18s, transform 0.18s; }
.fnet-row:hover .fnet-go { color: var(--c); transform: translate(2px, -2px); }
.fnet-studio { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; }
.fnet-studio .fnet-lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.fnet-studio a { color: var(--muted); font-size: 0.9rem; width: max-content; }
.fnet-studio a:hover { color: var(--burner-2); }
.fnet-ext { color: var(--faint); }
/* footer · legal link line (replaces the old disclaimer paragraph) */
.footer-legal { border-top: 1px solid var(--line-soft); }
.footer-legal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 18px; padding-bottom: 18px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.footer-legal-row a { color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 1px; transition: color 0.18s, border-color 0.18s; }
.footer-legal-row a:hover { color: var(--burner-2); border-color: var(--burner-2); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--faint); }

/* ---- ANIMATIONS ---- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { opacity: 0; top: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes reticle-in { from { opacity: 0; transform: translate(-50%, -54%) scale(0.85); } to { opacity: 0.5; transform: translate(-50%, -54%) scale(1); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .nav-links .switch { display: none; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .specsheet { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .manifest { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section-pad { padding: 64px 0; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; background: color-mix(in srgb, var(--void) 98%, transparent); border-bottom: 1px solid var(--line); padding: 16px; gap: 4px; transform: translateY(-130%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px; }
  .nav-group { width: 100%; }
  .nav-top { width: 100%; justify-content: space-between; padding: 12px; }
  .nav-group.open > .nav-menu { display: block; position: static; padding: 2px 0 8px 14px; }
  .nav-group.open > .nav-top .chev { transform: rotate(180deg); }
  .nav-menu a { padding: 10px 12px; }
  .nav-links .switch { display: flex; margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); color: var(--ink); width: 42px; height: 38px; border-radius: var(--radius); align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .reticle { opacity: 0.3; }
}

:focus-visible { outline: 2px solid var(--burner); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
}

/* ---- unit emblems (SUPERFORCES) ---- */
.card .emblem { position: absolute; top: 12px; right: 12px; z-index: 4; width: 46px; height: 46px; object-fit: contain; background: rgba(6, 8, 12, 0.55); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px; backdrop-filter: blur(3px); filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }
.unit-emblem { width: 92px; height: 92px; object-fit: contain; display: block; margin: 4px 0 2px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55)); }
@media (max-width: 640px) { .unit-emblem { width: 66px; height: 66px; } }

/* ---- ATLAS Network badges (SUPERFORCES) ---- */
.atlas-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.92); color: #0a2a5a; border-radius: 4px; padding: 2px 7px 2px 3px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; }
.atlas-chip img { width: 16px; height: 16px; object-fit: contain; display: block; }
.atlas-badge img { width: 20px; height: 20px; object-fit: contain; display: block; }
.atlas-badge b { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; }
.atlas-line { display: inline-flex; align-items: center; gap: 11px; margin-top: 16px; background: rgba(255,255,255,0.92); color: #0a2a5a; border-radius: 8px; padding: 6px 15px 6px 8px; }
.atlas-line img { width: 30px; height: 30px; object-fit: contain; }
.atlas-line span { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.atlas-hero { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.atlas-hero img { width: 108px; height: 108px; object-fit: contain; background: rgba(255,255,255,0.93); border-radius: 14px; padding: 8px; flex: 0 0 auto; box-shadow: 0 6px 24px -8px rgba(0,0,0,0.6); }
@media (max-width: 640px) { .atlas-hero { gap: 14px; } .atlas-hero img { width: 74px; height: 74px; } }

/* ============================================================ RECON LIGHTBOX */
.gallery img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 5vmin; opacity: 0; transition: opacity 0.26s ease; font-family: var(--font-mono); }
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; cursor: zoom-out; backdrop-filter: blur(3px);
  background-color: color-mix(in srgb, var(--void) 90%, #000);
  background-image:
  radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--burner) 6%, transparent) 0%, transparent 60%),
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px; }
.lb-stage { position: relative; margin: 0; display: flex; max-width: 92vw; max-height: 82vh; }
.lb-stage img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 82vh; object-fit: contain; background: #000;
  border: 1px solid color-mix(in srgb, var(--burner) 55%, transparent);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px color-mix(in srgb, var(--burner) 15%, transparent); }
.lb-lock { position: absolute; inset: -11px; pointer-events: none; }
.lb-lock span { position: absolute; width: 26px; height: 26px; border: 2px solid var(--burner); opacity: 0; }
.lb-lock .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; --tx: 11px; --ty: 11px; }
.lb-lock .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; --tx: -11px; --ty: 11px; }
.lb-lock .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; --tx: 11px; --ty: -11px; }
.lb-lock .br { bottom: 0; right: 0; border-left: 0; border-top: 0; --tx: -11px; --ty: -11px; }
.lb-stage.lock-in .lb-lock span { animation: lb-lock 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }
@keyframes lb-lock { 0% { opacity: 0; transform: translate(var(--tx), var(--ty)); } 55% { opacity: 1; } 100% { opacity: 0.95; transform: translate(0,0); } }
.lb-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hud) 85%, transparent), transparent); }
.lb-stage.lock-in .lb-scan { animation: lb-scan 0.75s ease both; }
@keyframes lb-scan { 0% { opacity: 0; top: 0; } 15% { opacity: 0.9; } 100% { opacity: 0; top: 100%; } }
.lb-hud { position: absolute; top: 22px; z-index: 2; font-size: 0.72rem; letter-spacing: 0.22em; }
.lb-tl { left: 24px; color: var(--burner); text-shadow: 0 0 12px color-mix(in srgb, var(--burner) 45%, transparent); }
.lb-tr { right: 64px; color: var(--muted); }
.lb-cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: 80vw; text-align: center; font-size: 0.75rem; letter-spacing: 0.06em; line-height: 1.5; color: var(--muted); }
.lb-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 65%, transparent); color: var(--ink); font-size: 1rem; cursor: pointer; transition: border-color .2s, color .2s; }
.lb-x:hover { border-color: var(--burner); color: var(--burner); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 56px; height: 96px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-nav span { width: 20px; height: 20px; border-top: 2px solid var(--muted); border-left: 2px solid var(--muted); transition: border-color .2s, transform .2s; }
.lb-prev span { transform: rotate(-45deg); } .lb-next span { transform: rotate(135deg); }
.lb-nav:hover span { border-color: var(--burner); }
.lb-prev:hover span { transform: rotate(-45deg) scale(1.18); } .lb-next:hover span { transform: rotate(135deg) scale(1.18); }
@media (max-width: 640px) { .lb-nav { width: 42px; } .lb-hud { font-size: 0.64rem; } .lb-tl { left: 14px; } .lb-tr { right: 58px; } }

/* footer legal note — small, dim, unobtrusive */
/* ---- Legal & Privacy subpage ---- */
.legal { padding: 0 0 70px; background: radial-gradient(1100px 480px at 78% -6%, var(--glow-a), transparent 60%); }
.legal-head { padding: 54px 0 30px; }
.legal-eye { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--burner-2); }
.legal-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.04; color: var(--ink); margin: 0.3em 0 0.25em; letter-spacing: 0.01em; text-wrap: balance; }
.legal-sub { color: var(--muted); max-width: 60ch; line-height: 1.6; margin: 0; }
.legal-updated { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 18px; }
.legal-body { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: start; }
.legal-toc { position: sticky; top: 20px; display: grid; gap: 11px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); }
.legal-toc a { display: flex; gap: 9px; color: var(--faint); }
.legal-toc a:hover { color: var(--burner-2); }
.legal-toc .num { color: var(--burner); }
.legal-sec { border-top: 1px solid var(--line-soft); padding: 30px 0; scroll-margin-top: 90px; }
.legal-sec:first-child { border-top: 0; padding-top: 6px; }
.legal-sec-eye { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burner-2); display: flex; gap: 10px; margin-bottom: 12px; }
.legal-sec-eye .num { color: var(--faint); }
.legal-sec h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); margin: 0 0 12px; }
.legal-sec p { color: var(--muted); line-height: 1.7; max-width: 68ch; margin: 0 0 12px; font-size: 0.96rem; }
.legal-sec p b { color: var(--ink); font-weight: 600; }
.legal-link { color: var(--burner-2); border-bottom: 1px solid color-mix(in srgb, var(--burner-2) 34%, transparent); }
.legal-link:hover { border-bottom-color: var(--burner-2); }
.legal-kv { display: grid; margin: 16px 0 4px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; max-width: 68ch; }
.legal-kv-row { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid var(--line-soft); }
.legal-kv-row:first-child { border-top: 0; }
.legal-kv-row .k { padding: 12px 16px; background: var(--deck); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.legal-kv-row .v { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.legal-kv-row .v b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .legal-body { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 16px; padding: 4px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
  .legal-kv-row { grid-template-columns: 1fr; }
  .legal-kv-row .k { border-bottom: 1px solid var(--line-soft); }
}

/* lightbox download button (SUPERCARS only) */
.lb-dl { position: absolute; bottom: 20px; right: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 65%, transparent); padding: 9px 14px; border-radius: 4px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.lb-dl:hover { color: var(--burner); border-color: var(--burner); }
@media (max-width: 640px) { .lb-dl { bottom: 12px; right: 12px; font-size: 0.58rem; padding: 7px 10px; } .lb-cap { bottom: 54px; } }

/* ── Wide "Go deeper" banner tile (full grid width, e.g. Top 10 under Operators/Weapons) ── */
.cat-grid .cat-tile.wide { grid-column: 1 / -1; min-height: 210px; }
.cat-tile.wide .cat-tile-body { max-width: 640px; }
.cat-tile.wide h3 { font-size: 2rem; }

/* ── TOP 10 (editorial ranking, split Military / Police) ── */
.tt-tabs { margin-bottom: 24px; }
.tt-list { display: flex; flex-direction: column; gap: 14px; }
.tt-row { display: grid; grid-template-columns: 70px 210px 1fr; align-items: stretch; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.tt-row:hover { border-color: color-mix(in srgb, var(--burner) 55%, var(--line)); transform: translateY(-2px); }
.tt-rank { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--burner); background: color-mix(in srgb, var(--burner) 10%, transparent); }
.tt-media { position: relative; }
.tt-media img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; }
.tt-media .tt-emblem { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; min-height: 0; object-fit: contain; background: rgba(6,8,12,0.55); border: 1px solid var(--line-soft); border-radius: 7px; padding: 3px; backdrop-filter: blur(3px); }
.tt-info { padding: 16px 20px 16px 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.tt-info .tt-meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; flex-wrap: wrap; }
.tt-info h3 { font-size: 1.4rem; text-transform: uppercase; margin: 0; }
.tt-info p { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 70ch; line-height: 1.5; }
.tt-info .go { margin-top: 4px; }
.tt-hero { grid-template-columns: 100px 360px 1fr; }
.tt-hero .tt-rank { font-size: 3.4rem; background: color-mix(in srgb, var(--burner) 16%, transparent); }
.tt-hero .tt-media img { min-height: 230px; }
.tt-hero .tt-info h3 { font-size: 2rem; }
@media (max-width: 720px) {
  .tt-row, .tt-hero { display: block; position: relative; grid-template-columns: none; }
  .tt-media img, .tt-hero .tt-media img { min-height: 168px; }
  .tt-rank, .tt-hero .tt-rank { position: absolute; top: 0; left: 0; z-index: 3; width: 48px; height: 48px; font-size: 1.5rem; background: var(--burner); color: #0b0b0e; }
  .tt-info, .tt-hero .tt-info { padding: 14px 16px 16px; }
}

/* ── BUILD YOUR TOP 10 (client-side builder) ── */
.tb-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.tb-status { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; margin: 0 0 12px; }
.tb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.tb-item { display: grid; grid-template-columns: 32px 58px 1fr auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tb-item img { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; }
.tb-item .tb-rank { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--burner); text-align: center; }
.tb-name b { display: block; font-size: 0.95rem; line-height: 1.2; }
.tb-name span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.tb-ctl { display: flex; gap: 4px; }
.tb-ctl button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; font-size: 0.66rem; line-height: 1; }
.tb-ctl button:hover:not(:disabled) { color: var(--ink); border-color: var(--burner); }
.tb-ctl button:disabled { opacity: 0.28; cursor: default; }
.tb-empty { color: var(--faint); font-size: 0.9rem; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.tb-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tb-actions button { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 11px 18px; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.tb-actions button:hover { border-color: var(--burner); }
#tb-share { background: var(--burner); border-color: var(--burner); color: #0b0b0e; font-weight: 700; }
.tb-msg { margin-top: 12px; color: var(--burner-2); font-size: 0.85rem; font-family: var(--font-mono); }
.tb-results { display: flex; flex-direction: column; gap: 6px; max-height: 640px; overflow-y: auto; padding-right: 4px; margin-top: 4px; }
.tb-res { display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 10px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--ink); font: inherit; }
.tb-res:hover:not(:disabled) { border-color: var(--burner); }
.tb-res.in { border-color: color-mix(in srgb, var(--burner) 60%, var(--line)); background: color-mix(in srgb, var(--burner) 8%, var(--panel)); }
.tb-res:disabled { opacity: 0.4; cursor: default; }
.tb-res img { width: 48px; height: 34px; object-fit: cover; border-radius: 5px; }
.tb-rn b { display: block; font-size: 0.88rem; line-height: 1.2; }
.tb-rn small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.tb-add { font-size: 1.15rem; color: var(--burner); text-align: center; }
@media (max-width: 820px) { .tb-wrap { grid-template-columns: 1fr; } .tb-results { max-height: 480px; } }

/* ── Top 10 refinements: prominent arena switch + uniform ranked images (except #1) ── */
.tt-switch { display: inline-flex; gap: 4px; padding: 5px; margin: 0 0 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.tt-seg { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 30px; border-radius: 999px; border: none; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s; }
.tt-seg.on { background: var(--burner); color: #0b0b0e; }
.tt-seg:not(.on):hover { color: var(--ink); }
@media (min-width: 721px) {
  /* Uniform image size for ranks 2-10 (the #1 hero stays big). Fix the IMAGE height only —
     the row grows with its text so the name + "why" are never clipped. */
  .tt-row:not(.tt-hero) { align-items: center; min-height: 150px; }
  .tt-row:not(.tt-hero) .tt-media { height: 138px; }
  .tt-row:not(.tt-hero) .tt-media img { height: 138px; min-height: 0; }
  .tt-row:not(.tt-hero) .tt-info { overflow: visible; padding-top: 14px; padding-bottom: 14px; }
}

/* ── Build-your-own: "how badass is your list" score ── */
.tb-score { margin-top: 22px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tb-score-lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tb-score-row { display: flex; align-items: baseline; gap: 16px; margin: 8px 0 12px; flex-wrap: wrap; }
.tb-score-num { font-family: var(--font-mono); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--burner); }
.tb-score-rank { font-family: var(--font-display, var(--font-mono)); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: 0.02em; }
.tb-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.tb-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--burner) 55%, #000), var(--burner)); transition: width 0.5s cubic-bezier(0.2,0.8,0.2,1); }

/* Top 10 arena cross-links (Military ↔ Police + Build your own) */
.tt-cross { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Arcade banner (The Dispensary) — NEW pill + subtle gold "coin" glow ── */
.cat-tile .tile-new { position: absolute; top: 14px; right: 14px; z-index: 3; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; background: var(--burner); color: #0b0b0e; padding: 4px 10px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.cat-tile.arcade { box-shadow: 0 0 0 1px rgba(245,197,66,0.35), 0 0 34px rgba(245,197,66,0.14); }
.cat-tile.arcade .num { color: #f5c542; }

/* ── Cars home feature stack: Head2Head + Top 10 + Arcade banners with ONE uniform gap ── */
.feature-stack { display: flex; flex-direction: column; gap: 28px; }
.feature-stack .cat-tile.wide { width: 100%; }

/* ── SUPERSHIPS theme: deep ocean + sonar teal ── */
body.theme-ships {
  --void: #060c11;
  --deck: #0b141a;
  --panel: #101c23;
  --panel-2: #15242d;
  --line: #22363f;
  --line-soft: rgba(120, 190, 205, 0.14);
  --ink: #eaf4f7;
  --muted: #96aeb6;
  --faint: #66808a;
  --burner: #19c2d8;
  --burner-2: #5fe0ef;
  --burner-glow: rgba(25, 194, 216, 0.5);
  --hud: #bfe6ec;
  --grid: rgba(120, 190, 205, 0.12);
  --glow-a: rgba(25, 194, 216, 0.10);
  --glow-b: rgba(8, 60, 75, 0.34);
}

/* iOS Safari auto-zooms the page when a focused input has font-size < 16px, which leaves the page zoomed and
   panning left/right ("floating") after a search. Force 16px on every text-like input on phones/tablets.
   !important so the rule also beats the inline comparator styles. */
@media (max-width: 820px) {
  input[type=search], input[type=text], input[type=email], select, textarea { font-size: 16px !important; }
}
