/* gunsul.studio - Brutalist Construction */

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

:root {
    --raw-concrete: #e8e0d4;
    --blueprint-indigo: #1a1a3e;
    --charcoal-steel: #2b2b2b;
    --weathered-iron: #6b6358;
    --safety-orange: #e8651a;
    --crane-yellow: #f0c83c;
    --rebar-gray: #8a8278;
    --weld-spark: #ff9e44;
    --chalk-white: #d4dce8;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    background-color: var(--raw-concrete);
    color: var(--charcoal-steel);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Structural Grid */
#structural-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(176,168,154,0.12) 0px,
        rgba(176,168,154,0.12) 1px,
        transparent 1px,
        transparent calc(100% / 12)
    );
}

/* Crane SVG */
.crane-svg {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 300px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
}

/* ==================== HERO ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(180deg, #ede7dc 0%, var(--raw-concrete) 100%);
}

.isometric-building {
    position: relative;
    width: 300px;
    height: 250px;
    margin-bottom: 40px;
    perspective: 600px;
}

.iso-element {
    position: absolute;
    opacity: 0;
    animation: isoAppear 0.6s ease-out forwards;
}

.iso-floor {
    width: 180px;
    height: 12px;
    background: var(--rebar-gray);
    border: 1px solid var(--charcoal-steel);
    transform: skewX(-30deg);
    left: 60px;
}

.floor-1 { bottom: 40px; }
.floor-2 { bottom: 90px; }
.floor-3 { bottom: 140px; }

.iso-girder {
    width: 8px;
    height: 60px;
    background: var(--charcoal-steel);
    border: 1px solid var(--rebar-gray);
}

.girder-1 { bottom: 42px; left: 80px; }
.girder-2 { bottom: 42px; left: 160px; }
.girder-3 { bottom: 92px; left: 120px; }

@keyframes isoAppear {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title-panel {
    background: var(--raw-concrete);
    border: 3px solid var(--charcoal-steel);
    padding: 24px 48px;
    text-align: center;
    position: relative;
    opacity: 0;
    animation: panelStamp 0.8s ease-out 0.8s forwards;
}

@keyframes panelStamp {
    0% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--charcoal-steel);
}

.hero-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--weathered-iron);
    margin-top: 8px;
    letter-spacing: 0.08em;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--charcoal-steel);
    padding: 40px 60px;
    position: relative;
}

.section-header-light {
    color: var(--chalk-white);
}

.header-annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--safety-orange);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

/* ==================== FOUNDATION SECTION ==================== */
.section-foundation {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    min-height: 100vh;
}

.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.honeycomb-grid > .foundation-card:nth-child(even) {
    margin-top: 40px;
}

.foundation-card {
    background: var(--raw-concrete);
    border: 2px solid var(--rebar-gray);
    padding: 32px;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(138,130,120,0.06) 10px,
        rgba(138,130,120,0.06) 11px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(138,130,120,0.06) 10px,
        rgba(138,130,120,0.06) 11px
    );
}

.foundation-card:hover {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(138,130,120,0.25) 10px,
        rgba(138,130,120,0.25) 11px
    ),
    repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(138,130,120,0.25) 10px,
        rgba(138,130,120,0.25) 11px
    );
}

.foundation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bolt Heads */
.bolt {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--rebar-gray);
    background: var(--raw-concrete);
}

.bolt::before,
.bolt::after {
    content: '';
    position: absolute;
    background: var(--rebar-gray);
}

.bolt::before {
    width: 6px;
    height: 1px;
    top: 4px;
    left: 1px;
}

.bolt::after {
    width: 1px;
    height: 6px;
    top: 1px;
    left: 4px;
}

.top-left { top: 8px; left: 8px; }
.top-right { top: 8px; right: 8px; }
.bottom-left { bottom: 8px; left: 8px; }
.bottom-right { bottom: 8px; right: 8px; }

.card-annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--safety-orange);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 8px;
}

.card-heading {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--charcoal-steel);
}

.card-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--weathered-iron);
}

/* ==================== FRAMEWORK SECTION ==================== */
.section-framework {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    min-height: 80vh;
}

.scaffold-container {
    position: relative;
    padding: 0 60px;
}

.scaffold-bar {
    width: 100%;
    height: 4px;
    background: var(--rebar-gray);
    margin-bottom: 0;
}

.scaffold-scroll {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 0 40px 40px;
    scroll-snap-type: x mandatory;
}

.scaffold-node {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scaffold-line {
    width: 2px;
    height: 80px;
    background: var(--rebar-gray);
}

.scaffold-card {
    background: var(--raw-concrete);
    border: 2px solid var(--rebar-gray);
    padding: 24px;
    width: 100%;
    backdrop-filter: blur(2px);
}

/* ==================== BLUEPRINT SECTION ==================== */
.section-blueprint {
    position: relative;
    z-index: 2;
    background: var(--blueprint-indigo);
    padding: 80px 20px;
    min-height: 100vh;
}

.blueprint-plan {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.blueprint-svg {
    width: 100%;
    height: auto;
}

.bp-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-in-out;
}

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

.bp-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    fill: var(--chalk-white);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.bp-dim {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    fill: var(--safety-orange);
    opacity: 0.6;
}

/* ==================== FOOTER STRATA ==================== */
.footer-strata {
    position: relative;
    z-index: 2;
}

.stratum {
    width: 100%;
    position: relative;
}

.stratum-topsoil {
    height: 30px;
    background: #8a7d6b;
    clip-path: polygon(0 30%, 5% 20%, 15% 35%, 25% 25%, 40% 30%, 55% 20%, 70% 35%, 85% 25%, 95% 30%, 100% 20%, 100% 100%, 0 100%);
}

.stratum-gravel {
    height: 30px;
    background: #6b6358;
}

.stratum-clay {
    height: 30px;
    background: #4a3f35;
}

.stratum-bedrock {
    background: #2b2520;
    padding: 40px 20px;
    text-align: center;
}

.bedrock-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--chalk-white);
    opacity: 0.5;
    letter-spacing: 0.08em;
}

.bedrock-sub {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--chalk-white);
    opacity: 0.3;
    margin-top: 8px;
}

/* Caution Stripe (for interactive elements) */
.caution-border {
    border-image: repeating-linear-gradient(
        -45deg,
        var(--charcoal-steel) 0px,
        var(--charcoal-steel) 8px,
        var(--crane-yellow) 8px,
        var(--crane-yellow) 16px
    ) 4;
    border-width: 4px;
    border-style: solid;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .honeycomb-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .honeycomb-grid > .foundation-card:nth-child(even) {
        margin-top: 0;
    }

    .crane-svg {
        width: 200px;
        height: 150px;
        opacity: 0.3;
    }

    .section-header {
        padding: 40px 20px;
    }

    .scaffold-container {
        padding: 0 20px;
    }
}
