/* ═══════════════════════════════════════════════════════════════════════════
   report.css — "Same Tool, Opposite Outcomes"
   Coordination Compression Economics Interactive Report

   Dark-themed, scroll-driven longform with 9 gradient zones,
   glassmorphic cards, math notation tooltips, and interactive elements.

   Design system aligned with workforcefutures.net (Inter, Playfair Display,
   accent palette) but adapted for dark immersive reading.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── 1. Custom Properties ────────────────────────────────────────────────── */

:root {
    /* Zone backgrounds */
    --zone-0: #0f172a;
    --zone-1: #141d2f;
    --zone-2: #1a2332;
    --zone-3: #0f2b2b;
    --zone-4: #1a1a2e;
    --zone-5: #1a1a2e;
    --zone-6: #1a1a2e;
    --zone-7: #1e293b;
    --zone-8: #1e293b;

    /* Regime accents */
    --regime-rising-tide: #10b981;
    --regime-gentle: #0ea5e9;
    --regime-winner: #ef4444;
    --regime-creative: #f59e0b;

    /* Text */
    --text-body: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-bright: rgba(255, 255, 255, 1);

    /* Accent (sky blue — consistent with main site) */
    --accent: #0ea5e9;
    --accent-hover: #38bdf8;

    /* Notation */
    --notation-color: #7dd3fc;
    --notation-underline: rgba(125, 211, 252, 0.4);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
    --glass-radius: 16px;
    --glass-blur: blur(12px);

    /* Spacing */
    --section-pad: 6rem;
    --section-pad-mobile: 4rem;
    --content-max: 720px;
    --explorer-max: 800px;

    /* Progress bar */
    --progress: 0%;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Newsreader', 'Georgia', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-ui: 'Inter', sans-serif;

    /* Z-indices */
    --z-progress: 1100;
    --z-navbar: 1050;
    --z-tooltip: 1000;
    --z-grain: 900;
}


/* ─── 2. Base & Reset ─────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-body);
    background-color: var(--zone-0);
    transition: background-color 800ms ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Zone background transitions — applied via JS on scroll */
body.zone-0 { background-color: var(--zone-0); }
body.zone-1 { background-color: var(--zone-1); }
body.zone-2 { background-color: var(--zone-2); }
body.zone-3 { background-color: var(--zone-3); }
body.zone-4 { background-color: var(--zone-4); }
body.zone-5 { background-color: var(--zone-5); }
body.zone-6 { background-color: var(--zone-6); }
body.zone-7 { background-color: var(--zone-7); }
body.zone-8 { background-color: var(--zone-8); }

/* Selection */
::selection {
    background: rgba(14, 165, 233, 0.35);
    color: var(--text-bright);
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.35);
    color: var(--text-bright);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-bright);
    line-height: 1.2;
    margin-top: 0;
}


/* ─── 3. Grain Texture Overlay ────────────────────────────────────────────── */
/* Subtle film-grain noise to add texture to dark backgrounds.
   Uses a tiny base64 noise PNG tiled across the viewport.              */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMFBQUFBQUl/RyHAAAAS0lEQVQ4y2MYBaNgGAMWIIYxGIYBi2HAYhSwYMJiCDZDsBiCzRBshqAYgs0QbIagGILNEGyGYDMEmyHYDMFmCDZDsBmCzZBRMHIBAGzmCpfFSzYvAAAAAElFTkSuQmCC");
    background-repeat: repeat;
}


/* ─── 4. Reading Progress Bar ─────────────────────────────────────────────── */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--progress);
    background: var(--accent);
    z-index: var(--z-progress);
    transition: width 100ms linear, background-color 800ms ease;
    will-change: width;
}

/* Zone-aware progress color shifts */
body.zone-2 .progress-bar,
body.zone-3 .progress-bar { background: var(--regime-rising-tide); }
body.zone-4 .progress-bar { background: var(--regime-winner); }
body.zone-5 .progress-bar { background: var(--regime-creative); }


/* ─── 5. Navbar (Dark Variant) ────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    transition: background 300ms ease, box-shadow 300ms ease;
    font-family: var(--font-ui);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-bright);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .brand-icon {
    color: var(--accent);
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: color 200ms ease, background 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.06);
}

/* Hamburger (mobile) */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    border-radius: 1px;
    margin: 5px 0;
    transition: transform 300ms ease, opacity 300ms ease;
}

/* Focus visible */
.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* ─── 5b. Sidebar Navigation ─────────────────────────────────────────────── */

.report-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

/* Show only on wide screens */
@media (min-width: 1340px) {
    .report-sidebar {
        display: block;
    }
}

.report-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Connecting line behind dots */
.report-sidebar ul::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.report-sidebar li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 200ms ease;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sidebar-link:hover {
    color: var(--text-body);
}

.sidebar-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    flex-shrink: 0;
    transition: border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
    position: relative;
    z-index: 1;
}

.sidebar-label {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 200ms ease, transform 200ms ease;
    white-space: nowrap;
}

.report-sidebar:hover .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

/* Active state */
.sidebar-link.active .sidebar-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.sidebar-link.active {
    color: var(--text-bright);
}

.sidebar-link.active .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}


/* ─── 6. Hero Section (Zone 0) ────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Radial gradient overlay — matches main site hero style */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-category {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 100px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.08;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Author / date / link metadata row */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-meta a {
    color: var(--accent);
    text-decoration: none;
    transition: color 200ms ease;
}

.hero-meta a:hover {
    color: var(--accent-hover);
}

.hero-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

/* Scroll indicator — bouncing chevron */
.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: border-color 300ms ease, color 300ms ease;
    animation: hero-bounce 2s infinite;
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-bright);
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes hero-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}


/* ─── 7. Section Layout ───────────────────────────────────────────────────── */

.report-section {
    width: 100%;
    padding: var(--section-pad) 0;
}

.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.report-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.report-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}


/* ─── 8. Prose Styles ─────────────────────────────────────────────────────── */

.report-section p {
    margin-bottom: 1.5rem;
    color: var(--text-body);
}

.report-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(14, 165, 233, 0.4);
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

.report-section a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.report-section strong {
    color: var(--text-bright);
    font-weight: 600;
}

.report-section em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* Block quotes */
.report-section blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: rgba(14, 165, 233, 0.05);
    border-radius: 0 var(--glass-radius) var(--glass-radius) 0;
    color: var(--text-muted);
    font-style: italic;
}

.report-section blockquote p:last-child {
    margin-bottom: 0;
}

/* Horizontal rule */
.report-section hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 3rem 0;
}

/* Lists */
.report-section ul,
.report-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.report-section li {
    margin-bottom: 0.5rem;
}


/* ─── 9. Math Notation ────────────────────────────────────────────────────── */

.notation {
    font-family: var(--font-mono);
    font-size: 0.92em;
    color: var(--notation-color);
    border-bottom: 1px dotted var(--notation-underline);
    padding-bottom: 2px;
    cursor: help;
    transition: color 200ms ease, border-color 200ms ease;
    white-space: nowrap;
}

.notation:hover {
    color: #bae6fd;
    border-color: rgba(186, 230, 253, 0.6);
}


/* ─── 10. Math Tooltips ───────────────────────────────────────────────────── */

.math-tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    max-width: 320px;
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(4px);
    animation: tooltip-enter 200ms ease-out forwards;
    pointer-events: none;
}

@keyframes tooltip-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltip arrow */
.math-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(30, 41, 59, 0.96);
}

.math-tooltip .term {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.math-tooltip .definition {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.math-tooltip .formula {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--notation-color);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}


/* ─── 11. Glassmorphic Cards ──────────────────────────────────────────────── */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.75rem;
}


/* ─── 12. SVG Containers ──────────────────────────────────────────────────── */

.org-chart-container {
    max-width: 640px;
    aspect-ratio: 640 / 360;
    margin: 2rem auto;
    overflow: visible;
}

.cost-curve-container {
    max-width: 640px;
    aspect-ratio: 600 / 400;
    margin: 2.5rem auto;
    overflow: visible;
}

.regime-quadrant-container {
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 2rem auto;
    overflow: visible;
}

.org-chart-container svg,
.cost-curve-container svg,
.regime-quadrant-container svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* ─── 12b. SVG Element Styles ────────────────────────────────────────────── */
/* Org chart nodes, links, and labels; cost curve axes and paths            */

/* Org chart nodes */
.org-node {
    fill: rgba(255, 255, 255, 0.08);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    transition: opacity 600ms ease, transform 600ms ease, fill 400ms ease;
}

.org-node-exec {
    fill: rgba(14, 165, 233, 0.15);
    stroke: rgba(14, 165, 233, 0.5);
}

.org-node-vp {
    fill: rgba(16, 185, 129, 0.12);
    stroke: rgba(16, 185, 129, 0.4);
}

.org-node-mid {
    fill: rgba(245, 158, 11, 0.1);
    stroke: rgba(245, 158, 11, 0.35);
}

.org-node-worker {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.15);
}

.org-node-highlight {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
    stroke: rgba(16, 185, 129, 0.7);
    fill: rgba(16, 185, 129, 0.2);
}

/* Org chart connecting lines */
.org-link {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    transition: opacity 600ms ease;
}

/* Org chart text labels */
.org-label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    fill: rgba(255, 255, 255, 0.7);
    transition: opacity 600ms ease;
}

.org-caption {
    font-family: var(--font-ui);
    font-size: 13px;
    fill: var(--text-muted);
    transition: opacity 400ms ease;
}

/* Direct links (created by JS when org chart compresses) */
.org-link-direct {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

/* ─── Cost curve SVG elements ─── */

.axis-line {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1.5;
}

.axis-label {
    font-family: var(--font-ui);
    font-size: 15px;
    fill: var(--text-muted);
}

.axis-tick {
    font-family: var(--font-mono);
    font-size: 15px;
    fill: var(--notation-color);
}

.axis-tick-line {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.cost-curve-path {
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.35));
}

.curve-formula {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--notation-color);
}

.curve-formula-bg {
    fill: rgba(15, 23, 42, 0.85);
    rx: 5;
}

.annotation-text {
    font-family: var(--font-ui);
    font-size: 13px;
    fill: var(--text-muted);
    font-style: italic;
}


/* ─── 13. Regime Diagram (Zone 5) ─────────────────────────────────────────── */

.regime-quadrant {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--glass-radius);
    overflow: hidden;
    max-width: 600px;
    margin: 2rem auto;
}

.regime-cell {
    position: relative;
    padding: 1.75rem;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 200ms ease, transform 150ms ease, border-color 200ms ease;
    border: 2px solid transparent;
}

.regime-cell:hover,
.regime-cell.active {
    transform: scale(1.02);
    z-index: 1;
}

/* Regime-specific accent colors */
.regime-rising-tide {
    border-color: transparent;
}
.regime-rising-tide:hover,
.regime-rising-tide.active {
    border-color: var(--regime-rising-tide);
    background: rgba(16, 185, 129, 0.08);
}

.regime-gentle {
    border-color: transparent;
}
.regime-gentle:hover,
.regime-gentle.active {
    border-color: var(--regime-gentle);
    background: rgba(14, 165, 233, 0.08);
}

.regime-winner {
    border-color: transparent;
}
.regime-winner:hover,
.regime-winner.active {
    border-color: var(--regime-winner);
    background: rgba(239, 68, 68, 0.08);
}

.regime-creative {
    border-color: transparent;
}
.regime-creative:hover,
.regime-creative.active {
    border-color: var(--regime-creative);
    background: rgba(245, 158, 11, 0.08);
}

.regime-cell .regime-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.regime-cell .regime-name {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.regime-cell .regime-summary {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Axis labels for the 2x2 */
.regime-axis-label {
    position: absolute;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Expandable detail panel */
.regime-detail {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 400ms ease, opacity 300ms ease, padding 300ms ease;
    padding: 0 1.75rem;
}

.regime-detail.open {
    max-height: 800px;
    opacity: 1;
    padding: 1.5rem 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 var(--glass-radius) var(--glass-radius);
    margin-top: -1px;
}

.regime-detail h4 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.regime-detail p {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
}


/* ─── 14. Parameter Explorer (Zone 6) ─────────────────────────────────────── */

.explorer-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 2rem;
    max-width: var(--explorer-max);
    margin: 2rem auto;
}

/* Slider group */
.slider-group {
    margin-bottom: 1.5rem;
}

.slider-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 3rem;
    text-align: right;
}

/* Custom range input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--text-bright);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--text-bright);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Regime-colored fill variants for sliders */
.slider-group.regime-rising-tide input[type="range"]::-webkit-slider-thumb { background: var(--regime-rising-tide); }
.slider-group.regime-gentle input[type="range"]::-webkit-slider-thumb { background: var(--regime-gentle); }
.slider-group.regime-winner input[type="range"]::-webkit-slider-thumb { background: var(--regime-winner); }
.slider-group.regime-creative input[type="range"]::-webkit-slider-thumb { background: var(--regime-creative); }

.slider-group.regime-rising-tide input[type="range"]::-moz-range-thumb { background: var(--regime-rising-tide); }
.slider-group.regime-gentle input[type="range"]::-moz-range-thumb { background: var(--regime-gentle); }
.slider-group.regime-winner input[type="range"]::-moz-range-thumb { background: var(--regime-winner); }
.slider-group.regime-creative input[type="range"]::-moz-range-thumb { background: var(--regime-creative); }

/* Explorer chart area */
.explorer-chart {
    width: 100%;
    min-height: 200px;
    margin: 1.5rem 0;
    position: relative;
}

.explorer-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Dynamic outcome text */
.explorer-outcome {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Mini 2x2 quadrant with position dot */
.explorer-mini-quadrant {
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem auto;
    position: relative;
}

.explorer-mini-quadrant .mini-cell {
    background: rgba(0, 0, 0, 0.2);
}

.explorer-mini-quadrant .mini-cell.highlight {
    background: rgba(255, 255, 255, 0.06);
}

.explorer-mini-quadrant .position-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--text-bright);
    transform: translate(-50%, -50%);
    transition: left 300ms ease, top 300ms ease;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}


/* ─── 15. Objection Cards (Zone 7) ────────────────────────────────────────── */

.objection-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 200ms ease;
}

.objection-card:hover {
    border-color: var(--glass-border-hover);
}

.objection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.objection-header h4 {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-body);
    flex: 1;
}

.objection-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: background 200ms ease, transform 300ms ease;
    line-height: 1;
}

.objection-card.open .objection-toggle {
    transform: rotate(45deg);
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent);
}

.objection-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease;
}

.objection-card.open .objection-body {
    max-height: 600px;
}

.objection-body-inner {
    padding: 0 1.5rem 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-body);
}

.objection-body-inner p:last-child {
    margin-bottom: 0;
}


/* ─── 16. Proposition Summary Cards (Zone 8) ──────────────────────────────── */

.prop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.prop-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.25rem;
    transition: border-color 200ms ease, transform 200ms ease;
    cursor: default;
}

.prop-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.prop-number {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(14, 165, 233, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    margin-bottom: 0.6rem;
}

.prop-title {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.prop-statement {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}


/* ─── 17. Scroll Reveal Animations ────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Fade-only variant (no vertical movement) */
.reveal-fade {
    opacity: 0;
    transition: opacity 600ms ease-out;
    will-change: opacity;
}

.reveal-fade.visible {
    opacity: 1;
}


/* ─── 18. Inline Callouts & Highlights ────────────────────────────────────── */

.callout {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: var(--glass-radius);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
}

.callout-insight {
    background: rgba(14, 165, 233, 0.08);
    border-left: 3px solid var(--accent);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--regime-creative);
}

.callout p:last-child {
    margin-bottom: 0;
}

/* Force blocks (Zone 4 — the two forces) */
.force-block {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem 0;
    align-items: flex-start;
}

.force-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    border: 1.5px solid rgba(14, 165, 233, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    margin-top: 0.1rem;
}

.force-content {
    flex: 1;
    min-width: 0;
}

.force-content p:first-child {
    margin-top: 0;
}

.force-content p:last-child {
    margin-bottom: 0;
}

/* Regime-colored highlight spans */
.highlight-rising    { color: var(--regime-rising-tide); font-weight: 600; }
.highlight-gentle    { color: var(--regime-gentle); font-weight: 600; }
.highlight-winner    { color: var(--regime-winner); font-weight: 600; }
.highlight-creative  { color: var(--regime-creative); font-weight: 600; }


/* ─── 19. Footer ──────────────────────────────────────────────────────────── */

.report-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    font-family: var(--font-ui);
}

.report-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-bright);
    display: block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.report-footer h6 {
    color: var(--text-bright);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.report-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 200ms ease;
}

.report-footer a:hover {
    color: var(--text-bright);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ─── 20. Utility Classes ─────────────────────────────────────────────────── */

.text-muted-report { color: var(--text-muted); }
.text-accent       { color: var(--accent); }
.font-ui           { font-family: var(--font-ui); }
.font-mono         { font-family: var(--font-mono); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible — global */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* ─── 21. Responsive — Tablet (768px–1199px) ──────────────────────────────── */

@media (max-width: 1199px) {
    .section-inner {
        max-width: 640px;
    }

    .explorer-card {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}


/* ─── 22. Responsive — Mobile (<768px) ────────────────────────────────────── */

@media (max-width: 767px) {
    body {
        padding-top: 60px;
        font-size: 1.05rem;
    }

    /* Navbar mobile — Bootstrap collapse handles visibility */
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    /* Hero mobile */
    .hero {
        min-height: 90vh;
        padding: 3rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-meta-divider {
        display: none;
    }

    /* Sections mobile */
    .report-section {
        padding: var(--section-pad-mobile) 0;
    }

    .report-section h2 {
        font-size: 1.5rem;
    }

    .report-section h3 {
        font-size: 1.2rem;
    }

    .section-inner {
        padding: 0 1.25rem;
    }

    /* Regime quadrant mobile */
    .regime-quadrant {
        max-width: 100%;
    }

    .regime-cell {
        padding: 1.25rem;
    }

    .regime-cell .regime-name {
        font-size: 0.85rem;
    }

    .regime-cell .regime-summary {
        font-size: 0.75rem;
    }

    /* Explorer mobile */
    .explorer-card {
        padding: 1.25rem;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    /* Prop grid mobile */
    .prop-grid {
        grid-template-columns: 1fr;
    }

    /* SVG containers mobile */
    .org-chart-container,
    .cost-curve-container,
    .regime-quadrant-container {
        max-width: 100%;
    }

    /* Force blocks mobile */
    .force-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .force-block {
        gap: 1rem;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Tooltip — full width on mobile */
    .math-tooltip {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
    }
}


/* ─── 23. Reduced Motion ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal-fade {
        opacity: 1;
    }

    body {
        transition: none;
    }

    .progress-bar {
        transition: none;
    }

    .regime-detail {
        transition: none;
    }

    .objection-body {
        transition: none;
    }
}


/* ─── 24. Print ───────────────────────────────────────────────────────────── */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: 'Georgia', serif;
        font-size: 11pt;
        line-height: 1.5;
        padding-top: 0;
    }

    body::after {
        display: none;
    }

    .navbar,
    .progress-bar,
    .scroll-indicator,
    .explorer-card,
    .explorer-mini-quadrant,
    .math-tooltip {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        page-break-after: always;
    }

    .report-section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    .section-inner {
        max-width: 100%;
        padding: 0;
    }

    .glass-card,
    .objection-card,
    .prop-card {
        border: 1px solid #ccc;
        padding: 0.75rem;
    }

    .regime-quadrant {
        border: 1px solid #ccc;
    }

    .regime-cell {
        border: 1px solid #ddd;
    }

    .objection-body {
        max-height: none !important;
        overflow: visible !important;
    }

    .reveal,
    .reveal-fade {
        opacity: 1 !important;
        transform: none !important;
    }

    .notation {
        font-weight: bold;
        border-bottom: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    .report-footer {
        page-break-before: always;
    }
}
