/* =========================================================================
   Scrapfall landing site - styles.css
   Tokens mirror the in-game UI (js/constants/UIConstants.ts, js/ui/theme/PlanetTheme.ts).
   Motion is compositor-only (transform/opacity/filter) and fully gated by
   prefers-reduced-motion. No framework, no build step.
   ========================================================================= */

/* ---------- Fonts (copied from @fontsource by copy-website-assets.js) ---------- */
@font-face {
    font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('assets/fonts/orbitron-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('assets/fonts/orbitron-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron'; font-style: normal; font-weight: 900; font-display: swap;
    src: url('assets/fonts/orbitron-latin-900-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('assets/fonts/roboto-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto Mono'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('assets/fonts/roboto-mono-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Bangers'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('assets/fonts/bangers-latin-400-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
    --bg-deep: #0f1418;
    --bg-deeper: #0a0e11;
    --panel-bg: #161c24;
    --text-primary: #e6e6e6;
    --text-muted: #9ec7b6;
    --text-dim: #7e8a92;

    --accent-blue: #5aa3ff;
    --accent-green: #45ffb7;
    --accent-warning: #ffd54f;
    --accent-danger: #ff5e7a;

    --glow-blue: rgba(90, 163, 255, 0.35);
    --glow-green: rgba(69, 255, 183, 0.28);
    --steel-glass: rgba(20, 28, 36, 0.55);
    --steel-edge: #347a63;

    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Roboto Mono', ui-monospace, monospace;

    --maxw: 1200px;
    --radius: 14px;
    --gap: clamp(1rem, 2.5vw, 2rem);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 800px at 70% -10%, rgba(90, 163, 255, 0.10), transparent 60%),
        radial-gradient(900px 700px at -10% 30%, rgba(69, 255, 183, 0.07), transparent 55%),
        var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-blue); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

.kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--accent-blue);
    margin: 0 0 0.6em;
}

.skip-link {
    position: fixed; top: -100px; left: 12px; z-index: 1000;
    background: var(--accent-green); color: #04110b; padding: 10px 16px; border-radius: 8px;
    font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-fill: #1a2a22; --btn-stroke: var(--steel-edge);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 48px; padding: 0.7em 1.5em;
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: var(--btn-fill);
    border: 1.5px solid var(--btn-stroke);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
    will-change: transform;
}
.btn--sm { min-height: 38px; padding: 0.45em 1em; font-size: 0.82rem; }
.btn--primary { --btn-fill: linear-gradient(160deg, #1d3d30, #16241d); --btn-stroke: var(--accent-green); color: #eafff6; }
.btn--secondary { --btn-fill: #131a22; --btn-stroke: var(--accent-blue); color: #dcebff; }
.btn:hover, .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px -10px var(--glow-green), 0 0 0 1px var(--btn-stroke) inset;
    border-color: var(--accent-green);
}
.btn--secondary:hover, .btn--secondary:focus-visible { box-shadow: 0 8px 26px -10px var(--glow-blue); }
.btn:active { transform: translateY(0); }

/* ---------- Panels (glass on steel) ---------- */
.panel { position: relative; background: var(--panel-bg); border-radius: var(--radius); }
.panel--glass {
    background: var(--steel-glass);
    border: 1px solid rgba(52, 122, 99, 0.5);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.panel--chrome {
    border: 1px solid rgba(52, 122, 99, 0.45);
    box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .panel--glass {
        -webkit-backdrop-filter: blur(10px) saturate(125%);
        backdrop-filter: blur(10px) saturate(125%);
    }
}

/* ---------- Layout ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section.what { padding-bottom: clamp(2rem, 4vw, 3rem); }
.section.features { padding-top: clamp(2rem, 4vw, 3rem); }
.section__inner { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section__head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__lede { color: var(--text-muted); font-size: 1rem; line-height: 1.55; margin: 0.75rem 0 0; max-width: 52ch; }
.section__lead { color: var(--text-muted); margin: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem clamp(1rem, 3vw, 2rem);
    background: linear-gradient(180deg, rgba(10, 14, 17, 0.92), rgba(10, 14, 17, 0.55));
    border-bottom: 1px solid rgba(52, 122, 99, 0.25);
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); background: rgba(10, 14, 17, 0.96); }
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
    .site-header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }
.site-header__brand img { width: 56px; height: 56px; object-fit: contain; }
.site-header__nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-header__nav a { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.03em; transition: color 0.2s var(--ease); }
.site-header__nav a:hover { color: var(--accent-green); }
.site-header .btn { margin-left: 0.4rem; }

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: min(94vh, 960px);
    display: grid; place-items: center;
    padding: clamp(5rem, 12vh, 8rem) 1.2rem clamp(3rem, 8vh, 5rem);
    overflow: hidden;
    isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__layer {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.hero__layer--sky { animation: kenburns 38s ease-in-out infinite alternate; }
/* Earth: LUN-01 layoutScalePct ~10%, offset upper-right (catalog scenePresentation "earth" layer) */
.hero__layer--earth {
    background: none;
    pointer-events: none;
    overflow: visible;
}
.hero__earth-img {
    position: absolute;
    width: clamp(56px, 10.1vw, 112px);
    height: auto;
    left: calc(72% + 40px);
    top: 38%;
    right: auto;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 20px rgba(90, 163, 255, 0.22));
}
/* Moon regolith surface — sits below Earth, above sky */
.hero__layer--moon {
    background-size: cover;
    background-position: center 62%;
}
.hero__layer--station { filter: saturate(1.05); background-position: center bottom; }
.hero__vignette {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(120% 90% at 50% 18%, transparent 35%, rgba(8, 11, 14, 0.55) 78%, rgba(8, 11, 14, 0.92) 100%),
        linear-gradient(180deg, rgba(10, 14, 17, 0.35), rgba(10, 14, 17, 0.78));
}
/* Procedural sparks drifting over the floor (no art asset) */
.hero__sparks {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
    background-image:
        radial-gradient(2px 2px at 20% 70%, rgba(255, 213, 79, 0.9), transparent 60%),
        radial-gradient(1.5px 1.5px at 60% 80%, rgba(90, 163, 255, 0.8), transparent 60%),
        radial-gradient(2px 2px at 80% 65%, rgba(255, 213, 79, 0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 40% 88%, rgba(69, 255, 183, 0.7), transparent 60%);
    animation: sparks 7s linear infinite;
}

.hero__content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: clamp(1.8rem, 4vw, 3rem);
}
.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.28em;
    font-size: 0.8rem; color: var(--accent-warning);
    padding: 0.4em 1em; margin: 0 0 1.2rem;
    border: 1px solid rgba(255, 213, 79, 0.4); border-radius: 999px;
    background: rgba(255, 213, 79, 0.06);
}
.hero__logo {
    width: clamp(180px, 32vw, 336px);
    max-width: min(336px, 88vw);
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}
.hero__headline { font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.6rem); margin-bottom: 0.4em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.hero__subhead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-primary); opacity: 0.92; max-width: 620px; margin: 0 auto 1.8rem; }
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero__note { color: var(--text-muted); font-size: 0.86rem; margin: 1rem 0 0; }

.hero__chips { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 0; padding: 0; list-style: none; }
.chip {
    display: flex; flex-direction: column; align-items: center;
    min-width: 110px; padding: 0.7rem 1.1rem;
    background: rgba(15, 20, 24, 0.6); border: 1px solid rgba(52, 122, 99, 0.45); border-radius: 12px;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chip:hover { transform: translateY(-3px); border-color: var(--accent-blue); box-shadow: 0 10px 24px -14px var(--glow-blue); }
.chip__num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--accent-green); line-height: 1; }
.chip__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted); margin-top: 0.35rem; }
.hero__chips-secondary {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}
.hero__chips-secondary-num { color: var(--text-muted); font-family: var(--font-display); font-weight: 700; }
.hero__chips-sep { margin: 0 0.45em; opacity: 0.55; }

.hero__scroll { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 38px; border: 2px solid rgba(158, 199, 182, 0.5); border-radius: 12px; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; margin-left: -2px; background: var(--accent-green); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite; }

/* ===================== WHAT ===================== */
.what__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.what__copy p { color: var(--text-muted); font-size: 1.02rem; }
.what__media { padding: 0; overflow: hidden; }
.what__media .scene-stack--embed { width: 100%; min-height: 280px; }

/* ===================== FEATURES ===================== */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature-card {
    padding: 1.6rem; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(22, 28, 36, 0.9), rgba(15, 20, 24, 0.9));
    border: 1px solid rgba(52, 122, 99, 0.35);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.feature-card:hover, .feature-card:focus-within { transform: translateY(-6px); border-color: var(--accent-green); box-shadow: 0 18px 40px -22px var(--glow-green); }
.feature-card__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1rem; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.feature-card__icons--dual { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.feature-card__icon--skor { width: 56px; height: 56px; object-fit: contain; }
.feature-card__icon--muni { width: 52px; height: 52px; object-fit: contain; }
.feature-card__icons--planets { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-bottom: 1rem; }
.feature-card__icon--planet { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.feature-card__icons--operators { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.feature-card__icon--operator { width: 44px; height: 44px; object-fit: cover; object-position: top center; border-radius: 8px; border: 1px solid rgba(52, 122, 99, 0.45); }
.feature-card__icons--doodads { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1rem; }
.feature-card__icon--doodad { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.feature-card h3 { color: var(--text-primary); margin-bottom: 0.4em; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* ===================== SHOWCASE ===================== */
.showcase__subhead { margin: clamp(2rem, 5vw, 3.4rem) 0 1.4rem; color: var(--accent-blue); }
.showcase__subhead:first-of-type { margin-top: 0; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); perspective: 1000px; }
.card-grid--operators { grid-template-columns: repeat(5, 1fr); }
.card-grid--doodads { grid-template-columns: repeat(4, 1fr); }
.card-grid--factories { grid-template-columns: repeat(3, 1fr); }

.tilt {
    --rx: 0deg; --ry: 0deg; --glare: 0;
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, rgba(22, 28, 36, 0.95), rgba(12, 16, 20, 0.95));
    border: 1px solid rgba(52, 122, 99, 0.4);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    will-change: transform;
}
.tilt:hover, .tilt:focus-within { border-color: var(--accent-blue); box-shadow: 0 22px 50px -26px var(--glow-blue); }
.tilt::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.18), transparent 45%);
    opacity: var(--glare); transition: opacity 0.2s var(--ease);
}
.card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0f12; }
.card--operator .card__img { object-fit: cover; }
.card__body { padding: 0.9rem 1rem 1.1rem; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--text-primary); margin: 0; }
.card__title { font-size: 0.76rem; color: var(--accent-blue); margin: 0.15rem 0 0.5rem; letter-spacing: 0.02em; }
.card__blurb { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.card--factory .card__img { aspect-ratio: 16 / 10; }
.card__status { display: inline-block; margin-top: 0.5rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 0.25em 0.7em; border-radius: 999px; }
.card__status--demo { color: #04110b; background: var(--accent-green); }
.card__status--locked { color: var(--accent-warning); border: 1px solid rgba(255, 213, 79, 0.5); }

.card--doodad { text-align: left; }
.card--doodad .card__img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    max-width: 144px;
    max-height: 144px;
    margin: 0.6rem auto 0;
    padding: 0.35rem;
    background: radial-gradient(circle at 50% 35%, rgba(90, 163, 255, 0.12), transparent 70%);
}
.card--doodad .card__name { font-size: 0.9rem; }
.card__effect { font-size: 0.78rem; color: var(--text-primary); line-height: 1.45; margin: 0.35rem 0 0.5rem; opacity: 0.92; }
.card__flavor { font-size: 0.74rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.card__flavor em { font-style: italic; }
.rarity { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; }
.rarity--common { color: var(--text-dim); }
.rarity--rare { color: var(--accent-blue); }

/* Marquee belt */
.marquee { overflow: hidden; margin-bottom: 1.6rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { width: 144px; height: 144px; flex: 0 0 auto; object-fit: contain; opacity: 0.85; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }

/* ===================== CTA BAND ===================== */
.cta-band { position: relative; overflow: hidden; min-height: 420px; display: grid; place-items: center; }
.cta-band__scene { position: absolute; inset: 0; z-index: 0; opacity: 0.42; filter: saturate(0.88) brightness(0.72); }
.cta-band__scene .scene-stack__stage { min-height: 100%; }
.cta-band__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 17, 0.82), rgba(10, 14, 17, 0.94)); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 2; }
.cta-band__inner { text-align: center; max-width: 720px; padding: clamp(2rem, 5vw, 3.4rem); }
.cta-band__inner p { color: var(--text-muted); }
.cta-band__buttons { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 0.8rem; }
.cta-band__note { font-size: 0.86rem; margin-top: 0.8rem; }

/* ===================== Scene stacks (media, what, CTA) ===================== */
.scene-stack { position: relative; width: 100%; overflow: hidden; }
.scene-stack__stage { position: relative; width: 100%; height: 100%; min-height: inherit; background: #0b0f12; }
.scene-stack__layer {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.scene-stack--embed { aspect-ratio: 16 / 9; min-height: 260px; border-radius: inherit; }
.scene-stack--authored { background: #0b0f12; }
.scene-stack__stage--authored { overflow: hidden; background: #0b0f12; }
.scene-stack__img-layer {
    position: absolute;
    display: block;
    object-fit: fill;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.scene-stack__layer--contain-bottom {
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* ===================== MEDIA (layered event scenes) ===================== */
.section.media { overflow: visible; }
.section.media .section__inner {
    overflow: visible;
    width: min(100% - 1.6rem, 1440px);
}
.media-rail {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem);
}
.media-rail__item { min-width: 0; }
.media-scene {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.media-scene__stage {
    position: relative;
    width: 100%;
    min-height: 0;
}
.media-scene__stage > .scene-stack__stage {
    position: absolute;
    inset: 0;
    min-height: 100%;
}
.media-scene__caption {
    position: relative; z-index: 2;
    padding: 1rem 1.15rem 1.15rem;
    background: rgba(8, 11, 14, 0.96);
    border-top: 1px solid rgba(52, 122, 99, 0.35);
}
.media-scene__badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-warning);
    padding: 0.28em 0.65em;
    margin-bottom: 0.45rem;
    border: 1px solid rgba(255, 213, 79, 0.45);
    border-radius: 999px;
    background: rgba(255, 213, 79, 0.08);
}
.media-scene__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}
.media-scene__service {
    font-size: 0.8rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.media-scene__blurb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}
.media-scene:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 3px; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid rgba(52, 122, 99, 0.3); padding: 3rem 0; background: var(--bg-deeper); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.site-footer__tagline { font-family: var(--font-display); color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.site-footer__links { display: flex; gap: 1.4rem; margin-left: auto; }
.site-footer__links a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--accent-green); }
.site-footer__copy { width: 100%; color: var(--text-dim); font-size: 0.78rem; margin: 0; }

/* ===================== Factory Radio ===================== */
.radio { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; }
.radio__btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.9rem; border-radius: 999px;
    background: rgba(15, 20, 24, 0.92); border: 1px solid rgba(52, 122, 99, 0.5);
    color: var(--text-muted); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.06em;
    cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.radio__btn:hover { border-color: var(--accent-green); color: var(--text-primary); transform: translateY(-2px); }
.radio__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.radio__bars i { width: 3px; height: 5px; background: var(--accent-green); border-radius: 1px; }
.radio.is-playing .radio__bars i { animation: eq 0.9s ease-in-out infinite; }
.radio.is-playing .radio__bars i:nth-child(2) { animation-delay: 0.15s; }
.radio.is-playing .radio__bars i:nth-child(3) { animation-delay: 0.3s; }
.radio.is-playing .radio__bars i:nth-child(4) { animation-delay: 0.45s; }

/* ===================== Back to top ===================== */
.to-top {
    position: fixed; left: 1rem; bottom: 1rem; z-index: 70;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(15, 20, 24, 0.92); border: 1px solid rgba(52, 122, 99, 0.5);
    color: var(--accent-green); font-size: 1.2rem; cursor: pointer;
    opacity: 0; transform: translateY(10px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { border-color: var(--accent-green); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== Keyframes ===================== */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes sparks { 0% { transform: translateY(0); opacity: 0.5; } 50% { opacity: 0.85; } 100% { transform: translateY(-22px); opacity: 0.4; } }
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0.2; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 16px; } }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
    .site-header__nav { display: none; }
    .what__grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid--operators { grid-template-columns: repeat(3, 1fr); }
    .card-grid--doodads { grid-template-columns: repeat(2, 1fr); }
    .feature-card__icons--doodads { gap: 0.3rem; }
    .media-rail { grid-template-columns: 1fr; overflow-x: visible; }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .card-grid--operators, .card-grid--factories { grid-template-columns: 1fr; }
    .card-grid--doodads { grid-template-columns: 1fr; }
    .hero { min-height: 88vh; }
    .chip { min-width: 92px; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__layer--sky, .hero__sparks, .hero__scroll span, .marquee__track { animation: none; }
    .scene-stack__layer { transform: none !important; }
    .hero__sparks { display: none; }
    .tilt { transform: none !important; }
}
