/* recycle.studio - Cottagecore Burnt-Orange Workshop */
/* Color Palette:
   Kiln Dark: #2A1408
   Burnt Orange: #5A3818
   Forge Orange: #A06020
   Clay Light: #C8A070
   Workshop Cream: #FFF6EA
   Studio Surface: #FFF8F0
   HUD Frame: rgba(160,80,30,0.2)
   Blueprint Line: rgba(200,160,112,0.04)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    background-color: #FFF6EA;
    color: #5A3818;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(200,160,112,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,160,112,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0;
    animation: gridFadeIn 2s ease 0.5s forwards;
}

/* Geometric Abstract Forms */
.geometric-forms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 220px;
    height: 220px;
    top: 8%;
    right: 5%;
    animation: geoDrift 12s ease-in-out infinite;
}

.geo-rect-1 {
    width: 160px;
    height: 160px;
    top: 55%;
    left: 3%;
    animation: geoDrift 15s ease-in-out infinite 2s;
}

.geo-triangle-1 {
    width: 180px;
    height: 180px;
    bottom: 12%;
    right: 8%;
    animation: geoDrift 18s ease-in-out infinite 4s;
}

.geo-circle-2 {
    width: 120px;
    height: 120px;
    top: 35%;
    left: 8%;
    animation: geoDrift 14s ease-in-out infinite 1s;
}

.geo-hex-1 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    right: 20%;
    animation: geoDrift 16s ease-in-out infinite 3s;
}

.geo-diamond-1 {
    width: 140px;
    height: 140px;
    top: 18%;
    left: 12%;
    animation: geoDrift 20s ease-in-out infinite 5s;
}

.geo-arc-1 {
    width: 160px;
    height: 160px;
    bottom: 45%;
    right: 2%;
    animation: geoDrift 17s ease-in-out infinite 6s;
}

/* HUD Frame */
.hud-frame {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    border: 1px solid rgba(160,80,30,0.2);
    background-color: #FFF8F0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    animation: hudMaterialize 1.2s ease forwards;
}

/* HUD Corner Elements */
.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hud-corner.visible {
    opacity: 1;
}

.hud-corner svg {
    width: 100%;
    height: 100%;
}

.hud-corner-tl {
    top: 8px;
    left: 8px;
}

.hud-corner-tr {
    top: 8px;
    right: 8px;
}

.hud-corner-bl {
    bottom: 8px;
    left: 8px;
}

.hud-corner-br {
    bottom: 8px;
    right: 8px;
}

/* HUD Scan Lines */
.hud-scanline {
    position: absolute;
    z-index: 15;
    pointer-events: none;
}

.hud-scanline-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160,96,32,0.3), transparent);
    animation: scanHorizontal 8s linear infinite;
    transform: translateY(-1px);
}

.hud-scanline-left {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(160,96,32,0.2), transparent);
    animation: scanVertical 12s linear infinite;
    transform: translateX(-1px);
}

/* Status Strips */
.status-strip {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background-color: rgba(160,80,30,0.04);
    border-bottom: 1px solid rgba(160,80,30,0.1);
    flex-shrink: 0;
}

.status-strip-bottom {
    border-bottom: none;
    border-top: 1px solid rgba(160,80,30,0.1);
    margin-top: auto;
}

/* Tool Labels (Fira Code) */
.tool-label {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #A06020;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-value {
    opacity: 0.7;
}

/* Main Content */
.studio-content {
    flex: 1;
    padding: 40px 32px;
    overflow: visible;
}

/* Section Headings */
.section-heading {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #2A1408;
    margin-bottom: 32px;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #A06020;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.hero-title-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-title-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-marker {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-marker-svg {
    width: 36px;
    height: 36px;
    animation: geoSpin 20s linear infinite;
}

.hero-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #2A1408;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #5A3818;
    letter-spacing: 0.05em;
}

.hero-divider {
    margin: 32px 0;
    opacity: 0;
    transition: opacity 1.2s ease 0.4s;
}

.hero-divider.visible {
    opacity: 1;
}

.divider-svg {
    width: min(400px, 80vw);
    height: 20px;
}

.hero-tagline {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #5A3818;
    max-width: 480px;
    line-height: 1.85;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 1.5s ease 1.5s;
}

.hero-scroll-indicator.visible {
    opacity: 0.6;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow-svg {
    width: 14px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .tool-label {
    font-size: 0.55rem;
}

/* Workshop Modules */
.workshop-section {
    padding: 60px 0;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.workshop-module {
    background-color: #FFF6EA;
    border: 1px solid rgba(160,80,30,0.15);
    padding: 24px 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.workshop-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(160,96,32,0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.workshop-module:hover::before {
    opacity: 1;
}

.workshop-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(160,80,30,0.08);
    border-color: rgba(160,80,30,0.35);
}

.workshop-module.shake {
    animation: workshopShake 0.4s ease-in-out;
}

.module-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(160,80,30,0.08);
}

.module-status {
    color: #A06020;
    opacity: 0.6;
}

.module-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.module-icon svg {
    width: 100%;
    height: 100%;
}

.module-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #2A1408;
    margin-bottom: 8px;
}

.module-desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #5A3818;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* Module Progress Bars */
.module-progress {
    height: 3px;
    background-color: rgba(200,160,112,0.15);
    margin-bottom: 6px;
    overflow: hidden;
}

.module-progress-bar {
    height: 100%;
    background-color: #A06020;
    width: 0;
    transition: width 1.2s ease;
}

.module-progress-label {
    font-size: 0.58rem;
    opacity: 0.5;
}

/* Process Timeline */
.process-section {
    padding: 60px 0;
}

.process-timeline {
    position: relative;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #C8A070, rgba(200,160,112,0.2));
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-marker {
    width: 32px;
    height: 32px;
    border: 1px solid #A06020;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    margin-left: -40px;
    background-color: #FFF8F0;
    position: relative;
    z-index: 2;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.process-step.visible .step-marker {
    background-color: #FFF8F0;
}

.process-step.active .step-marker {
    background-color: rgba(160,96,32,0.08);
    border-color: #A06020;
    border-width: 2px;
}

.step-marker .tool-label {
    font-size: 0.6rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #2A1408;
    margin-bottom: 6px;
}

.step-desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    color: #5A3818;
    line-height: 1.75;
}

/* Studio Instruments */
.instruments-section {
    padding: 60px 0;
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.instrument-card {
    background-color: #FFF6EA;
    border: 1px solid rgba(160,80,30,0.15);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instrument-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A06020, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instrument-card:hover::after {
    opacity: 0.5;
}

.instrument-card:hover {
    transform: translateY(-2px);
    border-color: rgba(160,80,30,0.35);
}

.instrument-card.shake {
    animation: workshopShake 0.4s ease-in-out;
}

.instrument-readout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(160,80,30,0.08);
}

.instrument-value {
    color: #2A1408;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.instrument-value.fluctuating {
    color: #A06020;
}

.instrument-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.instrument-visual svg {
    width: 100%;
    height: 100%;
}

/* Instrument Gauge */
.instrument-gauge {
    margin-bottom: 10px;
}

.gauge-track {
    height: 2px;
    background-color: rgba(200,160,112,0.15);
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background-color: #A06020;
    width: 0;
    transition: width 1.5s ease;
}

.instrument-label {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2A1408;
}

/* Philosophy Section */
.philosophy-section {
    padding: 60px 0;
}

.philosophy-frame {
    border: 1px solid rgba(160,80,30,0.2);
    padding: 32px 28px;
    position: relative;
    background: linear-gradient(135deg, rgba(160,80,30,0.02), rgba(200,160,112,0.04));
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.philosophy-frame.visible {
    opacity: 1;
    transform: scale(1);
}

.philosophy-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(160,80,30,0.1);
}

.philosophy-quote {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: #2A1408;
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid #A06020;
}

.philosophy-attr {
    text-align: right;
}

/* Materials Ticker */
.materials-section {
    padding: 30px 0;
    overflow: hidden;
}

.materials-ticker {
    border-top: 1px solid rgba(160,80,30,0.1);
    border-bottom: 1px solid rgba(160,80,30,0.1);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.materials-ticker::before,
.materials-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.materials-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #FFF8F0, transparent);
}

.materials-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #FFF8F0, transparent);
}

.materials-ticker-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    font-size: 0.6rem;
    opacity: 0.7;
}

.ticker-divider {
    color: #C8A070;
    font-size: 0.45rem;
    opacity: 0.4;
}

/* Studio Footer */
.studio-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(160,80,30,0.12);
}

.footer-instruments {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-readout {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-active {
    color: #A06020;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #C8A070, transparent);
    margin-bottom: 20px;
}

.footer-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #5A3818;
    text-align: center;
    margin-bottom: 6px;
}

.footer-sub {
    text-align: center;
    opacity: 0.5;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Shake-Error Animation */
@keyframes workshopShake {
    0% { transform: translateX(0); }
    15% { transform: translateX(-3px); }
    30% { transform: translateX(3px); }
    45% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    90% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* HUD Frame Materialization */
@keyframes hudMaterialize {
    0% {
        opacity: 0;
        border-color: rgba(160,80,30,0);
    }
    100% {
        opacity: 1;
        border-color: rgba(160,80,30,0.2);
    }
}

/* Blueprint Grid Fade In */
@keyframes gridFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Geometric Forms Drift */
@keyframes geoDrift {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Hero Marker Spin */
@keyframes geoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator Bounce */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scan Lines */
@keyframes scanHorizontal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes scanVertical {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Ticker Scroll */
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

@media (max-width: 700px) {
    .hud-frame {
        margin: 0 8px;
        border-left: none;
        border-right: none;
    }

    .studio-content {
        padding: 30px 20px;
    }

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

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

    .footer-instruments {
        flex-direction: column;
    }

    .status-strip {
        font-size: 0.55rem;
        padding: 0 10px;
    }

    .geo-shape {
        opacity: 0.04;
    }

    .hud-corner {
        width: 28px;
        height: 28px;
    }

    .process-timeline {
        padding-left: 32px;
    }

    .step-marker {
        margin-left: -32px;
        width: 28px;
        height: 28px;
    }

    .hud-scanline {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.08em;
    }

    .philosophy-frame {
        padding: 20px 16px;
    }

    .philosophy-quote {
        font-size: 0.95rem;
        padding-left: 14px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}
