/* Arta智投寶 — 夜藍閱讀風 */

:root {
    --navy: #0b1c33;
    --navy-2: #132844;
    --navy-3: #1a3558;
    --gold: #c9a45c;
    --gold-light: #e8d5a3;
    --gold-dark: #8a7340;
    --ivory: #f4efe4;
    --paper: #fbf8f1;
    --paper-2: #f3eee3;
    --ink: #161410;
    --text: #2a261c;
    --text-secondary: #4a453a;
    --text-muted: #7a7366;
    --rule: #ddd4c4;
    --border: #d4cbb8;
    --header-h: 64px;
    --wrap: min(1080px, calc(100% - 48px));
    --prose: min(760px, 100%);
    --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --font-display: "Noto Serif TC", "Source Han Serif TC", serif;
    --font-latin: "Cormorant Garamond", "Noto Serif TC", serif;
    --shadow: 0 18px 50px rgba(11, 28, 51, 0.1);
    --radius: 2px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.015em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.scroll-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#arch.scroll-anchor,
#core.scroll-anchor,
#govern.scroll-anchor,
#blueprint.scroll-anchor {
    position: relative;
    top: calc(var(--header-h) * -1 - 12px);
    display: block;
    width: 0;
    height: 0;
    clip: auto;
    overflow: visible;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 200;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.skip-link:focus { top: 12px; }

.ico {
    display: block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
}

/* Ambient */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 40% at 8% 0%, rgba(11, 28, 51, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 12%, rgba(201, 164, 92, 0.12), transparent 50%),
        linear-gradient(180deg, #ebe4d4 0%, var(--ivory) 40%, #e8e0d0 100%);
}

.page-bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 3px,
        rgba(11, 28, 51, 0.018) 3px,
        rgba(11, 28, 51, 0.018) 4px
    );
}

/* Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 130;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 28, 51, 0.92);
    border-bottom: 1px solid rgba(201, 164, 92, 0.22);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.brand:hover { color: var(--gold); }

.brand__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 4px 18px;
    flex-wrap: wrap;
}

.nav a {
    color: rgba(247, 243, 234, 0.72);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 4px 0;
}

.nav a:hover,
.nav a.is-active {
    color: var(--gold-light);
}

@media (min-width: 981px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }
    .nav { justify-self: end; }
    .nav a.is-active::after {
        content: "";
        display: block;
        height: 1px;
        margin-top: 4px;
        background: var(--gold);
    }
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid rgba(201, 164, 92, 0.45);
    background: #071322;
}

.site-header .lang-switch a.lang-switch__btn,
.site-header .lang-switch a.lang-switch__btn:link,
.site-header .lang-switch a.lang-switch__btn:visited {
    color: #e8d5a3;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 11px;
    text-decoration: none;
    display: inline-block;
}

.site-header .lang-switch a.lang-switch__btn:hover,
.site-header .lang-switch a.lang-switch__btn:focus-visible {
    color: #fff8e8;
    background: rgba(201, 164, 92, 0.16);
}

.site-header .lang-switch a.lang-switch__btn.is-active,
.site-header .lang-switch a.lang-switch__btn.is-active:link,
.site-header .lang-switch a.lang-switch__btn.is-active:visited,
.site-header .lang-switch a.lang-switch__btn.is-active:hover,
.site-header .lang-switch a.lang-switch__btn.is-active:focus-visible {
    color: #071322;
    background: #e8d5a3;
}

html[lang="en"] {
    --font-sans: "IBM Plex Sans", "Noto Sans TC", "PingFang TC", sans-serif;
    --font-display: "Cormorant Garamond", "Noto Serif TC", serif;
}

html[lang="en"] body {
    letter-spacing: 0.005em;
}

html[lang="en"] .principles strong {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 164, 92, 0.35);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--gold-light);
}

.nav-toggle::before { top: 14px; box-shadow: 0 5px 0 var(--gold-light); }
.nav-toggle::after { bottom: 14px; opacity: 0; }

.nav-toggle[aria-expanded="true"]::before {
    top: 19px;
    box-shadow: none;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
    opacity: 1;
    bottom: 19px;
    transform: rotate(-45deg);
}

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(201, 164, 92, 0.25);
        padding: 8px 0 16px;
    }
    .nav.is-open { display: flex; }
    .nav a {
        padding: 12px 22px;
        font-size: 0.92rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 48px) 0 0;
    background:
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(201, 164, 92, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(26, 53, 88, 0.6), transparent 50%),
        linear-gradient(165deg, #071322 0%, var(--navy) 48%, #10243f 100%);
    color: var(--ivory);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    padding-bottom: 56px;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fbf8f1;
    letter-spacing: 0.06em;
}

.hero__roles {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--gold-light);
    font-weight: 600;
}

.hero__lede {
    margin: 0 0 1.6rem;
    max-width: 38em;
    color: rgba(247, 243, 234, 0.78);
    font-size: 1.02rem;
}

.hero__stats {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201, 164, 92, 0.28);
    border: 1px solid rgba(201, 164, 92, 0.28);
    max-width: 420px;
}

.hero__stats li {
    background: rgba(11, 28, 51, 0.55);
    padding: 0.9rem 0.7rem;
    text-align: center;
}

.hero__stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-light);
}

.hero__stats span {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 243, 234, 0.5);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.78rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.btn--ghost {
    background: transparent;
    color: var(--gold-light);
    border-color: rgba(201, 164, 92, 0.45);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: #fff;
}

.hero__visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.hero__visual img {
    width: min(100%, 400px);
    margin-inline: auto;
    filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.45));
}

.principles {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(201, 164, 92, 0.22);
    background: rgba(7, 19, 34, 0.55);
}

.principles li {
    list-style: none;
    padding: 1.15rem 1.2rem;
    border-right: 1px solid rgba(201, 164, 92, 0.16);
}

.principles li:last-child { border-right: 0; }

.principles span {
    display: block;
    font-family: var(--font-latin);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.principles strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: #fbf8f1;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 280px; order: -1; }
    .hero__visual img { margin: 0 auto; max-width: 340px; }
    .principles { grid-template-columns: 1fr 1fr; }
    .principles li:nth-child(2) { border-right: 0; }
    .principles li:nth-child(1),
    .principles li:nth-child(2) { border-bottom: 1px solid rgba(201, 164, 92, 0.16); }
}

@media (max-width: 560px) {
    .hero__stats { grid-template-columns: 1fr; max-width: none; }
    .principles { grid-template-columns: 1fr; }
    .principles li { border-right: 0; border-bottom: 1px solid rgba(201, 164, 92, 0.16); }
    .principles li:last-child { border-bottom: 0; }
}

/* Sections */
.section { padding: 3.2rem 0 1.2rem; }
.section--toc { padding-top: 2.4rem; }

.section__label {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.section__label--with-ico,
.chapter-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.4rem;
}

.chapter-head .section__label { margin: 0; }
.chapter-head .ico { width: 26px; height: 26px; }

.section h2,
.chapter h2 {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
    letter-spacing: 0.03em;
}

.chapter__lead {
    margin: -0.3rem 0 1.4rem;
    color: var(--text-secondary);
}

.prose p {
    margin: 0 0 1.15rem;
    color: var(--text-secondary);
}

.prose p:last-child { margin-bottom: 0; }

/* TOC */
.doc-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.doc-toc li {
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
}

.doc-toc li:nth-child(2n) { border-right: 0; }
.doc-toc li:nth-last-child(-n + 2) { border-bottom: 0; }

.doc-toc a {
    display: grid;
    grid-template-columns: 2.1rem 1.2rem minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.05rem;
    color: var(--text);
    font-size: 0.88rem;
    min-height: 3.2rem;
}

.doc-toc a:hover { background: rgba(201, 164, 92, 0.1); color: var(--navy); }
.doc-toc__idx {
    font-family: var(--font-latin);
    color: var(--gold-dark);
    font-weight: 600;
    text-align: center;
}

.doc-toc .ico { width: 18px; height: 18px; opacity: 0.85; }

@media (max-width: 700px) {
    .doc-toc { grid-template-columns: 1fr; }
    .doc-toc li { border-right: 0; }
    .doc-toc li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule); }
    .doc-toc li:last-child { border-bottom: 0; }
}

/* Intro */
.intro-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.emblem-card {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    background: var(--navy);
    color: var(--ivory);
    padding: 1.5rem 1.15rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.emblem-card__logo {
    width: 168px;
    height: auto;
    margin: 0 auto 1rem;
    padding: 0;
}

.emblem-card__logo img { width: 100%; height: auto; object-fit: contain; }

.emblem-card__caption {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.06em;
}

.emblem-card__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.emblem-card__tags li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(201, 164, 92, 0.22);
    padding-top: 6px;
    color: var(--gold-light);
}

.emblem-card__tags .ico { width: 16px; height: 16px; }

@media (max-width: 800px) {
    .intro-layout { grid-template-columns: 1fr; }
    .emblem-card { position: static; }
}

/* Paper chapters */
.paper-sheet {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    box-shadow: var(--shadow);
    padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.3rem, 3.6vw, 2.5rem);
    overflow: hidden;
}

.chapter { padding-bottom: 1.35rem; }

.chapter__watermark {
    position: absolute;
    top: 0.2rem;
    right: 0.9rem;
    font-family: var(--font-latin);
    font-size: clamp(4.2rem, 12vw, 7rem);
    font-weight: 600;
    line-height: 1;
    color: rgba(11, 28, 51, 0.05);
    pointer-events: none;
    user-select: none;
}

.pull-quote {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 1.6rem 0 0;
    padding: 1rem 0 1rem 1.2rem;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(201, 164, 92, 0.1), transparent 72%);
}

.pull-quote--ink {
    border-left-color: var(--navy);
    background: linear-gradient(90deg, rgba(11, 28, 51, 0.06), transparent 72%);
}

.pull-quote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
    flex: 1;
}

.pull-quote .ico { width: 24px; height: 24px; margin-top: 4px; }

.illus {
    margin: 1.5rem 0;
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 0.6rem;
}

.illus img { width: 100%; }
.illus--cycle {
    background: #0b1c33;
    border-color: rgba(201, 164, 92, 0.28);
}
.illus--cycle img {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}
.illus figcaption {
    margin: 0.4rem 0.4rem 0.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* Spine / layers */
.spine-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    border-left: 1px solid var(--gold);
}

.spine-list li {
    display: grid;
    grid-template-columns: 2.5rem 2.75rem 1fr;
    gap: 0.75rem;
    padding: 1rem 0 1rem 1.1rem;
    border-bottom: 1px solid var(--rule);
}

.spine-list li:last-child { border-bottom: 0; }
.spine-list__num {
    font-family: var(--font-latin);
    font-size: 1.15rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.spine-list__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--paper-2);
}

.spine-list h3 {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy);
}

.spine-list p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

.layer-stack {
    list-style: none;
    margin: 1.4rem 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.layer-stack li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 12px;
    align-items: center;
    padding: 0.95rem 1.1rem;
    background: var(--navy);
    color: var(--ivory);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.layer-stack li:nth-child(even) { background: var(--navy-2); }
.layer-stack .n {
    font-family: var(--font-latin);
    color: var(--gold);
    font-size: 1.05rem;
}
.layer-stack strong { display: block; font-family: var(--font-display); }
.layer-stack span { font-size: 0.84rem; color: var(--gold-light); opacity: 0.85; }

.key-grid {
    list-style: none;
    margin: 1.4rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.key-grid li {
    padding: 1rem 0.95rem;
    background: var(--paper-2);
    border-top: 2px solid var(--gold);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.key-grid .ico { width: 28px; height: 28px; }
.key-grid strong { font-family: var(--font-display); color: var(--navy); }
.key-grid span { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; }

.phase-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 0 1.5rem;
    background: var(--border);
    border: 1px solid var(--border);
}

.phase-rail article {
    background: var(--paper-2);
    padding: 1.15rem 1rem;
}

.phase-rail h3 {
    margin: 0.4rem 0 0.4rem;
    font-family: var(--font-display);
    font-size: 0.98rem;
    color: var(--navy);
}

.phase-rail p { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }

.model-mosaic,
.role-board {
    list-style: none;
    margin: 1.3rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.model-mosaic li,
.role-board li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 1rem;
    background: var(--paper-2);
    border: 1px solid var(--border);
    align-items: center;
}

.model-mosaic .ico,
.role-board .ico { grid-row: 1 / span 2; width: 26px; height: 26px; }
.model-mosaic strong,
.role-board strong { font-family: var(--font-display); color: var(--navy); }
.model-mosaic span,
.role-board span { font-size: 0.84rem; color: var(--text-secondary); }

.loop-stairs {
    list-style: none;
    margin: 1.4rem 0;
    padding: 0;
    counter-reset: stair;
}

.loop-stairs li {
    position: relative;
    counter-increment: stair;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.72rem 0.95rem 0.72rem 3.2rem;
    margin-bottom: 6px;
    background: var(--paper-2);
    border-left: 2px solid var(--navy);
    font-weight: 600;
    color: var(--navy);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.loop-stairs li::before {
    content: counter(stair, decimal-leading-zero);
    position: absolute;
    left: 0.75rem;
    font-family: var(--font-latin);
    color: var(--gold-dark);
}

.loop-stairs li:nth-child(odd) { margin-right: 8%; }
.loop-stairs li:nth-child(even) { margin-left: 8%; }

.cap-strip {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.cap-strip li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem 0.5rem;
    background: var(--paper);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}

.cap-strip .ico { width: 32px; height: 32px; }

.part-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
    align-items: center;
    margin: 2.2rem auto 0.6rem;
    padding: 1.15rem 1.3rem;
    background: var(--navy);
    color: var(--ivory);
    box-shadow: var(--shadow);
}

.part-banner__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 164, 92, 0.45);
}

.part-banner__mark .ico {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(0.9);
}

.part-banner__title {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: #fbf8f1;
}

.part-banner__sub { margin: 0; font-size: 0.86rem; color: rgba(232, 213, 163, 0.75); }

.roadmap-grid {
    list-style: none;
    margin: 1.4rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.roadmap-grid li {
    padding: 1.1rem 1rem;
    background: var(--paper-2);
    border-top: 3px solid var(--gold);
}

.roadmap-grid .n {
    font-family: var(--font-latin);
    color: var(--gold-dark);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

.roadmap-grid h3 {
    margin: 0.4rem 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy);
}

.roadmap-grid p { margin: 0; font-size: 0.86rem; color: var(--text-secondary); }

.focus-strip {
    list-style: none;
    margin: 1.3rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.focus-strip li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    background: var(--paper);
    font-size: 0.84rem;
}

.notice {
    margin: 1.4rem 0 0;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--gold-dark);
    background: rgba(201, 164, 92, 0.08);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.section--closing { padding: 3rem 0 4rem; }

.closing-sheet {
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    border-bottom: 3px solid var(--navy);
}

.manifesto {
    margin: 1.5rem 0 1.4rem;
    padding: 1.5rem 1.5rem 1.35rem;
    background: var(--navy);
    color: var(--gold-light);
}

.manifesto p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 2.4vw, 1.32rem);
    line-height: 1.75;
    letter-spacing: 0.04em;
}

.closing-sheet__tagline {
    margin: 0;
    text-align: center;
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-dark);
}

.site-footer {
    background: var(--navy);
    color: rgba(247, 243, 234, 0.62);
    padding: 1.6rem 0 2rem;
    border-top: 1px solid rgba(201, 164, 92, 0.25);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    color: var(--gold-light);
    margin-bottom: 4px;
}

.footer-brand span, .footer-note { font-size: 0.78rem; line-height: 1.6; }
.footer-top { color: var(--gold); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; }
.footer-top:hover { color: var(--gold-light); }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 800px) {
    .key-grid, .phase-rail, .roadmap-grid { grid-template-columns: 1fr; }
    .cap-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --wrap: min(100%, calc(100% - 24px)); }
    .model-mosaic, .role-board { grid-template-columns: 1fr; }
    .loop-stairs li:nth-child(odd),
    .loop-stairs li:nth-child(even) { margin: 0 0 6px; }
    .spine-list li { grid-template-columns: 2rem 2.4rem 1fr; }
}

@media (max-width: 560px) {
    .hero { padding-top: calc(var(--header-h) + 28px); }
}
