/* CSS Variables - Inherited from visual contract */
        :root {
            --wps-accent: #e5ce59;
            --wps-accent-hover: #d4be48;
            --wps-dark-surface: #1a1d24;
            --wps-gray-bg: #f5f7f9;
            --wps-text-main: #1d1d1f;
            --wps-text-muted: #6e6e73;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 10px;
            --shadow-1: 0 2px 8px rgba(0,0,0,0.04);
            --shadow-2: 0 12px 32px rgba(0,0,0,0.12);
            --shadow-3: 0 20px 48px rgba(0,0,0,0.08);
            --transition-standard: 0.35s ease;
            --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        /* Reset & Base */
        *, *::before, *::after {
            box-sizing: border-box;
            min-width: 0; /* Flexbox safety */
        }
        
        body {
            margin: 0;
            font-family: var(--font-family-base);
            color: var(--wps-text-main);
            background-color: #ffffff;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            word-break: break-word;
            overflow-wrap: break-word;
        }

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

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

        /* Typography */
        .crown-lg {
            line-height: 1.2;
            color: #0f1115;
            font-weight: 700;
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            letter-spacing: -0.02em;
            margin: 0 0 24px 0;
            white-space: normal;
        }

        .crown-md {
            line-height: 1.3;
            color: #0f1115;
            font-weight: 700;
            font-size: clamp(2rem, 3vw, 2.5rem);
            letter-spacing: -0.01em;
            margin: 0 0 16px 0;
            white-space: normal;
        }

        .crown-sm {
            line-height: 1.4;
            color: #0f1115;
            font-weight: 600;
            font-size: 1.25rem;
            margin: 0 0 12px 0;
        }

        .script-lead {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            color: var(--wps-text-muted);
            margin: 0 0 32px 0;
            word-break: keep-all;
        }

        .script-base {
            font-size: 1rem;
            color: var(--wps-text-muted);
            margin: 0 0 16px 0;
        }

        /* Mandatory Header Styles (Direct reuse logic applied to classes) */
        .brow {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            width: 100%;
        }

        .spine {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

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

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

        .atlas {
            display: flex;
            gap: 32px;
            flex-wrap: wrap;
        }

        .knot {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--wps-text-main);
            padding: 8px 0;
            position: relative;
        }

        .knot:hover {
            color: var(--wps-accent-hover);
        }

        .knot.active {
            color: var(--wps-accent-hover);
        }

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

        /* Layout & Containers */
        .ream {
            max-width: 1200px; /* Aligned with visual contract, adjusted for template grid needs */
            margin: 0 auto;
            padding: 80px 24px;
        }

        .ream-sm {
            max-width: 900px; /* Homepage core text width */
            margin: 0 auto;
            padding: 80px 24px;
        }

        .flex-batch {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
        }

        /* Section 1: Hero / Search Discovery */
        .cover {
            padding-top: 60px;
            padding-bottom: 60px;
            background: linear-gradient(180deg, var(--wps-gray-bg) 0%, #ffffff 100%);
            text-align: center;
        }

        .vertical-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-wrap: wrap;
        }

        .search-shell {
            width: 100%;
            max-width: 640px;
            margin: 0 auto 24px;
            position: relative;
            display: flex;
            flex-wrap: wrap;
            box-shadow: var(--shadow-2);
            border-radius: var(--radius-md);
            background: #fff;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.08);
            transition: box-shadow var(--transition-standard);
        }

        .search-shell:focus-within {
            box-shadow: var(--shadow-3);
            border-color: var(--wps-accent);
        }

        .search-ribbon {
            flex: 1;
            min-width: 200px;
            border: none;
            padding: 16px 24px;
            font-size: 1.1rem;
            outline: none;
            color: var(--wps-text-main);
            background: transparent;
        }

        .stamp {
            padding: 16px 40px;
            background-color: var(--wps-accent);
            color: #0f1115;
            font-weight: 600;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: all var(--transition-standard);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(229, 206, 89, 0.3);
        }

        .stamp:hover {
            background-color: var(--wps-accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(229, 206, 89, 0.4);
        }

        .search-stamp {
            border-radius: 0;
            box-shadow: none;
        }
        
        .search-stamp:hover {
            transform: none;
            box-shadow: none;
        }

        .cloud-batch {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            align-items: center;
        }

        .cloud-script {
            font-size: 0.9rem;
            color: var(--wps-text-muted);
        }

        .cloud-knot {
            font-size: 0.9rem;
            color: var(--wps-text-main);
            background: #fff;
            padding: 4px 12px;
            border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.1);
            transition: all var(--transition-standard);
        }

        .cloud-knot:hover {
            border-color: var(--wps-accent);
            color: var(--wps-accent-hover);
            background: var(--wps-gray-bg);
        }

        /* Section 2: Gallery Grid (Article) */
        .deck {
            background-color: #ffffff;
        }

        .folio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 32px;
            margin-top: 48px;
        }

        .folio {
            display: flex;
            flex-direction: column;
            border-radius: var(--radius-lg);
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: var(--shadow-1);
            overflow: hidden;
            transition: all var(--transition-standard);
            cursor: pointer;
        }

        .folio:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-2);
        }

        .plate-shell {
            width: 100%;
            aspect-ratio: 16/9;
            background-color: var(--wps-gray-bg);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .plate-shell img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-standard);
        }

        .folio:hover .plate-shell img {
            transform: scale(1.05);
        }

        /* CSS generated pattern for non-image templates */
        .pattern-ppt {
            background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
            display: flex;
            flex-wrap: wrap;
            padding: 24px;
            gap: 8px;
        }
        
        .pattern-doc {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            display: flex;
            flex-direction: column;
            padding: 24px;
            gap: 12px;
        }

        .pattern-xls {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
            padding: 24px;
        }

        .shape-line {
            height: 8px;
            background: rgba(255,255,255,0.7);
            border-radius: 4px;
            min-width: 0;
        }
        .shape-box {
            background: rgba(255,255,255,0.7);
            border-radius: 4px;
            height: 100%;
            min-width: 0;
        }

        .folio-script {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            flex: 1;
        }

        .ribbon-batch {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: auto;
            padding-top: 16px;
        }

        .mark-ribbon {
            font-size: 0.75rem;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            background: var(--wps-gray-bg);
            color: var(--wps-text-muted);
            font-weight: 500;
        }

        .mark-accent {
            background: rgba(229, 206, 89, 0.2);
            color: #8c7b20;
        }

        /* Section 3: PPT & Presentation (Div) */
        .quire {
            background-color: var(--wps-dark-surface);
            color: #ffffff;
            padding: 100px 0;
        }

        .quire .crown-md {
            color: #ffffff;
        }

        .quire .script-lead {
            color: rgba(255,255,255,0.7);
        }

        .slate-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-top: 48px;
        }

        .slate {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            padding: 32px;
            transition: all var(--transition-standard);
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
        }

        .slate:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-4px);
        }

        .glyph-shell {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(229, 206, 89, 0.2) 0%, rgba(229, 206, 89, 0.05) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
            border: 1px solid rgba(229, 206, 89, 0.3);
        }

        .glyph-shell svg {
            width: 24px;
            height: 24px;
            fill: var(--wps-accent);
        }

        .slate .crown-sm {
            color: #ffffff;
        }

        .slate .script-base {
            color: rgba(255,255,255,0.6);
        }

        /* Section 4: Document & Resume (Section) */
        .acquire-deck {
            background-color: var(--wps-gray-bg);
            position: relative;
        }

        .memo-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            align-items: center;
        }

        .memo-script-area {
            flex: 1;
            min-width: 300px;
        }

        .memo-visual-area {
            flex: 1.5;
            min-width: 320px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .memo {
            background: #ffffff;
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-1);
            border: 1px solid rgba(0,0,0,0.05);
            display: flex;
            align-items: flex-start;
            gap: 16px;
            flex-wrap: wrap;
            transition: all var(--transition-standard);
        }

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

        .memo-glyph {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .memo-glyph.doc { background: #e3f2fd; color: #1565c0; }
        .memo-glyph.xls { background: #e8f5e9; color: #2e7d32; }

        .memo-glyph svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        /* Footer */
        .sole {
            background-color: #ffffff;
            border-top: 1px solid rgba(0,0,0,0.08);
            padding: 60px 24px;
            text-align: center;
        }

        .bind {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
        }

        .brand-script {
            font-size: 1.5rem;
            font-weight: 800;
            color: #0f1115;
            letter-spacing: 0.05em;
        }

        .notes {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .notes a {
            color: var(--wps-text-muted);
            font-size: 0.9rem;
        }

        .notes a:hover {
            color: var(--wps-text-main);
        }

        .copyright {
            color: var(--wps-text-muted);
            font-size: 0.85rem;
            margin-top: 24px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .atlas {
                display: none; /* Simplification for snippet constraint, usually would be a hamburger */
            }
            .spine {
                justify-content: center;
            }
            .crown-lg {
                font-size: 2rem;
            }
            .folio-grid,
            .slate-grid,
            .memo-visual-area {
                grid-template-columns: 1fr;
            }
            .memo-layout {
                flex-direction: column;
            }
            .search-shell {
                flex-direction: column;
            }
            .stamp {
                width: 100%;
            }
        }

.spine-brow {
    font-family: var(--font-sys);
    line-height: 1.6;
    word-break: break-word;
    color: var(--wps-text-main);
}
.spine-brow,
.spine-brow *,
.spine-brow *::before,
.spine-brow *::after {
    box-sizing: border-box;
}

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

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

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

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

.spine-brow a.spine-knot.spine-index {
    --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;
}

.spine-brow a.spine-knot.spine-index,
.spine-brow a.spine-knot.spine-index:hover,
.spine-brow a.spine-knot.spine-index:focus,
.spine-brow a.spine-knot.spine-index:active,
.spine-brow a.spine-knot.spine-index.active,
.spine-brow a.spine-knot.spine-index[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);
}

.spine-brow .spine-spine, .spine-brow .spine-atlas{
            display: flex;
            flex-wrap: wrap;
        }

.spine-brow .spine-spine > *, .spine-brow .spine-atlas > *{
            min-width: 0;
        }

.spine-brow{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            z-index: 1000;
        }

.spine-brow .spine-spine{
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            height: 72px;
            align-items: center;
            justify-content: space-between;
        }

.spine-brow .spine-signet{
            width: 100px;
        }

.spine-brow .spine-atlas{
            gap: 32px;
            align-items: center;
        }

.spine-brow .spine-knot.spine-index{
            font-size: 0.95rem;
            font-weight: 500;
            color: #6e6e73;
            position: relative;
        }

.spine-brow .spine-knot.spine-index:hover, .spine-brow .spine-knot.spine-index.active{
            color: #0f1115;
        }

.spine-brow .spine-knot.spine-index.active::after{
            content: '';
            position: absolute;
            bottom: -24px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #e5ce59;
            border-radius: 3px 3px 0 0;
        }

@media (max-width: 768px){.spine-brow .spine-atlas{ display: none;  }

.spine-brow .spine-spine{ justify-content: center; }}

.spine-brow {
    background: rgb(255, 255, 255);
    background-image: none;
}

.bind-sole {
    font-family: var(--font-sys);
    line-height: 1.6;
    word-break: break-word;
    color: var(--wps-text-main);
}
.bind-sole,
.bind-sole *,
.bind-sole *::before,
.bind-sole *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.bind-sole .bind-batch, .bind-sole .bind-bind{
            display: flex;
            flex-wrap: wrap;
        }

.bind-sole .bind-batch > *, .bind-sole .bind-bind > *{
            min-width: 0;
        }

.bind-sole{
            background-color: #f0f2f5;
            padding: 80px 24px 40px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }

.bind-sole .bind-bind{
            max-width: 1280px;
            margin: 0 auto;
            justify-content: space-between;
            gap: 48px;
            margin-bottom: 60px;
        }

.bind-sole .bind-crown{
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 1px;
            color: #0f1115;
            display: block;
            margin-bottom: 16px;
        }

.bind-sole .bind-script{
            color: #6e6e73;
            font-size: 0.95rem;
        }

.bind-sole .bind-bind .bind-batch{
            gap: 40px;
        }

.bind-sole .bind-bind .bind-batch .bind-shell{
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

.bind-sole .bind-bind .bind-knot{
            color: #6e6e73;
            font-size: 0.95rem;
        }

.bind-sole .bind-bind .bind-knot:hover{
            color: #0f1115;
        }

.bind-sole .bind-tail{
            max-width: 1280px;
            margin: 0 auto;
            padding-top: 32px;
            border-top: 1px solid rgba(0,0,0,0.05);
            text-align: center;
        }

@media (max-width: 768px){.bind-sole .bind-bind{ flex-direction: column; }}