/* ============================================
   SparkMap Landing Page Styles — v3 Redesign
   Dark Glassmorphism + HUD/FUI Aesthetic
   ============================================ */

:root {
    --bg-primary: #080810;
    --bg-section-alt: #0d0d1a;
    --bg-panel: rgba(8, 8, 16, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text-primary: #f1f5f9;
    --text-muted: #64748b;
    --text-secondary: #94a3b8;
    --accent-teal: #38bec9;
    --accent-gold: #f0d343;
    --danger: #ef4444;
    --success: #10b981;
    --purple: #7c3aed;
    --orange: #f97316;
    --blue: #3b82f6;
    --border-glass: 1px solid rgba(255, 255, 255, 0.07);
    --border-glass-hover: 1px solid rgba(56, 190, 201, 0.4);
    --glow-teal: 0 0 20px rgba(56, 190, 201, 0.2);
    --glow-gold: 0 0 20px rgba(240, 211, 67, 0.2);
    --blur: blur(24px);
    --radius-card: 14px;
    --radius-btn: 8px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    background: var(--bg-section-alt);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Utility: Gradient Text
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Utility: Section Layout
   ============================================ */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-teal);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-teal);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.text-center .section-label {
    justify-content: center;
}

.text-center .section-label::before {
    display: none;
}

/* ============================================
   Navigation — Floating Pill
   ============================================ */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 24px;
    background: rgba(8, 8, 16, 0.75);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 1000;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    white-space: nowrap;
}

.nav-pill.scrolled {
    background: rgba(8, 8, 16, 0.92);
    border-color: rgba(56, 190, 201, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 190, 201, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-logo img {
    height: 28px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--accent-teal);
    color: #042b2f;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.nav-cta:hover {
    background: #2eadb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(56, 190, 201, 0.35);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: rgba(8, 8, 16, 0.95);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-mobile a:hover {
    color: var(--text-primary);
}

.nav-mobile .nav-cta {
    text-align: center;
    margin-top: 8px;
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Canvas map backdrop */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay gradient (vignette lets canvas show through center) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(8, 8, 16, 0.05) 0%, rgba(8, 8, 16, 0.45) 50%, rgba(8, 8, 16, 0.92) 100%);
    pointer-events: none;
}

/* HUD grid overlay */
.hud-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(56, 190, 201, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 190, 201, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Scan line animation */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(56, 190, 201, 0.4), transparent);
    animation: scan-vertical 8s ease-in-out infinite;
    top: 0;
}

@keyframes scan-vertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Lens label indicator */
.hero-lens-label {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(241, 245, 249, 0.9);
    background: rgba(56, 190, 201, 0.15);
    border: 1px solid rgba(56, 190, 201, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 980px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
    pointer-events: none;
}

.hero-lens-label.visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 28px;
    animation: fadeScaleIn 0.9s cubic-bezier(0,0,0.5,1) both;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(56, 190, 201, 0.08);
}

.hero-coord {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-teal);
    opacity: 0.6;
    margin-bottom: 16px;
    animation: fadeUp 0.8s cubic-bezier(0,0,0.5,1) 0.2s both;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeUp 0.8s cubic-bezier(0,0,0.5,1) 0.3s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: fadeUp 0.8s cubic-bezier(0,0,0.5,1) 0.5s both;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    animation: fadeUp 0.8s cubic-bezier(0,0,0.5,1) 0.6s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.hero-badge:hover {
    transform: translateY(-1px);
}

.hero-badge--teal {
    background: rgba(56, 190, 201, 0.12);
    border-color: rgba(56, 190, 201, 0.3);
}

.hero-badge--gold {
    background: rgba(240, 211, 67, 0.10);
    border-color: rgba(240, 211, 67, 0.28);
}

.hero-badge--neutral {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-badge-count {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}

.hero-badge--teal .hero-badge-count  { color: #38bec9; }
.hero-badge--gold .hero-badge-count  { color: #f0d343; }

.hero-badge-label {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(241, 245, 249, 0.75);
    line-height: 1;
}

.hero-badge--neutral .hero-badge-label {
    color: rgba(241, 245, 249, 0.65);
    font-size: 0.82rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s cubic-bezier(0,0,0.5,1) 0.7s both;
}

.btn-primary {
    background: var(--accent-teal);
    color: #042b2f;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #2eadb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 190, 201, 0.35);
}

.btn-secondary {
    background: transparent;
    color: rgba(241, 245, 249, 0.9);
    font-size: 0.95rem;
    padding: 13px 32px;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal);
    background: rgba(56, 190, 201, 0.08);
    color: #fff;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    z-index: 3;
    opacity: 0.5;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-muted);
}

/* ============================================
   Section Transition Bridges
   ============================================
   Gradient bands that smoothly blend between
   dark and white sections.
*/
.section-bridge {
    height: 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-section-alt) 100%);
    pointer-events: none;
}

.section-bridge--reverse {
    background: linear-gradient(180deg, #f5f5f7 0%, var(--bg-section-alt) 100%);
}

/* ============================================
   Features Section — Bento Grid
   ============================================ */
.features {
    background: var(--bg-section-alt);
    position: relative;
}

/* Override section label/title/subtitle for white bg */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px 18px 0 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Per-lens accent colors */
.feature-card[data-lens="mobility"]    { --card-accent: #10b981; }
.feature-card[data-lens="opportunity"] { --card-accent: #38bec9; }
.feature-card[data-lens="education"]   { --card-accent: #60a5fa; }
.feature-card[data-lens="health"]      { --card-accent: #f0a843; }
.feature-card[data-lens="social"]      { --card-accent: #a78bfa; }
.feature-card[data-lens="justice"]     { --card-accent: #f87171; }

.feature-card .lens-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Feature Icon Wrap */
.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon-wrap.mobility    { background: rgba(16, 185, 129, 0.10); }
.feature-icon-wrap.mobility svg { stroke: #10b981; fill: none; }

.feature-icon-wrap.opportunity { background: rgba(56, 190, 201, 0.10); }
.feature-icon-wrap.opportunity svg { stroke: #38bec9; fill: none; }

.feature-icon-wrap.education   { background: rgba(96, 165, 250, 0.10); }
.feature-icon-wrap.education svg { stroke: #60a5fa; fill: none; }

.feature-icon-wrap.health      { background: rgba(240, 168, 67, 0.10); }
.feature-icon-wrap.health svg  { stroke: #f0a843; fill: none; }

.feature-icon-wrap.social      { background: rgba(167, 139, 250, 0.10); }
.feature-icon-wrap.social svg  { stroke: #a78bfa; fill: none; }

.feature-icon-wrap.justice     { background: rgba(248, 113, 113, 0.10); }
.feature-icon-wrap.justice svg { stroke: #f87171; fill: none; }

/* Bento grid spans */
.bento-large  { grid-column: span 7; grid-row: span 2; min-height: 280px; }
.bento-tall   { grid-column: span 5; grid-row: span 2; }
.bento-half   { grid-column: span 6; }
.bento-wide   { grid-column: span 7; }
.bento-narrow { grid-column: span 5; }

/* Mini color scale in large card */
.bento-scale {
    margin-top: auto;
    padding-top: 20px;
}

/* Decorative map polygon (SVG) */
.bento-map-deco {
    position: absolute;
    bottom: 16px;
    right: 16px;
    opacity: 0.12;
    pointer-events: none;
}

/* ============================================
   Methodology Section
   ============================================ */
.methodology {
    background: var(--bg-section-alt);
    position: relative;
}

.methodology-content {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.meth-heading {
    font-size: 1.15rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meth-heading::before {
    content: '';
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-gold));
    border-radius: 2px;
}

/* Data Sources */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.source-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.source-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.source-badge.atlas { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.source-badge.coi { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.source-badge.census { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.source-badge.osm { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.source-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.source-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Pipeline — Vertical Timeline */
.pipeline-timeline {
    position: relative;
    padding-left: 48px;
}

.pipeline-rail {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-gold), transparent);
    border-radius: 1px;
}

.pipeline-step {
    position: relative;
    margin-bottom: 12px;
    padding: 20px 24px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    /* Animate the properties that cause layout reflow */
    transition: padding-top    0.4s cubic-bezier(0,0,0.5,1),
                padding-bottom 0.4s cubic-bezier(0,0,0.5,1),
                border-color   0.4s cubic-bezier(0,0,0.5,1),
                box-shadow     0.4s cubic-bezier(0,0,0.5,1),
                opacity        0.4s cubic-bezier(0,0,0.5,1),
                background     0.4s cubic-bezier(0,0,0.5,1);
}

.pipeline-step:last-child {
    margin-bottom: 0;
}

/* Scroll-focused: box physically grows via padding reflow */
.pipeline-step.pipeline-focused {
    padding-top: 32px;
    padding-bottom: 32px;
    border-color: rgba(56, 190, 201, 0.5);
    box-shadow: 0 12px 48px rgba(56, 190, 201, 0.15),
                0 0 0 1px rgba(56, 190, 201, 0.12);
    background: rgba(56, 190, 201, 0.07);
    opacity: 1;
}

/* Dimmed peers when a sibling is focused */
.pipeline-timeline.has-focus .pipeline-step:not(.pipeline-focused) {
    opacity: 0.45;
    padding-top: 14px;
    padding-bottom: 14px;
}

.pipeline-dot {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(56, 190, 201, 0.15);
    animation: pulse-ring 3s ease-in-out infinite;
}

.pipeline-step:nth-child(2) .pipeline-dot { animation-delay: 0.5s; }
.pipeline-step:nth-child(3) .pipeline-dot { animation-delay: 1s; }
.pipeline-step:nth-child(4) .pipeline-dot { animation-delay: 1.5s; }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.pipeline-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pipeline-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Scoring */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scoring-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    padding: 24px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

.scoring-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.scoring-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Methodology infographic label — matches section-label but inline (no ::before line) */
.meth-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-teal);
    display: inline-block;
}

.color-scale {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.color-scale span {
    flex: 1;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.about-bg-coord {
    position: absolute;
    font-family: var(--font-mono);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 700;
    color: rgba(56, 190, 201, 0.025);
    top: -1rem;
    right: -1rem;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.about-mission {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 760px;
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 190, 201, 0.2);
    box-shadow: 0 0 0 1px rgba(56, 190, 201, 0.1), 0 8px 40px rgba(56, 190, 201, 0.06);
}

.about-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(56, 190, 201, 0.1);
}

.about-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-teal);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-section-alt);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-coords {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 32px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--radius-card);
    margin-bottom: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-email:hover {
    border-color: rgba(56, 190, 201, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(56, 190, 201, 0.1);
}

.contact-email svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-teal);
}

.contact-response {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: var(--border-glass);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 190, 201, 0.4);
    box-shadow: 0 0 20px rgba(56, 190, 201, 0.12);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--accent-teal);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #060609;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 56px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 240px;
    margin-top: 12px;
}

.footer-brand img {
    height: 24px;
    opacity: 0.6;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-teal);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom .footer-tagline {
    color: rgba(100, 116, 139, 0.5);
    margin-left: 8px;
}

/* ============================================
   Floating Tract Particles
   ============================================ */
.tract-particle {
    position: absolute;
    bottom: -60px;
    width: 40px;
    height: 40px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    border: 1px solid;
    animation: drift-up linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(56, 190, 201, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 190, 201, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 190, 201, 0); }
}

@keyframes drift-up {
    0% {
        transform: translateY(0) rotate(var(--r, 0deg));
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) rotate(calc(var(--r, 0deg) + 30deg));
        opacity: 0;
    }
}

/* ============================================
   Scroll Reveal Animations — Apple easing
   cubic-bezier(0,0,0.5,1): fast start, smooth deceleration
   cubic-bezier(0.3,2,0.5,1): springy overshoot for emphasis
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0,0,0.5,1),
                transform 0.7s cubic-bezier(0,0,0.5,1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.7s cubic-bezier(0,0,0.5,1),
                transform 0.7s cubic-bezier(0,0,0.5,1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.7s cubic-bezier(0,0,0.5,1),
                transform 0.7s cubic-bezier(0,0,0.5,1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered children — springy reveal */
.stagger-children > * {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0,0,0.5,1),
                transform 0.6s cubic-bezier(0,0,0.5,1);
}

/* Tighter stagger: 70ms each, max offset 490ms */
.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 70ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 140ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 210ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 280ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 350ms; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 420ms; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 490ms; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scan-line,
    .tract-particle {
        display: none;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-tall,
    .bento-half,
    .bento-wide,
    .bento-narrow {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-large {
        grid-column: span 2;
        min-height: auto;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-pill {
        top: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 16px;
        padding: 10px 16px;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .section {
        padding: 72px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-logo {
        width: 72px;
        height: 72px;
    }

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

    .bento-large,
    .bento-tall,
    .bento-half,
    .bento-wide,
    .bento-narrow {
        grid-column: span 1;
        grid-row: span 1;
        min-height: auto;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-email {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .hero-lens-label {
        bottom: 68px;
        font-size: 0.6rem;
    }

    .pipeline-timeline {
        padding-left: 40px;
    }

    .pipeline-dot {
        left: -32px;
    }

    .pipeline-rail {
        left: 12px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .hero-badges {
        flex-direction: column;
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
