/* ============================================================
   mechanic.stream — Workshop Journal
   Colors: #1B4332, #2D6A4F, #52796F, #D4A373, #F5ECD7, #E8D5B5, #2B2118, #E8F5E9
   Fonts: Space Grotesk (display), Nunito (body), Caveat (annotations)
   ============================================================ */

:root {
    --deep-forest: #1B4332;
    --emerald: #2D6A4F;
    --sage: #52796F;
    --copper: #D4A373;
    --parchment: #F5ECD7;
    --toasted-linen: #E8D5B5;
    --soot: #2B2118;
    --chalk: #E8F5E9;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-hand: 'Caveat', cursive;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--parchment);
    color: var(--soot);
    line-height: 1.75;
    overflow-x: hidden;
    /* Paper grain texture - inline SVG noise */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='23' cy='14' r='0.5' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='67' cy='31' r='0.7' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='112' cy='8' r='0.4' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='156' cy='42' r='0.6' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='34' cy='78' r='0.5' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='89' cy='55' r='0.8' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='143' cy='91' r='0.4' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='178' cy='67' r='0.6' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='12' cy='134' r='0.7' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='56' cy='112' r='0.5' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='98' cy='148' r='0.6' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='167' cy='123' r='0.3' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='45' cy='167' r='0.5' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='123' cy='178' r='0.7' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='189' cy='156' r='0.4' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='78' cy='190' r='0.6' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='145' cy='34' r='0.3' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='34' cy='45' r='0.4' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='176' cy='189' r='0.5' fill='rgba(43,33,24,0.03)'/%3E%3Ccircle cx='8' cy='98' r='0.6' fill='rgba(43,33,24,0.03)'/%3E%3C/svg%3E");
}

/* ============================================================
   LAYOUT: SPLIT-SCREEN ARCHITECTURE
   ============================================================ */

.workshop-journal {
    width: 100%;
    position: relative;
}

.spread {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.split-left {
    flex: 0 0 55%;
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.split-right {
    flex: 0 0 45%;
    padding: 4rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   TORN PAPER EDGES
   ============================================================ */

.torn-edge-vertical {
    position: absolute;
    top: 0;
    left: 55%;
    width: 24px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to right, var(--parchment) 0%, var(--parchment) 40%, transparent 100%);
    clip-path: polygon(
        0% 0%, 65% 1.2%, 20% 2.8%, 75% 4.5%, 30% 6.1%, 80% 7.8%,
        15% 9.5%, 70% 11.2%, 25% 12.9%, 78% 14.5%, 10% 16.2%, 68% 17.9%,
        22% 19.6%, 72% 21.2%, 18% 22.9%, 80% 24.6%, 28% 26.2%, 65% 27.9%,
        12% 29.6%, 75% 31.2%, 30% 32.9%, 70% 34.6%, 8% 36.2%, 78% 37.9%,
        20% 39.6%, 68% 41.2%, 35% 42.9%, 72% 44.6%, 15% 46.2%, 80% 47.9%,
        25% 49.6%, 65% 51.2%, 10% 52.9%, 75% 54.6%, 32% 56.2%, 70% 57.9%,
        18% 59.6%, 78% 61.2%, 28% 62.9%, 62% 64.6%, 8% 66.2%, 72% 67.9%,
        22% 69.6%, 80% 71.2%, 15% 72.9%, 68% 74.6%, 30% 76.2%, 75% 77.9%,
        12% 79.6%, 70% 81.2%, 25% 82.9%, 78% 84.6%, 18% 86.2%, 65% 87.9%,
        35% 89.6%, 72% 91.2%, 10% 92.9%, 80% 94.6%, 28% 96.2%, 68% 97.9%,
        40% 99.5%, 0% 100%
    );
    will-change: transform;
}

.torn-edge-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--parchment) 0%, var(--parchment) 40%, transparent 100%);
    clip-path: polygon(
        0% 0%, 0% 60%, 2% 20%, 4% 70%, 6% 10%, 8% 65%, 10% 25%, 12% 75%,
        14% 15%, 16% 70%, 18% 30%, 20% 80%, 22% 10%, 24% 65%, 26% 35%,
        28% 75%, 30% 20%, 32% 70%, 34% 5%, 36% 80%, 38% 25%, 40% 65%,
        42% 15%, 44% 75%, 46% 30%, 48% 70%, 50% 10%, 52% 80%, 54% 20%,
        56% 65%, 58% 35%, 60% 75%, 62% 15%, 64% 70%, 66% 25%, 68% 80%,
        70% 10%, 72% 65%, 74% 30%, 76% 75%, 78% 20%, 80% 70%, 82% 5%,
        84% 80%, 86% 25%, 88% 65%, 90% 15%, 92% 75%, 94% 30%, 96% 70%,
        98% 20%, 100% 60%, 100% 0%
    );
}

.torn-to-blueprint {
    background: linear-gradient(to bottom, var(--parchment) 0%, var(--parchment) 40%, transparent 100%);
}

.torn-from-blueprint {
    top: auto;
    bottom: 0;
    background: linear-gradient(to top, var(--parchment) 0%, var(--parchment) 40%, transparent 100%);
    clip-path: polygon(
        0% 100%, 0% 40%, 2% 80%, 4% 30%, 6% 90%, 8% 35%, 10% 75%, 12% 25%,
        14% 85%, 16% 30%, 18% 70%, 20% 20%, 22% 90%, 24% 35%, 26% 65%,
        28% 25%, 30% 80%, 32% 30%, 34% 95%, 36% 20%, 38% 75%, 40% 35%,
        42% 85%, 44% 25%, 46% 70%, 48% 30%, 50% 90%, 52% 20%, 54% 80%,
        56% 35%, 58% 65%, 60% 25%, 62% 85%, 64% 30%, 66% 75%, 68% 20%,
        70% 90%, 72% 35%, 74% 70%, 76% 25%, 78% 80%, 80% 30%, 82% 95%,
        84% 20%, 86% 75%, 88% 35%, 90% 85%, 92% 25%, 94% 70%, 96% 30%,
        98% 80%, 100% 40%, 100% 100%
    );
}

.torn-footer {
    top: auto;
    bottom: 0;
    background: linear-gradient(to top, var(--toasted-linen) 0%, var(--toasted-linen) 40%, transparent 100%);
    clip-path: polygon(
        0% 100%, 0% 50%, 3% 80%, 6% 30%, 9% 70%, 12% 20%, 15% 75%, 18% 35%,
        21% 80%, 24% 25%, 27% 70%, 30% 15%, 33% 85%, 36% 30%, 39% 65%,
        42% 20%, 45% 80%, 48% 35%, 51% 75%, 54% 20%, 57% 70%, 60% 30%,
        63% 85%, 66% 25%, 69% 70%, 72% 15%, 75% 80%, 78% 30%, 81% 65%,
        84% 20%, 87% 75%, 90% 35%, 93% 80%, 96% 25%, 99% 70%, 100% 50%,
        100% 100%
    );
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */

.spread-hero {
    height: 100vh;
    min-height: 100vh;
    background-color: var(--parchment);
}

.spread-hero .split-right {
    background-color: var(--toasted-linen);
}

.hero-workbench {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-assembly {
    position: relative;
}

.gear-main {
    animation: slowSpin 30s linear infinite;
}

.gear-small {
    position: absolute;
    top: -20px;
    right: -50px;
    animation: slowSpinReverse 20s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Floating elements in hero */
.float-bolt-1 {
    position: absolute;
    top: 18%;
    left: 12%;
}

.float-spring-1 {
    position: absolute;
    bottom: 22%;
    right: 8%;
}

/* Hero title block */
.hero-title-block {
    text-align: center;
}

.torn-strip {
    display: inline-block;
    background-color: var(--parchment);
    padding: 0.3rem 1.5rem;
    margin: 0.2rem 0;
    position: relative;
    clip-path: polygon(2% 0%, 98% 2%, 100% 40%, 99% 100%, 1% 98%, 0% 55%);
}

.strip-1 {
    transform: rotate(-1.5deg);
}

.strip-2 {
    transform: rotate(1deg);
}

.strip-3 {
    transform: rotate(-0.5deg);
}

.hero-word {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--deep-forest);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.hero-dot {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--copper);
    letter-spacing: 0.04em;
    line-height: 1;
}

.hero-tagline {
    margin-top: 1.5rem;
}

.hero-annotation {
    margin-top: 1rem;
    display: block;
}

/* ============================================================
   RUBBER STAMP MOTIF
   ============================================================ */

.rubber-stamp {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--copper);
    border: 2px solid var(--copper);
    border-radius: 2px;
    padding: 0.3rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(-2deg);
    position: relative;
    /* Patchy ink effect via mask */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect width='100' height='100' fill='white'/%3E%3Ccircle cx='15' cy='20' r='8' fill='rgba(0,0,0,0.15)'/%3E%3Ccircle cx='55' cy='10' r='6' fill='rgba(0,0,0,0.1)'/%3E%3Ccircle cx='85' cy='45' r='10' fill='rgba(0,0,0,0.12)'/%3E%3Ccircle cx='30' cy='70' r='7' fill='rgba(0,0,0,0.1)'/%3E%3Ccircle cx='75' cy='80' r='9' fill='rgba(0,0,0,0.13)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect width='100' height='100' fill='white'/%3E%3Ccircle cx='15' cy='20' r='8' fill='rgba(0,0,0,0.15)'/%3E%3Ccircle cx='55' cy='10' r='6' fill='rgba(0,0,0,0.1)'/%3E%3Ccircle cx='85' cy='45' r='10' fill='rgba(0,0,0,0.12)'/%3E%3Ccircle cx='30' cy='70' r='7' fill='rgba(0,0,0,0.1)'/%3E%3Ccircle cx='75' cy='80' r='9' fill='rgba(0,0,0,0.13)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100px 100px;
    mask-size: 100px 100px;
}

/* ============================================================
   ANNOTATION TEXT (Caveat handwriting)
   ============================================================ */

.annotation {
    font-family: var(--font-hand);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    color: var(--sage);
    line-height: 1.4;
}

/* ============================================================
   SECTION 2: TOOL CATALOG
   ============================================================ */

.spread-catalog {
    min-height: 120vh;
    background-color: var(--parchment);
    flex-direction: row-reverse;
}

.spread-catalog .split-left {
    order: 2;
}

.spread-catalog .split-right {
    order: 1;
    background-color: var(--toasted-linen);
}

.spread-catalog .torn-edge-vertical {
    left: 45%;
    background: linear-gradient(to left, var(--parchment) 0%, var(--parchment) 40%, transparent 100%);
}

.catalog-cards {
    max-width: 440px;
}

.catalog-text-side {
    align-items: flex-start;
    padding-top: 6rem;
}

/* ============================================================
   PAPER CARDS WITH DOG-EARS
   ============================================================ */

.paper-card,
.story-card {
    background-color: #FFFFFF;
    padding: 1.8rem 1.8rem 1.4rem;
    margin-bottom: 1.8rem;
    position: relative;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 300ms ease,
                clip-path 300ms ease;
    filter: drop-shadow(2px 2px 3px rgba(43, 33, 24, 0.12));
    /* Paper fiber texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='rgba(43,33,24,0.015)' stroke-width='0.5'/%3E%3Cline x1='20' y1='0' x2='120' y2='100' stroke='rgba(43,33,24,0.015)' stroke-width='0.5'/%3E%3Cline x1='40' y1='0' x2='140' y2='100' stroke='rgba(43,33,24,0.015)' stroke-width='0.5'/%3E%3Cline x1='60' y1='0' x2='160' y2='100' stroke='rgba(43,33,24,0.015)' stroke-width='0.5'/%3E%3Cline x1='80' y1='0' x2='180' y2='100' stroke='rgba(43,33,24,0.015)' stroke-width='0.5'/%3E%3C/svg%3E");
    /* Dog-ear clip */
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    opacity: 0;
    transform: translateY(25px);
}

.paper-card.revealed,
.story-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paper-card:hover,
.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(43, 33, 24, 0.15);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.paper-card.revealed:hover,
.story-card.revealed:hover {
    transform: translateY(-6px);
}

/* Dog-ear fold triangle */
.dog-ear-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--toasted-linen);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    z-index: 2;
    transition: width 300ms ease, height 300ms ease;
}

.paper-card:hover .dog-ear-fold,
.story-card:hover .dog-ear-fold {
    width: 26px;
    height: 26px;
}

/* ============================================================
   TAPE STRIPS
   ============================================================ */

.tape-strip {
    position: absolute;
    top: -6px;
    right: 40px;
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.7) 0%, rgba(212, 163, 115, 0.55) 100%);
    color: var(--parchment);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    z-index: 3;
    transition: transform 300ms ease;
}

.tape-1 { transform: rotate(-1.5deg); }
.tape-2 { transform: rotate(2deg); right: 50px; }
.tape-3 { transform: rotate(-0.8deg); right: 30px; }
.tape-story-1 { transform: rotate(1.5deg); }
.tape-story-2 { transform: rotate(-2deg); right: 45px; }
.tape-story-3 { transform: rotate(1deg); right: 35px; }

.paper-card:hover .tape-strip,
.story-card:hover .tape-strip {
    transform: rotate(-2deg);
}

.paper-card:hover .tape-2 { transform: rotate(1.5deg); }
.paper-card:hover .tape-3 { transform: rotate(-1.3deg); }
.story-card:hover .tape-story-1 { transform: rotate(1deg); }
.story-card:hover .tape-story-2 { transform: rotate(-2.5deg); }
.story-card:hover .tape-story-3 { transform: rotate(0.5deg); }

/* ============================================================
   CARD TYPOGRAPHY
   ============================================================ */

.card-heading {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--deep-forest);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.card-body {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 400;
    color: var(--soot);
    line-height: 1.75;
    max-width: 42ch;
    margin-bottom: 0.6rem;
}

.card-note,
.card-date {
    display: block;
    margin-top: 0.5rem;
}

/* ============================================================
   FLOATING ELEMENTS SYSTEM
   ============================================================ */

.floating-element {
    opacity: 0;
    transition: opacity 800ms ease;
}

.floating-element.visible {
    opacity: 0.2;
}

.floating-element:hover {
    opacity: 0.5;
}

.floating-element:hover svg {
    transform: scale(1.08);
    transition: transform 300ms ease;
}

.floating-element:hover svg path,
.floating-element:hover svg rect,
.floating-element:hover svg circle,
.floating-element:hover svg polygon {
    stroke: var(--deep-forest);
    transition: stroke 300ms ease;
}

/* Tool catalog floating elements */
.float-wrench {
    position: absolute;
    top: 10%;
    left: 30%;
}

.float-caliper {
    position: absolute;
    top: 45%;
    right: 15%;
}

.float-ratchet {
    position: absolute;
    bottom: 15%;
    left: 20%;
}

.float-label {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.tool-float-area {
    position: relative;
    width: 100%;
    height: 60vh;
}

/* ============================================================
   AMBIENT FLOATING LAYER (viewport-fixed)
   ============================================================ */

.ambient-floats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ambient-floats > div {
    position: absolute;
    opacity: 0;
    transition: opacity 800ms ease;
}

.ambient-floats > div.visible {
    opacity: 0.15;
}

.amb-1 {
    top: 15%;
    left: 3%;
}

.amb-2 {
    top: 40%;
    right: 4%;
    left: auto;
}

.amb-3 {
    top: 65%;
    left: 6%;
}

.amb-4 {
    top: 80%;
    right: 8%;
    left: auto;
}

/* Floating keyframes - varied durations */
@keyframes floatA {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(6px, -12px) rotate(3deg); }
    50% { transform: translate(-4px, -6px) rotate(-2deg); }
    75% { transform: translate(8px, -16px) rotate(1.5deg); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-8px, -10px) rotate(-2deg); }
    40% { transform: translate(5px, -18px) rotate(4deg); }
    60% { transform: translate(-6px, -8px) rotate(-1deg); }
    80% { transform: translate(4px, -14px) rotate(2deg); }
}

@keyframes floatC {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -14px) rotate(-3deg); }
    66% { transform: translate(-7px, -20px) rotate(2deg); }
}

@keyframes floatD {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-5px, -8px) rotate(1deg); }
    35% { transform: translate(7px, -16px) rotate(-2deg); }
    55% { transform: translate(-3px, -12px) rotate(3deg); }
    75% { transform: translate(6px, -6px) rotate(-1deg); }
}

/* Applied via JS based on data-float duration */
.float-anim-a { animation: floatA var(--float-dur, 12s) ease-in-out infinite; }
.float-anim-b { animation: floatB var(--float-dur, 15s) ease-in-out infinite; }
.float-anim-c { animation: floatC var(--float-dur, 18s) ease-in-out infinite; }
.float-anim-d { animation: floatD var(--float-dur, 20s) ease-in-out infinite; }

/* ============================================================
   SECTION 3: BLUEPRINT
   ============================================================ */

.spread-blueprint {
    min-height: 100vh;
    background-color: var(--deep-forest);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
}

.blueprint-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
}

.blueprint-label {
    color: var(--chalk);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.blueprint-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--chalk);
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
}

.blueprint-diagram {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
}

.diagram-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Line drawing animation - stroke-dashoffset */
.draw-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.5s ease-out;
}

.draw-line.drawn {
    stroke-dashoffset: 0;
}

/* Blueprint labels */
.blueprint-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bp-label {
    position: absolute;
    font-family: var(--font-hand);
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    color: var(--chalk);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
}

.bp-label.shown {
    opacity: 0.85;
    transform: translateY(0);
}

/* ============================================================
   SECTION 4: WORKSHOP STORIES
   ============================================================ */

.spread-stories {
    min-height: 140vh;
    background-color: var(--parchment);
}

.stories-text-side {
    align-items: flex-start;
    padding-top: 5rem;
}

.stories-cards {
    max-width: 440px;
}

.stories-wall-side {
    background-color: var(--soot);
    padding: 0;
    overflow: hidden;
}

.workshop-wall {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Pegboard pattern */
.pegboard {
    width: 100%;
    height: 100%;
    position: relative;
    /* Pegboard holes pattern */
    background-image:
        radial-gradient(circle, var(--copper) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 15px 15px;
}

.peg-tool {
    position: absolute;
}

.peg-tool-1 {
    top: 12%;
    left: 20%;
}

.peg-tool-2 {
    top: 15%;
    right: 20%;
}

.peg-tool-3 {
    top: 45%;
    left: 35%;
}

/* Lightbulb */
.lightbulb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.bulb-cord {
    width: 2px;
    height: 60px;
    background: var(--copper);
    margin: 0 auto;
}

.bulb-glow {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(245, 236, 215, 0.3) 0%, rgba(245, 236, 215, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: bulbPulse 4s ease-in-out infinite alternate;
}

@keyframes bulbPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.bulb-svg {
    position: relative;
    z-index: 2;
}

/* Floor bolts */
.floor-bolts {
    position: absolute;
    bottom: 8%;
    left: 10%;
}

/* ============================================================
   SECTION 5: CLOSING
   ============================================================ */

.spread-closing {
    min-height: 60vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--parchment);
    position: relative;
    padding: 4rem 2rem;
}

.closing-content {
    text-align: center;
}

.closing-wrench {
    margin-bottom: 2rem;
}

.closing-wrench svg {
    animation: gentleRotate 12s ease-in-out infinite;
}

@keyframes gentleRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
}

.closing-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--deep-forest);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.title-dot {
    color: var(--copper);
}

.closing-note {
    display: block;
    margin-bottom: 1.5rem;
}

.closing-stamp {
    transform: rotate(3deg);
}

/* ============================================================
   REVEAL ANIMATION SYSTEM
   ============================================================ */

[data-reveal] {
    will-change: opacity, transform;
}

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

@media (max-width: 1024px) {
    .spread {
        flex-direction: column;
        min-height: auto;
    }

    .spread-catalog {
        flex-direction: column;
    }

    .spread-catalog .split-left,
    .spread-catalog .split-right {
        order: unset;
    }

    .split-left,
    .split-right {
        flex: 1;
        padding: 3rem 2rem;
    }

    .torn-edge-vertical {
        display: none;
    }

    .spread-hero {
        height: auto;
        min-height: auto;
    }

    .spread-hero .split-left {
        min-height: 50vh;
    }

    .spread-hero .split-right {
        min-height: 50vh;
    }

    .tool-float-area {
        height: 40vh;
    }

    .stories-wall-side {
        min-height: 50vh;
    }
}

@media (max-width: 600px) {
    .split-left,
    .split-right {
        padding: 2.5rem 1.2rem;
    }

    .spread-blueprint {
        padding: 4rem 1.5rem;
    }

    .hero-word {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-dot {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .paper-card,
    .story-card {
        padding: 1.4rem;
        margin-bottom: 1.4rem;
    }

    .gear-assembly {
        transform: scale(0.7);
    }

    .gear-small {
        display: none;
    }

    /* Reduce ambient floats on mobile */
    .amb-3,
    .amb-4 {
        display: none;
    }

    .floating-element {
        transform: scale(0.7);
    }

    .float-caliper,
    .float-ratchet {
        display: none;
    }

    .bp-label {
        font-size: 0.7rem;
    }

    .pegboard {
        background-size: 24px 24px;
    }

    .peg-tool svg {
        width: 40px;
        height: auto;
    }
}
