/* The Royal Me — one layout, two looks.
   Layout: four sections (song + next show, launch timeline, shows + map, videos + band).
   Looks: "space" (navy, orange, condensed sans) and "terminal" (black, phosphor green, amber, pixel type). */

/* ---------- Space look (default tokens) ---------- */
:root {
  color-scheme: dark;
  --bg: #07091A;
  --panel: #0E1330;
  --panel-2: #141A3D;
  --line: #262E5A;
  --line-strong: #3A4478;
  --ink: #E4E7F2;
  --white: #FFFFFF;
  --muted: #A3ACD3;
  --dim: #7C86B5;
  --accent: #F2913D;      /* buttons, links, the newest launch */
  --accent-ink: #07091A;  /* text on accent */
  --hot: #F2913D;         /* dates and countdowns */
  --craft: #E4E7F2;       /* spacecraft hulls */
  --craft-2: #B8C2EA;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --display-weight: 800;
  --display-case: none;
  --body: 'Barlow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 0px;
}

/* ---------- Terminal look ---------- */
[data-theme="terminal"] {
  --bg: #0B0F0C;
  --panel: #111813;
  --panel-2: #16201A;
  --line: #2A3A2E;
  --line-strong: #3C5442;
  --ink: #D7E8D9;
  --white: #F2FFF4;
  --muted: #A9BFAD;
  --dim: #7F9884;
  --accent: #8CF5A0;
  --accent-ink: #0B0F0C;
  --hot: #FFB547;
  --craft: #8CF5A0;
  --craft-2: #8CF5A0;
  --display: 'VT323', ui-monospace, monospace;
  --display-weight: 400;
  --display-case: uppercase;
  --body: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[data-theme="space"] body, :root:not([data-theme]) body {
  background-image:
    radial-gradient(1px 1px at 23px 41px, #FFFFFF 50%, transparent 51%),
    radial-gradient(1px 1px at 173px 97px, #B8C2EA 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 311px 23px, #FFFFFF 50%, transparent 51%),
    radial-gradient(1px 1px at 389px 211px, #FFFFFF 50%, transparent 51%),
    radial-gradient(1px 1px at 97px 263px, #B8C2EA 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 251px 317px, #FFFFFF 50%, transparent 51%);
  background-size: 463px 347px;
}
[data-theme="terminal"] body {
  font-size: 15px;
  background-image: repeating-linear-gradient(0deg, rgba(140, 245, 160, 0.025) 0 1px, transparent 1px 3px);
}
a { color: var(--accent); }
a:hover { color: var(--white); }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 20; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: 28px; padding-right: 28px; } }

/* ---------- Status bar (terminal only) ---------- */
.status-bar { display: none; }
[data-theme="terminal"] .status-bar { display: block; background: var(--panel); border-bottom: 1px solid var(--line); }
.status-inner { display: flex; flex-wrap: wrap; gap: 2px 26px; padding-block: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.status-inner b { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 28px; line-height: 0.9; color: var(--white); }
[data-theme="terminal"] .brand-name { font-size: 40px; color: var(--accent); }
[data-theme="terminal"] .brand-patch { display: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; font-family: var(--display); font-weight: 700; font-size: 19px; }
[data-theme="terminal"] .site-nav { counter-reset: nav; }
[data-theme="terminal"] .site-nav a { font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="terminal"] .site-nav a::before { counter-increment: nav; content: "[0" counter(nav) "] "; color: var(--dim); }
.site-nav a:hover { color: var(--accent); }
.signup-slot form { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.signup-slot input[type=email] { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--accent); background: var(--bg); color: var(--ink); width: 200px; min-height: 46px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn, .signup-slot .signup-link, .signup-slot button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
  text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
.btn.primary, .signup-slot .signup-link, .signup-slot button { background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover, .signup-slot .signup-link:hover, .signup-slot button:hover { background: var(--white); border-color: var(--white); color: var(--accent-ink); }
[data-theme="terminal"] .btn, [data-theme="terminal"] .signup-slot .signup-link, [data-theme="terminal"] .signup-slot button {
  font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
}
[data-theme="terminal"] .btn.primary::before { content: "▶\00a0"; }

/* ---------- 1. Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-block: 40px 56px; }
.hero-art-wrap { flex: 1 1 340px; position: relative; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero-orbit { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.hero-art { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; border-radius: 50%; overflow: hidden; background: var(--panel-2); border: 2px solid var(--ink); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16%; font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(22px, 4vw, 38px); line-height: 0.95; color: var(--craft-2); }
[data-theme="terminal"] .hero-orbit { display: none; }
[data-theme="terminal"] .hero-art { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 1px solid var(--line-strong); }
[data-theme="terminal"] .hero-art-fallback { font-size: clamp(40px, 6vw, 64px); color: var(--accent); }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--hot); }
[data-theme="terminal"] .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; }
.hero-title { margin: 0; font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(64px, 9vw, 124px); line-height: 0.82; color: var(--white); overflow-wrap: anywhere; text-wrap: balance; }
.hero-kind { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.next { margin-top: 10px; }
.next-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--panel); }
.next-count { min-width: 84px; text-align: center; }
.next-num { font-family: var(--display); font-weight: var(--display-weight); font-size: 44px; line-height: 0.9; color: var(--hot); font-variant-numeric: tabular-nums; }
.next-unit { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.next-what { flex: 1 1 180px; min-width: 0; }
.next-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.next-title { font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 24px; line-height: 1.05; color: var(--white); }
[data-theme="terminal"] .next-title { font-weight: 400; font-size: 28px; }
.next-sub { font-size: 14px; color: var(--muted); }
.next-card .btn { min-height: 44px; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: 52px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 22px; }
.section-title { margin: 0; font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 56px; line-height: 0.9; color: var(--white); }
[data-theme="terminal"] .section-title { font-size: 64px; color: var(--accent); }
#band .section-title { margin-bottom: 22px; }
.sub-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 24px; color: var(--white); }
[data-theme="terminal"] .sub-title { font-weight: 400; font-size: 30px; }
.small-link { font-family: var(--mono); font-size: 13px; padding: 12px 0; }

/* ---------- 2. Launches: three bays, one hangar ---------- */
.tally { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.bay {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px;
  min-height: 112px; padding: 14px 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
}
.bay:hover { border-color: var(--accent); }
.bay[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.bay[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: var(--bg); border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.bay svg { grid-row: span 2; width: 64px; height: 75px; overflow: visible; }
.bay-name { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 30px; line-height: 0.9; color: var(--white); }
[data-theme="terminal"] .bay-name { font-size: 38px; color: var(--accent); }
.bay-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bay[aria-selected="true"] .bay-count { color: var(--hot); }

.hangar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 22px 18px; padding-top: 10px; }
.hangar.singles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.rel { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.rel-stage { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.rel-stage .rel-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-top: 8%; }
.rel-stage svg { width: 64%; height: auto; overflow: visible; transition: transform .3s; }
a.rel-stage:hover svg { transform: scale(1.06); }
/* the real cover, small, top-right */
.rel-cover { position: absolute; right: 8px; top: 8px; width: 36%; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-strong), 0 4px 12px rgba(0, 0, 0, 0.4); }
/* video square, top-left */
.rel-video { position: absolute; left: 8px; top: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--accent); }
.rel-video svg { width: 18px; height: 18px; }
.rel-video:hover { background: var(--accent); }
.rel-video:hover .c-accent { fill: var(--accent-ink); }
.rel-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.rel-none { color: var(--dim); padding: 6px 0; }
.rel-title { font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 20px; line-height: 1.02; color: var(--white); overflow-wrap: break-word; }
[data-theme="terminal"] .rel-title { font-weight: 400; font-size: 24px; }
.rel-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rel-links { display: flex; flex-wrap: wrap; gap: 0 12px; font-family: var(--mono); font-size: 12px; }
.rel-links a { padding: 6px 0; }
.rel.planned .rel-art { border-style: dashed; border-color: var(--dim); background: transparent; display: flex; align-items: center; justify-content: center; }
.rel.planned svg { width: 52%; height: auto; overflow: visible; }
.redact { display: inline-block; height: 16px; background: var(--ink); vertical-align: middle; }
.hangar-more { grid-column: 1 / -1; }
.hangar-more button { min-height: 44px; padding: 0 16px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.hangar-more button:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- 3. Shows ---------- */
.booking { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.show { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.show:first-child { border-top: 1px solid var(--line-strong); }
.show-date { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; line-height: 0.95; color: var(--hot); text-transform: uppercase; }
.show-date small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.show-venue { font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 22px; line-height: 1.05; color: var(--white); }
[data-theme="terminal"] .show-venue { font-weight: 400; font-size: 26px; }
.show-city { font-size: 14px; color: var(--muted); }
.show .btn { min-height: 44px; padding: 0 14px; font-size: 17px; }
.none { padding: 16px 0; border-top: 1px solid var(--line-strong); }
.none b { display: block; font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 26px; line-height: 1; color: var(--white); }
.none span { font-size: 14px; color: var(--muted); }
.none b { margin-bottom: 8px; }
.none a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.show-poster { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line-strong); }
.show.has-poster { grid-template-columns: 56px 92px minmax(0, 1fr) auto; }
.show-date { white-space: nowrap; }

/* Past shows as a poster wall */
.past-title { margin-top: 40px; }
.sub-note { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 16px; }
.poster { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.poster[hidden] { display: none; }
.poster-art { aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid var(--line-strong); background: var(--panel); overflow: hidden; }
.poster-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.poster:hover .poster-art img { transform: scale(1.03); }
.poster-art a { display: block; width: 100%; height: 100%; }
/* No poster yet: a typeset card in the same look */
.poster-blank { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background:
  repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 45%, transparent) 10px 11px), var(--panel); }
.poster-blank .pb-band { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.poster-blank .pb-date { font-family: var(--display); font-weight: var(--display-weight); text-transform: uppercase; font-size: 40px; line-height: 0.85; color: var(--hot); }
.poster-blank .pb-venue { font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 22px; line-height: 0.95; color: var(--white); overflow-wrap: anywhere; }
[data-theme="terminal"] .poster-blank .pb-venue { font-weight: 400; font-size: 26px; }
.poster-blank .pb-city { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.poster figcaption { font-size: 13px; line-height: 1.35; color: var(--muted); }
.poster figcaption b { display: block; color: var(--white); font-weight: 600; }
.past-more button { margin-top: 16px; min-height: 44px; padding: 0 16px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.past-more button:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- 4. Watch + band ---------- */
.strip { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--line-strong) transparent; }
.strip > * { scroll-snap-align: start; min-width: 0; }
.strip:focus-visible { outline-offset: 4px; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.poster-with { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.video { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .2s; }
.video:hover .video-thumb img { opacity: 1; }
.video-thumb svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-title { font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 21px; line-height: 1.05; color: var(--white); }
[data-theme="terminal"] .video-title { font-weight: 400; font-size: 25px; }
.video-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.watch-empty { color: var(--muted); }
.photos { grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); }
.photo { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel-2); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="terminal"] .photo { border: 1px solid var(--line-strong); padding: 5px; background: var(--panel); }
.crew { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-size: 15px; }
.crew b { color: var(--white); font-family: var(--display); font-weight: 700; text-transform: var(--display-case); font-size: 20px; margin-right: 6px; }
[data-theme="terminal"] .crew b { font-weight: 400; font-size: 24px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 72px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-links a { padding: 8px 0; }

/* ---------- Look switcher (preview only; remove data-look-switch from <html> to hide) ---------- */
.look-switch { display: none; }
[data-look-switch] .look-switch {
  display: flex; align-items: center; gap: 4px; position: fixed; z-index: 30;
  right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 4px 4px 4px 12px; background: var(--panel); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12px; color: var(--muted); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.look-switch button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--mono); font-size: 12px; }
.look-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Spacecraft colours ---------- */
.c-hull { fill: var(--craft); }
.c-ice { fill: var(--craft-2); }
.c-accent { fill: var(--accent); }
.c-dark { fill: var(--bg); }
.c-panel { fill: var(--panel); }
.c-glow { fill: var(--accent); opacity: 0.16; }
.c-leg { fill: none; stroke: var(--craft); }
.c-ring { stroke: var(--accent); }
.c-ghost { fill: none; stroke: var(--dim); }
.c-orbit { fill: none; stroke: var(--line-strong); }
.c-line { stroke: var(--line); }
.c-accent-stroke { stroke: var(--accent); }
.c-ink-stroke { stroke: var(--ink); }
.c-label { fill: var(--ink); }
.c-route { fill: none; stroke: var(--hot); }
.c-grid { stroke: var(--bg); stroke-width: 1.2; fill: none; opacity: 0.55; }
.c-stripe { stroke: var(--accent); fill: none; }
.c-trail { stroke: var(--dim); fill: none; stroke-dasharray: 10 6; animation: trail 0.9s linear infinite; }
.ghost * { fill: none !important; stroke: var(--dim) !important; stroke-width: 2 !important; stroke-dasharray: 4 4; animation: none !important; }
[data-theme="terminal"] .c-hull, [data-theme="terminal"] .c-ice { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
[data-theme="terminal"] .c-accent { fill: var(--hot); }
[data-theme="terminal"] .c-ring { stroke: var(--hot); }
[data-theme="terminal"] .c-grid { stroke: var(--accent); opacity: 0.5; }
[data-theme="terminal"] .c-stripe { stroke: var(--hot); }

/* ---------- Motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes flame { 0%, 100% { transform: scaleY(1); opacity: .95; } 50% { transform: scaleY(1.4); opacity: .6; } }
@keyframes blink { 0%, 75%, 100% { opacity: 1; } 85% { opacity: .1; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fly { 0%, 100% { transform: translate(-3px, 3px); } 50% { transform: translate(4px, -4px); } }
@keyframes flamex { 0%, 100% { transform: scaleX(1); opacity: .95; } 50% { transform: scaleX(1.5); opacity: .6; } }
@keyframes trail { to { stroke-dashoffset: 32; } }
.bob { animation: bob 4.5s ease-in-out infinite; }
.tilt { animation: tilt 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.flame { animation: flame .32s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
.blink { animation: blink 2.2s infinite; }
.pulse { animation: pulse 3s ease-in-out infinite; }
.orbitspin { animation: spin 36s linear infinite; transform-origin: 250px 250px; }
.fly { animation: fly 5s ease-in-out infinite; }
.flame-x { animation: flamex .3s ease-in-out infinite; transform-box: fill-box; transform-origin: right center; }
@media (prefers-reduced-motion: reduce) {
  .bob, .tilt, .flame, .blink, .pulse, .orbitspin, .fly, .flame-x, .c-trail { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .section { padding-block: 40px; }
  .section-title { font-size: 46px; }
  [data-theme="terminal"] .section-title { font-size: 52px; }
  .hero { padding-block: 24px 40px; }
  .hero-art-wrap { max-width: 300px; }
  .videos { grid-template-columns: 1fr; }
  .photos { grid-auto-columns: 80%; }
  .site-nav { order: 3; width: 100%; }
  .show, .show.has-poster { grid-template-columns: 84px minmax(0, 1fr); }
  .show-poster { display: none; }
  .show .btn { grid-column: 2; justify-self: start; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bays { gap: 8px; }
  .bay { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 0; padding: 12px 6px; }
  .bay svg { grid-row: auto; width: 44px; height: 52px; }
  .bay-name { font-size: 22px; }
  [data-theme="terminal"] .bay-name { font-size: 26px; }
  .hangar, .hangar.singles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
