/* ============================================
   supplychain.observer — Brutalist Observation Deck
   Colors: #E8E4E0, #0A0A0A, #FF4060, #40C0FF, #FFD040, #808080, #C0C0C0
   Fonts: Anton (display), IBM Plex Sans (body)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #808080;
    background-color: #E8E4E0;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #0A0A0A;
    line-height: 1.0;
    letter-spacing: 0.02em;
}

.title-dot {
    color: #FF4060;
}

/* --- KEYFRAMES --- */
@keyframes borderColor {
    0%   { border-color: #FF4060; }
    33%  { border-color: #40C0FF; }
    66%  { border-color: #FFD040; }
    100% { border-color: #FF4060; }
}

@keyframes borderColorDelay1 {
    0%   { border-color: #40C0FF; }
    33%  { border-color: #FFD040; }
    66%  { border-color: #FF4060; }
    100% { border-color: #40C0FF; }
}

@keyframes borderColorDelay2 {
    0%   { border-color: #FFD040; }
    33%  { border-color: #FF4060; }
    66%  { border-color: #40C0FF; }
    100% { border-color: #FFD040; }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* --- BUBBLE BASE --- */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(64,192,255,0.2));
    pointer-events: none;
}

/* --- GRID LINES (exposed scaffolding) --- */
.grid-line {
    position: absolute;
    background-color: #C0C0C0;
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8E4E0;
    overflow: hidden;
}

#hero-frame {
    position: relative;
    border: 6px solid #0A0A0A;
    padding: clamp(2rem, 5vw, 5rem);
    max-width: 90vw;
    animation: borderColor 8s linear infinite;
}

#hero-content {
    position: relative;
    z-index: 2;
}

#hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

#hero-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    max-width: 500px;
}

/* Hero bubbles */
#hero-bubbles {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 260px;
    height: 260px;
    z-index: 1;
}

.bubble-lg {
    width: 100px;
    height: 100px;
    top: 20px;
    right: 10px;
    animation: bubbleFloat 6s ease-in-out infinite;
}

.bubble-md {
    width: 60px;
    height: 60px;
    top: 0;
    right: 100px;
    animation: bubbleFloat 7s ease-in-out infinite 0.5s;
}

.bubble-sm {
    width: 35px;
    height: 35px;
    top: 90px;
    right: 130px;
    animation: bubbleFloat 5s ease-in-out infinite 1s;
}

.bubble-xs {
    width: 20px;
    height: 20px;
    top: 130px;
    right: 60px;
    animation: bubbleFloat 8s ease-in-out infinite 1.5s;
}

.bubble-md-2 {
    width: 50px;
    height: 50px;
    top: 100px;
    right: 170px;
    animation: bubbleFloat 6.5s ease-in-out infinite 0.8s;
}

/* Hero grid lines */
#hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.grid-line-v1 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 8.33%;
}

.grid-line-v2 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 33.33%;
}

.grid-line-v3 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 66.66%;
}

.grid-line-h1 {
    width: 100%;
    height: 1px;
    top: 75%;
    left: 0;
}

/* --- EDITORIAL SECTION --- */
#editorial {
    position: relative;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    background-color: #E8E4E0;
    overflow: hidden;
}

.section-heading {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: clamp(2rem, 4vw, 4rem);
    grid-column: 1 / -1;
}

#editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Panel layout on 12-col grid */
.data-panel {
    position: relative;
    border: 6px solid #0A0A0A;
    padding: 1.5rem;
    background-color: #E8E4E0;
    overflow: visible;
}

.border-animate {
    animation: borderColor 8s linear infinite;
}

.panel-throughput {
    grid-column: 1 / 5;
    animation-name: borderColor;
    animation-duration: 8s;
}

.panel-latency {
    grid-column: 5 / 9;
    animation-name: borderColorDelay1;
    animation-duration: 8s;
}

.panel-disruptions {
    grid-column: 9 / 13;
    animation-name: borderColorDelay2;
    animation-duration: 8s;
}

.panel-inventory {
    grid-column: 1 / 5;
    animation-name: borderColorDelay2;
    animation-duration: 8s;
}

.panel-routes {
    grid-column: 5 / 9;
    animation-name: borderColor;
    animation-duration: 8s;
}

.panel-compliance {
    grid-column: 9 / 13;
    animation-name: borderColorDelay1;
    animation-duration: 8s;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #C0C0C0;
}

.panel-label {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    color: #0A0A0A;
    letter-spacing: 0.05em;
}

.panel-metric {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #FF4060;
}

.panel-body {
    margin-bottom: 1.25rem;
}

.panel-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #808080;
}

.panel-data-bar {
    width: 100%;
    height: 6px;
    background-color: #C0C0C0;
    position: relative;
}

.data-bar-fill {
    height: 100%;
    background-color: #40C0FF;
    transition: width 1s ease;
}

/* Panel bubble clusters */
.panel-bubble-cluster {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
}

.bubble-panel-1 {
    width: 40px;
    height: 40px;
    top: 0;
    right: 0;
    animation: bubbleFloat 5s ease-in-out infinite;
}

.bubble-panel-2 {
    width: 25px;
    height: 25px;
    top: 30px;
    right: 35px;
    animation: bubbleFloat 6s ease-in-out infinite 0.3s;
}

.bubble-panel-3 {
    width: 18px;
    height: 18px;
    top: 10px;
    right: 55px;
    animation: bubbleFloat 7s ease-in-out infinite 0.7s;
}

.bubble-panel-4 {
    width: 35px;
    height: 35px;
    top: 5px;
    right: 5px;
    animation: bubbleFloat 6s ease-in-out infinite 0.2s;
}

.bubble-panel-5 {
    width: 20px;
    height: 20px;
    top: 35px;
    right: 40px;
    animation: bubbleFloat 5.5s ease-in-out infinite 0.6s;
}

/* Editorial floating bubbles */
#editorial-bubbles {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    pointer-events: none;
}

.bubble-editorial-1 {
    width: 70px;
    height: 70px;
    bottom: 0;
    left: 40px;
    animation: bubbleFloat 7s ease-in-out infinite;
}

.bubble-editorial-2 {
    width: 45px;
    height: 45px;
    bottom: 30px;
    left: 130px;
    animation: bubbleFloat 5.5s ease-in-out infinite 0.4s;
}

.bubble-editorial-3 {
    width: 30px;
    height: 30px;
    bottom: 10px;
    left: 210px;
    animation: bubbleFloat 6.5s ease-in-out infinite 0.9s;
}

/* --- OBSERVATION STRIP --- */
#observation-strip {
    position: relative;
    background-color: #0A0A0A;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem);
    overflow: hidden;
}

#strip-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
}

.strip-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #C0C0C0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.strip-value {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    text-transform: uppercase;
}

.strip-value-red {
    color: #FF4060;
}

.strip-value-blue {
    color: #40C0FF;
}

.strip-value-yellow {
    color: #FFD040;
}

.strip-divider {
    width: 1px;
    height: 50px;
    background-color: #808080;
    flex-shrink: 0;
}

/* Strip bubbles */
#strip-bubbles {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.bubble-strip-1 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 5%;
    animation: bubbleFloat 7s ease-in-out infinite;
    opacity: 0.6;
}

.bubble-strip-2 {
    width: 50px;
    height: 50px;
    bottom: 10px;
    left: 15%;
    animation: bubbleFloat 5s ease-in-out infinite 0.5s;
    opacity: 0.5;
}

.bubble-strip-3 {
    width: 35px;
    height: 35px;
    bottom: -10px;
    left: 30%;
    animation: bubbleFloat 6s ease-in-out infinite 1s;
    opacity: 0.4;
}

.bubble-strip-4 {
    width: 60px;
    height: 60px;
    bottom: 0;
    left: 50%;
    animation: bubbleFloat 8s ease-in-out infinite 0.3s;
    opacity: 0.5;
}

.bubble-strip-5 {
    width: 40px;
    height: 40px;
    bottom: 20px;
    left: 65%;
    animation: bubbleFloat 5.5s ease-in-out infinite 0.8s;
    opacity: 0.4;
}

.bubble-strip-6 {
    width: 70px;
    height: 70px;
    bottom: -15px;
    left: 78%;
    animation: bubbleFloat 7.5s ease-in-out infinite 0.6s;
    opacity: 0.5;
}

.bubble-strip-7 {
    width: 30px;
    height: 30px;
    bottom: 15px;
    left: 92%;
    animation: bubbleFloat 6s ease-in-out infinite 1.2s;
    opacity: 0.4;
}

/* --- CLOSING SECTION --- */
#closing {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E8E4E0;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
}

#closing-frame {
    border: 6px solid #0A0A0A;
    padding: clamp(2rem, 5vw, 5rem) clamp(3rem, 8vw, 8rem);
    text-align: center;
    animation: borderColor 8s linear infinite;
    position: relative;
    z-index: 2;
}

#closing-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
}

#closing-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Closing bubbles */
#closing-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.bubble-close-1 {
    width: 90px;
    height: 90px;
    top: 10%;
    left: 5%;
    animation: bubbleFloat 7s ease-in-out infinite;
}

.bubble-close-2 {
    width: 55px;
    height: 55px;
    top: 20%;
    right: 8%;
    animation: bubbleFloat 5.5s ease-in-out infinite 0.4s;
}

.bubble-close-3 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: 12%;
    animation: bubbleFloat 6s ease-in-out infinite 0.8s;
}

.bubble-close-4 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 15%;
    animation: bubbleFloat 8s ease-in-out infinite 0.2s;
}

.bubble-close-5 {
    width: 30px;
    height: 30px;
    top: 50%;
    left: 80%;
    animation: bubbleFloat 5s ease-in-out infinite 1s;
}

/* Closing grid lines */
#closing-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.grid-line-cv1 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 25%;
}

.grid-line-cv2 {
    width: 1px;
    height: 100%;
    top: 0;
    left: 75%;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    #editorial-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .panel-throughput,
    .panel-latency,
    .panel-disruptions,
    .panel-inventory,
    .panel-routes,
    .panel-compliance {
        grid-column: 1 / 7;
    }

    .strip-item {
        padding: 0.75rem 1rem;
    }

    #hero-bubbles {
        width: 160px;
        height: 160px;
        top: -10px;
        right: -15px;
    }

    .bubble-lg {
        width: 60px;
        height: 60px;
    }

    .bubble-md {
        width: 40px;
        height: 40px;
    }

    .bubble-sm {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 600px) {
    #editorial-grid {
        grid-template-columns: 1fr;
    }

    .panel-throughput,
    .panel-latency,
    .panel-disruptions,
    .panel-inventory,
    .panel-routes,
    .panel-compliance {
        grid-column: 1 / -1;
    }

    #strip-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .strip-divider {
        display: none;
    }

    #hero-frame {
        padding: 2rem;
    }

    #hero-bubbles {
        width: 120px;
        height: 120px;
        top: -10px;
        right: -10px;
    }

    .bubble-lg {
        width: 45px;
        height: 45px;
    }

    .bubble-md,
    .bubble-md-2 {
        width: 30px;
        height: 30px;
    }
}
