/* ═══════════════════════════════════════════════════════════════
   Jarvis Playground — Homepage v3.0 "Reimagined" (2026-09-09)
   Cinematic editorial night: full-bleed imagery, oversized type,
   hairline structure, scroll-triggered fade reveals.
   Loaded AFTER design-system.css — scoped under body.home-v3 so it
   never leaks into the other 16 pages. Shared effects.js features
   (particles, magnetic nav, code chip, card peek, analytics tile,
   live filter input) are restyled here, not removed.
   ═══════════════════════════════════════════════════════════════ */

body.home-v3 {
    --h3-ink: #06070b;
    --h3-ink-2: #0a0c12;
    --h3-paper: #eef1f6;
    --h3-muted: rgba(238, 241, 246, 0.55);
    --h3-faint: rgba(238, 241, 246, 0.32);
    --h3-cyan: #4de3ff;
    --h3-violet: #8b7bff;
    --h3-amber: #ffc466;
    --h3-line: rgba(255, 255, 255, 0.09);
    --h3-line-strong: rgba(255, 255, 255, 0.18);
    --h3-card: rgba(255, 255, 255, 0.028);
    --h3-font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --h3-font-mono: 'Cascadia Code', 'JetBrains Mono', 'Courier New', monospace;
    background: var(--h3-ink);
}

body.home-v3::selection { background: rgba(77, 227, 255, 0.28); color: #fff; }

/* ── Neutralize shared flip-in reveal on this page — home-v3.js owns all reveals ── */
body.home-v3 .jp-card-flip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ══════════════════════ Scroll reveal engine (home-v3.js) ══════════════════════
   Hidden state only applies when JS is present (html.js set in <head>). */
html.js body.home-v3 [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s ease;
    transition-delay: var(--rv-delay, 0ms);
    will-change: opacity, transform;
}
html.js body.home-v3 [data-reveal="left"]  { transform: translateX(-36px); }
html.js body.home-v3 [data-reveal="right"] { transform: translateX(36px); }
html.js body.home-v3 [data-reveal="zoom"]  { transform: scale(0.94); }
html.js body.home-v3 [data-reveal="fade"]  { transform: none; }
html.js body.home-v3 [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}
/* Image reveals carry a soft blur that resolves as they enter */
html.js body.home-v3 [data-reveal="image"] {
    transform: translateY(24px) scale(1.03);
    filter: blur(10px);
}
html.js body.home-v3 [data-reveal="image"].is-visible { filter: blur(0); }

/* ══════════════════════ Hero — full-bleed cinematic ══════════════════════ */
.h3-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.h3-hero-bg {
    position: absolute;
    inset: -6% 0;               /* bleed for parallax travel */
    z-index: -2;
    will-change: transform;
}
/* 2026-09-24: <picture> wrapper for AVIF/WebP hero sources */
.h3-hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}
.h3-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    animation: h3KenBurns 36s ease-in-out infinite alternate;
}
@keyframes h3KenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.14); }
}

/* Scrim: keep the bottom readable, let the image breathe at top */
.h3-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(6, 7, 11, 0.55) 0%,
            rgba(6, 7, 11, 0.18) 34%,
            rgba(6, 7, 11, 0.42) 62%,
            var(--h3-ink) 97%),
        radial-gradient(120% 90% at 50% 108%, rgba(77, 227, 255, 0.10), transparent 55%);
}

.h3-hero-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: calc(var(--nav-height, 64px) + 40px) 28px 7vh;
}

.h3-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--h3-font-mono);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(238, 241, 246, 0.75);
    padding: 9px 18px;
    border: 1px solid var(--h3-line-strong);
    border-radius: 999px;
    background: rgba(6, 7, 11, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.h3-hero-kicker .chip-dot { width: 6px; height: 6px; }

.h3-hero h1 {
    font-family: var(--h3-font-display);
    font-weight: 700;
    font-size: clamp(3rem, 10.5vw, 8.25rem);
    line-height: 0.94;
    letter-spacing: -0.02em;
    margin: 26px 0 0;
    color: var(--h3-paper);
    text-wrap: balance;
}
.h3-hero h1 .thin {
    display: block;
    font-weight: 300;
    letter-spacing: 0.02em;
    background: linear-gradient(95deg, rgba(238,241,246,0.92) 20%, rgba(77,227,255,0.85) 55%, rgba(139,123,255,0.9) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h3-hero-sub {
    max-width: 56ch;
    margin: 26px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    color: var(--h3-muted);
}
.h3-hero-sub strong { color: var(--h3-paper); font-weight: 600; }

.h3-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.h3-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-family: var(--h3-font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.h3-btn-primary {
    color: #041014;
    background: linear-gradient(95deg, var(--h3-cyan), #7dd3fc);
    box-shadow: 0 8px 32px rgba(77, 227, 255, 0.28);
}
.h3-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(77, 227, 255, 0.42);
}
.h3-btn-ghost {
    color: var(--h3-paper);
    border: 1px solid var(--h3-line-strong);
    background: rgba(6, 7, 11, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.h3-btn-ghost:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 227, 255, 0.55);
    box-shadow: 0 10px 30px rgba(77, 227, 255, 0.16);
}

/* focus-visible — 2026-09-24 a11y pass */
.h3-btn:focus-visible {
    outline: 2px solid rgba(0, 242, 255, 0.85);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.15), 0 0 18px rgba(0, 242, 255, 0.35);
}

/* Terminal code chip (markup + typing owned by effects.js initCodeChip) */
body.home-v3 .jp-codechip {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--h3-font-mono);
    font-size: 0.78rem;
    color: rgba(238, 241, 246, 0.72);
    background: rgba(6, 7, 11, 0.5);
    border: 1px solid var(--h3-line);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.home-v3 .jp-codechip-prompt { color: var(--h3-cyan); }

/* Hero version chip (version.js fills [data-site-version]) */
.h3-hero-ver {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 12px;
    font-family: var(--h3-font-mono);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: rgba(238, 241, 246, 0.5);
    border: 1px solid var(--h3-line);
    border-radius: 999px;
    background: rgba(6, 7, 11, 0.4);
}

.h3-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--h3-font-mono);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(238, 241, 246, 0.45);
}
.h3-scroll-cue::after {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, rgba(77, 227, 255, 0.7), transparent);
    animation: h3CueDrop 2.2s ease-in-out infinite;
}
@keyframes h3CueDrop {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    55%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Recently Shipped marquee (.jp-marquee) is styled by design-system.css —
   content is driven by effects.js initMarquee; no page-level overrides. */

/* ══════════════════════ Editorial intro + stats ══════════════════════ */
.h3-intro {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 12vh 28px 4vh;
}
.h3-intro-statement {
    font-family: var(--h3-font-display);
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    font-weight: 500;
    color: var(--h3-paper);
    max-width: 26ch;
}
.h3-intro-statement em {
    font-style: normal;
    background: linear-gradient(95deg, var(--h3-cyan), var(--h3-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.h3-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 9vh;
    border: 1px solid var(--h3-line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--h3-line);
}
.h3-stat {
    background: var(--h3-ink-2);
    padding: 34px 30px;
}
.h3-stat-num {
    font-family: var(--h3-font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(95deg, var(--h3-paper) 30%, var(--h3-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.h3-stat-label {
    margin-top: 8px;
    font-family: var(--h3-font-mono);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--h3-faint);
}

/* ══════════════════════ App grid — bento mosaic ══════════════════════
   DOM contract kept identical to v2 (effects.js live filter depends on it):
   .app-grid > [.featured-card, .section-header rows, .app-card[data-category]] */
.h3-main {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 4vh 28px 10vh;
}

/* Filter chips (markup kept for home-v3.js chip logic) */
body.home-v3 .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 2vh 0 26px;
}
body.home-v3 .chip {
    background: transparent;
    border: 1px solid var(--h3-line);
    color: rgba(238, 241, 246, 0.55);
    border-radius: 999px;
    padding: 9px 20px;
    font-family: var(--h3-font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.home-v3 .chip:hover {
    border-color: rgba(77, 227, 255, 0.5);
    color: var(--h3-paper);
    transform: translateY(-2px);
}

/* focus-visible — 2026-09-24 a11y pass */
body.home-v3 .chip:focus-visible {
    outline: 2px solid rgba(0, 242, 255, 0.85);
    outline-offset: 2px;
    border-color: rgba(77, 227, 255, 0.5);
    color: var(--h3-paper);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.15), 0 0 18px rgba(0, 242, 255, 0.35);
}
body.home-v3 .chip.active {
    background: linear-gradient(95deg, rgba(77, 227, 255, 0.16), rgba(139, 123, 255, 0.18));
    border-color: rgba(77, 227, 255, 0.6);
    color: var(--h3-cyan);
    box-shadow: 0 0 24px rgba(77, 227, 255, 0.18);
}

/* Typeahead filter bar (input owned by effects.js initLiveFilter) */
body.home-v3 .jp-filter-bar { margin-bottom: 40px; }
body.home-v3 .jp-filter-wrap {
    border-color: var(--h3-line) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}
body.home-v3 .jp-filter-input {
    font-family: var(--h3-font-display) !important;
    letter-spacing: 1px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 18px;
}

/* Section headers — big index number + hairline */
.section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-top: 52px;
}
.section-header:first-child { margin-top: 0; }
.section-header .h3-idx {
    font-family: var(--h3-font-mono);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--h3-cyan);
}
.section-header h2 {
    font-family: var(--h3-font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--h3-paper);
}
.section-header h2 .emoji { margin-right: 10px; }
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    align-self: center;
    background: linear-gradient(90deg, var(--h3-line-strong), transparent);
}

/* Cards */
.app-card,
.featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: var(--h3-paper);
    border-radius: 18px;
    background: var(--h3-card);
    border: 1px solid var(--h3-line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease,
                background 0.5s ease;
}
.app-card:hover,
.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 227, 255, 0.38);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(77, 227, 255, 0.1);
}

/* focus-visible — 2026-09-24 a11y pass (mirrors hover + cyan outline) */
.app-card:focus-visible,
.featured-card:focus-visible {
    outline: 2px solid rgba(0, 242, 255, 0.85);
    outline-offset: 2px;
    transform: translateY(-6px);
    border-color: rgba(77, 227, 255, 0.38);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(77, 227, 255, 0.1), 0 0 0 4px rgba(0, 242, 255, 0.15);
}

.app-card { padding: 26px 24px 22px; }

/* Icon tile */
.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(77, 227, 255, 0.1), rgba(139, 123, 255, 0.12));
    border: 1px solid rgba(77, 227, 255, 0.2);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
.app-card:hover .app-icon,
.featured-card:hover .app-icon {
    transform: translateY(-4px) scale(1.06) rotate(-3deg);
    box-shadow: 0 0 30px rgba(77, 227, 255, 0.28);
}

/* focus-visible — 2026-09-24 a11y pass */
.app-card:focus-visible .app-icon,
.featured-card:focus-visible .app-icon {
    transform: translateY(-4px) scale(1.06) rotate(-3deg);
    box-shadow: 0 0 30px rgba(77, 227, 255, 0.28);
}

.app-title {
    font-family: var(--h3-font-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin: 0 0 8px;
    transition: color 0.3s ease;
}
.app-card:hover .app-title { color: var(--h3-cyan); }

/* focus-visible — 2026-09-24 a11y pass */
.app-card:focus-visible .app-title,
.featured-card:focus-visible .app-title { color: var(--h3-cyan); }

.app-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--h3-muted);
    margin: 0;
    flex: 1;
}

/* Badges */
.app-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 18px;
    padding: 5px 14px;
    background: rgba(77, 227, 255, 0.07);
    border: 1px solid rgba(77, 227, 255, 0.28);
    border-radius: 999px;
    font-family: var(--h3-font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--h3-cyan);
}
.app-badge.purple { background: rgba(139, 123, 255, 0.08); border-color: rgba(139, 123, 255, 0.34); color: #b3a6ff; }
.app-badge.green  { background: rgba(74, 222, 128, 0.06); border-color: rgba(74, 222, 128, 0.3);  color: #6ee7a0; }
.app-badge.orange { background: rgba(255, 196, 102, 0.06); border-color: rgba(255, 196, 102, 0.32); color: var(--h3-amber); }
.app-badge.blue   { background: rgba(96, 165, 250, 0.07); border-color: rgba(96, 165, 250, 0.34);  color: #8ab8ff; }

/* Lead cards — image-topped section anchors (Tony's photography) */
.app-card.lead {
    grid-column: span 2;
    padding: 0;
}
.lead-media {
    position: relative;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
}
.lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* portrait sources (section-media) crop to the upper-middle screen area */
    object-position: center 42%;
    display: block;
    /* sources are dark studio scenes — lift shadows so the glowing monitors read */
    filter: brightness(1.45) contrast(1.08);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.app-card.lead:hover .lead-media img { transform: scale(1.05); }
.lead-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(6, 7, 11, 0.88) 92%);
}
.lead-body { padding: 24px 26px 24px; margin-top: -34px; position: relative; z-index: 1; }
.lead-body .app-title { font-size: 1.35rem; }

/* Featured card (hub gateway) */
.featured-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 40px 44px;
    background:
        radial-gradient(90% 160% at 85% -30%, rgba(139, 123, 255, 0.14), transparent 55%),
        radial-gradient(70% 140% at 10% 130%, rgba(77, 227, 255, 0.1), transparent 55%),
        var(--h3-card);
    border-color: rgba(139, 123, 255, 0.24);
}
.featured-card .app-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.01em;
}
.featured-card .app-desc { max-width: 52ch; }
.featured-card .app-icon { width: 72px; height: 72px; font-size: 2rem; margin: 0; flex-shrink: 0; }

/* Card peek strip (injected by effects.js initCardPeek) — restyled */
body.home-v3 .jp-peek {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 22px !important;
    background: rgba(6, 7, 11, 0.55) !important;
    border-top: 1px solid var(--h3-line) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    font-family: var(--h3-font-mono) !important;
    font-size: 0.62rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: rgba(238, 241, 246, 0.5) !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.home-v3 .app-card:hover .jp-peek,
body.home-v3 .featured-card:hover .jp-peek {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
body.home-v3 .jp-peek a { color: var(--h3-cyan) !important; }

/* ══════════════════════ CTA band + status ══════════════════════ */
.h3-cta {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--h3-line);
    background:
        linear-gradient(180deg, rgba(6, 7, 11, 0.84), rgba(6, 7, 11, 0.92)),
        radial-gradient(80% 120% at 50% -20%, rgba(77, 227, 255, 0.08), transparent 60%),
        url('/assets/bg-atmos-1.jpg') center / cover no-repeat,
        var(--h3-ink-2);
}
.h3-cta-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 11vh 28px;
    text-align: center;
}
.h3-cta h2 {
    font-family: var(--h3-font-display);
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--h3-paper);
}
.h3-cta h2 em {
    font-style: normal;
    background: linear-gradient(95deg, var(--h3-cyan), var(--h3-violet) 70%, #ff8ac2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.h3-cta-sub {
    margin: 18px auto 0;
    max-width: 46ch;
    color: var(--h3-muted);
    line-height: 1.65;
}

.status-bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
    padding: 16px 30px;
    border-radius: 999px;
    border: 1px solid var(--h3-line);
    background: rgba(6, 7, 11, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: var(--h3-font-mono);
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(238, 241, 246, 0.6);
}

/* ══════════════════════ Footer ══════════════════════ */
.h3-footer {
    border-top: 1px solid var(--h3-line);
    background: var(--h3-ink);
}
.h3-footer-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 72px 28px 40px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}
.h3-footer-brand p {
    margin: 16px 0 0;
    max-width: 34ch;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--h3-faint);
}
.h3-footer h4 {
    font-family: var(--h3-font-mono);
    font-size: 0.64rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(238, 241, 246, 0.45);
    margin: 4px 0 18px;
}
.h3-footer ul { list-style: none; margin: 0; padding: 0; }
.h3-footer li { margin-bottom: 11px; }
.h3-footer a {
    color: rgba(238, 241, 246, 0.62);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.25s ease;
}
.h3-footer a:hover { color: var(--h3-cyan); }
.h3-footer-bottom {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 26px 28px 44px;
    border-top: 1px solid var(--h3-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--h3-font-mono);
    font-size: 0.64rem;
    letter-spacing: 1.5px;
    color: rgba(238, 241, 246, 0.35);
}
.h3-footer-credits { max-width: 60ch; line-height: 1.8; }

/* Analytics tile (design-system styled) — nudge to v3 palette */
body.home-v3 .jp-analytics-tile { border-color: var(--h3-line); }

/* ══════════════════════ Scroll progress bar ══════════════════════ */
.scroll-progress {
    position: fixed;
    top: var(--nav-height, 56px);
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--h3-cyan), var(--h3-violet), #ff8ac2);
    box-shadow: 0 0 12px rgba(77, 227, 255, 0.6);
    z-index: 9998;
}

/* ══════════════════════ Responsive ══════════════════════ */
@media (max-width: 900px) {
    .app-card.lead { grid-column: span 1; }
    .lead-media { aspect-ratio: 16 / 9; }
    .h3-stats { grid-template-columns: 1fr; }
    .h3-footer-inner { grid-template-columns: 1fr 1fr; }
    .featured-card { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}

@media (max-width: 640px) {
    .h3-hero-inner { padding-bottom: 12vh; }
    .h3-btn { width: 100%; justify-content: center; }
    .section-header { margin-top: 40px; }
    .app-grid { grid-template-columns: 1fr; gap: 14px; }
    .h3-footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; }
}

/* ══════════════════════ Reduced motion ══════════════════════ */
@media (prefers-reduced-motion: reduce) {
    html.js body.home-v3 [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .h3-hero-bg img { animation: none; }
    .h3-scroll-cue::after { animation: none; }
}
