:root {
    --bg: #0c1320;
    --bg-soft: #121c2b;
    --panel: #172233;
    --panel-hover: #1d2a3d;

    --text: #f0ece2;
    --muted: #aaa99f;

    --gold: #c6a45c;
    --gold-soft: #e0c887;

    --border: rgba(198, 164, 92, 0.24);

    --max-width: 1200px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            #172538 0%,
            var(--bg) 42%,
            #080d15 100%
        );
    color: var(--text);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    line-height: 1.6;
}


a {
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 13, 21, 0.72);
}


.brand {
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
}


.brand-title {
    color: var(--gold-soft);
    font-size: clamp(2rem, 5vw, 3.1rem);
    letter-spacing: 0.22em;
    font-weight: 600;
}


.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 80px 24px;
    text-align: center;
}


.hero-inner {
    width: 100%;
    max-width: 900px;
    margin: auto;
}


.eyebrow,
.section-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: bold;
}


.hero h1 {
    margin: 16px 0 22px;
    font-size: clamp(2.8rem, 8vw, 5.7rem);
    line-height: 1.04;
    font-weight: 500;
}


.hero-text {
    max-width: 720px;
    margin: 0 auto;
    color: #c9c7bf;
    font-size: 1.12rem;
}


.hero-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}


.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    background: var(--gold);
    color: #111;
}


.button-primary:hover {
    background: var(--gold-soft);
}


.button-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-soft);

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.button-secondary:hover {

    background: rgba(198,164,92,.10);

    border-color: var(--gold-soft);

    color: #f6e7b0;

    transform: translateY(-2px);

}

.button-secondary:active {

    background: rgba(198,164,92,.18);

}



/* =========================================================
   SECTIONS
   ========================================================= */

.origin-section,
.explore-section,
.figures-section {
    max-width: var(--max-width);
    margin: auto;
    padding: 80px 24px;
}


.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}


.section-heading h2 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 500;
}


.section-heading p {
    color: var(--muted);
}


/* =========================================================
   CHAOS
   ========================================================= */

.chaos-start {
    display: flex;
    justify-content: center;
    padding: 30px 0 20px;
}


.chaos-node {
    width: 180px;
    height: 180px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-decoration: none;

    background:
        radial-gradient(
            circle,
            rgba(198, 164, 92, 0.13),
            rgba(23, 34, 51, 0.9)
        );

    box-shadow:
        0 0 50px rgba(198, 164, 92, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.chaos-node:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 75px rgba(198, 164, 92, 0.22);
}


.node-symbol {
    color: var(--gold);
    font-size: 1.3rem;
}


.node-name {
    margin-top: 5px;
    font-size: 1.7rem;
}


.node-hint {
    color: var(--muted);
    font-size: 0.75rem;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}


.feature-card {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.feature-card:hover {
    background: var(--panel-hover);
    transform: translateY(-3px);
}


.feature-icon {
    font-size: 1.7rem;
}


.feature-card h3 {
    margin: 12px 0 6px;
    color: var(--gold-soft);
}


.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}


/* =========================================================
   FIGURES
   ========================================================= */

.figure-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}


.figure-card {
    min-height: 120px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-decoration: none;

    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;

    transition:
        background 0.2s ease,
        border 0.2s ease,
        transform 0.2s ease;
}


.figure-card:hover {
    background: var(--panel-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
}


.figure-name {
    font-size: 1.12rem;
    color: var(--gold-soft);
}


.figure-greek {
    margin-top: 3px;
    color: var(--text);
    font-size: 0.92rem;
}


.figure-category {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 50px;
    padding: 45px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
}


.footer-brand {
    color: var(--gold);
    letter-spacing: 0.2em;
    font-size: 1.2rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .site-header {
        padding: 22px 15px;
    }

    .hero {
        min-height: 440px;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .origin-section,
    .explore-section,
    .figures-section {
        padding: 55px 18px;
    }

    .figure-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .figure-card {
        padding: 15px;
        min-height: 105px;
    }

}

/* =====================================================
   FIGURE PAGE
===================================================== */

.figure-page{

padding:60px 20px;

}

.figure-container{

max-width:1000px;

margin:auto;

}

.back-link{

color:var(--gold);

text-decoration:none;

}

.hero-card{

background:var(--panel);

border:1px solid var(--border);

padding:40px;

border-radius:8px;

margin-bottom:35px;

text-align:center;

}

.figure-type{

color:var(--gold);

text-transform:uppercase;

letter-spacing:.15em;

font-size:.8rem;

}

.hero-card h1{

margin:10px 0;

font-size:3rem;

font-weight:500;

}

.greek-name{

font-size:1.4rem;

color:var(--gold-soft);

margin-bottom:10px;

}

.roman-name{

color:var(--muted);

}

.info-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));

gap:20px;

margin-bottom:30px;

}

.info-card{

background:var(--panel);

border:1px solid var(--border);

padding:25px;

border-radius:6px;

}

.relationship-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(300px,1fr));

gap:20px;

}

.relationship-card{

background:var(--panel);

border:1px solid var(--border);

padding:25px;

border-radius:6px;

}

.relationship-card ul{

margin:0;

padding-left:20px;

}

.relationship-card li{

margin-bottom:8px;

}

.relationship-card a{

color:var(--gold-soft);

text-decoration:none;

}

.relationship-card a:hover{

text-decoration:underline;

}


/* =========================================================
   FIGURE SEARCH
   ========================================================= */

.figure-search-wrap {
    max-width: 620px;
    margin: 0 auto 30px;
}

.figure-search {
    width: 100%;
    padding: 15px 18px;

    background: var(--panel);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 6px;

    font: inherit;
    font-size: 1rem;

    outline: none;
}

.figure-search::placeholder {
    color: var(--muted);
}

.figure-search:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(198, 164, 92, 0.12);
}

.search-count {
    min-height: 24px;
    margin-top: 8px;

    color: var(--muted);
    text-align: center;
    font-size: 0.85rem;
}



/* =========================================================
   KOSMOS INTERACTIVE TREE
   ========================================================= */

.brand-link {
    text-decoration: none;
}


.tree-page {
    max-width: 1400px;
    margin: auto;
    padding: 60px 20px 100px;
}


.tree-intro {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}


.tree-intro h1 {
    margin: 8px 0 14px;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 500;
}


.tree-intro p {
    color: var(--muted);
    font-size: 1.05rem;
}


.tree-stage {
    min-height: 550px;

    padding: 45px 25px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        radial-gradient(
            circle at top,
            rgba(198, 164, 92, 0.07),
            rgba(12, 19, 32, 0.92) 45%
        );

    overflow-x: auto;
}


.myth-tree {
    min-width: max-content;
    display: flex;
    justify-content: center;
}


.tree-branch {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 170px;
}


.tree-node {
    position: relative;

    width: 155px;
    min-height: 110px;

    padding: 18px 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 50%;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.22);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.tree-node:hover,
.tree-node-open {
    border-color: var(--gold);

    box-shadow:
        0 0 38px rgba(198,164,92,.16);

    transform: translateY(-2px);
}


.tree-node-category {
    margin-bottom: 4px;

    color: var(--muted);

    font-size: .65rem;

    text-transform: uppercase;

    letter-spacing: .12em;
}


.tree-node-name {
    color: var(--gold-soft);

    text-decoration: none;

    font-size: 1.2rem;
}


.tree-node-name:hover {
    text-decoration: underline;
}


.tree-node-greek {
    color: var(--text);

    font-size: .8rem;

    margin-top: 2px;
}


.tree-expand {
    margin-top: 8px;

    padding: 4px 9px;

    border: 0;

    background: transparent;

    color: var(--gold);

    cursor: pointer;

    font: inherit;

    font-size: .72rem;
}


.tree-expand:hover {
    color: var(--gold-soft);
}


.tree-children {
    position: relative;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 28px;

    margin-top: 65px;

    padding: 0 20px;
}


/* vertical line from parent */

.tree-children::before {
    content: "";

    position: absolute;

    top: -65px;
    left: 50%;

    width: 1px;
    height: 35px;

    background: var(--gold);
}


/* horizontal connector */

.tree-children::after {
    content: "";

    position: absolute;

    top: -30px;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        rgba(198,164,92,.45);
}


/* child vertical connectors */

.tree-children > .tree-branch::before {
    content: "";

    position: absolute;

    top: -30px;
    left: 50%;

    width: 1px;
    height: 30px;

    background:
        rgba(198,164,92,.45);
}


@media (max-width: 700px) {

    .tree-page {
        padding-left: 10px;
        padding-right: 10px;
    }


    .tree-stage {
        padding: 35px 10px;
    }


    .tree-node {
        width: 135px;
        min-height: 100px;
    }


    .tree-children {
        gap: 15px;
    }

}



/* =========================================================
   CYTOSCAPE KOSMOS EXPLORER
   ========================================================= */

.graph-page {
    max-width: 1500px;
    margin: auto;
    padding: 55px 20px 80px;
}


.graph-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 18px;
}


.graph-shell {
    position: relative;

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #172538 0%,
            #0c1320 60%,
            #080d15 100%
        );
}


#cy {
    width: 100%;
    height: 72vh;
    min-height: 560px;
}


.graph-help {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding: 12px 15px;

    background: rgba(8, 13, 21, 0.88);

    border: 1px solid var(--border);

    border-radius: 6px;

    color: var(--muted);

    font-size: 0.75rem;

    line-height: 1.55;

    pointer-events: none;
}


.graph-help strong {
    color: var(--gold-soft);
}


@media (max-width: 700px) {

    .graph-page {
        padding: 35px 8px 60px;
    }

    #cy {
        height: 72vh;
        min-height: 500px;
    }

    .graph-help {
        display: none;
    }

}


/* =========================================================
   KOSMOS GRAPH CONTROLS
   ========================================================= */

.graph-shell {
    min-height: 650px;
}


.graph-toolbar-floating {
    position: absolute;
    z-index: 20;

    top: 15px;
    left: 15px;

    margin: 0;

    justify-content: flex-start;

    padding: 8px;

    background: rgba(8, 13, 21, .82);

    border: 1px solid var(--border);

    border-radius: 7px;

    backdrop-filter: blur(7px);
}


.graph-search {
    width: 210px;

    padding: 10px 12px;

    background: transparent;

    color: var(--text);

    border: 1px solid var(--gold);

    border-radius: 4px;

    font: inherit;

    outline: none;
}


.graph-search::placeholder {
    color: var(--muted);
}


.graph-search:focus {
    border-color: var(--gold-soft);
}


/* =========================================================
   INFORMATION PANEL
   ========================================================= */

.graph-panel {
    position: absolute;

    z-index: 25;

    top: 0;
    right: 0;

    width: min(360px, 90vw);
    height: 100%;

    padding: 55px 28px 30px;

    background: rgba(10, 16, 26, .97);

    border-left: 1px solid var(--border);

    transform: translateX(105%);

    transition: transform .3s ease;

    overflow-y: auto;
}


.graph-panel.open {
    transform: translateX(0);
}


.graph-panel-close {
    position: absolute;

    top: 15px;
    right: 18px;

    border: none;

    background: transparent;

    color: var(--gold);

    font-size: 1.8rem;

    cursor: pointer;
}


.graph-panel-category {
    color: var(--gold);

    font-size: .72rem;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.graph-panel h2 {
    margin: 6px 0 0;

    color: var(--gold-soft);

    font-size: 2.2rem;

    font-weight: 500;
}


.graph-panel-greek {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 1.1rem;
}


.graph-panel p {
    color: #d1cec5;
}


.graph-panel-details {
    margin: 25px 0;
}


.graph-panel-details > div {
    padding: 9px 0;

    border-bottom:
        1px solid rgba(255,255,255,.06);
}


.graph-panel-details dt {
    color: var(--muted);

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.graph-panel-details dd {
    margin: 2px 0 0;

    color: var(--text);
}


.graph-panel-action {
    display: block;

    width: 100%;

    margin-top: 10px;

    text-align: center;
}


/* =========================================================
   SEARCH MESSAGE
   ========================================================= */

.graph-search-message {
    position: absolute;

    z-index: 30;

    bottom: 20px;
    left: 50%;

    padding: 8px 14px;

    background: rgba(8,13,21,.92);

    border: 1px solid var(--gold);

    border-radius: 5px;

    color: var(--gold-soft);

    transform:
        translate(-50%, 20px);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.graph-search-message.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


@media (max-width: 700px) {

    .graph-toolbar-floating {
        right: 10px;
        left: 10px;

        display: grid;

        grid-template-columns:
            1fr auto auto;

        gap: 6px;
    }


    .graph-search {
        width: 100%;
    }


    .graph-toolbar-floating .button {
        padding: 9px 10px;
    }


    .graph-panel {
        width: 100%;
    }

}



/* =========================================================
   KOSMOS EXPLORER — LEFT INFORMATION PANEL
   ========================================================= */

.graph-panel {
    left: 0;
    right: auto;

    border-left: none;
    border-right: 1px solid var(--border);

    transform: translateX(-105%);
}


.graph-panel.open {
    transform: translateX(0);
}


.graph-panel-close {
    left: auto;
    right: 18px;
}


/* =========================================================
   RELATIONSHIP CHIPS
   ========================================================= */

.graph-relations {
    margin: 24px 0;
}


.relation-block {
    margin-bottom: 18px;
}


.relation-block h3 {
    margin: 0 0 8px;

    color: var(--muted);

    font-size: .72rem;

    font-weight: normal;

    text-transform: uppercase;

    letter-spacing: .12em;
}


.relation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.relation-chip {
    padding: 6px 11px;

    background: transparent;

    border: 1px solid rgba(198,164,92,.48);

    border-radius: 20px;

    color: var(--gold-soft);

    font-family: inherit;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.relation-chip:hover {
    background: rgba(198,164,92,.10);

    border-color: var(--gold);

    transform: translateY(-1px);
}



/* =========================================================
   NODE HOVER PREVIEW
   ========================================================= */

.node-preview {
    position: absolute;

    z-index: 40;

    min-width: 150px;

    padding: 10px 13px;

    background: rgba(8,13,21,.95);

    border: 1px solid var(--border);

    border-radius: 5px;

    pointer-events: none;

    opacity: 0;

    transform: translateY(5px);

    transition:
        opacity .15s ease,
        transform .15s ease;
}


.node-preview.show {
    opacity: 1;

    transform: translateY(0);
}


.node-preview strong,
.node-preview span,
.node-preview small {
    display: block;
}


.node-preview strong {
    color: var(--gold-soft);
}


.node-preview span {
    color: var(--text);
    font-size: .82rem;
}


.node-preview small {
    margin-top: 3px;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: .08em;
}



/* =========================================================
   KOSMOS — SUBTLE COSMIC BACKGROUND
   ========================================================= */

.graph-shell {
    isolation: isolate;
}


.graph-shell::before,
.graph-shell::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 0;
}


.graph-shell::before {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1.2px),
        radial-gradient(circle, rgba(198,164,92,.11) 1px, transparent 1.3px);

    background-size:
        83px 83px,
        137px 137px;

    background-position:
        15px 22px,
        56px 74px;

    opacity: .22;

    animation:
        kosmos-stars-drift 90s linear infinite;
}


.graph-shell::after {
    background-image:
        radial-gradient(circle, rgba(255,255,255,.12) .8px, transparent 1px);

    background-size:
        191px 191px;

    background-position:
        94px 31px;

    opacity: .14;

    animation:
        kosmos-stars-drift-secondary 140s linear infinite;
}


#cy {
    position: relative;
    z-index: 2;

    background: transparent;
}


.graph-toolbar-floating,
.graph-panel,
.graph-search-message,
.node-preview {
    z-index: 20;
}


@keyframes kosmos-stars-drift {

    from {
        background-position:
            15px 22px,
            56px 74px;
    }

    to {
        background-position:
            98px 105px,
            193px 211px;
    }

}


@keyframes kosmos-stars-drift-secondary {

    from {
        background-position:
            94px 31px;
    }

    to {
        background-position:
            -97px 222px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .graph-shell::before,
    .graph-shell::after {
        animation: none;
    }

}



/* =========================================================
   KOSMOS — STAR TWINKLE
   ========================================================= */

.graph-shell .kosmos-twinkle-layer {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    overflow: hidden;
}


.kosmos-twinkle {
    position: absolute;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: rgba(255,255,255,.7);

    opacity: .08;

    animation:
        kosmos-twinkle 8s ease-in-out infinite;
}


.kosmos-twinkle:nth-child(2) {
    animation-delay: -2.8s;
    animation-duration: 10s;
}


.kosmos-twinkle:nth-child(3) {
    animation-delay: -5.2s;
    animation-duration: 7s;
}


.kosmos-twinkle:nth-child(4) {
    animation-delay: -1.3s;
    animation-duration: 11s;
}


.kosmos-twinkle:nth-child(5) {
    animation-delay: -6.4s;
    animation-duration: 9s;
}


.kosmos-twinkle:nth-child(6) {
    animation-delay: -3.7s;
    animation-duration: 12s;
}


@keyframes kosmos-twinkle {

    0%,
    100% {
        opacity: .05;
        transform: scale(.8);
    }

    50% {
        opacity: .48;
        transform: scale(1.5);
    }

}


@media (prefers-reduced-motion: reduce) {

    .kosmos-twinkle {
        animation: none;
        opacity: .12;
    }

}



/* =========================================================
   KOSMOS — IMPORTANCE FILTER
   ========================================================= */

.graph-importance-filter {
    width: auto;
    min-width: 165px;
    cursor: pointer;
}

.graph-importance-filter option {
    background: #121c2b;
    color: #f0ece2;
}



/* =========================================================
   KOSMOS — EXPLORER PANEL POLISH
   ========================================================= */

.graph-panel .relation-block {
    padding-bottom: 14px;
    margin-bottom: 14px;

    border-bottom:
        1px solid rgba(255,255,255,.055);
}


.graph-panel .relation-block:last-child {
    border-bottom: none;
}


.graph-panel-details {
    margin-top: 28px;
}


.graph-zoom-button {
    min-width: 42px;
    padding-left: 12px;
    padding-right: 12px;

    font-size: 1.25rem;
    line-height: 1;
}

/* =========================================================
   KOSMOS — MYTHS & SOURCES
   ========================================================= */

.graph-reference-block {
    margin: 24px 0;
}

.graph-reference-block h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.graph-reference-item {
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.graph-reference-item strong {
    display: block;
    color: var(--gold-soft);
    font-weight: normal;
}

.graph-reference-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .8rem;
}



/* =========================================================
   KOSMOS — MYTH PAGE VISUAL POLISH
   ========================================================= */

.myth-library,
.myth-page {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 90px;
}


.myth-library-header,
.myth-page-header {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}


.myth-library-header .hero-actions,
.myth-page .hero-actions {
    justify-content: center;
}


.myth-count {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}


.myth-era {
    margin: 60px 0;
}


.myth-era .section-heading {
    text-align: center;
    margin-bottom: 26px;
}


.myth-list {
    display: grid;
    gap: 14px;
}


.myth-card {
    display: grid;
    grid-template-columns: 55px 1fr 34px;
    gap: 18px;
    align-items: center;

    padding: 20px 22px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;

    background: rgba(255,255,255,.025);

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.myth-card:hover {
    transform: translateY(-2px);

    border-color: rgba(198,164,92,.45);

    background: rgba(198,164,92,.045);
}


.myth-card h3 {
    margin: 0 0 6px;

    color: var(--gold-soft);

    font-size: 1.15rem;
}


.myth-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.65;
}


.myth-number {
    text-align: center;

    color: var(--gold);

    font-size: .85rem;
}


.myth-arrow {
    text-align: right;

    color: var(--gold-soft);

    font-size: 1.25rem;
}


.myth-page {
    max-width: 900px;
}


.myth-back {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--muted);

    text-decoration: none;
}


.myth-back:hover {
    color: var(--gold-soft);
}


.myth-lead {
    max-width: 760px;

    margin: 18px auto 0;

    color: var(--muted);

    font-size: 1.15rem;

    line-height: 1.8;
}


.myth-story,
.myth-figures,
.myth-note {
    margin: 44px 0;

    padding: 26px;

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 16px;

    background: rgba(255,255,255,.018);
}


.myth-story h2,
.myth-figures h2,
.myth-note h2 {
    margin-top: 0;

    color: var(--gold-soft);
}


.myth-story p,
.myth-note p {
    line-height: 1.85;

    color: var(--text);
}


.myth-figure-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 12px;
}


.myth-figure {
    padding: 14px 16px;

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 12px;

    background: rgba(255,255,255,.02);

    text-decoration: none;
}


.myth-figure:hover {
    border-color: rgba(198,164,92,.4);
}


.myth-figure strong {
    display: block;

    color: var(--gold-soft);
}


.myth-figure span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: .84rem;
}


.myth-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    margin-top: 60px;

    padding-top: 24px;

    border-top: 1px solid rgba(255,255,255,.08);
}


.myth-navigation span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.myth-navigation a {
    color: var(--gold-soft);

    text-decoration: none;
}


.myth-navigation a:hover {
    text-decoration: underline;
}


.myth-navigation-next {
    text-align: right;
}


@media (max-width: 700px) {

    .myth-library,
    .myth-page {
        width: min(100% - 24px, 900px);
        padding-top: 28px;
    }

    .myth-card {
        grid-template-columns: 38px 1fr 22px;
        padding: 16px;
        gap: 12px;
    }

    .myth-library-header,
    .myth-page-header {
        text-align: left;
    }

    .myth-library-header .hero-actions,
    .myth-page .hero-actions {
        justify-content: flex-start;
    }

    .myth-era .section-heading {
        text-align: left;
    }

    .myth-navigation {
        grid-template-columns: 1fr;
    }

    .myth-navigation-next {
        text-align: left;
    }

}



/* =========================================================
   MYTHOS KOSMOS — INFORMATION PAGES
   ========================================================= */

.info-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 90px;
}

.info-page > h1 {
    margin-bottom: 18px;
}

.info-lead {
    max-width: 760px;
    margin-bottom: 42px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.info-card {
    margin: 22px 0;
    padding: 24px 26px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;

    background: rgba(255,255,255,.018);
}

.info-card h2 {
    margin-top: 0;
    color: var(--gold-soft);
}

.info-card p {
    line-height: 1.8;
}

.info-card a {
    color: var(--gold-soft);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 70px;

    border-top: 1px solid rgba(255,255,255,.08);

    background: rgba(0,0,0,.16);
}

.site-footer-inner {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    padding: 34px 0;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.site-footer-brand strong {
    display: block;

    color: var(--gold-soft);
}

.site-footer-brand span {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: .86rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: flex-end;
}

.site-footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
}

.site-footer-links a:hover {
    color: var(--gold-soft);
}

.site-footer-copy {
    grid-column: 1 / -1;

    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,.05);

    color: var(--muted);

    font-size: .78rem;
}


@media (max-width: 700px) {

    .info-page {
        width: min(100% - 24px, 900px);
        padding-top: 32px;
    }

    .site-footer-inner {
        width: min(100% - 28px, 1100px);

        grid-template-columns: 1fr;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

}
