/* ============================================
   footprint.bar - Cyberpunk Bento Dashboard
   ============================================ */

:root {
    --gunmetal-void: #0D0D12;
    --carbon-plate: #1A1A24;
    --slate-circuit: #2A2A3A;
    --polished-steel: #8A8A9E;
    --bright-alloy: #C8C8D4;
    --platinum-flash: #E8E8EC;
    --neon-trace: #00FFF7;
    --pulse-signal: #FF2D7B;
    --spark-gold: #FFD666;
    --pure-black: #000000;
}

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

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

body {
    background: var(--gunmetal-void);
    color: var(--polished-steel);
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* --- Grid Underlay --- */
.grid-underlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--slate-circuit) 1px, transparent 1px),
        linear-gradient(90deg, var(--slate-circuit) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.2;
}

/* --- Section Base --- */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vw;
}

/* ============================================
   SECTION 1: THE IMPRESSION
   ============================================ */
.section-impression {
    flex-direction: column;
}

.impression-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.footprint-hero {
    width: clamp(280px, 50vw, 600px);
    height: auto;
    margin-bottom: 2rem;
}

.fp-zone {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawFootprint 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.zone-heel-inner { animation-delay: 0.5s; }
.zone-heel-core { animation-delay: 0.8s; }
.zone-arch { animation-delay: 0.6s; }
.zone-ball { animation-delay: 0.4s; }
.zone-ball-inner { animation-delay: 0.7s; }
.zone-ball-core { animation-delay: 1s; }
.zone-toe1 { animation-delay: 0.9s; }
.zone-toe2 { animation-delay: 1s; }
.zone-toe3 { animation-delay: 1.1s; }
.zone-toe4 { animation-delay: 1.2s; }

@keyframes drawFootprint {
    0% { stroke-dashoffset: 500; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero-text-overlay {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--platinum-flash);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: titleFade 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
    white-space: nowrap;
}

@keyframes titleFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--polished-steel);
    opacity: 0;
    animation: titleFade 600ms cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

.scroll-indicator {
    margin-top: 3rem;
    animation: pulseDown 2s ease-in-out infinite;
}

.arrow-down {
    width: 20px;
    height: 24px;
}

@keyframes pulseDown {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ============================================
   BENTO TRAYS
   ============================================ */
.bento-tray {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 1400px;
}

.bento-cell {
    background: var(--carbon-plate);
    border: 1px solid var(--slate-circuit);
    box-shadow: inset 0 1px 0 rgba(200, 200, 212, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 250ms ease,
                box-shadow 250ms ease;
}

.bento-cell.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-cell:hover {
    border-color: rgba(0, 255, 247, 0.4);
    box-shadow: inset 0 1px 0 rgba(0, 255, 247, 0.08), 0 0 20px rgba(0, 255, 247, 0.06);
}

/* Cell types */
.cell-showcase {
    grid-column: span 7;
    grid-row: span 4;
    min-height: 300px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-ribbon {
    grid-column: span 5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        repeating-radial-gradient(circle at 6px 6px, var(--slate-circuit) 0px, var(--slate-circuit) 1px, transparent 1px, transparent 12px);
    background-size: 12px 12px;
    background-color: var(--carbon-plate);
}

.ribbon-data {
    font-size: 0.8125rem;
    color: var(--neon-trace);
}

.ribbon-label {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--polished-steel);
}

.cell-narrative {
    grid-column: span 5;
    grid-row: span 2;
    padding: 24px;
    position: relative;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 7px, rgba(138, 138, 158, 0.03) 7px, rgba(138, 138, 158, 0.03) 8px);
    background-color: var(--carbon-plate);
}

.cell-narrative p {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--polished-steel);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-indent: 1.5em;
}

.hex-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--slate-circuit);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Varela Round', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-trace);
    letter-spacing: 0.04em;
}

.cell-marquee {
    grid-column: span 12;
    padding: 8px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 0.75rem;
    color: var(--polished-steel);
    opacity: 0.7;
}

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

/* City SVG */
.city-svg {
    width: 100%;
    height: 100%;
}

.trail-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cell-showcase.visible .trail-path {
    stroke-dashoffset: 0;
}

/* Tray 2 */
.tray-2 {
    grid-template-rows: auto;
}

.cell-frieze {
    grid-column: span 12;
    height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.frieze-track {
    display: flex;
    gap: 2rem;
    opacity: 0.4;
}

.gait-figure {
    width: 60px;
    height: 48px;
    flex-shrink: 0;
}

.cell-exploded {
    grid-column: span 6;
    grid-row: span 3;
    min-height: 350px;
}

.exploded-svg {
    width: 100%;
    height: 100%;
}

.cell-data {
    grid-column: span 6;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.data-label {
    font-family: 'Varela Round', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--polished-steel);
    margin-bottom: 4px;
}

.data-value {
    font-size: 1.6rem;
    color: var(--bright-alloy);
}

.data-unit {
    font-size: 0.75rem;
    color: var(--polished-steel);
}

.pull-quote {
    padding: 16px 20px;
    margin: 1.5rem 0;
    transform: skewX(-6deg);
    border-left: 2px solid var(--neon-trace);
    background: rgba(0, 255, 247, 0.03);
}

.pull-quote p {
    transform: skewX(6deg);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-style: italic;
    color: var(--bright-alloy);
    text-indent: 0;
}

/* ============================================
   SECTION 4: THE IDENTITY
   ============================================ */
.section-identity {
    background: linear-gradient(to bottom, var(--gunmetal-void), var(--pure-black));
    flex-direction: column;
}

.identity-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.identity-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--platinum-flash);
    animation: textEvaporate 8s ease-out 0.6s forwards;
    margin-bottom: 3rem;
}

@keyframes textEvaporate {
    0% { opacity: 1; }
    60% { opacity: 0.8; }
    100% { opacity: 0; }
}

.footprint-ghost {
    width: clamp(200px, 30vw, 400px);
    animation: ghostSpin 720s linear infinite;
    opacity: 0.15;
}

@keyframes ghostSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .bento-tray {
        grid-template-columns: repeat(8, 1fr);
    }

    .cell-showcase { grid-column: span 8; grid-row: span 3; }
    .cell-ribbon { grid-column: span 4; }
    .cell-narrative { grid-column: span 4; }
    .cell-marquee { grid-column: span 8; }
    .cell-frieze { grid-column: span 8; }
    .cell-exploded { grid-column: span 4; }
    .cell-data { grid-column: span 4; }
}

@media (max-width: 768px) {
    .bento-tray {
        grid-template-columns: 1fr;
    }

    .cell-showcase,
    .cell-ribbon,
    .cell-narrative,
    .cell-marquee,
    .cell-frieze,
    .cell-exploded,
    .cell-data {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cell-showcase { min-height: 250px; }
    .cell-exploded { min-height: 300px; }
    .section { padding: 2vw; }
}
