/* ===== RESET AND BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    background-color: #F1E9DC;
    color: #1A1A2E;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 700;
}

/* ===== PLATE SECTIONS ===== */
.plate {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border: 3px solid #1A1A2E;
    background-image:
        linear-gradient(0deg, rgba(26, 26, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 46, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

.plate-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.divider-slash {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

/* Plate 1: Hero */
.plate-1 {
    background-color: #E5E0DA;
    padding-top: 8rem;
    padding-bottom: 12rem;
}

.headline {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #1A1A2E;
    word-spacing: 100vw;
}

.subtext {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6E7B8B;
    margin-bottom: 2rem;
    max-width: 600px;
}

.action-container {
    display: flex;
    gap: 2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background-color: #B44D30;
    color: #F1E9DC;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #8B3A22;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #3D5A80;
}

/* Plate 2: The Friction */
.plate-2 {
    background-color: #F1E9DC;
    padding-top: 12rem;
    padding-bottom: 12rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1A1A2E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-block {
    max-width: 700px;
    margin-bottom: 3rem;
    column-count: 2;
    column-gap: 2rem;
}

.text-block p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #3D5A80;
}

.shape-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.angular-shape {
    filter: drop-shadow(0 4px 8px rgba(26, 26, 46, 0.2));
    animation: angular-drift 6s ease-in-out infinite;
}

.angular-shape:nth-child(2) {
    animation-delay: 1s;
}

@keyframes angular-drift {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(2deg);
    }
}

/* Plate 3: The Paradox */
.plate-3 {
    background-color: #E5E0DA;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.paradox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.paradox-item {
    padding: 2rem;
    border: 2px solid #1A1A2E;
    background-color: rgba(241, 233, 220, 0.5);
    position: relative;
}

.paradox-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #6B8F71;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.paradox-item p {
    font-size: 0.95rem;
    color: #6E7B8B;
    font-style: italic;
}

/* Plate 4: The Assembly */
.plate-4 {
    background-color: #F1E9DC;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.assembly-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.fragment {
    padding: 2rem;
    border: 3px solid #1A1A2E;
    background-color: #E5E0DA;
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fragment:nth-child(even) {
    transform: rotate(2deg);
}

.fragment:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0 #B44D30;
}

.fragment-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B8F71;
    margin-bottom: 0.5rem;
}

.fragment p {
    font-size: 1.1rem;
    color: #3D5A80;
    font-weight: 600;
}

.closing-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin-top: 3rem;
    padding: 2rem;
    border-left: 4px solid #6B8F71;
    color: #1A1A2E;
}

/* ===== PULSE ANIMATION ===== */
.pulse-target {
    position: relative;
}

.pulse-target::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* ===== PARALLAX LAYERS ===== */
#plate-1 {
    --parallax-offset: 0;
}

#plate-2 {
    --parallax-offset: -40px;
}

#plate-3 {
    --parallax-offset: 40px;
}

#plate-4 {
    --parallax-offset: -20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .plate {
        padding: 2rem 1.5rem;
    }

    .headline {
        word-spacing: initial;
        margin-bottom: 1rem;
    }

    .text-block {
        column-count: 1;
    }

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

    .assembly-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .closing-text {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .shape-container {
        justify-content: center;
        gap: 1rem;
    }

    .angular-shape {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .plate {
        padding: 1.5rem 1rem;
        border-width: 2px;
    }

    .headline {
        font-size: 2rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .divider-slash {
        height: 60px;
    }
}

/* ===== UTILITIES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
