/* ============================================
   STRIDEOPTICS: ELITE ATHLETIC LAB
   High-Performance Gait Analysis Interface
   v3.0 - "Speed Lab" Build
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

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

:root {
    /* Core Palette - Elite Athletic Lab */
    --obsidian: #050505;
    --obsidian-light: #0a0a0a;
    --volt: #ccff00;
    --volt-dark: #a3cc00;
    --volt-glow: rgba(204, 255, 0, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(204, 255, 0, 0.05);

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-data: 'JetBrains Mono', 'Courier New', monospace;
    --text-primary: #ffffff;
    --text-secondary: #88888e;
    --text-muted: #55555a;

    /* Status Colors */
    --success: #00ff88;
    --warning: #ffcc00;
    --error: #ff3366;

    /* Effects */
    --glow-volt: 0 0 20px var(--volt-glow), 0 0 40px rgba(204, 255, 0, 0.2);
    --glow-intense: 0 0 30px var(--volt-glow), 0 0 60px rgba(204, 255, 0, 0.15);
    --transition-fast: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-drift: cubic-bezier(0.22, 1, 0.36, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BASE STYLES & HUD GRID
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background-color: var(--obsidian);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    max-width: 100%;
}

img,
video,
model-viewer {
    max-width: 100%;
}

/* HUD-Style Grid Background */
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 50px 50px; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    animation: gridDrift 8s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 30%, rgba(204, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(204, 255, 0, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION - Elite Lab Header
   ============================================ */
.navbar {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.72));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 1px 0 rgba(204, 255, 0, 0.035),
        0 16px 50px rgba(0, 0, 0, 0.28);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    letter-spacing: -1px;
}

.logo-stride {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.logo-divider {
    width: 2px;
    height: 20px;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    transform: skewX(-15deg);
    animation: pulseVolt 2s ease-in-out infinite;
}

@keyframes pulseVolt {

    0%,
    100% {
        opacity: 1;
        box-shadow: var(--glow-volt);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 30px var(--volt-glow);
    }
}

.logo-optics {
    color: var(--volt);
    text-shadow: var(--glow-volt);
    transition: var(--transition-fast);
}

.logo:hover .logo-stride {
    color: var(--volt);
    transform: translateX(-2px);
}

.logo:hover .logo-optics {
    color: var(--text-primary);
    text-shadow: none;
    transform: translateX(2px);
}

.logo:hover .logo-divider {
    width: 3px;
    box-shadow: var(--glow-intense);
}

.nav-links {
    display: flex;
    gap: clamp(1.25rem, 3vw, 3.5rem);
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover {
    color: var(--volt);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-primary {
    color: var(--volt);
    text-shadow: var(--glow-volt);
}

.nav-links a.nav-primary::after {
    width: 100%;
}

.nav-links a.nav-analyze,
.nav-links a.nav-beta {
    padding: 0.62rem 1rem;
    color: #050505;
    background: var(--volt);
    box-shadow: 0 0 22px rgba(204, 255, 0, 0.2);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-links a.nav-analyze::after,
.nav-links a.nav-beta::after {
    display: none;
}

.nav-links a.nav-analyze:hover,
.nav-links a.nav-beta:hover {
    color: #050505;
    transform: translateY(-1px);
}

.nav-links a.nav-analyze-active {
    box-shadow:
        0 0 0 1px rgba(204, 255, 0, 0.5),
        0 0 28px rgba(204, 255, 0, 0.3);
}

/* ============================================
   FLASH MESSAGES - Tech Alerts
   ============================================ */
.flash-messages {
    margin-bottom: 2rem;
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.5s ease-out;
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 98% 0, 100% 8%, 100% 100%, 2% 100%, 0 92%);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-error {
    color: var(--error);
    border-left-color: var(--error);
}

.flash-success {
    color: var(--success);
    border-left-color: var(--success);
}

.flash-warning {
    color: var(--warning);
    border-left-color: var(--warning);
}

/* ============================================
   SKELETON RUNNER BACKGROUND
   ============================================ */
#skeleton-runner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   UPLOAD PAGE - Speed Lab Interface
   ============================================ */
.upload-container {
    width: 100%;
    max-width: none;
    margin: 4rem auto 5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-video-hero {
    position: relative;
    width: 100vw;
    max-width: none;
    min-height: clamp(520px, 78svh, 820px);
    margin: -4rem 0 0;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 0;
    background: #030504;
    box-shadow: none;
    isolation: isolate;
}

.landing-video-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(204, 255, 0, 0.055), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 30%, rgba(0, 0, 0, 0.42));
    mix-blend-mode: screen;
    opacity: 0.64;
}

.landing-hero-media,
.landing-hero-scene,
.landing-hero-video-scrim {
    position: absolute;
    inset: 0;
}

.landing-hero-media {
    z-index: 1;
}

.landing-hero-scene {
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 1200ms var(--ease-lux),
        transform 1800ms var(--ease-drift),
        filter 1200ms var(--ease-lux);
    transform: scale(1.018);
    filter: saturate(0.98) contrast(1.01);
}

.landing-hero-scene.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    filter: saturate(1.04) contrast(1.02);
}

.landing-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.landing-hero-video-scrim {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.055) 48%, rgba(0, 0, 0, 0.20)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.10) 44%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 4;
    width: min(92vw, 1240px);
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    text-align: center;
    pointer-events: none;
    animation: heroContentRise 980ms var(--ease-lux) both;
}

/* Mobile hero: no media load, just the core message on the page background. */
@media (max-width: 768px) {
    .landing-video-hero {
        min-height: auto;
        place-items: start center;
        border-bottom: 1px solid rgba(204, 255, 0, 0.16);
        background: transparent;
    }

    .landing-video-hero::before,
    .landing-hero-media {
        display: none;
    }

    .landing-hero-video {
        display: none;
    }

    .landing-hero-video-scrim {
        display: none;
    }

    .landing-video-hero .landing-hero-content {
        width: min(94vw, 560px);
        padding: clamp(3.4rem, 12svh, 5rem) 1rem clamp(2.4rem, 8svh, 4rem);
        text-align: center;
    }

    .landing-video-hero .hero-catch {
        justify-content: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-video-hero .landing-hero-title {
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.85rem, 16vw, 5rem);
        line-height: 0.84;
        text-align: center;
    }

    .landing-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 22rem;
        font-size: 1rem;
        line-height: 1.38;
        text-align: center;
    }

    .landing-hero-proofline {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@keyframes heroContentRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.landing-video-hero .hero-catch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.28rem 0.72rem 0.34rem;
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
    border-top: 1px solid rgba(204, 255, 0, 0.34);
    border-bottom: 1px solid rgba(204, 255, 0, 0.22);
    color: var(--volt);
    background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.09), transparent);
    font-family: var(--font-data);
    font-size: clamp(0.86rem, 1.05vw, 1.08rem);
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.16em;
    text-shadow:
        0 0 18px rgba(204, 255, 0, 0.58),
        0 2px 18px rgba(0, 0, 0, 0.75);
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 34px rgba(204, 255, 0, 0.12),
        inset 0 0 18px rgba(204, 255, 0, 0.035);
}

.landing-video-hero .landing-hero-title {
    width: min(100%, 1160px);
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.98);
    font-size: clamp(4.3rem, 9.2vw, 10rem);
    font-weight: 950;
    line-height: 0.82;
    letter-spacing: clamp(-7px, -0.06em, -3px);
    text-wrap: balance;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    text-shadow:
        0 6px 14px rgba(0, 0, 0, 0.56),
        0 18px 60px rgba(0, 0, 0, 0.88),
        0 0 30px rgba(204, 255, 0, 0.14);
    transform: translateZ(0);
}

.landing-video-hero .landing-hero-title span {
    display: block;
}

.landing-video-hero .landing-hero-title::after {
    width: clamp(120px, 14vw, 230px);
    height: 4px;
    margin-top: clamp(1rem, 2.2vw, 1.7rem);
    background: linear-gradient(90deg, transparent, var(--volt), transparent);
    box-shadow:
        0 0 14px rgba(204, 255, 0, 0.65),
        0 0 36px rgba(204, 255, 0, 0.22);
}

.landing-home-actions {
    width: min(100%, 920px);
    margin: clamp(1.7rem, 4vw, 3.5rem) auto clamp(3.5rem, 7vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-hero-subtitle {
    width: min(100%, 900px);
    margin: clamp(1.2rem, 2.4vw, 1.9rem) auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 1.8vw, 1.42rem);
    font-weight: 650;
    line-height: 1.42;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.88);
}

.landing-hero-proofline {
    display: inline-flex;
    margin: 1rem auto 0;
    padding: 0.46rem 0.8rem;
    border: 1px solid rgba(204, 255, 0, 0.22);
    background: rgba(0, 0, 0, 0.34);
    color: var(--volt);
    font-family: var(--font-data);
    font-size: clamp(0.72rem, 0.95vw, 0.9rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-section-head {
    width: min(100%, 980px);
    margin: 0 auto clamp(1.4rem, 3vw, 2.2rem);
    text-align: center;
}

.landing-section-head h2,
.landing-demo-strip h2,
.landing-wedge-copy h2,
.landing-founder-proof h2,
.landing-why-now h2 {
    margin: 0.35rem 0 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5vw, 5.2rem);
    font-style: italic;
    font-weight: 950;
    line-height: 0.9;
    text-transform: uppercase;
    text-wrap: balance;
}

.landing-section-head p,
.landing-demo-strip p,
.landing-wedge-copy p,
.landing-founder-proof p,
.landing-why-now p {
    color: rgba(235, 238, 242, 0.68);
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
    line-height: 1.62;
}

.landing-proof-section,
.landing-evidence-section,
.landing-wedge-section,
.landing-founder-proof,
.landing-why-now,
.landing-demo-strip {
    width: min(100%, 1240px);
    margin: clamp(3.8rem, 8vw, 7rem) auto;
    position: relative;
    z-index: 1;
}

.landing-proof-grid,
.landing-evidence-grid,
.landing-wedge-grid {
    display: grid;
    gap: 1rem;
}

.landing-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.landing-proof-card,
.landing-evidence-grid > div,
.landing-wedge-grid > div {
    min-height: 164px;
    padding: clamp(1rem, 1.8vw, 1.45rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(6, 8, 8, 0.76);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.landing-proof-card span,
.landing-evidence-grid span {
    display: block;
    margin: 0 0 0.7rem;
    color: rgba(204, 255, 0, 0.82);
    font-family: var(--font-data);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.landing-proof-card strong,
.landing-evidence-grid h3,
.landing-wedge-grid strong {
    display: block;
    margin: 0 0 0.7rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.05vw, 2.15rem);
    font-style: italic;
    font-weight: 950;
    line-height: 0.98;
    text-transform: uppercase;
    text-wrap: balance;
}

.landing-proof-card p,
.landing-evidence-grid p,
.landing-wedge-grid span {
    margin: 0;
    color: rgba(235, 238, 242, 0.62);
    font-size: 0.95rem;
    line-height: 1.48;
}

.landing-demo-strip,
.landing-founder-proof,
.landing-why-now {
    padding: clamp(1.4rem, 3.8vw, 3rem);
    border: 1px solid rgba(204, 255, 0, 0.18);
    background:
        radial-gradient(circle at 12% 12%, rgba(204, 255, 0, 0.08), transparent 34%),
        rgba(6, 8, 8, 0.76);
    box-shadow: 0 30px 95px rgba(0, 0, 0, 0.34);
}

.landing-demo-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: end;
    gap: clamp(1.2rem, 4vw, 3rem);
    text-align: left;
}

.landing-demo-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-evidence-grid > div {
    min-height: 220px;
    border-left: 3px solid rgba(204, 255, 0, 0.52);
}

.landing-evidence-grid > div:last-child {
    border-left-color: rgba(255, 206, 73, 0.72);
}

.landing-wedge-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    text-align: left;
}

.landing-wedge-grid {
    grid-template-columns: 1fr;
}

.landing-wedge-grid > div {
    min-height: 128px;
}

.landing-founder-proof {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    text-align: left;
}

.landing-why-now {
    width: min(100%, 1040px);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-scene {
        transition: none;
    }

    .landing-hero-scene:not(.is-active) {
        opacity: 0;
    }
}

.requirements-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: clamp(2rem, 4vw, 3rem) 0 2.25rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--volt);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    transform: skewX(-5deg);
    box-shadow: var(--shadow-sm);
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.32s both;
}

.requirements-link:hover {
    transform: skewX(-5deg) translateY(-4px);
    box-shadow: var(--shadow-md), var(--glow-volt);
    border-color: var(--volt);
    background: var(--glass-hover);
}

.requirements-link svg {
    flex-shrink: 0;
}

.requirements-link span {
    transform: skewX(5deg);
}

#upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 7rem;
}

.upload-sample-row {
    width: min(100%, 800px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(204, 255, 0, 0.16);
    background:
        linear-gradient(135deg, rgba(204, 255, 0, 0.075), transparent),
        rgba(255, 255, 255, 0.035);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.upload-sample-row div {
    min-width: 0;
}

.upload-sample-row span,
.upload-sample-row strong {
    display: block;
}

.upload-sample-row span {
    color: rgba(204, 255, 0, 0.82);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.upload-sample-row strong {
    margin-top: 0.18rem;
    color: rgba(235, 238, 242, 0.78);
    font-size: 0.98rem;
    line-height: 1.35;
}

.upload-sample-row .btn {
    flex-shrink: 0;
    padding: 0.72rem 1rem;
    font-size: 0.7rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-container h1 {
    font-size: 5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -4px;
    margin-bottom: 1rem;
    line-height: 0.9;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(204, 255, 0, 0.2);
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
    text-align: center;
}

.upload-container h1::after {
    content: '';
    display: block;
    height: 3px;
    width: 110px;
    background: var(--volt);
    margin: 0.6rem auto 0;
    transform-origin: left center;
    transform: scaleX(0) skewX(-5deg);
    animation: sweepLine 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.7s both;
    box-shadow: 0 0 10px var(--volt-glow);
}

.hero-catch {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.75;
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.segmentation-section {
    width: 100vw;
    margin: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(380px, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding: clamp(5rem, 8vw, 7rem) max(7vw, 4rem);
    overflow: hidden;
    text-align: left;
    border-top: 1px solid rgba(204, 255, 0, 0.06);
    border-bottom: 1px solid rgba(204, 255, 0, 0.06);
    background:
        radial-gradient(circle at 28% 48%, rgba(204, 255, 0, 0.13), transparent 26%),
        radial-gradient(circle at 70% 50%, rgba(61, 161, 255, 0.10), transparent 30%),
        linear-gradient(rgba(204, 255, 0, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.034) 1px, transparent 1px),
        rgba(3, 5, 4, 0.96);
    background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

.segmentation-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.42)),
        radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, 0.46));
    pointer-events: none;
}

.segmentation-section::after,
.body-mesh-section::after,
.skeleton-overlay-section::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(76vw, 1180px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.24), transparent);
    pointer-events: none;
}

.segmentation-visual,
.segmentation-copy {
    position: relative;
    z-index: 1;
}

.segmentation-visual {
    order: 2;
}

.segmentation-copy {
    order: 1;
}

.segmentation-video-frame {
    position: relative;
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(4, 7, 7, 0.74);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.62),
        0 0 80px rgba(204, 255, 0, 0.08);
    clip-path: polygon(0 0, 94% 0, 100% 8%, 100% 100%, 6% 100%, 0 92%);
    transform: translateZ(0);
    transition:
        transform 520ms var(--ease-lux),
        border-color 520ms var(--ease-lux),
        box-shadow 520ms var(--ease-lux);
}

.segmentation-video-frame:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(204, 255, 0, 0.34);
    box-shadow:
        0 44px 110px rgba(0, 0, 0, 0.7),
        0 0 110px rgba(204, 255, 0, 0.13);
}

.segmentation-video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 720px;
    object-fit: contain;
    background: #030504;
    filter: saturate(1.04) contrast(1.02);
}

.segmentation-video-frame::before {
    content: '';
    position: absolute;
    inset: 0.85rem;
    z-index: 2;
    border: 1px solid rgba(204, 255, 0, 0.14);
    box-shadow: inset 0 0 44px rgba(204, 255, 0, 0.08);
    pointer-events: none;
}

.segmentation-badge {
    position: absolute;
    left: 1.35rem;
    bottom: 1.35rem;
    z-index: 4;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(204, 255, 0, 0.28);
    background: rgba(0, 0, 0, 0.62);
    color: var(--volt);
    font-family: var(--font-data);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.segmentation-copy {
    max-width: 700px;
}

.segmentation-copy h2 {
    margin: 0 0 1.15rem;
    color: var(--text-primary);
    font-size: clamp(2.55rem, 5vw, 5.8rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    font-style: italic;
    text-wrap: balance;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.72);
}

.segmentation-copy > p {
    color: rgba(235, 238, 242, 0.76);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
    margin: 0 0 1.4rem;
}

.segmentation-benefits {
    display: grid;
    gap: 0.75rem;
}

.segmentation-benefits div {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    min-height: 4.2rem;
    border: 1px solid rgba(204, 255, 0, 0.15);
    background: rgba(255, 255, 255, 0.034);
    transition:
        transform 320ms var(--ease-lux),
        background 320ms var(--ease-lux),
        border-color 320ms var(--ease-lux);
}

.segmentation-benefits div:hover {
    transform: translateX(8px);
    border-color: rgba(204, 255, 0, 0.28);
    background: rgba(204, 255, 0, 0.052);
}

.segmentation-benefits span {
    display: grid;
    place-items: center;
    height: 100%;
    border-right: 1px solid rgba(204, 255, 0, 0.12);
    color: rgba(204, 255, 0, 0.78);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.segmentation-benefits strong {
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.35;
    text-transform: uppercase;
}

.body-mesh-section {
    width: 100vw;
    margin: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(7rem, 10vw, 10rem) max(7vw, 4rem) clamp(6rem, 8vw, 7rem);
    text-align: left;
    overflow: hidden;
    border-top: 1px solid rgba(204, 255, 0, 0.06);
    border-bottom: 1px solid rgba(204, 255, 0, 0.06);
    background:
        linear-gradient(180deg, rgba(3, 5, 4, 0.98), rgba(3, 5, 4, 0.88) 18%, rgba(3, 5, 4, 0.95) 100%),
        radial-gradient(circle at 74% 48%, rgba(204, 255, 0, 0.13), transparent 26%),
        radial-gradient(circle at 55% 56%, rgba(61, 161, 255, 0.10), transparent 28%),
        linear-gradient(rgba(204, 255, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.035) 1px, transparent 1px),
        rgba(3, 5, 4, 0.96);
    background-size: auto, auto, auto, 58px 58px, 58px 58px, auto;
}

.body-mesh-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 45%, rgba(0, 0, 0, 0.20)),
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.42));
    pointer-events: none;
}

.body-mesh-copy,
.body-mesh-viewer-shell {
    position: relative;
    z-index: 1;
}

.body-mesh-copy {
    max-width: 640px;
}

.body-mesh-copy h2 {
    margin: 0 0 1.2rem;
    color: var(--text-primary);
    font-size: clamp(2.4rem, 4.8vw, 5.9rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    font-style: italic;
    text-wrap: balance;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.72);
}

.body-mesh-copy p {
    color: rgba(235, 238, 242, 0.76);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.body-mesh-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.body-mesh-points span {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(204, 255, 0, 0.28);
    background: rgba(204, 255, 0, 0.055);
    color: var(--volt);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        transform 280ms var(--ease-lux),
        background 280ms var(--ease-lux),
        border-color 280ms var(--ease-lux);
}

.body-mesh-points span:hover {
    transform: translateY(-3px);
    border-color: rgba(204, 255, 0, 0.48);
    background: rgba(204, 255, 0, 0.09);
}

.body-mesh-disclaimer {
    max-width: 580px;
    padding-left: 0.9rem;
    border-left: 2px solid rgba(255, 204, 0, 0.55);
    color: rgba(255, 230, 178, 0.78) !important;
    font-size: 0.92rem !important;
}

.body-mesh-viewer-shell {
    min-height: min(84svh, 860px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(204, 255, 0, 0.09), transparent 33%),
        radial-gradient(circle at center, rgba(61, 161, 255, 0.06), transparent 44%);
}

.body-mesh-viewer {
    width: min(100%, 760px);
    height: min(84svh, 860px);
    --poster-color: transparent;
    cursor: grab;
    filter: drop-shadow(0 26px 76px rgba(0, 0, 0, 0.62));
    transition: filter 360ms var(--ease-lux), transform 360ms var(--ease-lux);
}

.body-mesh-viewer:hover {
    filter:
        drop-shadow(0 30px 90px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 34px rgba(204, 255, 0, 0.08));
}

.body-mesh-viewer:active {
    cursor: grabbing;
}

.body-mesh-viewer:not([src]) {
    min-height: min(72svh, 720px);
    background:
        radial-gradient(circle at center, rgba(204, 255, 0, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.018);
}

.body-mesh-hint {
    justify-self: center;
    margin-top: -2.25rem;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.skeleton-overlay-section {
    width: 100vw;
    margin: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding: clamp(5rem, 8vw, 7rem) max(7vw, 4rem) clamp(5rem, 8vw, 7rem);
    overflow: hidden;
    border-top: 1px solid rgba(204, 255, 0, 0.06);
    border-bottom: 1px solid rgba(204, 255, 0, 0.08);
    background:
        linear-gradient(180deg, rgba(3, 5, 4, 0.95), rgba(2, 4, 4, 0.98) 22%),
        radial-gradient(circle at 24% 50%, rgba(204, 255, 0, 0.14), transparent 24%),
        radial-gradient(circle at 58% 40%, rgba(61, 161, 255, 0.11), transparent 28%),
        linear-gradient(rgba(204, 255, 0, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.032) 1px, transparent 1px),
        rgba(2, 4, 4, 0.98);
    background-size: auto, auto, auto, 54px 54px, 54px 54px, auto;
}

.skeleton-overlay-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 38%, rgba(0, 0, 0, 0.45)),
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.48));
    pointer-events: none;
}

.skeleton-overlay-visual,
.skeleton-overlay-copy {
    position: relative;
    z-index: 1;
}

.skeleton-overlay-frame {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 0.95rem;
    border: 1px solid rgba(204, 255, 0, 0.17);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
        rgba(6, 9, 8, 0.72);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.62),
        0 0 80px rgba(204, 255, 0, 0.08);
    clip-path: polygon(0 0, 93% 0, 100% 7%, 100% 100%, 7% 100%, 0 93%);
    transition:
        transform 520ms var(--ease-lux),
        border-color 520ms var(--ease-lux),
        box-shadow 520ms var(--ease-lux);
}

.skeleton-overlay-frame:hover {
    transform: translateY(-8px) scale(1.012);
    border-color: rgba(204, 255, 0, 0.34);
    box-shadow:
        0 42px 108px rgba(0, 0, 0, 0.72),
        0 0 110px rgba(204, 255, 0, 0.13);
}

.skeleton-overlay-frame::before {
    content: '';
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.skeleton-overlay-frame::before {
    inset: 0.95rem;
    border: 1px solid rgba(204, 255, 0, 0.16);
    box-shadow: inset 0 0 42px rgba(204, 255, 0, 0.08);
}

.skeleton-overlay-frame img,
.skeleton-overlay-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 14;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.03) contrast(1.03);
}

.skeleton-overlay-frame video {
    background: #050706;
}

.skeleton-overlay-badge {
    position: absolute;
    left: 1.45rem;
    bottom: 1.45rem;
    z-index: 3;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(204, 255, 0, 0.28);
    background: rgba(0, 0, 0, 0.62);
    color: var(--volt);
    font-family: var(--font-data);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.skeleton-overlay-copy {
    max-width: 760px;
}

.skeleton-overlay-copy h2 {
    margin: 0 0 1.15rem;
    color: var(--text-primary);
    font-size: clamp(2.55rem, 5.1vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    font-style: italic;
    text-wrap: balance;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.72);
}

.skeleton-overlay-copy > p {
    color: rgba(235, 238, 242, 0.76);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.skeleton-application-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.8rem 0;
}

.skeleton-application-grid div {
    min-height: 10rem;
    padding: 1rem;
    border: 1px solid rgba(204, 255, 0, 0.15);
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform 320ms var(--ease-lux),
        background 320ms var(--ease-lux),
        border-color 320ms var(--ease-lux);
}

.skeleton-application-grid div:hover {
    transform: translateY(-6px);
    border-color: rgba(204, 255, 0, 0.28);
    background: rgba(204, 255, 0, 0.052);
}

.skeleton-application-grid span {
    display: block;
    margin-bottom: 1.2rem;
    color: rgba(204, 255, 0, 0.68);
    font-family: var(--font-data);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.skeleton-application-grid strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.96rem;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.skeleton-application-grid p {
    margin: 0;
    color: rgba(235, 238, 242, 0.62);
    font-size: 0.88rem;
    line-height: 1.55;
}

.skeleton-overlay-note {
    max-width: 650px;
    padding-left: 0.9rem;
    border-left: 2px solid rgba(255, 204, 0, 0.55);
    color: rgba(255, 230, 178, 0.78) !important;
    font-size: 0.92rem !important;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-founder-page {
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(204, 255, 0, 0.09), transparent 25%),
        radial-gradient(circle at 88% 36%, rgba(90, 150, 255, 0.08), transparent 28%),
        linear-gradient(rgba(204, 255, 0, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.024) 1px, transparent 1px),
        rgba(3, 4, 4, 0.98);
    background-size: auto, auto, 64px 64px, 64px 64px, auto;
}

.about-founder-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 45%, rgba(0, 0, 0, 0.48)),
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.56));
    pointer-events: none;
}

.about-founder-hero,
.about-founder-split,
.about-founder-gap,
.about-founder-cta {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding-left: max(5vw, 2rem);
    padding-right: max(5vw, 2rem);
}

.about-founder-hero,
.about-founder-split {
    min-height: calc(100svh - 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6.5rem);
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
}

.about-founder-split {
    min-height: auto;
    border-top: 1px solid rgba(204, 255, 0, 0.08);
}

.about-founder-split-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
}

.about-founder-hero-copy,
.about-founder-copy {
    align-self: start;
    max-width: 760px;
}

.about-founder-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    color: rgba(204, 255, 0, 0.86);
    font-family: var(--font-data);
    font-size: clamp(0.72rem, 0.82vw, 0.86rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-founder-label::before {
    content: '';
    display: inline-block;
    width: 2.6rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(204, 255, 0, 0.15), rgba(204, 255, 0, 0.72));
}

.about-founder-hero h1,
.about-founder-copy h2,
.about-founder-gap h2,
.about-founder-cta h2 {
    margin: 0 0 1.35rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 950;
    font-style: italic;
    line-height: 0.88;
    letter-spacing: -0.065em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}

.about-founder-hero h1 {
    max-width: 850px;
    font-size: clamp(4rem, 8vw, 9.4rem);
}

.about-founder-copy h2,
.about-founder-gap h2,
.about-founder-cta h2 {
    font-size: clamp(3rem, 5.6vw, 6.8rem);
}

.about-founder-lead,
.about-founder-copy p,
.about-founder-gap p,
.about-founder-cta > p {
    color: rgba(235, 238, 242, 0.76);
    font-size: clamp(1.06rem, 1.24vw, 1.26rem);
    line-height: 1.72;
}

.about-founder-lead {
    max-width: 720px;
    margin: 0 0 1.5rem;
    color: rgba(245, 248, 250, 0.82);
    font-size: clamp(1.16rem, 1.55vw, 1.52rem);
}

.about-founder-copy p {
    max-width: 680px;
    margin: 0 0 1.05rem;
}

.about-founder-proof {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 560px;
    margin-top: 2rem;
    padding: 1rem 1.1rem;
    border-left: 2px solid rgba(204, 255, 0, 0.62);
    background: rgba(255, 255, 255, 0.035);
}

.about-founder-proof span {
    color: var(--volt);
    font-family: var(--font-data);
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.about-founder-proof p {
    margin: 0;
    color: rgba(235, 238, 242, 0.74);
    font-size: clamp(0.95rem, 1vw, 1.04rem);
    line-height: 1.55;
}

.about-founder-hero-media,
.about-founder-media {
    position: relative;
    align-self: start;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.16);
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        0 34px 95px rgba(0, 0, 0, 0.62),
        0 0 80px rgba(204, 255, 0, 0.08);
    transform: translateZ(0);
    margin-top: clamp(2.55rem, 3.2vw, 3.95rem);
}

.about-founder-hero-media {
    justify-self: end;
    width: min(100%, 520px);
    aspect-ratio: 4 / 5.35;
    border-radius: 18px;
}

.about-founder-media {
    justify-self: center;
    width: min(100%, 560px);
    aspect-ratio: 4 / 5;
    border-radius: 16px;
}

.about-founder-hero-media::after,
.about-founder-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.36)),
        radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.about-founder-hero-media img,
.about-founder-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.04);
}

.about-founder-gap {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
    border-top: 1px solid rgba(204, 255, 0, 0.08);
    border-bottom: 1px solid rgba(204, 255, 0, 0.08);
}

.about-founder-gap h2 {
    max-width: 1030px;
}

.about-founder-gap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.4rem, 4vw, 4rem);
    max-width: 1120px;
    margin-top: 2rem;
}

.about-founder-gap-grid p {
    margin: 0;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    border: 1px solid rgba(204, 255, 0, 0.13);
    background:
        linear-gradient(135deg, rgba(204, 255, 0, 0.05), transparent 42%),
        rgba(255, 255, 255, 0.032);
}

.about-founder-cta {
    padding-top: clamp(6rem, 9vw, 9rem);
    padding-bottom: clamp(6rem, 9vw, 9rem);
    text-align: center;
}

.about-founder-cta .about-founder-label {
    justify-content: center;
}

.about-founder-cta h2 {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.about-founder-cta > p {
    max-width: 760px;
    margin: 0 auto 1.6rem;
}

.about-founder-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin: 0.8rem auto 1.75rem;
    padding: 0.95rem 2.15rem;
    background: var(--volt);
    color: #050505;
    font-family: var(--font-data);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 0 42px rgba(204, 255, 0, 0.18);
    transition:
        transform 280ms var(--ease-lux),
        box-shadow 280ms var(--ease-lux);
}

.about-founder-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 54px rgba(204, 255, 0, 0.22);
}

.about-founder-disclaimer {
    max-width: 720px !important;
    color: rgba(255, 230, 178, 0.78) !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
}

@media (max-width: 1024px) {
    .about-founder-hero,
    .about-founder-split {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2.4rem);
        min-height: auto;
        padding-top: clamp(4rem, 7vw, 6rem);
        padding-bottom: clamp(4rem, 7vw, 6rem);
    }

    .about-founder-hero-copy,
    .about-founder-copy,
    .about-founder-split-reverse .about-founder-copy {
        order: 1;
        max-width: min(100%, 760px);
    }

    .about-founder-hero-media,
    .about-founder-media,
    .about-founder-split-reverse .about-founder-media {
        order: 2;
        justify-self: start;
        width: min(100%, 620px);
        margin-top: 0;
    }
}

@keyframes uploadGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(204, 255, 0, 0.10)); }
    50%       { filter: drop-shadow(0 0 14px rgba(204, 255, 0, 0.35)); }
}

.runner-context-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(8, 10, 10, 0.76);
    border: 1px solid rgba(204, 255, 0, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    clip-path: polygon(0 0, 98% 0, 100% 9%, 100% 100%, 2% 100%, 0 91%);
}

.runner-context-head {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.runner-context-head h2 {
    margin: 0.25rem 0 0.55rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 950;
    font-style: italic;
    line-height: 0.92;
    text-transform: uppercase;
}

.runner-context-head p:last-child {
    margin: 0;
    color: rgba(235, 238, 242, 0.62);
    font-size: 0.94rem;
    line-height: 1.55;
}

.runner-context-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.form-field-wide {
    grid-column: span 2;
}

.form-field label,
.injury-fieldset > span {
    color: rgba(235, 238, 242, 0.68);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.inline-fields input,
.inline-fields select {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.42);
    color: var(--text-primary);
    font: 700 0.95rem var(--font-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.inline-fields input:focus,
.inline-fields select:focus {
    border-color: rgba(204, 255, 0, 0.62);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.10);
    background: rgba(0, 0, 0, 0.62);
}

.inline-fields {
    display: grid;
    grid-template-columns: minmax(88px, 0.65fr) minmax(110px, 1fr) minmax(82px, 0.65fr);
    gap: 0.55rem;
}

.access-code-panel {
    width: min(100%, 520px);
    margin: 1.5rem auto 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(204, 255, 0, 0.18);
    background: rgba(0, 0, 0, 0.34);
}

.access-code-panel label {
    display: block;
    color: rgba(235, 238, 242, 0.72);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.access-code-panel input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.46);
    color: var(--text-primary);
    font: 800 1rem var(--font-primary);
    outline: none;
}

.access-code-panel input:focus {
    border-color: rgba(204, 255, 0, 0.64);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.10);
}

.access-code-panel p {
    margin: 0.55rem 0 0;
    color: rgba(235, 238, 242, 0.54);
    font-size: 0.88rem;
}

.speed-fields {
    grid-template-columns: minmax(92px, 0.8fr) minmax(110px, 1fr) minmax(88px, 0.75fr) minmax(88px, 0.75fr);
}

.injury-fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.injury-fieldset label,
.consent-check {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: rgba(235, 238, 242, 0.72);
    font-size: 0.9rem;
    line-height: 1.35;
}

.injury-fieldset input,
.consent-check input {
    accent-color: var(--volt);
}

.consent-check-submit {
    width: min(100%, 780px);
    margin: 1rem auto 0;
    padding: 0.95rem 1rem;
    justify-content: center;
    border: 1px solid rgba(204, 255, 0, 0.18);
    background: rgba(204, 255, 0, 0.045);
}

.submit-validation-message {
    width: min(100%, 780px);
    margin: 0.9rem auto 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid #ffcc33;
    background: rgba(255, 204, 51, 0.08);
    color: #ffe08a;
    font-weight: 800;
    text-align: center;
}

.consent-check {
    width: 100%;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-left: 2px solid rgba(255, 204, 0, 0.65);
    background: rgba(255, 204, 0, 0.07);
    color: rgba(255, 238, 190, 0.82);
}

.upload-area {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 5rem 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* Angular Tech Cutout */
    clip-path: polygon(0 0, 97% 0, 100% 8%, 100% 100%, 3% 100%, 0 92%);
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.45s both,
               uploadGlow 3s ease-in-out 1.2s infinite;
    width: 100%;
    max-width: 800px;
}

/* Laser Scan Animation */
.upload-area::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to bottom, transparent, var(--volt), transparent);
    box-shadow: var(--glow-intense);
    animation: laserScan 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes laserScan {
    0% {
        top: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.upload-area:hover {
    border-color: var(--volt);
    background: var(--glass-hover);
    transform: translateY(-8px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    filter: drop-shadow(0 0 22px rgba(204, 255, 0, 0.55));
    animation: sprintIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.45s both;
}

.upload-area.dragover {
    border-color: var(--volt);
    background: var(--glass-hover);
    transform: scale(1.02) skewX(-2deg);
    box-shadow: var(--glow-intense);
}

.upload-area.dragover::before {
    animation-duration: 1s;
}

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

.upload-content svg {
    color: var(--volt);
    margin-bottom: 2rem;
    width: 80px;
    height: 80px;
    filter: drop-shadow(var(--glow-volt));
    animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        opacity: 0.9;
    }
}

.upload-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.file-info {
    font-size: 0.9rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-family: var(--font-data);
    letter-spacing: 0.5px;
}

#file-input {
    display: none;
}

.file-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    animation: slideInLeft 0.5s ease-out;
    border-left: 3px solid var(--volt);
    clip-path: polygon(0 0, 98% 0, 100% 6%, 100% 100%, 2% 100%, 0 94%);
    width: 100%;
    max-width: 800px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-info-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-remove {
    background: var(--error);
    color: var(--obsidian);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transform: skewX(-5deg);
}

.btn-remove:hover {
    background: #ff5577;
    transform: skewX(-5deg) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   BUTTONS - Kinetic Forward Lean
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* Angular Tech Cutout */
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    transform: skewX(-5deg);
    font-family: var(--font-ui);
}

@keyframes btnShimmer {
    0%        { left: -100%; }
    18%, 100% { left: 200%; }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

#submit-btn::before {
    animation: btnShimmer 3.5s ease-in-out infinite;
}

.btn-primary {
    background: var(--volt);
    color: var(--obsidian);
    box-shadow: var(--shadow-md), var(--glow-volt);
}

.btn-primary:hover {
    background: #fff;
    transform: skewX(-5deg) scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-intense);
}

.btn-primary:active {
    transform: skewX(-5deg) scale(0.98);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--volt);
    color: var(--volt);
    transform: skewX(-5deg) scale(1.05);
}

.btn-sm {
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
}

/* ============================================
   INFO SECTION - Staggered Entrance
   ============================================ */
.info-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 150px;
    }
}

.info-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 95% 0, 100% 10%, 100% 100%, 5% 100%, 0 90%);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-hover), transparent);
    transition: left 0.6s ease;
}

.step:hover::before {
    left: 100%;
}

.step:hover {
    transform: translateY(-12px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-color: var(--volt);
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 0;
    background: var(--volt);
    color: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    margin: 0 auto 2rem;
    box-shadow: var(--glow-intense);
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    transform: skewX(-10deg);
    position: relative;
    animation: pulseVolt 2s ease-in-out infinite;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   VIDEO REQUIREMENTS SECTION
   ============================================ */
.requirements-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    scroll-margin-top: 2rem;
}

.requirements-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 150px;
    height: 2px;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    animation: expandLine 1s ease-out;
}

.requirements-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.requirements-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.requirement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%);
    animation: slideInUp 0.8s ease-out backwards;
}

.requirement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.requirement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.requirement-card:nth-child(3) {
    animation-delay: 0.3s;
}

.requirement-card:nth-child(4) {
    animation-delay: 0.4s;
}

.requirement-card:nth-child(5) {
    animation-delay: 0.5s;
}

.requirement-card:nth-child(6) {
    animation-delay: 0.6s;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-hover), transparent);
    transition: left 0.6s ease;
}

.requirement-card:hover::before {
    left: 100%;
}

.requirement-card:hover {
    transform: translateY(-8px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-color: var(--volt);
}

.requirement-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.75rem;
    display: block;
    color: var(--volt);
    filter: drop-shadow(0 0 6px var(--volt-glow));
    flex-shrink: 0;
}

.requirement-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-align: center;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-card ul li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.requirement-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--volt);
    font-weight: bold;
    font-size: 1.2rem;
}

.requirement-card ul li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.requirements-tips {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--volt);
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 98% 0, 100% 4%, 100% 100%, 2% 100%, 0 96%);
    animation: fadeInUp 1s ease-out;
}

.requirements-tips h3 {
    margin-bottom: 2rem;
    color: var(--volt);
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--glow-volt);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    line-height: 1.8;
    transition: var(--transition-fast);
    clip-path: polygon(0 0, 97% 0, 100% 5%, 100% 100%, 3% 100%, 0 95%);
    animation: slideInLeft 0.6s ease-out backwards;
}

.tip-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tip-item:nth-child(2) {
    animation-delay: 0.2s;
}

.tip-item:nth-child(3) {
    animation-delay: 0.3s;
}

.tip-item:nth-child(4) {
    animation-delay: 0.4s;
}

.tip-item:hover {
    transform: translateX(8px) skewX(-1deg);
    box-shadow: var(--shadow-md);
    background: var(--glass-hover);
    border-color: var(--volt);
}

.tip-item strong {
    color: var(--volt);
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   RESULTS PAGE - Telemetry Display
   ============================================ */
.results-container {
    max-width: 1320px;
    margin: 2.5rem auto 3.5rem;
    animation: fadeIn 0.8s ease-out;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.processing-state {
    text-align: center;
    padding: 6rem 2rem;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--volt);
    border-right-color: var(--volt);
    border-radius: 0;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
    transform: skewX(-10deg);
    animation: spin 1s linear infinite;
    margin: 0 auto 3rem;
    box-shadow: var(--glow-volt);
}

@keyframes spin {
    to {
        transform: skewX(-10deg) rotate(360deg);
    }
}

.progress-bar-container {
    width: 100%;
    max-width: 600px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: inset var(--shadow-sm);
    position: relative;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.progress-bar {
    height: 100%;
    background: var(--volt);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--glow-intense);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progressShine 1.5s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-data);
    letter-spacing: 2px;
}

.processing-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.processing-actions .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.explanation-card-title,
.video-compare-label,
.history-summary-label,
.history-compare-run-label {
    font-size: 0.72rem;
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
}

.so-kicker {
    margin: 0;
    color: rgba(204, 255, 0, 0.78);
    font-family: var(--font-data);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.results-content h1 {
    margin: 0.25rem 0 0.8rem;
    font-size: clamp(3rem, 5.8vw, 5.25rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 0.95;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(204, 255, 0, 0.2);
}

.result-meta {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.08rem;
    font-family: var(--font-data);
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.results-titlebar {
    margin-bottom: 2rem;
    border: 1px solid rgba(204, 255, 0, 0.14);
    background:
        radial-gradient(circle at 8% 18%, rgba(204, 255, 0, 0.085), transparent 30%),
        rgba(255, 255, 255, 0.026);
    border-radius: 18px;
    padding: clamp(1.45rem, 3vw, 2.15rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.results-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.results-title-actions .btn {
    padding: 0.78rem 1.1rem;
    font-size: 0.74rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.leg-analysis {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    clip-path: polygon(0 0, 94% 0, 100% 12%, 100% 100%, 6% 100%, 0 88%);
    animation: slideInUp 0.8s ease-out backwards;
}

.leg-analysis:nth-child(1) {
    animation-delay: 0.1s;
}

.leg-analysis:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leg-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.leg-analysis:hover::before {
    transform: scaleX(1);
}

.leg-analysis:hover {
    transform: translateY(-10px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-color: var(--volt);
}

.leg-analysis h2 {
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.angle-display {
    margin-bottom: 2.5rem;
}

.angle-value {
    font-family: var(--font-data);
    font-size: 6rem;
    font-weight: 800;
    color: var(--volt);
    letter-spacing: -6px;
    text-shadow: var(--glow-intense);
    line-height: 1;
    animation: numberPop 0.8s ease-out;
}

@keyframes numberPop {
    0% {
        transform: scale(0) skewX(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) skewX(-10deg);
    }

    100% {
        transform: scale(1) skewX(0deg);
        opacity: 1;
    }
}

.angle-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    font-family: var(--font-data);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pattern-badge {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transform: skewX(-10deg);
    transition: var(--transition-fast);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: var(--shadow-md);
    }

    50% {
        box-shadow: var(--shadow-md), var(--glow-volt);
    }
}

.pattern-badge:hover {
    transform: skewX(-10deg) scale(1.05);
}

.pattern-neutral {
    background: var(--volt);
    color: var(--obsidian);
    box-shadow: var(--glow-intense);
}

.pattern-overpronation,
.pattern-severe-overpronation {
    background: var(--warning);
    color: var(--obsidian);
}

.pattern-supination,
.pattern-severe-supination {
    background: var(--warning);
    color: var(--obsidian);
}

.leg-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s ease-out backwards;
}

.stat:nth-child(1) {
    animation-delay: 0.2s;
}

.stat:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-data);
}

.stat-value {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-family: var(--font-data);
    letter-spacing: -1px;
}

.warning-badge {
    background: var(--warning);
    color: var(--obsidian);
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transform: skewX(-8deg);
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: skewX(-8deg) translateX(0);
    }

    25% {
        transform: skewX(-8deg) translateX(-8px);
    }

    75% {
        transform: skewX(-8deg) translateX(8px);
    }
}

.asymmetry-alert {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 4px solid var(--warning);
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.8s ease-out;
    clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%);
}

.asymmetry-alert h3 {
    margin-bottom: 1.5rem;
    color: var(--warning);
    font-size: 1.75rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.asymmetry-alert ul {
    margin: 2rem 0;
    padding-left: 2rem;
    list-style: none;
}

.asymmetry-alert ul li {
    padding: 0.75rem 0;
    position: relative;
    color: var(--text-secondary);
    font-family: var(--font-data);
}

.asymmetry-alert ul li::before {
    content: '→';
    position: absolute;
    left: -2rem;
    color: var(--warning);
    font-weight: bold;
}

/* ============================================
   CADENCE & GROUND CONTACT TIME METRICS
   ============================================ */
.metrics-section {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out;
}

.metrics-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-align: center;
}

.metric-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
    border-left: 3px solid var(--volt);
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-color: var(--volt);
}

.metric-value {
    font-family: var(--font-data);
    font-size: 5rem;
    font-weight: 900;
    color: var(--volt);
    letter-spacing: -4px;
    text-shadow: var(--glow-intense);
    line-height: 1;
    margin-bottom: 1rem;
    animation: numberPop 0.8s ease-out;
}

.metric-value .unit {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-family: var(--font-data);
}

.metric-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.metric-details span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-data);
    letter-spacing: 1px;
}

.gct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.gct-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 4% 100%, 0 94%);
    transition: var(--transition-smooth);
    animation: slideInUp 0.8s ease-out backwards;
}

.gct-card:nth-child(1) {
    animation-delay: 0.1s;
}

.gct-card:nth-child(2) {
    animation-delay: 0.3s;
}

.gct-card:hover {
    transform: translateY(-8px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-color: var(--volt);
}

.gct-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.gct-value {
    font-family: var(--font-data);
    font-size: 4rem;
    font-weight: 900;
    color: var(--volt);
    letter-spacing: -3px;
    text-shadow: var(--glow-intense);
    line-height: 1;
    margin-bottom: 2rem;
    animation: numberPop 0.8s ease-out;
}

.gct-value .unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.gct-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.gct-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gct-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-data);
}

.gct-stat-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-data);
    letter-spacing: -1px;
}

.gct-asymmetry {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--warning);
    border-left: 3px solid var(--warning);
    color: var(--warning);
    font-weight: 700;
    text-align: center;
    clip-path: polygon(0 0, 98% 0, 100% 5%, 100% 100%, 2% 100%, 0 95%);
    animation: shake 0.6s ease-in-out;
}

.gct-asymmetry .warning-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ============================================
   VIDEO WITH OVERLAY
   ============================================ */
.video-section {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.video-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-align: center;
}

.video-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
    border-left: 3px solid var(--volt);
    position: relative;
    overflow: visible;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    z-index: 1;
}

.analysis-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    background: var(--obsidian);
    object-fit: contain;
    position: relative;
    z-index: 0;
}

.video-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    font-family: var(--font-data);
    letter-spacing: 1px;
}

.metadata {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    margin: 3rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--volt);
    font-family: var(--font-data);
    letter-spacing: 1px;
    clip-path: polygon(0 0, 98% 0, 100% 5%, 100% 100%, 2% 100%, 0 95%);
}

.actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.error-state,
.no-results,
.error-container {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

/* ============================================
   ANALYSIS EXAMPLE PAGE
   ============================================ */
.history-container {
    max-width: 1100px;
    margin: 3rem auto;
    animation: fadeIn 0.8s ease-out;
}

.analysis-example-container {
    max-width: 920px;
    padding: 2rem 0 4rem;
}

.analysis-example-container h1 {
    margin: 0.35rem 0 0.85rem;
    max-width: 780px;
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 900;
    font-style: italic;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text-primary);
}

.analysis-example-lead {
    max-width: 620px;
    margin: 0 0 2.2rem;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.65;
}

.analysis-example-disclaimer {
    display: inline-flex;
    margin: 0 0 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(204, 255, 0, 0.24);
    color: var(--text-primary);
    background: rgba(204, 255, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.45;
}

.analysis-example-card {
    max-width: 860px;
    padding: clamp(1.3rem, 3vw, 2rem);
    border-color: rgba(204, 255, 0, 0.18);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.analysis-example-preview {
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.14);
    border-radius: 14px;
    background: #030504;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.analysis-example-preview video,
.analysis-example-preview img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #030504;
}

.analysis-example-metrics {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.analysis-example-metrics span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
}

.analysis-example-note {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Actionable advice callout */
.advice-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-left: 3px solid var(--volt);
    border-radius: 10px;
    padding: 1.2rem 1.6rem;
    margin: 1.5rem 0 0.5rem;
}
.advice-text {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}
.advice-text strong {
    color: var(--volt);
    font-weight: 600;
}

.explanation-grid,
.next-steps-list,
.history-summary-grid,
.history-compare-metrics {
    display: grid;
    gap: 1rem;
}

.explanation-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 2rem 0 3rem;
}

.explanation-card,
.next-step-item,
.history-summary-card,
.history-compare-panel,
.quality-check-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.explanation-card {
    padding: 1.4rem 1.5rem;
    clip-path: polygon(0 0, 98% 0, 100% 10%, 100% 100%, 2% 100%, 0 90%);
}

.explanation-card p {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.video-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-compare-card {
    display: grid;
    gap: 0.8rem;
}

.next-steps-section {
    margin-top: 3rem;
}

.next-steps-list {
    margin-top: 1rem;
}

.next-step-item {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--volt);
    color: var(--text-secondary);
}

/* Pronation trend chart */
.history-chart-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem 2.5rem 1.5rem;
    margin-bottom: 3rem;
    clip-path: polygon(0 0, 99% 0, 100% 4%, 100% 100%, 1% 100%, 0 96%);
}
.history-chart-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--volt);
    margin-bottom: 0.25rem;
}
.history-chart-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-data);
    letter-spacing: 0.5px;
}
.history-chart-wrap {
    position: relative;
}
.history-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    font-family: var(--font-data);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.hcl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.history-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 1.5rem;
}

.history-summary-card {
    padding: 1.5rem;
    clip-path: polygon(0 0, 98% 0, 100% 10%, 100% 100%, 2% 100%, 0 90%);
}

.history-summary-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-top: 0.35rem;
}

.history-summary-sub,
.history-card-metrics,
.history-compare-run-file,
.compare-toolbar p,
.quality-check-intro,
.quality-check-note {
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.82rem;
    line-height: 1.55;
}

.history-trend-callout {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--volt);
    background: rgba(204, 255, 0, 0.04);
}

.history-trend-callout p {
    margin: 0;
    color: var(--text-secondary);
}

.history-compare-panel {
    margin-bottom: 2rem;
    padding: 1.5rem;
    clip-path: polygon(0 0, 99% 0, 100% 6%, 100% 100%, 1% 100%, 0 94%);
}

.history-compare-head,
.compare-toolbar,
.quality-check-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.history-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.history-compare-run {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.history-compare-run-date {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.history-compare-metrics {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.history-compare-metric {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.history-compare-metric span,
.quality-check-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
    font-family: var(--font-data);
}

.history-compare-metric strong,
.quality-check-value {
    color: var(--text-primary);
    font-size: 1rem;
}

.history-compare-metric em {
    color: var(--volt);
    font-style: normal;
    font-size: 0.82rem;
}

.compare-toolbar {
    margin-bottom: 1.25rem;
}

.compare-toolbar h2,
.quality-check-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-card-metrics {
    display: grid;
    gap: 0.25rem;
    margin: 1rem 0 1.2rem;
}

.compare-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.compare-check input {
    accent-color: var(--volt);
}

.quality-check-panel {
    margin: 1.5rem 0 0;
    padding: 1.4rem 1.5rem;
}

.quality-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.quality-check-item {
    padding: 0.95rem 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.quality-check-pass {
    border-left: 3px solid var(--success);
}

.quality-check-warn {
    border-left: 3px solid var(--warning);
}

.quality-check-fail {
    border-left: 3px solid var(--error);
}

.quality-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-family: var(--font-data);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quality-pill-ready {
    background: rgba(61, 220, 132, 0.14);
    color: var(--success);
}

.quality-pill-warn {
    background: rgba(255, 204, 0, 0.12);
    color: var(--warning);
}

@media (max-width: 900px) {
    .history-compare-head,
    .compare-toolbar,
    .quality-check-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    clip-path: polygon(0 0, 97% 0, 100% 8%, 100% 100%, 3% 100%, 0 92%);
    border-left: 3px solid transparent;
    animation: slideInLeft 0.6s ease-out backwards;
}

.history-item:nth-child(1) {
    animation-delay: 0.1s;
}

.history-item:nth-child(2) {
    animation-delay: 0.2s;
}

.history-item:nth-child(3) {
    animation-delay: 0.3s;
}

.history-item:hover {
    transform: translateX(15px) skewX(-1deg);
    box-shadow: var(--shadow-lg), var(--glow-volt);
    border-left-color: var(--volt);
}

.history-info h3 {
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-data);
    letter-spacing: 1px;
}

.history-status {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.status-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-sm);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transform: skewX(-8deg);
    animation: fadeIn 0.5s ease-out;
}

.status-complete {
    background: var(--success);
    color: var(--obsidian);
}

.status-processing {
    background: var(--volt);
    color: var(--obsidian);
    animation: pulseVolt 2s ease-in-out infinite;
}

.status-pending {
    background: var(--warning);
    color: var(--obsidian);
}

.status-cancelled {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.status-error {
    background: var(--error);
    color: var(--text-primary);
}

/* ============================================
   FOOTER - Minimal Tech
   ============================================ */
footer {
    margin-top: auto;
    padding: 3rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ============================================
   ATHLETIC ANIMATIONS — SPRINT FEEL
   ============================================ */

/* Sprint-in: explosive entrance with overshoot */
@keyframes sprintIn {
    0% {
        opacity: 0;
        transform: translateY(55px) skewX(-3deg);
    }

    55% {
        opacity: 1;
        transform: translateY(-10px) skewX(0.8deg);
    }

    75% {
        transform: translateY(5px) skewX(-0.3deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewX(0);
    }
}

/* Volt underline sweeps in like a finish-line tape */
@keyframes sweepLine {
    0% {
        transform: scaleX(0) skewX(-5deg);
        opacity: 0;
    }

    100% {
        transform: scaleX(1) skewX(-5deg);
        opacity: 1;
    }
}

/* Speed streak shoots across the screen */
/* CTA heartbeat — volt glow pulse */
@keyframes ctaHeartbeat {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0), var(--shadow-md);
    }

    40% {
        box-shadow: 0 0 22px 7px rgba(204, 255, 0, 0.35), var(--shadow-lg);
    }

    65% {
        box-shadow: 0 0 12px 3px rgba(204, 255, 0, 0.18), var(--shadow-md);
    }
}


/* ── HUD targeting corner brackets ── */
.hud-corner {
    position: absolute;
    width: 0;
    height: 0;
    border-color: var(--volt);
    border-style: solid;
    opacity: 0;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
    z-index: 3;
    pointer-events: none;
}
.hud-tl { top: 14px;    left: 14px;    border-width: 2px 0 0 2px; }
.hud-tr { top: 14px;    right: 14px;   border-width: 2px 2px 0 0; }
.hud-bl { bottom: 14px; left: 14px;    border-width: 0 0 2px 2px; }
.hud-br { bottom: 14px; right: 14px;   border-width: 0 2px 2px 0; }
.upload-area:hover .hud-corner,
.upload-area.dragover .hud-corner {
    width: 28px;
    height: 28px;
    opacity: 1;
}

/* ── Typewriter cursor blink on hero-catch ── */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.tw-cursor {
    display: inline-block;
    color: var(--volt);
    font-weight: 300;
    margin-left: 1px;
    animation: cursorBlink 0.8s step-end infinite;
}

/* Scroll-reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-d1 {
    transition-delay: 0.08s;
}

.reveal-d2 {
    transition-delay: 0.16s;
}

.reveal-d3 {
    transition-delay: 0.24s;
}

.reveal-d4 {
    transition-delay: 0.32s;
}

.reveal-d5 {
    transition-delay: 0.40s;
}

.reveal-d6 {
    transition-delay: 0.48s;
}

/* Submit button: volt heartbeat when shown */
#submit-btn {
    animation: ctaHeartbeat 2.2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: 2rem;
    }

    .upload-container h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .upload-sample-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .actions {
        flex-direction: column;
    }

    .angle-value {
        font-size: 4rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .requirement-card,
    .requirements-tips {
        clip-path: none;
    }

    .requirements-link {
        transform: none;
        clip-path: none;
    }

    .requirements-link span {
        transform: none;
    }

    .btn,
    .pattern-badge,
    .status-badge {
        clip-path: none;
        transform: none;
    }

    .btn:hover,
    .pattern-badge:hover {
        transform: scale(1.05);
    }

    .upload-area,
    .leg-analysis,
    .gct-card,
    .metric-card {
        clip-path: none;
    }

    .gct-grid {
        grid-template-columns: 1fr;
    }

    .metric-value,
    .gct-value {
        font-size: 3rem;
    }

    .metric-details {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 20px;
    }

    .video-container {
        padding: 1rem;
        overflow: visible;
    }

    .analysis-video {
        max-width: 100%;
        width: 100%;
    }

    .results-container {
        padding: 0 1rem;
    }
}

/* ============================================
   PRONATION GAUGE
   ============================================ */
.pronation-gauge {
    margin: 1.5rem 0 2rem;
}

.gauge-bar {
    height: 10px;
    background: linear-gradient(to right,
            #1565c0 0%,
            #42a5f5 23.3%,
            var(--volt) 40%,
            var(--volt) 63.3%,
            var(--warning) 80%,
            var(--error) 100%);
    position: relative;
    clip-path: polygon(1% 0, 100% 0, 99% 100%, 0 100%);
    box-shadow: var(--shadow-sm);
}

.gauge-marker {
    position: absolute;
    top: -7px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.gauge-marker-line {
    width: 2px;
    height: 24px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.5);
}

.gauge-marker-diamond {
    width: 7px;
    height: 7px;
    background: #ffffff;
    transform: rotate(45deg);
    margin-top: -2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-data);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gauge-labels span:nth-child(2) {
    text-align: center;
}

/* ============================================
   SYMMETRY SECTION
   ============================================ */
.symmetry-section {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out;
}

.symmetry-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-align: center;
}

.symmetry-display {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sym-leg {
    text-align: center;
    min-width: 90px;
}

.sym-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-family: var(--font-data);
    margin-bottom: 0.5rem;
}

.sym-angle {
    font-family: var(--font-data);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--volt);
    text-shadow: var(--glow-volt);
    letter-spacing: -2px;
    line-height: 1;
}

.sym-pattern {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

.sym-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sym-bar-track {
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    clip-path: polygon(1% 0, 100% 0, 99% 100%, 0 100%);
}

.sym-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--volt);
    box-shadow: var(--glow-volt);
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.sym-diff {
    font-family: var(--font-data);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-align: center;
}

.sym-diff strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* ============================================
   VIDEO PREVIEW (upload page)
   ============================================ */
.video-preview-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    animation: slideInLeft 0.5s ease-out;
    position: relative;
}

.video-preview-player {
    width: 100%;
    max-height: 320px;
    display: block;
    background: var(--obsidian);
    object-fit: contain;
    clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.video-preview-label {
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-data);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   ANGLE CHART
   ============================================ */
.chart-section {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out;
}

.chart-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-align: center;
}

.chart-wrap {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 3% 100%, 0 94%);
    border-left: 3px solid var(--volt);
    position: relative;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-data);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.chart-legend-dot {
    width: 20px;
    height: 3px;
    border-radius: 0;
}

/* Processing stage label */
.stage-label {
    font-family: var(--font-data);
    font-size: 0.85rem;
    color: var(--volt);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   ANIMATED SKELETON — processing page
   ============================================ */
.skeleton-anim-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 180px;
}

.skeleton-svg {
    filter: drop-shadow(0 0 8px var(--volt));
    overflow: visible;
}

.skel-line {
    stroke: var(--volt);
    stroke-width: 3;
    stroke-linecap: round;
}

.skel-line-dim {
    stroke: rgba(204, 255, 0, 0.35);
    stroke-width: 2;
    stroke-linecap: round;
}

.skel-dot {
    fill: var(--volt);
}

.skel-dot-sm {
    fill: var(--volt);
    opacity: 0.7;
}

/* Leg groups — pivot at respective hip joints */
.skel-leg-l {
    transform-box: view-box;
    transform-origin: 46px 80px;
    animation: leftLegSwing 0.85s ease-in-out infinite;
}

.skel-leg-r {
    transform-box: view-box;
    transform-origin: 74px 80px;
    animation: rightLegSwing 0.85s ease-in-out infinite;
}

/* Arm groups — pivot at shoulders, opposite phase to same-side leg */
.skel-arm-l {
    transform-box: view-box;
    transform-origin: 40px 44px;
    animation: rightLegSwing 0.85s ease-in-out infinite;
    /* opposite to left leg */
}

.skel-arm-r {
    transform-box: view-box;
    transform-origin: 80px 44px;
    animation: leftLegSwing 0.85s ease-in-out infinite;
    /* opposite to right leg */
}

@keyframes leftLegSwing {
    0% {
        transform: rotate(-18deg);
    }

    50% {
        transform: rotate(18deg);
    }

    100% {
        transform: rotate(-18deg);
    }
}

@keyframes rightLegSwing {
    0% {
        transform: rotate(18deg);
    }

    50% {
        transform: rotate(-18deg);
    }

    100% {
        transform: rotate(18deg);
    }
}

/* Scan line sweeps top to bottom */
.skel-scanline {
    stroke: var(--volt);
    stroke-width: 1.5;
    opacity: 0.5;
    animation: scanMove 2.2s linear infinite;
}

@keyframes scanMove {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(185px);
        opacity: 0;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   HERO STRIP — results page at-a-glance
   ============================================ */
.hero-strip {
    display: flex;
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-metric {
    flex: 1;
    padding: 1.5rem 1.25rem;
    background: var(--glass-bg);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background 0.2s;
}

.hero-metric:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hero-metric-value {
    font-family: var(--font-data);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-metric-value.val-ok {
    color: var(--volt);
    text-shadow: 0 0 16px rgba(204, 255, 0, 0.4);
}

.hero-metric-value.val-warn {
    color: var(--warning);
}

.hero-unit {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 2px;
}

.hero-metric-label {
    font-size: 0.7rem;
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.hero-metric-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* ============================================
   HISTORY CARDS
   ============================================ */
.history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.history-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: inherit;
}

.history-card:hover {
    border-color: rgba(204, 255, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.history-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-card-date {
    font-family: var(--font-data);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.history-card-filename {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-card-progress {
    height: 3px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.history-card-progress-fill {
    height: 100%;
    background: var(--volt);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.history-card-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ============================================
   MODAL VISION RESULT ARTIFACTS
   ============================================ */
.vision-results-panel {
    margin: 2rem 0;
    border: 1px solid rgba(204, 255, 0, 0.18);
    background:
        linear-gradient(135deg, rgba(204, 255, 0, 0.055), transparent 36%),
        rgba(255, 255, 255, 0.035);
    border-radius: 18px;
    padding: clamp(1.35rem, 3vw, 2.3rem);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.vision-results-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-results-head h2 {
    margin: 0.25rem 0 0.65rem;
    font-size: clamp(2.1rem, 3.8vw, 4rem);
    letter-spacing: -0.01em;
    line-height: 1.02;
}

.vision-results-head p {
    color: var(--text-secondary);
    max-width: 760px;
    font-size: clamp(1.05rem, 1.2vw, 1.22rem);
    line-height: 1.65;
}

.vision-status-chip {
    border: 1px solid rgba(204, 255, 0, 0.35);
    color: var(--volt);
    background: rgba(204, 255, 0, 0.08);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-data);
    font-size: 0.76rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.vision-status-review {
    border-color: rgba(255, 191, 87, 0.45);
    color: #ffbf57;
    background: rgba(255, 191, 87, 0.08);
}

.vision-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: -0.5rem 0 1.35rem;
}

.vision-trust-strip > div {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(0, 0, 0, 0.24);
    border-left: 3px solid rgba(204, 255, 0, 0.54);
}

.vision-trust-strip > div:last-child {
    border-left-color: rgba(255, 191, 87, 0.72);
}

.vision-trust-strip span,
.feature-so-what-grid span {
    display: block;
    margin-bottom: 0.42rem;
    color: rgba(204, 255, 0, 0.82);
    font-family: var(--font-data);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vision-trust-strip strong {
    display: block;
    color: rgba(235, 238, 242, 0.86);
    font-size: 0.92rem;
    line-height: 1.42;
}

.confidence-text.confidence-high {
    color: var(--volt) !important;
    text-shadow: 0 0 18px rgba(204, 255, 0, 0.28);
}

.vision-artifact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.vision-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.vision-feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.vision-feature-card .analysis-video {
    width: 100%;
    height: min(62vh, 590px);
    min-height: 360px;
    object-fit: contain;
    background: #030405;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 0 0 1px rgba(204, 255, 0, 0.025);
}

.vision-video-card {
    margin-bottom: 1rem;
}

.vision-video-card .analysis-video {
    width: 100%;
    max-height: 620px;
    background: #030405;
    border-radius: 8px;
}

.vision-frame-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.vision-artifact-card {
    border: 1px solid rgba(255, 255, 255, 0.095);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
        rgba(6, 8, 10, 0.76);
    border-radius: 16px;
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
    min-width: 0;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.vision-artifact-card h3 {
    margin: -0.25rem 0 0.25rem;
    color: var(--text-primary);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.15;
}

.vision-card-label {
    width: fit-content;
    color: rgba(204, 255, 0, 0.78);
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    border: 1px solid rgba(204, 255, 0, 0.14);
    background: rgba(204, 255, 0, 0.045);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
}

.vision-subsection-head {
    margin: 1.65rem 0 0.85rem;
}

.vision-subsection-head h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.65rem, 2.8vw, 2.65rem);
    font-weight: 950;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.vision-model-viewer {
    width: 100%;
    height: min(62vh, 590px);
    min-height: 390px;
    background:
        linear-gradient(rgba(204, 255, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.035) 1px, transparent 1px),
        #06080a;
    background-size: 34px 34px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.mesh-stress-note {
    margin: 0.7rem 0 0 !important;
    color: rgba(255, 92, 76, 0.86) !important;
    font-family: var(--font-data);
    font-size: 0.82rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mesh-interpretation {
    margin-top: 0.25rem;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border: 1px solid rgba(204, 255, 0, 0.1);
    background: rgba(3, 5, 6, 0.34);
    border-radius: 12px;
}

.mesh-interpretation-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.mesh-interpretation-head span,
.mesh-interpretation-head strong,
.mesh-context-list dt {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.mesh-interpretation-head span {
    color: rgba(204, 255, 0, 0.75);
    font-size: 0.72rem;
}

.mesh-interpretation-head strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.feature-plain-summary {
    margin: 0 0 1rem !important;
    color: rgba(235, 238, 242, 0.70);
    font-size: clamp(1.05rem, 1.18vw, 1.22rem) !important;
    line-height: 1.68;
}

.feature-so-what-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0 0 1rem;
}

.feature-so-what-grid > div {
    padding: 1rem;
    border: 1px solid rgba(204, 255, 0, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.feature-so-what-grid p {
    margin: 0;
    color: rgba(235, 238, 242, 0.66);
    font-size: 0.94rem;
    line-height: 1.55;
}

.feature-readout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.feature-readout-grid-compact {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}

.feature-readout-card {
    min-width: 0;
    border: 1px solid rgba(204, 255, 0, 0.12);
    background:
        linear-gradient(135deg, rgba(204, 255, 0, 0.065), transparent),
        rgba(255, 255, 255, 0.035);
    border-radius: 10px;
    padding: 0.9rem;
}

.feature-readout-card.is-emphasis {
    border-color: rgba(204, 255, 0, 0.26);
    background:
        radial-gradient(circle at 10% 12%, rgba(204, 255, 0, 0.11), transparent 42%),
        rgba(204, 255, 0, 0.055);
}

.feature-readout-card span {
    display: block;
    color: rgba(204, 255, 0, 0.76);
    font-family: var(--font-data);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    line-height: 1.2;
    text-transform: uppercase;
}

.feature-readout-card strong {
    display: block;
    margin: 0.35rem 0 0.22rem;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 950;
    line-height: 1.05;
}

.feature-readout-card p {
    margin: 0 !important;
    color: rgba(235, 238, 242, 0.62) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

.mesh-region-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.mesh-region-list div,
.mesh-context-list div {
    min-width: 0;
    border: 1px solid rgba(204, 255, 0, 0.12);
    background: rgba(204, 255, 0, 0.055);
    border-radius: 8px;
    padding: 0.65rem;
}

.mesh-region-list span,
.mesh-context-list dt {
    display: block;
    color: var(--text-muted);
    font-size: 0.62rem;
    line-height: 1.2;
}

.mesh-region-list strong,
.mesh-context-list dd {
    display: block;
    margin: 0.22rem 0 0;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.08rem;
}

.mesh-region-list small {
    display: block;
    margin-top: 0.18rem;
    color: rgba(235, 238, 242, 0.58);
    font-family: var(--font-data);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mesh-context-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.85rem;
}

.mesh-disclaimer {
    margin: 0.15rem 0 0 !important;
    color: rgba(255, 225, 155, 0.72) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    border-left: 2px solid rgba(255, 204, 0, 0.55);
    padding-left: 0.7rem;
}

.overlay-interpretation {
    margin-top: 0.25rem;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border: 1px solid rgba(110, 231, 255, 0.12);
    background: rgba(3, 5, 6, 0.34);
    border-radius: 12px;
}

.overlay-interpretation-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.overlay-interpretation-head span,
.overlay-interpretation-head strong,
.overlay-metric span,
.overlay-metric small,
.overlay-quality-flags span {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.overlay-interpretation-head span {
    color: rgba(204, 255, 0, 0.78);
    font-size: 0.72rem;
}

.overlay-interpretation-head strong {
    color: var(--text-primary);
    font-size: 0.78rem;
}

.overlay-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.overlay-metric {
    min-width: 0;
    border: 1px solid rgba(110, 231, 255, 0.13);
    background:
        linear-gradient(135deg, rgba(110, 231, 255, 0.07), transparent),
        rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    padding: 1rem;
    min-height: 118px;
}

.overlay-metric span,
.overlay-metric small {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.25;
}

.overlay-metric strong {
    display: block;
    margin: 0.3rem 0 0.25rem;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
}

.overlay-disclaimer {
    margin: 0.85rem 0 0 !important;
    color: rgba(255, 225, 155, 0.74) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    border-left: 2px solid rgba(255, 204, 0, 0.52);
    padding-left: 0.7rem;
}

.pronation-report {
    margin-top: 0.85rem;
    border: 1px solid rgba(204, 255, 0, 0.14);
    background:
        radial-gradient(circle at 12% 15%, rgba(204, 255, 0, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.032);
    border-radius: 10px;
    padding: 1.25rem;
}

.pronation-report.level-watch {
    border-color: rgba(255, 191, 87, 0.26);
}

.pronation-report.level-review {
    border-color: rgba(255, 92, 76, 0.34);
}

.pronation-report-head,
.pronation-side-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pronation-report-head {
    margin-bottom: 0.65rem;
}

.pronation-report-head span,
.pronation-report-head em,
.pronation-side-title span,
.pronation-pattern,
.pronation-read-note {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.pronation-report-head span {
    display: block;
    color: rgba(204, 255, 0, 0.78);
    font-size: 0.68rem;
}

.pronation-report-head strong {
    display: block;
    margin-top: 0.24rem;
    color: var(--text-primary);
    font-size: clamp(1.12rem, 1.6vw, 1.4rem);
    line-height: 1.15;
}

.pronation-report-head em {
    color: rgba(235, 238, 242, 0.72);
    font-size: 0.58rem;
    font-style: normal;
    white-space: nowrap;
}

.pronation-report p {
    margin: 0 0 0.85rem !important;
    color: rgba(235, 238, 242, 0.76) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.pronation-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pronation-side-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(3, 5, 6, 0.54);
    border-radius: 8px;
    padding: 1rem;
}

.pronation-side-title span {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.pronation-side-title strong {
    color: var(--text-primary);
    font-size: 1.45rem;
    line-height: 1;
}

.pronation-scale {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
    align-items: center;
    margin: 0.75rem 0 0.55rem;
}

.pronation-scale span {
    color: rgba(235, 238, 242, 0.46);
    font-size: 0.62rem;
}

.pronation-scale-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(110, 231, 255, 0.48), rgba(204, 255, 0, 0.34) 50%, rgba(255, 191, 87, 0.58));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pronation-scale-track i {
    position: absolute;
    left: 50%;
    top: -4px;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.42);
}

.pronation-scale-track b {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 3px solid #ccff00;
    box-shadow: 0 0 18px rgba(204, 255, 0, 0.55);
}

.pronation-pattern {
    display: inline-flex;
    max-width: 100%;
    border: 1px solid rgba(204, 255, 0, 0.17);
    background: rgba(204, 255, 0, 0.07);
    color: rgba(230, 255, 120, 0.92);
    border-radius: 999px;
    padding: 0.3rem 0.48rem;
    font-size: 0.66rem;
    line-height: 1.1;
}

.pronation-pattern.pattern-watch {
    border-color: rgba(255, 191, 87, 0.26);
    background: rgba(255, 191, 87, 0.08);
    color: rgba(255, 221, 156, 0.92);
}

.pronation-pattern.pattern-review {
    border-color: rgba(255, 92, 76, 0.35);
    background: rgba(255, 92, 76, 0.09);
    color: rgba(255, 176, 166, 0.94);
}

.pronation-pattern.classification-neutral {
    border-color: rgba(204, 255, 0, 0.18);
    background: rgba(204, 255, 0, 0.08);
    color: rgba(230, 255, 120, 0.94);
}

.pronation-pattern.classification-pronated {
    border-color: rgba(255, 191, 87, 0.28);
    background: rgba(255, 191, 87, 0.09);
    color: rgba(255, 221, 156, 0.96);
}

.pronation-pattern.classification-overpronated {
    border-color: rgba(255, 92, 76, 0.38);
    background: rgba(255, 92, 76, 0.11);
    color: rgba(255, 176, 166, 0.98);
}

.pronation-pattern.classification-supinated {
    border-color: rgba(110, 231, 255, 0.30);
    background: rgba(110, 231, 255, 0.09);
    color: rgba(184, 242, 255, 0.98);
}

.pronation-side-card small {
    display: block;
    margin-top: 0.55rem;
    color: rgba(235, 238, 242, 0.58);
    font-size: 0.86rem;
    line-height: 1.5;
}

.pronation-read-note {
    margin-top: 0.8rem;
    color: rgba(255, 225, 155, 0.66);
    font-size: 0.7rem;
    line-height: 1.55;
}

.overlay-quality-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.overlay-quality-flags span {
    border: 1px solid rgba(255, 191, 87, 0.24);
    background: rgba(255, 191, 87, 0.08);
    color: rgba(255, 225, 155, 0.88);
    border-radius: 999px;
    padding: 0.3rem 0.5rem;
    font-size: 0.54rem;
}

.segmentation-interpretation {
    margin-top: 0.25rem;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border: 1px solid rgba(255, 95, 214, 0.12);
    background: rgba(3, 5, 6, 0.34);
    border-radius: 12px;
}

.segmentation-interpretation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.segmentation-interpretation-head span,
.segmentation-interpretation-head em,
.segmentation-metric span,
.segmentation-metric small,
.segmentation-posture-note,
.segmentation-quality-flags span {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.25px;
}

.segmentation-interpretation-head span {
    display: block;
    color: rgba(204, 255, 0, 0.78);
    font-size: 0.72rem;
}

.segmentation-interpretation-head strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-primary);
    font-size: clamp(1.18rem, 1.7vw, 1.52rem);
    line-height: 1.12;
}

.segmentation-interpretation-head em {
    color: rgba(235, 238, 242, 0.72);
    font-size: 0.58rem;
    font-style: normal;
    white-space: nowrap;
}

.segmentation-interpretation p {
    margin: 0 0 0.85rem !important;
    color: rgba(235, 238, 242, 0.74) !important;
    font-size: clamp(1.05rem, 1.18vw, 1.22rem) !important;
    line-height: 1.68 !important;
}

.segmentation-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.segmentation-metric {
    min-width: 0;
    border: 1px solid rgba(255, 95, 214, 0.15);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 95, 214, 0.09), transparent 45%),
        rgba(255, 255, 255, 0.032);
    border-radius: 8px;
    padding: 1rem;
    min-height: 118px;
}

.segmentation-metric span,
.segmentation-metric small {
    display: block;
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.25;
}

.segmentation-metric strong {
    display: block;
    margin: 0.3rem 0 0.24rem;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 900;
    line-height: 1.12;
}

.segmentation-posture-note {
    margin-top: 0.8rem;
    border: 1px solid rgba(204, 255, 0, 0.12);
    background: rgba(204, 255, 0, 0.045);
    border-radius: 10px;
    padding: 0.82rem 0.95rem;
    color: rgba(230, 255, 120, 0.88);
    font-size: 0.76rem;
    line-height: 1.55;
}

.segmentation-disclaimer {
    margin: 0.85rem 0 0 !important;
    color: rgba(255, 225, 155, 0.74) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    border-left: 2px solid rgba(255, 204, 0, 0.52);
    padding-left: 0.7rem;
}

.segmentation-quality-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.segmentation-quality-flags span {
    border: 1px solid rgba(255, 191, 87, 0.24);
    background: rgba(255, 191, 87, 0.08);
    color: rgba(255, 225, 155, 0.88);
    border-radius: 999px;
    padding: 0.3rem 0.5rem;
    font-size: 0.54rem;
}

.vision-preview-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #030405;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vision-placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
}

.vision-placeholder-compact {
    min-height: auto;
    margin-top: 0.75rem;
    padding: 0.75rem;
    font-size: 0.82rem;
}

.vision-artifact-actions,
.vision-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.vision-artifact-actions .btn,
.vision-download-row .btn {
    padding: 0.72rem 1.05rem;
    font-size: 0.72rem;
}

.vision-overlay-video {
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(6, 8, 10, 0.72);
    border-radius: 10px;
    padding: 1rem;
}

.vision-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.vision-metric-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        rgba(3, 5, 6, 0.42);
    border-radius: 8px;
    padding: 1.05rem;
    min-height: 102px;
}

.vision-metric-card span {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
}

.vision-metric-card strong {
    color: var(--text-primary);
    font-size: clamp(1.32rem, 2vw, 1.68rem);
    line-height: 1.1;
}

.vision-warning {
    margin-top: 1rem;
    border: 1px solid rgba(255, 191, 87, 0.28);
    background: rgba(255, 191, 87, 0.075);
    color: #ffd59a;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   TEMPORAL INTERPRETATION LAYER
   ============================================ */
.interpretation-panel {
    margin: 2rem 0;
    border: 1px solid rgba(110, 231, 255, 0.16);
    background:
        radial-gradient(circle at 82% 8%, rgba(110, 231, 255, 0.11), transparent 28%),
        linear-gradient(135deg, rgba(204, 255, 0, 0.045), transparent 42%),
        rgba(255, 255, 255, 0.032);
    border-radius: 18px;
    padding: clamp(1.35rem, 3vw, 2.3rem);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.interpretation-head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.6rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.interpretation-head h2 {
    margin: 0.25rem 0 0.65rem;
    font-size: clamp(2.1rem, 3.8vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.interpretation-head p {
    color: var(--text-secondary);
    max-width: 820px;
    font-size: clamp(1.05rem, 1.2vw, 1.22rem);
    line-height: 1.65;
}

.interpretation-confidence {
    min-width: 170px;
    border: 1px solid rgba(110, 231, 255, 0.3);
    background: rgba(110, 231, 255, 0.07);
    border-radius: 14px;
    padding: 1rem;
    text-align: right;
}

.interpretation-confidence span,
.interpretation-confidence small {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.interpretation-confidence strong {
    display: block;
    margin: 0.3rem 0;
    font-size: clamp(1.65rem, 2.1vw, 2.1rem);
}

.confidence-high strong {
    color: var(--volt);
}

.confidence-medium strong {
    color: #6ee7ff;
}

.confidence-low strong {
    color: #ffbf57;
}

.interpretation-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 1rem;
    margin: 1.15rem 0 1.45rem;
}

.interpretation-metric,
.interpretation-card,
.interpretation-insight {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(6, 8, 10, 0.62);
    border-radius: 14px;
}

.interpretation-metric {
    padding: 1.05rem;
    min-height: 112px;
}

.interpretation-metric span {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 0.45rem;
}

.interpretation-metric strong {
    color: var(--text-primary);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.15;
}

.interpretation-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.interpretation-card {
    padding: 1.35rem;
}

.interpretation-card h3,
.interpretation-insight h3 {
    margin: 0 0 0.85rem;
    color: var(--text-primary);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    line-height: 1.15;
}

.interpretation-list {
    display: grid;
    gap: 0.78rem;
    margin: 0;
}

.interpretation-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.interpretation-list dt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.35;
}

.interpretation-list dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.08rem;
    text-align: right;
}

.interpretation-disclaimer {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.interpretation-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.interpretation-insight {
    padding: 1rem;
    border-left: 3px solid rgba(110, 231, 255, 0.55);
}

.interpretation-insight span {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.58rem;
    margin-bottom: 0.35rem;
}

.interpretation-insight p {
    margin: 0;
    color: var(--text-secondary);
}

.interpretation-insight.severity-good {
    border-left-color: rgba(204, 255, 0, 0.7);
}

.interpretation-insight.severity-watch {
    border-left-color: rgba(255, 191, 87, 0.78);
}

.interpretation-insight.severity-review {
    border-left-color: rgba(255, 91, 91, 0.8);
}

/* ============================================
   MOBILE — responsive layout
   ============================================ */
@media (max-width: 768px) {

    /* Reset the desktop zoom — mobile has its own viewport */
    html {
        zoom: 1;
    }

    body::before {
        animation: none;
        background-size: 42px 42px;
        opacity: 0.2;
    }

    .container {
        padding: 0 1rem;
    }

    main.container {
        padding: 0 0.85rem;
    }

    /* Nav */
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.05rem;
        gap: 0.45rem;
    }

    .logo-divider {
        height: 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.45rem;
    }

    .nav-links a {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 0.42rem 0;
        white-space: nowrap;
    }

    .nav-links a.nav-analyze,
    .nav-links a.nav-beta {
        padding: 0.48rem 0.7rem;
    }

    .landing-proof-grid,
    .landing-evidence-grid,
    .landing-demo-strip,
    .landing-wedge-section,
    .landing-founder-proof {
        grid-template-columns: 1fr;
    }

    .landing-demo-actions {
        justify-content: flex-start;
    }

    .landing-proof-card,
    .landing-evidence-grid > div,
    .landing-wedge-grid > div {
        min-height: auto;
        padding: 1rem;
    }

    .landing-proof-card strong,
    .landing-wedge-grid strong {
        font-size: clamp(1.25rem, 8vw, 1.85rem);
        line-height: 1.02;
    }

    .landing-proof-card p,
    .landing-evidence-grid p,
    .landing-wedge-grid span {
        font-size: 1rem;
        line-height: 1.5;
    }

    .landing-section-head h2,
    .landing-demo-strip h2,
    .landing-wedge-copy h2,
    .landing-founder-proof h2,
    .landing-why-now h2 {
        font-size: clamp(2rem, 11vw, 3.65rem);
        letter-spacing: -0.05em;
        line-height: 0.96;
    }

    .landing-section-head p,
    .landing-demo-strip p,
    .landing-wedge-copy p,
    .landing-founder-proof p,
    .landing-why-now p {
        font-size: 1.05rem;
        line-height: 1.58;
    }

    .landing-proof-section,
    .landing-evidence-section,
    .landing-wedge-section,
    .landing-founder-proof,
    .landing-why-now,
    .landing-demo-strip {
        margin: 3rem auto;
    }

    .landing-wedge-section,
    .landing-demo-strip,
    .landing-founder-proof {
        padding: 1.15rem;
    }

    .landing-wedge-grid {
        margin-top: 1rem;
    }

    /* Upload page */
    .upload-container {
        padding: 1.5rem 0 0;
        margin: 1.25rem auto 3rem;
    }

    .runner-context-panel {
        padding: 1.2rem;
        clip-path: none;
    }

    .runner-context-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .inline-fields,
    .speed-fields {
        grid-template-columns: 1fr;
    }

    .mesh-region-list,
    .mesh-context-list {
        grid-template-columns: 1fr 1fr;
    }

    .landing-video-hero {
        width: 100vw;
        min-height: min(620px, 58svh);
        margin-left: -50vw;
        margin-right: -50vw;
        margin-top: -1.25rem;
    }

    .landing-hero-content {
        width: min(94vw, 720px);
        padding: 2.35rem 0.65rem;
    }

    .landing-hero-subtitle {
        font-size: clamp(0.98rem, 4.5vw, 1.18rem);
        line-height: 1.45;
    }

    .landing-hero-proofline {
        justify-content: center;
        line-height: 1.35;
        white-space: normal;
    }

    .segmentation-section {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3.25rem 1rem;
        text-align: center;
    }

    .segmentation-visual {
        order: 2;
    }

    .segmentation-copy {
        order: 1;
        max-width: 100%;
    }

    .segmentation-copy h2 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .segmentation-video-frame {
        width: min(92vw, 360px);
        border-radius: 14px;
        clip-path: none;
    }

    .segmentation-benefits div {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        text-align: left;
    }

    .body-mesh-section {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3.25rem 1rem;
        text-align: center;
    }

    .body-mesh-copy {
        max-width: 100%;
    }

    .body-mesh-copy h2 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .body-mesh-points {
        justify-content: center;
    }

    .body-mesh-disclaimer {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left;
    }

    .body-mesh-viewer-shell {
        min-height: 430px;
    }

    .body-mesh-viewer {
        width: min(94vw, 410px);
        height: 430px;
    }

    .body-mesh-hint {
        margin-top: -0.8rem;
    }

    .skeleton-overlay-section {
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3.25rem 1rem;
        text-align: center;
    }

    .skeleton-overlay-visual {
        order: 2;
    }

    .skeleton-overlay-copy {
        order: 1;
        max-width: 100%;
    }

    .skeleton-overlay-copy h2 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .skeleton-application-grid {
        grid-template-columns: 1fr;
    }

    .skeleton-application-grid div {
        min-height: auto;
    }

    .skeleton-overlay-frame {
        width: min(92vw, 390px);
        border-radius: 14px;
        clip-path: none;
    }

    .skeleton-overlay-note {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left;
    }

    .about-founder-page {
        width: 100vw;
        margin-left: -50vw;
    }

    .about-founder-hero,
    .about-founder-split {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3.5rem 1rem;
    }

    .about-founder-hero-copy,
    .about-founder-copy {
        max-width: none;
    }

    .about-founder-hero-media,
    .about-founder-media {
        justify-self: stretch;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .about-founder-hero-media img,
    .about-founder-media img {
        max-height: 72svh;
        object-fit: cover;
    }

    .about-founder-split-reverse .about-founder-copy {
        order: 1;
    }

    .about-founder-split-reverse .about-founder-media {
        order: 2;
    }

    .about-founder-hero h1 {
        font-size: clamp(2.9rem, 14vw, 5rem);
        letter-spacing: -0.06em;
    }

    .about-founder-copy h2,
    .about-founder-gap h2,
    .about-founder-cta h2 {
        font-size: clamp(2.35rem, 11.5vw, 4rem);
        letter-spacing: -0.05em;
    }

    .about-founder-gap,
    .about-founder-cta {
        padding: 3.5rem 1rem;
    }

    .about-founder-gap-grid {
        grid-template-columns: 1fr;
    }

    .about-founder-proof {
        grid-template-columns: 1fr;
    }

    .about-founder-action {
        width: min(100%, 320px);
    }

    .upload-container h1,
    .hero-headline {
        font-size: 2.5rem;
        letter-spacing: -2px;
    }

    .landing-video-hero .landing-hero-title {
        font-size: clamp(2.7rem, 14vw, 4.8rem);
        letter-spacing: -0.055em;
        line-height: 0.9;
    }

    .hero-catch {
        font-size: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    /* Results — hero strip stacks on very small */
    .hero-strip {
        flex-wrap: wrap;
    }

    .hero-metric {
        flex: 1 1 calc(50% - 1px);
        min-width: 130px;
        padding: 1.1rem 0.75rem;
    }

    .hero-metric-value {
        font-size: 2rem;
    }

    /* Results grid: 2-col → 1-col */
    .results-grid {
        grid-template-columns: 1fr;
    }

    /* Symmetry: horizontal → vertical */
    .symmetry-display {
        flex-direction: column;
        gap: 1rem;
    }

    .sym-leg {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* GCT grid: 2-col → 1-col */
    .gct-grid {
        grid-template-columns: 1fr;
    }

    /* Chart */
    .chart-wrap {
        overflow-x: auto;
    }

    /* History cards: single column */
    .history-cards {
        grid-template-columns: 1fr;
    }

    .vision-results-head,
    .vision-artifact-grid,
    .vision-feature-grid,
    .vision-trust-strip,
    .feature-so-what-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .results-titlebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .results-content h1 {
        font-size: clamp(2.15rem, 12vw, 3.8rem);
        letter-spacing: -0.04em;
        line-height: 0.98;
    }

    .result-meta {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .results-container {
        margin: 1.25rem auto 2rem;
        padding: 0 0.25rem;
    }

    .vision-results-panel {
        padding: 1rem;
        border-radius: 12px;
    }

    .vision-results-head {
        gap: 0.8rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .vision-results-head h2 {
        font-size: clamp(1.9rem, 10vw, 3.2rem);
    }

    .vision-results-head p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .vision-status-chip {
        width: fit-content;
    }

    .vision-trust-strip > div,
    .vision-artifact-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .vision-artifact-card h3 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .vision-model-viewer {
        height: min(62svh, 430px);
        min-height: 300px;
    }

    .vision-feature-card .analysis-video {
        height: auto;
        max-height: 70svh;
        min-height: 0;
    }

    .vision-metrics-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .overlay-metric-grid {
        grid-template-columns: 1fr;
    }

    .pronation-side-grid {
        grid-template-columns: 1fr;
    }

    .segmentation-metric-grid {
        grid-template-columns: 1fr;
    }

    .feature-readout-grid,
    .feature-readout-grid-compact,
    .feature-so-what-grid,
    .mesh-region-list,
    .mesh-context-list {
        grid-template-columns: 1fr;
    }

    .interpretation-head,
    .interpretation-content-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .interpretation-confidence {
        width: 100%;
        text-align: left;
    }

    .interpretation-metric-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    /* Action buttons: stack */
    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
        text-align: center;
    }

    .history-container,
    .analysis-example-container {
        margin: 1.5rem auto 2rem;
        max-width: 100%;
        padding: 1rem 0 2.5rem;
    }

    .analysis-example-container h1 {
        font-size: clamp(2.4rem, 13vw, 4.4rem);
        line-height: 0.95;
    }

    .analysis-example-lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .analysis-example-card {
        padding: 1rem;
    }

    /* Processing page */
    .processing-state h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {

    .upload-container h1,
    .hero-headline {
        font-size: 1.9rem;
        letter-spacing: -1px;
    }

    .hero-metric {
        flex: 1 1 100%;
    }

    .hero-metric-value {
        font-size: 2.4rem;
    }

    .navbar .logo {
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .nav-links a.nav-beta {
        padding: 0.44rem 0.55rem;
    }

    .landing-video-hero {
        min-height: 56svh;
    }

    .landing-video-hero .hero-catch {
        max-width: 94vw;
        font-size: 0.7rem;
        letter-spacing: 0.11em;
    }

    .landing-video-hero .landing-hero-title {
        font-size: clamp(2.45rem, 15vw, 4rem);
    }

    .landing-home-actions .btn,
    .landing-demo-actions .btn,
    .results-title-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .body-mesh-viewer-shell {
        min-height: 380px;
    }

    .body-mesh-viewer {
        height: 380px;
    }

    .vision-model-viewer {
        height: min(58svh, 380px);
        min-height: 280px;
    }

    .vision-card-label,
    .so-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.13em;
    }

    .vision-metrics-grid {
        grid-template-columns: 1fr;
    }

    .interpretation-metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-video-hero {
        min-height: auto;
    }

    .landing-video-hero .landing-hero-title {
        font-size: clamp(2.85rem, 16vw, 5rem);
        line-height: 0.84;
    }
}

@media (max-width: 380px) {
    .landing-video-hero .landing-hero-title {
        font-size: clamp(2.55rem, 15vw, 4.25rem);
    }

    .landing-hero-subtitle {
        font-size: 0.93rem;
    }
}
