/**
 * TURKER VENTURES, LLC - Main Stylesheet
 * 
 * A dark-themed, professional investment firm website
 * Color Scheme: Miami Blue (#00D4FF) and Black
 * 
 * Typography:
 * - Cormorant Garamond: Body text and headings
 * - Bebas Neue: Display titles and branding
 * - JetBrains Mono: Labels, technical text, and UI elements
 * 
 * @author TURKER VENTURES
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Primary Colors */
    --miami-blue: #b89564;
    --miami-blue-dark: #8b6b44;
    --miami-blue-glow: rgba(184, 149, 100, 0.22);
    
    /* Neutral Colors */
    --black: #000000;
    --black-light: #050505;
    --black-lighter: #0c0c0c;
    --gray-dark: #181513;
    --gray: #2a2623;
    --gray-light: #867868;
    --white: #f4efe7;
    --white-muted: rgba(244, 239, 231, 0.74);
    --scroll-depth: 0;
    --depth-warm-opacity: 0.055;
    --depth-shadow-top: 0.08;
    --depth-shadow-bottom: 0.24;
    --section-warm-opacity: 0.05;
    --section-shadow-top: 0.1;
    --section-shadow-bottom: 0.3;
    --section-surface:
        radial-gradient(circle at top left, rgba(184, 149, 100, var(--section-warm-opacity)), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, var(--section-shadow-top)) 0%, rgba(0, 0, 0, var(--section-shadow-bottom)) 100%),
        linear-gradient(180deg, #050505 0%, #000000 48%, #040404 100%);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(184, 149, 100, calc(var(--depth-warm-opacity) * 0.5)), transparent 24%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.02), transparent 16%),
        linear-gradient(180deg, rgba(0, 0, 0, calc(var(--depth-shadow-top) + 0.06)) 0%, rgba(0, 0, 0, calc(var(--depth-shadow-bottom) + 0.14)) 58%, rgba(0, 0, 0, 0.985) 100%),
        linear-gradient(180deg, #040404 0%, #020202 34%, #000000 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.35s ease;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--miami-blue);
    border-radius: 3px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.68) 0%, rgba(6, 6, 6, 0.28) 58%, rgba(6, 6, 6, 0) 100%);
    transition: all 0.4s ease;
}

/* Scrolled state - adds blur and solid background */
nav.scrolled {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.34) 0%, rgba(10, 10, 10, 0.2) 100%);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    padding: 1rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Logo Styles */
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.42em;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    position: relative;
    min-width: 250px;
}

.logo-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-primary {
    color: var(--white);
}

.logo-secondary {
    color: var(--miami-blue);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--miami-blue);
    transition: width 0.3s ease;
}

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

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

/* CTA Button in Navigation */
.nav-links .nav-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(184, 149, 100, 0.28);
}

.nav-links .nav-btn:hover {
    background: rgba(184, 149, 100, 0.08);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

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

/* LOGIN button — clean institutional CTA. Subtle gold-tinted body with a
   gold hairline border in the resting state. On hover it inverts: solid
   gold fill with near-black text. Higher specificity than the default
   .nav-links .nav-btn so it overrides sitewide. */
.nav-links #loginBtn {
    color: #f4ead0;
    background: rgba(184, 149, 100, 0.07);
    border: 1px solid rgba(184, 149, 100, 0.55);
    text-shadow: none;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nav-links #loginBtn:hover {
    color: #0a0908;
    background: #d4af7a;
    border-color: #d4af7a;
    box-shadow: 0 6px 18px rgba(184, 149, 100, 0.22);
}

.nav-links #loginBtn:active {
    transform: translateY(1px);
    background: #b89564;
    border-color: #b89564;
    box-shadow: 0 3px 10px rgba(184, 149, 100, 0.2);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:focus-visible {
    outline: 1px solid var(--miami-blue);
    outline-offset: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Scrolling Math Background (Hidden globally - used in Philosophy section)
   ========================================================================== */

.math-bg-scroll {
    display: none; /* Not used globally anymore */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

/* Gradient background effect */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.34) 38%, rgba(0, 0, 0, 0.74) 100%),
        radial-gradient(circle at 20% 55%, rgba(184, 149, 100, 0.18) 0%, transparent 34%),
        radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.28) 0%, transparent 60%);
}

/* Grid pattern overlay */
.hero-grid {
    display: none;
}

/* Lady Justice Background Image - Centered behind text */
.hero-justice-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/moneyball-hero.png') no-repeat;
    background-size: cover;
    background-position: center 44%;
    opacity: 0.72;
    pointer-events: none;
    z-index: 1;
    animation: fadeIn 2s ease forwards;
    filter: grayscale(0.12) brightness(0.3) contrast(1.08) saturate(0.62) blur(10px);
    transform: scale(1.05);
}

/* Miami Blue glow effect on Lady Justice */
.hero-justice-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.28) 100%),
        radial-gradient(circle at 22% 56%, rgba(184, 149, 100, 0.16) 0%, transparent 24%);
    pointer-events: none;
}

/* Hero Content Container */
.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem 3rem;
    width: min(100%, 1180px);
    max-width: 1180px;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

/* Hero Title */
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.15rem, 4.8vw, 4rem);
    letter-spacing: 0.42em;
    margin-bottom: 0.85rem;
    line-height: 0.95;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    color: var(--white);
    filter: none;
    text-shadow: none;
}

/* ==========================================================================
   Hero Slot Machine (scroll-driven jackpot animation)
   ========================================================================== */

.slot-machine {
    --reel-progress: 0;
    display: inline-flex;
    vertical-align: top;
    line-height: 1;
}

.reel {
    --stagger: 0;
    --span: calc(1 - var(--stagger));
    --local: clamp(0, calc((var(--reel-progress) - var(--stagger)) / var(--span)), 1);
    display: inline-block;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
    vertical-align: top;
    min-width: 0.55em;
    transition: color 0.4s ease;
}

.strip {
    display: flex;
    flex-direction: column;
    --strip-len: 12;
    transform: translateY(calc(var(--local) * -1 * (var(--strip-len) - 1) * 1em));
    will-change: transform;
}

.strip > span {
    display: block;
    height: 1em;
    line-height: 1em;
    color: var(--white);
}

/* Outer (non-jackpot) reels: their final landing character (space) fades to invisible */
.reel:not(.reel--jackpot) .strip > span:last-child {
    color: transparent;
}

/* Jackpot reels: gradually shift white -> gold as the reel lands, plus
   a subtle scale + glow at the landing. At --local=0 they read as plain
   white (matching the rest of TURKER VENTURES); at --local=1 they're
   fully gold with a glow halo. */
.reel--jackpot {
    transform: scale(calc(1 + var(--local) * 0.18));
    text-shadow: 0 0 calc(var(--local) * 22px) rgba(184, 149, 100, calc(var(--local) * 0.7));
}

.reel--jackpot .strip > span {
    color: color-mix(
        in srgb,
        var(--white) calc((1 - var(--local)) * 100%),
        var(--miami-blue) calc(var(--local) * 100%)
    );
}

/* Reduced-motion fallback: hide the slot machine, render static title via ::after */
@media (prefers-reduced-motion: reduce) {
    .hero-title .slot-machine { display: none; }
    .hero-title::after {
        content: 'TURKER VENTURES';
        color: var(--white);
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.38em;
    color: var(--white-muted);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

/* Glowing MIAMI Text */
.hero-miami-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.72em;
    color: var(--miami-blue);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    text-shadow: none;
}

/* Glow pulse animation for MIAMI text */
.hero-miami-text::after {
    content: '';
    display: block;
    width: 84px;
    height: 1px;
    background: rgba(184, 149, 100, 0.75);
    margin: 0.8rem auto 0;
    box-shadow: none;
    animation: none;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(184, 149, 100, 0.45);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 25px rgba(184, 149, 100, 0.8);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(244, 239, 231, 0.42);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(184, 149, 100, 0.9) 0%, transparent 100%);
    animation: scrollPulse 2s ease infinite;
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */

section {
    padding: 8rem 4rem;
    position: relative;
}

/* Section Label (e.g., "About", "Philosophy") */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--miami-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--miami-blue);
}

/* Section Title */
.section-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Miami Title - Sans-serif variant */
.section-title-miami {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--white);
    margin-bottom: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    background: transparent;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--white-muted);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.about-intro strong {
    color: var(--white);
    font-weight: 500;
}

/* Founder Section */
.founder-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.founder-block {
    padding: 2.5rem;
    border-left: 2px solid var(--miami-blue);
    background: linear-gradient(90deg, rgba(184, 149, 100, 0.05) 0%, transparent 100%);
}

.founder-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gray-light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.founder-bio {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.founder-quote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    padding-left: 1rem;
    border-left: 1px solid var(--gray);
    margin-top: 1.5rem;
}

.founder-credential {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(184, 149, 100, 0.06);
    border: 1px solid var(--gray-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--white-muted);
}

.founder-credential svg {
    width: 12px;
    height: 12px;
    color: var(--miami-blue);
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

/* Scrolling Math Background - Philosophy Section Only */
.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: url('../assets/images/math-formulas-bg.png') repeat-x;
    background-size: auto 100%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: scrollMathBg 60s linear infinite;
}

@keyframes scrollMathBg {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* Ensure philosophy content stays above the background */
.philosophy .section-label,
.philosophy .section-title,
.philosophy .philosophy-grid {
    position: relative;
    z-index: 1;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

/* Philosophy Cards */
.philosophy-card {
    position: relative;
    padding: 2.5rem;
    background: #020202;
    border: 1px solid var(--gray-dark);
    overflow: hidden;
    transition: all 0.4s ease;
}

.philosophy-card:hover {
    border-color: var(--miami-blue);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--miami-blue-glow);
}

/* Top accent line on hover */
.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--miami-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Card Elements */
.card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.5rem;
    color: var(--miami-blue);
}

.card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    margin-bottom: 0.8rem;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.card-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-light);
    line-height: 1.85;
}

.card-text strong {
    color: var(--white);
    font-weight: 700;
}

.card-manifesto {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--miami-blue);
    letter-spacing: 0.05em;
    line-height: 1.7;
}

/* Quantitative Card - Floating Math Background */
.quant-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.06;
    pointer-events: none;
}

.quant-formula {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: var(--miami-blue);
    white-space: nowrap;
    animation: floatFormula 20s linear infinite;
}

.quant-formula:nth-child(1) { top: 10%; left: -200px; font-size: 0.7rem; animation-delay: 0s; }
.quant-formula:nth-child(2) { top: 30%; left: -300px; font-size: 0.6rem; animation-delay: -5s; }
.quant-formula:nth-child(3) { top: 50%; left: -250px; font-size: 0.8rem; animation-delay: -10s; }
.quant-formula:nth-child(4) { top: 70%; left: -350px; font-size: 0.65rem; animation-delay: -15s; }
.quant-formula:nth-child(5) { top: 85%; left: -280px; font-size: 0.7rem; animation-delay: -8s; }

/* ==========================================================================
   Terminal Section
   ========================================================================== */

.terminal-section {
    background: transparent;
    text-align: center;
}

/* Terminal Preview Window */
.terminal-preview {
    max-width: 700px;
    margin: 3rem auto 0;
    background: #020202;
    border: 1px solid rgba(184, 149, 100, 0.12);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Terminal Header (macOS style) — liquid glass */
.terminal-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.32) 100%);
    backdrop-filter: blur(14px) saturate(132%);
    -webkit-backdrop-filter: blur(14px) saturate(132%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.terminal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 149, 100, 0.35) 25%,
        rgba(184, 149, 100, 0.35) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--gray-light);
    margin-left: auto;
    margin-right: auto;
}

/* Terminal Body */
.terminal-body {
    padding: 2rem;
    text-align: left;
}

.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray-light);
    margin-bottom: 0.8rem;
}

.terminal-line .prompt {
    color: var(--miami-blue);
}

.terminal-line .command {
    color: var(--white);
}

.terminal-line .output {
    color: var(--gray-light);
    opacity: 0.7;
}

.terminal-line .success {
    color: #27ca40;
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--miami-blue);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(184, 149, 100, 0.1);
    border: 1px solid var(--miami-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    text-transform: uppercase;
    margin-top: 2rem;
}

.coming-soon-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--miami-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Terminal Content Grid - Side by side layout */
.terminal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    align-items: stretch;
}

.terminal-content-grid .terminal-preview {
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.terminal-content-grid .terminal-preview .terminal-body {
    flex: 1;
}

.terminal-content-grid .terminal-gallery {
    display: flex;
    flex-direction: column;
}

.terminal-content-grid .terminal-gallery .gallery-grid {
    flex: 1;
    align-content: start;
}

/* Terminal Gallery */
.terminal-gallery {
    background: #020202;
    border: 1px solid rgba(184, 149, 100, 0.12);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.32) 100%);
    backdrop-filter: blur(14px) saturate(132%);
    -webkit-backdrop-filter: blur(14px) saturate(132%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.gallery-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 149, 100, 0.35) 25%,
        rgba(184, 149, 100, 0.35) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.gallery-header:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(180deg, rgba(184, 149, 100, 0.06) 0%, rgba(10, 10, 10, 0.32) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.25);
}

.gallery-header:hover .gallery-label {
    color: var(--white);
}

.gallery-arrow {
    width: 16px;
    height: 16px;
    color: var(--miami-blue);
    transition: transform 0.3s ease;
}

.gallery-header:hover .gallery-arrow {
    transform: translateX(4px);
}

.gallery-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--miami-blue);
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--miami-blue);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(184, 149, 100, 0.16);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--miami-blue);
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(184, 149, 100, 0.22);
}

.lightbox-caption {
    text-align: center;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--miami-blue);
    text-transform: uppercase;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    border-color: var(--miami-blue);
    color: var(--miami-blue);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    border-color: var(--miami-blue);
    color: var(--miami-blue);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    background: transparent;
    padding-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(420px, 720px);
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    padding-left: 1rem;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 1px;
    background: var(--miami-blue);
    opacity: 0.45;
}

.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    text-transform: uppercase;
}

.contact-value {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.6;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: var(--black);
    border: 1px solid rgba(184, 149, 100, 0.18);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.map-container:hover {
    border-color: rgba(184, 149, 100, 0.45);
}

/* Diagonal gold corner brackets (top-left + bottom-right) */
.map-container::before,
.map-container::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--miami-blue);
    z-index: 6;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
}

.map-container::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.map-container::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.map-container:hover::before,
.map-container:hover::after {
    width: 28px;
    height: 28px;
    opacity: 1;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Leaflet map canvas */
.map-wrapper #hq-map {
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 1;
}

/* Classic dark base — gold-tinted Dark Matter, the original style */
.map-wrapper .tv-tile-base {
    filter: sepia(55%) saturate(85%) hue-rotate(355deg) brightness(0.95) contrast(1.05);
}

/* Dim the city/state label layer so geography reads as ground, not annotated map */
.map-wrapper .tv-tile-labels {
    opacity: 0.35;
    mix-blend-mode: screen;
}

/* Dark, branded Leaflet attribution */
.map-wrapper .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(244, 239, 231, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-top-left-radius: 2px;
    border: 1px solid var(--gray-dark);
    border-right: none;
    border-bottom: none;
}

.map-wrapper .leaflet-control-attribution .tv-attr-brand {
    color: var(--miami-blue);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.map-wrapper .leaflet-control-attribution .tv-attr-sep {
    color: var(--gray-dark);
    margin: 0 0.15em;
}

.map-wrapper .leaflet-control-attribution a {
    color: rgba(244, 239, 231, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-wrapper .leaflet-control-attribution a:hover {
    color: var(--miami-blue);
}

.map-wrapper .leaflet-container {
    background: var(--black);
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    cursor: pointer;
}

/* Keep the grab cursor only while actively dragging, so the map reads
   as a clickable element by default (clicks open Google Maps). */
.map-wrapper .leaflet-grab {
    cursor: pointer;
}

.map-wrapper .leaflet-dragging .leaflet-grab {
    cursor: grabbing;
}

.map-wrapper .hq-marker {
    cursor: pointer;
}

/* Custom HQ marker (gold pin with pulse) */
.hq-marker {
    background: transparent !important;
    border: none !important;
}

.hq-marker-pin {
    position: relative;
    width: 16px;
    height: 16px;
    background: var(--miami-blue);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(184, 149, 100, 0.9), 0 0 4px rgba(0, 0, 0, 0.6);
}

.hq-marker-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--miami-blue);
    border-radius: 50%;
    opacity: 0;
    animation: hqMarkerPulse 2.4s ease-out infinite;
}

.hq-marker-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--miami-blue);
    border-radius: 50%;
    opacity: 0;
    animation: hqMarkerPulse 2.4s ease-out 1.2s infinite;
}

@keyframes hqMarkerPulse {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* Branded popup */
.map-wrapper .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.95);
    color: var(--white);
    border: 1px solid var(--miami-blue);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

.map-wrapper .leaflet-popup-content {
    margin: 0.7rem 0.9rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.map-wrapper .leaflet-popup-content strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--miami-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.map-wrapper .leaflet-popup-tip {
    background: var(--miami-blue);
}

.map-wrapper .leaflet-popup-close-button {
    color: var(--miami-blue) !important;
}

/* Map overlay (vignette removed by request) */
.map-overlay-gradient {
    display: none;
}

.map-overlay-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.95);
    border: 1px solid var(--miami-blue);
    padding: 1rem 1.2rem;
    z-index: 10;
}

.map-overlay-info .location-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--miami-blue);
    margin-bottom: 0.3rem;
}

.map-overlay-info .location-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* Map Click Hint */
.map-click-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.9);
    border: 1px solid var(--miami-blue);
    padding: 0.5rem 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--miami-blue);
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.map-click-hint:hover {
    background: var(--miami-blue);
    color: var(--black);
}

.map-click-hint svg {
    width: 10px;
    height: 10px;
}

/* Map Logo Marker */
.map-logo-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
}

/* Map marker logo image */
.marker-logo {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(184, 149, 100, 0.45));
    animation: markerFloat 3s ease-in-out infinite;
}

.marker-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid var(--miami-blue);
    border-radius: 50%;
    animation: markerPulse 2s ease infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    padding: 4rem 4rem 2.5rem;
    background: var(--section-surface);
    border-top: 1px solid rgba(184, 149, 100, 0.18);
    position: relative;
}

/* Centered gold hairline at the very top — a small institutional flourish. */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 480px);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 149, 100, 0.65) 50%,
        transparent 100%);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.32em;
    color: var(--white);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(244, 239, 231, 0.7);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-disclaimer {
    max-width: 1280px;
    margin: 1.8rem auto 0;
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-size: 0.64rem;
    color: rgba(244, 239, 231, 0.6);
    line-height: 1.85;
    text-align: justify;
    letter-spacing: 0.005em;
    hyphens: auto;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--miami-blue);
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--miami-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--miami-blue);
}

.form-input::placeholder {
    color: var(--gray);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--miami-blue);
    border: 1px solid var(--miami-blue);
    color: var(--black);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: transparent;
    color: var(--miami-blue);
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes floatFormula {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 400px)); }
}

@keyframes markerFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-5px); }
}

@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* ==========================================================================
   Archives Page
   ========================================================================== */

.archives-header {
    padding: 10rem 4rem 4rem;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--gray-dark);
}

.archives-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.archives-subtitle {
    font-size: 1rem;
    color: var(--gray-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.archives-section {
    padding: 2rem 4rem 6rem;
    background: transparent;
}

/* Archives Grid - Bookshelf Style */
.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Archive Card */
.archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #020202;
    border: 1px solid var(--gray-dark);
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
}

.archive-card:hover {
    border-color: var(--miami-blue);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--miami-blue-glow);
}

/* Top accent line */
.archive-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--miami-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.archive-card:hover .card-accent {
    opacity: 1;
}

.archive-card .card-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.archive-card .card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.archive-card:hover .card-title {
    color: var(--miami-blue);
}

.archive-card .card-excerpt {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.archive-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-dark);
}

.archive-card .read-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--gray-light);
    letter-spacing: 0.1em;
}

.archive-card .read-time svg {
    width: 12px;
    height: 12px;
    color: var(--gray-light);
}

.archive-card .card-arrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.archive-card:hover .card-arrow {
    color: var(--miami-blue);
    transform: translateX(5px);
}

/* Active nav link */
.nav-links a.active {
    color: var(--miami-blue);
}

/* ==========================================================================
   Reading Page (Article)
   ========================================================================== */

.reading-page {
    max-width: 750px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gray-light);
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--miami-blue);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-dark);
}

.article-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--miami-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.article-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.article-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--miami-blue);
    margin-bottom: 1rem;
}

.article-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--gray-light);
    letter-spacing: 0.1em;
}

/* Article Content */
.article-content {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.9;
    color: var(--white-muted);
}

.article-content .article-lead {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: var(--white);
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 2px solid var(--miami-blue);
    background: rgba(184, 149, 100, 0.04);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--white);
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--gray-light);
    letter-spacing: 0.1em;
}

.article-content a {
    color: var(--miami-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--miami-blue);
}

/* Article Callout Box */
.article-callout {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: #050505;
    border: 1px solid var(--miami-blue);
}

.article-callout .callout-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--miami-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.article-callout p {
    margin-bottom: 0;
    color: var(--white);
}

/* Article Illustration */
.article-illustration {
    margin: 2rem 0 2.5rem;
    padding: 1rem;
    background: #020202;
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.article-illustration:hover {
    border-color: var(--miami-blue);
}

.article-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Footer Navigation */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-dark);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.article-nav a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.article-nav .nav-next {
    text-align: right;
}

.article-nav .nav-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--gray-light);
    text-transform: uppercase;
}

.article-nav .nav-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--white);
    transition: color 0.3s ease;
}

.article-nav a:hover .nav-title {
    color: var(--miami-blue);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    /* Navbar: tight padding, override .scrolled, allow absolute children */
    nav,
    nav.scrolled {
        padding: 0.85rem 1.1rem;
        min-height: 56px;
    }

    /* Center the logo wordmark on mobile so it sits between the edges
       with the hamburger absolute-anchored to the right. */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        min-width: 0;
        gap: 0.4rem;
        font-size: 0.92rem;
        letter-spacing: 0.38em;
        z-index: 1000;
        pointer-events: auto;
    }

    /* Hamburger: anchored right, 44pt touch target, no tap delay */
    .hamburger {
        display: flex;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    /* Mobile menu overlay: solid background fallback, smooth open/close,
       proper layering above logo and below hamburger. */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #050505;
        background: rgba(5, 5, 5, 0.985);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        backdrop-filter: blur(20px) saturate(140%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        padding: 5rem 1.5rem 3rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
        overscroll-behavior: contain;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0s;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.24em;
        padding: 0.7rem 1.2rem;
        display: inline-block;
        min-height: 44px;
        line-height: 1.6;
    }

    .nav-links a::after { bottom: 4px; }

    .nav-links .nav-btn {
        font-size: 0.78rem;
        padding: 1rem 2rem;
        margin-top: 1rem;
        min-height: 48px;
    }

    /* Section padding reduction */
    section {
        padding: 4rem 2rem;
    }

    /* Philosophy grid to single column */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact grid to single column */
    .contact-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    /* Terminal content grid to single column */
    .terminal-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    /* Lightbox navigation */
    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    /* Smaller map on mobile */
    .map-container {
        height: 300px;
    }

    /* Footer stacking */
    footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-logo {
        font-size: 0.92rem;
        letter-spacing: 0.28em;
    }

    .footer-text {
        font-size: 0.56rem;
        letter-spacing: 0.14em;
    }

    .footer-disclaimer {
        font-size: 0.62rem;
        text-align: left;
        hyphens: none;
        line-height: 1.8;
    }

    /* Archives responsive */
    .archives-header {
        padding: 8rem 2rem 3rem;
    }

    .archives-section {
        padding: 2rem 2rem 4rem;
    }

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

    /* Reading page responsive */
    .reading-page {
        padding: 6rem 1.5rem 3rem;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav .nav-next {
        text-align: left;
    }
}
