/* =====================================================
   Hogares FM · radio.css
   Senior audit rewrite — clean architecture, no hacks
   ===================================================== */

/* ── 1. DESIGN TOKENS ─────────────────────────────── */
:root {
    /* Surfaces */
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-alt: #ebebeb;
    --glass: rgba(255, 255, 255, .65);
    --glass-border: rgba(0, 0, 0, .09);

    /* Text */
    --text: #111111;
    --text-2: #555555;
    --text-3: #888888;

    /* Brand */
    --green: #0a8c50;
    /* accessible on white: 4.7:1 */
    --green-glow: rgba(10, 140, 80, .12);

    /* WA button */
    --wa: #128C7E;
    --wa-text: #ffffff;
    --wa-hover: #075E54;

    /* Marquee */
    --mq-bg: #111111;
    --mq-text: #ffffff;
    --mq-accent: #23c97e;

    /* Orbs */
    --orb-a: rgba(10, 140, 80, .18);
    --orb-b: rgba(0, 80, 200, .06);

    /* Shadows */
    --sh-sm: 0 4px 16px rgba(0, 0, 0, .06);
    --sh-md: 0 16px 48px rgba(0, 0, 0, .10);
    --sh-lg: 0 32px 80px rgba(0, 0, 0, .14);

    /* Radius */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;

    /* Spacing */
    --wrap: 1280px;
    --pad: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
    --bg: #050707;
    --surface: #0f1212;
    --surface-alt: #171b1b;
    --glass: rgba(15, 18, 18, .6);
    --glass-border: rgba(255, 255, 255, .09);

    --text: #f0f0f0;
    --text-2: #909095;
    --text-3: #5a5a60;

    --green: #12e07f;
    /* accessible on dark: passes AA large */
    --green-glow: rgba(18, 224, 127, .12);

    --wa: #25D366;
    --wa-text: #0a2b1a;
    /* dark text → contrast 8.2:1 on WA green */
    --wa-hover: #1ebd5a;

    --mq-bg: #12e07f;
    --mq-text: #050707;
    --mq-accent: #050707;

    --orb-a: rgba(18, 224, 127, .12);
    --orb-b: rgba(0, 100, 255, .07);

    --sh-sm: 0 4px 16px rgba(0, 0, 0, .4);
    --sh-md: 0 16px 48px rgba(0, 0, 0, .6);
    --sh-lg: 0 32px 80px rgba(0, 0, 0, .8);
}

/* ── 2. RESET & BASE ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .4s, color .4s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}

*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── 3. LAYOUT WRAPPER ────────────────────────────── */
.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* ── 4. AMBIENT ORBS (GPU only) ───────────────────── */
.orb-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    /* promote layer — avoids repaints */
    filter: blur(100px);
}

.orb-a {
    width: 55vw;
    height: 55vw;
    top: -15vw;
    left: -10vw;
    background: var(--orb-a);
    animation: drift-a 28s ease-in-out infinite alternate;
}

.orb-b {
    width: 45vw;
    height: 45vw;
    bottom: -10vw;
    right: -5vw;
    background: var(--orb-b);
    animation: drift-b 35s ease-in-out infinite alternate;
}

/* translate3d forces GPU composite — no layout/paint cost */
@keyframes drift-a {
    to {
        transform: translate3d(12vw, 18vh, 0);
    }
}

@keyframes drift-b {
    to {
        transform: translate3d(-12vw, -14vh, 0);
    }
}


/* ── 5. HEADER ─────────────────────────────────────── */
.site-header {
    position: fixed;
    inset-block-start: 0;
    width: 100%;
    z-index: 100;
    padding-block: 18px;
    transition: padding .3s ease, background .3s ease, border-color .3s ease;
}

.site-header.scrolled {
    padding-block: 12px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.hdr-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo — premium size, natural aspect ratio */
.hdr-logo {
    height: 80px;
    /* was 56px — now clearly visible at a glance */
    width: auto;
    max-width: 220px;
    /* prevents landscape logos from spanning full nav */
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .18));
    transition: filter .3s ease, transform .3s ease;
}

.hdr-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .28));
}

.hdr-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green);
    color: var(--wa-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    border-radius: 100px;
    transition: background .25s, transform .25s;
}

.hdr-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hdr-cta:hover {
    background: var(--wa-hover);
    transform: translateY(-1px);
}

.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: transform .2s;
}

.theme-btn:hover {
    transform: scale(1.08);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}


/* ── 6. HERO ───────────────────────────────────────── */
.hero {
    padding-block: calc(96px + 60px) 80px;
    /* header height + breathing room */
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

/* Live pill — styled to echo broadcast monitors */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 59, 48, .2);
    background: rgba(255, 59, 48, .05);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #ff3b30;
    margin-bottom: 32px;
    width: fit-content;
    /* Gentle entrance */
    animation: fade-slide-in .6s cubic-bezier(.25, 1, .5, 1) both;
}

[data-theme="dark"] .live-pill {
    border-color: rgba(255, 59, 48, .3);
    background: rgba(255, 59, 48, .08);
}

/* ── Live broadcast indicator: dual-ring pulse ── */
.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    flex-shrink: 0;
    /* Inner glow */
    box-shadow: 0 0 6px 1px rgba(255, 59, 48, .7);
}

/* First ring — slow expand */
.live-dot::before,
.live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #ff3b30;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    will-change: transform, opacity;
}

.live-dot::before {
    animation: live-ring 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.live-dot::after {
    animation: live-ring 2s cubic-bezier(.4, 0, .6, 1) infinite 0.75s;
}

@keyframes live-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* Headline — DM Sans with Playfair italic accents */
.hero-h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text);
    animation: fade-slide-in .8s cubic-bezier(.25, 1, .5, 1) .1s both;
}

/* Italic em — Playfair + animated color shimmer */
.hero-h1 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--green);
    /* Subtle brightness pulse — GPU only */
    animation: em-shimmer 4s ease-in-out infinite alternate;
    display: inline-block;
    will-change: opacity;
}

@keyframes em-shimmer {
    from {
        opacity: 1;
    }

    to {
        opacity: .75;
    }
}

.hero-p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-2);
    max-width: 52ch;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-p strong {
    color: var(--text);
    font-weight: 600;
}

/* WhatsApp CTA */
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: var(--wa);
    color: var(--wa-text);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(18, 140, 126, .25);
    transition: background .25s, transform .3s cubic-bezier(.25, 1, .5, 1), box-shadow .3s;
}

.wa-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wa-btn:hover {
    background: var(--wa-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(18, 140, 126, .35);
}

.wa-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-3);
}

/* ── 7. CUSTOM PLAYER CARD ─────────────────────────── */
.player-col {
    position: relative;
    z-index: 1;
}

.player-card {
    background: var(--glass);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    position: relative;
    animation: card-enter .8s cubic-bezier(.25, 1, .5, 1) .2s both;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff3b30 0%, var(--green) 60%, transparent 100%);
    opacity: .8;
    z-index: 2;
}

/* ── Player Header ── */
.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.player-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Live broadcast dot — dual expanding rings */
.live-broadcast-dot {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.live-broadcast-dot .core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 59, 48, .7);
    transform: translate(-50%, -50%);
}

.live-broadcast-dot .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid #ff3b30;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: broadcast-ring 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.live-broadcast-dot .ring-2 {
    animation-delay: .75s;
}

@keyframes broadcast-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .9;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.8);
        opacity: 0;
    }
}

.player-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-station {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.player-track {
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity .4s;
}

/* ── EQ Bars ── */
.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.eq-bars span {
    display: block;
    width: 3px;
    background: var(--green);
    border-radius: 2px;
    height: 4px;
    transition: height .3s;
}

.eq-bars[data-playing="false"] span:nth-child(1) {
    height: 6px;
}

.eq-bars[data-playing="false"] span:nth-child(2) {
    height: 12px;
}

.eq-bars[data-playing="false"] span:nth-child(3) {
    height: 8px;
}

.eq-bars[data-playing="false"] span:nth-child(4) {
    height: 14px;
}

.eq-bars[data-playing="false"] span:nth-child(5) {
    height: 5px;
}

.eq-bars[data-playing="false"] span:nth-child(6) {
    height: 10px;
}

.eq-bars[data-playing="false"] span:nth-child(7) {
    height: 7px;
}

.eq-bars[data-playing="true"] span {
    animation: eq-bounce .8s ease-in-out infinite alternate;
}

.eq-bars[data-playing="true"] span:nth-child(1) {
    animation-duration: .6s;
}

.eq-bars[data-playing="true"] span:nth-child(2) {
    animation-duration: .9s;
    animation-delay: .10s;
}

.eq-bars[data-playing="true"] span:nth-child(3) {
    animation-duration: .7s;
    animation-delay: .20s;
}

.eq-bars[data-playing="true"] span:nth-child(4) {
    animation-duration: 1.1s;
    animation-delay: .05s;
}

.eq-bars[data-playing="true"] span:nth-child(5) {
    animation-duration: .8s;
    animation-delay: .15s;
}

.eq-bars[data-playing="true"] span:nth-child(6) {
    animation-duration: 1.0s;
    animation-delay: .25s;
}

.eq-bars[data-playing="true"] span:nth-child(7) {
    animation-duration: .65s;
    animation-delay: .35s;
}

@keyframes eq-bounce {
    from {
        height: 3px;
    }

    to {
        height: 20px;
    }
}

/* ── Now Playing Meta ── */
.player-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.album-art-wrap {
    position: relative;
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-md);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.player-card.is-playing .album-art {
    animation: album-breathe 6s ease-in-out infinite alternate;
}

@keyframes album-breathe {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, transparent 50%);
    pointer-events: none;
}

.meta-text {
    flex: 1;
    min-width: 0;
}

.meta-artist {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-desc {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.live-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(255, 59, 48, .1);
    border: 1px solid rgba(255, 59, 48, .25);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ff3b30;
}

.live-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 4px rgba(255, 59, 48, .8);
    display: inline-block;
    animation: blink .9s ease-in-out infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: .3;
    }
}

/* ── Waveform Visualizer ── */
.wave-vis {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 32px;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.wave-vis span {
    display: block;
    flex: 1;
    border-radius: 2px;
    background: var(--green);
    opacity: .35;
    height: 4px;
    transform-origin: center;
    will-change: transform;
}

.wave-vis span:nth-child(odd) {
    height: 8px;
}

.wave-vis span:nth-child(4n) {
    height: 16px;
}

.wave-vis span:nth-child(7n) {
    height: 24px;
}

.player-card.is-playing .wave-vis span {
    opacity: .75;
    animation: wave-bar .5s ease-in-out infinite alternate;
}

.player-card.is-playing .wave-vis span:nth-child(1) {
    animation-duration: .6s;
}

.player-card.is-playing .wave-vis span:nth-child(2) {
    animation-duration: .4s;
    animation-delay: .05s;
}

.player-card.is-playing .wave-vis span:nth-child(3) {
    animation-duration: .7s;
    animation-delay: .10s;
}

.player-card.is-playing .wave-vis span:nth-child(4) {
    animation-duration: .5s;
    animation-delay: .15s;
}

.player-card.is-playing .wave-vis span:nth-child(5) {
    animation-duration: .8s;
    animation-delay: .08s;
}

.player-card.is-playing .wave-vis span:nth-child(6) {
    animation-duration: .3s;
    animation-delay: .20s;
}

.player-card.is-playing .wave-vis span:nth-child(7) {
    animation-duration: .9s;
    animation-delay: .12s;
}

.player-card.is-playing .wave-vis span:nth-child(8) {
    animation-duration: .4s;
    animation-delay: .07s;
}

.player-card.is-playing .wave-vis span:nth-child(9) {
    animation-duration: .6s;
    animation-delay: .22s;
}

.player-card.is-playing .wave-vis span:nth-child(10) {
    animation-duration: .5s;
    animation-delay: .03s;
}

.player-card.is-playing .wave-vis span:nth-child(11) {
    animation-duration: .7s;
    animation-delay: .17s;
}

.player-card.is-playing .wave-vis span:nth-child(12) {
    animation-duration: .4s;
    animation-delay: .09s;
}

.player-card.is-playing .wave-vis span:nth-child(13) {
    animation-duration: .8s;
    animation-delay: .25s;
}

.player-card.is-playing .wave-vis span:nth-child(14) {
    animation-duration: .55s;
    animation-delay: .13s;
}

.player-card.is-playing .wave-vis span:nth-child(15) {
    animation-duration: .6s;
    animation-delay: .06s;
}

.player-card.is-playing .wave-vis span:nth-child(16) {
    animation-duration: .9s;
    animation-delay: .19s;
}

.player-card.is-playing .wave-vis span:nth-child(17) {
    animation-duration: .4s;
    animation-delay: .04s;
}

.player-card.is-playing .wave-vis span:nth-child(18) {
    animation-duration: .7s;
    animation-delay: .14s;
}

.player-card.is-playing .wave-vis span:nth-child(19) {
    animation-duration: .5s;
    animation-delay: .21s;
}

.player-card.is-playing .wave-vis span:nth-child(20) {
    animation-duration: .6s;
    animation-delay: .18s;
}

@keyframes wave-bar {
    from {
        transform: scaleY(.2);
    }

    to {
        transform: scaleY(1);
    }
}

/* ── Player Controls ── */
.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
}

/* Big play button */
.btn-play {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .25s cubic-bezier(.25, 1, .5, 1), box-shadow .25s;
    box-shadow: 0 4px 16px var(--green-glow);
}

.btn-play:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 24px var(--green-glow), 0 0 0 8px var(--green-glow);
}

.btn-play svg {
    width: 24px;
    height: 24px;
    position: absolute;
    transition: opacity .2s, transform .2s;
}

.btn-play .icon-play {
    opacity: 1;
    transform: scale(1);
}

.btn-play .icon-pause {
    opacity: 0;
    transform: scale(.7);
}

.btn-play .icon-loading {
    opacity: 0;
    transform: scale(.7);
    animation: spin .8s linear infinite;
}

.btn-play[data-state="playing"] .icon-play {
    opacity: 0;
    transform: scale(.7);
}

.btn-play[data-state="playing"] .icon-pause {
    opacity: 1;
    transform: scale(1);
}

.btn-play[data-state="playing"] .icon-loading {
    opacity: 0;
}

.btn-play[data-state="loading"] .icon-play {
    opacity: 0;
}

.btn-play[data-state="loading"] .icon-pause {
    opacity: 0;
}

.btn-play[data-state="loading"] .icon-loading {
    opacity: 1;
    transform: scale(1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Volume controls */
.volume-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-mute {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-2);
    display: grid;
    place-items: center;
    transition: color .2s, transform .2s;
    flex-shrink: 0;
}

.btn-mute:hover {
    color: var(--text);
    transform: scale(1.08);
}

.btn-mute svg {
    width: 20px;
    height: 20px;
}

.volume-track {
    flex: 1;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    position: relative;
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--green);
    border-radius: 2px;
    pointer-events: none;
    transition: width .05s;
}

.volume-slider {
    position: absolute;
    inset: -8px 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.volume-slider:focus-visible {
    opacity: 1;
}

/* Buffering border pulse */
.player-card[data-buffering="true"] {
    animation: card-enter .8s cubic-bezier(.25, 1, .5, 1) .2s both,
        border-pulse 1.2s ease-in-out infinite;
}

@keyframes border-pulse {

    0%,
    100% {
        box-shadow: var(--sh-lg);
    }

    50% {
        box-shadow: var(--sh-lg), 0 0 0 3px rgba(18, 224, 127, .25);
    }
}


/* ── 8. MARQUEE ────────────────────────────────────── */
.marquee-bar {
    background: var(--mq-bg);
    color: var(--mq-text);
    overflow: hidden;
    padding-block: 18px;
    margin-block: 0;
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
}

.marquee-track b {
    color: var(--mq-accent);
    font-size: 10px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {

    .marquee-track,
    .orb,
    .eq i,
    .live-dot {
        animation-play-state: paused;
    }
}

/* ── 9. PILLARS ────────────────────────────────────── */
.pillars {
    padding-block: 100px;
    position: relative;
    z-index: 1;
}

.pillars-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 48px);
}

.pillar {
    padding: clamp(32px, 4vw, 56px);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform .35s cubic-bezier(.25, 1, .5, 1), box-shadow .35s;
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
}

.pillar-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 20px;
}

.pillar-h {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 16px;
    color: var(--text);
}

.pillar-p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px;
}

.pillar-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    transition: gap .2s;
}

.pillar-link:hover {
    text-decoration: underline;
}

/* ── 10. FOOTER ────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding-block: 64px 32px;
    background: var(--surface);
}

/* Premium logo block — full width, centered above grid */
.footer-logo-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 48px;
}

.footer-logo-img {
    height: 96px;
    /* ↑ was 64px — reads clearly even at a distance */
    width: auto;
    max-width: 320px;
    /* prevent overly wide logos on large screens */
    object-fit: contain;
    display: block;
}

/* 4-column grid matching the main site footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 16px;
    opacity: .5;
}

.footer-col p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 6px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--green);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-3);
}

/* PuntoClick — minimal, grayscale until hover */
.pc-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .65;
    transition: opacity .25s;
}

.pc-credit:hover {
    opacity: 1;
}

.pc-credit span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-3);
}

.pc-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter .3s;
}

.pc-credit:hover .pc-logo {
    filter: grayscale(0);
}

[data-theme="dark"] .pc-logo {
    filter: grayscale(1) invert(1);
}

[data-theme="dark"] .pc-credit:hover .pc-logo {
    filter: grayscale(0) invert(0);
}

/* ── 11. KEYFRAMES ─────────────────────────────────── */
@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── 12. REVEAL ON SCROLL (progressive enhancement) ── */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0s);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ── 12. RESPONSIVE ────────────────────────────────── */
@media (max-width: 960px) {

    .hero-wrap,
    .pillars-wrap {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-block: 120px 60px;
    }

    .hdr-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo-img {
        height: 48px;
    }
}