:root {
    --bg: #f5f0e8;
    --red: #d94f4f;
    --blue: #3d6eb5;
    --gold: #e8a832;
    --number-text: #f0ece4;
    --body-text: #4a4a50;
    --dark-text: #2a2a2e;
    --separator: #c8c0b4;
}

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

body {
    background-color: var(--bg);
    color: var(--body-text);
    font-family: 'Work Sans', -apple-system, sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    padding: 80px 40px;
}

/* Domain name */
.domain-name {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    color: var(--dark-text);
    position: absolute;
    top: 30%;
    left: 15%;
    z-index: 5;
}

/* Geometric shapes */
.shape {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
}

.shape-number {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--number-text);
    text-align: center;
    line-height: 1;
}

.circle {
    border-radius: 50%;
}

.square {
    border-radius: 0;
}

.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 20%;
}

.shape-red {
    background-color: var(--red);
    border-color: var(--red);
}

.shape-blue {
    background-color: var(--blue);
    border-color: var(--blue);
}

.shape-gold {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Opacity states */
.pending {
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.pending.drawn {
    opacity: 1;
}

.unrealized {
    opacity: 0.2;
}

/* Section 1: The Drum */
.section-drum {
    min-height: 100vh;
}

/* Section 2: The First Draw */
.section-first-draw {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 20%;
}

/* Draw events */
.draw-event {
    position: relative;
    max-width: 400px;
}

.draw-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
    overflow: hidden;
}

.draw-square {
    width: 200px;
    height: 200px;
    border-radius: 0;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12%;
    overflow: hidden;
}

.draw-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--number-text);
    text-align: center;
}

.companion-shapes {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    position: relative;
}

.companion-shapes .shape {
    position: relative;
}

/* Section 3: The Sequence */
.section-sequence {
    min-height: 180vh;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.draw-separator {
    width: 60%;
    height: 1px;
    border-top: 1px dashed var(--separator);
    margin: 40px auto;
}

/* Section 4: The Remaining Field */
.section-remaining {
    min-height: 60vh;
}

.unrealized-field {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.remaining-text {
    max-width: 500px;
    margin-left: 15%;
    margin-top: 40px;
    opacity: 0.6;
}

/* Section 5: The Final Number */
.section-final {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.6s ease;
}

.final-circle.drawn {
    transform: scale(1);
}

.final-number {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--number-text);
    line-height: 1;
}

.final-label {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    letter-spacing: 0.02em;
    color: var(--dark-text);
    margin-top: 40px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .domain-name {
        left: 8%;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .shape {
        transform: scale(0.6);
    }

    .section-drum .shape {
        transform: scale(0.7);
    }

    .draw-event {
        margin-left: 10% !important;
        max-width: 90%;
    }

    .draw-circle,
    .draw-square {
        width: 160px;
        height: 160px;
    }

    .final-circle {
        width: 180px;
        height: 180px;
    }

    .remaining-text {
        margin-left: 8%;
        max-width: 85%;
    }

    .companion-shapes .shape {
        transform: scale(0.8);
    }
}
