/* Reset & Base Variables */
:root {
    --primary: #5d3ae5;
    --primary-hover: #4a2ec2;
    --bg-dark: #0a0514;
    --bg-dark-alt: #140d26;
    --bg-light: #ffffff;
    --bg-muted: #f8f7fd;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --text-inv: #ffffff;
    --text-inv-muted: #a19bb8;
    --radius-lg: 24px;
    --radius-md: 20px;
    --transition: 0.25s ease;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

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

/* Typography Constraints */
.word-break {
    word-break: break-word;
    overflow-wrap: break-word;
}
.crown-prose {
    white-space: normal;
}
.prose-prose {
    word-break: keep-all;
}

/* Header & Nav (Inherited) */
.peak {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.crest {
    width: 120px;
    flex-shrink: 0;
}

.roster {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}

.knot {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

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

.knot.active {
    color: var(--primary);
    font-weight: 600;
}

/* Main Structure */
.shell {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Section 1: Hero / Focal (<article>) */
.focal {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--text-inv);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.focal-vault {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.focal-vault > * {
    min-width: 0;
}

.focal-prose {
    flex: 1 1 500px;
    word-break: break-word;
}

.focal-crown {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    white-space: normal;
}

.focal-crown span {
    color: #a890fe; /* Accent text */
}

.focal-desc {
    font-size: 18px;
    color: var(--text-inv-muted);
    margin-bottom: 40px;
    max-width: 480px;
    word-break: keep-all;
}

.nib-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--primary);
    color: var(--text-inv);
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(93, 58, 229, 0.4);
    transform: translateY(0);
}

.nib-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 58, 229, 0.5);
    color: var(--text-inv);
}

.focal-stage {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.focal-glyph {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Background grid effect for focal */
.focal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

/* Section 2: Gallery (<aside>) */
.batch {
    padding: 100px 24px;
    background: var(--bg-light);
}

.batch-vault {
    max-width: 1200px;
    margin: 0 auto;
}

.batch-crown-shell {
    text-align: center;
    margin-bottom: 64px;
}

.batch-crown {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    white-space: normal;
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.folio {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

.folio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(93, 58, 229, 0.2);
}

.folio-glyph-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.folio-crown {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    white-space: normal;
}

.folio-prose {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
    word-break: keep-all;
}

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

.folio-node {
    font-size: 13px;
    color: var(--primary);
    background: rgba(93, 58, 229, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 500;
}

/* Section 3: Benefits (<div>) */
.sheaf {
    padding: 80px 24px;
    background: var(--bg-muted);
}

.sheaf-vault {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

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

.sheaf-prose-area {
    flex: 1 1 400px;
    word-break: break-word;
}

.sheaf-crown {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 20px;
    white-space: normal;
}

.sheaf-desc {
    color: var(--text-muted);
    font-size: 16px;
    word-break: keep-all;
}

.sheaf-sheet-area {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sheet {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sheet-glyph {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(93, 58, 229, 0.1), rgba(93, 58, 229, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.sheet-shell {
    word-break: break-word;
}

.sheet-crown {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: normal;
}

.sheet-prose {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer (Inherited shell) */
.root {
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 60px 24px 40px;
}

.root-vault {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bind {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.ledge {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.ledge .knot {
    font-size: 14px;
}

.root-prose {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .ribbon {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .roster {
        gap: 16px;
        justify-content: center;
    }
    .focal {
        padding: 60px 20px;
        text-align: center;
    }
    .focal-prose {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .sheaf-vault {
        padding: 40px 24px;
        text-align: center;
    }
    .sheet {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.ribbon-peak .ribbon-ribbon, .ribbon-peak .ribbon-roster{
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
            word-break: break-word;
            overflow-wrap: break-word;
        }

.ribbon-peak{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(10, 5, 20, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

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

.ribbon-peak .ribbon-crest{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.ribbon-peak .ribbon-crest img{
            height: 32px;
            width: auto;
            display: block;
        }

.ribbon-peak .ribbon-roster{
            align-items: center;
            gap: 8px;
        }

.ribbon-peak .ribbon-knot{
            padding: 8px 16px;
            color: #a19bb8;
            font-size: 14px;
            font-weight: 500;
            border-radius: 19px;
            transition: 0.25s ease;
        }

.ribbon-peak .ribbon-knot:hover{
            color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
        }

.ribbon-peak .ribbon-knot.active{
            color: #ffffff;
            background: rgba(93, 58, 229, 0.2);
        }

@media (max-width: 768px){.ribbon-peak .ribbon-ribbon{
                padding: 0 16px;
                justify-content: center;
            }

.ribbon-peak .ribbon-roster{
                display: none; 
            }}

.ribbon-peak {
    background: rgb(10, 5, 20);
    background-image: none;
}

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

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

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

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

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

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

.bind-root .bind-bind{
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
            word-break: break-word;
            overflow-wrap: break-word;
        }

.bind-root .bind-prose, .bind-root .bind-crown{
            word-break: break-word;
            overflow-wrap: break-word;
        }

.bind-root .bind-crown{
            white-space: normal;
        }

.bind-root{
            background: #0a0514;
            color: #a19bb8;
            padding: 60px 24px;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

.bind-root .bind-bind{
            max-width: 1280px;
            margin: 0 auto;
            width: 100%;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 24px;
        }

.bind-root .bind-bind .bind-crown{
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 1px;
        }

.bind-root .bind-bind .bind-prose{
            font-size: 14px;
            text-align: center;
        }