/* ==========================================================================
           Foundation & Reset
           ========================================================================== */
        :root {
            --color-bg-base: #050505;
            --color-bg-surface: #121212;
            --color-bg-elevated: #1a1a1a;
            --color-accent: #22b7d8;
            --color-accent-dim: rgba(34, 183, 216, 0.15);
            --color-ink-primary: #f5f5f7;
            --color-ink-secondary: #a1a1a6;
            --color-ink-tertiary: #6e6e73;
            --color-border: rgba(255, 255, 255, 0.08);
            --color-border-hover: rgba(255, 255, 255, 0.15);
            
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 32px;
            
            --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
            --shadow-md: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
            --shadow-lg: 0 24px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
            
            --transition-base: all 0.25s ease;
            --space-layout: 5vw;
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            min-width: 0; /* Flexbox safety */
        }

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

        a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition-base);
        }

        img, svg {
            display: block;
            max-width: 100%;
            height: auto;
        }

        /* ==========================================================================
           Typography
           ========================================================================== */
        .head-xl {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
            white-space: normal;
            color: var(--color-ink-primary);
        }

        .head-lg {
            font-size: clamp(2rem, 3vw, 3rem);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.01em;
            white-space: normal;
        }

        .head-md {
            font-size: clamp(1.25rem, 2vw, 1.75rem);
            font-weight: 600;
            line-height: 1.3;
            white-space: normal;
        }

        .head-sm {
            font-size: 1.125rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .ink-lead {
            font-size: clamp(1.125rem, 1.5vw, 1.375rem);
            color: var(--color-ink-secondary);
            line-height: 1.7;
        }

        .ink-base {
            font-size: 1rem;
            color: var(--color-ink-secondary);
            line-height: 1.6;
            word-break: keep-all;
        }

        .ink-dim {
            font-size: 0.875rem;
            color: var(--color-ink-tertiary);
        }

        .highlight {
            background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ==========================================================================
           Layout & Vaults (Containers)
           ========================================================================== */
        .vault {
            width: 100%;
            max-width: 1320px;
            margin: 0 auto;
            padding: 6rem var(--space-layout);
        }

        .tray {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .tray-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .tray-split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        @media (max-width: 1024px) {
            .tray-split { gap: 2rem; }
            .vault { padding: 4rem var(--space-layout); }
        }

        @media (max-width: 768px) {
            .tray-split { grid-template-columns: 1fr; }
            .tray-grid { grid-template-columns: 1fr; }
            .vault { padding: 3rem var(--space-layout); }
        }

        /* ==========================================================================
           Navigation (Apex & Ribbon)
           ========================================================================== */
        .apex {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(5, 5, 5, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--color-border);
            z-index: 1000;
        }

        .ribbon {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            max-width: 1440px;
            margin: 0 auto;
            padding: 1rem var(--space-layout);
            min-height: 72px;
        }

        .mark {
            display: flex;
            align-items: center;
            height: 32px;
        }

        .mark img {
            height: 100%;
            width: auto;
        }

        .roll {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

        .path {
            padding: 0.5rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: var(--color-ink-secondary);
            border-radius: var(--radius-sm);
            transition: var(--transition-base);
        }

        .path:hover {
            color: var(--color-ink-primary);
            background: rgba(255,255,255,0.05);
        }

        .path.active {
            color: var(--color-ink-primary);
            background: rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

        @media (max-width: 768px) {
            .roll {
                width: 100%;
                justify-content: center;
                margin-top: 1rem;
                padding-top: 1rem;
                border-top: 1px solid var(--color-border);
            }
        }

        /* ==========================================================================
           Components (Seals, Folios, Glyphs)
           ========================================================================== */
        .seal {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.875rem 1.75rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition-base);
            border: none;
            outline: none;
        }

        .seal-primary {
            background: var(--color-accent);
            color: #000;
            box-shadow: 0 4px 12px rgba(34, 183, 216, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
        }

        .seal-primary:hover {
            background: #28c9ed;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(34, 183, 216, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
        }

        .seal-ghost {
            background: transparent;
            color: var(--color-ink-primary);
            border: 1px solid var(--color-border);
        }

        .seal-ghost:hover {
            background: rgba(255,255,255,0.05);
            border-color: var(--color-border-hover);
        }

        .folio {
            background: var(--color-bg-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            transition: var(--transition-base);
            position: relative;
            overflow: hidden;
        }

        .folio:hover {
            border-color: var(--color-border-hover);
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }

        .folio::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            opacity: 0;
            transition: var(--transition-base);
        }

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

        .glyph {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: var(--color-bg-elevated);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            border: 1px solid var(--color-border);
            color: var(--color-accent);
        }

        .glyph svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        /* ==========================================================================
           Hero Stage (Blueprint: card_float)
           ========================================================================== */
        .stage {
            position: relative;
            min-height: 90vh;
            display: flex;
            align-items: flex-end;
            padding: 8rem 0 0;
            margin-top: 72px; /* Offset for fixed apex */
        }

        .stage-bg {
            position: absolute;
            top: 0; right: 0; bottom: 8%; left: 0;
            background: radial-gradient(circle at 70% 30%, var(--color-bg-elevated) 0%, var(--color-bg-base) 100%);
            border-bottom: 1px solid var(--color-border);
            overflow: hidden;
        }

        /* Tech grid in background */
        .stage-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: radial-gradient(circle at center, black, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
        }

        .stage-vault {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 var(--space-layout);
        }

        /* Floating Card aligned bottom-left overlapping the background edge */
        .stage-deck {
            background: rgba(18, 18, 18, 0.7);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-xl);
            padding: clamp(2rem, 4vw, 4rem);
            max-width: 800px;
            box-shadow: var(--shadow-lg);
            transform: translateY(4rem); /* The offset crossing the boundary */
            margin-bottom: 4rem;
        }

        .stage-batch {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 2.5rem;
        }

        /* ==========================================================================
           Specific Sections
           ========================================================================== */
        /* Capability - Components */
        .casing {
            position: relative;
            border-radius: var(--radius-lg);
            padding: 1px;
            background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
            box-shadow: var(--shadow-md);
        }
        
        .lens {
            border-radius: calc(var(--radius-lg) - 1px);
            width: 100%;
            background: var(--color-bg-base);
            display: block;
        }

        /* Workflow - Nodes */
        .node-tape {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-top: 2rem;
            border-left: 2px solid var(--color-border);
            padding-left: 2rem;
        }

        .node {
            position: relative;
        }

        .node::before {
            content: '';
            position: absolute;
            left: -2.3rem; /* Align with border */
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--color-bg-base);
            border: 2px solid var(--color-accent);
            box-shadow: 0 0 10px var(--color-accent-dim);
        }

        /* Ecosystem - Grid */
        .sheet {
            background: var(--color-bg-surface);
            border-radius: var(--radius-lg);
            padding: 3rem;
            border: 1px solid var(--color-border);
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: var(--transition-base);
        }

        .sheet:hover {
            background: var(--color-bg-elevated);
            border-color: rgba(34, 183, 216, 0.3);
        }

        .sheet-head {
            margin-bottom: 1rem;
        }

        .sheet-ink {
            margin-bottom: 2rem;
            flex-grow: 1;
        }

        /* FAQ Details */
        .memo-dl {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .memo-dl details {
            background: var(--color-bg-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .memo-dl summary {
            padding: 1.5rem;
            font-size: 1.125rem;
            font-weight: 600;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .memo-dl summary::-webkit-details-marker {
            display: none;
        }

        .memo-dl summary::after {
            content: '+';
            font-size: 1.5rem;
            color: var(--color-accent);
            transition: var(--transition-base);
        }

        .memo-dl details[open] summary::after {
            transform: rotate(45deg);
        }

        .memo-dl .ink-base {
            padding: 0 1.5rem 1.5rem;
            color: var(--color-ink-secondary);
        }

        /* Footer */
        .root {
            border-top: 1px solid var(--color-border);
            padding: 4rem var(--space-layout);
            background: var(--color-bg-base);
            text-align: center;
        }
        
        .root-mark {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 2px;
            color: var(--color-ink-primary);
            margin-bottom: 1rem;
        }

.ribbon-apex{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(5, 5, 5, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 1000;
        }

.ribbon-apex .ribbon-ribbon{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            max-width: 1440px;
            margin: 0 auto;
            padding: 1rem 5vw;
            min-height: 72px;
        }

.ribbon-apex .ribbon-mark{
            display: flex;
            align-items: center;
            height: 32px;
        }

.ribbon-apex .ribbon-mark img{
            height: 100%;
            width: auto;
        }

.ribbon-apex .ribbon-roll{
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

.ribbon-apex .ribbon-path{
            padding: 0.5rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #a1a1a6;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

.ribbon-apex .ribbon-path:hover{
            color: #f5f5f7;
            background: rgba(255,255,255,0.05);
        }

.ribbon-apex .ribbon-path.active{
            color: #f5f5f7;
            background: rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

@media (max-width: 768px){.ribbon-apex .ribbon-roll{
                width: 100%;
                justify-content: center;
                margin-top: 1rem;
                padding-top: 1rem;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }}

.ribbon-apex {
    background: rgb(5, 5, 5);
    background-image: none;
}

.base-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: var(--color-ink-primary);
}
.base-root,
.base-root *,
.base-root *::before,
.base-root *::after {
    box-sizing: border-box;
}

.base-root nav,
.base-root div,
.base-root section,
.base-root article,
.base-root aside,
.base-root p,
.base-root h1,
.base-root h2,
.base-root h3,
.base-root h4,
.base-root h5,
.base-root h6,
.base-root a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

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

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

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

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

.base-root .base-ink-dim{
            font-size: 0.875rem;
            color: #6e6e73;
        }

.base-root .base-path{
            padding: 0.5rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #a1a1a6;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

.base-root .base-path:hover{
            color: #f5f5f7;
            background: rgba(255,255,255,0.05);
        }

.base-root .base-path.active{
            color: #f5f5f7;
            background: rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }

.base-root{
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 4rem 5vw;
            background: #050505;
            text-align: center;
        }

.base-root .base-root-mark{
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 2px;
            color: #f5f5f7;
            margin-bottom: 1rem;
        }