:root {
    /* Modern Brand Colors */
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #3b82f6; /* Clean Blue */
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-dim: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.1);
}

/* Retro Brand Colors (Only for Games) */
.retro-theme {
    --neon-green: #39ff14;
    --toxic-green: #00ff88;
    --danger-red: #ff2244;
    --amber: #ffaa00;
    --dark-bg: #0a0e0a;
    --darker: #050805;
    --card-bg: #0f1a0f;
    --card-border: #1a3a1a;
    --text-dim: #7a9a7a;
    --text-bright: #c8f0c8;
    --purple-accent: #b44dff;
    background-color: var(--dark-bg);
    color: var(--text-bright);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Modern Layout --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* --- Tiled Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* --- Retro Theme (Games Page Only) --- */
.retro-theme .nav-logo {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    font-family: 'Press Start 2P', cursive;
}

.retro-theme .nav-links a {
    color: var(--text-dim);
}

.retro-theme .nav-links a:hover {
    color: var(--neon-green);
}

.retro-theme .section-title {
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-shadow: 0 0 10px var(--neon-green);
}

.retro-theme .section-desc {
    color: var(--text-dim);
}

.retro-theme .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-bright);
}

.retro-theme .card h3 {
    color: var(--neon-green);
}

.retro-theme .card p {
    color: var(--text-dim);
}

.retro-theme .btn {
    background: var(--neon-green);
    color: var(--darker);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.retro-theme .btn:hover {
    background: var(--toxic-green);
}

.retro-theme section {
    background-color: var(--dark-bg);
    padding: 100px 2rem;
}

/* --- Footers --- */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    .nav-links {
        display: none;
    }
    section {
        padding: 40px 1.5rem;
    }
}

/* --- About: Timeline, Skills & Contact --- */
.contact-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 16px;
    letter-spacing: 0.02em;
}

.contact-line a {
    color: var(--accent);
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

.timeline {
    position: relative;
    padding-left: 26px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--accent);
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-card, #fff);
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.45);
}

.timeline-role {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.timeline-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 3px 0 6px;
}

.timeline-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.skill-list {
    list-style: none;
    padding-top: 8px;
}

.skill-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-name {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

/* ============================================================
   HOME PAGE — dark "RomanApps" theme  (.home-page)
   Palette derived from romanappsLOGO.png: a deep teal
   legionnaire helmet + white "> romanapps" wordmark,
   reworked into a near-black teal ground with a bright teal
   accent and layered glow. Scoped to .home-page only — the
   other pages keep the light modern look.
   ============================================================ */
.home-page {
     --bg-main: #060f14;
     --bg-card: #0c1a24;
     --primary: #e7f0f2;       /* headings / logo text -> now light */
     --secondary: #04120f;     /* text on teal buttons             */
     --accent: #2dd4bf;        /* teal, lifted from the helmet      */
     --text-main: #e7f0f2;
     --text-dim: #8ba0aa;
     --border: rgba(150, 175, 185, 0.14);

    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Layered ambience: teal glows + faint tech grid, pinned behind content */
.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 50% -8%, rgba(45, 212, 191, 0.13), transparent 70%),
        radial-gradient(45% 45% at 90% 10%, rgba(24, 110, 150, 0.10), transparent 70%),
        linear-gradient(rgba(139, 160, 170, 0.04) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(90deg, rgba(139, 160, 170, 0.04) 1px, transparent 1px) 0 0 / 46px 46px,
        var(--bg-main);
}

/* Navigation — dark glass */
.home-page nav {
    background: rgba(6, 15, 20, 0.6);
    border-bottom: 1px solid var(--border);
}
.home-page nav.scrolled {
    background: rgba(6, 15, 20, 0.85);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.home-page .nav-logo { color: var(--primary); }
.home-page .nav-logo .accent { color: var(--accent); }
.home-page .nav-links a { color: var(--text-dim); }
.home-page .nav-links a:hover { color: var(--accent); }

/* Hero */
.home-page .hero {
    padding-top: 120px;
    animation: ra-in 0.7s ease both;
}

/* Logo emblem — the star of the home screen.
   The PNG has no alpha, so it is presented as a rounded, glowing badge. */
.home-page .logo-emblem {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 30px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    box-shadow:
         0 18px 50px -12px rgba(0, 0, 0, 0.75),
         0 0 60px -6px rgba(45, 212, 191, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: ra-float 6s ease-in-out infinite;
}

/* Terminal-style tag, echoing the "> romanapps" mark */
.home-page .section-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.home-page .section-tag .prompt {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.6);
    margin-right: 3px;
}

.home-page .section-title {
    background: linear-gradient(180deg, #ffffff 0%, #bfe0da 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-page .section-desc { color: var(--text-dim); }
.home-page .section-desc strong { color: var(--accent); font-weight: 600; }

.home-page .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Tiled glass cards */
.home-page .card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 32, 41, 0.7), rgba(9, 18, 25, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.home-page .card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-page .card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow:
         0 22px 45px -14px rgba(0, 0, 0, 0.6),
         0 0 42px -10px rgba(45, 212, 191, 0.28);
}
.home-page .card:hover::before { opacity: 1; }
.home-page .card h3 { color: var(--primary); }
.home-page .card p { color: var(--text-dim); }

/* Buttons — teal glass */
.home-page .btn {
    background: rgba(45, 212, 191, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.home-page .btn:hover {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
    box-shadow: 0 0 26px -4px rgba(45, 212, 191, 0.55);
}

/* Footer */
.home-page footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: rgba(6, 15, 20, 0.6);
}

/* Motion */
@keyframes ra-in {
    from { opacity: 0; transform: translateY(16px); }
    to    { opacity: 1; transform: translateY(0); }
}
@keyframes ra-float {
     0%, 100% { transform: translateY(0); }
     50%       { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero,
    .home-page .logo-emblem { animation: none; }
}

@media (max-width: 768px) {
    .home-page .hero { padding-top: 100px; }
    .home-page .logo-emblem { width: 150px; height: 150px; }
}

/* ============================================================
   TURNING LEFT — bright, fun game promo theme (.turning-left-page)
   Bold flat colors, thick black ink outlines, a red/white/blue
   racing stripe, checkered-flag motifs, and navy "in-game UI"
   panels with gold + red accents — all over a bright cartoon sky.
   Scoped to .turning-left-page so the other pages keep their look.
   ============================================================ */
.turning-left-page {
    --tl-sky-1: #7cc4ef;   /* bright cartoon sky            */
    --tl-sky-2: #bfe4f6;
    --tl-sky-3: #ffe7c4;   /* warm horizon                  */
    --tl-ink:  #10141c;    /* near-black for outlines + text */
    --tl-red:  #e5342a;    /* banner + stripe red           */
    --tl-blue: #2f6fd6;    /* stripe blue                   */
    --tl-gold: #f6c02b;    /* highlight / gold accent        */
    --tl-navy: #17233d;    /* in-game UI panel              */
    --tl-panel:#1d2c4d;    /* panel fill                    */
    --tl-cream:#fff9f0;    /* light card / panel text        */
    --tl-white:#ffffff;

    --primary: var(--tl-ink);
    --secondary: var(--tl-cream);
    --accent: var(--tl-red);
    --bg-main: var(--tl-sky-2);
    --text-main: var(--tl-ink);
    --text-dim: #4a5568;
    --border: var(--tl-ink);

    color: var(--tl-ink);
    background:
        linear-gradient(180deg,
            var(--tl-sky-1) 0%,
            var(--tl-sky-2) 42%,
            var(--tl-sky-3) 100%) fixed;
}

/* A faint checkered wash so the bright sky reads as "racing" without noise */
.turning-left-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-conic-gradient(rgba(16,20,28,0.035) 0% 25%, transparent 0% 50%) 0 0 / 44px 44px,
        radial-gradient(120% 60% at 50% 118%, rgba(230,52,42,0.10), transparent 60%);
}

/* ---- Navigation: bright glass with a racing-stripe base ---- */
.turning-left-page nav {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 4px solid var(--tl-ink);
    box-shadow: 0 4px 0 rgba(16,20,28,0.12);
}
.turning-left-page nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 0 rgba(16,20,28,0.14);
}
.turning-left-page .nav-logo {
    color: var(--tl-ink);
    text-shadow: 2px 2px 0 var(--tl-gold);
}
.turning-left-page .nav-logo .accent { color: var(--tl-red); text-shadow: 2px 2px 0 var(--tl-blue); }
.turning-left-page .nav-links a {
    color: var(--tl-ink);
    font-weight: 600;
    text-shadow: 1px 1px 0 rgba(246,192,43,0.6);
}
.turning-left-page .nav-links a:hover { color: var(--tl-red); }

/* The featured game gets a gold "flag" chip so it reads as the star, not a peer */
.turning-left-page .nav-links .nav-feature a {
    position: relative;
    color: var(--tl-navy);
    background: var(--tl-gold);
    padding: 4px 12px;
    border: 2px solid var(--tl-ink);
    border-radius: 6px;
    text-shadow: none;
    box-shadow: 2px 2px 0 var(--tl-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.turning-left-page .nav-links .nav-feature a::before {
    content: "◤";
    margin-right: 6px;
    color: var(--tl-red);
}
.turning-left-page .nav-links .nav-feature a:hover {
    color: var(--tl-white);
    background: var(--tl-red);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--tl-ink);
}
.turning-left-page .nav-links .nav-feature a:hover::before { color: var(--tl-white); }

/* ---- Sections sit on the sky; ink-outlined cards do the work ---- */
.turning-left-page section { padding: 64px 2rem; }
.turning-left-page .section-header { margin-bottom: 40px; }

/* Racing-poster display type: heavy condensed, slanted, with an ink drop shadow */
.turning-left-page .section-title {
    font-family: 'Anton', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    color: var(--tl-ink);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 3px 3px 0 var(--tl-white), 5px 5px 0 rgba(16,20,28,0.18);
}
.turning-left-page .section-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tl-navy);
    background: var(--tl-cream);
    border: 2px solid var(--tl-ink);
    border-radius: 4px;
    padding: 4px 12px;
    box-shadow: 3px 3px 0 var(--tl-ink);
    margin-bottom: 1rem;
}
.turning-left-page .section-tag .prompt { color: var(--tl-red); }
.turning-left-page .section-desc {
    color: #33383f;
    font-weight: 500;
    font-size: 1.05rem;
}
.turning-left-page .section-desc strong { color: var(--tl-red); font-weight: 700; }

/* ---- Ink-outlined card: the game's signature look ---- */
.turning-left-page .card {
    background: var(--tl-cream);
    border: 3px solid var(--tl-ink);
    border-radius: 14px;
    box-shadow: 6px 6px 0 var(--tl-ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.turning-left-page .card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--tl-ink), 0 0 0 3px rgba(230,52,42,0.14);
    border-color: var(--tl-red);
}
.turning-left-page .card h3 {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--tl-ink);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}
.turning-left-page .card p { color: #3a3f47; font-weight: 500; font-size: 0.96rem; }

/* ---- Buttons: chunky ink-outlined racing buttons ---- */
.turning-left-page .btn {
    background: var(--tl-red);
    color: var(--tl-white);
    border: 3px solid var(--tl-ink);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--tl-ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.turning-left-page .btn:hover {
    background: var(--tl-blue);
    color: var(--tl-white);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--tl-ink);
}
.turning-left-page .btn.btn-gold {
    background: var(--tl-gold);
    color: var(--tl-ink);
}
.turning-left-page .btn.btn-gold:hover {
    background: var(--tl-gold);
    color: var(--tl-ink);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--tl-ink);
}

/* Decorative diagonal red/white/blue racing stripe */
.tl-stripe {
    height: 14px;
    background:
        linear-gradient(90deg,
            var(--tl-red) 0 22%,
            var(--tl-white) 22% 30%,
            var(--tl-blue) 30% 52%,
            var(--tl-white) 52% 60%,
            var(--tl-red) 60% 78%,
            var(--tl-white) 78% 86%,
            var(--tl-blue) 86% 100%);
    border-top: 3px solid var(--tl-ink);
    border-bottom: 3px solid var(--tl-ink);
    position: relative;
}
.tl-checker {
    height: 18px;
    background:
        repeating-conic-gradient(var(--tl-ink) 0% 25%, var(--tl-white) 0% 50%) 0 0 / 18px 18px;
    border-top: 3px solid var(--tl-ink);
    border-bottom: 3px solid var(--tl-ink);
}

/* ============================================================
   HERO — full-bleed sunset field, red title banner, CTA
   ============================================================ */
.turning-left-page .tl-hero {
    position: relative;
    max-width: none;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.tl-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    z-index: -2;
}
.tl-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6,10,18,0.15) 0%, rgba(6,10,18,0.0) 30%, rgba(6,10,18,0.62) 100%);
}
.tl-hero__inner {
    padding: 110px 2rem 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.tl-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tl-navy);
    background: var(--tl-gold);
    border: 3px solid var(--tl-ink);
    border-radius: 40px;
    padding: 6px 16px;
    box-shadow: 3px 3px 0 var(--tl-ink);
    margin-bottom: 1.4rem;
    font-weight: 700;
}
.tl-status .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--tl-red);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
    animation: tl-blink 1.4s steps(2, start) infinite;
}
@keyframes tl-blink { 50% { opacity: 0.25; } }

/* The red banner wordmark, matching the in-game menu */
.tl-title {
    display: inline-block;
    background: var(--tl-red);
    color: var(--tl-white);
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 11vw, 7.5rem);
    line-height: 0.86;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    transform: skewX(-6deg);
    padding: 0.12em 0.34em 0.18em;
    border: 4px solid var(--tl-ink);
    box-shadow: 8px 8px 0 var(--tl-ink);
    margin-bottom: 1.4rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}
.tl-pitch {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--tl-white);
    font-size: clamp(1.3rem, 3.4vw, 2.3rem);
    line-height: 1.05;
    text-shadow: 3px 3px 0 var(--tl-ink);
    margin-bottom: 0.7rem;
    max-width: 16ch;
}
.tl-sub {
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    max-width: 46ch;
    margin-bottom: 1.6rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.tl-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* ============================================================
   TRAILER block
   ============================================================ */
.tl-trailer {
    max-width: 980px;
    margin: 0 auto;
}
.tl-trailer__frame {
    position: relative;
    border: 4px solid var(--tl-ink);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--tl-ink);
    background: #000;
    aspect-ratio: 16 / 9;
}
.tl-trailer video,
.tl-trailer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-trailer__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--tl-navy);
    letter-spacing: 0.06em;
}
.tl-chip {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tl-navy);
    background: var(--tl-cream);
    border: 2px solid var(--tl-ink);
    border-radius: 4px;
    padding: 3px 9px;
}

/* ============================================================
   INK "navy panel" — carries the in-game UI look (navy + gold/red)
   ============================================================ */
.tl-panel {
    background:
        linear-gradient(180deg, var(--tl-panel), var(--tl-navy));
    color: var(--tl-cream);
    border: 3px solid var(--tl-ink);
    border-radius: 14px;
    box-shadow: 6px 6px 0 var(--tl-ink);
    position: relative;
    overflow: hidden;
}
.tl-panel::after {
    /* thin gold hairline top accent, like the in-game panels */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tl-gold) 0 40%, var(--tl-red) 40% 60%, var(--tl-gold) 60%);
}

/* Feature grid: icon-led cards */
.tl-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.tl-feature {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tl-feature__num {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.62rem;
    color: var(--tl-red);
    letter-spacing: 0.05em;
}
.tl-feature__icon { font-size: 2.2rem; line-height: 1; }
.tl-feature h3 { margin: 0; }
.tl-feature p { margin: 0; }
.tl-feature__list { margin: 0.4rem 0 0; padding-left: 1.1rem; color: #3a3f47; font-weight: 500; font-size: 0.92rem; }
.tl-feature__list li { margin: 0.2rem 0; }
.tl-feature__list li::marker { color: var(--tl-red); }

/* ============================================================
   TRACKS showcase — image cards with a landmark callout tag
   ============================================================ */
/* ---- TRACK GRID: compact mosaic. The circuit is a secondary reference, so
   these are small, dense tiles (image-forward) that tap to enlarge — not the
   big showcase cards they were. ---- */
.tl-track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.tl-track {
    position: relative;
    border: 2px solid var(--tl-ink);
    border-radius: 8px;
    overflow: hidden;
    background: var(--tl-navy);
    box-shadow: 3px 3px 0 var(--tl-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tl-track:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--tl-ink); }
.tl-track__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 2px solid var(--tl-ink);
}
.tl-track__body { padding: 0.45rem 0.55rem 0.55rem; background: var(--tl-cream); }
.tl-track__name {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--tl-ink);
    line-height: 1.05;
}
.tl-track__landmark {
    color: var(--tl-red);
    font-weight: 700;
    font-size: 0.56rem;
    margin: 0.15rem 0 0;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The flavor one-liner stays in the DOM (screen-reader friendly) but is hidden
   in the compact tile — the name + spec line carry the tile. */
.tl-track__desc { display: none; }
.tl-track__type {
    position: absolute;
    top: 6px; left: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--tl-gold);
    color: var(--tl-ink);
    border: 1.5px solid var(--tl-ink);
    border-radius: 3px;
    padding: 1px 5px;
    box-shadow: 1.5px 1.5px 0 var(--tl-ink);
}
.tl-track__night {
    position: absolute; top: 6px; right: 7px;
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* ============================================================
   STEAM DECK callout — navy panel
   ============================================================ */
.tl-deck {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}
.tl-deck h3 {
    font-family: 'Anton', 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 2rem;
    color: var(--tl-gold);
    margin: 0 0 0.8rem;
}
.tl-deck p { color: #d6def0; font-weight: 500; margin: 0 0 1rem; }
.tl-deck__list { list-style: none; padding: 0; margin: 0; }
.tl-deck__list li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(246,192,43,0.35);
    font-weight: 500;
}
.tl-deck__list li:last-child { border-bottom: none; }
.tl-deck__list .tick { color: var(--tl-gold); font-weight: 800; }
.tl-deck__art {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.tl-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(246,192,43,0.4);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}
.tl-spec b { color: var(--tl-gold); font-weight: 700; }
.tl-spec .on { color: #57d08a; }

/* ============================================================
   SCREENSHOT gallery + lightbox
   ============================================================ */
.tl-gallery-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.8rem;
}
.tl-filter {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--tl-cream);
    color: var(--tl-navy);
    border: 2px solid var(--tl-ink);
    border-radius: 30px;
    padding: 6px 16px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--tl-ink);
    transition: transform 0.12s ease;
}
.tl-filter[aria-pressed="true"] {
    background: var(--tl-red);
    color: var(--tl-white);
}
.tl-filter:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--tl-ink); }

.tl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
}
.tl-thumb {
    position: relative;
    border: 3px solid var(--tl-ink);
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--tl-navy);
    box-shadow: 4px 4px 0 var(--tl-ink);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.tl-thumb:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tl-ink); }
.tl-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tl-thumb__cap {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(6,10,18,0.82));
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 1.4rem 0.7rem 0.5rem;
    text-transform: uppercase;
}
.tl-thumb[hidden] { display: none; }

/* Lightbox */
.tl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6,10,18,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.tl-lightbox.open { display: flex; }
.tl-lightbox__img {
    max-width: min(1200px, 92vw);
    max-height: 82vh;
    border: 4px solid var(--tl-ink);
    border-radius: 10px;
    box-shadow: 0 0 0 3px var(--tl-gold), 0 20px 60px rgba(0,0,0,0.6);
    background: #000;
}
.tl-lightbox__bar {
    position: absolute;
    bottom: 1.2rem;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}
.tl-lightbox__cap { max-width: 60ch; text-align: center; }
.tl-lightbox__btn {
    background: var(--tl-gold);
    color: var(--tl-ink);
    border: 3px solid var(--tl-ink);
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    padding: 0.4rem 1rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--tl-ink);
    transition: transform 0.12s ease;
}
.tl-lightbox__btn:hover { transform: translate(-1px, -1px); }
.tl-lightbox__close { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.1rem; }

/* ============================================================
   CTA + footer
   ============================================================ */
.tl-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}
.tl-cta .section-title { margin-bottom: 0.6rem; }
.tl-cta p { color: #3a3f47; font-weight: 500; max-width: 52ch; margin: 0 auto 1.4rem; }
.tl-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tl-placeholder {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    color: var(--tl-navy);
    background: var(--tl-cream);
    border: 2px dashed var(--tl-ink);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.turning-left-page footer {
    position: relative;
    padding: 3rem 2rem 2.5rem;
    border-top: 4px solid var(--tl-ink);
    background: var(--tl-navy);
    color: var(--tl-cream);
    text-align: center;
}
.turning-left-page footer .nav-logo { color: var(--tl-white); text-shadow: 2px 2px 0 var(--tl-gold); }
.turning-left-page footer .nav-logo .accent { color: var(--tl-red); }
.turning-left-page footer .section-desc { color: #b9c4dc; }
.tl-credits {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}
.tl-credits a { color: var(--tl-gold); text-decoration: none; }
.tl-credits a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .turning-left-page .tl-deck { grid-template-columns: 1fr; }
    .turning-left-page .tl-hero__inner { padding: 90px 1.5rem 40px; }
    .turning-left-page .tl-pitch { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .turning-left-page .tl-status .dot { animation: none; }
    .turning-left-page *,
    .turning-left-page *::before,
    .turning-left-page *::after { transition: none !important; }
}

/* ============================================================
   ALL 23 TRACKS — TV-blimp aerial mosaic (click / tap to enlarge)
   ============================================================ */
.tl-track--blimp { cursor: zoom-in; }
.tl-track--blimp:focus-visible {
    outline: 2px solid var(--tl-gold);
    outline-offset: 2px;
}
/* The image is wrapped so the number / night chips and the
   "enlarge" affordance sit *over the photo* (not the caption). */
.tl-track__shot { position: relative; }
.tl-track__zoom {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--tl-white);
    background: rgba(16, 20, 28, 0.66);
    border: 1.5px solid var(--tl-white);
    border-radius: 4px;
    box-shadow: 1.5px 1.5px 0 var(--tl-ink);
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tl-track--blimp:hover .tl-track__zoom,
.tl-track--blimp:focus-visible .tl-track__zoom {
    background: var(--tl-red);
    transform: translate(-1px, -1px);
    opacity: 1;
}

/* Tiny tiles: keep the chips + tap target legible on small phones. */
@media (max-width: 480px) {
    .tl-track--blimp { cursor: pointer; }
    .tl-track__type { font-size: 0.5rem; padding: 1px 4px; }
    .tl-track__zoom { width: 26px; height: 26px; font-size: 0.85rem; }
}
