:root {
    /* Color Palette - Brushed Titanium & Copper */
    /* REMOVED BLUE TINT - Now Neutral Metallic Greys */
    --bg-dark: #2b2b2b; /* Gunmetal Grey */
    --bg-panel: #333333; /* Lighter Metallic Grey */
    --surface-raised: #3a3a3a;
    --surface-inset: #1f1f1f;
    
    --accent-orange: #e07a3c; /* Copper/Clay orange */
    --accent-orange-dark: #c25e22;
    --accent-orange-light: #f59e66;
    
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    /* Shadows - Sharper for Metallic feel */
    --shadow-raised: 
        8px 8px 16px rgba(0, 0, 0, 0.45), 
        -4px -4px 12px rgba(255, 255, 255, 0.08);
        
    --shadow-pressed: 
        inset 6px 6px 10px rgba(0, 0, 0, 0.6), 
        inset -4px -4px 8px rgba(255, 255, 255, 0.08);
        
    --shadow-orange:
        4px 4px 10px rgba(194, 94, 34, 0.3),
        -2px -2px 5px rgba(255, 255, 255, 0.1);

    --page-max-width: 1440px;
    --page-shell-gutter: 96px;

    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    /* Brushed Metal Texture Effect */
    background-image: 
        repeating-linear-gradient(
            105deg, 
            rgba(255,255,255,0.03) 0px, 
            rgba(255,255,255,0.03) 1px, 
            transparent 1px, 
            transparent 3px
        ),
        linear-gradient(to bottom, #363636, #222222);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(224, 122, 60, 0.32);
    color: #f7f2ee;
}

::-moz-selection {
    background: rgba(224, 122, 60, 0.32);
    color: #f7f2ee;
}

body.page-home.terminal-focus-lock,
body.page-home.terminal-focus-lock * {
    user-select: none;
    -webkit-user-select: none;
}

/* Subtle texture overlay - Moved behind UI */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1; /* Was 9999 */
}

/* Header */
.main-header {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-shell {
    width: min(calc(100% - var(--page-shell-gutter)), var(--page-max-width));
    margin: 0 auto;
    position: relative;
}

.page-shell--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo-symbol svg {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.programmatic-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-raised);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--accent-orange);
}

.nav-family {
    position: relative;
}

.nav-family::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -1rem;
    width: calc(100% + 2rem);
    height: 1.1rem;
}

.nav-item {
    appearance: none;
    border: none;
    background: transparent;
    font-family: var(--font-code);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-item::before {
    content: attr(data-index);
    font-size: 0.7em;
    opacity: 0.5;
    margin-right: 0.5rem;
    color: var(--accent-orange);
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-family-trigger[aria-expanded="true"] {
    color: var(--text-main);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    left: -1rem;
    min-width: 240px;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 100;
}

.nav-dropdown::before {
    content: none;
}

.nav-family:hover .nav-dropdown,
.nav-family.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a,
.nav-dropdown-disabled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.nav-dropdown a:active {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.98);
}

.nav-external-link {
    justify-content: flex-start;
}

.nav-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-external-icon {
    color: var(--accent-orange);
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.85;
    flex-shrink: 0;
}

.nav-dropdown-disabled {
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.45);
    color: #7c6f66;
    opacity: 0.6;
    cursor: not-allowed;
}

.nav-dropdown-disabled small {
    color: var(--accent-orange);
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.action-btn {
    background: linear-gradient(145deg, var(--accent-orange), var(--accent-orange-dark));
    border: none;
    padding: 0.8rem 1.5rem;
    color: white;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-orange);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:active {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    position: relative;
}

.page-shell--hero {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-orange);
}

.indicator-light {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-title .highlight {
    color: var(--accent-orange);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 450px;
}

/* Control Panel (The "Wow" interactive element) */
.control-panel {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-raised);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 320px;
    border: 1px solid rgba(255,255,255,0.02);
}

.control-group label {
    display: block;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.damus-access-panel {
    gap: 1rem;
}

.damus-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.damus-access-title {
    display: block;
    font-family: var(--font-code);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-orange);
}

.damus-access-header .metallic-switch {
    pointer-events: auto;
    flex-shrink: 0;
}

.damus-access-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.damus-access-label {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.damus-prompt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.damus-prompt-btn {
    min-height: 44px;
    width: 100%;
    padding: 0.8rem 0.6rem;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.damus-prompt-btn:hover {
    color: var(--accent-orange-light);
}

.damus-prompt-btn:active {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.98);
}

.damus-access-panel.is-inactive .damus-prompt-btn {
    color: #7c6f66;
    opacity: 0.58;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.45);
    cursor: not-allowed;
}

.damus-access-panel.is-inactive .damus-prompt-btn:hover {
    color: #7c6f66;
}

/* Custom Slider */
.slider-container {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.metallic-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    position: absolute;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: var(--surface-inset);
    border-radius: 10px;
    box-shadow: var(--shadow-pressed);
    position: relative;
    overflow: hidden;
}

.slider-track::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 85%; /* Matches value */
    background: var(--accent-orange);
    opacity: 0.5;
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #444444, #2a2a2a);
    border-radius: 50%;
    position: absolute;
    left: 85%;
    transform: translateX(-50%);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
}

/* Custom Switch */
.switch-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-group label {
    margin-bottom: 0;
}

.metallic-switch {
    width: 50px;
    height: 26px;
    background: var(--surface-inset);
    border-radius: 20px;
    box-shadow: var(--shadow-pressed);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.metallic-switch.active {
    background: rgba(224, 122, 60, 0.1);
}

.switch-knob {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #e07a3c, #c25e22);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 27px; /* Active position */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.execute-btn {
    width: 100%;
    background: var(--bg-panel);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-weight: bold;
    box-shadow: var(--shadow-raised);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.execute-btn:active {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.98);
}

/* Hero Visual - Abstract Crystal */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.crystal-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth mouse follow */
}

/* --- Holographic Laptop Animation --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Align to right */
    perspective: 2000px;
    overflow: visible; /* Allow bleed */
}

.laptop-wrapper {
    /* Huge size for desktop - Scaled down slightly */
    width: 1200px; /* Increased Width */
    height: 550px;
    position: relative;
    transform-style: preserve-3d;
    /* Angle: Tilted, shifted LEFT MORE, MOVED DOWN MORE, and SCALED DOWN (0.6) */
    /* Added CSS Variables for Mouse Interaction */
    transform: 
        rotateX(calc(55deg + var(--mouse-y, 0deg))) 
        rotateZ(calc(25deg + var(--mouse-x, 0deg))) 
        translateX(50px) 
        translateY(500px) 
        scale(0.6);
    transition: transform 0.1s ease-out; /* Faster transition for mouse responsiveness */
    margin-right: -150px; /* Bleed off screen */
}

.phone-wrapper {
    display: none;
    position: relative;
    width: min(340px, 100%);
    justify-content: center;
}

.phone-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 360 / 720;
    padding: 12px;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.96), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(224, 122, 60, 0.12);
    overflow: visible;
}

.phone-shell::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 39px;
    border: 1px solid rgba(224, 122, 60, 0.08);
    pointer-events: none;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(224, 122, 60, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-top-bar {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 8;
}

.phone-speaker {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.phone-sensor {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(224, 122, 60, 0.55);
    box-shadow: 0 0 10px rgba(224, 122, 60, 0.38);
}

.phone-home-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 8;
}

.phone-side-button {
    position: absolute;
    right: -3px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(224, 122, 60, 0.25));
    box-shadow: 0 0 8px rgba(224, 122, 60, 0.12);
}

.phone-side-button--top {
    top: 110px;
    height: 58px;
}

.phone-side-button--bottom {
    top: 184px;
    height: 82px;
}

.laptop-wrapper:hover {
    /* Hover effect is now handled by mouse interaction script mostly, but we can keep a slight lift */
    /* transform: ... removed conflicting hover transform */
}

.laptop-construct {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Common Face Style - Modern Glass */
.base-face, .lid-face {
    position: absolute;
    /* Much more transparent "Clear Tech" look */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(224, 122, 60, 0.3); /* Thin orange lines */
    box-shadow: 0 0 15px rgba(224, 122, 60, 0.05);
    border-radius: 24px; /* Modern rounded corners */
    will-change: transform;
}

/* --- Laptop Base --- */
.laptop-base {
    position: absolute;
    width: 1200px;
    height: 550px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

/* Thinner chassis for modern look (10px thickness) */
.base-face.top {
    width: 1200px;
    height: 550px;
    transform: translateZ(10px);
    background: rgba(30, 30, 30, 0.4); /* Slightly visible top for contrast */
    display: flex;
    justify-content: center;
    align-items: center;
}

.base-face.bottom { width: 1200px; height: 550px; transform: rotateX(180deg) translateZ(0px); }
.base-face.front  { width: 1200px; height: 10px; transform: rotateX(-90deg) translateZ(275px); border-radius: 5px; } 

/* 5. Vents & Cooling (Back Face) - Removed completely per user request */
.base-face.back { 
    width: 1200px; 
    height: 10px; 
    transform: rotateX(90deg) translateZ(275px); 
    border-radius: 5px;
    border: none;
    /* Invisible */
    background: transparent; 
    opacity: 0;
}

/* 2. I/O Ports (Side Faces) - Borders removed to fix artifacts */
.base-face.left { 
    width: 10px; height: 530px; 
    transform: rotateY(-90deg) translateZ(0px) translateX(-50%); 
    left: 0; 
    border-radius: 5px; 
    top: 10px; /* Centered vertically to avoid corners */
    /* Ports: 2 USB-C */
    background: 
        radial-gradient(circle at 50% 20%, rgba(224, 122, 60, 0.8) 2px, transparent 3px),
        radial-gradient(circle at 50% 30%, rgba(224, 122, 60, 0.8) 2px, transparent 3px);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    border: none;
}

.base-face.right { 
    width: 10px; height: 530px; 
    transform: rotateY(90deg) translateZ(0px) translateX(50%); 
    right: 0; 
    border-radius: 5px; 
    top: 10px;
    /* Ports: 1 USB-A / HDMI */
    background: linear-gradient(to bottom, transparent 20%, rgba(224, 122, 60, 0.8) 20%, rgba(224, 122, 60, 0.8) 25%, transparent 25%);
    border: none;
}

/* 1. Mechanical Hinge */
.hinge {
    position: absolute;
    top: -10px; /* Centered on the back edge */
    left: 0;
    width: 1200px; /* Full width */
    height: 20px; /* Diameter */
    background: linear-gradient(to bottom, #2a2a2a, #111, #2a2a2a); /* Metallic cylinder look */
    border-radius: 10px; /* Cylinder */
    border: 1px solid rgba(224, 122, 60, 0.2);
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transform: translateZ(10px); /* Align with chassis center */
}

/* 4. Keyboard Depth (Refined - Precise Layout) */
.holo-keyboard {
    position: absolute;
    left: 50%;
    top: 38%; /* Moved up to make room for trackpad */
    transform: translate(-50%, -50%) translateZ(11px);
    width: 85%;
    height: 55%; /* Reduced height for realistic proportions */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Tighter gap */
}

.k-row {
    display: flex;
    justify-content: space-between;
    gap: 4px; /* Tighter gap */
    width: 100%;
    height: 14%; 
}

/* Key sizing classes */
.key { flex: 1; border-radius: 3px; }
.u-1 { flex: 1; }
.u-1-25 { flex: 1.25; }
.u-1-5 { flex: 1.5; }
.u-1-75 { flex: 1.75; }
.u-2-25 { flex: 2.25; }
.u-2-75 { flex: 2.75; }
.u-5 { flex: 5; }

/* Half-height arrow stack */
.arrow-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.key.half {
    height: 50%;
    flex: 1;
}

/* Key Visuals */
.key {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 0 5px rgba(0,0,0,0.5), 
        0 1px 0 rgba(0,0,0,0.8);
    transition: background 0.2s;
}

.key:hover, .key.pressed {
    background: rgba(224, 122, 60, 0.4); /* Brighter orange for press */
    box-shadow: 0 0 15px var(--accent-orange), inset 0 0 5px rgba(255,255,255,0.2);
    transform: translateZ(-2px); /* Physical press down effect */
    border-color: var(--accent-orange);
}

/* User Message Style */
.msg.user {
    color: #ddd; /* Muted white, no glow */
    align-self: flex-start; 
    padding-left: 0;
    background: none;
    font-weight: normal; /* Programming look */
    text-shadow: none; /* Removed glow */
    margin-top: 0; /* Reset to rely on gap */
    animation: fade-in 0.2s forwards;
    line-height: 1.5;
}

.msg.user::before {
    content: '> ';
    color: #ccc; /* Muted white prompt */
    margin-right: 10px;
}

.touchpad {
    position: absolute;
    bottom: 20px; /* Small gap from bottom edge */
    left: 50%;
    transform: translateX(-50%) translateZ(11px);
    width: 40%;
    height: 30%; /* Large trackpad */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* 3. Webcam & Sensors */
.camera-array {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.lens {
    width: 8px;
    height: 8px;
    background: #000;
    border: 1px solid #333;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.5); /* Lens reflection */
}

.sensor {
    width: 4px;
    height: 4px;
    background: #111;
    border-radius: 50%;
    opacity: 0.7;
}

/* --- Laptop Lid --- */
.laptop-lid {
    position: absolute;
    width: 1200px;
    height: 550px;
    top: 0;
    transform-style: preserve-3d;
    transform-origin: top; 
    /* Animation: Subtle Drift from Open Position */
    /* Pivot at Z=10px to align with base surface/hinge */
    transform: translateZ(10px); 
    animation: drift-open 3s ease-out forwards;
}

@keyframes drift-open {
    0% { transform: translateZ(10px) rotateX(85deg); } 
    100% { transform: translateZ(10px) rotateX(110deg); } 
}

.laptop-wrapper.damus-is-active .laptop-lid {
    animation: damus-open-lid 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.laptop-wrapper.damus-is-inactive .laptop-lid {
    animation: damus-close-lid 1.25s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes damus-open-lid {
    0% { transform: translateZ(10px) rotateX(84deg); }
    100% { transform: translateZ(10px) rotateX(110deg); }
}

@keyframes damus-close-lid {
    0%, 35% { transform: translateZ(10px) rotateX(110deg); }
    100% { transform: translateZ(10px) rotateX(84deg); }
}

/* Lid Faces - Ultra Thin (4px) - Corrected Z-offsets to match thickness */
.lid-face.front {
    /* Screen */
    width: 1200px;
    height: 550px;
    /* Reduced Z to 2px so total thickness matches the 4px side walls (2+2=4) */
    transform: rotateX(180deg) translateZ(2px);
    /* Modern bezel-less glass screen */
    background: rgba(0, 0, 0, 0.8); 
    border: 1px solid rgba(224, 122, 60, 0.5);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Inner shadow for bezel feel */
    box-shadow: inset 0 0 0 2px rgba(30, 30, 30, 0.8);
}

.lid-face.back {
    /* Outer Shell */
    width: 1200px;
    height: 550px;
    transform: translateZ(2px); /* Matches 2px front offset */
    background: rgba(40, 40, 40, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide borders and shadows on thickness faces to prevent artifacts */
.lid-face.top, .lid-face.left, .lid-face.right,
.base-face.left, .base-face.right, .base-face.front, .base-face.back {
    border: none;
    box-shadow: none; /* Remove glow/shadow from thickness edges */
}

/* Hide the front face completely */
.base-face.front {
    width: 1200px; 
    height: 10px; 
    transform: rotateX(-90deg) translateZ(275px); 
    border-radius: 5px;
    background: transparent;
    opacity: 0;
}
.lid-face.left { width: 4px; height: 530px; transform: rotateY(-90deg) translateZ(0); left: 0; border-radius: 2px; top: 10px; } /* Shortened height and added top offset */
.lid-face.right { width: 4px; height: 530px; transform: rotateY(90deg) translateZ(0); right: 0; border-radius: 2px; top: 10px; } /* Shortened */

/* ... Base faces ... */
.base-face.left   { width: 10px; height: 530px; transform: rotateY(-90deg) translateZ(0px) translateX(-50%); left: 0; border-radius: 5px; top: 10px; }
.base-face.right  { width: 10px; height: 530px; transform: rotateY(90deg) translateZ(0px) translateX(50%); right: 0; border-radius: 5px; top: 10px; }

/* Screen Content (Chat UI) - Scaled Up */
.screen-content {
    width: 100%;
    height: 100%;
    padding: 40px;
    font-family: var(--font-code);
    color: var(--accent-orange);
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #151515 0%, #000 100%);
    position: relative;
    /* Scrollable */
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar */
    scrollbar-width: none;
}
.screen-content::-webkit-scrollbar { display: none; }

.phone-wrapper .screen-content {
    --phone-screen-x: 18px;
    --phone-screen-top: 48px;
    border-radius: 30px;
    padding: var(--phone-screen-top) var(--phone-screen-x) 26px;
}

.phone-wrapper .chat-header {
    position: sticky;
    top: calc(var(--phone-screen-top) * -1);
    z-index: 6;
    margin: calc(var(--phone-screen-top) * -1) calc(var(--phone-screen-x) * -1) 18px;
    padding: var(--phone-screen-top) var(--phone-screen-x) 14px;
    margin-bottom: 18px;
    gap: 10px;
    background: #000;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.85);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.phone-wrapper .chat-header .dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 10px var(--accent-orange);
}

.phone-wrapper .chat-body {
    gap: 6px;
    font-size: 0.82rem;
}

.phone-wrapper .msg {
    font-size: 0.82rem;
}

.phone-wrapper .msg.system {
    font-size: 0.72rem;
}

.phone-wrapper .msg.input-line {
    padding: 0;
    gap: 8px;
}

.phone-wrapper .cursor {
    width: 8px;
}

.damus-mobile-input {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0.01;
    pointer-events: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    user-select: text;
    -webkit-user-select: text;
}

body.page-home.terminal-focus-lock .damus-mobile-input {
    user-select: text;
    -webkit-user-select: text;
}

.screen-content ::selection {
    background: rgba(224, 122, 60, 0.4);
    color: #fff4ec;
}

.screen-content ::-moz-selection {
    background: rgba(224, 122, 60, 0.4);
    color: #fff4ec;
}

.laptop-wrapper.damus-is-active .screen-content,
.phone-wrapper.damus-is-active .screen-content {
    animation: damus-screen-boot 1.25s steps(1, end) forwards;
}

.laptop-wrapper.damus-is-inactive .screen-content,
.phone-wrapper.damus-is-inactive .screen-content {
    animation: damus-screen-shutdown 0.85s steps(1, end) forwards;
}

.laptop-wrapper.damus-is-active .chat-header,
.laptop-wrapper.damus-is-active .chat-body,
.phone-wrapper.damus-is-active .chat-header,
.phone-wrapper.damus-is-active .chat-body {
    animation: damus-content-boot 1.05s ease-out forwards;
}

.laptop-wrapper.damus-is-inactive .chat-header,
.laptop-wrapper.damus-is-inactive .chat-body,
.phone-wrapper.damus-is-inactive .chat-header,
.phone-wrapper.damus-is-inactive .chat-body {
    animation: damus-content-shutdown 0.62s ease-in forwards;
}

@keyframes damus-screen-boot {
    0% {
        opacity: 0;
        filter: brightness(0.15) contrast(1.3);
        background: #000;
    }
    12% {
        opacity: 1;
        filter: brightness(0.35) contrast(1.8);
        background: linear-gradient(180deg, #000 0%, #110a06 50%, #000 100%);
    }
    20% {
        opacity: 0.65;
        filter: brightness(0.25) contrast(1.6);
    }
    34% {
        opacity: 1;
        filter: brightness(1.35) contrast(1.15);
    }
    52% {
        filter: brightness(0.75) contrast(1.2);
    }
    100% {
        opacity: 1;
        filter: brightness(1) contrast(1);
        background: radial-gradient(circle at center, #151515 0%, #000 100%);
    }
}

@keyframes damus-screen-shutdown {
    0% {
        opacity: 1;
        filter: brightness(1) contrast(1);
        background: radial-gradient(circle at center, #151515 0%, #000 100%);
    }
    35% {
        opacity: 1;
        filter: brightness(1.25) contrast(1.4);
        background: linear-gradient(180deg, #000 0%, #170c05 50%, #000 100%);
    }
    62% {
        opacity: 0.55;
        filter: brightness(0.35) contrast(1.6);
    }
    100% {
        opacity: 0;
        filter: brightness(0) contrast(1.8);
        background: #000;
    }
}

@keyframes damus-content-boot {
    0%, 22% {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(2px);
    }
    45% {
        opacity: 0.35;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes damus-content-shutdown {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    45% {
        opacity: 0.25;
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
        filter: blur(3px);
    }
}

/* Scanline Effect - Single Pass */
.screen-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(224, 122, 60, 0.4); /* Slightly brighter for the single pass */
    box-shadow: 0 0 15px rgba(224, 122, 60, 0.6);
    animation: scanline 2s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Runs once */
    opacity: 0;
    transform: translateY(-20px);
}

.laptop-wrapper.damus-is-active .screen-content::after,
.phone-wrapper.damus-is-active .screen-content::after {
    animation: damus-boot-scanline 1.05s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.laptop-wrapper.damus-is-inactive .screen-content::after,
.phone-wrapper.damus-is-inactive .screen-content::after {
    animation: damus-shutdown-scanline 0.72s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes scanline { 
    0% { top: 0%; opacity: 0; } 
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; } 
}

@keyframes damus-boot-scanline {
    0% { top: 0%; height: 8px; opacity: 0; }
    18% { opacity: 1; }
    78% { opacity: 1; }
    100% { top: 100%; height: 10px; opacity: 0; }
}

@keyframes damus-shutdown-scanline {
    0% { top: 100%; height: 10px; opacity: 0; }
    20% { opacity: 1; }
    70% { opacity: 1; }
    100% { top: 48%; height: 2px; opacity: 0; }
}

.chat-header {
    border-bottom: 1px solid rgba(224, 122, 60, 0.3);
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 0;
    animation: glitch-reveal 0.5s 0.5s forwards;
}

.chat-header .dot {
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-orange);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Standard readable gap */
    font-size: 1.1rem;
    align-items: flex-start; /* Prevent full width stretching */
}

/* Typing Glitch Mode for Messages */
.msg {
    opacity: 0; /* Initially hidden */
    padding: 4px 0; /* Standard padding */
    border-radius: 8px;
    /* Background removed from generic class */
    width: fit-content;
    max-width: 100%;
    font-family: var(--font-code);
    /* Prepare for typing effect */
    white-space: normal; /* allow long answers to wrap */
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-right: none;
    transform: none; /* Reset slide effect */
    line-height: 1.5;
}

/* Only intro messages use the typing/clip effect */
.msg.intro {
    white-space: nowrap;
    overflow: hidden;
}

/* Specific Typing Animations */
@keyframes typing-bot {
    from { width: 0; opacity: 1; }
    to { width: 22ch; opacity: 1; } 
}

@keyframes typing-text {
    from { width: 0; opacity: 1; }
    to { width: 30ch; opacity: 1; } 
}

/* Glitch Reveal Animation (Restored) */
@keyframes glitch-reveal {
    0% { opacity: 0; clip-path: inset(50% 0 50% 0); }
    20% { opacity: 1; clip-path: inset(20% 0 80% 0); }
    40% { clip-path: inset(80% 0 0 0); }
    60% { clip-path: inset(0 0 50% 0); }
    80% { clip-path: inset(10% 0 30% 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* Cursor Blink */
@keyframes blink-cursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-orange); }
}

.msg.system { 
    color: var(--text-muted); 
    opacity: 0;
    animation: glitch-reveal 0.5s 1s forwards; /* Keep glitch reveal for system msg */
    font-size: 0.9rem; background: none; padding-left: 0; 
}

.msg.bot { 
    opacity: 0;
    border-left: none;
    background: none; /* keep bot replies clean */
    border-right: none;
}

.msg.bot.intro {
    background: rgba(255, 255, 255, 0.03); /* Highlight only for Welcome message */
    animation: typing-bot 1s steps(30, end) 1.5s forwards;
}

.msg.bot.thinking {
    opacity: 1;
    color: rgba(221, 221, 221, 0.75);
}

.msg.bot.thinking .dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 6px;
}

.msg.bot.thinking .dots span {
    opacity: 0.2;
    animation: dotPulse 1s infinite;
}

.msg.bot.thinking .dots span:nth-child(2) { animation-delay: 0.15s; }
.msg.bot.thinking .dots span:nth-child(3) { animation-delay: 0.3s; }

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

.msg.text {
    opacity: 0;
    border-right: none;
}

.msg.text.intro {
    animation: typing-text 1s steps(30, end) 2.5s forwards;
}

.msg.typing { 
    display: none;
}

/* New Input Line Styles */
.msg.input-line {
    opacity: 0;
    animation: fade-in 0.5s 3.5s forwards; /* Appear fast after text (2.5s + 1s) */
    display: flex;
    gap: 10px;
    align-items: center;
    background: none;
    padding: 0 15px;
    margin-top: 0; /* Reset to rely on gap */
}

.prompt {
    color: var(--accent-orange);
    font-weight: bold;
}

.user-text.selected {
    background: rgba(224, 122, 60, 0.28);
    color: #f4f4f4 !important;
    border-radius: 3px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--accent-orange);
    animation: blink-block 1s step-end infinite;
}

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

@keyframes fade-in { to { opacity: 1; } }
@keyframes blink-caret { 50% { border-color: transparent; } }

/* Logo Glow on Back */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 0 20px var(--accent-orange);
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
    z-index: 10; /* Ensure content is above noise overlay */
}

.page-about .content-section,
.page-contact .content-section,
.page-stack .content-section,
.page-team .content-section,
.page-privacy .content-section,
.page-terms .content-section {
    padding: 5rem 0;
}

.page-about .section-header,
.page-contact .section-header,
.page-stack .section-header,
.page-team .section-header,
.page-privacy .section-header,
.page-terms .section-header {
    margin-bottom: 2.25rem;
}

.page-about .foundation-intro,
.page-contact .foundation-intro,
.page-stack .foundation-intro,
.page-team .foundation-intro,
.page-privacy .foundation-intro,
.page-terms .foundation-intro {
    margin-bottom: 2.25rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.section-index {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255,255,255,0.03);
    font-weight: 700;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
}

.proof-status-section {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.proof-status-heading {
    margin-bottom: 1.25rem;
}

.proof-status-kicker,
.proof-status-label {
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.proof-status-kicker {
    color: var(--accent-orange);
}

.proof-status-title {
    margin-top: 0.7rem;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.15;
}

.proof-status-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand link"
        "facts facts";
    gap: 1.35rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.025);
    color: inherit;
    text-decoration: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        8px 8px 30px rgba(0, 0, 0, 0.34);
    transition:
        border-color var(--transition-speed) ease,
        background var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.proof-status-card:hover,
.proof-status-card:focus-visible {
    border-color: rgba(224, 122, 60, 0.36);
    background:
        linear-gradient(135deg, rgba(224, 122, 60, 0.09), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.025);
    transform: translateY(-2px);
}

.proof-status-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.proof-status-logo {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        7px 7px 18px rgba(0, 0, 0, 0.28);
}

.proof-status-product {
    margin-top: 0.95rem;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.1;
}

.proof-status-summary {
    max-width: 560px;
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.proof-status-facts {
    grid-area: facts;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
}

.proof-status-label {
    width: fit-content;
    color: #d8b7a4;
}

.proof-status-label--live {
    position: relative;
    padding-left: 0.85rem;
    color: #a8f0bf;
}

.proof-status-label--live::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #5bd684;
    box-shadow: 0 0 10px rgba(91, 214, 132, 0.78);
    transform: translateY(-50%);
    animation: catalog-live-pulse 1.35s ease-in-out infinite;
}

.proof-status-facts span {
    padding: 0.45rem 0.66rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 122, 60, 0.22);
    background: rgba(224, 122, 60, 0.07);
    color: #e6c9b7;
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.proof-status-link {
    grid-area: link;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.45rem;
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.proof-status-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.25rem;
}

.proof-status-cta a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition-speed) ease;
}

.proof-status-cta a::after {
    content: "->";
    margin-left: 0.55rem;
    color: var(--accent-orange);
}

.proof-status-cta a:hover,
.proof-status-cta a:focus-visible {
    color: var(--text-main);
}

.foundation-intro {
    max-width: 920px;
    margin-bottom: 2.75rem;
}

#answers-overview {
    padding-bottom: 0;
}

#answers-overview .foundation-intro {
    margin-bottom: 0;
}

.answers-hero-copy {
    max-width: 920px;
}

.answers-card-grid {
    align-items: stretch;
}

.answers-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.answers-card p {
    flex: 1;
}

.answers-card p + p {
    flex-grow: 0;
}

.answers-inline-link,
.answers-card-link {
    color: var(--accent-orange-light);
    text-decoration: none;
}

.answers-inline-link:hover,
.answers-card-link:hover {
    color: var(--text-main);
}

.answers-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foundation-headline {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.foundation-copy {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1rem;
    max-width: 920px;
}

.foundation-copy + .foundation-copy {
    margin-top: 0.85rem;
}

#standards .foundation-copy {
    margin-bottom: 18px;
}

.foundation-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.foundation-panels-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.foundation-detail-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.foundation-focus-card {
    min-height: 190px;
    padding: 1.45rem;
}

.foundation-detail-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.foundation-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.foundation-detail-heading {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.foundation-detail-index,
.foundation-detail-kicker {
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
}

.foundation-detail-index {
    color: var(--accent-orange);
}

.foundation-detail-kicker {
    color: var(--text-muted);
}

.foundation-detail-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 0;
}

.foundation-detail-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 980px;
    margin-bottom: 1.5rem;
}

.foundation-detail-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.foundation-point-tag {
    padding: 0.45rem 0.66rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 122, 60, 0.22);
    background: rgba(224, 122, 60, 0.07);
    color: #e6c9b7;
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.operating-focus-section {
    padding-top: 1.5rem;
}

.operating-focus-shell {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
}

.operating-focus-intro {
    max-width: 960px;
    margin-bottom: 2rem;
}

.operating-focus-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.1rem;
}

.operating-focus-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 920px;
}

.operating-focus-copy + .operating-focus-copy {
    margin-top: 1rem;
}

.operating-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.operating-focus-item {
    display: flex;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.28);
}

.operating-focus-index {
    flex-shrink: 0;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    margin-top: 0.18rem;
}

.operating-focus-content h4 {
    font-family: var(--font-code);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--text-main);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.operating-focus-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.media-channels-section {
    padding-top: 1.5rem;
}

.media-channels-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    grid-template-areas:
        "copy channels"
        "source source";
    gap: 2rem;
    align-items: center;
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.025);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        8px 8px 30px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.media-channels-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(224, 122, 60, 0.16) 18% 18.1%, transparent 18.1%),
        linear-gradient(90deg, transparent 0 78%, rgba(255, 255, 255, 0.06) 78% 78.1%, transparent 78.1%),
        linear-gradient(180deg, transparent 0 50%, rgba(224, 122, 60, 0.12) 50% 50.2%, transparent 50.2%);
    opacity: 0.7;
    pointer-events: none;
}

.media-channels-copy,
.media-channel-grid,
.media-source-card {
    position: relative;
    z-index: 1;
}

.media-channels-copy {
    grid-area: copy;
}

.media-channels-title {
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 1.4rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
}

.media-channels-text {
    max-width: 440px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.media-channel-grid {
    grid-area: channels;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.media-channel-card {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.42);
    color: rgba(240, 240, 240, 0.72);
    text-decoration: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 22px rgba(0, 0, 0, 0.28);
    transition:
        color var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        background var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.media-channel-card:hover,
.media-channel-card:focus-visible {
    color: var(--text-main);
    border-color: rgba(224, 122, 60, 0.42);
    background: rgba(224, 122, 60, 0.08);
    transform: translateY(-2px);
}

.media-channel-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.media-channel-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.media-channel-icon--medium {
    width: 36px;
}

.media-channel-label {
    max-width: 100%;
    color: currentColor;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.media-source-card {
    grid-area: source;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.36);
    color: inherit;
    text-decoration: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.06),
        8px 8px 22px rgba(0, 0, 0, 0.24);
    transition:
        border-color var(--transition-speed) ease,
        background var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.media-source-card:hover,
.media-source-card:focus-visible {
    border-color: rgba(224, 122, 60, 0.42);
    background: rgba(224, 122, 60, 0.075);
    transform: translateY(-2px);
}

.media-source-icon {
    width: 34px;
    height: 34px;
    color: rgba(240, 240, 240, 0.78);
}

.media-source-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.media-source-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.media-source-title {
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.media-source-text {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.media-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.developer-github-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.15rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.025);
    color: inherit;
    text-decoration: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        8px 8px 30px rgba(0, 0, 0, 0.34);
    transition:
        border-color var(--transition-speed) ease,
        background var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.developer-github-panel:hover,
.developer-github-panel:focus-visible {
    border-color: rgba(224, 122, 60, 0.42);
    background:
        linear-gradient(135deg, rgba(224, 122, 60, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.025);
    transform: translateY(-2px);
}

.developer-github-icon {
    width: 46px;
    height: 46px;
    color: rgba(240, 240, 240, 0.8);
}

.developer-github-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.developer-github-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
}

.developer-github-kicker {
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.developer-github-title {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
}

.developer-github-text {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.developer-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.contact-lab-section {
    padding-top: 1.5rem;
}

.contact-lab-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.contact-lab-panel::before,
.contact-lab-panel::after {
    content: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact-lab-panel::before {
    background:
        linear-gradient(90deg, transparent 0 34%, rgba(224, 122, 60, 0.24) 34% 58.8%, transparent 58.8%) 0 30% / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 0 40%, rgba(224, 122, 60, 0.34) 40% 58.8%, transparent 58.8%) 0 47% / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 0 48%, rgba(224, 122, 60, 0.2) 48% 58.8%, transparent 58.8%) 0 66% / 100% 1px no-repeat,
        linear-gradient(180deg, transparent 0 30%, rgba(224, 122, 60, 0.22) 30% 47%, transparent 47%) 40% 0 / 1px 100% no-repeat,
        linear-gradient(180deg, transparent 0 47%, rgba(224, 122, 60, 0.26) 47% 66%, transparent 66%) 48% 0 / 1px 100% no-repeat,
        linear-gradient(180deg, transparent 0 30%, rgba(224, 122, 60, 0.3) 30% 66%, transparent 66%) 58.8% 0 / 1px 100% no-repeat;
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 61%, transparent 68%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 61%, transparent 68%);
    opacity: 0.9;
}

.contact-lab-panel::after {
    background:
        radial-gradient(circle at 40% 30%, rgba(224, 122, 60, 0.42) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 47%, rgba(224, 122, 60, 0.48) 0 2px, transparent 3px),
        radial-gradient(circle at 34% 30%, rgba(224, 122, 60, 0.28) 0 2px, transparent 3px),
        radial-gradient(circle at 58.8% 66%, rgba(224, 122, 60, 0.5) 0 2px, transparent 3px);
    opacity: 0.8;
}

.contact-lab-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.contact-lab-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.1rem;
}

.contact-lab-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.contact-lab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.95rem 1.35rem;
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-lab-btn:hover {
    color: var(--accent-orange-light);
}

.contact-lab-btn:active {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.98);
}

.contact-lab-note {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.metallic-card {
    /* Brighter, more transparent "Navbar-like" glass */
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        8px 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metallic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}

.metallic-card:hover::before {
    left: 100%;
}

.metallic-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-slot {
    width: 40px;
    height: 40px;
    background: var(--surface-inset);
    border-radius: 8px;
    box-shadow: var(--shadow-pressed);
}

.metallic-card h3 {
    font-family: var(--font-code);
    color: var(--accent-orange);
    font-size: 1rem;
}

.metallic-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer */
.system-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #1a1a1a;
    position: relative;
    z-index: 10; /* Ensure footer is above noise overlay */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-brand {
    color: var(--text-main);
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.1rem;
}

.footer-links a,
.footer-links span {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-orange-light);
}

.footer-legal {
    margin-top: 1rem;
    max-width: 920px;
    color: #848484;
    font-family: var(--font-code);
    font-size: 0.7rem;
    line-height: 1.7;
}

/* About Page Specifics */
.about-hero-section {
    padding-top: 12rem;
}

.page-about .about-hero-section,
.page-contact .about-hero-section,
.page-stack .about-hero-section,
.page-team .about-hero-section,
.page-privacy .about-hero-section,
.page-terms .about-hero-section {
    padding-top: 10.5rem;
}

.static-card {
    cursor: default;
}

.static-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.static-card:hover::before {
    left: -100%;
}

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

.static-item {
    cursor: default;
}

.static-item:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.clarity-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.clarity-legal {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.clarity-legal p {
    color: #7c6f66;
    font-family: var(--font-code);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Team Page */
.team-hero-copy {
    max-width: 980px;
    margin-bottom: 0;
}

.team-hero-section .foundation-copy + .foundation-copy {
    margin-top: 1rem;
}

/* Short hero only: avoid double tail (intro margin + full section padding) vs. long about-style heroes */
.page-team .team-hero-section {
    padding-bottom: 3rem;
}

.page-team .team-hero-section .foundation-intro {
    margin-bottom: 0;
}

.team-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-agent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-color: rgba(255, 255, 255, 0.08);
}

.team-profile-card--human {
    background: rgba(255, 255, 255, 0.035);
}

.team-profile-card--agent {
    background: rgba(255, 255, 255, 0.025);
}

.team-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.22)),
        linear-gradient(90deg, transparent 0 30%, rgba(224, 122, 60, 0.08) 30% 31%, transparent 31% 100%),
        linear-gradient(180deg, transparent 0 70%, rgba(255, 255, 255, 0.05) 70% 71%, transparent 71%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 20px rgba(0, 0, 0, 0.28);
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.team-avatar--human {
    color: var(--text-main);
}

.team-avatar--agent {
    border-color: rgba(224, 122, 60, 0.2);
    color: #d7b69c;
    letter-spacing: 0.12em;
}

.team-card-meta {
    min-width: 0;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.95rem;
}

.team-badge--human {
    color: var(--accent-orange-light);
    border: 1px solid rgba(224, 122, 60, 0.35);
    background: rgba(224, 122, 60, 0.1);
}

.team-badge--agent {
    color: #d2b9a7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.team-card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.team-card-role {
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.team-card-submeta {
    margin-top: 0.45rem;
    color: #8d837c;
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.team-card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.team-focus-block {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team-focus-label {
    display: block;
    margin-bottom: 0.85rem;
    color: #8f8f8f;
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.team-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.team-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.9rem 1.1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-raised);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.team-link-btn:hover {
    color: var(--accent-orange-light);
    border-color: rgba(224, 122, 60, 0.24);
}

.team-link-btn:active {
    transform: translateY(1px);
}

.team-link-btn--primary {
    background: linear-gradient(145deg, var(--accent-orange), var(--accent-orange-dark));
    border-color: transparent;
    box-shadow: var(--shadow-orange);
    color: #fff;
}

.team-link-btn--primary:hover {
    color: #fff;
}

.operating-model-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 0.5rem 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
}

.operating-model-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 0;
}

.operating-model-row + .operating-model-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.operating-model-label {
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.operating-model-copy {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

/* Products Page */
.catalog-main {
    padding-top: 10rem;
}

.page-products .catalog-main {
    padding-top: 10.5rem;
}

.catalog-section {
    padding: 0 0 4.5rem;
    position: relative;
    z-index: 10;
}

.page-products .catalog-section {
    padding: 5rem 0;
}

.catalog-section--tight {
    padding-bottom: 3rem;
}

.catalog-hero {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 10;
}

.page-products .catalog-hero {
    padding-bottom: 3rem;
}

/* Hero → first block: avoid double 5rem tail (matches tighter inner-page rhythm) */
.page-products .catalog-hero + .catalog-section {
    padding-top: 3rem;
}

.catalog-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
    gap: 2rem;
    align-items: end;
}

.catalog-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.catalog-hero-title,
h2.catalog-title {
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1.12;
}

.catalog-hero-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    max-width: 760px;
    margin-bottom: 1.2rem;
}

.catalog-hero-description,
.catalog-hero-support,
.catalog-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.catalog-hero-description {
    max-width: 760px;
    margin-bottom: 1rem;
}

.catalog-hero-support {
    max-width: 760px;
}

.catalog-badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
    align-content: flex-start;
    padding: 1.25rem 0;
}

.catalog-pill {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 122, 60, 0.18);
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.26);
    color: #d9c0af;
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
}

.catalog-block-head {
    max-width: 860px;
    margin-bottom: 1.75rem;
}

.page-products .catalog-block-head {
    margin-bottom: 2.25rem;
}

.catalog-block-head--compact {
    margin-bottom: 1.5rem;
}

.page-products .catalog-block-head--compact {
    margin-bottom: 2rem;
}

.page-products .catalog-hero-copy {
    margin-bottom: 2.25rem;
}

h2.catalog-title {
    font-size: 1.6rem;
    margin-bottom: 0.95rem;
}

.systems-matrix-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.systems-matrix-header,
.systems-matrix-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(180px, 0.95fr) minmax(280px, 1.7fr) minmax(200px, 1fr) minmax(100px, 0.55fr);
    gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.35rem;
}

.systems-matrix-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.systems-matrix-header span {
    color: #8f867f;
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.systems-matrix-row + .systems-matrix-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-stack .dev-domains-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.35rem;
}

.systems-matrix-cell {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.systems-name {
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

.catalog-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 122, 60, 0.2);
    background: rgba(224, 122, 60, 0.08);
    color: #e1c3af;
    font-family: var(--font-code);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.catalog-status-badge--live {
    border-color: rgba(91, 214, 132, 0.34);
    background: rgba(91, 214, 132, 0.09);
    color: #a8f0bf;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 16px rgba(91, 214, 132, 0.12);
}

.catalog-live-dot {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: #5bd684;
    box-shadow: 0 0 12px rgba(91, 214, 132, 0.85);
    animation: catalog-live-pulse 1.35s ease-in-out infinite;
}

@keyframes catalog-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(91, 214, 132, 0.7);
    }

    50% {
        opacity: 0.42;
        transform: scale(0.78);
        box-shadow: 0 0 4px rgba(91, 214, 132, 0.35);
    }
}

.catalog-inline-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.catalog-inline-link:hover {
    color: var(--text-main);
}

.catalog-inline-link--muted {
    color: #8b8178;
}

.featured-systems-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
}

.systems-matrix-row[id],
.featured-system-panel[id] {
    scroll-margin-top: 8.5rem;
}

.featured-system-panel {
    grid-column: span 6;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
}

.featured-system-panel--wide {
    grid-column: span 12;
}

.featured-system-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.featured-domain-label {
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.featured-system-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.18;
    color: var(--text-main);
    margin-bottom: 0.95rem;
}

.featured-system-copy {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.8;
    max-width: 760px;
    margin-bottom: 1.3rem;
}

.featured-system-actions {
    margin-top: 1.4rem;
}

.status-board-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
}

.status-board-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.status-board-column {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.24);
}

.status-board-title {
    font-family: var(--font-code);
    color: var(--text-main);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.status-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.status-board-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.status-board-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(224, 122, 60, 0.82);
}

.products-clarity-panel .catalog-copy + .catalog-copy {
    margin-top: 1rem;
}

.catalog-cta-panel {
    overflow: hidden;
}

/* AI Systems Page */
.ai-main {
    padding-top: 10rem;
}

.page-ai-systems .ai-main {
    padding-top: 10.5rem;
}

.ai-section {
    padding: 0 0 4.5rem;
    position: relative;
    z-index: 10;
}

.page-ai-systems .ai-section {
    padding: 5rem 0;
}

.ai-section--tight {
    padding-bottom: 3rem;
}

.ai-hero {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 10;
}

.page-ai-systems .ai-hero {
    padding-bottom: 5rem;
}

.ai-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.ai-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.1;
    color: var(--text-main);
    max-width: 780px;
    margin-bottom: 1.2rem;
}

.ai-hero-description,
.ai-hero-support {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 760px;
}

.ai-hero-description {
    margin-bottom: 1rem;
}

.ai-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-content: flex-start;
    padding: 1.25rem 0;
}

.ai-section-head {
    max-width: 860px;
    margin-bottom: 1.75rem;
}

.page-ai-systems .ai-section-head {
    margin-bottom: 2.25rem;
}

.ai-section-head--compact {
    margin-bottom: 1.4rem;
}

.page-ai-systems .ai-section-head--compact {
    margin-bottom: 2rem;
}

.page-ai-systems .ai-hero-copy {
    margin-bottom: 2.25rem;
}

.ai-map-panel,
.ai-boundary-panel,
.ai-standards-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        8px 8px 30px rgba(0, 0, 0, 0.35);
}

.ai-map-flow {
    display: grid;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.ai-map-layer {
    position: relative;
    padding: 1.2rem 1.3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.26);
}

.ai-map-label {
    display: inline-flex;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ai-map-copy {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.ai-map-connector {
    width: 1px;
    height: 26px;
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(224, 122, 60, 0.0), rgba(224, 122, 60, 0.8), rgba(224, 122, 60, 0.0));
    position: relative;
}

.ai-map-connector::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(224, 122, 60, 0.82);
    transform: translate(-50%, -50%);
}

.ai-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.ai-capability-panel {
    padding: 1.3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.28);
}

.ai-capability-label {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ai-capability-copy {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.ai-workflow-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: start;
}

.ai-workflow-stack {
    display: grid;
    gap: 1rem;
}

.ai-workflow-card {
    position: relative;
    padding: 1.35rem 1.35rem 1.35rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 24px rgba(0, 0, 0, 0.28);
}

.ai-workflow-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(224, 122, 60, 0.0), rgba(224, 122, 60, 0.72), rgba(224, 122, 60, 0.0));
}

.ai-workflow-label {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ai-workflow-copytext {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.ai-boundary-rows {
    display: grid;
}

.ai-boundary-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.2rem 0;
}

.ai-boundary-row + .ai-boundary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-boundary-key {
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ai-boundary-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.ai-standards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.ai-standard-item {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        8px 8px 22px rgba(0, 0, 0, 0.22);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}

.ai-cta-panel {
    overflow: hidden;
}

/* Contact Page */
#contact-overview {
    padding-bottom: 0;
}

.contact-page-hero .foundation-copy + .foundation-copy {
    margin-top: 1rem;
}

.contact-channel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-form-panel,
.contact-direct-panel,
.contact-scope-card {
    height: 100%;
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-form-panel {
    overflow: visible;
}

.contact-panel-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h3.contact-panel-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

p.contact-panel-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 1.15rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field-label {
    margin-bottom: 0.6rem;
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-field-optional {
    color: #8b8178;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #7f7f7f;
}

.contact-select-shell {
    position: relative;
}

.contact-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 55px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-select-shell.is-placeholder .contact-select-trigger {
    color: #8a817a;
}

.contact-select-trigger:hover {
    color: var(--text-main);
}

.contact-select-trigger:focus-visible,
.contact-select-shell.is-open .contact-select-trigger {
    outline: none;
    border-color: rgba(224, 122, 60, 0.24);
}

.contact-select-trigger-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--accent-orange);
    font-size: 0.82rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.contact-select-shell.is-open .contact-select-trigger-icon {
    transform: rotate(180deg);
}

.contact-select-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 120;
}

.contact-select-menu[hidden] {
    display: none;
}

.contact-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-select-option:hover,
.contact-select-option:focus-visible,
.contact-select-option.is-selected {
    outline: none;
    color: var(--text-main);
    border-color: rgba(224, 122, 60, 0.18);
}

.contact-textarea {
    min-height: 190px;
    resize: vertical;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: rgba(224, 122, 60, 0.42);
    box-shadow:
        0 0 0 1px rgba(224, 122, 60, 0.18),
        inset 2px 2px 8px rgba(0, 0, 0, 0.22);
}

.contact-input.is-error,
.contact-textarea.is-error {
    border-color: rgba(209, 108, 108, 0.6);
    background: rgba(96, 28, 28, 0.16);
}

.contact-select-shell.is-error .contact-select-trigger {
    border-color: rgba(209, 108, 108, 0.6);
    background: rgba(96, 28, 28, 0.16);
}

.contact-field-error {
    min-height: 1rem;
    margin-top: 0.45rem;
    color: #dca2a2;
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.5;
}

.contact-form-status {
    padding: 0.95rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-code);
    font-size: 0.74rem;
    line-height: 1.6;
}

.contact-form-status--success {
    color: #d8d0cb;
    border-color: rgba(224, 122, 60, 0.22);
    background: rgba(224, 122, 60, 0.08);
}

.contact-form-status--error {
    color: #efcccc;
    border-color: rgba(192, 95, 95, 0.3);
    background: rgba(92, 24, 24, 0.18);
}

.contact-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 0.95rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--accent-orange);
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
    color: var(--accent-orange-light);
}

.contact-submit-btn:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-pressed);
}

.contact-fallback-note {
    max-width: 480px;
    color: #8d8178;
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.75;
}

.contact-fallback-note a {
    color: var(--accent-orange-light);
    text-decoration: none;
}

.contact-fallback-note a:hover {
    color: var(--text-main);
}

.contact-direct-email {
    display: inline-flex;
    margin: 1.2rem 0 1rem;
    color: var(--accent-orange-light);
    font-family: var(--font-code);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.contact-direct-email:hover {
    color: var(--text-main);
}

.contact-direct-list,
.contact-scope-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-direct-list {
    display: grid;
    gap: 0.8rem;
}

.contact-direct-list li,
.contact-scope-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.contact-direct-list li::before,
.contact-scope-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(224, 122, 60, 0.85);
}

p.contact-security-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #8c8177;
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.75;
}

.contact-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

h3.contact-scope-card-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-scope-list {
    display: grid;
    gap: 0.85rem;
}

.contact-clarity-panel .foundation-copy + .foundation-copy {
    margin-top: 1rem;
}

body.signal-modal-open {
    overflow: hidden;
}

.signal-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.signal-modal[hidden] {
    display: none;
}

.signal-modal-dialog {
    width: min(100%, 680px);
    overflow: visible;
}

.signal-modal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.signal-modal-kicker {
    margin-bottom: 0;
}

.signal-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-raised);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.signal-modal-close:hover {
    color: var(--text-main);
    border-color: rgba(224, 122, 60, 0.18);
}

h3.signal-modal-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

p.signal-modal-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.signal-modal-challenge {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-modal-label {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: #8f867f;
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

p.signal-modal-prompt {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

.signal-modal-options {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.signal-modal-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    background: var(--bg-panel);
    box-shadow: var(--shadow-raised);
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.signal-modal-option:hover,
.signal-modal-option:focus-visible,
.signal-modal-option.is-selected {
    outline: none;
    color: var(--text-main);
    border-color: rgba(224, 122, 60, 0.2);
}

.signal-modal-option.is-selected {
    background: rgba(224, 122, 60, 0.08);
}

.signal-modal-feedback {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-code);
    font-size: 0.74rem;
    line-height: 1.65;
}

.signal-modal-feedback[hidden] {
    display: none;
}

.signal-modal-feedback--error {
    color: #efcccc;
    border-color: rgba(192, 95, 95, 0.3);
    background: rgba(92, 24, 24, 0.18);
}

.signal-modal-feedback--success {
    color: #d8d0cb;
    border-color: rgba(224, 122, 60, 0.22);
    background: rgba(224, 122, 60, 0.08);
}

.signal-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
}

p.signal-modal-note {
    max-width: 360px;
    color: #8d8178;
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.75;
}

.signal-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.signal-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.9rem 1.15rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-raised);
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.signal-modal-btn:hover {
    color: var(--accent-orange-light);
    border-color: rgba(224, 122, 60, 0.24);
}

.signal-modal-btn:active {
    transform: translateY(1px);
}

.signal-modal-btn--primary {
    background: rgba(224, 122, 60, 0.08);
    border-color: rgba(224, 122, 60, 0.18);
    color: var(--accent-orange-light);
}

.signal-modal-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
    color: #8b8178;
}

@media (max-width: 980px) {
    .page-shell--hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 3.25rem;
    }

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

    .hero-visual {
        width: 100%;
        justify-content: center;
        perspective: none;
        overflow: visible;
    }

    .laptop-wrapper {
        display: none;
    }

    .phone-wrapper {
        display: flex;
        width: min(360px, 82vw);
        margin: 0 auto 2.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --page-shell-gutter: 3rem;
    }

    .main-header {
        padding: 1.5rem 0;
    }
    
    .nav-toggle {
        display: block;
    }

    .programmatic-nav {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: var(--bg-panel);
        box-shadow: var(--shadow-raised);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        isolation: isolate;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .programmatic-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-family {
        width: 100%;
    }

    .nav-family-trigger {
        width: 100%;
        padding: 0.75rem 0;
        text-align: left;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        padding: 0 1rem;
        gap: 0.6rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.22s ease, padding 0.22s ease;
    }

    .nav-family:hover .nav-dropdown,
    .nav-family:focus-within .nav-dropdown {
        max-height: 0;
    }

    .nav-family.is-open .nav-dropdown {
        /* Tall enough for long system lists + last row shadow */
        max-height: 520px;
        padding: 0.75rem 1rem 1rem;
    }

    .nav-dropdown a,
    .nav-dropdown-disabled {
        background: var(--bg-panel);
        border: none;
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-raised);
    }

    .nav-dropdown a:active {
        box-shadow: var(--shadow-pressed);
        transform: scale(0.98);
    }

    .nav-dropdown-disabled {
        box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.45);
    }

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

    .about-hero-section {
        padding-top: 8rem;
    }

    .clarity-panel {
        padding: 1.5rem;
    }

    .hero-section {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .control-panel {
        width: 100%;
    }

    .proof-status-section {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .proof-status-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "facts"
            "link";
        padding: 1.15rem;
    }

    .proof-status-brand {
        align-items: flex-start;
        gap: 0.95rem;
    }

    .proof-status-logo {
        width: 58px;
        height: 58px;
    }

    .proof-status-title {
        font-size: 1.35rem;
    }

    .proof-status-product {
        font-size: 1.35rem;
    }

    .proof-status-link {
        justify-self: start;
    }

    .proof-status-cta {
        justify-content: flex-start;
    }

    .phone-wrapper {
        width: min(340px, 84vw);
        margin: 0 auto 2.25rem;
    }

    .phone-shell {
        width: 100%;
    }

    .phone-wrapper .screen-content {
        --phone-screen-x: 16px;
        padding-bottom: 24px;
    }

    .phone-wrapper .chat-header {
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    .phone-wrapper .chat-body,
    .phone-wrapper .msg {
        font-size: 0.78rem;
    }

    .damus-prompt-grid {
        grid-template-columns: 1fr;
    }

    .foundation-headline {
        font-size: 1.55rem;
    }

    .foundation-focus-grid {
        grid-template-columns: 1fr;
    }

    .foundation-detail-panel {
        padding: 1.4rem;
    }

    .foundation-focus-card {
        min-height: 0;
    }

    .foundation-detail-title {
        font-size: 1.18rem;
    }

    .operating-focus-shell {
        padding: 1.4rem;
    }

    .operating-focus-title {
        font-size: 1.45rem;
    }

    .operating-focus-grid {
        grid-template-columns: 1fr;
    }

    .media-channels-panel {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "channels"
            "source";
        gap: 1.5rem;
        padding: 1.4rem;
    }

    .media-channels-title {
        font-size: 1.35rem;
    }

    .media-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .media-channel-card {
        min-height: 82px;
        padding: 0.9rem 0.7rem;
    }

    .media-channel-label {
        font-size: 0.74rem;
    }

    .media-source-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.9rem;
    }

    .media-source-link {
        grid-column: 2;
        justify-self: start;
    }

    .developer-github-panel {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.25rem;
    }

    .developer-github-link {
        grid-column: 2;
        justify-self: start;
    }

    .contact-lab-panel {
        padding: 2rem 1.4rem;
        display: flex;
        flex-direction: column;
    }

    .contact-lab-panel::before {
        background:
            linear-gradient(180deg, transparent 0 48%, rgba(224, 122, 60, 0.26) 48% 62%, transparent 62%) 22% 0 / 1px 100% no-repeat,
            linear-gradient(90deg, transparent 0 22%, rgba(224, 122, 60, 0.22) 22% 78%, transparent 78%) 0 62% / 100% 1px no-repeat;
        mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 74%, transparent 100%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 74%, transparent 100%);
        opacity: 0.62;
    }

    .contact-lab-panel::after {
        background:
            radial-gradient(circle at 22% 62%, rgba(224, 122, 60, 0.38) 0 2px, transparent 3px),
            radial-gradient(circle at 78% 62%, rgba(224, 122, 60, 0.28) 0 2px, transparent 3px);
        opacity: 0.6;
    }

    .contact-lab-title {
        font-size: 1.45rem;
    }

    .contact-lab-btn {
        width: 100%;
    }

    .team-profile-grid,
    .team-agent-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .team-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .team-avatar {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .team-card-name {
        font-size: 1.15rem;
    }

    .team-link-btn {
        width: 100%;
    }

    .operating-model-panel {
        padding: 0.25rem 1.35rem;
    }

    .operating-model-row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.2rem 0;
    }

    .ai-main {
        padding-top: 8rem;
    }

    .ai-hero {
        padding: 1.5rem 0 3rem;
    }

    .ai-hero-shell,
    .ai-workflow-shell,
    .ai-capability-grid,
    .ai-standards-grid {
        grid-template-columns: 1fr;
    }

    .ai-boundary-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .catalog-main {
        padding-top: 8rem;
    }

    .catalog-hero {
        padding: 1.5rem 0 3rem;
    }

    .catalog-hero-shell,
    .status-board-grid {
        grid-template-columns: 1fr;
    }

    .featured-systems-grid {
        grid-template-columns: 1fr;
    }

    .featured-system-panel,
    .featured-system-panel--wide {
        grid-column: auto;
    }

    .systems-matrix-header {
        display: none;
    }

    .systems-matrix-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .systems-matrix-cell {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .systems-matrix-cell::before {
        content: attr(data-label);
        color: #8f867f;
        font-family: var(--font-code);
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .contact-channel-grid,
    .contact-scope-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-channel-grid,
    .contact-scope-grid {
        gap: 1.25rem;
    }

    .contact-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit-btn {
        width: 100%;
    }

    .contact-direct-email {
        word-break: break-all;
    }

    .signal-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .signal-modal-dialog {
        width: 100%;
    }

    .signal-modal-topline,
    .signal-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .signal-modal-buttons,
    .signal-modal-btn {
        width: 100%;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 0.8rem 1rem;
    }
}
