/*
 * =============================================================================
 * Agents 102 — Site Styles
 * =============================================================================
 *
 * Clean CSS for the Agents 102 training site.
 * Visual language adapted from the Bosser design system.
 * Dark theme, Inter font, orange accent (#ff6b35).
 *
 * Table of Contents:
 *   1. Google Fonts Import
 *   2. CSS Custom Properties
 *   3. Reset & Base Styles
 *   4. Layout
 *   5. Navigation
 *   6. Hero Section
 *   7. Hero Particle Animation
 *   8. Problem Section (The Gap)
 *   9. What We Do (Pillars)
 *  10. The Journey (Stepper)
 *  11. For Leaders (Questions)
 *  12. About Section
 *  13. Contact Section
 *  14. Footer
 *  15. Buttons
 *  16. Shared Section Styles
 *  17. Keyframe Animations
 *  18. Responsive Breakpoints
 *  19. Smooth Scrolling & Accessibility
 * =============================================================================
 */


/* =============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* =============================================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #888888;

    --accent: #ff6b35;
    --accent-hover: #ff8555;
    --accent-glow: rgba(255, 107, 53, 0.3);

    --border: #333333;
    --surface: #252525;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
    --container-max-width: 1200px;
    --container-padding: 0 24px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-particle: 4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =============================================================================
   3. RESET & BASE STYLES
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}


/* =============================================================================
   4. LAYOUT
   ============================================================================= */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    overflow: visible;
}


/* =============================================================================
   5. NAVIGATION — #main-nav, .nav-container, .logo, .nav-links, .nav-toggle
   ============================================================================= */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base),
                border-color var(--transition-base),
                backdrop-filter var(--transition-base);
}

/* Scrolled state — JS adds .scrolled class on scroll */
#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition-base);
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

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

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

/* Hamburger toggle button (hidden on desktop, visible on mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Hamburger open state (JS toggles .open on .nav-toggle) */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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


/* =============================================================================
   6. HERO SECTION — .hero, .hero-content, .hero-subtitle, .hero-title,
      .hero-description, .hero-actions
   ============================================================================= */

.hero {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

.hero > .container {
    position: relative;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.hero-actions .cta-button {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 14px 20px;
}


/* =============================================================================
   7. HERO PARTICLE ANIMATION — .hero-visual, .particle-container, .particle
   ============================================================================= */

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    overflow: hidden;
}

.particle-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    transition: all var(--transition-particle);
}

.particle.glow {
    box-shadow: 0 0 6px var(--accent);
}

.particle:nth-child(3n) {
    background: rgba(255, 107, 53, 0.7);
    width: 3px;
    height: 3px;
}

.particle:nth-child(5n) {
    background: rgba(255, 107, 53, 0.9);
    width: 6px;
    height: 6px;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

.particle:nth-child(7n) {
    background: rgba(255, 255, 255, 0.6);
    width: 1.5px;
    height: 1.5px;
}


/* =============================================================================
   8. PROBLEM SECTION (The Gap) — .problem, .problem-content,
      .problem-statement, .problem-title, .problem-text, .problem-contrast,
      .problem-side, .problem-side--without, .problem-side--with,
      .problem-side-title, .problem-list
   ============================================================================= */

.problem {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.problem-statement {
    max-width: 800px;
}

.problem-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.problem-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
}

.problem-contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.problem-side {
    padding: 48px 40px;
    min-height: 280px;
}

.problem-side--without {
    background: linear-gradient(135deg, #1a1212 0%, #1e1a1a 100%);
}

.problem-side--with {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 100%);
}

.problem-side-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.problem-side--without .problem-side-title {
    color: #cc4444;
}

.problem-side--with .problem-side-title {
    color: var(--accent);
}

.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.problem-list li {
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.problem-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.problem-side--without .problem-list li {
    color: var(--text-secondary);
}

.problem-side--without .problem-list li::before {
    background: #cc4444;
    opacity: 0.5;
}

.problem-side--with .problem-list li {
    color: var(--text-primary);
}

.problem-side--with .problem-list li::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}


/* =============================================================================
   9. WHAT WE DO (Pillars) — .what-we-do, .section-label, .section-intro,
      .pillars-grid, .pillar-card, .pillar-icon, .pillar-title,
      .pillar-description, .pillar-detail
   ============================================================================= */

.what-we-do {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.pillar-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pillar-card::before,
.cur-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.pillar-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pillar-card:hover::before,
.cur-module:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.pillar-icon svg {
    width: 48px;
    height: 48px;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pillar-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
}

.pillar-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-style: italic;
}


/* =============================================================================
   10. THE JOURNEY (Stepper) — .journey, .journey-stepper, .journey-line,
       .journey-line-progress, .journey-steps, .journey-step,
       .journey-step-marker, .journey-step-number, .journey-step-content,
       .journey-step-title, .journey-step-subtitle, .journey-step-text,
       .journey-step-arrow, .journey-cta, .journey-cta-text
   ============================================================================= */

.journey {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.journey-stepper {
    position: relative;
    margin-top: 48px;
}

/* Vertical connecting line */
.journey-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.journey-line-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent), rgba(255, 107, 53, 0.4));
    border-radius: 2px;
    transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 0;
    position: relative;
    transition: transform var(--transition-base);
}

.journey-step:hover {
    transform: translateX(4px);
}

.journey-step-marker {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg-primary);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all var(--transition-slow);
}

.journey-step:hover .journey-step-marker {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.journey-step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition-slow);
}

.journey-step:hover .journey-step-number {
    color: var(--text-primary);
}

.journey-step-content {
    flex: 1;
    padding-top: 4px;
}

.journey-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.journey-step-subtitle {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.journey-step-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.journey-step-arrow {
    color: var(--text-muted);
    padding-top: 12px;
    opacity: 0.4;
    transition: all var(--transition-base);
}

.journey-step:hover .journey-step-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translateX(4px);
}

.journey-cta {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.journey-cta-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}


/* =============================================================================
   11. FOR LEADERS (Questions) — .for-leaders, .leaders-questions,
       .leaders-question, .leaders-question-mark, .leaders-question-text,
       .leaders-closing, .leaders-closing-text
   ============================================================================= */

.for-leaders {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.leaders-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.leaders-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.leaders-row:first-child {
    border-top: 1px solid var(--border);
}

.leaders-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.leaders-question-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.quiz-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-base);
}

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

.quiz-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.quiz-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.quiz-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.quiz-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.leaders-closing {
    margin-top: 64px;
    text-align: center;
}

.leaders-closing-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =============================================================================
   11b. SECRET SAUCE TEASER — .secret-sauce, .secret-sauce-text
   ============================================================================= */

.secret-sauce {
    padding: 48px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.secret-sauce-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =============================================================================
   12. ABOUT SECTION — .about, .about-grid, .about-content, .about-title,
       .about-text, .about-linkedin, .about-stats, .about-stat,
       .about-stat-number, .about-stat-label
   ============================================================================= */

.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content {
    /* Left column: text content */
}

.about-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

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

.about-text:last-of-type {
    margin-bottom: 32px;
}

.about-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-base),
                transform var(--transition-base);
    padding: 12px 0;
}

.about-linkedin:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.about-linkedin svg {
    transition: color var(--transition-base);
}

.about-linkedin:hover svg {
    color: var(--accent);
}

/* Stats sidebar */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-stat {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.about-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}


/* =============================================================================
   13. CONTACT SECTION — .contact, .contact-title, .contact-description,
       .contact-info, .contact-item
   ============================================================================= */

.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
    opacity: 0.7;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
    flex-wrap: wrap;
}

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

.contact-item h4 {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-item a,
.contact-item span {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color var(--transition-base);
}

.contact-item a:hover {
    color: var(--accent);
}


/* =============================================================================
   14. FOOTER — footer
   ============================================================================= */

footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-primary);
}

footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
}


/* =============================================================================
   15. BUTTONS — .cta-button, .cta-button--secondary
   ============================================================================= */

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
    border: 2px solid var(--accent);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-button--secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.cta-button--secondary:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
    transform: translateY(-2px);
}


/* =============================================================================
   16. SHARED SECTION STYLES — .section-label, .section-intro
   ============================================================================= */

.section-label {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}


/* =============================================================================
   17. KEYFRAME ANIMATIONS
   ============================================================================= */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered fade-in (add .fade-in-up class via JS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {

    .hero-visual {
        opacity: 0.4;
    }

    .problem {
        padding: 80px 0;
    }

    .problem-contrast {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .problem-side {
        min-height: auto;
        padding: 40px 32px;
    }

    .what-we-do {
        padding: 80px 0;
    }

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

    .pillar-card {
        padding: 32px;
    }

    .journey {
        padding: 80px 0;
    }

    .for-leaders {
        padding: 80px 0;
    }

    .about {
        padding: 80px 0;
    }

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

    .contact {
        padding: 80px 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Navigation: hide links, show hamburger toggle */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero > .container {
        grid-template-columns: 1fr;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Problem */
    .problem-title {
        font-size: 1.75rem;
    }

    .problem-contrast {
        grid-template-columns: 1fr;
    }

    .problem-side {
        padding: 32px 24px;
    }

    /* Journey */
    .journey-line {
        left: 18px;
    }

    .journey-step-marker {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .journey-step {
        gap: 20px;
    }

    .journey-step-title {
        font-size: 1.25rem;
    }

    .journey-step-arrow {
        display: none;
    }

    /* Leaders */
    .leaders-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leaders-question-text {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stat-number {
        font-size: 2.5rem;
    }

    /* Contact */
    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1.1rem;
    }
}

/* --- Small mobile (max-width: 480px) --- */
@media (max-width: 480px) {

    .hero-title {
        font-size: 2rem;
    }

    .problem-side {
        padding: 24px 20px;
    }

    .pillar-card {
        padding: 24px;
    }

    .journey-step {
        gap: 16px;
        padding: 24px 0;
    }

    .leaders-question {
        padding: 24px 0;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .cta-button--secondary {
        width: 100%;
        text-align: center;
    }
}


/* =============================================================================
   19. SMOOTH SCROLLING & ACCESSIBILITY
   ============================================================================= */

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

    html {
        scroll-behavior: auto;
    }

    .particle {
        transition: none;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}

/* Selection styling */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}


/* =============================================================================
   20. CURRICULUM PAGE — .cur-*
   ============================================================================= */

/* ── Layout ── */
.cur-page { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ── */
.cur-nav, .article-nav { margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.cur-nav { max-width: 960px; padding: 1.25rem 1.5rem; }
.cur-nav .logo, .article-nav .logo { color: var(--accent); }
.cur-nav .logo { font-size: 1.25rem; }
.cur-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.cur-nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.cur-nav-links a:hover, .cur-module-read a:hover, .back-link:hover { color: var(--accent); }

/* ── Hero ── */
.cur-hero { max-width: 960px; margin: 0 auto; padding: 5rem 1.5rem 3rem; position: relative; overflow: hidden; }
.cur-hero-content { position: relative; z-index: 2; }
.cur-hero-label, .cur-format-label, .cur-phase-label, .cur-callout-label { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin-bottom: 0.5rem; }
.cur-hero-label { font-size: 0.85rem; margin-bottom: 1rem; }
.cur-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.cur-hero-desc { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.65; max-width: 640px; margin-bottom: 2rem; }
.cur-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.cur-hero-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.cur-hero-stat strong { font-size: 1.5rem; }
.cur-hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ── Hero particles ── */
.cur-hero-particles { position: absolute; top: 0; right: -5%; width: 55%; height: 100%; z-index: 1; opacity: 0.4; pointer-events: none; overflow: hidden; }

/* ── Format bar ── */
.cur-format, .cur-steps { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.cur-format { grid-template-columns: repeat(3, 1fr); margin-bottom: 4rem; }
.cur-format-item { padding: 1.5rem 1.75rem; background: var(--bg-card); }

/* ── Phase sections ── */
.cur-phase, .cur-after, .cur-principles { margin-bottom: 4rem; }
.cur-phase-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.cur-phase-label { font-size: 0.8rem; }
.cur-phase-title { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.cur-phase-desc, .cur-after-desc { color: var(--text-secondary); line-height: 1.6; max-width: 640px; }

/* ── Module cards ── */
.cur-modules { display: flex; flex-direction: column; gap: 1.5rem; }
.cur-module { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; transition: border-color 0.3s; position: relative; overflow: hidden; }
.cur-module:hover { border-color: rgba(255, 107, 53, 0.3); }

.cur-module-head { display: flex; align-items: baseline; gap: 1.25rem; margin-bottom: 1rem; }
.cur-module-num { font-size: 2.5rem; font-weight: 700; color: var(--accent); opacity: 0.35; line-height: 1; min-width: 60px; letter-spacing: -0.04em; }
.cur-module-title { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }

.cur-module-body { padding-left: calc(60px + 1.25rem); }
.cur-module-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; }

/* Callout boxes inside modules */
.cur-callout { padding: 1.25rem 1.5rem; border-radius: 8px; margin-bottom: 1rem; }
.cur-callout-label { margin-bottom: 0.4rem; }
.cur-callout-text, .cur-format-text { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }

.cur-callout--build { background: rgba(255, 107, 53, 0.06); border: 1px solid rgba(255, 107, 53, 0.15); }
.cur-callout--build .cur-callout-label,
.cur-callout--plug .cur-callout-label { color: var(--accent); }

.cur-callout--insight { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.cur-callout--insight .cur-callout-label { color: var(--text-muted); }

.cur-callout--plug { background: rgba(255, 107, 53, 0.04); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }

.cur-module-read { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-muted); }
.cur-module-read a { transition: color 0.2s; }

/* ── Mid-page CTA ── */
.cur-mid-cta { text-align: center; padding: 3.5rem 2rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 4rem; background: linear-gradient(135deg, rgba(255, 107, 53, 0.04) 0%, transparent 100%); }
.cur-mid-cta h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cur-mid-cta p, .cur-final p { color: var(--text-secondary); max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cur-mid-cta p { margin-bottom: 1.5rem; }

/* ── What comes after (mini stepper) ── */
.cur-after-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.cur-after-desc { margin-bottom: 2rem; }
.cur-steps { grid-template-columns: repeat(4, 1fr); margin-bottom: 1.5rem; }
.cur-step { padding: 1.75rem 1.5rem; background: var(--bg-card); }
.cur-step-num { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }
.cur-step-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.cur-step-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.cur-after-note { color: var(--text-muted); font-size: 0.95rem; font-style: italic; }

/* ── Design principles grid ── */
.cur-principles-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.cur-principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cur-principle { padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.cur-principle strong { font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
.cur-principle span { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* ── Final CTA ── */
.cur-final { text-align: center; padding: 4rem 2rem; margin-bottom: 2rem; }
.cur-final h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.cur-final p { font-size: 1.1rem; margin-bottom: 2rem; }
.cur-final-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.25rem; }
.cur-final-links a { color: var(--accent); font-weight: 500; }

/* ── About ── */
.cur-about { padding: 2rem 0; border-top: 1px solid var(--border); margin-bottom: 1rem; }
.cur-about p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
.cur-about a, .article-body a { color: var(--accent); }

/* ── Footer ── */
.cur-footer { padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }

/* ── Curriculum responsive ── */
@media (max-width: 768px) {
    .cur-hero-particles { display: none; }
    .cur-format, .cur-principles-grid { grid-template-columns: 1fr; }
    .cur-module { padding: 1.75rem; }
    .cur-module-head { flex-direction: column; gap: 0.25rem; }
    .cur-module-num { font-size: 1.75rem; min-width: auto; }
    .cur-module-body { padding-left: 0; }
    .cur-steps { grid-template-columns: repeat(2, 1fr); }
    .cur-hero-stats { gap: 1.5rem; }
    .cur-nav-links { gap: 1rem; }
    .cur-nav-links a { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .cur-steps { grid-template-columns: 1fr; }
    .cur-hero h1 { font-size: 1.75rem; }
}


/* =============================================================================
   21. ARTICLE PAGE — .article-*
   ============================================================================= */

.article-container { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }
.article-byline { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; font-style: italic; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.article-meta span + span::before { content: " · "; }
.article-body { line-height: 1.7; }
.article-body h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; line-height: 1.15; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-intro, .article-body blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-secondary); }
.article-intro { font-size: 1.2rem; margin: 0 0 2rem 0; line-height: 1.6; }
.article-body blockquote { margin: 1.5rem 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-body ul, .article-body ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.article-body li, .article-body em { color: var(--text-secondary); }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-primary); }
.back-link { color: var(--text-muted); font-size: 0.9rem; }
.article-nav { max-width: 720px; padding: 1rem 1.5rem; }
.loading, .error { text-align: center; padding: 4rem; }
.loading { color: var(--text-muted); }
.error { color: #cc4444; }


/* =============================================================================
   22. WHITEPAPER / LONG-FORM ARTICLE ENHANCEMENTS
   "High-quality uncoated paper stock, not a screen."
   Bosser orange goes BOLD. Phase colors deep and saturated.
   Typography confident — black text, not gray.
   ============================================================================= */

/* ── Light theme override ──
   Applied via body.light-article. Swaps the dark palette for a warm,
   paper-stock reading surface. All existing var() references just work. */
body.light-article {
    --bg-primary: #f5f4f0;        /* warm paper stock, not clinical white */
    --bg-secondary: #eae8e2;      /* slightly darker warm */
    --bg-tertiary: #dfdcd4;       /* card borders, subtle structure */
    --bg-card: #ffffff;            /* cards pop on the paper background */
    --text-primary: #1a1a1a;      /* confident black, not gray */
    --text-secondary: #4a4a4a;    /* secondary reads clearly */
    --text-muted: #8a8a8a;        /* muted stays muted */
    --border: #d4d1c9;            /* warm border, not cool gray */
    --surface: #eae8e2;

    /* Fix dual-orange: override accent for light context */
    --accent: #e8621f;            /* brand orange in shadow — closer to #ff6b35 than #e05a1e */

    /* Phase colors — deep and saturated for light backgrounds */
    --phase-1: #3d7ab8;           /* deep blue, not pastel */
    --phase-2: #c47d2e;           /* rich amber */
    --phase-3: #b83d3d;           /* deep red */
    --phase-4: #e8621f;           /* Bosser orange — brand in shadow, not replaced */
}

/* Body text bump for sustained reading */
body.light-article .article-body { font-size: 1.0625rem; } /* 17px — reduces cpl to ~72 */

/* Smooth scroll for TOC anchor links */
html { scroll-behavior: smooth; }

/* ── Progress bar ──
   Fixed strip at top of viewport. JS handles width & color transitions. */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 1000;
    transition: width 50ms linear;
    width: 0;
}

/* ── Layout: wider container with TOC sidebar on desktop ── */
.article-with-toc {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    padding: 2rem 1.5rem;
}
.article-with-toc .article-body-wrap {
    max-width: 640px;  /* ~72 cpl at 17px — Bringhurst sweet spot */
    flex: 1;
    min-width: 0;
    /* Needed for the full-bleed h1 trick — children use calc(-50vw + 50%)
       which requires overflow visible on ancestors up to the viewport. */
    overflow: visible;
}

/* ── TOC sidebar (desktop) ──
   Sticky left column. Phase names colored to match chapter. */
.toc-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}
.toc-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.15s;
}
.toc-sidebar a:hover,
.toc-sidebar a.active {
    color: var(--accent);
}
/* Phase group labels */
.toc-sidebar .toc-phase {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.toc-sidebar .toc-phase:first-child { margin-top: 0; }
/* Phase-colored TOC labels */
.toc-sidebar .toc-phase.phase-1 { color: var(--phase-1); }
.toc-sidebar .toc-phase.phase-2 { color: var(--phase-2); }
.toc-sidebar .toc-phase.phase-3 { color: var(--phase-3); }
.toc-sidebar .toc-phase.phase-4 { color: var(--phase-4); }
/* Active link inherits phase color (set by JS via CSS custom property) */
.toc-sidebar a.active-phase-1 { color: var(--phase-1); }
.toc-sidebar a.active-phase-2 { color: var(--phase-2); }
.toc-sidebar a.active-phase-3 { color: var(--phase-3); }
.toc-sidebar a.active-phase-4 { color: var(--phase-4); }

/* ── Mobile TOC ──
   Collapsible details/summary, appears above content on small screens. */
.toc-mobile {
    display: none;
    margin-bottom: 2rem;
}
.toc-mobile summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}
.toc-mobile nav {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}
.toc-mobile a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
    font-size: 0.8rem;
}

/* ── Author card ──
   White card on the paper background. Initial circle in Bosser orange. */
.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.author-card .author-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--phase-4);  /* Bosser orange */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.author-card .author-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.author-card .author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Phase banners (h1 inside article body) ──
   Bold, not shy. Full-viewport-width colored band even though content
   is 720px max. The phase banner is the visual event. */
.article-body h1 {
    /* Full-bleed via negative margins */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4rem calc(50vw - 50%) 2.5rem;

    /* Strong phase-tinted background — 12% opacity, not 8% */
    background: rgba(224, 90, 30, 0.12);  /* default orange, overridden per phase */

    position: relative;
    overflow: hidden;
    z-index: 0;

    /* Typography */
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
}

/* Phase-specific banner backgrounds */
.article-body h1.phase-1 { background: rgba(61, 122, 184, 0.12); }
.article-body h1.phase-2 { background: rgba(196, 125, 46, 0.18); }  /* bumped — warm on warm needs more */
.article-body h1.phase-3 { background: rgba(184, 61, 61, 0.12); }
.article-body h1.phase-4 { background: rgba(232, 98, 31, 0.18); }  /* the arrival — loudest banner */

/* Phase description italic line */
.article-body h1 + p em,
.article-body h1 + p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* ── Essay title (h2) — subtler than thesis ── */
.article-body h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-top: 0;
    border-top: none;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;  /* lighter than thesis — thesis is the visual anchor */
}

/* Phase-colored h2 */
.phase-1 h2 { color: var(--phase-1); }
.phase-2 h2 { color: var(--phase-2); }
.phase-3 h2 { color: var(--phase-3); }
.phase-4 h2 { color: var(--phase-4); }

/* ── Essay cards ── */
.essay-card {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.essay-card:first-child { margin-top: 0; border-top: none; }

/* ── Essay dates — phase-colored timeline markers ── */
.essay-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
/* Phase-colored dates */
.phase-1 .essay-date { color: var(--phase-1); }
.phase-2 .essay-date { color: var(--phase-2); }
.phase-3 .essay-date { color: var(--phase-3); }
.phase-4 .essay-date { color: var(--phase-4); }

/* ── Thesis blockquote — the scanning layer ──
   Bold orange bar. Impossible to miss while scrolling. */
.article-body blockquote.thesis {
    border-left: 5px solid var(--phase-4);  /* thick orange bar */
    background: rgba(224, 90, 30, 0.06);
    padding: 1rem 1.25rem;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 400;  /* lighter weight — the colored bar does the work */
    line-height: 1.5;
}

/* Phase-specific thesis colors */
.phase-1 blockquote.thesis { border-left-color: var(--phase-1); background: rgba(61, 122, 184, 0.06); }
.phase-2 blockquote.thesis { border-left-color: var(--phase-2); background: rgba(196, 125, 46, 0.06); }
.phase-3 blockquote.thesis { border-left-color: var(--phase-3); background: rgba(184, 61, 61, 0.06); }
.phase-4 blockquote.thesis { border-left-color: var(--phase-4); background: rgba(224, 90, 30, 0.06); }

/* ── Research confirmation blockquote ──
   Distinct from thesis — teal accent, editorial annotation feel. */
.article-body blockquote.confirmed {
    border-left: 3px solid #2a9d8f;        /* teal — distinct from orange */
    background: rgba(42, 157, 143, 0.05);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.article-body blockquote.confirmed strong { color: #2a9d8f; }

/* ── CTA section ── */
.article-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.article-cta h2 { margin-top: 0; }
.article-cta a { color: var(--phase-4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .article-with-toc {
        flex-direction: column;
        max-width: 720px;
    }
    .toc-sidebar { display: none; }
    .toc-mobile { display: block; }
}

@media (max-width: 768px) {
    .wp-phase-particles { display: none; }
    .wp-phase-callout { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wp-phase-particles { display: none; }
}


/* =============================================================================
   23. PHASE BANNER PARTICLES
   ============================================================================= */

/* ── Particle containers inside phase h1 banners ── */
.wp-phase-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.wp-phase-particles .particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    opacity: 0.3;
    transition: left 3s cubic-bezier(0.4, 0, 0.2, 1),
                top 3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: left, top;
}
.wp-phase-particles .particle:nth-child(3n) { width: 2px; height: 2px; opacity: 0.2; }
.wp-phase-particles .particle:nth-child(5n) { width: 5px; height: 5px; opacity: 0.4; }
.wp-phase-particles .particle:nth-child(7n) { width: 1.5px; height: 1.5px; opacity: 0.15; }
.wp-phase-particles .particle.glow { box-shadow: 0 0 4px currentColor; }

/* Default particle color (fallback) */
.wp-phase-particles .particle { background: var(--phase-4); color: var(--phase-4); }

/* Phase-specific particle colors (phase class is on the h1 itself) */
.phase-1 > .wp-phase-particles .particle { background: var(--phase-1); color: var(--phase-1); }
.phase-2 > .wp-phase-particles .particle { background: var(--phase-2); color: var(--phase-2); }
.phase-3 > .wp-phase-particles .particle { background: var(--phase-3); color: var(--phase-3); }
.phase-4 > .wp-phase-particles .particle { background: var(--phase-4); color: var(--phase-4); }

/* ── Phase callout text — barely there, a whisper near the particles ── */
.wp-phase-callout {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}
.wp-phase-callout.visible { opacity: 0.35; }
.phase-1 .wp-phase-callout { color: var(--phase-1); }
.phase-2 .wp-phase-callout { color: var(--phase-2); }
.phase-3 .wp-phase-callout { color: var(--phase-3); }
.phase-4 .wp-phase-callout { color: var(--phase-4); }


/* =============================================================================
   24. PRINT STYLESHEET
   The light paper-stock theme prints beautifully — barely any overrides needed.
   ============================================================================= */

@page { margin: 1in 0.75in; }

@media print {
    body { font-size: 12pt; line-height: 1.6; }

    /* Hide chrome */
    nav, footer, .read-progress, .toc-sidebar, .toc-mobile,
    .article-cta, .wp-phase-particles, .wp-phase-callout { display: none !important; }

    /* Constrain measure for print */
    .article-with-toc, .article-container { max-width: none; padding: 0; }
    .article-body { max-width: 36em; }

    /* Orphan/widow control */
    p { orphans: 3; widows: 3; }
    h1, h2, h3 { page-break-after: avoid; }

    /* Phase banners — keep brand colors in print */
    .article-body h1 {
        page-break-before: always;
        margin-left: 0; margin-right: 0;
        padding-left: 0; padding-right: 0;
        background: none !important;
        padding-top: 1.5rem;
        margin-top: 0;
    }
    .article-body h1:first-of-type { page-break-before: avoid; }
    .article-body h1.phase-1 { border-left: 5px solid #3d7ab8; padding-left: 1rem; }
    .article-body h1.phase-2 { border-left: 5px solid #c47d2e; padding-left: 1rem; }
    .article-body h1.phase-3 { border-left: 5px solid #b83d3d; padding-left: 1rem; }
    .article-body h1.phase-4 { border-left: 5px solid #e8621f; padding-left: 1rem; }

    /* Thesis — keep Bosser orange bar */
    .article-body blockquote.thesis {
        border-left: 5px solid #e8621f;
        background: #faf6f3 !important;
    }

    /* Confirmed — keep teal, use dashed for B&W differentiation */
    .article-body blockquote.confirmed {
        border-left: 3px dashed #2a9d8f;
        background: #f0fafa !important;
    }

    .author-card { border: 1px solid #ccc; }

    a { text-decoration: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }

    /* Footer attribution */
    .article-body::after {
        content: "bosser.consulting";
        display: block;
        text-align: center;
        margin-top: 3rem;
        font-size: 0.8em;
        color: #999;
    }
}
