/* =====================================================
   quirk.one — Avant-Garde / Maximalist Design System
   Colors: #0a0a0a #fafafa #27272a #18181b #d4d4d8 #7c3aed #4c1d95 #a78bfa
   Fonts: Playfair Display (display/manifesto), Space Grotesk (body)
   ===================================================== */

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

:root {
    --void:       #0a0a0a;
    --paper:      #fafafa;
    --zinc-dark:  #27272a;
    --zinc-deep:  #18181b;
    --zinc-light: #d4d4d8;
    --violet:     #7c3aed;
    --violet-deep:#4c1d95;
    --violet-soft:#a78bfa;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Space Grotesk', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* =====================================================
   HERO / MANIFESTO WALL
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
    position: relative;
    overflow: hidden;
    background: var(--void);
}

.hero-inner {
    max-width: none;
    padding-top: 80px;
}

.hero-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zinc-light);
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* Oversized display title — bleeds off right edge intentionally */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    white-space: nowrap;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin-bottom: 2.5rem;
    /* Text bleeds off screen — deliberately cropped */
    display: block;
    overflow: visible;
    position: relative;
    left: -4px;
}

/* Each letter as a span for fine control */
.hero-title span {
    display: inline;
    transition: color 0.3s ease;
}

/* The highlighted letter — violet disruption */
.letter-highlight {
    color: var(--violet) !important;
}

.hero-dot-sep {
    color: var(--violet-soft);
    opacity: 0.8;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--zinc-light);
    max-width: 420px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-rule {
    width: 60px;
    height: 2px;
    background: var(--violet);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--zinc-light);
    opacity: 0.6;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 48px;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--zinc-light);
    opacity: 0.4;
    writing-mode: horizontal-tb;
}

.hero-scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--zinc-light);
    opacity: 0.4;
    margin: 0.5rem auto 0;
}

/* =====================================================
   HORIZONTAL SCROLL BAND
   ===================================================== */

.hscroll-section {
    height: 220px;
    overflow: hidden;
    background: var(--zinc-deep);
    border-top: 1px solid var(--zinc-dark);
    border-bottom: 1px solid var(--zinc-dark);
    display: flex;
    align-items: center;
    position: relative;
}

.hscroll-track {
    display: flex;
    align-items: center;
    gap: 0;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.hscroll-track:active {
    cursor: grabbing;
}

.hscroll-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 56px;
    border-right: 1px solid var(--zinc-dark);
    flex-shrink: 0;
    height: 220px;
    transition: background 0.3s ease;
    position: relative;
}

.hscroll-item:hover {
    background: var(--zinc-dark);
}

.hscroll-item:hover .hscroll-word {
    color: var(--violet-soft);
}

.hscroll-num {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--zinc-light);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.hscroll-word {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--paper);
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* =====================================================
   STATEMENT CARDS GRID
   ===================================================== */

.statements-section {
    padding: 120px 48px;
    background: var(--void);
}

.statements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    max-width: 1400px;
    margin: 0 auto;
}

.statement-card {
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Card: Large (top-left) */
.statement-card--large {
    background: var(--zinc-deep);
    grid-column: 1;
    grid-row: 1;
}

.statement-card--large:hover {
    background: var(--zinc-dark);
}

/* Card: Accent (top-right) */
.statement-card--accent {
    background: var(--violet-deep);
    grid-column: 2;
    grid-row: 1;
}

.statement-card--accent:hover {
    background: var(--violet);
}

.card-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--violet-soft);
}

/* Card: Invert (bottom-left) */
.statement-card--invert {
    background: var(--paper);
    color: var(--void);
    grid-column: 1;
    grid-row: 2;
}

.statement-card--invert .card-index {
    color: var(--zinc-dark);
    opacity: 0.5;
}

.statement-card--invert .card-heading {
    color: var(--void);
}

.statement-card--invert .card-body {
    color: var(--zinc-deep);
}

/* Card: Wide (bottom-right) */
.statement-card--wide {
    background: var(--zinc-deep);
    grid-column: 2;
    grid-row: 2;
}

.statement-card--wide:hover {
    background: var(--zinc-dark);
}

.card-violet-mark {
    position: absolute;
    top: 56px;
    right: 56px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--violet);
}

/* Card shared styles */
.card-index {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--zinc-light);
    opacity: 0.45;
    margin-bottom: 1.8rem;
}

.card-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin-bottom: 1.5rem;
}

.card-heading em {
    font-style: italic;
    color: var(--violet-soft);
}

.statement-card--accent .card-heading {
    color: var(--paper);
}

.card-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--zinc-light);
    font-weight: 400;
    max-width: 380px;
}

.statement-card--accent .card-body {
    color: rgba(250,250,250,0.75);
}

/* =====================================================
   MANIFESTO TEXT BLOCK
   ===================================================== */

.manifesto-section {
    padding: 120px 0;
    background: var(--zinc-deep);
    border-top: 1px solid var(--zinc-dark);
}

.manifesto-inner {
    display: flex;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    align-items: flex-start;
}

.manifesto-side-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--zinc-light);
    opacity: 0.4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    padding-top: 8px;
    flex-shrink: 0;
}

.manifesto-content {
    flex: 1;
    max-width: 740px;
}

.manifesto-large {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin-bottom: 2.5rem;
}

.manifesto-divider {
    width: 40px;
    height: 2px;
    background: var(--violet);
    margin-bottom: 2.5rem;
}

.manifesto-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--zinc-light);
    margin-bottom: 1.4rem;
}

.manifesto-signature {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--violet-soft);
    margin-top: 2.5rem;
}

/* =====================================================
   FOOTER — SINGLE DOT
   ===================================================== */

.footer {
    height: 140px;
    background: var(--void);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--zinc-dark);
}

.footer-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--violet);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

.footer-dot:hover {
    transform: scale(2.5);
    background: var(--violet-soft);
}

.footer-dot.pulse {
    animation: dotPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dotPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(3.5); background: var(--violet-soft); }
    100% { transform: scale(1); }
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* =====================================================
   HERO TITLE ENTRANCE
   ===================================================== */

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    animation: heroSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-subtitle {
    animation: heroSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-rule {
    animation: heroSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.hero-tagline {
    animation: heroSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.hero-label {
    animation: heroSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

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

@media (max-width: 900px) {
    .hero {
        padding: 0 24px;
    }

    .statements-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .statement-card--large,
    .statement-card--accent,
    .statement-card--invert,
    .statement-card--wide {
        grid-column: 1;
        grid-row: auto;
    }

    .statement-card {
        padding: 48px 32px;
    }

    .manifesto-inner {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
    }

    .manifesto-side-label {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .statements-section {
        padding: 80px 24px;
    }

    .manifesto-section {
        padding: 80px 0;
    }

    .hscroll-item {
        padding: 0 32px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 0 20px;
    }

    .hero-scroll-hint {
        left: 20px;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }
}
