/* ===========================================
   recycle.digital — Scandinavian Dopamine-Neon Grid
   =========================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #F8FAFE;
    color: #303848;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Typography --- */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    color: #101828;
    letter-spacing: -0.03em;
    line-height: 1.05;
    transition: font-weight 0.15s ease;
}

.title-dot {
    color: #E040C0;
    text-shadow: 0 0 20px rgba(224, 64, 192, 0.5);
}

.hero-subtitle {
    margin-top: 1rem;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #404858;
    max-width: 400px;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #101828;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.4em;
}

.sub-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #101828;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #303848;
    line-height: 1.8;
}

.rebel-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.7rem;
    color: #E040C0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
}

.metric-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #101828;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-unit {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.4em;
    color: #E040C0;
    vertical-align: super;
    margin-left: 0.05em;
}

.metric-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #404858;
    margin-top: 0.3em;
}

/* --- Neon Text --- */
.neon-text-magenta {
    color: #E040C0;
    text-shadow: 0 0 20px rgba(224, 64, 192, 0.4), 0 0 40px rgba(224, 64, 192, 0.15);
}

/* --- Scholar Notes --- */
.scholar-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #404858;
    opacity: 0.5;
    margin-bottom: 0.8em;
    transition: opacity 0.3s ease;
}

.scholar-icon {
    color: #404858;
    flex-shrink: 0;
}

/* --- Section Breaks (Book Motifs) --- */
.section-break {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    opacity: 0.05;
}

.section-break-final {
    padding-bottom: 4rem;
}

.book-motif {
    display: block;
}

/* --- Vintage Photography --- */
.vintage-photo {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.4s ease;
}

.vintage-photo:hover {
    filter: grayscale(0.1) contrast(1.2);
}

.vintage-svg {
    display: block;
    width: 100%;
    height: auto;
}

.neon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(224, 64, 192, 0.15) 0%, transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.neon-overlay-cyan {
    background: linear-gradient(135deg, rgba(64, 232, 224, 0.2) 0%, transparent 60%);
}

.neon-overlay-yellow {
    background: linear-gradient(135deg, rgba(232, 224, 64, 0.2) 0%, transparent 60%);
}

/* --- Neon Accent Bars --- */
.neon-accent-bar {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    margin-top: 1.5em;
}

.neon-magenta {
    background: #E040C0;
    box-shadow: 0 0 12px rgba(224, 64, 192, 0.5);
}

.neon-cyan {
    background: #40E8E0;
    box-shadow: 0 0 12px rgba(64, 232, 224, 0.5);
}

.neon-yellow {
    background: #E8E040;
    box-shadow: 0 0 12px rgba(232, 224, 64, 0.5);
}

/* --- Neon Dots --- */
.neon-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.neon-dot-magenta {
    background: #E040C0;
    box-shadow: 0 0 8px rgba(224, 64, 192, 0.6);
}

.neon-dot-cyan {
    background: #40E8E0;
    box-shadow: 0 0 8px rgba(64, 232, 224, 0.6);
}

.neon-dot-yellow {
    background: #E8E040;
    box-shadow: 0 0 8px rgba(232, 224, 64, 0.6);
}

/* --- Bounce-In Animation --- */
@keyframes neonBounce {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.02);
    }
    80% {
        transform: translateY(3px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes neonFlash {
    0% {
        box-shadow: none;
    }
    20% {
        box-shadow: 0 0 30px rgba(224, 64, 192, 0.35), 0 0 60px rgba(224, 64, 192, 0.12);
    }
    50% {
        box-shadow: 0 0 15px rgba(64, 232, 224, 0.2);
    }
    100% {
        box-shadow: none;
    }
}

.bounce-in {
    opacity: 0;
    transform: translateY(40px);
}

.bounce-in.visible {
    animation: neonBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               neonFlash 0.8s ease-out forwards;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
}

.hero-title-block {
    grid-column: 1 / 4;
    grid-row: 1;
    padding: 2rem;
    transform: rotate(-1deg);
    z-index: 2;
}

.hero-title-block .rebel-label {
    margin-bottom: 0.8rem;
}

.hero-card {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
}

.hero-card-1 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    transform: rotate(1.5deg);
    margin-left: -12px;
    z-index: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}

.hero-card-1 .vintage-photo {
    border-radius: 0;
}

.hero-card-2 {
    grid-column: 1 / 3;
    grid-row: 2;
    transform: rotate(0.5deg);
    margin-top: -12px;
    z-index: 3;
}

.hero-card-2 .rebel-label {
    margin-bottom: 0.6rem;
}

.hero-card-2 .hero-statement {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #303848;
    line-height: 1.7;
}

.hero-card-3 {
    grid-column: 2 / 4;
    grid-row: 3;
    transform: rotate(-0.8deg);
    z-index: 2;
}

.hero-card-4 {
    grid-column: 4;
    grid-row: 3;
    transform: rotate(1.2deg);
    z-index: 1;
    background: #FFFFFF;
    border-left: 2px solid #40E8E0;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-arrow {
    width: 2px;
    height: 24px;
    background: #E040C0;
    position: relative;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #E040C0;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* --- Manifesto Section --- */
.manifesto {
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.manifesto-block-1 {
    grid-column: 1 / 3;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    transform: rotate(-0.5deg);
}

.manifesto-block-1 .rebel-label {
    margin-bottom: 0.8rem;
}

.manifesto-block-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    transform: rotate(1deg);
    margin-left: -12px;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}

.manifesto-block-2 .vintage-photo {
    border-radius: 0;
    height: 100%;
}

.manifesto-block-2 .vintage-svg {
    height: 100%;
    object-fit: cover;
}

.manifesto-block-3 {
    grid-column: 1 / 3;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    transform: rotate(0.7deg);
    margin-top: -12px;
}

.manifesto-block-3 .rebel-label {
    margin-bottom: 0.6rem;
}

.manifesto-block-4 {
    grid-column: 1 / 4;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    transform: rotate(-0.3deg);
}

.manifesto-block-4 .rebel-label {
    margin-bottom: 0.5rem;
}

/* --- Process Section --- */
.process {
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-header {
    grid-column: 1 / 5;
    padding: 1rem 0 0.5rem;
}

.process-header .rebel-label {
    margin-bottom: 0.5rem;
}

.process-step {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    position: relative;
}

.process-step-1 {
    grid-column: 1 / 3;
    transform: rotate(-1deg);
}

.process-step-2 {
    grid-column: 3 / 5;
    transform: rotate(1.2deg);
    margin-top: 1.5rem;
}

.process-step-3 {
    grid-column: 2 / 4;
    transform: rotate(-0.6deg);
    margin-top: -0.5rem;
}

.step-number {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.big-number {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #101828;
    line-height: 1;
    opacity: 0.12;
}

/* --- Stats Section --- */
.stats {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-block {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
}

.stat-block-1 {
    grid-column: 1 / 3;
    transform: rotate(0.8deg);
}

.stat-block-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    transform: rotate(-1.2deg);
    margin-left: -12px;
}

.stat-block-2 .rebel-label {
    margin-bottom: 0.6rem;
}

.stat-block-3 {
    grid-column: 1 / 2;
    transform: rotate(-0.5deg);
    padding: 0;
    overflow: hidden;
}

.stat-block-3 .vintage-photo {
    border-radius: 0;
    height: 100%;
}

.stat-block-3 .vintage-svg {
    height: 100%;
}

.stat-block-4 {
    grid-column: 2 / 3;
    transform: rotate(1.5deg);
    margin-top: -12px;
}

.stat-block-5 {
    grid-column: 3 / 5;
    transform: rotate(-0.7deg);
}

/* --- Decay Visualization --- */
.decay-visualization {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.decay-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.decay-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    color: #404858;
    min-width: 35px;
}

.decay-fill {
    height: 6px;
    border-radius: 3px;
    background: #40E8E0;
    box-shadow: 0 0 8px rgba(64, 232, 224, 0.3);
    width: 0;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.decay-fill-danger {
    background: #E040C0;
    box-shadow: 0 0 8px rgba(224, 64, 192, 0.3);
}

.decay-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.6rem;
    color: #404858;
    opacity: 0.6;
    white-space: nowrap;
}

/* --- Principles Section --- */
.principles {
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.principles-header {
    grid-column: 1 / 5;
    padding: 1rem 0 0.5rem;
}

.principles-header .rebel-label {
    margin-bottom: 0.5rem;
}

.principle-card {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.principle-card:hover {
    transform: rotate(0deg) !important;
}

.principle-card-1 {
    grid-column: 1 / 3;
    transform: rotate(-1.2deg);
}

.principle-card-2 {
    grid-column: 3 / 5;
    transform: rotate(0.8deg);
    margin-top: 1rem;
}

.principle-card-3 {
    grid-column: 1 / 3;
    transform: rotate(0.5deg);
    margin-top: -12px;
}

.principle-card-4 {
    grid-column: 3 / 5;
    transform: rotate(-0.9deg);
}

.principle-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 2rem;
    color: #E040C0;
    opacity: 0.2;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Archive Section --- */
.archive {
    padding: 2rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.archive-header {
    grid-column: 1 / 5;
    padding: 1rem 0 0.5rem;
}

.archive-header .rebel-label {
    margin-bottom: 0.5rem;
}

.archive-item {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2rem;
    position: relative;
}

.archive-item-1 {
    grid-column: 1 / 3;
    transform: rotate(-0.8deg);
}

.archive-item-2 {
    grid-column: 3 / 5;
    transform: rotate(1.1deg);
    margin-top: 1rem;
}

.archive-item-3 {
    grid-column: 1 / 5;
    grid-row: 3;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    transform: rotate(0.3deg);
}

.archive-item-3 .vintage-photo {
    border-radius: 0;
}

.archive-item-4 {
    grid-column: 2 / 4;
    transform: rotate(-0.6deg);
    margin-top: -12px;
}

.archive-tag {
    margin-bottom: 1rem;
}

.archive-meta {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.archive-meta-item {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.65rem;
    color: #404858;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
}

/* --- Closing Section --- */
.closing {
    padding: 4rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.closing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.closing-block {
    grid-column: 1 / 4;
    padding: 2rem;
    transform: rotate(-0.5deg);
}

.closing-block .rebel-label {
    margin-bottom: 0.8rem;
}

.closing-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #101828;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.6em;
}

.closing-text {
    max-width: 600px;
    margin-bottom: 2rem;
}

.closing-signature {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(64, 72, 88, 0.1);
}

.closing-year {
    color: #404858;
    opacity: 0.5;
}

.closing-neon-blocks {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: rotate(2deg);
}

.neon-block {
    width: 100%;
    height: 24px;
    border-radius: 4px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.neon-block-magenta {
    background: #E040C0;
    box-shadow: 0 0 20px rgba(224, 64, 192, 0.4);
}

.neon-block-cyan {
    background: #40E8E0;
    box-shadow: 0 0 20px rgba(64, 232, 224, 0.4);
    width: 75%;
}

.neon-block-yellow {
    background: #E8E040;
    box-shadow: 0 0 20px rgba(232, 224, 64, 0.4);
    width: 50%;
}

/* --- Weight Shift Animation (variable-fluid typography) --- */
@keyframes weightShift {
    0%, 100% { font-weight: 900; }
    50% { font-weight: 300; }
}

.hero-title {
    animation: weightShift 4s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-grid,
    .manifesto-grid,
    .process-grid,
    .stats-grid,
    .principles-grid,
    .archive-grid,
    .closing-grid {
        grid-template-columns: 1fr;
    }

    .hero-title-block,
    .hero-card-1,
    .hero-card-2,
    .hero-card-3,
    .hero-card-4,
    .manifesto-block-1,
    .manifesto-block-2,
    .manifesto-block-3,
    .manifesto-block-4,
    .process-header,
    .process-step-1,
    .process-step-2,
    .process-step-3,
    .stat-block-1,
    .stat-block-2,
    .stat-block-3,
    .stat-block-4,
    .stat-block-5,
    .principles-header,
    .principle-card-1,
    .principle-card-2,
    .principle-card-3,
    .principle-card-4,
    .archive-header,
    .archive-item-1,
    .archive-item-2,
    .archive-item-3,
    .archive-item-4,
    .closing-block,
    .closing-neon-blocks {
        grid-column: 1;
        grid-row: auto;
        margin-left: 0;
        margin-top: 0;
    }

    .hero {
        padding: 3rem 1.25rem;
    }

    .manifesto,
    .process,
    .stats,
    .principles,
    .archive,
    .closing {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .closing-neon-blocks {
        flex-direction: row;
        transform: rotate(-1deg);
    }

    .neon-block {
        height: 16px;
        width: 100%;
    }

    .neon-block-cyan {
        width: 100%;
    }

    .neon-block-yellow {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .metric-number {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
