/* ============================================
   GREYMONT™ - Refined Interface
   ============================================ */

:root {
    /* Light monochrome theme */
    --primary: #e7ece4;
    --primary-bright: #f2f7ef;
    --primary-dim: #c4c9c1;
    --primary-dark: #a1a69e;
    --primary-glow: rgba(231, 236, 228, 0.6);
    --primary-glow-soft: rgba(231, 236, 228, 0.3);
    
    /* Background */
    --bg-primary: #6f7265;
    
    /* Fonts */
    --font-mono: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--cyan);
    position: relative;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

/* Scanline effect */
.scanlines {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    /* 1.5px transparent band + 1.5px dark band (3px repeat) */
    background-image: linear-gradient(
        0deg,
        transparent 0,
        transparent 1.5px,
        rgba(0, 0, 0, 0.16) 1.5px,
        rgba(0, 0, 0, 0.16) 3px
    );
    background-size: 100% 3px;
    background-repeat: repeat;
    opacity: 0.48;
}

.scanlines.active {
    display: block;
}

/* CRT flicker - disabled */
.crt-flicker {
    display: none;
}

/* ============================================
   CORNER RETICLES
   ============================================ */

.corner-reticle {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 100;
    pointer-events: none;
}

.corner-reticle::before,
.corner-reticle::after {
    content: '';
    position: absolute;
    background: var(--primary);
    opacity: 0.4;
}

.corner-reticle.top-left {
    top: 20px;
    left: 20px;
}

.corner-reticle.top-left::before {
    top: 0;
    left: 0;
    width: 25px;
    height: 1px;
}

.corner-reticle.top-left::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 25px;
}

.corner-reticle.top-right {
    top: 20px;
    right: 20px;
}

.corner-reticle.top-right::before {
    top: 0;
    right: 0;
    width: 25px;
    height: 1px;
}

.corner-reticle.top-right::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 25px;
}

.corner-reticle.bottom-left {
    bottom: 20px;
    left: 20px;
}

.corner-reticle.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
}

.corner-reticle.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 25px;
}

.corner-reticle.bottom-right {
    bottom: 20px;
    right: 20px;
}

.corner-reticle.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 25px;
    height: 1px;
}

.corner-reticle.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 25px;
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 220px;
    min-width: 220px;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
}

.sidebar-header .logo {
    width: 100%;
    height: 24px;
}

.nav-list {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.nav-item {
    margin: 2px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    height: 44px;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--primary-dim);
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.12s ease, padding-left 0.15s ease-out;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    transition: height 0.12s ease-out;
}

.nav-link:hover::before {
    height: 100%;
}

.nav-link .nav-icon,
.nav-link .nav-text {
    position: relative;
    z-index: 1;
}

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

.nav-link.active {
    color: var(--primary-bright);
    padding-left: 28px;
}

/* Active nav vertical line indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary-bright);
    animation: navLineBlink 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes navLineBlink {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 8px var(--primary-bright);
    }
    50% { 
        opacity: 0.4;
        box-shadow: 0 0 2px var(--primary-bright);
    }
}

.nav-link.active:hover {
    color: var(--bg-primary);
}

.nav-link.active:hover::after {
    background: var(--bg-primary);
    box-shadow: none;
    animation: none;
}

.nav-link.active .nav-icon {
    color: var(--primary-bright);
}

/* Active nav indicator arrow */
.nav-link.active .nav-text::after {
    content: '◄';
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    color: var(--primary-bright);
    animation: navArrowBounce 1s ease-in-out infinite;
}

.nav-link.active:hover .nav-text::after {
    color: var(--bg-primary);
}

@keyframes navArrowBounce {
    0%, 100% { 
        transform: translateX(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(4px);
        opacity: 0.5;
    }
}

.nav-icon {
    font-size: 14px;
    opacity: 0.7;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link.active .nav-icon {
    opacity: 1;
}

/* Navigation Badge */
.nav-badge {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 5px;
    margin-left: 6px;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.nav-link:hover .nav-badge {
    background: var(--bg-primary);
    color: var(--primary);
}

.nav-link.active .nav-badge {
    background: var(--primary-bright);
    color: var(--bg-primary);
}

.sidebar-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
}

.sidebar-footer .color-picker-wrapper {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-area {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Global header stays at top of content area */
.global-header {
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.global-header.hidden {
    display: none;
}

.page {
    display: none;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* ============================================
   PLACEHOLDER PAGES
   ============================================ */

.placeholder-page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.placeholder-icon {
    font-size: 64px;
    color: var(--primary-dim);
    opacity: 0.3;
}

.placeholder-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 8px;
    color: var(--primary);
    font-weight: 400;
}

.placeholder-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary-dim);
    opacity: 0.6;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding-bottom: 200px; /* Space for viz panels */
    padding-top: 0; /* Header is now global */
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 30px 28px;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    position: relative;
    display: block;
    height: 32px;
    width: 250px;
}

.logo-svg {
    height: 32px;
    width: auto;
    /* Hidden - we use the mask instead */
    opacity: 0;
    position: absolute;
}

/* Color overlay that takes the accent color via CSS mask */
.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    -webkit-mask: url('assets/Asset 10vector.svg') no-repeat left center / contain;
    mask: url('assets/Asset 10vector.svg') no-repeat left center / contain;
    opacity: 0.9;
    transition: opacity 0.2s ease, background 0.3s ease;
}

.logo:hover::before {
    opacity: 1;
}

.header-data {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}

/* Scanline Toggle Switch */
.scanline-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    border-right: 1px solid var(--primary-glow-soft);
}

.toggle-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary-dim);
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 18px;
    background: transparent;
    border: 1px solid var(--primary-dim);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.toggle-switch:hover {
    border-color: var(--primary);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--primary-dim);
    border-radius: 1px;
    transition: all 0.2s ease;
}

.toggle-switch[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary-glow-soft);
}

.toggle-switch[aria-pressed="true"] .toggle-knob {
    left: 20px;
    background: var(--primary);
}

/* Ambient geometric glyphs */
.ambient-glyphs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 15px;
}

/* Oscillating squares */
.osc-squares {
    display: flex;
    gap: 3px;
}

.osc-sq {
    width: 8px;
    height: 8px;
    border: 1px solid var(--primary-dim);
    background: transparent;
}

.osc-sq-1 {
    animation: oscFade1 1.6s ease-in-out infinite;
}

.osc-sq-2 {
    animation: oscFade2 1.6s ease-in-out infinite;
}

@keyframes oscFade1 {
    0%, 100% { opacity: 0.3; background: transparent; }
    50% { opacity: 0.8; background: var(--primary-dim); }
}

@keyframes oscFade2 {
    0%, 100% { opacity: 0.8; background: var(--primary-dim); }
    50% { opacity: 0.3; background: transparent; }
}

/* Mini waveform */
.mini-wave {
    color: var(--primary-dim);
    opacity: 0.6;
}

.mini-wave svg {
    display: block;
}

.wave-line {
    opacity: 0.5;
}

.wave-dot {
    animation: waveDotMove 2s ease-in-out infinite;
}

@keyframes waveDotMove {
    0%, 100% { cx: 2; }
    50% { cx: 22; }
}

/* Sequential blinking dots */
.seq-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.seq-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-dim);
    opacity: 0.3;
}

.seq-dot-1 { animation: seqBlink 1.2s ease-in-out infinite; }
.seq-dot-2 { animation: seqBlink 1.2s ease-in-out infinite 0.15s; }
.seq-dot-3 { animation: seqBlink 1.2s ease-in-out infinite 0.3s; }
.seq-dot-4 { animation: seqBlink 1.2s ease-in-out infinite 0.45s; }

@keyframes seqBlink {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.2); }
    50% { opacity: 0.3; transform: scale(1); }
}

.data-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timestamp-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.timestamp {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-block;
    text-align: right;
    /* fixed clock width (no seconds) to avoid layout jitter */
    min-width: 12ch;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}


.header-title {
    display: flex;
    align-items: center;
}

.header-title.hidden {
    visibility: hidden;
}

.progress-bar {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--primary);
    opacity: 0.8;
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--primary-glow-soft);
}

.color-picker {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--primary-dim);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 1px;
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: 1px;
}

.color-picker:hover {
    border-color: var(--primary);
}

/* ============================================
   FLOATING DATA READOUTS
   ============================================ */

.floating-data {
    position: absolute;
    z-index: 15;
}

.left-data {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.right-data {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}


.data-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.right-data .data-row {
    flex-direction: row-reverse;
}

.label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary-dim);
    opacity: 0.7;
}

.value {
    font-size: 12px;
    color: var(--primary);
}

.value.highlight {
    color: var(--primary-bright);
}

.value.blink {
    animation: blink 1.5s infinite;
}

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

.value.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        color: var(--primary);
    }
    50% { 
        color: var(--primary-dim);
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* Allow flex shrinking */
}

#wireframe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

/* ============================================
   HERO OVERLAY
   ============================================ */

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
}

.hero-line {
    position: relative;
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(40px, 7vw, 85px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primary);
    line-height: 0.95;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Secondary headline needs visible overflow for cursor */
.hero-secondary-inner .hero-line {
    overflow: visible;
}

.hero-line.typing {
    opacity: 1;
    animation: typeReveal 0.6s steps(12) forwards;
}

.hero-line.typing.slow {
    animation: typeReveal 1.2s steps(20) forwards;
}

.hero-line.typed {
    opacity: 1;
}

/* Terminal typing for secondary headline */
.hero-line.terminal-ready {
    opacity: 1;
}

.hero-cursor {
    position: absolute;
    display: inline-block;
    width: 0.5em;
    height: 1em;
    background: var(--primary);
    margin-left: 4px;
    animation: cursorBlink 0.5s steps(1) infinite;
}

.hero-cursor.hidden {
    visibility: hidden;
}

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

@keyframes typeReveal {
    from {
        max-width: 0;
    }
    to {
        max-width: 100%;
    }
}

/* Flicker animation */
.hero-headline.flicker {
    animation: heroFlicker 0.4s ease-in-out;
}

@keyframes heroFlicker {
    0% { opacity: 1; }
    15% { opacity: 0.2; }
    30% { opacity: 0.9; }
    45% { opacity: 0.1; }
    60% { opacity: 0.8; }
    75% { opacity: 0.15; }
    90% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Primary headline fade out */
.hero-primary.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Boot sequence indicator */
.boot-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boot-indicator.visible {
    opacity: 1;
}

.boot-indicator.fade-out {
    opacity: 0;
}

.boot-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--primary-dim);
}

.boot-spinner {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
    min-width: 1em;
    text-align: center;
}

/* Mini headline (top-left) */
.hero-mini {
    position: absolute;
    top: 20px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-100%);
}

.hero-mini span {
    display: block;
}

.hero-mini.slide-in {
    animation: slideInFromLeft 0.5s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 0.7;
        transform: translateX(4px);
    }
}

/* ============================================
   VERTICAL DATE BADGE
   ============================================ */

.date-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #a3e635;
    padding: 12px 10px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.date-badge.visible {
    pointer-events: auto;
    opacity: 1;
}

/* Legacy keyframes kept for reference */
@keyframes dateBadgeFlicker {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0; }
    30% { opacity: 1; }
    40% { opacity: 0.3; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    70% { opacity: 0.8; }
    80% { opacity: 0.2; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}

.date-badge-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--bg-primary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

/* Secondary headline wrapper (handles centering) */
.hero-secondary-wrapper {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-secondary-wrapper.active {
    display: flex;
}

/* Hero eyebrow label */
.hero-eyebrow {
    background: var(--primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 10px 16px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Secondary headline content wrapper (groups headline + subline for left alignment) */
.hero-secondary-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Secondary headline inner (content-sized for animation) */
.hero-secondary-inner {
    align-items: flex-start;
    text-align: left;
}

/* Mobile-only lines: hidden on desktop */
.hero-line.mobile-line {
    display: none;
}

/* Secondary subline */
.hero-subline {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--primary-dim);
    text-align: left;
    text-transform: uppercase;
    margin-top: 40px;
    padding-left: 3px; /* Optical alignment with large headline letters */
    max-width: 320px;
    opacity: 0;
    transform: translateY(100%);
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.4s ease, transform 0.4s ease, clip-path 0.4s ease;
}

.hero-subline.visible {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
}

.hero-subline .smiley-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--primary-dim);
}

/* Idle flicker for secondary headline */
.hero-secondary-inner.idle-flicker .hero-line {
    animation: idleFlicker 0.12s steps(1);
}

@keyframes idleFlicker {
    0% { opacity: 1; }
    20% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 0.2; }
    80% { opacity: 1; }
    100% { opacity: 1; }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 20;
}

.footer-text {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary-dim);
    opacity: 0.5;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   VISUALIZATION PANELS
   ============================================ */

.viz-panels {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 15;
}

.viz-panel {
    flex: 1;
    max-width: 200px;
}

.viz-panel canvas {
    display: block;
    width: 100%;
    height: 120px;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 1px;
}

.viz-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 1px;
}

/* Amber monochrome theme for all panels */
.viz-panel .viz-label {
    color: var(--primary);
}

.viz-panel .viz-data,
.viz-panel .viz-footer {
    color: var(--primary-dim);
}

.viz-panel canvas {
    border: 1px solid var(--primary-glow-soft);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) and (min-width: 769px) {
    .viz-panels {
        display: none;
    }
}

@media (max-width: 768px) {
    .viz-panels {
        position: absolute;
        bottom: 50px;
        left: 16px;
        right: 16px;
        display: flex;
        justify-content: center;
        gap: 0;
        z-index: 15;
    }

    /* Hide all panels except the Lissajous (second one) */
    .viz-panel {
        display: none;
    }

    .viz-panel:nth-child(2) {
        display: block;
        max-width: 160px;
    }

    .viz-panel:nth-child(2) canvas {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 25px;
    }
    
    .logo-svg {
        height: 24px;
    }
    
    .floating-data {
        display: none;
    }
    
    .footer {
        padding: 15px 25px;
    }
    
    .corner-reticle {
        display: none;
    }
}

/* ============================================
   HUEY GAME
   ============================================ */

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

#huey-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* HUD Overlay */
.huey-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    pointer-events: none;
    z-index: 10;
}

.huey-hud-left,
.huey-hud-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.huey-hud-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.huey-hud-right {
    text-align: right;
}

.huey-hud-right .data-row {
    flex-direction: row-reverse;
}

.huey-sound-toggle {
    background: transparent;
    border: 1px solid var(--color-dim);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    align-self: flex-end;
}

.huey-sound-toggle:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.huey-sound-toggle.muted {
    opacity: 0.5;
}

.huey-sound-toggle.muted .sound-on {
    display: none;
}

.huey-sound-toggle.muted .sound-off {
    display: inline !important;
}

.huey-hud .value {
    font-family: var(--font-mono);
    min-width: 60px;
}

.huey-hud .value.warning {
    color: #cc4400;
    animation: hueyFlash 0.5s infinite;
}

.huey-hud .value.critical {
    color: #aa0000;
    animation: hueyFlash 0.25s infinite;
}

@keyframes hueyFlash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

/* Progress bar gauges */
.huey-gauge-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.huey-progress-bar {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--primary);
    white-space: nowrap;
}

.huey-progress-bar.warning {
    color: #cc4400;
    animation: hueyFlash 0.8s infinite;
}

.huey-progress-bar.critical {
    color: #aa0000;
    animation: hueyFlash 0.4s infinite;
}

.huey-progress-bar.firing {
    color: #ffaa00;
    text-shadow: 0 0 8px #ff6600, 0 0 12px #ff4400;
    animation: muzzle-flash 0.08s infinite;
}

@keyframes muzzle-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Altitude dial */
.huey-dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#huey-altimeter {
    opacity: 0.8;
}

.huey-dial-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--primary-dim);
}

.huey-dial-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Game Overlay (Start/Game Over) */
.huey-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.huey-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Split layout container - fills entire overlay */
.huey-overlay-split {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* Left side - text and controls */
.huey-overlay-left {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: color-mix(in srgb, var(--bg-primary) 95%, transparent);
}

/* Keep all content left-aligned as a unit */
.huey-overlay-left > * {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

/* Center the prompt button text */
.huey-overlay-left .huey-prompt {
    text-align: center;
}

/* Hide high score */
.huey-overlay-left .huey-high-score {
    display: none;
}

.huey-header-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

/* Right side - image */
.huey-overlay-right {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.huey-header-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.huey-header-art[src=""],
.huey-header-art:not([src]),
.huey-header-art.hidden {
    display: none;
}

/* If image is hidden, left side takes full width */
.huey-overlay-right:has(.huey-header-art.hidden),
.huey-overlay-right:has(.huey-header-art[src=""]) {
    display: none;
}

.huey-overlay-split:has(.huey-overlay-right:empty) .huey-overlay-left,
.huey-overlay-split:not(:has(.huey-header-art)) .huey-overlay-left {
    align-items: center;
    text-align: center;
}

/* Legacy support - hide old content class if still used */
.huey-overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 60px;
    border: 2px solid var(--primary);
}

.huey-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.huey-overlay-left .huey-title {
    font-size: 48px;
}

.huey-subtitle {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--primary);
    opacity: 0.7;
    margin: 0;
}

/* Card components for controls/objective */
.huey-card {
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.huey-card-header {
    background: var(--primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 16px;
}

.huey-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.huey-card-body p {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.huey-divider {
    border: none;
    height: 1px;
    background: var(--primary);
    margin: 5px 0 0 0;
}

.huey-obj-num {
    min-width: 18px;
    display: inline-block;
}

.huey-card-body .huey-tip-inline {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.huey-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: transparent;
}

.huey-prompt {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bg-primary);
    background: var(--primary);
    margin-top: 30px;
    padding: 14px 28px;
    border: none;
    animation: flash-prompt 1s ease-in-out infinite;
}

@keyframes flash-prompt {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.huey-high-score {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary-dim);
    margin: 0;
}

/* Score card body */
.huey-score-body {
    align-items: flex-start;
    text-align: left;
}

.huey-final-score {
    font-family: 'Public Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.huey-score-breakdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--primary);
}

.huey-score-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
}

.huey-score-row .label {
    text-align: left;
}

.huey-score-row .value {
    text-align: right;
    font-weight: 600;
}

/* Hide score card initially */
.huey-score-card {
    display: none;
}

/* Black footer container for branding and tips */
.huey-image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 32px;
    background: #000;
}

/* Greymont Games branding */
.huey-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.huey-branding-logo {
    width: 120px;
    height: 18px;
    background: var(--bg-primary);
    -webkit-mask: url('assets/Asset 10vector.svg') no-repeat center / contain;
    mask: url('assets/Asset 10vector.svg') no-repeat center / contain;
    opacity: 0.9;
}

.huey-branding-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--bg-primary);
    opacity: 0.9;
}

/* Gameplay tip container - shown on all screens */
.huey-tip-container {
    display: none;
    width: 100%;
    margin-bottom: 14px;
    text-align: center;
}

.huey-tip-header {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--bg-primary);
    margin-bottom: 6px;
    opacity: 0.6;
}

.huey-tip-text {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: var(--bg-primary);
}

/* Responsive: stack layout on smaller screens */
@media (max-width: 700px) {
    .huey-overlay-split {
        flex-direction: column;
    }
    
    .huey-overlay-left {
        padding: 24px;
        align-items: center;
        text-align: center;
        flex: none;
    }
    
    .huey-overlay-right {
        flex: 1;
        order: -1; /* Image on top for mobile */
    }
    
    .huey-overlay-left .huey-title {
        font-size: 36px;
    }
    
    .huey-image-footer {
        padding: 14px 16px;
    }
    
    .huey-tip-container {
        margin-bottom: 10px;
    }
    
    .huey-tip-text {
        font-size: 10px;
    }
    
    .huey-branding-logo {
        width: 90px;
        height: 14px;
    }
    
    .huey-branding-text {
        font-size: 10px;
        letter-spacing: 3px;
    }
}

/* ============================================
   PRODUCT SHOWCASE (Operations Page)
   ============================================ */

.product-showcase {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    position: absolute;
    inset: 0;
}

/* Hero Section */
.product-hero {
    min-height: 45vh;
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

/* Product Logo Icon - Top Right */
.product-logo-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    -webkit-mask: url('assets/M2P_Logo_Icon_Black.png') no-repeat center / contain;
    mask: url('assets/M2P_Logo_Icon_Black.png') no-repeat center / contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, background 0.3s ease;
}

.product-logo-icon.visible {
    visibility: visible;
    animation: logoFlickerIn 0.4s steps(1) forwards;
}

@keyframes logoFlickerIn {
    0% { opacity: 0; }
    20% { opacity: 0.9; }
    35% { opacity: 0.2; }
    50% { opacity: 0.9; }
    65% { opacity: 0.4; }
    80% { opacity: 0.9; }
    100% { opacity: 0.9; }
}

.product-logo-icon:hover {
    opacity: 1;
}

.product-hero-content {
    max-width: 100%;
}

/* Product Document Path */
.product-doc-path {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary-dim);
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Large Bauhaus-style Title */
.product-title {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(80px, 18vw, 200px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0 0 40px -12px; /* Negative left margin for optical alignment with content */
    text-transform: none;
    min-height: clamp(80px, 18vw, 200px);
}

/* Product title cursor */
.product-cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.72em;
    background: var(--primary);
    margin-left: 0.05em;
    vertical-align: baseline;
    transform: translateY(-0.03em);
    animation: cursorBlink 0.5s steps(1) infinite;
}

.product-cursor.hidden {
    display: none;
}

.product-cursor.flash-green {
    background: #a3e635;
    animation: cursorFlashGreen 0.3s ease-out forwards;
}

@keyframes cursorFlashGreen {
    0% { 
        background: var(--primary);
        opacity: 1;
        transform: translateY(-0.03em);
    }
    30% { 
        background: #a3e635;
        opacity: 1;
        transform: translateY(-0.03em) scale(1.1);
    }
    100% { 
        background: #a3e635;
        opacity: 0;
        transform: translateY(-0.03em) scale(1);
    }
}

.product-title.typing-active {
    /* Ensure cursor is visible during typing */
}

.product-title.typed {
    /* Typing complete */
}

/* Info Row - Category, Description */
.product-info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
}

/* ARGUS page entrance animation (category + description) */
#page-argus.page-enter .product-category-label,
#page-argus.page-enter .radar-icon,
#page-argus.page-enter .product-description-logo,
#page-argus.page-enter .product-description {
    will-change: transform, opacity, filter;
}

#page-argus.page-enter .product-category-label {
    opacity: 0;
    animation: opsLabelIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 120ms;
}

#page-argus.page-enter .radar-icon {
    opacity: 0;
    transform-origin: 50% 50%;
    animation: opsRadarIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 220ms;
}

#page-argus.page-enter .product-description-logo {
    opacity: 0;
    animation: opsFlickerIn 420ms steps(1) forwards;
    animation-delay: 260ms;
}

#page-argus.page-enter .product-description {
    opacity: 0;
    animation: opsTextIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 320ms;
}

#page-argus.page-enter .product-link-button {
    will-change: transform, opacity, filter;
    opacity: 0;
    animation: opsTextIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 400ms;
}

/* MESS2PDF page entrance animation (category + description) */
#page-mess2pdf.page-enter .product-category-label,
#page-mess2pdf.page-enter .genesis-icon,
#page-mess2pdf.page-enter .product-description-logo,
#page-mess2pdf.page-enter .product-description {
    will-change: transform, opacity, filter;
}

#page-mess2pdf.page-enter .product-category-label {
    opacity: 0;
    animation: opsLabelIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 120ms;
}

#page-mess2pdf.page-enter .genesis-icon {
    opacity: 0;
    transform-origin: 50% 50%;
    animation: opsGenesisIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 220ms;
}

#page-mess2pdf.page-enter .product-description-logo {
    opacity: 0;
    animation: opsFlickerIn 420ms steps(1) forwards;
    animation-delay: 260ms;
}

#page-mess2pdf.page-enter .product-description {
    opacity: 0;
    animation: opsTextIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 320ms;
}

#page-mess2pdf.page-enter .product-link-button {
    will-change: transform, opacity, filter;
    opacity: 0;
    animation: opsTextIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    animation-delay: 400ms;
}

/* M2P page specific spacing for video */
#page-mess2pdf .product-media {
    margin-bottom: 80px !important;
}

#page-mess2pdf .product-features {
    margin-top: 40px;
}

@keyframes opsLabelIn {
    0% { opacity: 0; transform: translateX(-8px); filter: blur(1px); }
    60% { opacity: 0.95; filter: blur(0); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes opsRadarIn {
    0% { opacity: 0; transform: translateY(6px) scale(0.9) rotate(-12deg); filter: blur(1px); }
    60% { opacity: 0.95; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}

@keyframes opsGenesisIn {
    0% { opacity: 0; transform: scale(0.5); filter: blur(2px); }
    60% { opacity: 0.95; filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes opsTextIn {
    0% { opacity: 0; transform: translateY(10px); filter: blur(1px); }
    60% { opacity: 0.95; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes opsFlickerIn {
    0% { opacity: 0; }
    20% { opacity: 0.9; }
    35% { opacity: 0.15; }
    50% { opacity: 0.9; }
    65% { opacity: 0.35; }
    80% { opacity: 0.9; }
    100% { opacity: 0.9; }
}

/* Category Label */
.product-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: var(--primary);
    text-transform: uppercase;
}

.product-category-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--primary-dim);
}

.radar-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.radar-rings {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

.radar-rings::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    opacity: 0.7;
}

.radar-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    transform: translate(-50%, -50%);
    background: var(--primary);
    border-radius: 50%;
}

.radar-ring-mid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    height: 75%;
    transform: translate(-50%, -50%);
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    opacity: 0.4;
}

.radar-sweep {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        transparent 300deg,
        rgba(231, 236, 228, 0.3) 330deg,
        rgba(231, 236, 228, 1) 360deg
    );
    -webkit-animation: radarScan 1.5s linear infinite;
    animation: radarScan 1.5s linear infinite;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 50%;
    background: var(--primary);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
}

@-webkit-keyframes radarScan {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes radarScan {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Genesis Icon - for AI creation/synthesis */
.genesis-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.genesis-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    background: var(--primary);
    animation: genesisPulse 2s ease-in-out infinite;
}

.genesis-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid var(--primary);
    transform: translate(-50%, -50%);
}

.genesis-ring-1 {
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: genesisExpand 2s ease-out infinite;
    animation-delay: 0s;
}

.genesis-ring-2 {
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: genesisExpand 2s ease-out infinite;
    animation-delay: 0.4s;
}

.genesis-ring-3 {
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: genesisExpand 2s ease-out infinite;
    animation-delay: 0.8s;
}

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

@keyframes genesisExpand {
    0% {
        width: 4px;
        height: 4px;
        opacity: 0.9;
    }
    100% {
        width: 20px;
        height: 20px;
        opacity: 0;
    }
}

/* Description */
.product-description-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.product-description-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #000;
    -webkit-mask: url('assets/M2P_Logo_Icon_Black.png') no-repeat center / contain;
    mask: url('assets/M2P_Logo_Icon_Black.png') no-repeat center / contain;
    margin-top: 2px;
}

.product-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.3px;
    color: var(--primary);
    max-width: 480px;
    margin: 0;
    text-transform: uppercase;
    flex: 0 1 auto;
    min-width: 0;
}

.product-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--bg-primary);
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: padding 0.2s ease;
    white-space: nowrap;
    align-self: flex-start;
    flex-shrink: 0;
    margin-left: 16px;
}

.product-link-button::after {
    content: '→';
    font-family: inherit;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease;
}

.product-link-button:hover {
    padding-right: 28px;
}

.product-link-button:hover::after {
    transform: translateX(4px);
}

.product-link-button:active {
    padding-right: 24px;
}

/* CTA Banner */
.cta-banner {
    width: 100%;
    padding: 24px 40px;
    border-top: 1px solid var(--primary-dim);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
}

.cta-banner-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.cta-banner-text {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.cta-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background-color: var(--primary);
    color: var(--bg-primary);
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: padding 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-banner-button::after {
    content: '→';
    font-family: inherit;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease;
}

.cta-banner-button:hover {
    padding-right: 28px;
}

.cta-banner-button:hover::after {
    transform: translateX(4px);
}

.cta-banner-button:active {
    padding-right: 24px;
}

/* Project Stats */
.product-stats {
    position: absolute;
    top: 140px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
    opacity: 0;
    visibility: hidden;
}

.product-stats.visible {
    visibility: visible;
    animation: statsSlideIn 0.5s ease-out forwards;
}

@keyframes statsSlideIn {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.product-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.product-stat + .product-stat {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--primary-glow-soft);
}

.product-stat-value {
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.product-stat-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.product-stat-services {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-glow-soft);
}

.product-stat-services span {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

/* Media Section - matches content width */
.product-media {
    width: 100%;
    padding: 0 40px;
    margin-bottom: 40px;
    position: relative;
}

.product-media .wistia_responsive_padding {
    background: #000;
}

.product-media .wistia_responsive_wrapper {
    background: #000;
}

.product-media iframe,
.product-media .wistia_embed {
    border: none;
    display: block;
    background: #000;
}


.product-media-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    background: var(--primary-glow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Placeholder scanlines effect */
.product-media-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--primary-glow-soft) 2px,
        var(--primary-glow-soft) 4px
    );
    pointer-events: none;
    opacity: 0.3;
}

.media-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.media-placeholder-icon {
    font-size: 48px;
    color: var(--primary-dim);
    transition: color 0.3s ease;
}

.product-media-placeholder:hover .media-placeholder-icon {
    color: var(--primary);
}

.media-placeholder-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--primary-dim);
}

/* Product Mockup Section */
.product-mockup-section {
    width: 100%;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.product-mockup-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-mockup-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-frame {
    width: 94%;
    height: 90%;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-placeholder-text {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
}

/* Mockup image when added */
.product-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Features Section */
.product-features {
    /* Match Operations content gutter (title + video) */
    padding: 60px 40px;
    padding-top: 60px;
    padding-bottom: 100px;
    border-top: none;
}

.product-features-heading {
    padding: 20px 0 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.product-features-left {
    flex: 1;
    max-width: 50%;
}

.product-features-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Eyebrow badge - UI color background, BG color text */
.eyebrow-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--bg-primary);
    margin-bottom: 12px;
}

.product-features-title {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--primary);
    text-align: left;
    margin: 0;
    margin-left: -7px;
}

.product-features-right {
    text-align: right;
    padding-top: 10px;
}

.event-types {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.event-types-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--primary-dim);
}

.event-types-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.event-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.event-group span {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.event-divider {
    width: 40px;
    height: 1px;
    border: none;
    background: var(--primary-dim);
    margin: 10px 0;
    opacity: 0.5;
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.product-feature {
    border: 1px solid var(--primary);
    background: transparent;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-feature:hover {
    opacity: 0.85;
}

/* Top section with title and icon */
.feature-top {
    display: flex;
    border-bottom: 1px solid var(--primary);
}

.feature-main {
    flex: 1;
    border-right: 1px solid var(--primary);
}

.feature-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    padding: 14px;
    line-height: 1.1;
    border-bottom: 1px solid var(--primary);
}

.feature-subtitle {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
    padding: 10px 14px;
}

.feature-icon {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border: 3px solid var(--primary);
    border-radius: 50%;
}

/* SPD Triangle Icon */
.icon-spd {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-spd svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.spd-triangle {
    fill: #ff6b00;
    stroke: #000;
    stroke-width: 1.5;
}

.spd-text {
    font-family: 'Public Sans', sans-serif;
    font-size: 7px;
    font-weight: 900;
    fill: #000;
    text-anchor: middle;
    letter-spacing: 0.3px;
}

/* Bottom section */
.feature-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 70px;
}

.feature-meta {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.4;
    max-width: 80%;
}

.feature-id {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
}

.feature-id-symbol {
    font-size: 8px;
    opacity: 0.7;
}

/* Black square block at bottom */
.feature-block {
    width: 100%;
    min-height: 360px;
    background: #000;
}

/* ============================================
   FEATURE BLOCK - Image Variant
   ============================================ */

.feature-block--image {
    position: relative;
    overflow: hidden;
}

.feature-block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.product-feature:hover .feature-block-image {
    filter: grayscale(0%);
}

.feature-block-image--zoomed {
    transform: scale(1.4);
}

/* ============================================
   TOPOGRAPHIC GRID - Real-Time Mapping Viz
   ============================================ */

.feature-block--map {
    position: relative;
    overflow: hidden;
}

.topo-grid {
    position: absolute;
    inset: 0;
    perspective: 400px;
    perspective-origin: 50% 30%;
    overflow: hidden;
}

.topo-grid-inner {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    transform: rotateX(55deg) translateZ(0);
    transform-style: preserve-3d;
    background: 
        /* Horizontal lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        ),
        /* Vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        );
    background-size: 20px 20px;
}

/* City/Landscape SVG overlay */
.topo-city {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.topo-city svg {
    width: 100%;
    height: 100%;
}

/* Event indicator */
.topo-event {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.topo-event-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(180, 60, 60, 0.55) 0%,
        rgba(180, 60, 60, 0.3) 35%,
        rgba(180, 60, 60, 0.12) 60%,
        transparent 100%
    );
    opacity: 0;
    transform: scale(0.3);
    animation: topoEventAppear 0.5s ease-out forwards;
}

.topo-event-ring--outer {
    animation: topoEventRipple 1.2s ease-out forwards;
    animation-delay: 0.1s;
}

.topo-event-ring--pulse {
    border: 1px solid rgba(180, 80, 80, 0.5);
    background: transparent;
    animation: topoEventPulseRing 1.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* Fade out animation for reset */
.topo-event.fade-out .topo-event-ring {
    animation: topoEventFadeOut 0.8s ease-out forwards;
}

@keyframes topoEventAppear {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes topoEventRipple {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes topoEventPulseRing {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: scale(2.2);
    }
}

@keyframes topoEventFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Police response dots */
.topo-police {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    filter: blur(3px);
}

.topo-police--red {
    background: rgba(255, 50, 50, 0.8);
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.7), 0 0 20px rgba(255, 50, 50, 0.4);
    animation: policeFlashRed 0.6s ease-in-out infinite;
}

.topo-police--blue {
    background: rgba(50, 100, 255, 0.8);
    box-shadow: 0 0 12px rgba(50, 100, 255, 0.7), 0 0 20px rgba(50, 100, 255, 0.4);
    animation: policeFlashBlue 0.6s ease-in-out infinite;
    animation-delay: 0.3s;
}

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

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

/* Severity variants */
.topo-event--low .topo-event-ring {
    background: radial-gradient(circle at center,
        rgba(120, 100, 100, 0.45) 0%,
        rgba(120, 100, 100, 0.22) 35%,
        rgba(120, 100, 100, 0.08) 60%,
        transparent 100%
    );
}

.topo-event--medium .topo-event-ring {
    background: radial-gradient(circle at center,
        rgba(170, 70, 70, 0.5) 0%,
        rgba(170, 70, 70, 0.28) 35%,
        rgba(170, 70, 70, 0.1) 60%,
        transparent 100%
    );
}

.topo-event--high .topo-event-ring {
    background: radial-gradient(circle at center,
        rgba(200, 50, 50, 0.6) 0%,
        rgba(200, 50, 50, 0.35) 35%,
        rgba(200, 50, 50, 0.12) 60%,
        transparent 100%
    );
}

/* ============================================
   CLASSIFIER GRID - AI Classification Viz
   ============================================ */

.feature-block--classifier {
    position: relative;
    overflow: hidden;
}

.classifier-grid {
    position: absolute;
    inset: 0;
    perspective: 400px;
    perspective-origin: 50% 35%;
    overflow: hidden;
}

.classifier-inner {
    position: absolute;
    inset: 0;
    transform: rotateX(25deg) translateZ(0) translateY(10%);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15% 12%;
    background: 
        /* Horizontal lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        ),
        /* Vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        );
    background-size: 20px 20px;
}

.classifier-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.classifier-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.classifier-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    width: 52px;
    text-align: right;
    flex-shrink: 0;
}

.classifier-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.classifier-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        rgba(160, 80, 80, 0.7) 0%,
        rgba(180, 70, 70, 0.85) 100%
    );
    transition: width 0.8s ease-out;
}

.classifier-fill.pulse {
    animation: classifierPulse 0.6s ease-out;
}

@keyframes classifierPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.6); }
    100% { filter: brightness(1); }
}

/* Active row highlight */
.classifier-row.active .classifier-label {
    color: rgba(255, 255, 255, 0.8);
}

.classifier-row.active .classifier-fill {
    background: linear-gradient(90deg, 
        rgba(180, 70, 70, 0.8) 0%,
        rgba(200, 60, 60, 0.95) 100%
    );
}

/* Status text */
.classifier-status {
    margin-top: 16px;
    text-align: center;
}

.classifier-status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.25);
    animation: statusBlink 2s ease-in-out infinite;
}

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

/* ============================================
   FEED GRID - Community Intel Viz
   ============================================ */

.feature-block--feed {
    position: relative;
    overflow: hidden;
}

.feed-grid {
    position: absolute;
    inset: 0;
    perspective: 400px;
    perspective-origin: 50% 30%;
    overflow: hidden;
}

.feed-inner {
    position: absolute;
    inset: 0;
    transform: rotateX(25deg) translateZ(0) translateY(-5%);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 12%;
    background: 
        /* Horizontal lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        ),
        /* Vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.08) 19px,
            rgba(255, 255, 255, 0.08) 20px
        );
    background-size: 20px 20px;
}

/* Audio waveform */
.feed-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 24px;
    margin-bottom: 14px;
}

.waveform-bar {
    width: 3px;
    background: rgba(180, 80, 80, 0.7);
    border-radius: 1px;
    animation: waveformPulse 1.4s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 50%; animation-delay: 0.07s; }
.waveform-bar:nth-child(3) { height: 70%; animation-delay: 0.14s; }
.waveform-bar:nth-child(4) { height: 90%; animation-delay: 0.21s; }
.waveform-bar:nth-child(5) { height: 60%; animation-delay: 0.28s; }
.waveform-bar:nth-child(6) { height: 80%; animation-delay: 0.35s; }
.waveform-bar:nth-child(7) { height: 100%; animation-delay: 0.42s; }
.waveform-bar:nth-child(8) { height: 70%; animation-delay: 0.49s; }
.waveform-bar:nth-child(9) { height: 50%; animation-delay: 0.56s; }
.waveform-bar:nth-child(10) { height: 85%; animation-delay: 0.63s; }
.waveform-bar:nth-child(11) { height: 95%; animation-delay: 0.7s; }
.waveform-bar:nth-child(12) { height: 65%; animation-delay: 0.77s; }
.waveform-bar:nth-child(13) { height: 45%; animation-delay: 0.84s; }
.waveform-bar:nth-child(14) { height: 75%; animation-delay: 0.91s; }
.waveform-bar:nth-child(15) { height: 55%; animation-delay: 0.98s; }
.waveform-bar:nth-child(16) { height: 85%; animation-delay: 1.05s; }
.waveform-bar:nth-child(17) { height: 60%; animation-delay: 1.12s; }
.waveform-bar:nth-child(18) { height: 40%; animation-delay: 1.19s; }
.waveform-bar:nth-child(19) { height: 55%; animation-delay: 1.26s; }
.waveform-bar:nth-child(20) { height: 35%; animation-delay: 1.33s; }

@keyframes waveformPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.feed-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Event row */
.feed-event {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    max-width: 220px;
    width: 100%;
    background: rgba(60, 60, 60, 0.25);
    border-left: 2px solid rgba(150, 150, 150, 0.5);
    opacity: 1;
    transition: opacity 0.8s ease;
}

.feed-event.fade-in {
    animation: feedFadeIn 0.8s ease forwards;
}

@keyframes feedFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.feed-event.fade-out {
    animation: feedFadeOut 0.6s ease forwards;
}

@keyframes feedFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Alert badge */
.feed-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 5px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.feed-badge--high {
    background: rgba(200, 60, 60, 0.8);
    color: rgba(255, 255, 255, 0.95);
}

.feed-badge--medium {
    background: rgba(180, 140, 60, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

.feed-badge--low {
    background: rgba(100, 100, 100, 0.6);
    color: rgba(255, 255, 255, 0.8);
}

/* High alert border */
.feed-event.feed-event--high {
    border-left-color: rgba(200, 60, 60, 0.8);
}

.feed-event.feed-event--medium {
    border-left-color: rgba(180, 140, 60, 0.7);
}

/* Event content */
.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 6px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Responsive - Product Showcase */
@media (max-width: 1100px) {
    .product-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        min-height: auto;
        padding: 30px 24px 20px 24px;
    }
    
    .product-title {
        font-size: clamp(48px, 15vw, 100px);
        margin-bottom: 20px;
    }
    
    #argus-title {
        font-size: clamp(56px, 18vw, 120px);
        margin-left: 0;
    }
    
    .product-info-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-stats {
        display: none;
    }
    
    .product-description {
        max-width: 100%;
    }
    
    .product-description-wrapper {
        flex-wrap: wrap;
    }
    
    .product-link-button {
        margin-left: 0;
        margin-top: 12px;
        align-self: flex-start;
    }
    
    .cta-banner {
        padding: 20px 24px;
    }
    
    .cta-banner-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .cta-banner-text {
        font-size: 11px;
    }
    
    .product-media {
        padding: 0 24px;
    }
    
    .product-features {
        padding: 40px 24px;
    }

    .product-features-heading {
        padding: 16px 0 20px 0;
        flex-direction: column;
        gap: 24px;
    }
    
    .product-features-left {
        max-width: 100%;
    }
    
    .product-features-eyebrow {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .product-features-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-left: -2px;
    }
    
    .product-features-right {
        display: none;
    }
    
    .event-types {
        align-items: flex-start;
    }
    
    .event-types-list {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 24px;
    }
    
    .event-group {
        align-items: flex-start;
    }
    
    .event-divider {
        display: none;
    }
    
    .product-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-title {
        font-size: 20px;
        padding: 12px;
    }
    
    .feature-subtitle {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .feature-icon {
        width: 50px;
    }
    
    .icon-circle {
        width: 28px;
        height: 28px;
    }
    
    .feature-bottom {
        padding: 10px 12px;
    }
    
    .feature-meta {
        font-size: 10px;
    }
    
    .feature-id {
        font-size: 14px;
    }
}

/* ============================================
   CAPTURE MATRIX (Argus 30-day visualization)
   ============================================ */

.capture-matrix-section {
    padding: 40px 40px 80px 40px;
    margin-top: 0;
}

.capture-matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--primary-glow-soft);
    gap: 40px;
}

.capture-matrix-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.capture-stat-primary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.capture-stat-value {
    font-family: 'Public Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.capture-stat-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.capture-stat-secondary {
    display: flex;
    gap: 32px;
    padding-left: 16px;
    border-left: 1px solid var(--primary-dim);
}

.capture-stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.capture-stat-num {
    font-family: 'Public Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.capture-stat-unit {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

.capture-matrix-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--primary-glow-soft);
    border-radius: 2px;
}

.legend-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.legend-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--primary-glow-soft);
}

.legend-dot.density-0 { background: rgb(180, 180, 180); }
.legend-dot.density-1 { background: rgb(145, 145, 145); }
.legend-dot.density-2 { background: rgb(110, 110, 110); }
.legend-dot.density-3 { background: rgb(75, 75, 75); }
.legend-dot.density-4 { background: #a3e635; }

.legend-range {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

.capture-matrix-container {
    display: flex;
    gap: 12px;
    height: 520px;
}

.matrix-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
    text-align: right;
    min-width: 48px;
}

.capture-matrix-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    grid-template-rows: repeat(24, 1fr);
    gap: 3px;
    align-items: center;
    justify-items: center;
}

.matrix-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--primary-glow-soft);
    transition: transform 0.2s ease;
    opacity: 0;
}

.matrix-dot.visible {
    animation: dotFadeIn 0.4s ease-out forwards;
}

@keyframes dotFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.matrix-dot.flicker {
    animation: dotFlicker 0.3s ease-out;
}

@keyframes dotFlicker {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.8);
    }
    100% {
        filter: brightness(1);
    }
}

.matrix-dot:hover {
    transform: scale(1.4);
}

.matrix-x-axis {
    display: flex;
    justify-content: space-between;
    padding-left: 60px;
    padding-right: 0;
    margin-top: 16px;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

/* Matrix Insights */
.matrix-insights {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--primary-glow-soft);
}

.matrix-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.insights-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.insights-status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

.matrix-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--primary);
    background: var(--primary);
    transition: opacity 0.2s ease;
}

.insight-card:hover {
    opacity: 0.9;
}

.insight-icon {
    font-size: 24px;
    color: var(--bg-primary);
    line-height: 1;
    position: relative;
    top: -2px;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.insight-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1.2;
}

.insight-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    text-transform: uppercase;
}

/* Events Grid - 2 columns */
.matrix-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

/* Conclusions Section */
.matrix-conclusions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--primary-glow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matrix-conclusions-header {
    margin-bottom: 8px;
}

.conclusion-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--primary);
}

.conclusion-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 60px;
}

.conclusion-text {
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   COMMUNITY FEEDBACK SECTION
   ============================================ */

.community-impact {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--primary-glow-soft);
}

.community-impact-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

/* Impact Stats Row - matches insight-card style */
.impact-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.impact-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
    border: 2px solid var(--primary);
    background: var(--primary);
    transition: opacity 0.2s ease;
}

.impact-stat-card:hover {
    opacity: 0.9;
}

.impact-stat-number {
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
}

.impact-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    text-transform: uppercase;
}

/* Stat Card Flicker Animation */
.insight-card.card-flicker,
.impact-stat-card.card-flicker,
.product-link-button.card-flicker {
    animation: cardFlicker 0.15s steps(1);
}

@keyframes cardFlicker {
    0% { opacity: 1; }
    20% { opacity: 0.3; }
    40% { opacity: 1; }
    60% { opacity: 0.1; }
    80% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Community Quotes - reuses conclusion-item styles */
.community-quotes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-attribution {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-left: 8px;
}


/* Responsive */
@media (max-width: 768px) {
    .capture-matrix-section {
        padding: 40px 16px 60px 16px;
        overflow: hidden;
    }
    
    .capture-matrix-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .capture-matrix-legend {
        align-items: flex-start;
        padding: 10px 12px;
    }
    
    .capture-stat-primary {
        padding-left: 12px;
        border-left-width: 2px;
    }
    
    .capture-stat-secondary {
        padding-left: 12px;
    }
    
    .capture-stat-value {
        font-size: 36px;
    }
    
    .capture-matrix-container {
        height: 320px;
        overflow: hidden;
    }
    
    .capture-matrix-grid {
        gap: 1px;
        min-width: 0;
    }
    
    .matrix-dot {
        width: 8px;
        height: 8px;
    }
    
    .matrix-y-axis {
        font-size: 10px;
        min-width: 32px;
        flex-shrink: 0;
    }
    
    .matrix-x-axis {
        padding-left: 44px;
        font-size: 10px;
    }
    
    .capture-stat-label {
        font-size: 12px;
    }
    
    .capture-stat-num {
        font-size: 16px;
    }
    
    .capture-stat-unit {
        font-size: 10px;
    }
    
    .legend-label {
        font-size: 11px;
    }
    
    .legend-dot {
        width: 12px;
        height: 12px;
    }
    
    .legend-range {
        font-size: 10px;
    }
    
    .matrix-insights {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .matrix-insights-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .matrix-insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .insight-card {
        padding: 12px;
        gap: 10px;
    }
    
    .insight-icon {
        font-size: 20px;
    }
    
    .insight-value {
        font-size: 16px;
    }
    
    .insight-label {
        font-size: 9px;
    }
    
    .matrix-events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .matrix-conclusions {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .conclusion-item {
        flex-direction: column;
        gap: 6px;
        padding-left: 12px;
    }
    
    .conclusion-text {
        font-size: 14px;
    }
    
    /* Community Feedback Responsive */
    .community-impact {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .community-impact-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .impact-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .impact-stat-card {
        padding: 12px;
    }
    
    .impact-stat-number {
        font-size: 18px;
    }
    
}

/* ============================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   ============================================ */

/* Base state - hidden and ready to animate */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: opacity, transform;
}

/* Animated state */
.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Feature cards get a slight scale effect too */
.product-feature.scroll-animate {
    transform: translateY(24px);
}

.product-feature.scroll-animate.animate-in {
    transform: translateY(0);
}

/* Stats get a count-up feel with slight blur */
.capture-stat-primary.scroll-animate,
.capture-stat-item.scroll-animate {
    filter: blur(4px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
                filter 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.capture-stat-primary.scroll-animate.animate-in,
.capture-stat-item.scroll-animate.animate-in {
    filter: blur(0);
}

/* Event types slide in from right */
.product-features-right.scroll-animate {
    transform: translateX(20px);
}

.product-features-right.scroll-animate.animate-in {
    transform: translateX(0);
}

/* Eyebrow badge - simple fade */
.eyebrow-badge.scroll-animate {
    transform: translateY(8px);
}

.eyebrow-badge.scroll-animate.animate-in {
    transform: translateY(0);
}

/* Insight cards - staggered entrance with slight scale */
.insight-card.scroll-animate {
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.insight-card.scroll-animate.animate-in {
    transform: translateY(0) scale(1);
}

/* Impact stat cards - same treatment */
.impact-stat-card.scroll-animate {
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.impact-stat-card.scroll-animate.animate-in {
    transform: translateY(0) scale(1);
}

/* Conclusion items - slide in from left */
.conclusion-item.scroll-animate {
    transform: translateX(-12px);
    transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.2, 1),
                transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.conclusion-item.scroll-animate.animate-in {
    transform: translateX(0);
}

/* Section headers */
.matrix-insights-header.scroll-animate,
.matrix-conclusions-header.scroll-animate,
.community-impact-header.scroll-animate {
    transform: translateY(10px);
}

.matrix-insights-header.scroll-animate.animate-in,
.matrix-conclusions-header.scroll-animate.animate-in,
.community-impact-header.scroll-animate.animate-in {
    transform: translateY(0);
}

/* ============================================
   TEXT SELECTION
   ============================================ */

::selection {
    background: var(--cyan);
    color: var(--bg-primary);
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
    padding: 80px 40px;
    border-top: 2px solid var(--primary);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: stretch;
}

/* Brand / Wordmark */
.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-wordmark {
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.85;
    color: var(--primary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.footer-wordmark .tm-mark {
    font-size: 0.3em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

/* Content */
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.footer-logo-mark {
    width: 40px;
    height: 20px;
    margin-bottom: 20px;
    -webkit-mask: url('assets/greymont-logo-mark.svg') no-repeat left / contain;
    mask: url('assets/greymont-logo-mark.svg') no-repeat left / contain;
    background: var(--primary);
    opacity: 0.85;
}

#page-argus .footer-logo-mark,
#page-mess2pdf .footer-logo-mark {
    background: var(--bg-primary);
}

.site-footer .footer-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 1;
    color: var(--primary);
}

.footer-line {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-line span {
    white-space: nowrap;
}

.footer-line-accent {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--primary-glow-soft);
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.footer-arrow-right {
    margin-left: auto;
    font-size: 18px;
}

.footer-social-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    color: var(--primary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary);
}

/* Footer Bottom Row */
.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--primary-glow-soft);
    margin-top: auto;
}

/* Footer Meta */
.footer-meta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-location {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
}

/* Unicode Animation - Blinking Cursor */
.unicode-animations {
    display: flex;
    align-items: center;
}

.uni-anim {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--primary);
    animation: cursorBlink 1s steps(1) infinite;
}

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

/* SCS Logo */
.footer-scs-logo {
    display: flex;
    align-items: center;
}

.scs-logo-img {
    height: 48px;
    width: auto;
    /* Hide actual image, use as mask */
    opacity: 0;
}

/* Color overlay using CSS mask */
.footer-scs-logo {
    position: relative;
}

.footer-scs-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    -webkit-mask: url('assets/SCS-LOGO.svg') no-repeat center / contain;
    mask: url('assets/SCS-LOGO.svg') no-repeat center / contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-scs-logo:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }
    
    .footer-wordmark {
        font-size: clamp(36px, 8vw, 56px);
    }
    
    .footer-line {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 80px 24px;
    }
    
    .footer-grid {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .footer-wordmark {
        font-size: clamp(40px, 10vw, 60px);
    }
    
    .footer-line {
        font-size: 11px;
    }
    
    .footer-bottom {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-animated {
        order: 3;
    }
    
    .scs-logo-img {
        height: 36px;
    }
    
    .footer-scs-logo::after {
        height: 36px;
    }
}

/* M2P Footer with Reversed Colors (matches ARGUS) */
#page-mess2pdf .site-footer {
    background-color: var(--primary);
    border-top: none;
}

#page-mess2pdf .footer-wordmark {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-text {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-line {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-line span {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-line-accent {
    border-top-color: rgba(181, 186, 183, 0.3);
}

#page-mess2pdf .footer-arrow-right {
    color: var(--bg-primary);
}

#page-mess2pdf .social-link {
    color: var(--bg-primary);
}

#page-mess2pdf .social-link svg {
    fill: var(--bg-primary);
}

#page-mess2pdf .social-link:hover {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-location {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-copyright {
    color: var(--bg-primary);
}

#page-mess2pdf .uni-anim {
    color: var(--bg-primary);
}

#page-mess2pdf .footer-bottom {
    border-top-color: rgba(181, 186, 183, 0.3);
}


/* ARGUS Footer with Reversed Colors */
#page-argus .site-footer {
    background-color: var(--primary);
    border-top: none;
}

#page-argus .footer-wordmark {
    color: var(--bg-primary);
}

#page-argus .footer-text {
    color: var(--bg-primary);
}

#page-argus .footer-line {
    color: var(--bg-primary);
}

#page-argus .footer-line span {
    color: var(--bg-primary);
}

#page-argus .footer-line-accent {
    border-top-color: rgba(181, 186, 183, 0.3);
}

#page-argus .footer-arrow-right {
    color: var(--bg-primary);
}

#page-argus .social-link {
    color: var(--bg-primary);
}

#page-argus .social-link svg {
    fill: var(--bg-primary);
}

#page-argus .social-link:hover {
    color: var(--bg-primary);
}

#page-argus .footer-location {
    color: var(--bg-primary);
}

#page-argus .footer-copyright {
    color: var(--bg-primary);
}

#page-argus .uni-anim {
    color: var(--bg-primary);
}

#page-argus .footer-bottom {
    border-top-color: rgba(181, 186, 183, 0.3);
}

/* ============================================
   ABOUT PAGE - CHAT INTERFACE
   ============================================ */

.about-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Chat Section - Left Side */
.chat-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-status-bars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.chat-status-bar {
    width: 4px;
    height: 12px;
    background: #a3e635;
    opacity: 0.3;
    animation: barPulse 1.5s ease-in-out infinite;
}

.chat-status-bar:nth-child(1) { animation-delay: 0s; }
.chat-status-bar:nth-child(2) { animation-delay: 0.15s; }
.chat-status-bar:nth-child(3) { animation-delay: 0.3s; }
.chat-status-bar:nth-child(4) { animation-delay: 0.45s; }
.chat-status-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes barPulse {
    0%, 100% {
        opacity: 0.3;
    }
    20% {
        opacity: 1;
    }
    40% {
        opacity: 0.3;
    }
}

.chat-status-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
}

.chat-header-right {
    display: flex;
    align-items: center;
}

.chat-header-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary-dim);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

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

.chat-message--user {
    align-self: flex-end;
}

.chat-message--user .chat-message-header {
    justify-content: flex-end;
}

.chat-message--user .chat-message-text {
    text-align: right;
}

.chat-message--assistant,
.chat-message--system {
    align-self: flex-start;
}

.chat-message-content {
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-message--user .chat-message-content {
    background: transparent;
}

.chat-message--user .chat-message-text {
    color: var(--primary);
}

.chat-message--system .chat-message-content {
    background: transparent;
}

.chat-message-prefix {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
}

.chat-message--user .chat-message-prefix {
    color: var(--primary);
}

.chat-message-text {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary);
}

.chat-message-time {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing-dot:nth-child(1) { animation-delay: 0s; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    padding: 16px 24px 20px;
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--primary);
    background: transparent;
    transition: border-color 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
}

.chat-input-prefix {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: var(--primary);
}

.chat-input::placeholder {
    color: var(--primary-dim);
    opacity: 0.6;
}

.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    opacity: 0.9;
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-icon {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-primary);
}

.chat-input-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary-dim);
    opacity: 0.6;
}

.chat-powered-by {
    opacity: 0.5;
}

/* Profile Sidebar - Right Side */
.about-sidebar {
    flex: 0.8;
    min-width: 300px;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
}

/* Profile Banner Image */
.profile-banner {
    width: 100%;
    height: 435px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.profile-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transform: scale(1.3);
    transform-origin: center center;
}

/* Banner Particle Effect */
.banner-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.banner-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    opacity: 0;
    animation: particle-float 4s ease-out forwards;
    /* Hard square pixels - no border-radius, no glow */
}

.banner-particle.particle-small {
    width: 2px;
    height: 2px;
}

.banner-particle.particle-large {
    width: 6px;
    height: 6px;
}

/* Unicode character particles */
.banner-particle.particle-char {
    width: auto;
    height: auto;
    background: transparent;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #ffffff;
    line-height: 1;
}

.banner-particle.particle-char.particle-small {
    font-size: 8px;
}

.banner-particle.particle-char.particle-large {
    font-size: 14px;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x, 80px), calc(-1 * var(--drift-y, 120px)));
    }
}

/* Banner Glyph Flash Effect */
.banner-glyphs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.banner-glyph {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: #ffffff;
    opacity: 0;
    animation: glyph-flash 1s ease-out forwards;
    user-select: none;
    font-weight: bold;
}

.banner-glyph.glyph-large {
    font-size: 24px;
}

.banner-glyph.glyph-small {
    font-size: 11px;
}

@keyframes glyph-flash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 1;
        transform: scale(1.1);
    }
    40% {
        opacity: 0.9;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Large center glyph effect */
.banner-center-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 80px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    font-weight: bold;
    z-index: 10;
    animation: center-glyph-flash 1.5s ease-out forwards;
}

@keyframes center-glyph-flash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    30% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ============================================
   ABOUT SIDEBAR FLICKER ANIMATION
   ============================================ */

/* Flicker animation class */
.about-flicker {
    animation: sidebar-flicker 0.4s steps(1) forwards;
}

@keyframes sidebar-flicker {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    50% { opacity: 0.7; }
    60% { opacity: 0; }
    70% { opacity: 1; }
    80% { opacity: 0.5; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}

/* Staggered flicker delays for different sections */
.about-flicker-1 { animation-delay: 0s; }
.about-flicker-2 { animation-delay: 0.05s; }
.about-flicker-3 { animation-delay: 0.1s; }
.about-flicker-4 { animation-delay: 0.15s; }
.about-flicker-5 { animation-delay: 0.2s; }
.about-flicker-6 { animation-delay: 0.25s; }

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 32px;
}

/* Profile Image */
.profile-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
}

.profile-image-initials {
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--bg-primary);
    letter-spacing: 2px;
}

.profile-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.profile-status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: #a3e635;
    color: #000;
}

/* Profile Info */
.profile-info {
    text-align: left;
}

.profile-name {
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.profile-name span {
    display: block;
}

.profile-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 12px 0 4px;
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 0;
}

.profile-role sup {
    font-size: 0.6em;
}

.profile-tagline {
    opacity: 0.6;
    font-weight: 400;
}

/* Profile Sections */
.profile-about,
.profile-vision {
    padding-top: 20px;
}

.experience-section {
    padding: 20px 32px 0;
}

.experience-title {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--primary);
    margin-bottom: 16px;
}

.experience-blurb {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--primary-dim);
    margin: 6px 0 0;
}

.skills-section {
    padding: 20px 32px 32px;
}

.profile-section-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vision Eye Animation */
.vision-eye {
    vertical-align: middle;
}

.vision-eye .eye-pupil {
    animation: lookAround 4s ease-in-out infinite;
    transform-origin: 12px 7px;
}

@keyframes lookAround {
    0%, 100% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(4px);
    }
    30% {
        transform: translateX(4px) translateY(-2px);
    }
    45% {
        transform: translateX(-4px) translateY(-1px);
    }
    60% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(0) translateY(2px);
    }
    90% {
        transform: translateX(2px) translateY(1px);
    }
}

.profile-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--primary);
    margin: 0;
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-bottom: 16px;
}

.experience-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--primary-dim);
    opacity: 0.4;
}

.experience-item:last-child::after {
    display: none;
}

.experience-role {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.experience-company {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.experience-period {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--primary-dim);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    background: var(--primary);
    color: var(--bg-primary);
}

/* Accent Bar - Right Side */
.about-accent-bar {
    width: 80px;
    min-width: 80px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
}

.accent-bar-top {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.accent-wordmark {
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #000000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.accent-wordmark sup {
    font-size: 0.5em;
    font-weight: 600;
}

.accent-bar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
}

.accent-location {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.accent-year {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: #000000;
    opacity: 0.6;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.accent-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accent-scs-logo {
    width: 32px;
    height: 32px;
    opacity: 0;
}

.accent-logo {
    position: relative;
}

.accent-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #000000;
    -webkit-mask: url('assets/SCS-LOGO.svg') no-repeat center / contain;
    mask: url('assets/SCS-LOGO.svg') no-repeat center / contain;
    opacity: 0.7;
}

/* Responsive - About Page */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column-reverse;
    }
    
    .chat-section {
        max-width: 100%;
    }
    
    .about-accent-bar {
        display: none;
    }
    
    .about-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 40vh;
        flex-shrink: 0;
    }
    
    .profile-image-container {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .profile-image-placeholder,
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .profile-image-initials {
        font-size: 24px;
    }
    
    .profile-status-badge {
        position: absolute;
        bottom: 0;
        left: 60px;
    }
    
    .profile-info {
        text-align: left;
    }
    
    .profile-name {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .about-sidebar {
        padding: 16px;
        max-height: 35vh;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 12px 16px 16px;
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .profile-about,
    .profile-vision {
        display: none;
    }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

/* Mobile header - hidden on desktop */
.mobile-header {
    display: none;
}

/* Mobile overlay backdrop - hidden by default */
.mobile-overlay {
    display: none;
}

/* Mobile date badge - hidden on desktop */
.mobile-date-badge {
    display: none;
}

@media (max-width: 768px) {
    /* ---- Mobile Header Bar ---- */
    .mobile-header {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 52px;
        padding: 0 16px;
        background: var(--bg-primary);
        z-index: 200;
        border-bottom: none;
    }

    /* Hamburger button */
    .mobile-hamburger {
        background: none;
        border: none;
        padding: 8px 7px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: border-color 0.2s ease;
    }

    .mobile-hamburger:hover,
    .mobile-hamburger:active {
        border-color: var(--primary-bright);
    }

    .hamburger-line {
        display: block;
        width: 16px;
        height: 1.5px;
        background: var(--primary);
        transition: transform 0.25s ease, opacity 0.2s ease;
        transform-origin: center;
    }

    /* Hamburger -> X animation when open */
    .mobile-hamburger.is-open .hamburger-line:nth-child(1) {
        transform: translateY(5.5px) rotate(45deg);
    }

    .mobile-hamburger.is-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-hamburger.is-open .hamburger-line:nth-child(3) {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    /* Mobile logo */
    .mobile-logo {
        display: block;
        height: 18px;
        width: 140px;
        margin-left: 14px;
        position: relative;
    }

    .mobile-logo-svg {
        height: 18px;
        width: auto;
        opacity: 0;
        position: absolute;
    }

    .mobile-logo::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary);
        -webkit-mask: url('assets/Asset 10vector.svg') no-repeat left center / contain;
        mask: url('assets/Asset 10vector.svg') no-repeat left center / contain;
        opacity: 0.9;
    }

    /* Mobile accent graphic (right side) */
    .mobile-accent {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        color: var(--primary-dim);
        opacity: 0.6;
    }

    .mobile-accent-dot {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: var(--primary-dim);
    }

    .mobile-accent-dot:nth-child(1) {
        animation: mobileAccentPulse 2s ease-in-out infinite;
    }

    .mobile-accent-dot:nth-child(2) {
        animation: mobileAccentPulse 2s ease-in-out 0.3s infinite;
    }

    .mobile-accent-dot:nth-child(3) {
        animation: mobileAccentPulse 2s ease-in-out 0.6s infinite;
    }

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

    /* Mobile oscillating squares */
    .mobile-osc-squares {
        display: flex;
        gap: 3px;
    }

    .mobile-osc-sq {
        width: 8px;
        height: 8px;
        border: 1px solid var(--primary-dim);
        background: transparent;
    }

    .mobile-osc-sq-1 {
        animation: oscFade1 1.6s ease-in-out infinite;
    }

    .mobile-osc-sq-2 {
        animation: oscFade2 1.6s ease-in-out infinite;
    }

    /* ---- Sidebar as Full-Screen Takeover ---- */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 250;
        overflow-y: auto;
        padding-top: 80px;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    /* Mobile overlay - not needed for full-screen */
    .mobile-overlay {
        display: none;
    }

    /* Header stays on top of sidebar */
    .mobile-header {
        z-index: 300;
    }

    /* ---- Adjust Main Layout ---- */
    .app-layout {
        flex-direction: column;
    }

    .content-area {
        height: calc(100vh - 52px);
        margin-top: 52px;
        width: 100%;
        max-width: 100vw;
    }

    /* ---- Hide decorative clutter on mobile ---- */
    .ambient-glyphs {
        display: none;
    }

    /* ---- Adjust Global Header on mobile ---- */
    .global-header {
        padding: 8px 16px;
    }

    .header {
        padding: 8px 16px;
        justify-content: space-between;
    }

    /* Progress bar: visible, left-aligned */
    .header-title {
        font-size: 10px;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    /* Hide timestamp and SYS status */
    .header-status {
        display: none;
    }

    /* Remove the right border/separator from CRT toggle */
    .scanline-toggle {
        padding-right: 0;
        border-right: none;
    }

    /* Push CRT toggle to the right */
    .header-data {
        margin-left: auto;
        gap: 0;
    }

    /* ---- Hero-mini alignment fix ---- */
    .hero-mini {
        left: 16px;
        top: 12px;
        font-size: 11px;
    }

    /* ---- Constrain main-content to viewport so absolutely positioned children stay in bounds ---- */
    .main-content {
        max-width: 100vw;
        overflow: hidden;
    }

    /* ---- Hide original date badge on mobile ---- */
    .date-badge {
        display: none;
    }

    /* ---- Mobile date badge: lives in content-area which respects viewport width ---- */
    .mobile-date-badge {
        display: block;
        position: absolute;
        top: 60px;
        right: 0px;
        background: #a3e635;
        padding: 12px 16px;
        z-index: 40;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-date-badge.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-date-badge-text {
        display: block;
        font-family: var(--font-mono);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2px;
        color: var(--bg-primary);
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
    }

    .date-badge-text {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* ---- Hide desktop sidebar logo on mobile ---- */
    .sidebar-header {
        display: none;
    }

    /* Slightly larger nav items for touch targets */
    .nav-link {
        height: 48px;
        padding: 14px 24px;
        font-size: 14px;
    }

    .nav-link.active {
        padding-left: 32px;
    }

    /* Sidebar footer color pickers on mobile */
    .sidebar-footer {
        padding: 20px 24px;
        border-top: 1px solid var(--primary-glow-soft);
    }

    /* ---- Home page mobile adjustments ---- */
    .hero-headline.hero-primary .hero-line {
        font-size: clamp(28px, 10vw, 48px);
    }

    /* Hide desktop 2-line version, show per-word mobile lines */
    .hero-secondary-inner .hero-line:not(.mobile-line) {
        display: none;
    }

    .hero-secondary-inner .hero-line.mobile-line {
        display: block;
    }

    .hero-secondary-inner .hero-line {
        font-size: clamp(42px, 14vw, 64px);
        line-height: 0.95;
    }

    /* Anchor secondary headline toward the bottom, left-aligned */
    .hero-secondary-wrapper {
        justify-content: flex-end;
        align-items: flex-start;
        padding-bottom: 4vh;
        padding-left: 16px;
    }

    /* Hide the eyebrow on mobile — it overlaps with hero-mini */
    .hero-eyebrow {
        display: none;
    }

    .hero-eyebrow {
        font-size: 10px;
    }

    .hero-subline {
        font-size: 10px;
        max-width: 200px;
    }

    /* ---- Floating data readouts ---- */
    .floating-data {
        display: none;
    }

    /* Footer in main container */
    .footer {
        padding: 12px 16px;
    }
}

/* Extra small mobile (< 480px) */
@media (max-width: 480px) {
    .mobile-header {
        height: 48px;
        padding: 0 12px;
    }

    .sidebar {
        padding-top: 72px;
    }

    .content-area {
        height: calc(100vh - 48px);
        margin-top: 48px;
    }

    .mobile-logo {
        height: 16px;
        width: 120px;
        margin-left: 12px;
    }

    .hero-headline.hero-primary .hero-line {
        font-size: clamp(24px, 9vw, 40px);
    }
}

