/* Blue Angels Maneuver Guide — shared styles.
   Two themes share one markup: "cinematic" (default, dark) and "team" (bold blue and gold). */

:root,
:root[data-theme="cinematic"] {
  --bg: #05080f;
  --bg-alt: #0a1120;
  --surface: #0e182b;
  --surface-2: #132038;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e8edf6;
  --muted: #8f9db4;
  --accent: #f0b429;
  --accent-soft: rgba(240, 180, 41, 0.14);
  --accent-ink: #1a1302;
  --blue: #2d64d8;
  --header-bg: rgba(5, 8, 15, 0.72);
  --header-text: #e8edf6;
  --band-bg: #0b1426;
  --band-text: #e8edf6;
  --hero-shade: linear-gradient(90deg, rgba(4, 7, 14, 0.86) 0%, rgba(4, 7, 14, 0.55) 38%, rgba(4, 7, 14, 0) 70%);
  --hero-fade: linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 15, 0) 22%);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --display-weight: 700;
  --display-case: uppercase;
  --display-track: 0.01em;
  color-scheme: dark;
}

:root[data-theme="team"] {
  --bg: #f3f5fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #e9eef8;
  --line: rgba(11, 42, 102, 0.12);
  --line-strong: rgba(11, 42, 102, 0.28);
  --text: #0b1f4d;
  --muted: #4d5f82;
  --accent: #ffc72c;
  --accent-soft: rgba(255, 199, 44, 0.22);
  --accent-ink: #0b2a66;
  --blue: #0b2a66;
  --header-bg: #0b2a66;
  --header-text: #ffffff;
  --band-bg: #0b2a66;
  --band-text: #ffffff;
  --hero-shade: linear-gradient(90deg, rgba(8, 31, 79, 0.92) 0%, rgba(8, 31, 79, 0.6) 40%, rgba(8, 31, 79, 0) 72%);
  --hero-fade: linear-gradient(0deg, rgba(8, 31, 79, 0.85) 0%, rgba(8, 31, 79, 0) 26%);
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 14px 34px rgba(11, 42, 102, 0.18);
  --display-weight: 800;
  --display-case: uppercase;
  --display-track: 0.02em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

.display {
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-track);
  line-height: 0.95;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1240px, 100% - 64px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: transparent; color: var(--accent); }
:root[data-theme="team"] .btn-primary:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 11px; }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); color: var(--header-text);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="team"] .site-header { border-bottom: 4px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: "Barlow Condensed", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: 0.12em; }
.brand-name span { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; opacity: 0.78;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: transparent; color: inherit;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-swatch { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #0b2a66 50%, #ffc72c 50%); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: transparent; color: inherit; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--header-bg); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .theme-toggle .theme-label { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: #0b1426; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage canvas { width: 100%; height: 100%; }
.hero-poster { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-fade); pointer-events: none; }
.hero-copy { position: relative; padding: 120px 0 88px; max-width: 640px; color: #f4f7fc; }
.hero-copy .eyebrow { color: var(--accent); }
.hero h1 { margin: 0 0 22px; font-size: clamp(54px, 9vw, 116px); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero-lede { margin: 0 0 32px; max-width: 520px; font-size: 18px; color: rgba(236, 241, 250, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn:not(.btn-primary) { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn:not(.btn-primary):hover { color: var(--accent); border-color: var(--accent); }
.now-flying {
  position: absolute; right: 16px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px;
  background: rgba(5, 9, 18, 0.62); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
}
.now-flying .live { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255,77,77,.2); animation: pulse 1.6s infinite; }
.now-flying strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.now-flying span { opacity: .7; letter-spacing: .06em; }
.now-flying a { margin-left: 6px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,77,77,0); } }
@media (max-width: 720px) {
  .hero { min-height: 88vh; }
  .hero-copy { padding: 96px 0 128px; }
  .now-flying { left: 16px; right: 16px; bottom: 16px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 48px; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; } }
.section-head h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); }
.section-head h2 em { font-style: normal; color: var(--accent); }
:root[data-theme="team"] .section-head h2 em { color: var(--blue); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 520px; }

.stat-band { background: var(--band-bg); color: var(--band-text); border-block: 1px solid var(--line); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-band .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; }
@media (max-width: 899px) { .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); } }
.stat b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

/* cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.m-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.m-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.m-card-media { position: relative; aspect-ratio: 16 / 10; background: #0b1426 center / cover no-repeat; }
.m-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,8,16,.55), rgba(4,8,16,0) 55%); }
.m-card-ref { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 8px; border-radius: var(--radius); background: rgba(4,8,16,.6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.m-card-body { padding: 18px 18px 20px; }
.m-card h3 { margin: 0 0 6px; font-size: 26px; }
.m-card p { margin: 0; color: var(--muted); font-size: 14px; }
.m-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.team-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.team-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; }
:root[data-theme="team"] .team-card { border-top: 6px solid var(--blue); }
.team-card .count { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
:root[data-theme="team"] .team-card .count { color: var(--blue); }
.team-card h3 { margin: 10px 0 8px; font-size: 34px; }
.team-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.formation-svg { width: 100%; height: 120px; margin: 6px 0 14px; color: var(--accent); }
:root[data-theme="team"] .formation-svg { color: var(--blue); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
:root[data-theme="team"] .link-arrow { color: var(--blue); }

.profile-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.profile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 20px; align-items: start; padding: 26px 22px; background: var(--surface); }
@media (min-width: 900px) { .profile { grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; } }
.profile .num { font-family: "Barlow Condensed", sans-serif; font-size: 48px; font-weight: 700; line-height: 1; color: var(--accent); }
:root[data-theme="team"] .profile .num { color: var(--blue); }
.profile h3 { margin: 0 0 4px; font-size: 30px; }
.profile p { margin: 0; color: var(--muted); font-size: 15px; }
.profile .ceiling { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 899px) { .profile > :nth-child(n+3) { grid-column: 2; } }

.gallery-teaser { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .gallery-teaser { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.frame-stack { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px; gap: 10px; }
.frame-stack div { border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface-2) center / cover; display: grid; place-items: center; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.frame-stack div:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.frame-stack div:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.frame-stack div:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.frame-stack div:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.frame-stack div:nth-child(5) { grid-column: span 3; grid-row: span 2; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: 14px; }
:root[data-theme="team"] .site-footer { background: #0b2a66; color: rgba(255,255,255,.75); border-top: 6px solid var(--accent); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
:root[data-theme="team"] .site-footer h4 { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
:root[data-theme="team"] .page-head { background: #0b2a66; color: #fff; border-bottom: 0; }
:root[data-theme="team"] .page-head p { color: rgba(255,255,255,.78); }
.page-head h1 { margin: 0 0 14px; font-size: clamp(48px, 7vw, 88px); }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head p { margin: 0; max-width: 680px; color: var(--muted); font-size: 17px; }

/* ---------- theater ---------- */
.theater-page { background: var(--bg); }
.theater-shell { padding: 20px 0 0; }
.viewer {
  position: relative; overflow: hidden; background: #0b1426;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); width: 100%;
  color: #fff; user-select: none;
}
.viewer:fullscreen { border-radius: 0; max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
@media (max-width: 720px) { .viewer { max-height: 78vh; } }
.viewer .stage { position: absolute; inset: 0; }
.viewer .stage canvas { width: 100%; height: 100%; touch-action: none; }
.vo { position: absolute; z-index: 2; pointer-events: none; }
.vo > * { pointer-events: auto; }
.vo-title { left: 16px; top: 14px; right: 50%; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.vo-title .ref { display: inline-block; padding: 3px 8px; margin-bottom: 6px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.vo-title h2 { margin: 0; font-size: clamp(24px, 3.2vw, 40px); }
.vo-title .sub { margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.vo-cams { right: 12px; top: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; }
.pill {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(5,9,18,.55); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a1302; }
.vo-hud { left: 16px; bottom: 84px; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; padding: 10px 14px; border-radius: var(--radius-lg); background: rgba(5,9,18,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.vo-hud div { display: flex; flex-direction: column; min-width: 58px; }
.vo-hud b { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 600; line-height: 1.05; }
.vo-hud span { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.vo-jets { right: 12px; bottom: 84px; display: flex; gap: 6px; }
.jet-chip { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(5,9,18,.55); color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 17px; font-weight: 700; }
.jet-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a1302; }
.vo-call { left: 50%; top: 104px; transform: translateX(-50%); max-width: calc(100% - 120px); pointer-events: none; text-align: center; opacity: 0; transition: opacity .35s; }
.vo-call.show { opacity: 1; }
.vo-call span { display: inline-block; padding: 10px 18px; border-radius: var(--radius-lg); background: rgba(5,9,18,.6); font-family: "Barlow Condensed", sans-serif; font-size: clamp(20px, 3vw, 32px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vo-call.big span { color: var(--accent); }
.transport { left: 0; right: 0; bottom: 0; padding: 12px 14px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; background: linear-gradient(0deg, rgba(4,7,14,.8), rgba(4,7,14,0)); }
.t-buttons { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(5,9,18,.5); color: #fff; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.play { width: 44px; height: 44px; background: var(--accent); border-color: var(--accent); color: #1a1302; }
.icon-btn.play:hover { color: #1a1302; filter: brightness(1.08); }
.timeline { position: relative; height: 34px; display: flex; align-items: center; }
.timeline input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent); }
.timeline .marks { position: absolute; left: 0; right: 0; top: 2px; height: 6px; pointer-events: none; }
.timeline .marks i { position: absolute; top: 0; width: 2px; height: 6px; background: rgba(255,255,255,.65); border-radius: 1px; }
.t-right { display: flex; align-items: center; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.t-right select { height: 34px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(5,9,18,.6); color: #fff; padding: 0 6px; }
.t-time { min-width: 86px; text-align: right; opacity: .85; }
@media (max-width: 720px) {
  .viewer { aspect-ratio: 3 / 4; }
  .vo-title { right: 64px; top: 10px; left: 12px; }
  .vo-title .sub { display: none; }
  .vo-call { top: 98px; max-width: calc(100% - 90px); }
  .vo-call span { font-size: 18px; padding: 8px 12px; }
  .vo-jets { top: 10px; right: 10px; bottom: auto; flex-direction: column; gap: 4px; }
  .jet-chip { width: 30px; height: 30px; font-size: 15px; }
  .vo-cams { left: 10px; right: 10px; bottom: 64px; top: auto; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .vo-cams::-webkit-scrollbar { display: none; }
  .pill { flex: none; height: 30px; }
  .vo-hud { bottom: 104px; left: 10px; grid-template-columns: repeat(3, auto); gap: 0 12px; padding: 6px 10px; }
  .vo-hud div:nth-child(n+4) { display: none; }
  .vo-hud b { font-size: 18px; }
  .transport { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px 10px; }
  .t-buttons .skip, .t-time, #opts, #boxBtn { display: none; }
  .t-right select { height: 32px; }
}
.theater-grid { display: grid; gap: 24px; padding: 28px 0 80px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .theater-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.catalog { display: flex; flex-direction: column; max-height: 920px; }
.catalog-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.search svg { width: 16px; height: 16px; opacity: .6; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.catalog-meta label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.m-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 200px; }
.m-list button {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 10px; align-items: center;
  padding: 10px 10px; border: 0; border-radius: var(--radius); background: transparent; text-align: left;
}
.m-list button:hover { background: var(--surface-2); }
.m-list button[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.m-list .ord { grid-row: span 2; font-family: "Barlow Condensed", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.m-list .nm { font-weight: 600; font-size: 14px; line-height: 1.3; }
.m-list .sb { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.m-list .empty { padding: 30px 12px; color: var(--muted); text-align: center; }

.detail { padding: clamp(20px, 3vw, 32px); }
.detail-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.detail h2 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 52px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .data-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.data-grid div { padding: 14px 16px; background: var(--surface); }
.data-grid span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.data-grid b { display: block; margin-top: 4px; font-family: "Barlow Condensed", sans-serif; font-size: 28px; font-weight: 600; line-height: 1.05; }
.manual-text { font-size: 16px; }
.manual-text p { margin: 0 0 14px; }
.manual-text .label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
:root[data-theme="team"] .manual-text .label { color: var(--blue); }
.note { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.note.caution { border-left-color: #e8794a; background: rgba(232, 121, 74, .1); }
.diagram { margin: 26px 0 0; }
.diagram button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; cursor: zoom-in; }
.diagram figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.disclaimer { margin-top: 22px; font-size: 12px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 4, 9, 0.92); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #dfe6f2; font-size: 14px; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(5,9,18,.6); color: #fff; font-size: 22px; line-height: 1; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ---------- the show page ---------- */
.show-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.seq-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .seq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.seq-summary h3 { margin: 0 0 8px; font-size: 44px; }
.seq-summary p { color: var(--muted); }
.seq { list-style: none; margin: 0; padding: 0; counter-reset: seq; display: grid; gap: 6px; }
.seq li a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.seq li a:hover { border-color: var(--accent); transform: translateX(3px); }
.seq .i { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); }
:root[data-theme="team"] .seq .i { color: var(--blue); }
.seq .n { font-weight: 600; }
.seq .r { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.box-figure { margin: 0; padding: clamp(16px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.box-figure svg { width: 100%; height: auto; display: block; }
.box-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fact { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fact h3 { margin: 0 0 8px; font-size: 26px; }
.fact p { margin: 0; color: var(--muted); font-size: 15px; }
.fact .big { font-family: "Barlow Condensed", sans-serif; font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }

/* ---------- galleries ---------- */
.gal-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gal-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, border-color .25s; }
.gal-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.gal-card .cover { aspect-ratio: 3 / 2; background: var(--surface-2) center / cover; }
.gal-card .body { padding: 16px 18px 18px; }
.gal-card h3 { margin: 0 0 4px; font-size: 26px; }
.gal-card p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .4s; }
.masonry button:hover img { transform: scale(1.03); }
.empty-state { padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 64px); text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state h2 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 56px); }
.empty-state p { margin: 0 auto 24px; max-width: 560px; color: var(--muted); }
.crumbs { display: flex; gap: 8px; margin-bottom: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* team theme: gold labels on light backgrounds switch to blue for contrast */
:root[data-theme="team"] .eyebrow { color: var(--blue); }
:root[data-theme="team"] .hero .eyebrow,
:root[data-theme="team"] .page-head .eyebrow,
:root[data-theme="team"] .stat-band .eyebrow { color: var(--accent); }

/* sound toggle + volume */
.vol { position: relative; display: flex; }
#snd .snd-lo, #snd .snd-hi { display: none; }
#snd[aria-pressed="true"] .snd-off { display: none; }
#snd[aria-pressed="true"] .snd-lo { display: inline; }
#snd[aria-pressed="true"][data-level="hi"] .snd-hi { display: inline; }
#snd[aria-pressed="true"][data-level="mute"] .snd-lo { display: none; }
#snd[aria-pressed="true"][data-level="mute"] .snd-off { display: inline; }
#snd[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.vol-pop {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 8px;
  border-radius: 999px; background: rgba(5, 9, 18, 0.82); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
.vol-pop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }   /* hover bridge to the button */
.vol:hover .vol-pop, .vol:focus-within .vol-pop, .vol.open .vol-pop { opacity: 1; visibility: visible; }
.vol-pop input[type="range"] {
  writing-mode: vertical-lr; direction: rtl;          /* vertical slider, loud at the top */
  width: 22px; height: 96px; margin: 0; accent-color: var(--accent); cursor: pointer;
}
.vol-pop span { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .8; }

/* quality toggle sits with the camera pills, visually set apart */
.pill-q { border-style: dashed; }
