:root {
    --color-bg: #070709;
    --color-surface: #121217;
    --color-surface-hover: #1a1a24;
    --color-accent: #e02580;
    --color-accent-dim: rgba(224, 37, 128, 0.15);
    --color-text-main: #fcfcfd;
    --color-text-muted: #a1a1aa;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-serif: 'Playfair Display', 'Songti SC', 'Noto Serif SC', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius-base: 16px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow-base: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 4px 20px rgba(224, 37, 128, 0.2);
    --transition: all 0.25s ease;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

p, span, div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Base Flex Rules (Mandatory) */
.flex-rules {
    display: flex;
    flex-wrap: wrap;
}
.flex-rules > * {
    min-width: 0;
}

/* Header & Nav (Mandatory styles for reused HTML) */
.peak {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.loom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
}
.loom > * {
    min-width: 0;
}

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

.silkway {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}
.silkway > * {
    min-width: 0;
}

.thread {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.thread:hover,
.thread.active {
    color: var(--color-text-main);
}

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

/* Main Layout */
.realm {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}
.realm > * {
    min-width: 0;
}

.hide-base {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Typography Utilities */
.crown-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.crown-md {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.crown-sm {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.yarn-lg {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.yarn-md {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.align-center {
    text-align: center;
}

/* Buttons */
.spark {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 100px;
    font-weight: 500;
    box-shadow: var(--shadow-accent);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.spark > * { min-width: 0; }
.spark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(224, 37, 128, 0.4);
}
.clasp {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: transparent;
    color: var(--color-text-main);
    border-radius: 100px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    cursor: pointer;
}
.clasp > * { min-width: 0; }
.clasp:hover {
    background-color: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section 1: Hero (Article) */
.aura {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}
.aura::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
}
.aura-hide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}
.aura-hide > * {
    min-width: 0;
}
.aura-flock {
    flex: 1 1 500px;
}
.aura-visual {
    flex: 1 1 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
}
.aura-visual > * { min-width: 0; }
.aura-visual svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(224,37,128,0.2));
    transform: translateY(0);
    transition: transform 1s ease-in-out;
}
.aura-visual:hover svg {
    transform: translateY(-10px);
}
.flock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.flock-actions > * { min-width: 0; }

/* Section 2: Services (Aside) */
.vista {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-surface) 100%);
}
.vista-hide {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.vista-hide > * { min-width: 0; }
.vista-flock {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 64px;
}
.swatch {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    padding: 48px 32px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    box-shadow: var(--shadow-base);
    transition: var(--transition);
}
.swatch > * { min-width: 0; }
.swatch:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(224, 37, 128, 0.3);
    background: var(--color-surface-hover);
}
.swatch-glyph {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.swatch-glyph > * { min-width: 0; }
.swatch-glyph svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.5;
}

/* Section 3: Process (Div) */
.canvas {
    padding: 100px 0;
    background-color: var(--color-surface);
    position: relative;
}
.canvas-hide {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.canvas-hide > * { min-width: 0; }
.canvas-flock {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 64px;
    position: relative;
}
.canvas-flock > * { min-width: 0; }
/* Connective line for desktop */
@media (min-width: 1024px) {
    .canvas-flock::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 1px;
        background: linear-gradient(90deg, var(--color-border) 0%, var(--color-accent) 50%, var(--color-border) 100%);
        z-index: 1;
    }
}
.shard {
    flex: 1 1 240px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
.shard > * { min-width: 0; }
.shard-knot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: var(--transition);
}
.shard-knot > * { min-width: 0; }
.shard:hover .shard-knot {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-dim);
}

/* Section 4: Contact (Article) */
.vault {
    padding: 100px 0 140px;
    background: linear-gradient(0deg, transparent 0%, var(--color-surface) 100%);
}
.vault-hide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.vault-hide > * { min-width: 0; }
.motif {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 56px;
    width: 100%;
    max-width: 720px;
    box-shadow: var(--shadow-base);
}
.motif-flock {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.motif-flock > * { min-width: 0; }
.sash {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 8px;
}
.sash > * { min-width: 0; }
.sash label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.sash input,
.sash textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}
.sash input:focus,
.sash textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(224, 37, 128, 0.1);
}
.sash textarea {
    resize: vertical;
    min-height: 120px;
}
.motif-pulse {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
}
.motif-pulse > * { min-width: 0; }
.motif-pulse .spark {
    width: 100%;
}

/* Footer */
.hem {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
    padding: 64px 0 32px;
}
.legacy {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 64px;
}
.legacy > * { min-width: 0; }
.imprint {
    flex: 1 1 300px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 16px;
}
.imprint > * { min-width: 0; }
.imprint-crown {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text-main);
    font-weight: 600;
}
.seam {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.seam > * { min-width: 0; }
.seam-flock {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
}
.seam-flock > * { min-width: 0; }
.seam-crown {
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 8px;
}
.seam-thread {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.seam-thread:hover {
    color: var(--color-accent);
}
.hem-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.hem-bottom > * { min-width: 0; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .silkway {
        display: none; /* In a real scenario, this would be a hamburger menu logic */
    }
    .aura-hide {
        flex-direction: column;
        text-align: center;
    }
    .flock-actions {
        justify-content: center;
    }
    .motif {
        padding: 32px 24px;
    }
    .canvas-flock {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .shard-knot {
        margin: 0 auto 24px;
    }
    .legacy {
        flex-direction: column;
    }
}

.rein-peak{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            background: rgba(7, 7, 9, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

.rein-peak .rein-loom{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            max-width: 1360px;
            margin: 0 auto;
            padding: 0 24px;
            min-width: 0;
        }

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

.rein-peak .rein-crest img{
            height: 32px;
            width: auto;
        }

.rein-peak .rein-silkway{
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
            align-items: center;
            min-width: 0;
        }

.rein-peak .rein-thread{
            font-size: 0.9rem;
            font-weight: 500;
            color: #a1a1aa;
            position: relative;
            padding: 8px 0;
        }

.rein-peak .rein-thread:hover, .rein-peak .rein-thread.rein-active{
            color: #fcfcfd;
        }

.rein-peak .rein-thread::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #e02580;
            transition: all 0.25s ease;
        }

.rein-peak .rein-thread:hover::after, .rein-peak .rein-thread.rein-active::after{
            width: 100%;
        }

@media (max-width: 768px){.rein-peak .rein-silkway{
                display: none; 
            }}

.rein-peak {
    background: rgb(7, 7, 9);
    background-image: none;
}

.legacy-hem-zone {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-main);
}
.legacy-hem-zone,
.legacy-hem-zone *,
.legacy-hem-zone *::before,
.legacy-hem-zone *::after {
    box-sizing: border-box;
}

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

.legacy-hem-zone p,
.legacy-hem-zone h1,
.legacy-hem-zone h2,
.legacy-hem-zone h3,
.legacy-hem-zone h4,
.legacy-hem-zone h5,
.legacy-hem-zone h6 {
    text-decoration: none;
}

.legacy-hem-zone img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.legacy-hem-zone {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.legacy-hem-zone a,
.legacy-hem-zone a:hover,
.legacy-hem-zone a:focus,
.legacy-hem-zone a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.legacy-hem-zone .legacy-yarn{
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all;
            color: #a1a1aa;
            line-height: 1.8;
        }

.legacy-hem-zone .legacy-realm{
            width: 100%;
            max-width: 1360px;
            margin: 0 auto;
            padding: 0 24px;
        }

.legacy-hem-zone .legacy-thread{
            font-size: 0.9rem;
            font-weight: 500;
            color: #a1a1aa;
            position: relative;
            padding: 8px 0;
        }

.legacy-hem-zone .legacy-thread:hover{
            color: #fcfcfd;
        }

.legacy-hem-zone .legacy-thread::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #e02580;
            transition: all 0.25s ease;
        }

.legacy-hem-zone .legacy-thread:hover::after{
            width: 100%;
        }

.legacy-hem-zone{
            padding: 60px 0 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            background: #050507;
        }

.legacy-hem-zone .legacy-hem-flock{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 32px;
        }

.legacy-hem-zone .legacy-legacy{
            font-family: 'Playfair Display', 'Songti SC', 'Noto Serif SC', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #fcfcfd;
            letter-spacing: 1px;
        }

.legacy-hem-zone .legacy-seam{
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            font-size: 0.9rem;
            color: #a1a1aa;
        }

.legacy-hem-zone .legacy-imprint{
            width: 100%;
            text-align: center;
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid rgba(255,255,255,0.05);
            font-size: 0.85rem;
            color: #71717a;
        }

@media (max-width: 768px){.legacy-hem-zone .legacy-hem-flock{
                flex-direction: column;
                text-align: center;
            }

.legacy-hem-zone .legacy-seam{
                justify-content: center;
            }}