:root {
    --red: #c5283d;
    --blue: #1e3d59;
    --yellow: #e2b33e;
    --kraft: #f0ebe3;
    --linen: #e8e0d4;
    --ink: #2d2d2d;
    --graphite: #7a7a7a;
    --moss: #4a7c59;
    --soap: #d4c5f9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--kraft);
    overflow-x: hidden;
}

/* ========== CROP MARKS ========== */

.crop-mark {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

.crop-mark::before,
.crop-mark::after {
    content: '';
    position: absolute;
    background: var(--graphite);
    opacity: 0.3;
}

.crop-mark::before {
    width: 1px;
    height: 12px;
}

.crop-mark::after {
    width: 12px;
    height: 1px;
}

.crop-mark--tl {
    top: 12px;
    left: 12px;
}
.crop-mark--tl::before { top: 0; left: 6px; }
.crop-mark--tl::after { top: 6px; left: 0; }

.crop-mark--tr {
    top: 12px;
    right: 12px;
}
.crop-mark--tr::before { top: 0; right: 6px; }
.crop-mark--tr::after { top: 6px; right: 0; }

.crop-mark--bl {
    bottom: 12px;
    left: 12px;
}
.crop-mark--bl::before { bottom: 0; left: 6px; }
.crop-mark--bl::after { bottom: 6px; left: 0; }

.crop-mark--br {
    bottom: 12px;
    right: 12px;
}
.crop-mark--br::before { bottom: 0; right: 6px; }
.crop-mark--br::after { bottom: 6px; right: 0; }

/* ========== PARALLAX CONTAINER ========== */

.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transform-style: preserve-3d;
}

/* ========== WORKSHOP SECTIONS ========== */

.workshop-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    transform-style: preserve-3d;
}

.section-01 {
    background-color: var(--kraft);
}

.section-02 {
    background-color: var(--linen);
}

.section-03 {
    background-color: var(--kraft);
}

/* ========== WATERMARK ========== */

.watermark {
    position: absolute;
    top: 33.33%;
    left: 33.33%;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--graphite);
    opacity: 0.4;
    transform: rotate(-90deg);
    transform-origin: left top;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 2px;
}

/* ========== SECTION NUMERALS ========== */

.section-numeral {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: clamp(120px, 18vw, 280px);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    animation: drift 20s linear infinite;
    user-select: none;
}

@keyframes drift {
    0%, 100% { transform: translate(-50%, -50%) translateX(-2.5%); }
    50% { transform: translate(-50%, -50%) translateX(2.5%); }
}

/* ========== GRID OVERLAY ========== */

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    pointer-events: none;
    z-index: 2;
    transform: translateZ(-0.7px) scale(1.7);
}

.grid-cell {
    border: 1px solid rgba(45, 45, 45, 0.08);
}

.grid-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ink);
    border-radius: 50%;
    opacity: 0.15;
    transform: translate(-50%, -50%);
}

/* ========== GEOMETRIC FRAMES ========== */

.geometric-frame {
    position: absolute;
    z-index: 3;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
}

/* Circle Frame - Section 01 */
.frame-circle {
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: transparent;
    top: 50%;
    left: 30%;
    transform-origin: center center;
    animation: breathe 6s ease-in-out infinite;
    margin-top: -35vw;
    margin-left: -15vw;
}

/* Square Frame - Section 02 */
.frame-square {
    width: 50vw;
    height: 50vw;
    max-width: 550px;
    max-height: 550px;
    border: 2px solid var(--blue);
    background: transparent;
    top: 50%;
    right: 25%;
    transform-origin: center center;
    animation: breathe 6s ease-in-out infinite;
    margin-top: -25vw;
}

/* Triangle Frame - Section 03 */
.frame-triangle {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 650px;
    max-height: 650px;
    top: 50%;
    left: 25%;
    margin-top: -30vw;
    animation: breathe 6s ease-in-out infinite;
}

.triangle-outer {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--yellow);
    position: absolute;
    top: 0;
    left: 0;
}

.triangle-inner {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--kraft);
    position: absolute;
    top: 3px;
    left: 3px;
}

.section-03 .triangle-inner {
    background: var(--kraft);
}

/* ========== NATURE INTRUSIONS ========== */

.nature-intrusion {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: translateZ(-0.4px) scale(1.4);
}

.nature-intrusion.visible {
    opacity: 1;
}

.nature-fern {
    width: 35vw;
    max-width: 400px;
    bottom: 5%;
    left: 15%;
}

.nature-droplets {
    width: 40vw;
    max-width: 450px;
    top: 15%;
    right: 10%;
}

.nature-roots {
    width: 45vw;
    max-width: 500px;
    bottom: 0;
    left: 20%;
}

/* ========== TEXT PANELS ========== */

.text-panel {
    position: absolute;
    z-index: 6;
    max-width: 380px;
    padding: 24px;
    background: rgba(240, 235, 227, 0.85);
    border: 1px solid rgba(45, 45, 45, 0.1);
}

.text-panel--right {
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.text-panel--left {
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.section-label {
    font-size: 22.6px;
    margin-bottom: 16px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.text-panel p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.measurement {
    display: inline-block;
    font-size: 11px;
    color: var(--graphite);
    opacity: 0.5;
    margin-top: 8px;
}

/* ========== ANNOTATIONS ========== */

.annotation {
    position: absolute;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 9px;
    color: var(--graphite);
    opacity: 0.25;
    z-index: 5;
    pointer-events: none;
}

/* ========== PROTOTYPE CARDS ========== */

.prototype-card {
    position: absolute;
    width: 160px;
    height: 220px;
    z-index: 7;
    perspective: 800px;
    cursor: pointer;
}

.section-01 .prototype-card {
    bottom: 15%;
    right: 15%;
}

.section-02 .prototype-card {
    bottom: 15%;
    left: 15%;
}

.section-03 .prototype-card {
    bottom: 15%;
    right: 20%;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.prototype-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid rgba(45, 45, 45, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card-front {
    background: var(--kraft);
}

.card-front--red { border-color: var(--red); }
.card-front--blue { border-color: var(--blue); }
.card-front--yellow { border-color: var(--yellow); }

.card-back {
    background: var(--kraft);
    transform: rotateY(180deg);
    border-color: var(--moss);
}

.card-back svg {
    width: 80%;
    height: auto;
}

.card-shape {
    margin-bottom: 16px;
}

.card-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--red);
}

.card-square {
    width: 50px;
    height: 50px;
    border: 2px solid var(--blue);
}

.card-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid transparent;
    position: relative;
}

.card-triangle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: -27px;
    width: 0;
    height: 0;
    border-left: 27px solid transparent;
    border-right: 27px solid transparent;
    border-bottom: 47px solid var(--kraft);
}

.card-triangle {
    border-bottom-color: var(--yellow);
}

.card-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 10px;
    color: var(--graphite);
    letter-spacing: 1px;
}

/* ========== BUBBLE FIELD ========== */

.bubble-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 8;
}

.bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    bottom: -50px;
    border-radius: 50%;
    background: var(--color);
    box-shadow: inset -4px -4px 8px rgba(255, 255, 255, 0.3);
    animation: bubble-rise var(--dur) var(--delay) infinite ease-in-out;
    pointer-events: none;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(calc(-100vh - 80px)) scale(1);
        opacity: 0;
    }
}

/* ========== ENDING SECTION ========== */

.ending-section {
    min-height: 60vh;
    background: var(--kraft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ending-triangle {
    width: 40px;
    height: 40px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--ink);
    opacity: 0.3;
    animation: ending-spin 12s linear infinite;
}

@keyframes ending-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
    .text-panel {
        max-width: 280px;
        padding: 16px;
    }

    .text-panel--right {
        right: 5%;
    }

    .text-panel--left {
        left: 5%;
    }

    .section-label {
        font-size: 18px;
    }

    .text-panel p {
        font-size: 14px;
    }

    .frame-circle {
        width: 85vw;
        height: 85vw;
        left: 20%;
        margin-left: -20vw;
        margin-top: -42.5vw;
    }

    .frame-square {
        width: 65vw;
        height: 65vw;
        right: 15%;
        margin-top: -32.5vw;
    }

    .frame-triangle {
        width: 75vw;
        height: 75vw;
        left: 15%;
        margin-top: -37.5vw;
    }

    .prototype-card {
        width: 120px;
        height: 170px;
    }

    .nature-fern {
        width: 50vw;
    }

    .nature-droplets {
        width: 55vw;
    }

    .nature-roots {
        width: 60vw;
    }
}

@media (max-width: 480px) {
    .text-panel {
        max-width: 240px;
        padding: 12px;
    }

    .prototype-card {
        width: 100px;
        height: 140px;
    }

    .section-numeral {
        font-size: clamp(80px, 20vw, 180px);
    }
}