/* mechanic.monster - Post-Industrial Workshop Aesthetic */
/* Colors: #1A1611, #A0522D, #6B6356, #D4C9B5, #B8860B, #2C1810, #E8DCC8, #3E5C76 */
/* Fonts: Vast Shadow (display), Space Grotesk (secondary), Inter (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #E8DCC8;
    color: #2C1810;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain Overlay - Fixed behind everything */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Full-Screen Sections */
.full-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.section-dark {
    background-color: #1A1611;
}

/* Section Content - F-Pattern left alignment */
.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    gap: 40px;
}

.content-block {
    max-width: 60%;
    flex: 1;
}

/* Section Labels - Vertical left edge */
.section-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 60px;
    padding-top: 10px;
}

.label-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #A0522D;
    letter-spacing: 0.1em;
}

.label-line {
    width: 1px;
    height: 60px;
    background-color: #A0522D;
    opacity: 0.5;
}

.label-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6B6356;
    letter-spacing: 0.15em;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.section-label-light .label-number {
    color: #B8860B;
}

.section-label-light .label-line {
    background-color: #B8860B;
}

.section-label-light .label-text {
    color: #D4C9B5;
}

/* Hero Section */
.hero-title {
    font-family: 'Vast Shadow', serif;
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.04em;
    color: #2C1810;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.title-accent {
    color: #A0522D;
}

.hero-annotation {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.annotation-marker {
    color: #B8860B;
    font-size: 20px;
}

.annotation-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6B6356;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-schematic {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    opacity: 0.7;
}

.schematic-gear {
    animation: slowRotate 30s linear infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #A0522D, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.scroll-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #6B6356;
    letter-spacing: 0.2em;
}

/* Section Headings */
.section-heading {
    font-family: 'Vast Shadow', serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.04em;
    color: #2C1810;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-heading-light {
    color: #E8DCC8;
}

/* Ruler Dividers */
.ruler-divider {
    width: 100%;
    max-width: 400px;
    height: 12px;
    margin-bottom: 30px;
}

.ruler-divider svg {
    width: 100%;
    height: 100%;
}

/* Body Text */
.body-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #2C1810;
    margin-bottom: 20px;
    max-width: 540px;
}

.body-text-light {
    color: #D4C9B5;
}

/* Blueprint Card */
.blueprint-card {
    border: 1px solid #A0522D;
    margin-top: 30px;
    max-width: 420px;
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #A0522D;
    background-color: rgba(160, 82, 45, 0.08);
}

.blueprint-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #A0522D;
    letter-spacing: 0.15em;
}

.blueprint-id {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #6B6356;
    letter-spacing: 0.08em;
}

.blueprint-body {
    padding: 20px;
}

.spec-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.spec-row:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B6356;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.spec-dots {
    flex: 1;
    border-bottom: 1px dotted #A0522D;
    opacity: 0.4;
    min-width: 20px;
    margin-bottom: 4px;
}

.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2C1810;
    letter-spacing: 0.04em;
}

/* Engine Diagram */
.engine-diagram {
    margin: 30px 0;
    display: flex;
    justify-content: flex-start;
}

.engine-svg {
    opacity: 0.85;
}

/* Callout Box */
.callout-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-left: 2px solid #B8860B;
    margin-top: 30px;
    max-width: 480px;
    background-color: rgba(184, 134, 11, 0.06);
}

.callout-marker {
    color: #B8860B;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.callout-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #D4C9B5;
    letter-spacing: 0.02em;
    font-style: italic;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.service-item {
    padding: 24px 20px;
    border: 1px solid transparent;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.service-item:hover {
    border-color: #A0522D;
    background-color: rgba(160, 82, 45, 0.04);
}

.service-icon {
    margin-bottom: 16px;
    opacity: 0.8;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2C1810;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #6B6356;
}

/* Footer Mark */
.footer-mark {
    border-top: 1px solid #A0522D;
    padding-top: 30px;
}

.footer-line {
    display: none;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2C1810;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #6B6356;
    letter-spacing: 0.15em;
}

.footer-stamp {
    display: flex;
    justify-content: flex-end;
    opacity: 0.6;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .section-content {
        padding: 0 30px;
        flex-direction: column;
        gap: 20px;
    }

    .content-block {
        max-width: 100%;
    }

    .section-label {
        flex-direction: row;
        min-width: unset;
    }

    .label-line {
        width: 40px;
        height: 1px;
    }

    .label-text {
        writing-mode: horizontal-tb;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 80px);
    }

    .section-heading {
        font-size: clamp(32px, 8vw, 56px);
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-schematic {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .full-section {
        padding: 60px 0;
    }

    .section-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(32px, 14vw, 56px);
    }

    .blueprint-card {
        max-width: 100%;
    }

    .engine-diagram svg {
        max-width: 100%;
        height: auto;
    }
}