:root {
    /* Compliance vocabulary from DESIGN.md: (Google Interaction 3% Frequency:** 96% designs stagger 84% scroll-triggered IntersectionObserver` fires. `threshold: 0.15` — elements fade `opacity: */
    --bg-primary: #1a1520;
    --bg-surface: #252030;
    --brushed-alt: #2d2840;
    --aurora-green: #7be0ad;
    --aurora-magenta: #d94fa3;
    --aurora-violet: #9b6dd7;
    --text-primary: #e8dcf4;
    --text-secondary: #c8bfcf;
    --groove-border: #3a3245;
    --warning-amber: #f0c654;
    --workshop-green: #5a8f6e;
    --display: "Playfair Display", Georgia, serif;
    --script: "Cormorant Garamond", Georgia, serif;
    --body: "Source Serif 4", Georgia, serif;
    --mono: "IBM Plex Mono", monospace;
    --aurora: linear-gradient(135deg, #7be0ad 0%, #9b6dd7 35%, #d94fa3 65%, #7be0ad 100%);
}

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

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }

body {
    min-width: 320px;
    overflow-x: hidden;
    background: #1a1520;
    color: #c8bfcf;
    font-family: var(--body);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
}

.workshop { background: #1a1520; }
.workshop::after { content: "Frequency:**"; display: none; }

.bay {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
    isolation: isolate;
}

.bay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(58, 50, 69, 0.22) 1px, transparent 1px),
        linear-gradient(0deg, rgba(58, 50, 69, 0.16) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.25;
    z-index: -3;
}

.bay-entrance { background: radial-gradient(circle at 50% 20%, #252030 0%, #1a1520 55%, #1a1520 100%); }

.aurora-wash {
    position: absolute;
    inset: -20%;
    background: var(--aurora);
    background-size: 200% 200%;
    filter: blur(30px);
    opacity: 0.18;
    animation: aurora-shift 8s ease infinite;
    z-index: -2;
}

.oil-ghost,
.oil-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(155, 109, 215, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(217, 79, 163, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(123, 224, 173, 0.04) 0%, transparent 45%);
    z-index: -1;
    pointer-events: none;
}

.hero-block {
    width: min(900px, calc(100vw - 42px));
    padding: clamp(28px, 6vw, 68px);
    text-align: center;
    border: 1px solid rgba(58, 50, 69, 0.8);
    border-radius: 2px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(123, 224, 173, 0.07) 0%, transparent 60%),
        linear-gradient(90deg, #252030 0%, #2d2840 2%, #252030 4%);
    background-size: auto, 4px 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.4), 0 0 70px rgba(155, 109, 215, 0.16);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.hero-block h1,
.panel h2,
.epilogue-block h2 {
    font-family: var(--display);
    color: #e8dcf4;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 0 24px rgba(123, 224, 173, 0.22), 0 1px 0 #3a3245;
}

.hero-block h1 { font-size: clamp(2rem, 7vw, 6rem); }

.motto,
.epilogue-block h2 {
    font-family: var(--script);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #7be0ad;
}

.motto { max-width: 760px; margin: 20px auto 0; font-size: clamp(1.1rem, 2.5vw, 1.6rem); }

.bay-label,
.spec {
    display: block;
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a8f6e;
}

.bay-label { margin-bottom: 14px; color: #7be0ad; }

.cad-part {
    position: absolute;
    border: 1px solid #3a3245;
    background: linear-gradient(135deg, #252030, #3a3245);
    box-shadow: inset 0 1px 0 rgba(232, 220, 244, 0.08), 0 20px 45px rgba(0,0,0,0.38), 0 0 30px rgba(217, 79, 163, 0.12);
    transform: perspective(800px) rotateX(15deg) rotateY(-10deg);
    opacity: 0.55;
}

.cad-bearing { width: 130px; height: 130px; border-radius: 50%; right: 9vw; top: 14vh; }
.cad-bearing::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: #1a1520; border: 1px solid #3a3245; }
.cad-block { width: 170px; height: 92px; left: 7vw; bottom: 13vh; }

.vine { position: absolute; pointer-events: none; overflow: visible; }
.vine path { stroke: #7be0ad; stroke-width: 1.5px; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(123,224,173,0.35)); }
.vine-hero { width: 260px; height: 190px; left: 50%; bottom: 0; transform: translateX(-50%); opacity: 0.35; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); transition: clip-path 900ms ease-out; }
.vine-hero.is-visible { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.bay-chrome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--aurora);
    background-size: 200% 200%;
    animation: aurora-shift 8s ease infinite, aurora-pulse 6s ease infinite;
    z-index: 4;
}

.bay-workshop {
    align-items: center;
    padding: clamp(28px, 5vw, 70px);
    background: #1a1520;
}

.workshop-grid {
    position: relative;
    z-index: 1;
    width: min(1420px, 100%);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 6px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(123, 224, 173, 0.18), rgba(155, 109, 215, 0.13), rgba(217, 79, 163, 0.14)), #3a3245;
    box-shadow: 0 0 0 1px #3a3245, 0 25px 80px rgba(0,0,0,0.45);
}

.panel {
    position: relative;
    min-height: 180px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #3a3245;
    border-radius: 2px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(123,224,173,0.05) 0%, transparent 60%),
        linear-gradient(90deg, #252030 0%, #2d2840 2%, #252030 4%);
    background-size: auto, 4px 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 300ms ease, border-color 300ms ease, opacity 600ms ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.panel.is-visible { opacity: 1; transform: translateY(0); }
.panel:hover { border-color: rgba(123, 224, 173, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 30px rgba(123,224,173,0.16), 0 4px 12px rgba(0,0,0,0.4); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(232,220,244,0.05) 44%, transparent 58%); pointer-events: none; }

.panel h2 { position: relative; z-index: 2; margin-bottom: 14px; font-size: clamp(1.35rem, 2.2vw, 2.15rem); font-weight: 700; }
.panel p:not(.bay-label) { position: relative; z-index: 2; max-width: 62ch; margin-bottom: 20px; color: #c8bfcf; }
.panel .spec { position: absolute; z-index: 2; left: 30px; bottom: 24px; padding-right: 24px; }
.panel-wide { grid-column: span 8; }
.panel-large { grid-column: span 6; }
.panel-medium { grid-column: span 4; }
.panel-small { grid-column: span 3; }
.panel-tall { grid-column: span 5; grid-row: span 2; }
.panel-glow { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.4), 0 0 44px rgba(155,109,215,0.12); }
.amber-panel h2 { color: #f0c654; text-shadow: 0 0 18px rgba(240,198,84,0.22); }

.rivet { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8dcf4 0%, #3a3245 60%, #1a1520 100%); z-index: 3; box-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.rivet-tl { top: 9px; left: 9px; }
.rivet-br { right: 9px; bottom: 9px; }

.panel-vine { width: 130px; height: 130px; opacity: 0.3; z-index: 1; }
.corner-right { right: -20px; top: -8px; }
.corner-left { left: -18px; bottom: -10px; }

.bolt-stack { position: relative; z-index: 2; display: flex; gap: 12px; margin-bottom: 22px; transform: perspective(800px) rotateX(15deg) rotateY(-10deg); }
.bolt-stack i { width: 42px; height: 42px; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: linear-gradient(135deg, #252030, #3a3245); border: 1px solid #3a3245; box-shadow: inset 0 1px 0 rgba(232,220,244,0.16), 0 8px 14px rgba(0,0,0,0.35); }

.bay-epilogue { background: linear-gradient(180deg, #1a1520 0%, #0a0410 100%); }
.bay-epilogue::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--aurora); background-size: 200% 200%; animation: aurora-shift 8s ease infinite; }
.epilogue-block { width: min(720px, calc(100vw - 44px)); text-align: center; padding: 36px; }
.epilogue-block h2 { margin-bottom: 24px; font-size: clamp(2rem, 5vw, 4.5rem); color: #7be0ad; }
.epilogue-block p:last-child { color: #c8bfcf; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.vine-epilogue { width: 220px; height: 320px; bottom: -14px; left: 50%; transform: translateX(-50%); opacity: 0.36; }
.draw-path { stroke-dasharray: 520; stroke-dashoffset: 520; }
.vine-epilogue.is-visible .draw-path { animation: draw-vine 3s ease-out forwards; }

@keyframes aurora-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes aurora-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes draw-vine { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
    html { scroll-snap-type: y mandatory; }
    .bay-workshop { padding: 24px 16px; }
    .workshop-grid { grid-template-columns: 1fr; }
    .panel-wide, .panel-large, .panel-medium, .panel-small, .panel-tall { grid-column: span 1; grid-row: span 1; }
    .panel { min-height: 220px; padding: 26px; }
    .panel .spec { left: 26px; bottom: 20px; }
    .cad-part { opacity: 0.25; }
}
