/* ============================================================
   FONTS
   ============================================================ */
@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/bebas-neue/BebasNeue-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/zilla-slab/ZillaSlab-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/zilla-slab/ZillaSlab-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/zilla-slab/ZillaSlab-Italic.woff2') format('woff2');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/zilla-slab/ZillaSlab-BoldItalic.woff2') format('woff2');
    font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Fira Code';
    src: url('../fonts/fira-code/FiraCode-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Fira Code';
    src: url('../fonts/fira-code/FiraCode-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Color states */
    --bg:              #100e0c;
    --bg-code:         #000000;
    --surface:         #1c1916;
    --surface-2:       #241f1a;
    --border:          #2e2820;
    --text:            #f0ebe2;
    --muted:           #9a9087;
    --green-code:      #00ff41;
    --accent-blue:     #1466b0;
    --accent-amber:    #f0a500;
    --accent-green:    #4aad52;

    /* Fonts */
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body:    'Zilla Slab', Georgia, serif;
    --font-code:    'Fira Code', 'Courier New', monospace;

    /* Layout */
    --max-width: 1200px;
    --gap: clamp(1.25rem, 4vw, 3rem);
    --radius: 4px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   BAVARIAN RAUTEN PATTERN
   ============================================================ */
.rauten-bg {
    background-image:
        linear-gradient(135deg, rgba(20,102,176,0.07) 25%, transparent 25%),
        linear-gradient(225deg, rgba(20,102,176,0.07) 25%, transparent 25%),
        linear-gradient(45deg,  rgba(20,102,176,0.07) 25%, transparent 25%),
        linear-gradient(315deg, rgba(20,102,176,0.07) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* ============================================================
   NAV PILL
   ============================================================ */
.nav-pill {
    position: fixed;
    top: 1.25rem;
    right: var(--gap);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-pill__label {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    background: rgba(16,14,12,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-pill__label .cursor {
    display: inline-block;
    width: 7px; height: 1em;
    background: var(--accent-amber);
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-pill__links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.nav-pill__links a { color: var(--muted); }
.nav-pill__links a:hover { color: var(--accent-amber); text-decoration: none; }

.nav-pill__hamburger {
    display: none;
    background: rgba(16,14,12,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    line-height: 1;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 190;
    padding: var(--gap);
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-code);
}
.nav-overlay.open { display: flex; }
.nav-overlay__close {
    position: absolute;
    top: 1.25rem; right: var(--gap);
    background: none; border: none;
    color: var(--muted); font-size: 1.5rem; cursor: pointer;
}
.nav-overlay__prompt {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}
.nav-overlay__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nav-overlay__links a {
    font-size: clamp(1.4rem, 6vw, 2rem);
    color: var(--green-code);
    letter-spacing: 0.02em;
}
.nav-overlay__links a::before { content: 'cd '; color: var(--muted); font-size: 0.7em; }
.nav-overlay__links a:hover { color: var(--accent-amber); text-decoration: none; }

/* ============================================================
   SCENE BASE
   ============================================================ */
.scene {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================================
   SCENE 1 — BOOT
   ============================================================ */
.boot-wrapper {
    height: 200vh;
    height: 200dvh;
    position: relative;
}
.boot-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-code);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--gap);
    overflow: hidden;
}
.boot-terminal {
    font-family: var(--font-code);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    color: var(--green-code);
    line-height: 2;
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.boot-line {
    display: block;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.15s, transform 0.15s;
    white-space: pre;
}
.boot-line.visible {
    opacity: 1;
    transform: translateX(0);
}
.boot-line .dim  { color: rgba(0,255,65,0.4); }
.boot-line .ok   { color: var(--accent-green); }
.boot-line .warn { color: var(--accent-amber); }

.boot-progress-bar {
    margin-top: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--green-code);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.boot-progress-bar.visible { opacity: 1; }
.boot-progress-track {
    width: 200px;
    height: 3px;
    background: rgba(0,255,65,0.15);
    position: relative;
    overflow: hidden;
}
.boot-progress-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--green-code);
    width: 0%;
    transition: width 0.1s linear;
}
.boot-pct { font-size: 0.7rem; min-width: 3ch; }

.boot-mountains {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    line-height: 0;
}
.boot-mountains.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCENE 2 — IDENTITY
   ============================================================ */
.scene--identity {
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(4rem, 10vh, 7rem);
    padding-bottom: clamp(4rem, 10dvh, 7rem);
}
.identity-mountains {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    pointer-events: none;
    line-height: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.identity-mountains.visible { opacity: 1; }

.identity-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--gap);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s, transform 0.6s;
}
.identity-content.visible { opacity: 1; transform: translateY(0); }

.identity-eyebrow {
    display: block;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: rgba(240,165,0,0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.identity-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 11rem);
    line-height: 0.88;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    margin-bottom: 0.15em;
}
.identity-title .accent { color: var(--accent-amber); }
.identity-title .ext {
    font-size: 0.6em;
    color: rgba(240,235,226,0.4);
    letter-spacing: 0.04em;
    vertical-align: 0.08em;
}
.identity-sub {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--muted);
    font-style: italic;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.identity-cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-code);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--accent-amber);
    border-bottom: 1px solid rgba(240,165,0,0.3);
    padding-bottom: 0.2rem;
    text-transform: uppercase;
}
.identity-cta .blink-cursor {
    display: inline-block;
    width: 7px; height: 1em;
    background: var(--accent-amber);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
}
.identity-cta:hover { text-decoration: none; border-color: var(--accent-amber); }

/* ============================================================
   SCENE 3 — INIT DATA
   ============================================================ */
.scene--data { background: var(--bg); }
.data-block {
    font-family: var(--font-code);
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    color: var(--muted);
    padding: var(--gap);
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.data-block.visible { opacity: 1; transform: translateY(0); }
.data-block .kw      { color: var(--accent-amber); }
.data-block .key     { color: #5ba3e0; }
.data-block .val     { color: var(--text); }
.data-block .num     { color: var(--accent-green); }
.data-block .str     { color: var(--accent-amber); }
.data-block .comment { color: rgba(154,144,135,0.5); }
.stat-val {
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   SCENE 4 — GIT LOG
   ============================================================ */
.scene--gitlog {
    background: var(--bg);
    align-items: flex-start;
    padding: var(--gap);
}
.gitlog {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-code);
    padding-top: 2rem;
}
.gitlog-prompt {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s, transform 0.4s;
}
.gitlog-prompt.visible { opacity: 1; transform: translateX(0); }
.gitlog-prompt .dollar { color: var(--accent-amber); }

.commit-entry {
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s 0.1s, transform 0.5s 0.1s, border-color 0.2s;
    cursor: pointer;
}
.commit-entry.visible { opacity: 1; transform: translateY(0); }
.commit-entry:hover { border-color: var(--accent-amber); }

.commit-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.commit-hash   { font-size: 0.7rem; color: var(--accent-amber); letter-spacing: 0.05em; }
.commit-author { font-size: 0.7rem; color: var(--muted); }
.commit-plugin-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0.25rem 0;
}
.commit-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.commit-tag {
    font-family: var(--font-code);
    font-size: 0.62rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.commit-tag--green { color: var(--accent-green); border-color: rgba(74,173,82,0.3); }
.commit-tag--amber { color: var(--accent-amber); border-color: rgba(240,165,0,0.3); }
.commit-tag--blue  { color: #5ba3e0; border-color: rgba(20,102,176,0.3); }

.commit-expand-hint {
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding: 0 1.5rem 1rem;
}
.commit-expand-hint::before { content: '▶ '; color: var(--accent-amber); }
.commit-entry.open .commit-expand-hint { display: none; }

.commit-body {
    display: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}
.commit-entry.open .commit-body { display: block; }

.commit-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 1.25rem;
}

.diff-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent-green);
}
.diff-list li::before { content: '+ '; }

.commit-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ============================================================
   SCENE 5 — MANIFESTO
   ============================================================ */
.scene--manifesto {
    background: var(--accent-amber);
    position: relative;
}
.scene--manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(0,0,0,0.06) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0,0,0,0.06) 25%, transparent 25%),
        linear-gradient(45deg,  rgba(0,0,0,0.06) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0,0,0,0.06) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    pointer-events: none;
}
.manifesto-code {
    font-family: var(--font-code);
    font-size: clamp(1rem, 2.8vw, 1.6rem);
    color: rgba(16,14,12,0.85);
    line-height: 1;
    padding: var(--gap);
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
    z-index: 1;
}
.manifesto-comment-header { color: rgba(16,14,12,0.4); font-size: 0.85em; }
.manifesto-line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s, transform 0.4s;
}
.manifesto-line.visible { opacity: 1; transform: translateX(0); }
.manifesto-line .line-prefix { color: rgba(16,14,12,0.35); font-size: 0.75em; }
.manifesto-line .line-num    { color: rgba(16,14,12,0.35); min-width: 1.5ch; }
.manifesto-line .line-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    color: #100e0c;
}

/* ============================================================
   SCENE 6 — FILE OPEN (editor)
   ============================================================ */
.scene--editor {
    background: var(--surface);
    align-items: stretch;
    flex-direction: column;
    padding: 0;
}
.editor-chrome {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s, transform 0.6s;
    align-self: center;
}
.editor-chrome.visible { opacity: 1; transform: translateY(0); }

.editor-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex-shrink: 0;
    overflow-x: auto;
}
.editor-tab {
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--muted);
    padding: 0.6rem 1.25rem;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.editor-tab.active {
    color: var(--text);
    background: var(--bg);
    border-bottom: 1px solid var(--bg);
    margin-bottom: -1px;
}
.editor-tab .close { color: var(--border); margin-left: 0.5rem; }

.editor-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.editor-gutter {
    font-family: var(--font-code);
    font-size: clamp(0.65rem, 1.5vw, 0.78rem);
    color: rgba(154,144,135,0.3);
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    text-align: right;
    border-right: 1px solid var(--border);
    user-select: none;
    line-height: 2;
    flex-shrink: 0;
    min-width: 3rem;
}
.editor-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    scrollbar-width: none;
    font-family: var(--font-code);
    font-size: clamp(0.78rem, 2vw, 0.92rem);
    line-height: 2;
    color: var(--text);
}
.editor-content::-webkit-scrollbar { display: none; }
.editor-content .comment   { color: rgba(154,144,135,0.5); }
.editor-content .separator { color: var(--border); }
.editor-content .highlight { color: var(--accent-amber); }
.editor-content a { color: var(--accent-amber); font-size: 0.8em; }

.editor-terminal {
    border-top: 1px solid var(--border);
    background: #080604;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--accent-green);
    flex-shrink: 0;
    overflow-x: auto;
}
.editor-terminal .prompt { color: var(--accent-amber); }
.editor-terminal .out    { color: var(--text); }

/* ============================================================
   SCENE 7 — SHUTDOWN
   ============================================================ */
.scene--shutdown {
    background: var(--bg-code);
    flex-direction: column;
    justify-content: center;
    padding: var(--gap);
}
.shutdown-inner {
    max-width: 600px;
    width: 100%;
    font-family: var(--font-code);
    opacity: 0;
    transition: opacity 0.6s;
}
.shutdown-inner.visible { opacity: 1; }
.shutdown-prompt {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--green-code);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}
.shutdown-prompt .cursor {
    display: inline-block;
    width: 9px; height: 1.1em;
    background: var(--green-code);
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
    margin-left: 3px;
}
.shutdown-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.shutdown-nav a { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.shutdown-nav a::before { content: './'; color: rgba(154,144,135,0.4); }
.shutdown-nav a:hover { color: var(--accent-amber); text-decoration: none; }
.shutdown-msg {
    font-size: 0.65rem;
    color: rgba(154,144,135,0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid rgba(46,40,32,0.5);
    padding-top: 1.5rem;
    margin-top: 1rem;
}
.shutdown-msg::before { content: '// '; }

/* Footer used on inner pages (plugins, about, impressum) — same terminal
   aesthetic as the shutdown scene but compact (not full-screen height). */
.site-footer {
    background: var(--bg-code);
    padding: clamp(2rem, 5vw, 3.5rem) var(--gap);
    display: flex;
    justify-content: center;
}
.site-footer .shutdown-inner {
    opacity: 1;
    transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    text-decoration: none;
}
.btn:hover { border-color: var(--accent-amber); color: var(--accent-amber); text-decoration: none; }
.btn--amber { background: var(--accent-amber); border-color: var(--accent-amber); color: #100e0c; }
.btn--amber:hover { background: #ffc72c; border-color: #ffc72c; color: #100e0c; }
.btn--lg { font-size: 0.78rem; padding: 0.75rem 1.5rem; }

/* ============================================================
   INNER PAGES — Editor Chrome
   ============================================================ */
.page-editor {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem;
}
.page-editor__tabs {
    position: sticky;
    top: 3.5rem;
    z-index: 100;
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(28,25,22,0.95);
    backdrop-filter: blur(12px);
    overflow-x: auto;
}
.page-editor__tab {
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--muted);
    padding: 0.8rem 1.5rem;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.page-editor__tab:hover { color: var(--accent-amber); text-decoration: none; }
.page-editor__tab.active {
    color: var(--text);
    background: var(--bg);
    border-bottom: 2px solid var(--accent-amber);
}
.page-editor__body {
    display: flex;
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gap);
}
.page-editor__gutter {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: rgba(154,144,135,0.2);
    padding: 3rem 1.5rem 3rem 0;
    text-align: right;
    border-right: 1px solid rgba(46,40,32,0.4);
    user-select: none;
    line-height: 2;
    flex-shrink: 0;
    min-width: 3.5rem;
}
.page-editor__content {
    flex: 1;
    min-width: 0;
    padding: 3rem 0 3rem 2rem;
}

/* Prose inside inner pages */
.page-prose {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.85;
}
.page-prose h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    margin: 3rem 0 1rem;
    line-height: 1;
}
.page-prose h3 {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent-amber);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 2rem 0 0.5rem;
}
.page-prose p { margin-bottom: 1.1rem; }
.page-prose strong { color: var(--text); }
.page-prose a:not(.btn) { color: var(--accent-amber); }
.page-prose .code-comment {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: rgba(154,144,135,0.45);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.25rem;
    margin-top: 2rem;
}

/* Terminal block */
.terminal-block {
    background: #080604;
    border: 1px solid var(--border);
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    line-height: 1.9;
    color: var(--accent-green);
    overflow-x: auto;
    margin: 2rem 0;
}
.terminal-block__bar {
    display: flex; align-items: center; gap: 0.5rem;
    margin: -1.5rem -1.5rem 1.25rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.terminal-block__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-block__dot--red    { background: #ff5f56; }
.terminal-block__dot--yellow { background: #ffbd2e; }
.terminal-block__dot--green  { background: #27c93f; }
.terminal-block__title { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.5rem; }
.terminal-block .prompt { color: var(--accent-amber); }
.terminal-block .output { color: var(--text); }
.terminal-block p { margin: 0; }
.terminal-block .gap { margin-top: 0.75rem; }

/* Journey timeline */
.journey { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.journey__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.journey__item:last-child { border-bottom: none; }
.journey__year { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-amber); line-height: 1; }
.journey__text { font-family: var(--font-code); font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.journey__text strong { color: var(--text); }

/* Badge */
.badge {
    font-family: var(--font-code); font-size: 0.62rem; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.22rem 0.55rem; border-radius: 2px;
}
.badge--green { background: rgba(74,173,82,0.12);   color: var(--accent-green); border: 1px solid rgba(74,173,82,0.25); }
.badge--blue  { background: rgba(20,102,176,0.12);  color: #5ba3e0;             border: 1px solid rgba(20,102,176,0.25); }
.badge--amber { background: rgba(240,165,0,0.12);   color: var(--accent-amber); border: 1px solid rgba(240,165,0,0.25); }
.badge--muted { background: rgba(154,144,135,0.08); color: var(--muted);        border: 1px solid var(--border); }

/* Legal */
.legal h2 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; color: var(--text); margin: 2.5rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border); letter-spacing: 0.03em; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-family: var(--font-code); font-size: 0.78rem; color: var(--accent-amber); letter-spacing: 0.1em; text-transform: uppercase; margin: 1.25rem 0 0.5rem; }
.legal p, .legal address { color: var(--muted); margin-bottom: 0.75rem; line-height: 1.75; font-style: normal; }
.legal ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal ul li { margin-bottom: 0.3rem; line-height: 1.65; }
.legal a { color: var(--accent-amber); }
.legal em { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-pill__links { display: none; }
    .nav-pill__hamburger { display: block; }
    .identity-title { white-space: normal; font-size: clamp(3rem, 14vw, 7rem); }
    .page-editor__gutter { display: none; }
    .page-editor__content { padding: 2rem 0; }
    .page-prose { max-width: 100%; }
    .commit-entry { max-width: 100%; }
    .commit-hash { overflow-wrap: break-word; word-break: break-word; }
    .commit-body { padding: 1rem; }
    .diff-list { overflow-wrap: break-word; word-break: break-word; }
    .journey__item { grid-template-columns: 60px 1fr; gap: 1rem; }
    .editor-chrome { border: none; max-height: none; height: auto; min-height: 100vh; min-height: 100dvh; }
    .editor-gutter { display: none; }
    .editor-content { padding: 1.25rem; }
    .gitlog { padding-top: 0; }
    .commit-header { padding: 1rem; }
    .commit-actions { flex-direction: column; }
    .commit-actions .btn { text-align: center; justify-content: center; }
    .boot-sticky { padding: var(--gap) 1rem; }
    .boot-progress-track { width: 140px; }
    .editor-tabs { padding-left: 0; }
    .shutdown-inner { padding: 0; }
    .page-editor__body { padding: 0 1rem; }
}
@media (max-width: 480px) {
    .manifesto-code { font-size: 0.9rem; }
    .manifesto-line .line-text { font-size: clamp(1.4rem, 7vw, 2rem); }
    .commit-plugin-name { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .boot-terminal { font-size: 0.7rem; }
}
