/* ==========================================================================
           Base & Variables (Inherited from visual contract)
           ========================================================================== */
        :root {
            --color-primary: #6a3be2;
            --color-primary-dark: #4d26b0;
            --color-primary-light: #ece5fe;
            --color-bg-dark: #0f1016;
            --color-bg-light: #f8f9fc;
            --color-surface: #ffffff;
            --color-ink-main: #1d1d1f;
            --color-ink-sub: #6e6e73;
            --color-ink-inverse: #ffffff;
            --color-ink-inverse-sub: rgba(255, 255, 255, 0.7);
            
            --radius-lg: 22px;
            --radius-md: 16px;
            --radius-sm: 8px;
            
            --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
            --shadow-hover: 0 12px 32px rgba(106, 59, 226, 0.12);
            --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.2);
            
            --transition: 0.35s ease;
            --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

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

        body {
            font-family: var(--font-family);
            color: var(--color-ink-main);
            background-color: var(--color-bg-light);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

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

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

        /* Prevent text overflow */
        .prose, .crest, .prose-small, .crest-sub {
            word-break: break-word;
            overflow-wrap: break-word;
        }

        /* Flexbox safety rules */
        .flex-safe {
            display: flex;
            flex-wrap: wrap;
        }
        .flex-safe > * {
            min-width: 0;
        }

        /* ==========================================================================
           Layout Shell & Binder (Containers)
           ========================================================================== */
        .shell {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .binder {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ==========================================================================
           Navigation (Mandatory exact copy styles + adaptations)
           ========================================================================== */
        .crown {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(15, 16, 22, 0.85);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .ribbon {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            height: 72px;
        }

        .ribbon > * {
            min-width: 0;
        }

        .stamp {
            display: flex;
            align-items: center;
        }

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

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

        .index > * {
            min-width: 0;
        }

        .xref {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--color-ink-inverse-sub);
            position: relative;
            padding: 0.5rem 0;
        }

        .xref:hover {
            color: var(--color-ink-inverse);
        }

        .xref.active {
            color: var(--color-surface);
            font-weight: 600;
        }

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

        @media (max-width: 768px) {
            .index {
                display: none; /* Simplified for mobile in this static demo */
            }
        }

        /* ==========================================================================
           Typography & Prose
           ========================================================================== */
        .crest {
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.02em;
            white-space: normal;
        }

        .crest-stage {
            font-size: clamp(2.5rem, 5vw, 4rem);
            color: var(--color-ink-inverse);
            margin-bottom: 1.5rem;
        }

        .crest-binder {
            font-size: clamp(2rem, 3vw, 2.5rem);
            color: var(--color-ink-main);
            margin-bottom: 1rem;
            text-align: center;
        }

        .crest-sub {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--color-ink-main);
            margin-bottom: 0.75rem;
        }

        .prose {
            font-size: 1.125rem;
            color: var(--color-ink-sub);
            word-break: keep-all;
        }

        .prose-inverse {
            color: var(--color-ink-inverse-sub);
        }

        .prose-center {
            text-align: center;
            margin-bottom: 3rem;
        }

        .prose-small {
            font-size: 0.875rem;
            color: var(--color-ink-inverse-sub);
        }

        /* ==========================================================================
           Buttons & Inputs (Macro & Ink)
           ========================================================================== */
        .macro {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2.5rem;
            border-radius: 100px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all var(--transition);
            border: none;
            outline: none;
        }

        .ink-primary {
            background: var(--color-primary);
            color: var(--color-surface);
            box-shadow: 0 4px 12px rgba(106, 59, 226, 0.3);
        }

        .ink-primary:hover {
            background: var(--color-primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(106, 59, 226, 0.4);
        }

        /* ==========================================================================
           Section 1: Hero Stage (Intro)
           ========================================================================== */
        .stage-intro {
            position: relative;
            background: linear-gradient(145deg, var(--color-bg-dark) 0%, #1a1b2e 50%, #2a1b54 100%);
            padding: 180px 0 100px;
            text-align: center;
            overflow: hidden;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
        }

        .stage-intro > * {
            min-width: 0;
        }

        .stage-intro::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 0%, rgba(106, 59, 226, 0.15) 0%, transparent 70%);
            pointer-events: none;
        }

        .stage-intro .prose {
            color: var(--color-ink-inverse-sub);
            max-width: 680px;
            margin: 0 auto 3rem;
            font-size: 1.25rem;
        }

        /* Search Batch */
        .search-batch {
            display: flex;
            flex-wrap: wrap;
            max-width: 720px;
            margin: 0 auto 2rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 100px;
            padding: 8px;
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-dark);
        }

        .search-batch > * {
            min-width: 0;
        }

        .search-batch input {
            flex: 1 1 200px;
            background: transparent;
            border: none;
            padding: 0 1.5rem;
            color: var(--color-surface);
            font-size: 1.125rem;
            outline: none;
        }

        .search-batch input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .search-batch .macro {
            flex: 0 0 auto;
        }

        /* Tags */
        .tag-band {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 1rem;
        }

        .tag-band > * {
            min-width: 0;
        }

        .xref-tag {
            font-size: 0.875rem;
            color: var(--color-ink-inverse-sub);
            background: rgba(255, 255, 255, 0.08);
            padding: 0.25rem 1rem;
            border-radius: 100px;
            transition: all var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .xref-tag:hover {
            color: var(--color-surface);
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
        }

        @media (max-width: 768px) {
            .search-batch {
                border-radius: var(--radius-md);
                flex-direction: column;
                background: transparent;
                border: none;
                box-shadow: none;
                padding: 0;
                gap: 1rem;
            }
            .search-batch input {
                background: rgba(255, 255, 255, 0.1);
                padding: 1rem 1.5rem;
                border-radius: 100px;
                border: 1px solid rgba(255, 255, 255, 0.1);
            }
            .search-batch .macro {
                width: 100%;
            }
        }

        /* ==========================================================================
           Section 2: Gallery Ledger (Acquire)
           ========================================================================== */
        .ledger-acquire {
            padding: 100px 0;
            background: var(--color-bg-light);
            display: flex;
            flex-wrap: wrap;
        }

        .ledger-acquire > * {
            min-width: 0;
        }

        .sheaf-gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            margin-top: 3rem;
        }

        .sheaf-gallery > * {
            min-width: 0;
        }

        /* Large Featured Slide */
        .slide-featured {
            flex: 1 1 calc(58% - 12px);
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-soft);
            background: var(--color-surface);
            min-height: 400px;
            display: flex;
            flex-direction: column;
        }

        .slide-featured .plate {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .slide-featured:hover .plate {
            transform: scale(1.03);
        }

        .slide-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 3rem 2rem 2rem;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
            color: var(--color-surface);
        }

        .slide-overlay .crest-sub {
            color: var(--color-surface);
            font-size: 1.5rem;
        }

        /* Side Slides */
        .sheaf-side {
            flex: 1 1 calc(42% - 12px);
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .sheaf-side > * {
            min-width: 0;
        }

        .slide-sub {
            flex: 1;
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            box-shadow: var(--shadow-soft);
            border: 1px solid rgba(0,0,0,0.02);
            transition: all var(--transition);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .slide-sub:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .glyph-wrap {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: var(--color-primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: var(--color-primary);
        }

        .glyph-wrap svg {
            width: 28px;
            height: 28px;
            fill: currentColor;
        }

        @media (max-width: 992px) {
            .slide-featured,
            .sheaf-side {
                flex: 1 1 100%;
            }
            .slide-featured {
                min-height: 300px;
            }
        }

        /* ==========================================================================
           Section 3: Steps Ledger (Steps)
           ========================================================================== */
        .ledger-steps {
            padding: 80px 0 120px;
            background: var(--color-surface);
            display: flex;
            flex-wrap: wrap;
        }

        .ledger-steps > * {
            min-width: 0;
        }

        .sheaf-steps {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-top: 4rem;
        }

        .sheaf-steps > * {
            min-width: 0;
        }

        .cell-step {
            flex: 1 1 calc(33.333% - 2rem);
            position: relative;
            padding: 3rem 2rem;
            background: var(--color-bg-light);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(0,0,0,0.03);
            transition: all var(--transition);
        }

        .cell-step:hover {
            background: var(--color-surface);
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
        }

        .step-num {
            font-size: 4rem;
            font-weight: 800;
            color: var(--color-primary-light);
            line-height: 1;
            margin-bottom: 1rem;
            opacity: 0.6;
            transition: all var(--transition);
        }

        .cell-step:hover .step-num {
            color: var(--color-primary);
            opacity: 0.2;
        }

        @media (max-width: 768px) {
            .cell-step {
                flex: 1 1 100%;
            }
            .sheaf-steps {
                gap: 1.5rem;
            }
        }

        /* ==========================================================================
           Footer Base
           ========================================================================== */
        .base {
            background: var(--color-bg-dark);
            color: var(--color-ink-inverse-sub);
            padding: 4rem 0 2rem;
            margin-top: auto;
            display: flex;
            flex-wrap: wrap;
        }

        .base > * {
            min-width: 0;
        }

        .base-inner {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            gap: 1rem;
        }

        .base-inner > * {
            min-width: 0;
        }

        .base-brand {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-surface);
            letter-spacing: 1px;
        }

        .base-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        
        .base-links > * {
            min-width: 0;
        }

        .base-links a:hover {
            color: var(--color-surface);
        }

.ribbon-crown .ribbon-binder{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
        }

.ribbon-crown{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(15, 16, 22, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

.ribbon-crown .ribbon-ribbon{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            height: 72px;
            min-width: 0;
        }

.ribbon-crown .ribbon-stamp{
            display: flex;
            align-items: center;
            min-width: 0;
        }

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

.ribbon-crown .ribbon-index{
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            min-width: 0;
        }

.ribbon-crown .ribbon-xref{
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.35s ease;
            padding: 0.5rem 0;
            position: relative;
        }

.ribbon-crown .ribbon-xref:hover{
            color: #ffffff;
        }

.ribbon-crown .ribbon-xref.active{
            color: #ffffff;
        }

.ribbon-crown .ribbon-xref.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #6a3be2;
            border-radius: 2px;
        }

@media (max-width: 768px){.ribbon-crown .ribbon-index{
                display: none; 
            }}

.ribbon-crown {
    background: rgb(15, 16, 22);
    background-image: none;
}

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

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

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

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

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

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

.spine-base .spine-binder{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
        }

.spine-base .spine-xref{
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.35s ease;
            padding: 0.5rem 0;
            position: relative;
        }

.spine-base .spine-xref:hover{
            color: #ffffff;
        }

.spine-base .spine-xref.active{
            color: #ffffff;
        }

.spine-base .spine-xref.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #6a3be2;
            border-radius: 2px;
        }

.spine-base{
            background: #0f1016;
            color: rgba(255, 255, 255, 0.7);
            padding: 8rem 0 2rem;
            margin-top: auto;
        }

.spine-base .spine-spine{
            display: flex;
            flex-wrap: wrap;
            gap: 8rem;
            justify-content: space-between;
            min-width: 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 4rem;
            margin-bottom: 2rem;
        }

.spine-base .spine-spine-col{
            flex: 1 1 200px;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

.spine-base .spine-spine-col .spine-crest{
            color: #ffffff;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

.spine-base .spine-spine-col .spine-xref{
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

.spine-base .spine-spine-col .spine-xref:hover{
            color: #ece5fe;
            padding-left: 4px;
        }

.spine-base .spine-endcap{
            text-align: center;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.4);
        }