/* ============================================================
   The Floyd Files — pinkfloyd.morais.co
   Light-first 70s retro. Dark mode for Le's eyes.
   No frameworks, no external CSS deps. Pure vanilla.
   ============================================================ */

:root {
    /* Light theme — cream paper, warm retro tones */
    --bg: #f6f1e7;
    --bg-alt: #efe7d7;
    --surface: #fffdf7;
    --surface-2: #f3ecdd;
    --text: #2c2620;
    --text-dim: #6b6153;
    --border: rgba(44, 38, 32, 0.14);

    /* Retro accents: sunset orange, teal, mustard */
    --accent: #d2643a;
    --accent-deep: #b34a24;
    --teal: #2d7a76;
    --mustard: #d9a441;
    --spectrum: linear-gradient(90deg, #c0392b, #d9a441, #7ba23f, #2d7a76, #3b5f8a, #6b4fa0, #a3407b);

    --shadow: 0 10px 30px rgba(44, 38, 32, 0.10);
    --shadow-soft: 0 4px 14px rgba(44, 38, 32, 0.07);
    --radius: 14px;
}

[data-theme="dark"] {
    --bg: #17130f;
    --bg-alt: #1e1913;
    --surface: #241e17;
    --surface-2: #2c251c;
    --text: #f0e8da;
    --text-dim: #a89a86;
    --border: rgba(240, 232, 218, 0.14);

    --accent: #e07a4e;
    --accent-deep: #d2643a;
    --teal: #4aa39e;
    --mustard: #e0b45c;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.30);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Archivo', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.35s ease, color 0.35s ease;
}

main { flex: 1; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

/* Little prism logo, pure CSS */
.brand-prism {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    height: 22px;
}
.brand-prism i {
    width: 5px;
    border-radius: 3px;
    display: inline-block;
    background: var(--spectrum);
}
.brand-prism .p1 { height: 12px; }
.brand-prism .p2 { height: 18px; }
.brand-prism .p3 { height: 12px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.site-nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.active {
    color: var(--accent-deep);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}
[data-theme="dark"] .site-nav a.active { color: var(--accent); }

.theme-toggle {
    margin-left: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.08); }
.theme-toggle .tt-moon { display: none; }
[data-theme="dark"] .theme-toggle .tt-sun { display: none; }
[data-theme="dark"] .theme-toggle .tt-moon { display: inline; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--mustard) 16%, transparent), transparent 45%),
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 45%),
        radial-gradient(circle at 60% 90%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
    pointer-events: none;
}
.hero .wrap { position: relative; }

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1.1rem;
}
.hero h1 .glow {
    background: linear-gradient(120deg, var(--accent-deep), var(--mustard), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero h1 .glow {
    background: linear-gradient(120deg, var(--accent), var(--mustard), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
}

.kicker {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 0.9rem;
}
[data-theme="dark"] .kicker { color: var(--accent); }

.hero p.lede {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 1.8rem;
}

.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

/* ---------- Rainbow divider ---------- */
.spectrum-bar {
    height: 6px;
    background: var(--spectrum);
    border-radius: 999px;
    opacity: 0.85;
    margin: 0 auto 3rem;
    max-width: 170px;
}
.spectrum-bar.full { max-width: 100%; opacity: 0.55; margin-bottom: 0; }

/* ---------- Sections ---------- */
section.block { padding: 3rem 0; }

.block-head { margin-bottom: 2rem; }
.block-head h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 0.4rem;
}
.block-head p {
    color: var(--text-dim);
    max-width: 640px;
}

/* ---------- Cards / grids ---------- */
.cards {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.card .eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.5rem;
    display: block;
}
.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}
.card p { font-size: 0.93rem; color: var(--text-dim); }

.card .meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.tag.accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); border-color: transparent; }
[data-theme="dark"] .tag.accent { color: var(--accent); }
.tag.teal { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); border-color: transparent; }

/* Era band colors on album cards */
.era-bar {
    height: 5px;
    border-radius: 999px;
    margin-bottom: 1rem;
    width: 56px;
}
.era-bar.early    { background: linear-gradient(90deg, #a3407b, #6b4fa0); }
.era-bar.classic  { background: linear-gradient(90deg, #c0392b, #d9a441); }
.era-bar.mid      { background: linear-gradient(90deg, #7ba23f, #2d7a76); }
.era-bar.late     { background: linear-gradient(90deg, #3b5f8a, #2d7a76); }

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--spectrum);
    opacity: 0.6;
}
.tl-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 15px; height: 15px;
    margin-left: 0.5px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--border);
}
.tl-item .year {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent-deep);
    font-size: 1.05rem;
    margin-right: 0.5rem;
}
[data-theme="dark"] .tl-item .year { color: var(--accent); }
.tl-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
}
.tl-item p { font-size: 0.93rem; color: var(--text-dim); }

/* ---------- Album list (albums.php) ---------- */
.album {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album:hover { transform: translateX(4px); box-shadow: var(--shadow); }

.cover {
    width: 84px; height: 84px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 55%);
}
.cover.prism    { background: linear-gradient(135deg, #1b1b1b, #3a3a3a); }
.cover.face     { background: linear-gradient(135deg, #7ba23f, #4d6e2a); }
.cover.wish     { background: linear-gradient(135deg, #2d7a76, #1e5350); }
.cover.wall     { background: linear-gradient(135deg, #c0392b, #7a241a); }
.cover.animals  { background: linear-gradient(135deg, #b34a24, #8a3018); }
.cover.saucer   { background: linear-gradient(135deg, #6b4fa0, #4a3375); }
.cover.piper    { background: linear-gradient(135deg, #a3407b, #7a2a5e); }
.cover.meddle   { background: linear-gradient(135deg, #3b5f8a, #29436b); }
.cover.obscured { background: linear-gradient(135deg, #8a7a55, #5f5238); }
.cover.division { background: linear-gradient(135deg, #40708f, #2b4d63); }
.cover.river    { background: linear-gradient(135deg, #4f6f8f, #36506a); }
.cover.umbilical{ background: linear-gradient(135deg, #d9a441, #a87a25); }
.cover.momentary{ background: linear-gradient(135deg, #b34a8a, #86366a); }
.cover.zabriskie{ background: linear-gradient(135deg, #cd5c3a, #a03e24); }
.cover.finalcut { background: linear-gradient(135deg, #5b4636, #3e2f24); }

.album .al-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.album .al-head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
}
.album .al-year { color: var(--text-dim); font-size: 0.88rem; font-weight: 600; }
.album p { font-size: 0.93rem; color: var(--text-dim); }

/* ---------- Tables (songs) ---------- */
.tracks { width: 100%; border-collapse: collapse; }
.tracks th, .tracks td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
}
.tracks th {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.72rem;
    color: var(--text-dim);
}
.tracks tr:last-child td { border-bottom: none; }
.tracks tbody tr { transition: background 0.15s ease; }
.tracks tbody tr:hover { background: var(--surface-2); }
.tracks td.src { color: var(--text-dim); }

/* ---------- Art gallery cards ---------- */
.art-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.art-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}
.art-card .art-body { padding: 1.1rem 1.2rem 1.3rem; }
.art-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; margin-bottom: 0.35rem; }
.art-card p { font-size: 0.9rem; color: var(--text-dim); }
.art-card .credit {
    margin-top: 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.5px;
}

/* Visual motifs, pure CSS */
.av-prism {
    width: 0; height: 0;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-bottom: 58px solid #e8e4da;
    position: relative;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
.av-prism::after {
    content: '';
    position: absolute;
    top: 24px; left: -6px;
    width: 150px; height: 4px;
    background: var(--spectrum);
    transform: rotate(18deg);
    transform-origin: left center;
    border-radius: 4px;
}
.av-cow   { font-size: 2.6rem; }
.av-planes{ background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.12) 14px 16px); }
.av-bricks{
    background:
        linear-gradient(335deg, rgba(0,0,0,0.12) 12px, transparent 12px),
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(0,0,0,0.25) 18px 20px),
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(0,0,0,0.18) 34px 36px);
}
.av-face {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9c9a8, #b89a6e);
    position: relative;
    box-shadow: inset 0 -8px 14px rgba(0,0,0,0.18);
}

/* ---------- Callout / quote ---------- */
.quote {
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.3rem;
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--text);
    margin: 1.6rem 0;
}
.quote small {
    display: block;
    margin-top: 0.4rem;
    font-family: 'Archivo', sans-serif;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---------- Stats strip (home) ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2.2rem 0;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.stat b {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    color: var(--accent-deep);
    line-height: 1.1;
}
[data-theme="dark"] .stat b { color: var(--accent); }
.stat span { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 2.2rem 0 2.4rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.footer-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 0.8rem;
}
.footer-by { font-size: 0.82rem; color: var(--text-dim); }
.footer-by a { color: var(--teal); text-decoration: none; font-weight: 600; }
.footer-by a:hover { text-decoration: underline; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    padding: 3.2rem 0 2.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    margin-bottom: 0.5rem;
}
.page-hero p { color: var(--text-dim); max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1rem 1rem;
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.7rem 0.8rem; font-size: 1rem; }
    .theme-toggle { margin: 0.6rem 0 0; align-self: flex-start; }
    .album { grid-template-columns: 64px 1fr; gap: 0.9rem; }
    .cover { width: 64px; height: 64px; font-size: 1.2rem; }
    .tracks { display: block; overflow-x: auto; }
    .hero { padding: 3rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Motion layer (V1.1) — transform/opacity only where possible.
   Hidden states apply only when JS is present (html.js), so
   no-JS visitors always see full content.
   ============================================================ */

/* ---------- Scroll reveal ---------- */
html.js .reveal,
html.js .reveal-stagger > * {
    opacity: 0;
    transform: translateY(18px);
}
html.js .reveal.is-visible,
html.js .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Staggered hero entrance (CSS only, on load) ---------- */
@keyframes rise-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero .kicker,
.hero h1,
.hero p.lede,
.hero .btn-row,
.hero .stats {
    animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .kicker    { animation-delay: 0.05s; }
.hero h1         { animation-delay: 0.15s; }
.hero p.lede     { animation-delay: 0.28s; }
.hero .btn-row   { animation-delay: 0.4s; }
.hero .stats     { animation-delay: 0.52s; }
html.no-animation-fallback .hero .kicker,
html.no-animation-fallback .hero h1 { animation: none; }

/* Subpage heroes: same treatment */
.page-hero .kicker,
.page-hero h1,
.page-hero p {
    animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero .kicker { animation-delay: 0.05s; }
.page-hero h1      { animation-delay: 0.15s; }
.page-hero p       { animation-delay: 0.26s; }

/* ---------- Hero prism: beam + refraction ---------- */
.hero-prism {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 2rem;
    max-width: 460px;
    height: 120px;
    position: relative;
    animation: rise-in 0.9s ease 0.2s both;
}
.hp-beam {
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e8e4da 70%, #ffffff);
    border-radius: 3px;
    position: relative;
    animation: beam-pulse 5.5s ease-in-out infinite;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mustard) 40%, transparent));
}
.hp-beam::after {
    content: '';
    position: absolute;
    inset: -8px 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, #e8e4da 20%, transparent));
    transform: skewY(-1deg);
}
@keyframes beam-pulse {
    0%, 100% { opacity: 0.75; transform: scaleY(1); }
    50%      { opacity: 1; transform: scaleY(1.6); }
}
.hp-glass {
    width: 0; height: 0;
    border-left: 42px solid transparent;
    border-right: 42px solid transparent;
    border-bottom: 74px solid var(--surface);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.18));
}
.hp-glass::before {
    content: '';
    position: absolute;
    top: 12px; left: -30px;
    width: 60px; height: 50px;
    background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--spectrum), transparent 55%) 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    border-radius: 4px;
    opacity: 0.7;
}
.hp-spectrum {
    width: 220px;
    height: 5px;
    border-radius: 5px;
    background: var(--spectrum);
    background-size: 200% 100%;
    position: relative;
    transform-origin: left center;
    animation: spectrum-unfold 6s ease-in-out infinite;
}
@keyframes spectrum-unfold {
    0%   { transform: scaleX(0.04); opacity: 0; }
    18%  { transform: scaleX(0.04); opacity: 0; }
    42%  { transform: scaleX(1); opacity: 1; }
    82%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0.04); opacity: 0; }
}
[data-theme="dark"] .hp-glass { border-bottom-color: var(--surface-2); }
[data-theme="dark"] .hp-beam { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--mustard) 55%, transparent)); }

/* ---------- Spectrum bar animate-in ---------- */
.animated-bar {
    transform-origin: center;
    animation: bar-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
@keyframes bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- Count-up stats: brief pop when done ---------- */
.stat b { transition: color 0.3s ease; }

/* ---------- Timeline: line + dots ---------- */
.timeline::before {
    display: none; /* replaced by animated .tl-line element */
}
.timeline .tl-line {
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: var(--spectrum);
    opacity: 0.6;
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
}
html.js .tl-item::before {
    transform: scale(0);
}
html.js .tl-item.is-visible::before {
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

/* ---------- Album vinyl + shine ---------- */
.cover {
    position: relative;
    overflow: visible; /* disc slides out of the square */
}
.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.25) 48%, transparent 60%);
    transform: translateX(-120%);
    opacity: 0;
}
.album:hover .cover::before,
.album:focus-within .cover::before {
    transform: translateX(120%);
    opacity: 1;
    transition: transform 0.7s ease, opacity 0.35s ease;
}
.vinyl {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            var(--accent) 0 12%,
            #14100c 12% 15%,
            #221a12 15% 18%,
            #14100c 18% 22%,
            #221a12 22% 26%,
            #14100c 26% 31%,
            #221a12 31% 36%,
            #14100c 36% 43%,
            #221a12 43% 48%,
            #14100c 48% 100%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 0 6px rgba(255,255,255,0.08);
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.4);
    z-index: 3;
    pointer-events: none;
}
.album:hover .vinyl,
.album:focus-within .vinyl {
    opacity: 1;
    transform: translate(-42px, 0) rotate(120deg) scale(1);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.album:not(:hover) .vinyl {
    transition: transform 0.4s ease, opacity 0.3s ease;
}
@media (hover: none) {
    .vinyl { opacity: 1; transform: translate(-34px, 0) rotate(100deg) scale(1); }
    html.js .reveal, html.js .reveal-stagger > * { transform: none; }
}

/* ---------- Marquee strip (album titles) ---------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 0.8rem 0;
    margin-top: 3rem;
}
.marquee-track {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: marquee-scroll 36s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}
.marquee-track span i { font-style: normal; color: var(--accent-deep); margin-right: 0.5rem; }
[data-theme="dark"] .marquee-track span i { color: var(--accent); }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Heartbeat / pulse line ---------- */
.heartbeat {
    height: 34px;
    margin: 1.2rem auto 0;
    max-width: 300px;
    display: block;
}
.heartbeat path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: heartbeat-draw 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 50%, transparent));
}
@keyframes heartbeat-draw {
    0%   { stroke-dashoffset: 320; opacity: 0.2; }
    45%  { stroke-dashoffset: 0; opacity: 1; }
    75%  { stroke-dashoffset: -40; opacity: 0.6; }
    100% { stroke-dashoffset: -320; opacity: 0.2; }
}

/* ---------- Pig drift (art.php) ---------- */
.pig-drift {
    position: relative;
    overflow: hidden;
}
.pig-drift .pig {
    position: absolute;
    top: 22%;
    left: -80px;
    font-size: 1.6rem;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}
.pig-drift .pig svg {
    display: block;
    width: 46px; height: 26px;
    fill: color-mix(in srgb, var(--accent) 65%, transparent);
}
.pig-drift .pig {
    animation: pig-float 34s linear infinite;
}
@keyframes pig-float {
    0%   { transform: translate(0, 8px) rotate(2deg); opacity: 0; }
    6%   { opacity: 0.55; }
    48%  { transform: translate(46vw, -6px) rotate(-3deg); opacity: 0.55; }
    92%  { opacity: 0.4; }
    100% { transform: translate(105vw, 4px) rotate(1deg); opacity: 0; }
}

/* ---------- Quote left-bar grow-in ---------- */
html.js .quote {
    position: relative;
}
html.js .quote::after {
    content: '';
    position: absolute;
    left: -4px; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
html.js .quote.is-visible::after {
    transform: scaleY(1);
}

/* ---------- 404 pulse ---------- */
.glow-pulse {
    animation: zero-pulse 2.6s ease-in-out infinite;
    display: inline-block;
}
@keyframes zero-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}

/* ---------- Button sheen ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 50%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }

/* ---------- Reduced motion: kill every new effect ---------- */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none !important; width: auto; flex-wrap: wrap; }
    .heartbeat path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
    .pig-drift .pig { animation: none; opacity: 0; }
    .hp-beam, .hp-spectrum, .hp-glass { animation: none; opacity: 1; transform: none; }
    .hp-spectrum { transform: scaleX(1); }
    .timeline .tl-line { transform: scaleY(1); }
    html.js .reveal, html.js .reveal-stagger > * { opacity: 1; transform: none; }
    .glow-pulse { animation: none; }
    .marquee-track span { display: inline-block; margin-right: 3.5rem; }
}