/* ============================================
   ECLECTIC NOMAD — The Immersive Notebook
   Elevated Edition

   Aesthetic: A notebook carried in a pocket
   for 30 years, opened by candlelight.

   Layers: bg → image → fog → particles →
   content → grain → vignette → cursor glow
   ============================================ */

:root {
    /* Core palette — boosted for accessibility */
    --bg: #0d0c0b;
    --bg-warm: #111010;
    --bg-section: #0f0e0d;
    --text: #d8d0c6;
    --text-dim: #9a9286;
    --text-bright: #f0ece4;
    --heading: #eee8de;

    /* Accent — rust red, ember red, red of sky over steelworks */
    --red: #b8442e;
    --red-bright: #d45840;
    --red-dim: #7b3025;
    --red-glow: rgba(168, 58, 42, 0.15);

    /* Supporting */
    --border: rgba(200, 192, 180, 0.08);
    --border-hover: rgba(200, 192, 180, 0.15);

    /* Typography */
    --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --section-pad: clamp(100px, 14vh, 180px);
    --content-width: 860px;
    --content-wide: 1080px;
}

/* ---- Reset & Base ---- */

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

::selection {
    background: var(--red-dim);
    color: var(--text-bright);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-bright);
}

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


/* ============================================
   ATMOSPHERIC LAYERS
   ============================================ */

/* ---- Ember Particles (Canvas) ---- */

.embers-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ---- Film Grain Overlay ---- */

.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ---- Vignette ---- */

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        transparent 55%,
        rgba(8, 7, 6, 0.25) 100%
    );
}

/* ---- Cursor Glow ---- */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle,
        rgba(200, 170, 120, 0.04) 0%,
        rgba(168, 58, 42, 0.02) 30%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: transform, left, top;
}

.cursor-glow.active {
    opacity: 1;
}

@media (hover: none) {
    .cursor-glow { display: none; }
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.nav.scrolled {
    background: rgba(13, 12, 11, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--content-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    transition: color 0.3s ease, opacity 0.6s ease;
    opacity: 0;
}

.nav.scrolled .nav-name {
    opacity: 1;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after {
    width: 100%;
}


/* ============================================
   HERO — Cinematic Full Viewport
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 clamp(24px, 6vw, 80px);
    overflow: hidden;
}

/* Background image layer */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video,
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.15);
    will-change: transform;
    filter: saturate(0.7) brightness(0.85);
}

/* Slight extra scale on video to avoid edge flicker during parallax */
.hero-bg-video {
    object-position: center center;
}

/* Dark overlay — lighter to let photo show through */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 11, 0.38);
}

/* Gradient fade to content */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 58, 42, 0.08) 0%, transparent 60%),
        linear-gradient(to bottom, transparent 60%, var(--bg) 100%),
        linear-gradient(to top, transparent 80%, rgba(13, 12, 11, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Word-by-word reveal */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(15deg);
    animation: heroWordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom center;
}

.hero-line-1 .hero-word:nth-child(1) { animation-delay: 0.4s; }
.hero-line-1 .hero-word:nth-child(2) { animation-delay: 0.55s; }
.hero-line-1 .hero-word:nth-child(3) { animation-delay: 0.65s; }
.hero-line-1 .hero-word:nth-child(4) { animation-delay: 0.8s; }
.hero-line-2 .hero-word:nth-child(1) { animation-delay: 1.1s; }
.hero-line-2 .hero-word:nth-child(2) { animation-delay: 1.25s; }
.hero-line-2 .hero-word:nth-child(3) { animation-delay: 1.45s; }

@keyframes heroWordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero-line {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.25;
    padding-bottom: 0.1em;
}

.hero-line-1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 400;
    margin-right: 0.3em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.2);
}

.hero-line-2 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--red-bright);
    text-shadow: 0 0 60px rgba(212, 88, 64, 0.4), 0 0 120px rgba(184, 68, 46, 0.15);
}

.hero-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--red), transparent);
    margin: clamp(24px, 4vh, 48px) auto;
    opacity: 0;
    animation: heroLineGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
}

@keyframes heroLineGrow {
    to {
        width: 80px;
        opacity: 1;
    }
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 300;
    color: var(--text-dim);
    line-height: 2;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeBlurIn 1.5s ease 2.2s forwards;
}

@keyframes fadeBlurIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
    transition: opacity 0.6s ease;
    z-index: 3;
}

.scroll-hint.hidden {
    opacity: 0 !important;
}

.scroll-hint span {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.8; transform: scaleY(1); }
}


/* ============================================
   SECTION BREATH — Transition Element
   ============================================ */

.section-breath {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.breath-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--red-dim), transparent);
    opacity: 0.5;
}


/* ============================================
   SECTION COMMON
   ============================================ */

.section {
    padding: var(--section-pad) clamp(24px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---- Section Background Images ---- */

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.section-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.3) brightness(0.35);
    opacity: 0.5;
    transform: scale(1.08);
    will-change: transform;
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
        linear-gradient(to right, rgba(13, 12, 11, 0.5) 0%, transparent 40%, transparent 60%, rgba(13, 12, 11, 0.5) 100%);
}

/* Per-section tuning — each image has its own character */

/* Music: Crveno nebo — warm red glow, slightly more visible */
.section-music .section-bg-img {
    filter: saturate(0.5) brightness(0.42);
    opacity: 0.6;
    object-position: center 60%;
}

/* Poems: Budjenje — teal/warm doorway, ethereal feel */
.section-bg-poems .section-bg-img {
    filter: saturate(0.4) brightness(0.4);
    opacity: 0.55;
    object-position: center center;
}

.section-bg-poems .section-bg-overlay {
    background:
        linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%),
        radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, rgba(13, 12, 11, 0.6) 100%);
}

/* Fragments: Grad — cold blue, rainy, more atmospheric */
.section-bg-fragments .section-bg-img {
    filter: saturate(0.3) brightness(0.38) contrast(1.05);
    opacity: 0.55;
    object-position: center 40%;
}

/* About: Eclectic nomad — foggy road, very ghostly */
.section-bg-about .section-bg-img {
    filter: saturate(0.25) brightness(0.4);
    opacity: 0.45;
    object-position: center 40%;
}

/* Listen: Televizor — pop art warmth, heavily muted */
.section-bg-listen .section-bg-img {
    filter: saturate(0.25) brightness(0.35) contrast(1.05);
    opacity: 0.5;
    object-position: center center;
}

.section-marker {
    position: absolute;
    top: var(--section-pad);
    left: clamp(12px, 3vw, 40px);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-dim);
    opacity: 0.3;
    writing-mode: vertical-lr;
    letter-spacing: 0.15em;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    color: var(--heading);
    margin-bottom: clamp(40px, 6vh, 72px);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--red), transparent);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-title.visible::after {
    width: 48px;
}


/* ============================================
   MUSIC SECTION
   ============================================ */

.section-music {
    background: transparent;
}

.music-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}

/* Featured card with cover image */
.music-card-featured {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border-color: var(--red-dim);
    background: rgba(168, 58, 42, 0.03);
    overflow: hidden;
}

.music-card-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.music-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
    filter: saturate(0.95) brightness(1.05);
}

.music-card-featured:hover .music-card-img {
    transform: scale(1.05);
    filter: saturate(1);
}

.music-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, rgba(15, 14, 13, 0.9) 100%);
    pointer-events: none;
}

/* Smaller cards with artwork (non-featured) */
.music-card-with-art {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    padding: 0;
}

.music-card-visual-sm {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    width: 200px;
    overflow: hidden;
}

.music-card-visual-sm .music-card-img {
    filter: saturate(0.8) brightness(0.9);
}

.music-card-with-art:hover .music-card-img {
    transform: scale(1.06);
    filter: saturate(1) brightness(1);
}

.music-card-visual-sm .music-card-img-overlay {
    background: linear-gradient(to right, transparent 50%, rgba(15, 14, 13, 0.85) 100%);
}

.music-card {
    padding: clamp(28px, 3.5vw, 44px);
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.music-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--red);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left center, var(--red-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.music-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.music-card:hover::before {
    width: 3px;
}

.music-card:hover::after {
    opacity: 1;
}

.music-card-featured::before {
    width: 3px;
}

.music-card-body {
    padding: clamp(28px, 3.5vw, 44px);
}

.music-card-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 14px;
    position: relative;
}

.music-card-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-bright);
    margin-right: 8px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 8px 4px var(--red-glow); }
}

.music-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 500;
    color: var(--heading);
    margin-bottom: 10px;
}

.music-card-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 18px;
    opacity: 0.85;
}

.music-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border: 1px solid rgba(200, 192, 180, 0.15);
    color: var(--text);
    border-radius: 0;
    transition: border-color 0.3s ease, color 0.3s ease;
    opacity: 0.8;
}

.tag-political { border-color: rgba(184, 68, 46, 0.5); color: var(--red-bright); opacity: 1; }
.tag-satire { border-color: rgba(200, 160, 60, 0.4); color: rgba(220, 190, 90, 0.9); opacity: 1; }
.tag-media { border-color: rgba(80, 140, 200, 0.4); color: rgba(120, 180, 240, 0.85); opacity: 1; }

.music-player-placeholder {
    margin-top: 22px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: border-color 0.3s ease;
}

.music-player-placeholder:hover {
    border-color: var(--red-dim);
}

.player-icon {
    color: var(--red);
    font-size: 0.65rem;
}


/* ============================================
   POEMS SECTION
   ============================================ */

.poems-intro {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.9vw, 1.2rem);
    font-style: italic;
    color: var(--text-dim);
    line-height: 2;
    max-width: 600px;
    margin-bottom: clamp(48px, 8vh, 96px);
    padding-left: 24px;
    border-left: 2px solid var(--red-dim);
    position: relative;
}

.poems-intro::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--red);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.poems-intro.visible::before {
    height: 100%;
}

.poem-collection {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 10vh, 120px);
}

.poem {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.poem.visible {
    opacity: 1;
    transform: translateY(0);
}

.poem-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 500;
    color: var(--heading);
    margin-bottom: clamp(20px, 3vh, 36px);
}

.poem-original {
    font-weight: 400;
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.65em;
    margin-left: 10px;
    opacity: 0.7;
}

.poem-body {
    padding-left: clamp(20px, 5vw, 56px);
    border-left: 1px solid var(--border);
    position: relative;
}

/* Glowing dot at top of poem border */
.poem-body::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

.poem-stanza {
    margin-bottom: 2em;
}

.poem-stanza:last-child {
    margin-bottom: 0;
}

.poem-stanza p {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    color: var(--text);
    line-height: 2;
    transition: color 0.3s ease;
}

/* Line-by-line reveal for poem stanzas */
.poem.visible .poem-stanza p {
    animation: lineReveal 0.8s ease forwards;
    opacity: 0;
}

.poem.visible .poem-stanza:nth-child(1) p:nth-child(1) { animation-delay: 0.1s; }
.poem.visible .poem-stanza:nth-child(1) p:nth-child(2) { animation-delay: 0.2s; }
.poem.visible .poem-stanza:nth-child(1) p:nth-child(3) { animation-delay: 0.3s; }
.poem.visible .poem-stanza:nth-child(1) p:nth-child(4) { animation-delay: 0.4s; }
.poem.visible .poem-stanza:nth-child(2) p:nth-child(1) { animation-delay: 0.5s; }
.poem.visible .poem-stanza:nth-child(2) p:nth-child(2) { animation-delay: 0.6s; }
.poem.visible .poem-stanza:nth-child(2) p:nth-child(3) { animation-delay: 0.7s; }
.poem.visible .poem-stanza:nth-child(2) p:nth-child(4) { animation-delay: 0.8s; }
.poem.visible .poem-stanza:nth-child(3) p:nth-child(1) { animation-delay: 0.9s; }
.poem.visible .poem-stanza:nth-child(3) p:nth-child(2) { animation-delay: 1.0s; }
.poem.visible .poem-stanza:nth-child(3) p:nth-child(3) { animation-delay: 1.1s; }
.poem.visible .poem-stanza:nth-child(3) p:nth-child(4) { animation-delay: 1.2s; }
.poem.visible .poem-stanza:nth-child(4) p:nth-child(1) { animation-delay: 1.3s; }
.poem.visible .poem-stanza:nth-child(4) p:nth-child(2) { animation-delay: 1.4s; }
.poem.visible .poem-stanza:nth-child(4) p:nth-child(3) { animation-delay: 1.5s; }
.poem.visible .poem-stanza:nth-child(4) p:nth-child(4) { animation-delay: 1.6s; }

@keyframes lineReveal {
    from {
        opacity: 0;
        filter: blur(2px);
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}


/* ============================================
   FRAGMENTS SECTION — Asymmetric Editorial
   ============================================ */

.section-fragments {
    background: transparent;
}

.fragments-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 7vh, 80px);
}

.fragment {
    position: relative;
    max-width: 640px;
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
    filter: blur(3px);
}

.fragment.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) !important;
    filter: blur(0);
}

/* Asymmetric positioning */
.fragment-pull-left {
    margin-right: auto;
    transform: translateY(20px) translateX(-20px);
    padding-left: clamp(24px, 5vw, 56px);
}

.fragment-pull-right {
    margin-left: auto;
    transform: translateY(20px) translateX(20px);
    padding-left: clamp(24px, 5vw, 56px);
    text-align: right;
}

.fragment-pull-right::before {
    left: auto !important;
    right: 0;
}

.fragment-center {
    margin: 0 auto;
    text-align: center;
    transform: translateY(20px);
    padding-left: 0;
    max-width: 500px;
}

.fragment-center::before {
    left: 50% !important;
    transform: translateX(-50%);
}

.fragment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.5;
    box-shadow: 0 0 12px rgba(168, 58, 42, 0.3);
}

.fragment p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-style: italic;
    color: var(--text);
    line-height: 1.85;
}

/* Final fragment — dramatic */
.fragment-final {
    max-width: 100%;
    text-align: center;
    margin: clamp(32px, 5vh, 60px) auto 0;
    padding: clamp(40px, 6vh, 80px) clamp(24px, 5vw, 60px);
    transform: translateY(30px);
    background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(168, 58, 42, 0.06) 0%, transparent 70%);
    border-top: 1px solid rgba(168, 58, 42, 0.15);
    border-bottom: 1px solid rgba(168, 58, 42, 0.15);
}

.fragment-final::before {
    display: none;
}

.fragment-final p {
    color: var(--red-bright);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    text-shadow: 0 0 40px rgba(196, 74, 56, 0.2);
    letter-spacing: 0.01em;
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.section-about {
    background: transparent;
    padding-bottom: calc(var(--section-pad) + 12vh);
}

.about-text {
    max-width: 620px;
}

.about-text p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 2;
    margin-bottom: 2em;
    color: var(--text);
}

.about-final {
    color: var(--text-dim) !important;
    font-style: italic;
    margin-bottom: 0 !important;
    position: relative;
}


/* ============================================
   LISTEN SECTION
   ============================================ */

.section-listen {
    background: transparent;
}

.listen-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 480px;
}

.listen-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(18px, 2.5vw, 28px) clamp(24px, 3.5vw, 36px);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.listen-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left center, rgba(168, 58, 42, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.listen-link:hover {
    border-color: var(--red-dim);
    transform: translateX(3px);
}

.listen-link:hover::before {
    opacity: 1;
}

.listen-link-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.listen-link-arrow {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.listen-link:hover .listen-link-arrow {
    transform: translateX(6px);
    color: var(--red-bright);
}

.listen-note {
    margin-top: 28px;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    letter-spacing: 0.02em;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 48px clamp(24px, 6vw, 80px);
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--red-dim);
}

.footer-inner {
    max-width: var(--content-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-contact {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals within sections */
.music-card.reveal:nth-child(1) { transition-delay: 0s; }
.music-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.music-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.music-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.music-card.reveal:nth-child(5) { transition-delay: 0.4s; }

.listen-link.reveal:nth-child(1) { transition-delay: 0s; }
.listen-link.reveal:nth-child(2) { transition-delay: 0.08s; }
.listen-link.reveal:nth-child(3) { transition-delay: 0.16s; }
.listen-link.reveal:nth-child(4) { transition-delay: 0.24s; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .music-card-featured {
        grid-template-columns: 1fr;
    }

    .music-card-with-art {
        grid-template-columns: 1fr;
    }

    .music-card-visual {
        min-height: 200px;
        max-height: 240px;
    }

    .music-card-visual-sm {
        height: 180px;
        width: 100%;
    }

    .music-card-img-overlay,
    .music-card-visual-sm .music-card-img-overlay {
        background: linear-gradient(to bottom, transparent 40%, rgba(15, 14, 13, 0.9) 100%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.68rem;
    }

    .section-marker {
        display: none;
    }

    .music-card {
        padding: 22px;
    }

    .music-card-body {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    /* Simplify fragment positioning on mobile */
    .fragment-pull-left,
    .fragment-pull-right,
    .fragment-center {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        transform: translateY(20px) translateX(0);
    }

    .fragment-pull-right::before {
        left: 0 !important;
        right: auto;
    }

    .fragment-center::before {
        left: 0 !important;
        transform: none;
    }

    .cursor-glow {
        display: none;
    }


}

@media (max-width: 480px) {
    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 8px;
    }

    .nav-name {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 10px;
    }

    .hero {
        min-height: 90vh;
    }

    .section-breath {
        height: 80px;
    }
}

/* ---- Print ---- */

@media print {
    .grain, .nav, .scroll-hint, .music-player-placeholder,
    .listen-links, .embers-canvas, .vignette, .cursor-glow,
    .section-breath, .section-bg, .hero-bg {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
