/* double-standard.org — Brutalist Anti-Design Experiment */
/* Palette: #ffffff, #000000, #dc2626, #999999, #fef08a, #f3f4f6 */
/* Fonts: Space Grotesk 800, Inter 400, Fira Code 400 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ─── Grid-line background at 5% opacity ─── */
.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, #000000 1px, transparent 1px),
        linear-gradient(to bottom, #000000 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.05;
}

/* ─── Shared: Dashed Borders ─── */
.dashed {
    border: 1px dashed #999999;
    padding: 16px;
}

/* ─── Shared: Section Label ─── */
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 48px);
    color: #000000;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* ─── Shared: Highlight (marker pen) ─── */
.highlight {
    background: linear-gradient(transparent 60%, #fef08a 60%);
    padding: 0 2px;
}

/* ─── Shared: Red underline on hypocritical quotes ─── */
.red-underline {
    text-decoration: underline;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ════════════════════════════════════════════
   SECTION 1: CONFRONTATION (0–100vh)
   ════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.hero-brand {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    overflow: hidden;
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 12vw, 100px);
    color: #000000;
    line-height: 0.95;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.03em;
}

/* Strikethrough on "standard" */
.brand-strike {
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 4px;
}

/* Ghost strikethrough overlay at low opacity */
.brand-ghost {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 12vw, 100px);
    color: #dc2626;
    line-height: 0.95;
    white-space: nowrap;
    opacity: 0.12;
    pointer-events: none;
    letter-spacing: -0.03em;
}

.brand-ghost s {
    text-decoration-thickness: 4px;
}

/* Red text block overlapping at an angle */
.hero-red-block {
    position: absolute;
    top: 58%;
    left: 4%;
    background: #dc2626;
    color: #ffffff;
    padding: 20px 28px;
    transform: rotate(-2.5deg);
    z-index: 2;
    max-width: 440px;
    border: none;
}

.red-block-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.35;
}

/* Sub-text dashed block */
.hero-subtext {
    position: absolute;
    bottom: 6%;
    right: 5%;
    max-width: 350px;
    z-index: 2;
    background: #f3f4f6;
}

.hero-subtext p {
    font-family: 'Fira Code', monospace;
    font-size: clamp(11px, 1.4vw, 14px);
    color: #000000;
    line-height: 1.5;
}

/* ════════════════════════════════════════════
   SECTION 2: EVIDENCE (100–300vh)
   ════════════════════════════════════════════ */
.evidence {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.evidence-header {
    margin-bottom: 48px;
    display: inline-block;
    background: #ffffff;
}

/* Dual column blocks */
.dual-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    margin-bottom: 0;
}

/* Overlapping / colliding sections */
.collide-block {
    position: relative;
    margin-top: -40px;
    z-index: auto;
}

.collide-block:first-of-type {
    margin-top: 0;
}

.collide-block:nth-child(odd) {
    z-index: 2;
}

.collide-block:nth-child(even) {
    z-index: 3;
}

.standard-box {
    padding: 24px;
    position: relative;
}

.left-box {
    background: #ffffff;
}

.right-box {
    background: #f3f4f6;
    transform: translateY(12px);
}

.box-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: #000000;
}

.right-box .box-label {
    color: #dc2626;
}

.box-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #000000;
}

/* ════════════════════════════════════════════
   SECTION 3: ANALYSIS (300–370vh)
   ════════════════════════════════════════════ */
.analysis {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.analysis-header {
    display: inline-block;
    margin-bottom: 40px;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Colliding stats: slight overlaps */
.collide-stat:nth-child(2) {
    transform: translateY(-8px);
}

.collide-stat:nth-child(4) {
    transform: translateX(10px);
}

.collide-stat:nth-child(5) {
    transform: translate(-6px, -12px);
}

.collide-stat:nth-child(6) {
    transform: translateY(6px);
}

.stat-value {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 42px);
    color: #dc2626;
    line-height: 1;
}

.stat-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
}

/* ════════════════════════════════════════════
   SECTION 4: ACTION (370vh+) — Clean, structured
   ════════════════════════════════════════════ */
.action {
    position: relative;
    z-index: 1;
    padding: 100px 24px 120px;
    text-align: center;
    background: #ffffff;
    border-top: 2px solid #000000;
}

.action-inner {
    max-width: 600px;
    margin: 0 auto;
}

.action-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 6vw, 56px);
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.action-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 32px;
}

.action-tagline {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 15px;
    color: #dc2626;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
}

.action-line {
    width: 60px;
    height: 2px;
    background: #000000;
    margin: 0 auto 24px;
}

.action-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #999999;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* ════════════════════════════════════════════
   ANIMATIONS: Scroll-triggered reveals
   ════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered reveal for dual blocks */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stat items: stagger via transition-delay set in JS */
.stat-item.reveal {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .dual-block {
        grid-template-columns: 1fr;
    }

    .right-box {
        transform: translateY(0);
    }

    .collide-block {
        margin-top: -20px;
    }

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

    .collide-stat:nth-child(2),
    .collide-stat:nth-child(4),
    .collide-stat:nth-child(5),
    .collide-stat:nth-child(6) {
        transform: none;
    }

    .hero-red-block {
        top: auto;
        bottom: 20%;
        left: 4%;
        max-width: 80%;
    }

    .hero-subtext {
        bottom: 4%;
        right: 4%;
        max-width: 260px;
    }
}

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

    .hero-brand {
        padding: 12px;
    }

    .brand-text {
        font-size: 40px;
        white-space: normal;
    }

    .brand-ghost {
        font-size: 40px;
        white-space: normal;
    }
}
