/* ==========================================================================
   LƯƠNG LÊ TẤN TUẤN — EDITORIAL DOSSIER & OPERATOR LEDGER
   Architectural & Editorial Web Design System
   Strictly Anti-UI Slop: Zero Bento Grids, Zero Fake Gradients, Pure Typographic Authority
   Engineered with GSAP ScrollTrigger, Lenis Inertia & Multi-Depth 3D Parallax
   ========================================================================== */

/* --- 1. DESIGN TOKENS & SYSTEM FOUNDATION --- */
:root {
    /* Foundation Canvases */
    --sc-canvas: #faf9f6;             /* Warm Editorial Alabaster */
    --sc-surface: #ffffff;            /* Pure Surface */
    --sc-surface-raised: #f3f2ee;     /* Tactile Editorial Gray */
    --sc-console-bg: #0c0f17;         /* Deep Tactical Carbon for Console */
    --sc-console-surface: #141924;    /* Console elevated plate */
    
    /* Typographic Inks */
    --sc-ink: #0d111b;                /* High-density Obsidian Ink */
    --sc-ink-heading: #111827;        /* Solid Architectural Ink */
    --sc-ink-body: #334155;           /* Rich Legibility Slate */
    --sc-ink-soft: #64748b;           /* Tinted Secondary Mute */
    --sc-ink-dim: #94a3b8;            /* Low-weight Annotation Ink */
    --sc-ink-invert: #f8fafc;         /* Crisp Chalk Ink for dark surfaces */
    --sc-ink-invert-soft: #cbd5e1;    /* Secondary chalk ink */
    
    /* Purposeful Accents (Single authoritative Hue family: Executive Cobalt & Ice Cyan) */
    --sc-accent: #1e40af;             /* Deep Executive Cobalt */
    --sc-accent-vibrant: #2563eb;     /* Action Blue */
    --sc-accent-subtle: #eff6ff;      /* Pale Ice Frost */
    --sc-accent-cyan: #38bdf8;        /* Tactical Ice Cyan for dark console */
    --sc-accent-emerald: #10b981;     /* Profit & Velocity Emerald */
    
    /* Structural Hairlines */
    --sc-hairline: rgba(15, 23, 42, 0.08);
    --sc-hairline-strong: rgba(15, 23, 42, 0.16);
    --sc-hairline-accent: rgba(30, 64, 175, 0.25);
    --sc-hairline-console: rgba(255, 255, 255, 0.1);
    
    /* Typography Stacks */
    --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    
    /* Fluid Type Ramp (Optical tracking tightens as size grows) */
    --sc-t-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
    --sc-t-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
    --sc-t-base: clamp(1rem, 0.96rem + 0.22vw, 1.08rem);
    --sc-t-lg: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
    --sc-t-xl: clamp(1.4rem, 1.25rem + 0.9vw, 1.85rem);
    --sc-t-2xl: clamp(1.85rem, 1.55rem + 1.8vw, 2.75rem);
    --sc-t-3xl: clamp(2.4rem, 1.8rem + 3.2vw, 4.2rem);
    --sc-t-4xl: clamp(3.2rem, 2.2rem + 5.2vw, 6.2rem);
    
    /* Tracking */
    --track-tight: -0.035em;
    --track-snug: -0.02em;
    --track-normal: -0.005em;
    --track-wide: 0.08em;
    --track-ultra: 0.16em;
    
    /* Spacing Scale (4px base) */
    --sc-1: 0.25rem;  --sc-2: 0.5rem;   --sc-3: 0.75rem;  --sc-4: 1rem;
    --sc-5: 1.5rem;   --sc-6: 2rem;     --sc-7: 3rem;     --sc-8: 4rem;
    --sc-9: 6rem;     --sc-10: 8rem;    --sc-11: 11rem;
    
    --sc-section-pad: clamp(4.5rem, 8vw, 9.5rem);
    --sc-gutter: clamp(1.25rem, 4.5vw, 4rem);
    --sc-maxw: 1240px;
    
    /* Elevation & Tactile Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-portrait: 0 24px 54px -12px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-console: 0 32px 80px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    
    /* Curves & Transitions */
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
    --speed-fast: 0.2s;
    --speed-normal: 0.38s;
}

/* --- 2. BASE RESET & ACCESSIBILITY --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 88px;
    font-size: 16px;
    background-color: var(--sc-canvas);
    color: var(--sc-ink-body);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Engine Standards */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    overflow-x: hidden;
    line-height: 1.75;
    background-color: var(--sc-canvas);
    color: var(--sc-ink-body);
    transition: background-color 0.5s ease;
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: #dbeafe;
    color: var(--sc-accent);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sc-canvas); }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

:focus-visible {
    outline: 2px solid var(--sc-accent);
    outline-offset: 3px;
}

/* Ambient Cursor Aura (Luxury Spotlight) */
.cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 460px;
    height: 460px;
    margin-left: -230px;
    margin-top: -230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.055) 0%, rgba(37, 99, 235, 0.012) 45%, transparent 70%);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    will-change: transform;
}
@media (pointer: coarse) {
    .cursor-aura { display: none !important; }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--sc-maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sc-gutter);
    padding-right: var(--sc-gutter);
}

/* --- 3. ARCHITECTURAL NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 76px;
    display: flex;
    align-items: center;
    background: rgba(250, 249, 246, 0.96);
    border-bottom: 1px solid var(--sc-hairline);
    transition: background var(--speed-normal) var(--ease-editorial), border-color var(--speed-normal) var(--ease-editorial), box-shadow var(--speed-normal) var(--ease-editorial);
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.98);
    border-bottom-color: var(--sc-hairline-strong);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: var(--sc-ink);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: var(--track-snug);
    color: var(--sc-ink);
}

.nav-logo-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sc-ink-soft);
    letter-spacing: var(--track-wide);
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sc-ink-soft);
    letter-spacing: var(--track-normal);
    transition: color var(--speed-fast) ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--sc-ink);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sc-accent);
}

.nav-cta-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px !important;
    background: var(--sc-ink) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    letter-spacing: var(--track-wide) !important;
    text-transform: uppercase;
    transition: transform var(--speed-fast) ease, background var(--speed-fast) ease !important;
}

.nav-cta-link:hover {
    background: var(--sc-accent) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sc-ink);
    transition: transform var(--speed-fast) ease, opacity var(--speed-fast) ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 75px;
    left: 0;
    height: 2px;
    background: var(--sc-accent);
    z-index: 1001;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

/* --- 4. SECTION FRAMEWORK & EDITORIAL HEADINGS --- */
.section {
    position: relative;
    padding: var(--sc-section-pad) 0;
    border-top: 1px solid var(--sc-hairline);
}

.section-hero {
    min-height: 94vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    border-top: none;
    overflow: hidden;
}

/* Master Editorial Headings (Anti-Slop: No 01/06 Numbers, Clean Hierarchy) */
.editorial-masthead {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.editorial-topic {
    font-family: var(--font-mono);
    font-size: var(--sc-t-xs);
    font-weight: 700;
    color: var(--sc-accent);
    letter-spacing: var(--track-ultra);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editorial-topic::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--sc-accent);
}

.editorial-title {
    font-family: var(--font-display);
    font-size: var(--sc-t-2xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: var(--track-tight);
    color: var(--sc-ink-heading);
    text-wrap: balance;
    margin-bottom: 1.1rem;
}

.editorial-subline {
    font-size: var(--sc-t-base);
    line-height: 1.7;
    color: var(--sc-ink-soft);
    max-width: 68ch;
    text-wrap: pretty;
}

/* --- 5. DIMENSIONAL HERO SPREAD --- */
.hero-stage {
    position: relative;
    width: 100%;
}

/* Background Watermark Architecture (Parallax Scrub Target) */
.hero-bg-watermark {
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: var(--track-tight);
    color: rgba(15, 23, 42, 0.025);
    user-select: none;
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
    transform-origin: top right;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--sc-t-xs);
    font-weight: 600;
    color: var(--sc-ink-body);
    letter-spacing: var(--track-wide);
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-bottom: 1.6rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--sc-accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-name {
    font-family: var(--font-display);
    font-size: var(--sc-t-4xl);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: var(--track-tight);
    color: var(--sc-ink);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.hero-role-statement {
    font-family: var(--font-display);
    font-size: var(--sc-t-lg);
    font-weight: 600;
    line-height: 1.35;
    color: var(--sc-accent);
    margin-bottom: 1.5rem;
}

.hero-prose {
    font-size: var(--sc-t-base);
    line-height: 1.8;
    color: var(--sc-ink-body);
    max-width: 60ch;
    margin-bottom: 2.2rem;
}

.hero-prose strong {
    color: var(--sc-ink);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Button System (Substantive, Tactile, No Cartoon Gradients) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: var(--track-normal);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform var(--speed-fast) var(--ease-editorial), background var(--speed-fast) ease, border-color var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}

.btn-primary {
    background: var(--sc-ink);
    color: #ffffff;
    border-color: var(--sc-ink);
}

.btn-primary:hover {
    background: var(--sc-accent);
    border-color: var(--sc-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.25);
}

.btn-secondary {
    background: var(--sc-surface);
    color: var(--sc-ink);
    border-color: var(--sc-hairline-strong);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--sc-ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.btn-console {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sc-ink-invert);
    border-color: var(--sc-hairline-console);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.btn-console:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--sc-accent-cyan);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Hero Portrait Framing (3D Perspective Card Stage) */
.hero-portrait-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    perspective: 1200px;
    will-change: transform;
}

.portrait-frame-clean {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    box-shadow: var(--shadow-portrait);
    aspect-ratio: 4 / 5;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s var(--ease-editorial);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.01);
}

.portrait-badge-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(13, 17, 27, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateZ(30px); /* 3D pop effect */
}

.badge-text-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: var(--track-normal);
}

.badge-text-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--sc-accent-cyan);
}

/* --- 6. CHAPTER I: COMMERCIAL REALITY (ASYMMETRIC SPREAD) --- */
.commercial-spread {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.commercial-narrative {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.commercial-narrative p {
    font-size: var(--sc-t-base);
    line-height: 1.85;
    color: var(--sc-ink-body);
}

.commercial-narrative p strong {
    color: var(--sc-ink);
    font-weight: 600;
}

.quote-highlight-rule {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--sc-accent);
    margin: 1rem 0;
    font-family: var(--font-display);
    font-size: var(--sc-t-lg);
    font-weight: 600;
    line-height: 1.45;
    color: var(--sc-ink-heading);
}

/* High-Density Telemetry Ledger (Real numbers with GSAP Rolling Ticker) */
.telemetry-stack {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--sc-hairline-strong);
}

.telemetry-row {
    padding: 24px 0;
    border-bottom: 1px solid var(--sc-hairline);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background var(--speed-fast) ease, transform 0.3s ease;
}

.telemetry-row:hover {
    background: rgba(30, 64, 175, 0.02);
    transform: translateX(4px);
}

.telemetry-num {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--sc-ink);
    letter-spacing: var(--track-snug);
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.telemetry-num em {
    font-style: normal;
    color: var(--sc-accent);
    font-size: 0.7em;
}

.telemetry-label {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--sc-ink-heading);
    letter-spacing: var(--track-normal);
}

.telemetry-context {
    font-size: 0.84rem;
    color: var(--sc-ink-soft);
    line-height: 1.5;
}

/* --- 7. CHAPTER II: THE OPERATOR SURFACE (SIGNATURE MOVE & ENGINEERED PEAK) --- */
.section-console {
    background-color: var(--sc-console-bg);
    color: var(--sc-ink-invert);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: clamp(5rem, 9vw, 9rem) 0;
    position: relative;
    overflow: hidden;
}

.section-console .editorial-topic {
    color: var(--sc-accent-cyan);
}
.section-console .editorial-topic::before {
    background: var(--sc-accent-cyan);
}
.section-console .editorial-title {
    color: #ffffff;
}
.section-console .editorial-subline {
    color: var(--sc-ink-invert-soft);
}

.console-chassis {
    background: var(--sc-console-surface);
    border: 1px solid var(--sc-hairline-console);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-console);
    transform-style: preserve-3d;
}

.console-header-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 24px;
    border-bottom: 1px solid var(--sc-hairline-console);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--sc-ink-invert-soft);
}

.console-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sc-accent-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--sc-accent-cyan);
    border-radius: 50%;
    animation: consolePulse 2s infinite ease-in-out;
}

@keyframes consolePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px var(--sc-accent-cyan); }
}

.console-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
}

/* Console Control Panel (Left) */
.console-inputs-panel {
    padding: clamp(1.8rem, 3vw, 2.5rem);
    border-right: 1px solid var(--sc-hairline-console);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.control-label-text {
    color: var(--sc-ink-invert);
    font-weight: 600;
}

.control-label-val {
    color: var(--sc-accent-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    transition: transform 0.15s ease;
}

/* Custom Tactical Range Slider */
.console-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
    transition: background var(--speed-fast) ease;
}

.console-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sc-accent-cyan);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    transition: transform var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}

.console-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 18px rgba(56, 189, 248, 1);
}

/* Radio Mode Selectors */
.method-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.method-option-card {
    position: relative;
    border: 1px solid var(--sc-hairline-console);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--speed-fast) ease;
}

.method-option-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.method-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-option-card.selected {
    border-color: var(--sc-accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
}

.method-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.method-desc {
    font-size: 0.74rem;
    color: var(--sc-ink-invert-soft);
    line-height: 1.4;
}

/* Console Telemetry Output Panel (Right) */
.console-readout-panel {
    padding: clamp(1.8rem, 3vw, 2.5rem);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.readout-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.readout-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sc-hairline-console);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.readout-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.readout-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--sc-ink-invert-soft);
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    margin-bottom: 6px;
}

.readout-num {
    font-family: var(--font-mono);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: var(--track-snug);
    font-variant-numeric: tabular-nums;
    display: inline-block;
    transition: transform 0.15s ease;
}

.readout-num.highlight-emerald {
    color: var(--sc-accent-emerald);
}

.readout-num.highlight-cyan {
    color: var(--sc-accent-cyan);
}

.readout-annotation {
    font-size: 0.75rem;
    color: var(--sc-ink-invert-soft);
    margin-top: 5px;
}

.console-summary-callout {
    border-left: 3px solid var(--sc-accent-cyan);
    background: rgba(56, 189, 248, 0.06);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--sc-ink-invert);
}

.console-summary-callout strong {
    color: #ffffff;
    font-weight: 600;
}

/* --- 8. CHAPTER III: HORIZONTAL STORYTELLING SECTION (GSAP SCROLLTRIGGER PIN) --- */
.section-horizontal-story {
    position: relative;
    padding: 0;
    border-top: 1px solid var(--sc-hairline);
    background: var(--sc-canvas);
    overflow-x: clip;
}

/* Pinned Viewport Wrapper */
.horizontal-pin-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 76px 0 0; /* exact fixed navbar height so flex center = visual center of visible viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.25rem, 3vh, 2.25rem);
    overflow: hidden;
}

.horizontal-header-container {
    width: 100%;
    max-width: var(--sc-maxw);
    margin: 0 auto;
    padding: 0 var(--sc-gutter);
    flex-shrink: 0;
}

.horizontal-intro-block {
    max-width: 820px;
}

.horizontal-intro-block .editorial-topic {
    margin-bottom: 0.45rem;
}

.horizontal-intro-block .editorial-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    margin-bottom: 0.55rem;
}

.horizontal-intro-block .editorial-subline {
    font-size: clamp(0.88rem, 0.84rem + 0.15vw, 0.96rem);
    line-height: 1.55;
    max-width: 72ch;
}

.horizontal-track-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 12px 0;
}

.horizontal-track {
    display: flex;
    gap: 32px;
    padding: 0 max(var(--sc-gutter), calc((100vw - var(--sc-maxw)) / 2 + var(--sc-gutter)));
    width: max-content;
    will-change: transform;
}

.horizontal-card {
    width: clamp(580px, 50vw, 760px);
    flex-shrink: 0;
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    border-radius: var(--radius-md);
    padding: clamp(18px, 2vw, 26px);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 0.95fr 1.1fr;
    gap: 22px;
    align-items: center;
    contain: layout style;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.horizontal-card:hover {
    border-color: rgba(30, 64, 175, 0.3);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.12);
}

.horizontal-card-media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--sc-surface-raised);
    border: 1px solid var(--sc-hairline);
    aspect-ratio: 16 / 11;
    cursor: zoom-in;
}

.horizontal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.35s var(--ease-editorial);
}

.horizontal-card-media:hover .horizontal-card-img {
    transform: scale(1.05);
}

.horizontal-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horizontal-card-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sc-accent);
    letter-spacing: var(--track-wide);
    text-transform: uppercase;
}

.horizontal-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: var(--track-tight);
    color: var(--sc-ink-heading);
}

.horizontal-card-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--sc-ink-body);
}

.horizontal-card-impact {
    border-left: 2px solid var(--sc-accent);
    padding-left: 12px;
    font-size: 0.82rem;
    color: var(--sc-ink-heading);
    line-height: 1.5;
}

.horizontal-card-impact strong {
    color: var(--sc-accent);
    font-weight: 700;
}

.horizontal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.horizontal-card-actions .btn {
    padding: 9px 15px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Compact desktop viewport adjustment (1366x768 / 125% scaling) */
@media (min-width: 1024px) and (max-height: 760px) {
    .horizontal-pin-wrapper {
        gap: 1rem;
    }
    .horizontal-intro-block .editorial-subline {
        display: none;
    }
    .horizontal-card {
        padding: 16px 20px;
        gap: 18px;
    }
    .horizontal-card-desc {
        font-size: 0.84rem;
        line-height: 1.55;
    }
}

/* Mobile & Tablet Fallback */
@media (max-width: 1023px) {
    .section-horizontal-story {
        padding: var(--sc-section-pad) 0;
    }
    .horizontal-pin-wrapper {
        height: auto;
        min-height: auto;
        padding: 0;
        display: block;
        overflow: visible;
    }
    .horizontal-track-wrapper {
        display: block;
        overflow: visible;
        padding: 0;
        margin-top: 40px;
    }
    .horizontal-track {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 0 var(--sc-gutter);
        width: 100%;
        transform: none !important;
    }
    .horizontal-card {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* --- 9. CHAPTER IV: INSTITUTIONAL & VERIFIED CREDENTIALS --- */
.credentials-asymmetric-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
}

.institutional-pillar {
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    border-radius: var(--radius-md);
    padding: clamp(2rem, 3.5vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-subtle);
}

.institutional-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.inst-name {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--sc-ink-heading);
}

.inst-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--sc-accent);
    font-weight: 600;
}

.inst-curriculum-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}

.inst-curriculum-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.92rem;
    color: var(--sc-ink-body);
    line-height: 1.5;
}

.inst-curriculum-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.55rem;
    color: var(--sc-accent);
}

/* Google Certs Stack */
.certs-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-card-editorial {
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card-editorial:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sc-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
}

.cert-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sc-ink-heading);
}

.cert-summary {
    font-size: 0.88rem;
    color: var(--sc-ink-soft);
    line-height: 1.6;
}

/* --- 10. RESOLUTION & EXECUTIVE COLOPHON --- */
.section-colophon {
    padding-bottom: clamp(4rem, 7vw, 7rem);
}

.colophon-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.colophon-terms-block {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.colophon-headline {
    font-family: var(--font-display);
    font-size: var(--sc-t-2xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: var(--track-tight);
    color: var(--sc-ink-heading);
    text-wrap: balance;
}

.colophon-prose {
    font-size: var(--sc-t-base);
    line-height: 1.8;
    color: var(--sc-ink-body);
}

.availability-card {
    background: var(--sc-surface);
    border: 1px solid var(--sc-hairline-strong);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-subtle);
}

.avail-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sc-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
}

.avail-spec {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sc-ink-heading);
}

.avail-notes {
    font-size: 0.85rem;
    color: var(--sc-ink-soft);
}

/* Direct Channels Table */
.channels-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--sc-hairline-strong);
}

.channel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--sc-hairline);
    text-decoration: none;
    color: inherit;
    transition: background var(--speed-fast) ease, padding-left var(--speed-fast) ease;
}

.channel-row:hover {
    padding-left: 8px;
    background: rgba(30, 64, 175, 0.02);
}

.channel-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--sc-ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
}

.channel-value {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--sc-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.channel-row:hover .channel-value {
    color: var(--sc-accent);
    transform: translateX(4px);
}

/* --- 11. FOOTER & COPYRIGHT --- */
.site-footer {
    border-top: 1px solid var(--sc-hairline-strong);
    padding: 36px 0;
    background: var(--sc-surface);
}

.footer-baseline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--sc-ink-soft);
}

.footer-back-to-top {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sc-ink-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--speed-fast) ease, transform var(--speed-fast) ease;
}

.footer-back-to-top:hover {
    color: var(--sc-accent);
    transform: translateY(-2px);
}

/* --- 12. ACCESSIBLE MODALS (LIGHTBOX & PROJECT DETAILS) --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(13, 17, 27, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed-normal) var(--ease-editorial), visibility var(--speed-normal) var(--ease-editorial);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--sc-hairline-strong);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    transform: translateY(20px);
    transition: transform var(--speed-normal) var(--ease-editorial);
}

.modal-backdrop.active .modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--sc-surface-raised);
    border: 1px solid var(--sc-hairline);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.35rem;
    color: var(--sc-ink);
    transition: background var(--speed-fast) ease;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sc-hairline);
}

.modal-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sc-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    display: block;
    margin-bottom: 6px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--sc-ink-heading);
}

.modal-body {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--sc-ink-body);
}

.modal-sec-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sc-ink-heading);
    margin: 1.6rem 0 0.8rem;
}

.modal-list {
    margin-left: 20px;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-highlight-box {
    background: var(--sc-surface-raised);
    border-left: 3px solid var(--sc-accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
}

.modal-highlight-box h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sc-ink-heading);
    margin-bottom: 4px;
}

.modal-highlight-box p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--sc-ink-body);
}

/* Lightbox Content */
.lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #000000;
}

.lightbox-caption {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 14px;
    text-align: center;
}

/* --- 13. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-grid,
    .commercial-spread,
    .colophon-spread,
    .credentials-asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-portrait-stage {
        margin: 0 auto;
        max-width: 380px;
    }
    
    .console-layout {
        grid-template-columns: 1fr;
    }
    
    .console-inputs-panel {
        border-right: none;
        border-bottom: 1px solid var(--sc-hairline-console);
    }
    
    .case-editorial-spread,
    .case-editorial-spread.reverse {
        grid-template-columns: 1fr;
    }
    
    .case-editorial-spread.reverse .case-media-side {
        order: 1;
    }
    .case-editorial-spread.reverse .case-content-side {
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--sc-canvas);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--sc-hairline-strong);
        display: none;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .readout-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .method-toggle-group {
        grid-template-columns: 1fr;
    }
    
    .footer-baseline {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}
