/* gunsul.quest - Brutalist Construction Site */
/* Palette:
   Concrete Raw: #D8D0C8
   Steel Frame: #6A6A6A
   Rust Rebar: #8A4420
   Safety Yellow: #E8C830
   Blueprint Blue: #3868A8
   Foundation Dark: #2A2218
   Plywood Warm: #C8A878
   Spray Paint: #D03830
*/

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

html { font-size: 16px; }

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A2218;
    background-color: #D8D0C8;
    overflow-x: hidden;
    position: relative;
}

/* Scaffold Grid */
.scaffold-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 800ms ease;
}

.scaffold-col {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(106, 106, 106, 0.25);
}

.scaffold-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(106, 106, 106, 0.15);
}

.scaffold-cross {
    position: absolute;
    width: 8px;
    height: 8px;
    color: rgba(106, 106, 106, 0.15);
    font-family: 'Roboto Mono', monospace;
    font-size: 8px;
    line-height: 8px;
    text-align: center;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #D03830;
    transform: rotate(-2deg);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    filter: blur(1px);
    transition: opacity 80ms ease, filter 150ms ease;
}

.hero-title .char.visible {
    opacity: 1;
    filter: blur(0);
}

.hero-annotation {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: #6A6A6A;
    margin-top: 16px;
    margin-left: 20%;
    opacity: 0;
    transition: opacity 500ms ease;
}

/* Safety Stripes */
.safety-stripe {
    height: 12px;
    background: repeating-linear-gradient(45deg, #E8C830 0px, #E8C830 10px, #2A2218 10px, #2A2218 20px);
    position: relative;
    z-index: 1;
}

/* Construction Zones */
.zone {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    margin: 40px 0;
    max-width: 600px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.zone.visible {
    opacity: 1;
    transform: translateX(0);
}

.zone-left { margin-left: 15%; }
.zone-right { margin-left: 40%; transform: translateX(40px); }
.zone-right.visible { transform: translateX(0); }
.zone-center { margin-left: 25%; }
.zone-skeleton-right { margin-left: 50%; }

/* Complete Zones */
.zone-complete {
    background-color: #C8A878;
    border-left: 4px solid #8A4420;
}

.zone-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #6A6A6A;
    display: block;
    margin-bottom: 12px;
}

.zone-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #2A2218;
    margin-bottom: 16px;
    line-height: 1.1;
}

.zone-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A2218;
    margin-bottom: 12px;
}

/* Skeleton Zones */
.zone-skeleton {
    border: 2px dashed #6A6A6A;
    background: transparent;
    min-height: 180px;
    max-width: 500px;
    margin-left: 30%;
    overflow: hidden;
    opacity: 1;
    transform: none;
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(106, 106, 106, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-line {
    height: 12px;
    background-color: rgba(106, 106, 106, 0.12);
    margin: 16px 20px;
    position: relative;
}

/* Rebar Lines */
.rebar-line {
    width: 60%;
    height: 4px;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 1;
}

.rebar {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 600ms ease-out;
}

.rebar.drawn {
    stroke-dashoffset: 0;
}

.rebar-vertical {
    width: 4px;
    height: 200px;
    position: absolute;
    right: 20%;
}

.rebar-vertical .rebar {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

/* Blueprint Section */
.zone-blueprint {
    background-color: #D8E0F0;
    max-width: 700px;
    margin-left: 10%;
    border-left: none;
    position: relative;
}

.blueprint-label {
    color: #3868A8;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 104, 168, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 104, 168, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.blueprint-content {
    position: relative;
    z-index: 2;
}

.blueprint-title {
    color: #3868A8;
    font-family: 'Caveat', cursive;
}

.blueprint-item {
    margin: 20px 0;
    padding: 12px;
    position: relative;
    cursor: default;
}

.blueprint-beam {
    width: 100%;
    height: 8px;
    background-color: #3868A8;
    opacity: 0.4;
}

.blueprint-column {
    width: 40px;
    height: 40px;
    border: 2px solid #3868A8;
    opacity: 0.4;
}

.blueprint-slab {
    width: 80%;
    height: 16px;
    background-color: #3868A8;
    opacity: 0.2;
}

.blueprint-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #3868A8;
    display: block;
    margin-top: 8px;
}

.blueprint-annotation {
    position: absolute;
    top: -20px;
    right: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: #3868A8;
    background-color: rgba(216, 224, 240, 0.9);
    padding: 2px 8px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.blueprint-item:hover .blueprint-annotation {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #2A2218;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 600px;
    margin-left: 15%;
}

.footer-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 2.5rem;
    color: #C8A878;
    margin-bottom: 12px;
}

.footer-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: #D8D0C8;
    margin-bottom: 8px;
}

.footer-meta {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #6A6A6A;
}

/* Responsive */
@media (max-width: 768px) {
    .zone { margin-left: 5% !important; max-width: 90%; padding: 32px 20px; }
    .zone-skeleton { margin-left: 5% !important; max-width: 90%; }
}
