/* ══════════════════════════════════════════════════════════════════
   Koce Legal — Stylesheet (Apple Alabaster & Warm Slate Light Mode)
   The Record-Grounded Litigation Work-Product Platform (kocelegal.com)
   ══════════════════════════════════════════════════════════════════ */

/* ── Brand Font (Self-Hosted Gotham Bold) ── */
@font-face {
    font-family: 'Gotham';
    src: url('fonts/GothamBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Design Tokens & System Variables (Apple Alabaster & Warm Slate) ── */
:root {
    /* Canvas & Surface System */
    --bg-canvas:          #F8FAFC;
    --bg-surface:         #FFFFFF;
    --bg-elevated:        #FFFFFF;
    --bg-card:            #FFFFFF;
    --bg-white-warm:      #FAFBFE;
    --bg-glass:           rgba(255, 255, 255, 0.82);
    --bg-glass-heavy:     rgba(255, 255, 255, 0.92);
    --bg-subtle:          #F1F5F9;

    /* Legacy Navy Variables re-mapped to Clean Alabaster System */
    --navy-void:          #F8FAFC;
    --navy-deep:          #F8FAFC;
    --navy-main:          #FFFFFF;
    --navy-surface:       #FFFFFF;
    --navy-surface-hover: #F1F5F9;
    --navy-card:          rgba(255, 255, 255, 0.95);
    --navy-border:        rgba(15, 23, 42, 0.08);
    --navy-border-subtle: rgba(15, 23, 42, 0.05);

    /* Borders */
    --border-subtle:      rgba(15, 23, 42, 0.08);
    --border-light:       rgba(15, 23, 42, 0.08);
    --border-gold:        rgba(203, 157, 73, 0.35);

    /* Burnished Gold & Platinum Metallics */
    --gold-primary:       #CB9D49;
    --gold-light:         #B8860B;
    --gold-metallic:      #B8860B;
    --gold-bright:        #9A7228;
    --gold-pale:          #FFFDF5;
    --gold-glow:          rgba(203, 157, 73, 0.16);
    --gold-glow-soft:     rgba(203, 157, 73, 0.06);

    /* Trust Blues & Accents */
    --blue-electric:      #2563EB;
    --blue-hover:         #1D4ED8;
    --blue-light:         #EFF6FF;
    --blue-cyan:          #0284C7;
    --sapphire-primary:   #2563EB;
    --emerald-audit:      #059669;
    --red-alert:          #DC2626;

    /* Typography Colors */
    --text-primary:       #0F172A;
    --text-secondary:     #334155;
    --text-muted:         #64748B;
    --text-dark:          #0F172A;
    --text-dark-body:     #334155;
    --text-dark-muted:    #64748B;
    --text-hero-headline: #0F172A;
    --text-hero-title:    #0F172A;
    --text-hero-sub:      #334155;
    --text-hero-dim:      #64748B;
    --text-title:         #0F172A;
    --text-body:          #334155;

    /* Typography Stacks */
    --font-brand:         'Gotham', 'Outfit', -apple-system, sans-serif;
    --font-heading:       'Outfit', -apple-system, sans-serif;
    --font-body:          'Inter', -apple-system, sans-serif;
    --font-mono:          'JetBrains Mono', monospace;

    /* Shadows */
    --shadow-card:        0 1px 3px rgba(15, 23, 42, 0.05), 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --shadow-card-hover:  0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 20px 30px -10px rgba(15, 23, 42, 0.1);
    --shadow-elevated:    0 20px 50px rgba(15, 23, 42, 0.08);

    /* Spacing Scale */
    --space-xs:           0.5rem;
    --space-sm:           1rem;
    --space-md:           1.5rem;
    --space-lg:           2.5rem;
    --space-xl:           4.5rem;
    --space-2xl:          7rem;

    /* Max Widths */
    --max-content:        1120px;
    --max-hero:           900px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--bg-canvas);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════════
   VIEWPORT 1 — THE INTERACTIVE HERO
   ══════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #F8FAFC 65%, #F1F5F9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) clamp(1.25rem, 4vw, 3rem);
    overflow: hidden;
    cursor: crosshair;
}

/* Interactive Canvas Layer */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ambient Radial Lighting */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.glow-gold {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: min(650px, 85vw);
    height: 380px;
    background: radial-gradient(circle, rgba(203, 157, 73, 0.12) 0%, rgba(203, 157, 73, 0.02) 60%, transparent 80%);
}

.glow-blue {
    top: 60%;
    right: 15%;
    width: 450px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(241, 245, 249, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-hero);
    width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── System Status Beacon ── */
.system-beacon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.95rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-gold);
    border-radius: 9999px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    user-select: none;
}

.beacon-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-primary);
}

.pulse-ring {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    animation: beacon-ripple 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes beacon-ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.beacon-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold-metallic);
}

.beacon-divider {
    color: rgba(203, 157, 73, 0.4);
    font-size: 0.75rem;
}

.beacon-domain {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ── 3D Interactive Owl Centerpiece ── */
.owl-stage-container {
    perspective: 1000px;
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.owl-hologram {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optical HUD Reticle Rings */
.hud-reticle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transform-style: preserve-3d;
}

.reticle-outer {
    width: 160px;
    height: 160px;
    border: 1px dashed rgba(203, 157, 73, 0.45);
    animation: hud-rotate-cw 32s linear infinite;
}

.reticle-inner {
    width: 125px;
    height: 125px;
    border: 1px dotted rgba(37, 99, 235, 0.45);
    animation: hud-rotate-ccw 22s linear infinite;
}

.hud-crosshair {
    position: absolute;
    background: rgba(203, 157, 73, 0.35);
    pointer-events: none;
}

.crosshair-horiz {
    width: 175px;
    height: 1px;
}

.crosshair-vert {
    width: 1px;
    height: 175px;
}

@keyframes hud-rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hud-rotate-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.owl-svg {
    width: 110px;
    height: 110px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 18px rgba(1, 34, 73, 0.12));
}

.owl-facets {
    transition: all 0.3s ease;
}

.owl-stage-container:hover .owl-facets {
    filter: drop-shadow(0 0 8px rgba(203, 157, 73, 0.35));
}

.gaze-halo {
    transition: opacity 0.2s ease;
}

.pupil-element {
    transition: fill 0.2s ease;
}

/* ── Master Hero Typography ── */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.25rem, 5.2vw, 3.85rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-shadow: none;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #0F172A 0%, #B8860B 50%, #CB9D49 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

/* ── Interactive Intel Badges ── */
.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: var(--space-lg);
    width: 100%;
}

.intel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-card);
}

.intel-badge:hover {
    transform: translateY(-2px);
    background: #FFFFFF;
    border-color: var(--gold-primary);
    box-shadow: 0 8px 24px rgba(203, 157, 73, 0.15), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.badge-hint {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding-left: 0.35rem;
    border-left: 1px solid var(--border-subtle);
}

/* ── Trust Bar & Domain Bridge ── */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.main-brand-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--gold-metallic);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(203, 157, 73, 0.08);
    border: 1px solid rgba(203, 157, 73, 0.25);
    transition: all 0.2s ease;
}

.main-brand-anchor:hover {
    background: rgba(203, 157, 73, 0.16);
    color: var(--text-primary);
    border-color: var(--gold-primary);
    transform: translateX(2px);
}

.brand-arrow {
    transition: transform 0.2s ease;
}

.main-brand-anchor:hover .brand-arrow {
    transform: translateX(3px);
}

.trust-divider {
    opacity: 0.45;
}

.entity-notice {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Live Cursor Telemetry ── */
.live-telemetry {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gold-metallic);
    letter-spacing: 0.08em;
    user-select: none;
    margin-top: var(--space-xs);
}

.telemetry-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.35rem;
}

/* ══════════════════════════════════════════════════════════════════
   VIEWPORT 2 — THE CREDENTIAL & VERIFICATION
   ══════════════════════════════════════════════════════════════════ */
.credential-section {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
    position: relative;
    z-index: 4;
    border-top: 1px solid var(--border-subtle);
}

.credential-inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.credential-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-xl);
}

.credential-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold-metallic);
    display: block;
    margin-bottom: 0.75rem;
}

.credential-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.credential-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Three Credential Cards */
.credential-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.credential-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--gold-primary);
    border-radius: 12px;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.credential-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(203, 157, 73, 0.35);
    border-top-color: var(--gold-primary);
}

.card-indicator {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gold-metallic);
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

.card-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--blue-electric);
}

.card-footer {
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border-subtle);
}

.card-pill {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   BUTTONS, INPUTS, FORMS & OPT-OUT DIALOGS
   ══════════════════════════════════════════════════════════════════ */
.btn-primary, .btn-primary-small, .btn-secondary, .btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-primary {
    padding: 0.85rem 1.85rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-gold {
    padding: 0.85rem 1.85rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #CB9D49 0%, #E5B869 100%);
    color: #0F172A !important; /* WCAG AAA Contrast against gold */
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(203, 157, 73, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 157, 73, 0.4);
}

.btn-secondary {
    padding: 0.85rem 1.85rem;
    font-size: 0.95rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

/* Form Inputs & Controls */
input, select, textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
}

.glass-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem !important;
    min-height: 48px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.glass-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(203, 157, 73, 0.15);
}

/* ══════════════════════════════════════════════════════════════════
   VIEWPORT 3 — THE FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #F1F5F9;
    color: var(--text-muted);
    padding: var(--space-xl) clamp(1.25rem, 5vw, 3.5rem) var(--space-lg);
    position: relative;
    z-index: 4;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: var(--max-content);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-logo {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--text-primary);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--gold-metallic);
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.footer-nav a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--gold-metallic);
}

.footer-nav-dot {
    color: rgba(15, 23, 42, 0.2);
}

.footer-corporate {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
}

.disclaimer-line {
    margin-top: 0.25rem;
    opacity: 0.85;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .credential-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .hero-badges-row {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
    }

    .intel-badge {
        justify-content: center;
    }

    .hero-trust-bar {
        flex-direction: column;
        gap: 0.35rem;
    }

    .trust-divider {
        display: none;
    }

    .live-telemetry {
        display: none;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-nav-dot {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .reticle-outer, .reticle-inner, .pulse-ring {
        animation: none;
    }
    .hero-canvas {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   KOCE LEGAL TOP NAVIGATION (.legal-nav)
   ══════════════════════════════════════════════════════════════════ */
.legal-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.legal-nav-container {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-nav .header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: opacity 0.2s ease;
}

.legal-nav .header-logo:hover {
    opacity: 0.85;
}

.legal-nav .header-logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.legal-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.legal-nav .nav-return {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.legal-nav .nav-return:hover {
    color: var(--gold-metallic);
}

.legal-nav .nav-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.legal-nav .main-brand-anchor {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold-metallic);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    background: var(--gold-glow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.legal-nav .main-brand-anchor:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════
   PROSE, ESSAY & INSTITUTIONAL MANIFESTO LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.manifesto-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}

.manifesto-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.manifesto-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-metallic);
    background: var(--gold-glow-soft);
    border: 1px solid var(--border-gold);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.manifesto-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.manifesto-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 2rem;
}

.manifesto-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    padding: 0.85rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    max-width: 780px;
    margin: 0 auto;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-card);
}

.manifesto-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.manifesto-abstract-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--gold-primary);
    border-radius: 8px;
    padding: 1.85rem 2.25rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-card);
    text-align: left;
}

.manifesto-abstract-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-metallic);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.manifesto-abstract-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    font-style: italic;
}

/* Chapters & Headings */
.manifesto-section {
    margin-bottom: 4.5rem;
    scroll-margin-top: 5rem;
}

.chapter-badge-wrap {
    margin-bottom: 0.75rem;
}

.chapter-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-metallic);
    background: var(--gold-glow-soft);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.section-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.manifesto-prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.manifesto-prose p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.manifesto-prose h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.25rem 0 1rem;
    letter-spacing: -0.01em;
}

/* Primary Source Callout Cards */
.citation-plate {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin: 2.25rem 0;
    box-shadow: var(--shadow-card);
    position: relative;
}

.citation-plate.gold-border {
    border-left: 4px solid var(--gold-primary);
}

.citation-plate.navy-border {
    border-left: 4px solid #012249;
}

.citation-plate.blue-border {
    border-left: 4px solid var(--blue-electric);
}

.citation-plate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.citation-plate-quote {
    font-size: 1.1rem;
    line-height: 1.72;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1rem;
}

.citation-plate-source {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    display: block;
}

/* Dual Engine Grid (Solicitor vs Barrister) */
.dual-engine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.engine-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.engine-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.engine-box-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.engine-box-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.engine-box-tag.solicitor {
    color: var(--blue-electric);
    background: var(--blue-light);
}

.engine-box-tag.barrister {
    color: var(--gold-metallic);
    background: var(--gold-glow-soft);
}

.engine-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.engine-box li {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    padding-left: 1.25rem;
    position: relative;
}

.engine-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

/* Stats Triad */
.stats-triad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2.25rem 0;
}

.stat-triad-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stat-triad-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.stat-triad-value.gold { color: var(--gold-metallic); }
.stat-triad-value.blue { color: var(--blue-electric); }
.stat-triad-value.navy { color: #012249; }

.stat-triad-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.stat-triad-desc {
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Ethics Comparison Matrix */
.ethics-matrix-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    margin: 2.25rem 0;
    box-shadow: var(--shadow-card);
}

.ethics-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.25rem;
}

.ethics-matrix-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ethics-matrix-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ethics-matrix-col li {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.ethics-matrix-col li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue-electric);
    font-family: var(--font-mono);
}

/* Outbound Outreach Verification Card */
.verification-outreach-card {
    background: linear-gradient(135deg, #012249 0%, #0A3266 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    margin: 4.5rem 0 2rem;
    color: #FFFFFF;
    box-shadow: 0 12px 36px rgba(1, 34, 73, 0.25);
    text-align: center;
}

.verification-outreach-card .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.verification-outreach-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.verification-outreach-card p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #CBD5E1;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.verification-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-gateway-gold {
    background: var(--gold-primary);
    color: #012249;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.65rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(203, 157, 73, 0.35);
    transition: all 0.2s ease;
}

.btn-gateway-gold:hover {
    background: #DBAC59;
    transform: translateY(-2px);
}

.btn-gateway-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.65rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-gateway-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.verification-audit-strip {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
}

/* Responsive Manifesto */
@media (max-width: 768px) {
    .dual-engine-layout {
        grid-template-columns: 1fr;
    }

    .stats-triad-grid {
        grid-template-columns: 1fr;
    }

    .ethics-matrix-grid {
        grid-template-columns: 1fr;
    }

    .legal-nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .legal-nav-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}
