/* ==========================================================================
           Variables & Design Tokens (Flagship Stage Theme)
           ========================================================================== */
        :root {
            /* Brand Colors */
            --brand-primary: #469bf0;
            --brand-hover: #3182ce;
            --brand-glow: rgba(70, 155, 240, 0.4);
            
            /* Backgrounds (Dark/Light Fusion) */
            --bg-base: #0a0f1c;
            --bg-surface: #121a2f;
            --bg-elevated: #1a243e;
            --bg-glass: rgba(18, 26, 47, 0.7);
            
            /* Text Colors */
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            
            /* Borders & Shadows */
            --border-subtle: rgba(255, 255, 255, 0.08);
            --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
            --shadow-neon: 0 0 20px var(--brand-glow);
            
            /* Geometry */
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-sm: 8px;
            
            /* Transitions */
            --transition-base: all 0.25s ease;
            
            /* Layout */
            --max-width: 1280px;
        }

        /* ==========================================================================
           Global Resets & Base Styles
           ========================================================================== */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body.forge {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-base);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        /* Enforce word-break for all text */
        .brass, .grain, .wire {
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .brass {
            white-space: normal; /* Prevent nowrap on headings */
        }

        /* Flexbox safety rules */
        .weld, .visor, .mesh, .plinth, .glare, .halo, .gleam, .luster {
            display: flex;
            flex-wrap: wrap;
        }

        .weld > *, .visor > *, .mesh > *, .plinth > *, .glare > *, .halo > *, .gleam > *, .luster > * {
            min-width: 0;
        }

        a { text-decoration: none; color: inherit; }
        ul, ol { list-style: none; }

        /* ==========================================================================
           Typography
           ========================================================================== */
        .brass-h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brass-h2 {
            font-size: clamp(2rem, 3vw, 2.75rem);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.01em;
            margin-bottom: 1rem;
        }

        .brass-h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #ffffff;
        }

        .grain-lead {
            font-size: 1.125rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.7;
        }

        .grain-body {
            font-size: 1rem;
            color: var(--text-secondary);
        }

        /* ==========================================================================
           Navigation (Apex & Visor)
           ========================================================================== */
        .apex {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: var(--bg-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-subtle);
        }

        .visor {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 1rem 2rem;
            align-items: center;
            justify-content: space-between;
        }

        .stamp img {
            height: 32px;
            width: auto;
            display: block;
        }

        .mesh {
            gap: 2rem;
            align-items: center;
        }

        .wire {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: var(--transition-base);
            position: relative;
        }

        .wire:hover {
            color: var(--text-primary);
        }

        .wire.active {
            color: var(--brand-primary);
        }

        .wire.active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--brand-primary);
            border-radius: 2px;
            box-shadow: 0 0 10px var(--brand-primary);
        }

        /* ==========================================================================
           Main Container
           ========================================================================== */
        .casing {
            display: block;
            padding-top: 80px; /* Offset for fixed [role="navigation"] */
        }

        /* ==========================================================================
           Hero Section (Glare) - Strict Reverse Split Blueprint
           ========================================================================== */
        .glare {
            position: relative;
            min-height: 90vh;
            background: radial-gradient(circle at top right, rgba(70, 155, 240, 0.1) 0%, transparent 60%);
            align-items: center;
            /* Container goes full width to allow image to touch left edge */
        }

        .glare-lens-foil {
            flex: 1 1 55%;
            height: 100%;
            min-height: 60vh;
            position: relative;
            /* Flush to the left edge, subtle right side rounding */
            border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
            overflow: hidden;
            box-shadow: 20px 0 50px rgba(0,0,0,0.3);
        }

        .glare-lens-foil::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, rgba(10, 15, 28, 0) 60%, rgba(10, 15, 28, 1) 100%);
            pointer-events: none;
        }

        .lens {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center left;
            display: block;
        }

        .glare-foil {
            flex: 1 1 35%;
            padding: 4rem 4rem 4rem 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            max-width: 650px;
        }

        .rivet {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2.5rem;
            background-color: var(--brand-primary);
            color: #ffffff;
            font-size: 1.125rem;
            font-weight: 600;
            border-radius: 100px;
            transition: var(--transition-base);
            box-shadow: 0 4px 15px rgba(70, 155, 240, 0.3);
            border: 1px solid rgba(255,255,255,0.1);
            align-self: flex-start;
        }

        .rivet:hover {
            background-color: var(--brand-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(70, 155, 240, 0.5);
        }

        .rivet-secondary {
            background-color: transparent;
            border: 1px solid var(--border-subtle);
            box-shadow: none;
        }
        
        .rivet-secondary:hover {
            background-color: var(--bg-elevated);
            border-color: var(--brand-primary);
            box-shadow: var(--shadow-neon);
        }

        /* ==========================================================================
           Performance Metrics Section (Gleam)
           ========================================================================== */
        .gleam {
            padding: 8rem 2rem;
            background-color: var(--bg-base);
            position: relative;
        }

        .gleam::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: var(--max-width);
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
        }

        .gleam-foil {
            max-width: var(--max-width);
            margin: 0 auto;
            width: 100%;
        }

        .apex-grain {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 5rem;
        }

        .gleam-weld {
            gap: 2rem;
            justify-content: center;
        }

        .plate {
            flex: 1 1 300px;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 3rem 2rem;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .plate::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at top left, rgba(70, 155, 240, 0.05), transparent 70%);
            z-index: -1;
            opacity: 0;
            transition: var(--transition-base);
        }

        .plate:hover {
            transform: translateY(-5px);
            border-color: rgba(70, 155, 240, 0.3);
            box-shadow: var(--shadow-soft);
        }

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

        .etch-wrap {
            width: 64px;
            height: 64px;
            border-radius: var(--radius-md);
            background: var(--bg-elevated);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            border: 1px solid rgba(255,255,255,0.05);
            color: var(--brand-primary);
        }

        /* ==========================================================================
           Ecosystem Preview (Luster)
           ========================================================================== */
        .luster {
            padding: 8rem 2rem;
            background-color: var(--bg-surface);
            border-top: 1px solid var(--border-subtle);
        }

        .luster-foil {
            max-width: var(--max-width);
            margin: 0 auto;
            width: 100%;
        }

        .luster-weld {
            gap: 4rem;
            align-items: center;
        }

        .luster-grain {
            flex: 1 1 400px;
        }

        .luster-visual {
            flex: 1 1 500px;
            display: flex;
            gap: 1.5rem;
            flex-direction: column;
        }

        .ingot {
            background: var(--bg-elevated);
            border-radius: var(--radius-md);
            padding: 2rem;
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
            border: 1px solid var(--border-subtle);
            transition: var(--transition-base);
        }

        .ingot:hover {
            border-color: var(--brand-primary);
            box-shadow: var(--shadow-neon);
        }

        .ingot .etch-wrap {
            margin-bottom: 0;
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            background: rgba(70, 155, 240, 0.1);
        }

        /* ==========================================================================
           Site Paths (Halo)
           ========================================================================== */
        .halo {
            padding: 8rem 2rem;
            background: linear-gradient(180deg, var(--bg-base) 0%, #060913 100%);
        }

        .halo-foil {
            max-width: var(--max-width);
            margin: 0 auto;
            width: 100%;
        }

        .halo-weld {
            gap: 2rem;
            margin-top: 4rem;
        }

        .slab {
            flex: 1 1 calc(50% - 2rem);
            min-width: 300px;
            background: var(--bg-surface);
            border-radius: var(--radius-lg);
            padding: 3rem;
            border: 1px solid var(--border-subtle);
            position: relative;
            transition: var(--transition-base);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .slab:hover {
            background: var(--bg-elevated);
            transform: scale(1.02);
        }

        .slab-apex {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .slab-apex .brass-h3 {
            margin-bottom: 0;
        }

        .slab-fuse {
            margin-top: 2rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--brand-primary);
            font-weight: 600;
            transition: var(--transition-base);
        }

        .slab:hover .slab-fuse {
            gap: 1rem;
        }

        /* Absolute link covering the slab */
        .slab-wire-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
        }

        /* ==========================================================================
           Footer (Heel & Plinth)
           ========================================================================== */
        .heel {
            background-color: #03050a;
            padding: 5rem 2rem 2rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .plinth {
            max-width: var(--max-width);
            margin: 0 auto;
            gap: 4rem;
            justify-content: space-between;
        }

        .plinth-weld {
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            flex: 1 1 auto;
        }

        .node {
            flex: 1 1 150px;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .node .brass-h3 {
            font-size: 1.1rem;
            color: #ffffff;
            margin-bottom: 0.5rem;
        }

        .node .wire {
            color: var(--text-muted);
            transition: var(--transition-base);
        }

        .node .wire:hover {
            color: var(--brand-primary);
        }

        .heel-brand {
            flex: 0 0 250px;
        }

        .heel-brand .brass {
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 1rem;
            letter-spacing: 1px;
        }

        .heel-bottom {
            max-width: var(--max-width);
            margin: 4rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.05);
            text-align: center;
            color: var(--text-muted);
            font-size: 0.875rem;
        }

        /* ==========================================================================
           Responsive Design
           ========================================================================== */
        @media (max-width: 1024px) {
            .glare-lens-foil { flex: 1 1 50%; }
            .glare-foil { flex: 1 1 50%; padding: 3rem 5%; }
            .brass-h1 { font-size: 3rem; }
            .luster-weld { flex-direction: column; }
        }

        @media (max-width: 768px) {
            .glare {
                flex-direction: column;
                padding-top: 4rem; /* For mobile [role="navigation"] offset */
            }
            
            .glare-lens-foil {
                flex: none;
                width: 100%;
                min-height: 40vh;
                border-radius: 0 0 24px 24px;
                order: 2; /* Move image below text on mobile */
            }

            .glare-foil {
                flex: none;
                width: 100%;
                padding: 3rem 1.5rem;
                order: 1;
                max-width: 100%;
            }

            .mesh {
                display: none; /* In a real scenario, this would be a hamburger menu */
            }

            .plate, .slab {
                flex: 1 1 100%;
            }

            .plinth {
                flex-direction: column;
                gap: 2rem;
            }
        }

.bezel-apex,
.bezel-apex *,
.bezel-apex *::before,
.bezel-apex *::after {
    box-sizing: border-box;
}

.bezel-apex [role="navigation"],
.bezel-apex div,
.bezel-apex section,
.bezel-apex article,
.bezel-apex aside,
.bezel-apex p,
.bezel-apex h1,
.bezel-apex h2,
.bezel-apex h3,
.bezel-apex h4,
.bezel-apex h5,
.bezel-apex h6,
.bezel-apex a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.bezel-apex p,
.bezel-apex h1,
.bezel-apex h2,
.bezel-apex h3,
.bezel-apex h4,
.bezel-apex h5,
.bezel-apex h6 {
    text-decoration: none;
}

.bezel-apex img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.bezel-apex {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.bezel-apex a.bezel-wire {
    --aisite-shell-nav-padding: 0;
    --aisite-shell-nav-margin: 0;
    --aisite-shell-nav-line-height: normal;
    --aisite-shell-nav-display: inline;
    --aisite-shell-nav-height: auto;
    --aisite-shell-nav-min-height: auto;
}

.bezel-apex a.bezel-wire,
.bezel-apex a.bezel-wire:hover,
.bezel-apex a.bezel-wire:focus,
.bezel-apex a.bezel-wire:active,
.bezel-apex a.bezel-wire.active,
.bezel-apex a.bezel-wire[aria-current="page"] {
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    padding: var(--aisite-shell-nav-padding, 0);
    margin: var(--aisite-shell-nav-margin, 0);
    line-height: var(--aisite-shell-nav-line-height, normal);
    display: var(--aisite-shell-nav-display, inline);
    height: var(--aisite-shell-nav-height, auto);
    min-height: var(--aisite-shell-nav-min-height, auto);
}

.bezel-apex .bezel-wire{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.bezel-apex .bezel-visor, .bezel-apex .bezel-mesh{
            display: flex;
            flex-wrap: wrap;
        }

.bezel-apex .bezel-visor > *, .bezel-apex .bezel-mesh > *{
            min-width: 0;
        }

.bezel-apex{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(18, 26, 47, 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

.bezel-apex .bezel-visor{
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem 2rem;
            align-items: center;
            justify-content: space-between;
        }

.bezel-apex .bezel-stamp img{
            height: 32px;
            width: auto;
            display: block;
        }

.bezel-apex .bezel-mesh{
            gap: 2rem;
            align-items: center;
        }

.bezel-apex .bezel-wire{
            font-size: 0.95rem;
            font-weight: 500;
            color: #94a3b8;
            transition: all 0.25s ease;
            position: relative;
        }

.bezel-apex .bezel-wire:hover{
            color: #f8fafc;
        }

.bezel-apex .bezel-wire.active{
            color: #469bf0;
        }

.bezel-apex .bezel-wire.active::after{
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #469bf0;
            border-radius: 2px;
            box-shadow: 0 0 10px #469bf0;
        }

@media (max-width: 768px){.bezel-apex .bezel-mesh{
                display: none; 
            }}

.bezel-apex {
    background: rgb(18, 26, 47);
    background-image: none;
}

.plinth-heel,
.plinth-heel *,
.plinth-heel *::before,
.plinth-heel *::after {
    box-sizing: border-box;
}

.plinth-heel [role="navigation"],
.plinth-heel div,
.plinth-heel section,
.plinth-heel article,
.plinth-heel aside,
.plinth-heel p,
.plinth-heel h1,
.plinth-heel h2,
.plinth-heel h3,
.plinth-heel h4,
.plinth-heel h5,
.plinth-heel h6,
.plinth-heel a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.plinth-heel p,
.plinth-heel h1,
.plinth-heel h2,
.plinth-heel h3,
.plinth-heel h4,
.plinth-heel h5,
.plinth-heel h6 {
    text-decoration: none;
}

.plinth-heel img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.plinth-heel {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.plinth-heel a,
.plinth-heel a:hover,
.plinth-heel a:focus,
.plinth-heel a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.plinth-heel .plinth-brass, .plinth-heel .plinth-grain, .plinth-heel .plinth-wire{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.plinth-heel .plinth-brass{
            white-space: normal; 
        }

.plinth-heel .plinth-plinth{
            display: flex;
            flex-wrap: wrap;
        }

.plinth-heel .plinth-plinth > *{
            min-width: 0;
        }

.plinth-heel .plinth-brass-h3{
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #ffffff;
        }

.plinth-heel .plinth-grain-body{
            font-size: 1rem;
            color: #94a3b8;
        }

.plinth-heel .plinth-wire{
            font-size: 0.95rem;
            font-weight: 500;
            color: #94a3b8;
            transition: all 0.25s ease;
            position: relative;
        }

.plinth-heel .plinth-wire:hover{
            color: #f8fafc;
        }

.plinth-heel .plinth-wire.active{
            color: #469bf0;
        }

.plinth-heel .plinth-wire.active::after{
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #469bf0;
            border-radius: 2px;
            box-shadow: 0 0 10px #469bf0;
        }

.plinth-heel{
            background-color: #03050a;
            padding: 5rem 2rem 2rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

.plinth-heel .plinth-plinth{
            max-width: 1280px;
            margin: 0 auto;
            gap: 4rem;
            justify-content: space-between;
        }

.plinth-heel .plinth-plinth-weld{
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            flex: 1 1 auto;
        }

.plinth-heel .plinth-node{
            flex: 1 1 150px;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

.plinth-heel .plinth-node .plinth-brass-h3{
            font-size: 1.1rem;
            color: #ffffff;
            margin-bottom: 0.5rem;
        }

.plinth-heel .plinth-node .plinth-wire{
            color: #64748b;
            transition: all 0.25s ease;
        }

.plinth-heel .plinth-node .plinth-wire:hover{
            color: #469bf0;
        }

.plinth-heel .plinth-heel-brand{
            flex: 0 0 250px;
        }

.plinth-heel .plinth-heel-brand .plinth-brass{
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 1rem;
            letter-spacing: 1px;
        }

.plinth-heel .plinth-heel-bottom{
            max-width: 1280px;
            margin: 4rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.05);
            text-align: center;
            color: #64748b;
            font-size: 0.875rem;
        }

@media (max-width: 768px){.plinth-heel .plinth-plinth{
                flex-direction: column;
                gap: 2rem;
            }}