/* ============================================
   ECG - Archival Bureaucratic Document Aesthetic
   Mid-20th Century European Office Style
   ============================================ */

@font-face {
    font-family: 'Brill';
    src: url('Brill-Roman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BrillItalic';
    src: url('Brill-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Str437';
    src: url('Str437.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BPtypewrite';
    src: url('BPtypewrite.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BPtypewriteDamaged';
    src: url('BPtypewriteDamaged.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EcgEx2';
    src: url('assets/ex2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Design Tokens
   ============================================ */
:root {
    --bg-paper-main: #000000;
    --bg-paper-dark: #111111;
    --bg-paper-light: #0A0A0A;
    --text-ink: #DED6BD;
    --text-ink-faded: #A39E8F;
    --text-ink-ghost: #7A7468;
    --accent-stamp: #6C7AA8;
    --accent-pencil: #C94C4C;
    --border-rule: rgba(222, 214, 189, 0.18);
    --border-rule-strong: rgba(222, 214, 189, 0.35);

    /* Legacy mappings for JS compatibility */
    --bg-primary: var(--bg-paper-main);
    --bg-secondary: var(--bg-paper-dark);
    --bg-tertiary: var(--bg-paper-dark);
    --text-primary: var(--text-ink);
    --text-secondary: var(--text-ink-faded);
    --text-muted: var(--text-ink-ghost);
    --accent-warm: var(--accent-pencil);
    --accent-glow: var(--accent-stamp);
    --accent-edge: var(--accent-pencil);
    --border-subtle: var(--border-rule);
    --border-strong: var(--border-rule-strong);
    --paper-binding-line: rgba(222, 214, 189, 0.12);
    --paper-binding-hole-fill: rgba(20, 20, 20, 0.72);
    --paper-binding-hole-border: rgba(222, 214, 189, 0.16);
    --bg-notify-band: #100d0b;

    /* Typography */
    --font-typewriter: 'Special Elite', 'Courier Prime', 'Cutive Mono', monospace;
    --font-home-typewriter: 'BPtypewrite', 'Special Elite', 'Courier Prime', 'Cutive Mono', monospace;
    --font-fraktur: 'UnifrakturMaguntia', 'OldMaster', serif;
    --font-stamp: 'Oswald', 'Arial Narrow', sans-serif;
    --font-hand: 'Caveat', cursive;
    --font-display: var(--font-fraktur);
    --font-sans: var(--font-typewriter);
    --font-mono: 'Courier Prime', 'Cutive Mono', monospace;
    --font-logo: 'EcgEx2', 'BauhausRegular', 'Hypereality', 'Berghan', var(--font-fraktur);
    --font-agave: 'AgaveRegular', var(--font-mono);
    --font-ornate: 'OldMaster', 'Berghan', var(--font-fraktur);

    --base-size: 15px;
}

@view-transition {
    navigation: auto;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    /* Prevent white flash through view-transition "holes" where named elements
       are extracted from the root snapshot (they become visibility:hidden there) */
    background-color: var(--bg-paper-main);
}

body {
    font-family: var(--font-typewriter);
    font-weight: 400;
    font-size: var(--base-size);
    line-height: 1.65;
    color: var(--text-ink);
    background: var(--bg-paper-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-pencil);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-stamp);
}

button,
input {
    font-family: var(--font-typewriter);
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ============================================
   Background Canvas (dimmed for paper feel)
   ============================================ */
#generative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    mix-blend-mode: multiply;
}


/* ============================================
   Navigation - Discrete filing index tabs
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    min-height: 32px;
    backdrop-filter: none;
    view-transition-name: top-nav;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    justify-content: center;
}

.nav-cta {
    font-family: 'Brill', serif;
    font-size: calc(0.68rem + 1.7px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(248, 244, 234, 0.55);
    padding: 0.45em 0;
    text-transform: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.65;
}

.nav-cta:hover {
    color: rgba(248, 244, 234, 0.92);
    opacity: 1;
}

.nav-cta.active {
    color: rgba(248, 244, 234, 0.85);
    opacity: 1;
    position: relative;
}

.nav-cta.active::after {
    content: '';
    position: absolute;
    bottom: 0.15em;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(248, 244, 234, 0.5);
    opacity: 0.6;
}

.nav-separator {
    color: rgba(248, 244, 234, 0.25);
    font-family: 'Brill', serif;
    font-size: calc(0.55rem + 1.7px);
    user-select: none;
    opacity: 0.65;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-bauhaus {
    display: block;
    min-height: auto;
    padding: 10rem 2rem 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
    background: transparent;
    margin-left: 2rem;
}

.hero-left {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    background: transparent;
}

.hero-center {
    padding: 0;
    min-height: calc(100vh - 6rem);
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
}

.hero-left-content {
    width: min(620px, 100%);
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    left: -1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.dev-page-main {
    margin-left: 2rem;
}

.shell-binding-rail {
    position: fixed;
    top: 5.8rem;
    bottom: 1.5rem;
    left: clamp(0.85rem, calc(50% - 37rem), 5.25rem);
    width: 1.5rem;
    pointer-events: none;
    z-index: 42;
    opacity: 0.9;
}

.shell-binding-rail::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--paper-binding-line), var(--paper-binding-line)) 0.55rem 0 / 1px 100% no-repeat,
        linear-gradient(to bottom, rgba(43, 43, 43, 0.08), rgba(43, 43, 43, 0.08)) 0.85rem 0 / 1px 100% no-repeat;
}

.shell-binding-rail::after {
    content: '';
    position: absolute;
    top: 2.05rem;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper-binding-hole-fill);
    border: 1px solid var(--paper-binding-hole-border);
    opacity: 0.82;
    box-shadow:
        0 4rem 0 0 var(--paper-binding-hole-fill),
        0 4rem 0 0 var(--paper-binding-hole-fill),
        0 8rem 0 0 var(--paper-binding-hole-fill),
        0 12rem 0 0 var(--paper-binding-hole-fill),
        0 16rem 0 0 var(--paper-binding-hole-fill),
        0 20rem 0 0 var(--paper-binding-hole-fill),
        0 24rem 0 0 var(--paper-binding-hole-fill);
}

.shell-profile-art {
    position: relative;
    width: 122px;
    height: 122px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    view-transition-name: shell-profile-art;
}

.dev-author-art {
    width: 96px;
    height: 136px;
    transform: scale(0.88);
    transform-origin: center center;
    border-radius: 5px;
    border: none;
    background: none;
    filter: none;
    overflow: hidden;
}

.home-shell-sidebar {
    position: fixed;
    left: clamp(2.3rem, calc(50% - 37rem + 1.25rem), 6.5rem);
    top: calc(5.8rem + 2.05rem + 5px);
    margin-top: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: max-content;
    z-index: 80;
    pointer-events: auto;
}

.home-version-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.16em;
    background: linear-gradient(90deg, #283058, #781840, #2d4743);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    text-shadow: none;
    cursor: pointer;
    transition: filter 0.18s ease, opacity 0.18s ease, background 0.18s ease, -webkit-text-fill-color 0.18s ease;
    opacity: 1;
    filter: brightness(1.5);
}

.home-version-subtext {
    font-family: 'Arial', sans-serif;
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-version-text:hover {
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1);
    opacity: 1;
}

.home-shell-emblem {
    width: 96px;
    height: 136px;
    transform: scale(0.88);
    transform-origin: center center;
    border: none;
    border-radius: 0;
    background: none;
    filter: none;
    overflow: visible;
}

.home-shell-emblem::before,
.home-shell-emblem::after {
    display: none;
}

.home-blue-pencil-study {
    position: absolute;
    inset: 0;
    overflow: visible;
    isolation: isolate;
    background: none;
    border: none;
    border-radius: 2px;
    filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.home-blue-pencil-study > * {
    position: absolute;
}

.home-blue-pencil-study::before,
.home-blue-pencil-study::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.home-blue-pencil-study::before {
    z-index: 1;
    inset: 2px 2px 2px 4px;
    border-radius: 1px 3px 3px 1px;
    background: #d4cfc5;
    box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blue-pencil-study::after {
    z-index: 4;
    inset: 0 4px 0 0;
    border-radius: 2px 1px 1px 2px;
    clip-path: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 2%, transparent 98%, rgba(0,0,0,0.3) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 4%, transparent 100%),
        linear-gradient(90deg, transparent 6px, rgba(0,0,0,0.7) 7px, rgba(255,255,255,0.06) 8px, transparent 9px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E"),
        #151515;
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        inset -1px 0 2px rgba(0, 0, 0, 0.8);
    transform-origin: left center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blue-pencil-study:hover,
.home-blue-pencil-study:focus-visible,
.home-blue-pencil-study.is-open {
    transform: translateY(-2px);
    opacity: 0.98;
    filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    outline: none;
}

.home-blue-pencil-study:hover::after,
.home-blue-pencil-study:focus-visible::after,
.home-blue-pencil-study.is-open::after {
    transform: translateX(-1px);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        inset -1px 0 2px rgba(0, 0, 0, 0.8);
}

.home-blue-regbox {
    display: none;
}

.home-blue-regbox::before,
.home-blue-regbox::after {
    display: none;
}

.home-blue-pencil-study:hover .home-blue-regbox,
.home-blue-pencil-study:focus-visible .home-blue-regbox,
.home-blue-pencil-study.is-open .home-blue-regbox {
    display: none;
}

.home-blue-pencil-study:hover .home-blue-regbox::before,
.home-blue-pencil-study:focus-visible .home-blue-regbox::before,
.home-blue-pencil-study.is-open .home-blue-regbox::before {
    display: none;
}

.home-blue-pencil-study:hover .home-blue-regbox::after,
.home-blue-pencil-study:focus-visible .home-blue-regbox::after,
.home-blue-pencil-study.is-open .home-blue-regbox::after {
    display: none;
}

.home-blue-regtext {
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    right: 15px;
    text-align: right;
    font-family: 'Arial', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: #cda875;
    text-transform: uppercase;
    text-shadow: 0 -1px 0px rgba(0,0,0,0.8), 0 1px 0px rgba(255,255,255,0.15);
}

.home-blue-number {
    display: none;
}

.home-blue-slash {
    display: none;
}

.home-blue-note {
    display: none;
}

.home-blue-fade {
    display: none;
}

.home-blue-clue {
    z-index: 5;
    left: 13px;
    right: 12px;
    top: auto;
    bottom: 16px;
    text-align: right;
    font-family: var(--font-home-typewriter);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(238, 232, 216, 0.72);
    opacity: 1;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.76);
    transition: color 0.14s ease, opacity 0.14s ease;
}

.home-blue-pencil-study:hover .home-blue-clue,
.home-blue-pencil-study:focus-visible .home-blue-clue,
.home-blue-pencil-study.is-open .home-blue-clue {
    color: rgba(255, 250, 235, 0.9);
    opacity: 1;
}

.home-shell-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.home-shell-title {
    font-family: 'Brill', serif;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    color: var(--text-ink-faded);
    opacity: 0.9;
    line-height: 1;
}

.home-shell-caption {
    font-family: 'Brill', serif;
    font-size: 0.91rem;
    letter-spacing: 0.02em;
    color: #8a8178;
    opacity: 0.75;
    line-height: 1.1;
}

.page-shell-content {
    width: min(620px, 100%);
    max-width: 620px;
    gap: 1.5rem;
}

.page-shell-content > * {
    width: 100%;
}

.page-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.page-kicker {
    font-family: var(--font-typewriter);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-ink-ghost);
    opacity: 0.48;
    text-transform: none;
}

.page-summary {
    font-family: var(--font-typewriter);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-ink-faded);
    max-width: 34rem;
}

.page-ledger {
    position: relative;
    width: 100%;
    min-height: 22rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(90, 72, 45, 0.22);
    border-bottom: 1px solid rgba(90, 72, 45, 0.22);
    background-image: linear-gradient(rgba(90, 72, 45, 0.04) 0%, transparent 28%);
}

.page-ledger::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        rgba(90, 72, 45, 0.12) 0px,
        rgba(90, 72, 45, 0.12) 2px,
        transparent 2px,
        transparent 6px
    );
}

/* ============================================
   Logo
   ============================================ */
.hero-title {
    font-family: var(--font-fraktur);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none !important;
}

.hero-logo-lockup {
    margin: 0;
    width: min(100%, 1400px);
    position: relative;
    line-height: 0;
    pointer-events: none !important;
}

.hero-logo {
    display: block;
    width: clamp(300px, 39vw, 558px);
    height: auto;
    filter: invert(93%) sepia(8%) saturate(718%) hue-rotate(345deg) brightness(103%) contrast(92%);
}

#hero-logo-webgl {
    --logo-frame-inline: 92%;
    --logo-frame-block: 88%;
    --logo-frame-left: 4%;
    --logo-frame-top: 6%;
    position: relative;
    width: min(100%, 1144px);
    aspect-ratio: 11 / 3;
    height: auto;
    min-height: 290px;
    max-height: 475px;
    margin: -20px auto -36px;
    z-index: 10;
    isolation: isolate;
    pointer-events: none !important;
    overflow: visible;
    contain: layout;
    background: transparent;
}

#hero-logo-webgl canvas,
#hero-logo-webgl img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none !important;
}

#hero-logo-webgl .hero-logo-static {
    top: var(--logo-frame-top);
    left: var(--logo-frame-left);
    right: auto;
    bottom: auto;
    width: var(--logo-frame-inline);
    height: var(--logo-frame-block);
    object-position: center center;
}

#hero-logo-webgl img {
    z-index: 2;
    opacity: 0;
    filter: invert(93%) sepia(8%) saturate(718%) hue-rotate(345deg) brightness(103%) contrast(92%);
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-logo-text {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    font-family: var(--font-logo);
    font-size: clamp(3rem, 7.5vw, 4.75rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0;
    color: #F2EDDD;
    text-transform: lowercase;
    white-space: nowrap;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

.hero-logo-letter {
    display: block;
}

.hero-logo-letter-e {
    justify-self: start;
}

.hero-logo-letter-c {
    justify-self: center;
}

.hero-logo-letter-g {
    justify-self: end;
}

/* Old English eċġ diacritical dots above c and g — hidden */
.logo-dot {
    display: none !important;
}

.title-small {
    display: block;
    font-family: var(--font-stamp);
    font-size: clamp(0.65rem, 2vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-stamp);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 400;
    color: var(--text-ink-faded);
    text-align: center;
    margin-left: 0;
}

.title-ecg {
    font-family: var(--font-agave);
    color: var(--text-ink);
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* ============================================
   Typewriter Text Effect
   ============================================ */
.hero-typed-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-typewriter);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: calc(1em * 1.85);
    margin-bottom: 0.5rem;
    padding: 0.12em 0 0.18em;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    overflow: visible;
}

.typed-prefix {
    display: inline-block;
    color: var(--accent-stamp);
    opacity: 0.6;
    font-size: 0.95rem;
    font-family: 'Str437', var(--font-mono);
    line-height: inherit;
}

.typed-text {
    display: inline-block;
    color: var(--text-ink);
    font-size: 0.95rem;
    font-family: 'Str437', var(--font-mono);
    line-height: inherit;
    padding-top: 0.04em;
    padding-bottom: 0.1em;
}

.typed-cursor {
    display: inline-block;
    color: var(--text-ink-ghost);
    opacity: 0.5;
    font-family: 'Str437', var(--font-mono);
    line-height: inherit;
    padding-top: 0.04em;
    padding-bottom: 0.1em;
    animation: blink 1s step-end infinite;
}

.hero-typed-container.is-typing .typed-cursor {
    animation: none;
    opacity: 0.78;
}

.hero-typed-container.is-thinking .typed-cursor {
    animation: blink 1.15s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ============================================
   Hero Copy & Actions
   ============================================ */
.hero-copy {
    width: min(100%, 42rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-status-slip {
    width: min(620px, 100%);
    align-items: flex-start;
    gap: 0;
    padding: 0.7rem 0 0.8rem 1.2rem;
    border-top: 1px solid rgba(43, 43, 43, 0.18);
    border-bottom: 1px solid rgba(43, 43, 43, 0.12);
    position: relative;
    overflow: visible;
}

.hero-status-slip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.85rem;
    width: 1px;
    background: rgba(43, 43, 43, 0.2);
}

.hero-status-slip .hero-typed-container {
    width: 100%;
    min-height: calc(0.68rem * 1.9);
    height: auto;
    line-height: 1.55;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 0.35rem;
    padding: 0.08em 0 0.16em;
    overflow: visible;
}

.hero-status-slip .typed-prefix,
.hero-status-slip .typed-text,
.hero-status-slip .typed-cursor {
    font-family: var(--font-typewriter);
    font-size: 0.68rem;
    line-height: 1.55;
}

.hero-status-slip .typed-prefix {
    color: var(--text-ink-ghost);
    opacity: 0.62;
}

.hero-status-slip .typed-text {
    color: var(--text-ink);
    opacity: 0.82;
}

.hero-status-slip .typed-cursor {
    color: var(--text-ink-ghost);
    opacity: 0.42;
}

.hero-status-slip .hero-typed-container.is-typing .typed-cursor {
    opacity: 0.56;
}

.hero-intro {
    font-family: var(--font-typewriter);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    color: var(--text-ink-ghost);
    opacity: 0.65;
    letter-spacing: 0.01em;
    max-width: 22rem;
}

.home-page {
    --workspace-showcase-top: 50%;
}

.home-page .hero-status-slip .typed-prefix,
.home-page .hero-status-slip .typed-text,
.home-page .hero-status-slip .typed-cursor,
.home-page .btn,
.home-page .btn-label,
.home-page .hero-download-hint,
.home-page .feature-num,
.home-page .feature-name,
.home-page .feature-meta,
.home-page .access-label,
.home-page .access-sublabel,
.home-page .access-input,
.home-page .access-btn,
.home-page .access-btn-label,
.home-page .footer-copy,
.home-page .footer-copy::before {
    font-family: var(--font-home-typewriter);
}

.home-page .access-input::placeholder {
    font-family: var(--font-home-typewriter);
}

.home-page .access-label,
.home-page .access-sublabel,
.home-page .access-input,
.home-page .access-input::placeholder,
.home-page .access-btn,
.home-page .access-btn-label,
.home-page .btn-symbol,
.home-page .footer-copy,
.home-page .footer-copy::before {
    font-family: 'Brill', serif;
}

.home-page .hero-intro {
    font-family: 'BrillItalic', 'Brill', serif;
}

.home-page .feature-name {
    font-family: 'BPtypewriteDamaged', 'BPtypewrite', 'Special Elite', 'Courier Prime', 'Cutive Mono', monospace;
}

.home-page .shell-binding-rail::after {
    display: none;
}

.home-showcase-rail-nav {
    position: absolute;
    top: 2.05rem;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.375rem;
    align-items: flex-start;
    pointer-events: auto;
}

.home-showcase-rail-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 0;
    border: 1px solid var(--paper-binding-hole-border);
    background: var(--paper-binding-hole-fill);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    pointer-events: none;
}

.home-showcase-rail-dot::before {
    content: '';
    position: absolute;
    inset: -10px;
}

.home-showcase-rail-dot:hover,
.home-showcase-rail-dot:focus-visible {
    transform: scale(1.08);
    border-color: rgba(49, 61, 89, 0.35);
    background: rgba(209, 202, 178, 0.95);
    box-shadow: 0 0 0 1px rgba(49, 61, 89, 0.08);
    outline: none;
}

.home-showcase-rail-dot.is-active {
    border-color: rgba(49, 61, 89, 0.45);
    background: rgba(88, 104, 144, 0.74);
    box-shadow: 0 0 0 1px rgba(49, 61, 89, 0.12);
}

.workspace-showcase-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    transition: opacity 0.14s ease, background 0.14s ease;
}

.workspace-showcase-backdrop[aria-hidden="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

.workspace-showcase-backdrop[aria-hidden="false"] {
    visibility: visible;
}

.home-page.workspace-showcase-focus .workspace-showcase-backdrop {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.72);
}

.home-page.workspace-showcase-focus .nav,
.home-page.workspace-showcase-focus .home-shell-sidebar,
.home-page.workspace-showcase-focus #hero-logo-webgl,
.home-page.workspace-showcase-focus .hero-status-slip,
.home-page.workspace-showcase-focus .feature-list,
.home-page.workspace-showcase-focus .access,
.home-page.workspace-showcase-focus .footer {
    filter: blur(5px);
    opacity: 0.14;
    pointer-events: none;
    transition: filter 0.14s ease, opacity 0.14s ease;
}

.home-page.workspace-showcase-focus .shell-binding-rail {
    z-index: 10003;
    opacity: 0.9;
    filter: none;
    pointer-events: auto;
    transition: none;
}

.home-page.workspace-showcase-focus .home-showcase-rail-dot {
    pointer-events: auto;
}

.workspace-showcase {
    position: fixed;
    top: var(--workspace-showcase-top);
    left: 50%;
    width: min(1030px, calc(100vw - 4rem));
    max-width: 1030px;
    z-index: 10002;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.992);
    transform-origin: center center;
    transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-showcase[aria-hidden="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

.workspace-showcase[aria-hidden="false"] {
    visibility: visible;
}

.workspace-showcase.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.workspace-showcase-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-showcase-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    pointer-events: none;
}

.workspace-showcase-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-showcase-kicker {
    font-family: var(--font-home-typewriter);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: rgba(222, 214, 189, 0.35);
    opacity: 1;
    text-transform: lowercase;
}

.workspace-showcase-page {
    font-family: var(--font-home-typewriter);
    font-size: 0.62rem;
    color: rgba(222, 214, 189, 0.35);
    opacity: 1;
}

.workspace-showcase-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(222, 214, 189, 0.45);
    font-family: var(--font-home-typewriter);
    font-size: 1rem;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.workspace-showcase-close:hover,
.workspace-showcase-close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(222, 214, 189, 0.9);
    outline: none;
}

.workspace-showcase-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: transparent;
    isolation: isolate;
}

.workspace-stage-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: rgba(43, 43, 43, 0.38);
    font-family: var(--font-home-typewriter);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    padding: 0.5rem;
    transform: translateY(-50%);
    transition: color 0.14s ease, transform 0.14s ease;
}

.workspace-stage-arrow--prev {
    left: 0.5rem;
}

.workspace-stage-arrow--next {
    right: 0.5rem;
}

.workspace-stage-arrow:hover,
.workspace-stage-arrow:focus-visible {
    color: rgba(43, 43, 43, 0.88);
    transform: translateY(-50%) scale(1.1);
    outline: none;
}

.workspace-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.workspace-slide-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(29, 32, 38, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(35, 39, 47, 0.96) 0 17%, rgba(247, 243, 234, 0.96) 17% 76%, rgba(228, 219, 198, 0.9) 76% 100%);
}

.workspace-slide-screen::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    width: 2.7rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        3.4rem 0 0 rgba(255, 255, 255, 0.09),
        5.8rem 0 0 rgba(255, 255, 255, 0.07);
    z-index: 2;
}

.workspace-slide-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 16%, rgba(43, 43, 43, 0.05) 100%);
    pointer-events: none;
}

.workspace-slide--captured .workspace-slide-screen {
    background: transparent;
    isolation: isolate;
}

.workspace-slide--captured .workspace-slide-screen::before,
.workspace-slide--captured .workspace-slide-screen::after {
    display: none;
}

.workspace-slide-screen--reader {
    background:
        linear-gradient(180deg, rgba(29, 32, 38, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(39, 43, 51, 0.96) 0 15%, rgba(250, 247, 240, 0.97) 15% 74%, rgba(230, 222, 199, 0.92) 74% 100%),
        linear-gradient(90deg, transparent 0 27%, rgba(60, 75, 112, 0.08) 27% 28%, transparent 28% 100%);
}

.workspace-slide-screen--library {
    background:
        linear-gradient(180deg, rgba(31, 34, 40, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(33, 37, 43, 0.98) 0 14%, rgba(240, 232, 213, 0.96) 14% 58%, rgba(214, 205, 183, 0.9) 58% 100%),
        linear-gradient(0deg, transparent 0 18%, rgba(92, 83, 57, 0.12) 18% 19%, transparent 19% 38%, rgba(92, 83, 57, 0.12) 38% 39%, transparent 39% 58%, rgba(92, 83, 57, 0.12) 58% 59%, transparent 59% 100%);
}

.workspace-slide-screen--ocr {
    background:
        linear-gradient(180deg, rgba(28, 31, 36, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(37, 40, 48, 0.94) 0 13%, rgba(247, 241, 227, 0.97) 13% 63%, rgba(30, 34, 42, 0.98) 63% 100%),
        linear-gradient(0deg, transparent 0 24%, rgba(138, 42, 42, 0.1) 24% 25%, transparent 25% 49%, rgba(138, 42, 42, 0.1) 49% 50%, transparent 50% 74%, rgba(138, 42, 42, 0.1) 74% 75%, transparent 75% 100%);
}

.workspace-slide-screen--notes {
    background:
        linear-gradient(180deg, rgba(31, 34, 39, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(40, 44, 49, 0.96) 0 13%, rgba(248, 245, 239, 0.98) 13% 69%, rgba(221, 210, 185, 0.92) 69% 100%),
        linear-gradient(90deg, transparent 0 35%, rgba(176, 44, 44, 0.12) 35% 35.4%, transparent 35.4% 100%),
        linear-gradient(0deg, transparent 0 22%, rgba(43, 43, 43, 0.08) 22% 22.5%, transparent 22.5% 45%, rgba(43, 43, 43, 0.08) 45% 45.5%, transparent 45.5% 68%, rgba(43, 43, 43, 0.08) 68% 68.5%, transparent 68.5% 100%);
}

.workspace-slide-screen--compare {
    background:
        linear-gradient(180deg, rgba(29, 33, 38, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(35, 39, 47, 0.96) 0 12%, rgba(247, 242, 231, 0.97) 12% 44%, rgba(216, 207, 187, 0.92) 44% 48%, rgba(248, 245, 238, 0.97) 48% 80%, rgba(220, 210, 188, 0.9) 80% 100%);
}

.workspace-slide-screen--state {
    background:
        linear-gradient(180deg, rgba(28, 31, 36, 0.96) 0 2.1rem, transparent 2.1rem 100%),
        linear-gradient(90deg, rgba(33, 37, 43, 0.98) 0 12%, rgba(245, 239, 228, 0.97) 12% 72%, rgba(214, 204, 181, 0.92) 72% 100%),
        radial-gradient(circle at 78% 36%, rgba(77, 112, 162, 0.16) 0, rgba(77, 112, 162, 0.16) 8%, rgba(77, 112, 162, 0) 9%),
        radial-gradient(circle at 78% 54%, rgba(176, 62, 62, 0.14) 0, rgba(176, 62, 62, 0.14) 8%, rgba(176, 62, 62, 0) 9%);
}

.workspace-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.workspace-slide-screen--library .workspace-slide-image,
.workspace-slide-screen--ocr .workspace-slide-image,
.workspace-slide-screen--notes .workspace-slide-image,
.workspace-slide-screen--compare .workspace-slide-image {
    object-position: left top;
}

.workspace-slide-image:not([src]),
.workspace-slide-image[src=""] {
    display: none;
}

.workspace-slide-fallback {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: min(21rem, calc(100% - 7rem));
    padding: 0.9rem 1rem;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.workspace-slide-image[src]:not([src=""]) + .workspace-slide-fallback {
    display: none;
}

.workspace-slide-image:not([src]) + .workspace-slide-fallback,
.workspace-slide-image[src=""] + .workspace-slide-fallback {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.96);
}

.workspace-slide-slot {
    font-family: var(--font-home-typewriter);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(222, 214, 189, 0.3);
    text-transform: lowercase;
}

.workspace-slide-title {
    font-family: 'BrillItalic', 'Brill', serif;
    font-size: 1.38rem;
    font-weight: 400;
    line-height: 1.05;
    color: rgba(222, 214, 189, 0.85);
}

.workspace-slide-note {
    font-family: var(--font-home-typewriter);
    font-size: 0.73rem;
    line-height: 1.55;
    color: rgba(222, 214, 189, 0.45);
}

.workspace-slide-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.workspace-slide-arrow {
    min-width: 2rem;
    height: 1.7rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(222, 214, 189, 0.45);
    font-family: var(--font-home-typewriter);
    font-size: 0.74rem;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.workspace-slide-arrow:hover,
.workspace-slide-arrow:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(222, 214, 189, 0.9);
    transform: translateY(-1px);
    outline: none;
}

.workspace-showcase-inline-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.workspace-showcase-inline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(43, 43, 43, 0.22);
    background: rgba(217, 208, 180, 0.85);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    pointer-events: none;
}

.workspace-showcase-inline-dot.is-active {
    background: rgba(88, 104, 144, 0.72);
    border-color: rgba(49, 61, 89, 0.42);
}

.hero-actions {
    position: relative;
    z-index: 10003;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: min(620px, 100%);
    justify-content: center;
    pointer-events: auto !important;
}

.hero-download-hint {
    position: relative;
    z-index: 10003;
    display: block;
    width: min(480px, 100%);
    font-family: serif;
    font-size: calc(0.85rem * 1.12);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    color: #000000;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    margin-top: 1.3rem;
}

.hero-download-hint.is-active {
    color: var(--accent-pencil);
    opacity: 0.7;
}

/* ============================================
   Buttons - Typed document labels
   ============================================ */
.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.7em 1.5em;
    font-family: var(--font-typewriter);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid var(--border-rule);
    border-radius: 0;
    text-transform: lowercase;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-ink-faded);
    background: transparent;
}

.btn-primary {
    background: rgba(106, 152, 128, 0.14);
    color: #3a7868;
    border: 1px solid rgba(106, 152, 128, 0.5);
}

.btn-primary:hover {
    background: rgba(106, 152, 128, 0.22);
    color: #2a5848;
    border-color: rgba(106, 152, 128, 0.7);
}

/* Mononoke fills — each button a different spirit */
/* Windows — Shishigami midnight navy */
.btn-download:nth-child(1) {
    background: #283058;
    color: #f0ebe0;
    border: none;
}
.btn-download:nth-child(1) .btn-version {
    color: rgba(240, 235, 224, 0.75);
}

.btn-download:nth-child(1):hover {
    background: #000000;
    border: none;
    color: #fff;
}
.btn-download:nth-child(1):hover .btn-version {
    color: rgba(255, 255, 255, 0.9);
}

/* Linux — Irontown deep crimson */
.btn-download:nth-child(2) {
    background: #781840;
    color: #f0ebe0;
    border: none;
}
.btn-download:nth-child(2) .btn-version {
    color: rgba(240, 235, 224, 0.75);
}

.btn-download:nth-child(2):hover {
    background: #000000;
    border: none;
    color: #fff;
}
.btn-download:nth-child(2):hover .btn-version {
    color: rgba(255, 255, 255, 0.9);
}

/* macOS — Kodama forest moss */
.btn-download:nth-child(3) {
    background: #2d4743;
    color: #f0ebe0;
    border: none;
}
.btn-download:nth-child(3) .btn-version {
    color: rgba(240, 235, 224, 0.75);
}

.btn-download:nth-child(3):hover {
    background: #000000;
    border: none;
    color: #fff;
}
.btn-download:nth-child(3):hover .btn-version {
    color: rgba(255, 255, 255, 0.9);
}

.btn-download:hover,
.btn-download.is-hovered,
.btn-download:focus-visible {
    background: #000000;
    border: none;
    color: #fff;
    outline: none;
}

.btn-download:hover .btn-label,
.btn-download.is-hovered .btn-label,
.btn-download:focus-visible .btn-label,
.btn-download:hover .btn-version,
.btn-download.is-hovered .btn-version,
.btn-download:focus-visible .btn-version {
    color: #ffffff;
}

.btn-download {
    gap: 0.6rem;
    padding: 0.6em 1.4em;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    border-radius: 0;
    justify-content: center;
    min-width: fit-content;
    white-space: nowrap;
    letter-spacing: 0.06em;
    border: none;
    position: relative;
    z-index: 10004;
    pointer-events: auto !important;
}

.btn-download.is-disabled {
    cursor: not-allowed;
}

.btn-download.is-disabled .btn-version {
    color: rgba(240, 235, 224, 0.75);
    opacity: 1;
}

.btn-download + .btn-download {
    border: none;
}

.btn-download .btn-icon {
    opacity: 0.95;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.btn-download .btn-label {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.btn-download .btn-version {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding-left: 0.25rem;
    color: #6a9880;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.btn-primary:hover .btn-version {
    color: #3a7868;
    opacity: 0.8;
}

/* ============================================
   Feature List - Typed Registry Ledger
   ============================================ */
.feature-list {
    width: min(620px, 100%);
    margin-top: 1.3rem;
    border-top: 1px solid rgba(90, 72, 45, 0.15);
    border-bottom: 1px solid rgba(90, 72, 45, 0.15);
}

.feature-item {
    display: grid;
    grid-template-columns: 2rem auto 1fr;
    gap: 0 0.8rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(43, 43, 43, 0.06);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-num {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: var(--text-ink-ghost);
    letter-spacing: 0.02em;
    opacity: 0.45;
}

.feature-name {
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-ink-faded);
    letter-spacing: 0.02em;
    grid-column: 2;
    white-space: nowrap;
}

.feature-meta {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: var(--text-ink-ghost);
    letter-spacing: 0.01em;
    opacity: 0.4;
    grid-column: 3;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    /* Dot leader fill between name and meta */
    border-bottom: 1px dotted rgba(43, 43, 43, 0.1);
    padding-bottom: 1px;
    margin-bottom: -1px;
}

@media (max-width: 600px) {
    .feature-item {
        grid-template-columns: 1.6rem auto 1fr;
        gap: 0 0.5rem;
    }
    .feature-meta {
        display: none;
    }
    .feature-name {
        grid-column: 2 / -1;
    }
}

/* ============================================
   Slider (legacy; keeping structure)
   ============================================ */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: transparent;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.slider-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.slider-track {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.slide-card {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
    padding: 0;
    border-radius: 0;
    min-width: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-card.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 2;
}

.slide-card.exit-fade {
    opacity: 0;
    transform: translateY(-8px);
    z-index: 1;
}

.slide-visual {
    height: 4.6rem;
    min-height: 4.6rem;
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    filter: saturate(0.3) sepia(0.2);
    border-radius: 0;
}

.slide-visual.pt-alt {
    background: transparent;
}

.slide-visual.pt-alt-2 {
    background: transparent;
}

.slide-info {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: none;
}

.slide-number {
    position: static;
    margin-bottom: 0.22rem;
    font-family: var(--font-stamp);
    color: var(--accent-stamp);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}

.slide-title {
    font-family: var(--font-typewriter);
    font-weight: 400;
    color: var(--text-ink);
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.slide-desc {
    color: var(--text-ink-faded);
    line-height: 1.4;
    font-size: 0.68rem;
    max-width: none;
    font-family: var(--font-typewriter);
}

.slide-discrete-text {
    display: none;
}

.slide-detail {
    display: none;
    color: var(--text-ink-faded);
    font-size: 0.84rem;
    line-height: 1.68;
}

/* ============================================
   Timeline Navigation
   ============================================ */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.slider-nav:hover {
    opacity: 0.8;
}

.slider-timeline {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding-bottom: 2rem;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-rule);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    background: var(--accent-stamp);
    transform: translateY(-50%) translateZ(0);
    z-index: 1;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
    opacity: 0.3;
    will-change: width;
}

.timeline-node {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: opacity 0.2s ease;
}

.timeline-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid var(--text-ink-ghost);
    background: var(--bg-paper-main);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.2s ease, background 0.2s ease;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.timeline-dot::after {
    display: none;
}

.timeline-node.active .timeline-dot {
    border-color: var(--accent-stamp);
    background: var(--accent-stamp);
    transform: scale(1) translateZ(0);
    box-shadow: none;
}

.timeline-node:hover .timeline-dot {
    border-color: var(--accent-stamp);
    transform: scale(1.06) translateZ(0);
}

.timeline-label {
    font-family: var(--font-mono);
    font-size: 0;
    letter-spacing: 0.08em;
    color: var(--text-ink-ghost);
    margin-top: 0;
    text-transform: lowercase;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.timeline-node.active .timeline-label,
.timeline-node:hover .timeline-label {
    font-size: 0;
    opacity: 0;
}

.timeline-node.visited .timeline-dot {
    border-color: rgba(74, 84, 128, 0.3);
    background: transparent;
}

/* ============================================
   Art Elements (dimmed for paper context)
   ============================================ */
.bh-art-grid {
    position: relative;
    width: min(100%, 72px);
    height: min(100%, 72px);
    background: transparent;
    overflow: visible;
    opacity: 0.35;
    filter: saturate(0) sepia(0.3) contrast(0.7);
}

.bh-shape {
    position: absolute;
    transform-origin: center;
}

/* Art styles - muted for archival feel */
.bh-large-circle { width: 140px; height: 140px; border-radius: 50%; background: var(--text-ink-ghost); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.03; }
.bh-intersect-rect { width: 160px; height: 1px; background: var(--text-ink-ghost); top: 60%; left: 20%; opacity: 0.4; }
.bh-border-sq { width: 6px; height: 6px; background: var(--text-ink-ghost); top: 60%; left: 20%; transform: translate(-50%, -50%); opacity: 0.7; }

.bh-comp8 { width: 250px; height: 250px; }
.c8-big-circle { width: 160px; height: 160px; border-radius: 50%; background: var(--text-ink-ghost); top: 20px; left: 10px; opacity: 0.08; }
.c8-med-circle { width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid var(--text-ink-ghost); top: 100px; right: 20px; opacity: 0.25; }
.c8-diag-1 { width: 230px; height: 1.5px; background: var(--text-ink-ghost); top: 75px; left: 0; transform: rotate(-28deg); transform-origin: left center; opacity: 0.3; }
.c8-diag-2 { width: 170px; height: 1px; background: var(--text-ink-ghost); top: 165px; left: 45px; transform: rotate(18deg); transform-origin: left center; opacity: 0.2; }
.c8-dot-1 { width: 10px; height: 10px; border-radius: 50%; background: var(--text-ink-ghost); top: 35px; right: 45px; opacity: 0.4; }

.bh-half-circle { width: 90px; height: 180px; border: 1px solid var(--text-ink-ghost); border-left: none; border-radius: 0 180px 180px 0; left: 50px; top: 35px; opacity: 0.1; }
.bh-red-block { width: 80px; height: 1px; background: var(--text-ink-ghost); top: 125px; left: 30px; opacity: 0.3; }
.bh-small-dots { width: 4px; height: 4px; background: var(--text-ink-ghost); top: 123.5px; left: 110px; border-radius: 50%; opacity: 0.5; }

/* ============================================
   Capabilities
   ============================================ */
.capabilities {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(90, 72, 45, 0.22);
    border-bottom: 1px solid rgba(90, 72, 45, 0.12);
    background: transparent;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cap-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    font-family: var(--font-typewriter);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-ink-faded);
    opacity: 1;
    transform: none;
    animation: none;
}

.cap-item { white-space: nowrap; }
.cap-value { font-weight: 700; color: var(--accent-stamp); letter-spacing: 0.02em; }
.cap-dot { color: var(--border-rule-strong); font-size: 0.6em; opacity: 0.5; }

/* ============================================
   Showcase Section
   ============================================ */
.showcase {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    padding-top: 2rem;
    background: transparent;
}

.showcase-intro {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.showcase-kicker {
    font-family: var(--font-stamp);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-stamp);
    opacity: 0.7;
}

.showcase-heading {
    font-family: var(--font-fraktur);
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text-ink);
}

.showcase-copy {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-ink-faded);
    font-family: var(--font-typewriter);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    opacity: 1;
    transform: none;
    animation: none;
    background: rgba(228, 218, 178, 0.4);
    border: 1px solid var(--border-rule);
    box-shadow: inset 0 2px 8px rgba(43, 43, 43, 0.04);
}

.showcase-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.showcase-detail {
    display: none;
    font-size: 0.92rem;
    line-height: 1.72;
    color: var(--text-ink-faded);
}

.geo-art {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    filter: saturate(0) sepia(0.2) contrast(0.7);
}

.feature-geo-art {
    width: 72px;
    height: 72px;
    opacity: 0.35;
    filter: saturate(0) sepia(0.2) contrast(0.7);
}

.feature-geo-art .geo-layer,
.feature-geo-art .geo-pulse,
.feature-geo-art .geo-stream,
.feature-geo-art .geo-node,
.feature-geo-art .grid-cell.active,
.feature-geo-art .geo-ring,
.feature-geo-art .geo-core {
    animation: none !important;
    transition: none !important;
}

/* Geometric elements - muted */
.geo-control .geo-layer { position: absolute; border: 1px solid var(--text-ink-ghost); opacity: 0.3; transition: all 0.4s ease; }
.geo-control .layer-1 { width: 60px; height: 60px; transform: rotate(0deg); animation: layerRotate1 12s ease-in-out infinite; }
.geo-control .layer-2 { width: 45px; height: 45px; transform: rotate(15deg); animation: layerRotate2 12s ease-in-out infinite; opacity: 0.5; }
.geo-control .layer-3 { width: 30px; height: 30px; transform: rotate(30deg); animation: layerRotate3 12s ease-in-out infinite; opacity: 0.7; }
.geo-control .geo-pulse { position: absolute; width: 8px; height: 8px; background: var(--text-ink-ghost); opacity: 0.8; animation: corePulse 3s ease-in-out infinite; }

@keyframes layerRotate1 { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(45deg); } }
@keyframes layerRotate2 { 0%, 100% { transform: rotate(15deg); } 50% { transform: rotate(-30deg); } }
@keyframes layerRotate3 { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(75deg); } }
@keyframes corePulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }

.geo-extract .geo-stream { position: absolute; width: 2px; background: linear-gradient(180deg, transparent 0%, var(--text-ink-ghost) 50%, transparent 100%); border-radius: 1px; }
.geo-extract .stream-1 { left: 25px; height: 50px; opacity: 0.4; animation: streamFlow 2.5s ease-in-out infinite; }
.geo-extract .stream-2 { left: 40px; height: 60px; opacity: 0.6; animation: streamFlow 2.5s ease-in-out infinite 0.3s; }
.geo-extract .stream-3 { left: 55px; height: 45px; opacity: 0.3; animation: streamFlow 2.5s ease-in-out infinite 0.6s; }
.geo-extract .geo-node { position: absolute; bottom: 10px; width: 12px; height: 12px; border: 1px solid var(--text-ink-ghost); border-radius: 50%; opacity: 0.6; animation: nodeGlow 3s ease-in-out infinite; }

@keyframes streamFlow { 0%, 100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(-10px); opacity: 0.7; } }
@keyframes nodeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 43, 43, 0); } 50% { box-shadow: 0 0 10px 2px rgba(43, 43, 43, 0.1); } }

.geo-modes .geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 54px; height: 54px; }
.geo-modes .grid-cell { width: 14px; height: 14px; border: 1px solid var(--text-ink-ghost); opacity: 0.2; transition: all 0.4s ease; }
.geo-modes .grid-cell.active { background: var(--text-ink-ghost); opacity: 0.4; animation: cellPulse 4s ease-in-out infinite; }
.geo-modes .grid-cell:nth-child(2).active { animation-delay: 0.5s; }
.geo-modes .grid-cell:nth-child(5).active { animation-delay: 1s; }
.geo-modes .grid-cell:nth-child(6).active { animation-delay: 1.5s; }
.geo-modes .grid-cell:nth-child(8).active { animation-delay: 2s; }
@keyframes cellPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }

.geo-evolve .geo-ring { position: absolute; border: 1px solid var(--text-ink-ghost); border-radius: 50%; opacity: 0.3; }
.geo-evolve .ring-1 { width: 60px; height: 60px; animation: ringExpand 4s ease-in-out infinite; }
.geo-evolve .ring-2 { width: 40px; height: 40px; opacity: 0.5; animation: ringExpand 4s ease-in-out infinite 0.5s; }
.geo-evolve .ring-3 { width: 20px; height: 20px; opacity: 0.7; animation: ringExpand 4s ease-in-out infinite 1s; }
.geo-evolve .geo-core { width: 6px; height: 6px; background: var(--text-ink-ghost); border-radius: 50%; opacity: 0.8; }

.geo-omnibar .geo-frame, .geo-state .state-frame { position: absolute; border: 1px solid var(--text-ink-ghost); opacity: 0.34; }
.geo-omnibar .frame-1 { width: 54px; height: 18px; top: 27px; left: 9px; border-radius: 2px; opacity: 0.38; }
.geo-omnibar .frame-2 { width: 20px; height: 6px; top: 33px; left: 18px; border: none; background: rgba(43, 43, 43, 0.3); opacity: 1; }
.geo-omnibar .geo-route { position: absolute; width: 18px; height: 2px; top: 35px; left: 0; background: rgba(43, 43, 43, 0.3); transform: none; }
.geo-omnibar .geo-route-dot { position: absolute; width: 6px; height: 6px; right: 14px; top: 33px; border-radius: 1px; background: var(--text-ink-ghost); opacity: 0.58; }
.geo-state .state-frame-1 { width: 54px; height: 54px; transform: translate(6px, -6px); }
.geo-state .state-frame-2 { width: 42px; height: 42px; opacity: 0.52; }
.geo-state .state-frame-3 { width: 30px; height: 30px; transform: translate(-6px, 6px); opacity: 0.72; }
.geo-state .state-node { position: absolute; width: 8px; height: 8px; border-radius: 1px; background: var(--text-ink-ghost); opacity: 0.76; }

@keyframes ringExpand { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.1); opacity: 0.5; } }

/* Showcase Labels */
.showcase-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.label-num {
    font-family: var(--font-stamp);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent-stamp);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
}

.label-text {
    font-family: var(--font-typewriter);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-ink-faded);
    letter-spacing: 0.06em;
    text-transform: lowercase;
    opacity: 0.7;
}

.label-text-sm {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

/* Hover */
.showcase-item:hover .geo-layer,
.showcase-item:hover .geo-stream,
.showcase-item:hover .grid-cell,
.showcase-item:hover .geo-ring {
    opacity: 0.5;
}

.showcase-item:hover .label-text {
    opacity: 0.85;
}

/* ============================================
   Access / Email Section
   ============================================ */
.access {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(90, 72, 45, 0.28);
    border-bottom: none;
    overflow: hidden;
    /* Light mononoke — warm parchment matching footer */
    background: #e8dcc8;
}

.access::before {
    display: none;
}

.access::after {
    display: none;
}

.access-inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.access-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    flex-shrink: 0;
}

.access-label {
    font-family: var(--font-typewriter);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #506040;
    text-transform: none;
    opacity: 0.96;
    white-space: nowrap;
    text-shadow: none;
}

.access-sublabel {
    font-family: var(--font-typewriter);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: #7a8848;
    opacity: 0.88;
    white-space: nowrap;
    text-shadow: none;
}

.access-form {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.access-input {
    flex: 1;
    height: 40px;
    padding: 0 1em;
    font-family: var(--font-typewriter);
    font-size: 0.86rem;
    background: #f5f0e8;
    border: 1px solid rgba(120, 88, 60, 0.3);
    border-right: none;
    color: #3a3028;
    transition: border-color 0.2s ease, background 0.2s ease;
    border-radius: 0;
}

.access-input::placeholder {
    color: #7a7060;
    opacity: 0.6;
    font-family: var(--font-typewriter);
}

.access-input:focus {
    outline: none;
    border-color: rgba(120, 88, 60, 0.55);
    background: #faf6ee;
}

.access-btn {
    height: 40px;
    padding: 0 1.2rem;
    gap: 0.45rem;
    font-family: var(--font-typewriter);
    font-size: 1rem;
    font-weight: 400;
    color: #4a9898;
    background: rgba(74, 152, 152, 0.12);
    border: 1px solid rgba(120, 88, 60, 0.3);
    border-left: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-sizing: border-box;
}

.access-btn:hover {
    background: rgba(74, 152, 152, 0.22);
    color: #2e7070;
    border-color: rgba(120, 88, 60, 0.45);
}

.access-btn-label {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    line-height: 1;
}

.btn-symbol {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 520px) {
    .access-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .access-form {
        width: 100%;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(120, 88, 60, 0.22);
    overflow: hidden;
    /* Light mononoke — warm parchment / forest earth */
    background: #e8dcc8;
}

.footer::before {
    display: none;
}

.footer::after {
    display: none;
}

.footer .brand-text {
    font-size: 0.9rem;
}

.footer-logo {
    display: none;
}

.footer-copy {
    position: relative;
    z-index: 2;
    font-family: var(--font-typewriter);
    font-size: 0.65rem;
    color: #506040;
    letter-spacing: 0.02em;
    opacity: 0.9;
    text-shadow: none;
}

.footer-copy::before {
    content: 'mesa ';
    font-family: var(--font-typewriter);
    color: #4a9898;
}

/* ============================================
   Feature grid (inline spread)
   ============================================ */
.feature-spread-inline {
    width: 100%;
    margin-top: 2.25rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    gap: 0.9rem;
    align-items: start;
}

/* ============================================
   Art compositions (muted monotone)
   ============================================ */
.art-comp-a, .art-comp-b, .art-comp-c, .art-comp-d, .art-comp-e, .art-comp-f {
    overflow: visible;
    isolation: isolate;
}

.art-comp-a::before, .art-comp-a::after,
.art-comp-b::before, .art-comp-b::after,
.art-comp-c::before, .art-comp-c::after,
.art-comp-d::before, .art-comp-d::after,
.art-comp-e::before, .art-comp-e::after,
.art-comp-f::before, .art-comp-f::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.art-circle, .art-dot, .art-square, .art-rect, .art-line, .art-frame, .art-arc, .art-bars, .art-ring, .art-cross, .art-diagonal { position: absolute; }
.art-circle, .art-dot { border-radius: 50%; }

.art-circle-large { width: 152px; height: 152px; top: 28px; left: 26px; background: rgba(74, 84, 128, 0.12); }
.art-circle-mid { width: 104px; height: 104px; top: 54px; right: 42px; border: 2px solid rgba(74, 84, 128, 0.35); }
.art-circle-core { width: 14px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent-stamp); }
.art-dot-dark, .art-dot-accent { width: 14px; height: 14px; }
.art-dot-dark { right: 38px; bottom: 52px; background: rgba(43, 43, 43, 0.5); }
.art-dot-accent { right: 56px; top: 42px; background: rgba(74, 84, 128, 0.5); }
.art-line { height: 2px; background: rgba(43, 43, 43, 0.35); transform-origin: left center; }
.art-line-diag { width: 238px; top: 212px; left: 54px; transform: rotate(-28deg); }
.art-line-long { width: 244px; top: 152px; left: 34px; transform: rotate(16deg); }
.art-line-soft { width: 148px; top: 244px; left: 46px; background: rgba(74, 84, 128, 0.25); }
.art-line-center { width: 220px; top: 50%; left: 54px; transform: translateY(-50%); }
.art-line-horizon { width: 220px; left: 60px; bottom: 82px; background: rgba(43, 43, 43, 0.2); }
.art-rect { height: 28px; }
.art-rect-amber { width: 110px; right: 34px; top: 96px; background: rgba(74, 84, 128, 0.28); }
.art-rect-dark { width: 94px; height: 18px; left: 56px; top: 108px; background: rgba(43, 43, 43, 0.4); }
.art-frame { border: 2px solid rgba(74, 84, 128, 0.28); }
.art-frame-wide { width: 226px; height: 142px; left: 28px; top: 114px; }
.art-frame-square { width: 160px; height: 160px; top: 42px; left: 98px; }
.art-arc { border: 2px solid rgba(74, 84, 128, 0.22); border-radius: 999px; }
.art-arc-left { width: 172px; height: 172px; left: 28px; top: 44px; border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-18deg); }
.art-arc-center { width: 166px; height: 166px; top: 76px; left: 92px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(18deg); }
.art-bars-stack { width: 118px; height: 88px; right: 34px; top: 126px; background: linear-gradient(rgba(43, 43, 43, 0.45), rgba(43, 43, 43, 0.45)) top / 100% 2px no-repeat, linear-gradient(rgba(74, 84, 128, 0.3), rgba(74, 84, 128, 0.3)) center / 100% 24px no-repeat, linear-gradient(rgba(43, 43, 43, 0.2), rgba(43, 43, 43, 0.2)) bottom / 100% 2px no-repeat; }
.art-ring-wide { width: 204px; height: 204px; top: 34px; left: 68px; border-radius: 50%; border: 2px solid rgba(43, 43, 43, 0.1); }
.art-cross { width: 210px; height: 2px; left: 66px; background: rgba(43, 43, 43, 0.4); }
.art-cross-a { top: 132px; transform: rotate(42deg); }
.art-cross-b { top: 196px; transform: rotate(-42deg); }
.art-diagonal-rise { width: 228px; height: 2px; left: 42px; top: 196px; background: rgba(43, 43, 43, 0.35); transform: rotate(-22deg); transform-origin: left center; }
.art-square { width: 32px; height: 32px; }
.art-square-solid { right: 46px; bottom: 46px; background: rgba(43, 43, 43, 0.45); }
.art-square-outline { width: 88px; height: 88px; top: 88px; left: 126px; border: 2px solid rgba(74, 84, 128, 0.28); }
.art-square-accent { left: 58px; top: 78px; background: rgba(74, 84, 128, 0.35); }

/* Miniature art compositions */
.art-comp-a::before { left: 35px; top: 10px; width: 2px; height: 52px; background: rgba(43, 43, 43, 0.3); }
.art-comp-a::after { left: 10px; top: 10px; width: 52px; height: 52px; border: 2px solid rgba(43, 43, 43, 0.18); border-radius: 50%; }
.art-comp-a .art-circle-large { width: 10px; height: 10px; top: 16px; left: 31px; border-radius: 2px; background: rgba(43, 43, 43, 0.35); }
.art-comp-a .art-line-diag { display: none; }
.art-comp-a .art-rect-amber { width: 10px; height: 14px; left: 31px; top: 42px; border-radius: 2px; background: rgba(43, 43, 43, 0.3); }

.art-comp-b::before { left: 20px; top: 4px; width: 3px; height: 64px; background: rgba(43, 43, 43, 0.35); }
.art-comp-b::after { left: 20px; top: 18px; width: 42px; height: 10px; background: rgba(43, 43, 43, 0.35); }
.art-comp-b .art-frame-wide { width: 30px; height: 40px; left: 18px; top: 18px; border-width: 2px; border-color: rgba(43, 43, 43, 0.22); }
.art-comp-b .art-circle-mid { width: 10px; height: 10px; top: 31px; right: 17px; border-radius: 2px; border: none; background: rgba(74, 84, 128, 0.3); }
.art-comp-b .art-square-solid { width: 14px; height: 28px; left: 8px; top: 28px; background: rgba(43, 43, 43, 0.3); }

.art-comp-c::before { left: 16px; top: 12px; width: 38px; height: 42px; border: 2px solid rgba(43, 43, 43, 0.25); }
.art-comp-c::after { left: 20px; top: 8px; width: 38px; height: 42px; border: 2px solid rgba(43, 43, 43, 0.12); }
.art-comp-c .art-arc-left { width: 24px; height: 24px; right: 8px; top: 12px; border: none; border-radius: 50%; background: rgba(74, 84, 128, 0.3); transform: none; }
.art-comp-c .art-bars-stack { width: 42px; height: 16px; left: -2px; top: 30px; background: repeating-linear-gradient(-8deg, rgba(43, 43, 43, 0.3) 0 2px, transparent 2px 6px); }
.art-comp-c .art-dot-accent { width: 9px; height: 9px; right: 18px; top: 20px; background: rgba(43, 43, 43, 0.35); }

.art-comp-d::before { left: 16px; top: 14px; width: 38px; height: 38px; border: 2px solid rgba(43, 43, 43, 0.1); }
.art-comp-d::after { right: 12px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: rgba(74, 84, 128, 0.25); }
.art-comp-d .art-frame-square { width: 30px; height: 30px; left: 20px; top: 18px; border-color: rgba(43, 43, 43, 0.2); }
.art-comp-d .art-line-center { width: 18px; height: 2px; top: 34px; left: 18px; transform: none; background: rgba(43, 43, 43, 0.2); }
.art-comp-d .art-rect-dark { display: none; }

.art-comp-e::before { left: 22px; top: 10px; width: 28px; height: 22px; border: 2px solid rgba(43, 43, 43, 0.2); border-radius: 999px; transform: rotate(18deg); z-index: 0; }
.art-comp-e::after { left: 20px; top: 40px; width: 28px; height: 22px; border: 2px solid rgba(43, 43, 43, 0.2); border-radius: 999px; transform: rotate(18deg); z-index: 0; }
.art-comp-e .art-ring-wide { width: 18px; height: 56px; top: 8px; left: 27px; border: none; border-radius: 999px; background: rgba(43, 43, 43, 0.38); transform: rotate(34deg); z-index: 1; }
.art-comp-e .art-circle-core { display: none; }
.art-comp-e .art-line-horizon { display: none; }

.art-comp-f::before { left: 16px; top: 15px; width: 36px; height: 36px; border: 2px solid rgba(43, 43, 43, 0.28); transform: rotate(45deg); }
.art-comp-f::after { left: 22px; top: 9px; width: 36px; height: 36px; border: 2px solid rgba(74, 84, 128, 0.22); transform: rotate(45deg); }
.art-comp-f .art-cross-a { width: 14px; height: 2px; left: 18px; top: 25px; background: rgba(43, 43, 43, 0.25); transform: none; }
.art-comp-f .art-cross-b { width: 14px; height: 2px; right: 18px; left: auto; top: 43px; background: rgba(43, 43, 43, 0.25); transform: none; }
.art-comp-f .art-square-outline { width: 10px; height: 10px; top: 31px; left: 31px; border-color: rgba(43, 43, 43, 0.35); border-radius: 50%; }

/* ============================================
   Donate Page
   ============================================ */
.donate-page-main {
    display: block;
    min-height: auto;
    padding: 10rem 2rem 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
    background: transparent;
    margin-left: 2rem;
    max-width: none;
}

.donate-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: center;
}

.donate-hero-content {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.donate-title {
    font-family: var(--font-fraktur);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    color: var(--text-ink);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: none;
}

.donate-methods-inline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.donate-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: none;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-typewriter);
    transition: opacity 0.18s ease;
}

/* Per-row tints — platform colours, more saturated */
.donate-link--kofi  { background: rgba(255, 80, 40, 0.13); }
.donate-link--btc   { background: rgba(215, 140, 10, 0.14); }
.donate-link--eth   { background: rgba(80, 92, 210, 0.13); }

.donate-link:hover {
    background: #000000 !important;
    opacity: 1;
}

.donate-link:hover .donate-link-name,
.donate-link:hover .donate-link-arrow,
.donate-link:hover .donate-link-meta {
    color: #f0ebe0;
    opacity: 1;
}

.donate-link-name {
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-ink-faded);
    flex: 1;
    text-align: left;
}

.donate-link-arrow {
    font-size: 0.95rem;
    color: var(--text-ink-ghost);
    opacity: 0.45;
}

.donate-link-meta {
    font-family: var(--font-stamp);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-ink-ghost);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
}

.donate-link.copied .donate-link-meta {
    color: var(--accent-stamp);
    opacity: 0.8;
}

@media (max-width: 480px) {
    .donate-hero {
        min-height: auto;
    }
}

/* ============================================
   Page Transitions
   ============================================ */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

body {
    animation: pageFadeIn 0.28s ease forwards;
}

body.page-exit {
    animation: pageFadeOut 0.22s ease forwards;
    pointer-events: none;
}

body.shell-static-page {
    animation: none;
}

body.shell-static-page.page-exit {
    animation: none;
}

/* ============================================
   Animations (disabled for static feel)
   ============================================ */
.hero-content>* {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ============================================
   Dev Page / Blog — sidebar layout
   ============================================ */
.dev-page-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 7rem 2rem 4rem;
    background: transparent;
}

.dev-sidebar {
    position: fixed;
    left: clamp(2.5rem, calc(50% - 35rem), 7rem);
    top: 6.9rem;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    width: max-content;
    z-index: 80;
}

.dev-author-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    view-transition-name: dev-author-meta;
}

.dev-author-name {
    font-family: var(--font-home-typewriter);
    font-size: calc(1.08rem + 1px);
    font-weight: 700;
    letter-spacing: 0.005em;
    color: #F2EDDD;
    opacity: 1;
    line-height: 1;
}

.dev-content {
    max-width: 680px;
    margin: 0 auto;
}

.dev-container {
    width: 100%;
    margin: 0;
    display: block;
}

.dev-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.dev-header .page-summary {
    font-size: calc(0.92rem + 2px);
}

.dev-title {
    font-family: var(--font-fraktur);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    color: var(--text-ink);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: none;
}

.posts-accordion {
    opacity: 1;
    transform: none;
    animation: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 18rem;
}

.post-item {
    border-top: 1px dashed var(--border-rule);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.post-item:last-child {
    border-bottom: 1px dashed var(--border-rule);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.post-header:hover .post-title {
    color: var(--accent-stamp);
}

.post-id {
    font-family: var(--font-stamp);
    font-size: 0.72rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
}

.post-title {
    font-family: 'Brill', serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-ink);
    letter-spacing: 0.02em;
    flex: 1;
    transition: all 0.3s ease;
}

.post-expand-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-ink-ghost);
    font-weight: 400;
}

.post-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.post-content-inner {
    min-height: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding-bottom: 0;
}

.post-item.active .post-content {
    grid-template-rows: 1fr;
}

.post-item.active .post-content-inner {
    opacity: 1;
    padding: 1rem 0 2rem 2.8rem;
}

.post-item.active .post-title {
    color: var(--accent-stamp);
}

/* Markdown Content */
.post-content-inner h1 {
    display: none;
}

.post-content-inner h2,
.post-content-inner h3 {
    font-family: var(--font-fraktur);
    color: var(--text-ink);
    margin: 2rem 0 1rem;
    font-weight: 400;
}

.post-content-inner p {
    font-family: var(--font-typewriter);
    font-size: calc(0.91rem + 0.9px);
    line-height: 1.95;
    color: #8a8178;
    max-width: 80%;
    margin-bottom: 1.3rem;
    text-align: justify;
    hyphens: auto;
}

.post-content-inner ul,
.post-content-inner ol {
    max-width: 80%;
    margin: 0 0 1.3rem;
    padding-left: 1.4rem;
    color: #8a8178;
}

.post-content-inner li {
    font-family: inherit;
    font-size: calc(0.91rem + 0.9px);
    line-height: 1.95;
    color: #8a8178;
    text-align: left;
    hyphens: auto;
    margin-bottom: 0.1rem;
}

.post-content-inner li::marker {
    color: #8a8178;
}

.post-content-inner .post-timestamp {
    font-family: var(--font-typewriter);
    font-size: calc(0.91rem + 0.9px);
    line-height: 1.95;
    color: #8a8178;
    max-width: 80%;
    margin-bottom: 1rem;
}

.post-content-inner p:last-child {
    margin-bottom: 0;
}

.post-content-inner strong {
    font-weight: 400;
    font-family: var(--font-typewriter);
    font-size: inherit;
    color: inherit;
    opacity: 1;
}

.post-content-inner a {
    color: var(--accent-pencil);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: rgba(178, 58, 58, 0.4);
    transition: text-decoration-color 0.3s ease;
}

.post-content-inner a:hover {
    text-decoration-color: var(--accent-pencil);
}

.post-content-inner blockquote {
    border-left: 3px solid var(--accent-stamp);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-ink-ghost);
    font-family: var(--font-typewriter);
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.btn-load-more {
    font-family: 'Brill', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-stamp);
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.24s ease;
}

.btn-load-more:hover {
    opacity: 0.7;
    background: transparent;
    border: none;
}

/* ============================================
   Dev Blog Author Card
   ============================================ */
.dev-author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 1.5rem;
    width: 100%;
    min-height: 140px;
}

.dev-author-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid var(--border-rule-strong);
    filter: saturate(0.35) sepia(0.25) contrast(1.1);
    flex-shrink: 0;
    display: block;
}

.dev-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: var(--bg-paper-dark);
    border: 1px dashed var(--border-rule-strong);
    flex-shrink: 0;
}

.dev-author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Brill', serif;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-ink-faded);
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.dev-author-social-link:hover {
    opacity: 1;
    color: var(--text-ink);
}

.dev-author-social-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.support-page-main {
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

.support-content {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.hero-left-content {
}

/* Profile art morph — container morphs geometry, images crossfade cleanly */
::view-transition-group(shell-profile-art) {
    animation-duration: 650ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes profile-art-out {
    to { opacity: 0; }
}

@keyframes profile-art-in {
    from { opacity: 0; }
}

/* plus-lighter: old + new opacities sum to 1 throughout — no transparency gap */
::view-transition-old(shell-profile-art) {
    mix-blend-mode: plus-lighter;
    animation: profile-art-out 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

::view-transition-new(shell-profile-art) {
    mix-blend-mode: plus-lighter;
    animation: profile-art-in 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* dev-author-meta (name + X): extracted so it stays solid on all transitions */
::view-transition-old(dev-author-meta),
::view-transition-new(dev-author-meta) {
    mix-blend-mode: plus-lighter;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(shell-profile-art),
    ::view-transition-old(shell-profile-art),
    ::view-transition-new(shell-profile-art),
    ::view-transition-old(dev-author-meta),
    ::view-transition-new(dev-author-meta) {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
}

/* Content transition: old page drains to sepia as it fades, new page fades in clean */
@keyframes page-sepia-out {
    from { opacity: 1; filter: sepia(0) saturate(1); }
    to   { opacity: 0; filter: sepia(0.9) saturate(0.3); }
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

::view-transition-old(root) {
    animation: page-sepia-out 480ms cubic-bezier(0.4, 0, 0.6, 1) both;
}

::view-transition-new(root) {
    animation: page-fade-in 380ms cubic-bezier(0, 0, 0.2, 1) 200ms both;
}

::view-transition-old(top-nav),
::view-transition-new(top-nav) {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        filter: none !important;
    }
}

.support-header {
    margin-bottom: 1.6rem;
}

.support-container {
    width: 100%;
}

.support-ledger {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px dashed var(--border-rule);
}

.support-ledger .donate-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.1rem 1rem;
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px dashed var(--border-rule);
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.support-ledger .donate-link-swatch {
    grid-row: 1 / span 2;
    align-self: center;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(43, 43, 43, 0.16);
    background: currentColor;
    opacity: 0.92;
}

.support-ledger .donate-link-swatch--kofi {
    color: #ff5a3c;
}

.support-ledger .donate-link-swatch--btc {
    color: #d8891f;
}

.support-ledger .donate-link-swatch--eth {
    color: #6276d9;
}

.support-ledger .donate-link:hover {
    background: transparent !important;
    opacity: 1;
}

.support-ledger .donate-link-name,
.support-ledger .donate-link-meta,
.support-ledger .donate-link-arrow {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.support-ledger .donate-link:hover .donate-link-name {
    color: var(--accent-stamp);
}

.support-ledger .donate-link:hover .donate-link-meta,
.support-ledger .donate-link:hover .donate-link-arrow {
    color: var(--text-ink-faded);
    opacity: 0.8;
}

.support-ledger .donate-link-name {
    grid-row: 1;
    align-self: end;
    font-family: 'Brill', serif;
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--text-ink);
    text-align: left;
}

.support-ledger .donate-link-meta {
    grid-row: 2;
    align-self: start;
    font-family: 'Brill', serif;
    font-size: 0.91rem;
    font-weight: 400;
    color: #8a8178;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.7;
}

.support-ledger .donate-link-arrow {
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--font-typewriter);
    font-size: 1rem;
    color: var(--text-ink-ghost);
    opacity: 0.48;
}

.support-ledger .donate-link.copied .donate-link-meta {
    color: var(--accent-stamp);
    opacity: 1;
}

.support-heart-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 4;
}

.support-heart-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.support-heart {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    width: 1em;
    height: 1em;
    color: rgba(140, 10, 25, 0.9);
    background: currentColor;
    border-radius: 0.16em;
    box-shadow: 0 0 10px rgba(255, 190, 210, 0.18);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45) rotate(45deg);
    animation: supportHeartFloat 1.45s ease-out forwards;
    animation-delay: var(--heart-delay, 0s);
}

.support-heart::before,
.support-heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: currentColor;
    border-radius: 50%;
}

.support-heart::before {
    left: -50%;
    top: 0;
}

.support-heart::after {
    left: 0;
    top: -50%;
}

@keyframes supportHeartFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45) rotate(45deg);
    }
    14% {
        opacity: 0.95;
    }
    68% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--heart-x, 0px)), calc(-50% + var(--heart-y, -120px)))
            scale(1.08)
            rotate(calc(45deg + var(--heart-rotate, 0deg)));
    }
}

/* Support page heart emblem — mirrors dev author card position */
.page-heart-emblem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 1.5rem;
    width: 100%;
    min-height: 140px; /* match dev-author-card visual height */
}

.page-heart-emblem svg {
    width: 52px;
    height: 68px;
    fill: #1e0933;
    stroke: none;
    opacity: 0.7;
}

/* ============================================
   Utility Classes - Archival Flourishes
   ============================================ */

/* STAMP - Rubber stamp effect */
.stamp {
    display: inline-block;
    font-family: var(--font-stamp);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-stamp);
    border: 3px solid var(--accent-stamp);
    padding: 0.3em 0.8em;
    transform: rotate(-5deg);
    opacity: 0.7;
    filter: blur(0.3px);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(74, 84, 128, 0.15);
    background: transparent;
    /* Worn effect */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.92'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.92'/%3E%3C/svg%3E");
}

/* MARGINALIA - Handwritten notes in margins */
.marginalia {
    font-family: var(--font-hand);
    color: var(--accent-pencil);
    font-size: 0.95rem;
    line-height: 1.4;
    transform: rotate(-2deg);
    opacity: 0.75;
    position: relative;
    display: inline-block;
}

/* TYPEWRITER UNDERLINE - Rough offset underline */
.typewriter-underline {
    text-decoration: none;
    position: relative;
    display: inline;
}

.typewriter-underline::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -1px;
    height: 2px;
    background: var(--text-ink);
    opacity: 0.5;
    transform: skewX(-3deg) translateY(1px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding-top: 9rem;
        margin-left: 0;
        border-left: none;
    }

    .shell-binding-rail,
    .home-shell-sidebar {
        display: none;
    }

    .workspace-showcase {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 620px);
        max-width: 620px;
        margin-top: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .workspace-showcase.is-open {
        margin-top: 0.75rem;
        opacity: 1;
        max-height: 60rem;
        pointer-events: auto;
        overflow: visible;
        transform: translateY(0);
    }

    .workspace-showcase-inline-nav {
        display: flex;
    }

    .workspace-showcase-panel {
        padding: 0.85rem;
    }

    .home-page.workspace-showcase-focus .nav,
    .home-page.workspace-showcase-focus .home-shell-sidebar,
    .home-page.workspace-showcase-focus #hero-logo-webgl,
    .home-page.workspace-showcase-focus .hero-status-slip,
    .home-page.workspace-showcase-focus .feature-list,
    .home-page.workspace-showcase-focus .access,
    .home-page.workspace-showcase-focus .footer {
        filter: none;
        opacity: 1;
        pointer-events: auto;
    }

    .hero-center {
        min-height: auto;
    }

    .feature-grid {
        grid-template-columns: repeat(6, minmax(148px, 1fr));
        gap: 0.75rem;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .showcase {
        padding: 3rem 1.5rem;
    }

    .cap-line {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem 0;
    }

    .cap-dot {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.55rem 0.9rem;
        min-height: 44px;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding: 6.8rem 0.95rem 1.75rem;
        margin-left: 0;
        border-left: none;
    }

    .shell-binding-rail,
    .home-shell-sidebar {
        display: none;
    }

    .hero-center {
        align-items: stretch;
        text-align: left;
    }

    .hero-logo {
        width: min(78vw, 450px);
    }

    .hero-left-content {
        align-items: stretch;
        gap: 1rem;
        width: min(100%, 34rem);
    }

    .page-intro {
        align-items: stretch;
        text-align: left;
        gap: 0.55rem;
    }

    .page-summary {
        max-width: none;
    }

    .page-ledger {
        min-height: 18rem;
        padding-top: 1rem;
    }

    .hero-logo-lockup {
        width: min(100%, 440px);
        align-self: center;
    }

    #hero-logo-webgl {
        width: min(100%, 460px);
        aspect-ratio: 36 / 11;
        height: auto;
        min-height: 183px;
        max-height: 270px;
        margin: -6px auto -10px;
    }

    .hero-typed-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-copy {
        width: 100%;
        align-items: center;
        gap: 0;
        padding: 0;
        text-align: center;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero-intro {
        max-width: none;
        font-size: 0.86rem;
        line-height: 1.65;
        text-align: center;
    }

    .hero-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0;
        max-width: 26rem;
        margin: 0 auto;
    }

    .btn-download {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.65rem;
        gap: 0.4rem;
        justify-content: center;
        border-radius: 0;
        font-size: 0.76rem;
        background: transparent;
        color: var(--text-ink-faded);
        box-shadow: none;
    }

    .btn-download .btn-label {
        font-size: 0.75rem;
        letter-spacing: 0.04em;
        font-weight: 400;
    }

    .btn-download .btn-version {
        display: none;
    }

    .hero-download-hint {
        display: block;
        width: 100%;
        margin-top: 0.4rem;
        text-align: center;
        font-size: 0.6rem;
        opacity: 0.45;
        line-height: 1.35;
    }

    .feature-list {
        width: 100%;
        margin-top: 1.5rem;
    }

    .feature-item {
        grid-template-columns: 1.6rem minmax(0, 1fr);
        gap: 0.2rem 0.6rem;
        align-items: start;
    }

    .feature-name {
        grid-column: 2;
        white-space: normal;
    }

    .feature-meta {
        grid-column: 2;
        text-align: left;
        white-space: normal;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        overflow: visible;
        padding-bottom: 0;
        align-items: start;
    }

    .feature-spread-inline {
        margin-top: 2rem;
    }

    .slide-card {
        grid-template-columns: 76px 1fr;
        gap: 0.85rem 0.95rem;
        padding: 1rem;
        border: 1px solid var(--border-rule);
        border-radius: 0;
        background: rgba(228, 218, 178, 0.4);
        box-shadow: inset 0 1px 4px rgba(43, 43, 43, 0.04);
    }

    .slide-visual {
        width: 76px;
        height: 76px;
        min-height: 76px;
    }

    .slide-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding-top: 0.1rem;
    }

    .slide-number {
        font-size: 0.64rem;
        margin-bottom: 0.25rem;
    }

    .slide-title {
        font-size: 1.02rem;
        line-height: 1.18;
    }

    .slide-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .slide-detail {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .bh-art-grid {
        width: 72px;
        height: 72px;
    }

    .showcase {
        padding: 2.4rem 0.95rem 0.5rem;
    }

    .showcase-intro {
        margin-bottom: 1rem;
        align-items: flex-start;
        text-align: left;
    }

    .showcase-heading {
        font-size: clamp(1.6rem, 8vw, 2.25rem);
    }

    .showcase-copy {
        font-size: 1rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        max-width: none;
    }

    .showcase-item {
        display: grid;
        grid-template-columns: 72px 1fr;
        align-items: start;
        gap: 1rem;
        padding: 1rem;
        border-radius: 0;
    }

    .geo-art {
        width: 72px;
        height: 72px;
    }

    .showcase-text {
        align-items: flex-start;
        text-align: left;
        gap: 0.45rem;
    }

    .showcase-label {
        align-items: flex-start;
        gap: 0.35rem;
    }

    .label-num {
        font-size: 0.68rem;
    }

    .label-text {
        font-size: 1rem;
        letter-spacing: 0.08em;
        opacity: 0.9;
    }

    .label-text-sm {
        font-size: 0.84rem;
        letter-spacing: 0.05em;
    }

    .showcase-detail {
        display: block;
    }

    .access {
        padding: 2.5rem 1.5rem;
    }

    .access-form {
        width: 100%;
        gap: 0.5rem;
    }

    .access-input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 0.8rem;
        border-radius: 0;
    }

    .access-btn {
        flex: 0 0 auto;
        width: 2.5rem;
        min-width: 2.5rem;
        max-width: none;
        height: 36px;
        padding: 0;
        border-radius: 0;
        font-size: 0.95rem;
    }

    .btn-symbol {
        font-size: 1rem;
    }

    .footer {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .hero-actions {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        gap: 0;
    }

    .btn-download {
        flex: 1;
        width: auto;
        padding: 0.52rem 0.45rem;
        font-size: 0.74rem;
        justify-content: center;
        min-height: auto;
    }

    .btn-download .btn-label {
        font-size: 0.73rem;
        font-weight: 400;
    }

    .btn-download .btn-version {
        font-size: 0.65rem;
        padding: 0;
    }

    .hero {
        min-height: 60vh;
        padding: 5rem 1.5rem 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cap-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding-top: 6.2rem;
    }

    .hero-logo {
        width: min(72vw, 360px);
    }

    #hero-logo-webgl {
        min-height: 159px;
        max-height: 225px;
    }

    .hero-typed-container {
        font-size: 0.88rem;
        padding: 0;
    }

    .hero-intro {
        font-size: 0.82rem;
    }

    .hero-mobile-note,
    .slide-desc,
    .slide-detail,
    .showcase-copy,
    .showcase-detail,
    .access-copy {
        font-size: 0.9rem;
    }

    .slide-card,
    .showcase-item {
        grid-template-columns: 68px 1fr;
        padding: 0.95rem;
    }

    .slide-visual,
    .geo-art {
        width: 68px;
        height: 68px;
        min-height: 68px;
    }

    .bh-art-grid {
        width: 64px;
        height: 64px;
    }

    .hero-actions {
        gap: 0;
    }

    .btn-download {
        padding: 0.46rem 0.4rem;
    }

    .btn-download .btn-label {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .hero-download-hint {
        font-size: 0.6rem;
    }

    .access {
        padding: 2.1rem 1rem;
    }

    .access-inner {
        gap: 0.7rem;
    }

    .access-form {
        gap: 0.4rem;
    }

    .access-input {
        height: 34px;
        font-size: 0.76rem;
        padding: 0 0.7rem;
    }

    .access-btn {
        width: 2.3rem;
        min-width: 2.3rem;
        height: 34px;
        font-size: 0.9rem;
    }

    .page-ledger {
        min-height: 15rem;
    }

    .label-text {
        font-size: 0.94rem;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .geo-art {
        width: 60px;
        height: 60px;
    }

    .access-tagline {
        font-size: 1.72rem;
    }
}

/* ============================================
   Mobile — Complete Responsive Layout
   ============================================ */

html {
    overflow-x: hidden;
}

/* ── 768px and below ──────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Page shell: tighter padding, no left binding */
    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding: 5.5rem 1.25rem 2rem;
        margin-left: 0;
        border-left: none;
    }

    /* Force hero content to center (overrides stretch + text-align:left) */
    .hero-center {
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .hero-left-content {
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
        left: 0;
    }

    /* Logo: clean proportional sizing — remove conflicting min/max-height */
    .hero-logo-lockup {
        width: 100%;
        align-self: center;
    }

    #hero-logo-webgl {
        width: min(88vw, 420px);
        aspect-ratio: 36 / 11;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0 auto;
    }

    /* Typed text */
    .hero-typed-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
    }

    /* Intro copy */
    .hero-copy {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-status-slip {
        width: min(100%, 300px);
        align-items: flex-start;
        text-align: left;
        padding: 0.6rem 0 0.7rem 1rem;
    }

    .hero-status-slip .hero-typed-container {
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 0.3rem;
    }

    .workspace-showcase {
        width: min(100%, 300px);
    }

    .workspace-showcase-panel {
        gap: 0.8rem;
        padding: 0.75rem;
    }

    .workspace-showcase-stage {
        aspect-ratio: 7 / 6;
    }

    .workspace-stage-arrow {
        font-size: 0.9rem;
    }

    .workspace-stage-arrow--prev {
        left: 0.25rem;
    }

    .workspace-stage-arrow--next {
        right: 0.25rem;
    }

    .workspace-showcase-kicker {
        font-size: 0.62rem;
    }

    .workspace-slide-fallback {
        left: 0.7rem;
        right: 0.7rem;
        width: auto;
        padding: 0.75rem 0.8rem;
    }

    .workspace-slide-title {
        font-size: 1.06rem;
    }

    .workspace-slide-note {
        font-size: 0.68rem;
    }

    .workspace-slide-controls {
        margin-top: 0.1rem;
    }

    .hero-intro {
        font-size: 0.7rem;
        text-align: left;
        max-width: 100%;
    }

    /* Download buttons: vertical stack, full-width, tap-friendly */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.45rem;
    }

    /* Base button reset for mobile column layout */
    .btn-download {
        flex: none;
        width: 100%;
        min-height: 48px;
        padding: 0.8em 1.1em;
        justify-content: space-between;
        font-size: 0.86rem;
        letter-spacing: 0.04em;
    }

    /* Remove border for mobile column layout */
    .btn-download + .btn-download {
        border: none;
    }

    /* Restore Mononoke spirit colors */
    .btn-download:nth-child(1) {
        background: #283058;
        color: #f0ebe0;
        border: none;
    }
    .btn-download:nth-child(2) {
        background: #781840;
        color: #f0ebe0;
        border: none;
    }
    .btn-download:nth-child(3) {
        background: #7a8848;
        color: #f0ebe0;
        border: none;
    }

    /* Show version in the stacked layout */
    .btn-download .btn-version {
        display: inline;
        font-size: 0.72rem;
        opacity: 0.8;
    }

    .btn-download:nth-child(1) .btn-version { color: rgba(240, 235, 224, 0.8); }
    .btn-download:nth-child(2) .btn-version { color: rgba(240, 235, 224, 0.8); }
    .btn-download:nth-child(3) .btn-version { color: rgba(240, 235, 224, 0.8); }

    .btn-download .btn-label {
        font-size: 0.86rem;
        letter-spacing: 0.05em;
    }

    /* Feature list */
    .feature-list {
        width: 100%;
        margin-top: 1rem;
    }

    /* Access / email */
    .access {
        padding: 2rem 1.25rem;
    }

    .access-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        max-width: 100%;
    }

    .access-form {
        width: 100%;
    }

    .access-input {
        height: 44px;
    }

    /* Compact button on mobile — just the arrow */
    .access-btn {
        height: 44px;
        padding: 0 1rem;
        gap: 0;
    }

    .access-btn-label {
        display: none;
    }

    /* Dev / Donate page intro: keep centered */
    .page-intro {
        align-items: center;
        text-align: center;
    }

    .page-summary {
        max-width: none;
        text-align: center;
    }

    .page-ledger {
        min-height: auto;
        padding-top: 1rem;
    }

    .donate-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Posts: reduce excessive indent */
    .post-item.active .post-content-inner {
        padding: 0.75rem 0 1.25rem 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 1.25rem 1rem;
        justify-content: center;
    }
}

/* ── 480px and below ──────────────────────────────────────────── */
@media (max-width: 480px) {

    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding: 5rem 1rem 1.5rem;
    }

    #hero-logo-webgl {
        width: min(92vw, 340px);
    }

    .hero-actions {
        max-width: 280px;
    }

    .btn-download {
        padding: 0.75em 1em;
        font-size: 0.82rem;
        min-height: 46px;
    }

    .access {
        padding: 1.75rem 1rem;
    }

    .access-input,
    .access-btn {
        height: 40px;
    }

    .post-item.active .post-content-inner {
        padding: 0.75rem 0 1rem 0.9rem;
    }
}

/* ── 375px and below ──────────────────────────────────────────── */
@media (max-width: 375px) {

    .hero-bauhaus,
    .dev-page-main,
    .donate-page-main {
        padding: 4.75rem 0.75rem 1.25rem;
    }

    .nav {
        padding: 0 0.75rem;
        min-height: 44px;
    }

    .nav-links {
        gap: 0.9rem;
    }

    #hero-logo-webgl {
        width: 94vw;
    }

    .hero-actions {
        max-width: 100%;
    }

    .btn-download {
        font-size: 0.8rem;
        min-height: 44px;
        padding: 0.7em 0.9em;
    }

    .access {
        padding: 1.5rem 0.75rem;
    }

    .footer {
        padding: 1rem 0.75rem;
    }
}

/* ============================================
   Dev sidebar — responsive overrides
   (must come after all breakpoint blocks above)
   ============================================ */

/* Sidebar — always fixed, scales on smaller screens */
@media (max-width: 900px) {
    .dev-page-main {
        padding: 6rem 2rem 3rem !important;
    }
    .dev-sidebar {
        left: 1.25rem;
        top: 6.25rem;
        gap: 0.65rem;
    }
    .shell-profile-art {
        width: 52px;
        height: 52px;
    }
    .dev-author-name {
        font-size: 0.82rem;
    }
    .dev-author-social-link {
        font-size: 0.82rem;
    }
    .post-content-inner p,
    .post-content-inner .post-timestamp {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .support-ledger .donate-link {
        grid-template-columns: auto 1fr auto;
        gap: 0.45rem 0.8rem;
        align-items: start;
    }

    .support-ledger .donate-link-swatch {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: 0.18rem;
    }

    .support-ledger .donate-link-name {
        grid-column: 2;
        grid-row: 1;
    }

    .support-ledger .donate-link-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .support-ledger .donate-link-meta {
        grid-column: 2;
        grid-row: 2;
    }

    .dev-page-main {
        padding: 5.5rem 1.25rem 2rem !important;
    }
    .dev-sidebar {
        left: 0.75rem;
        top: 5.75rem;
        gap: 0.5rem;
    }
    .shell-profile-art {
        width: 38px;
        height: 38px;
    }
    .dev-author-name {
        font-size: 0.72rem;
    }
    .dev-author-social-link {
        font-size: 0.72rem;
    }
}


/* ============================================
   MOBILE — Home page dark theme  (<= 768px)
   Desktop styles untouched above this line.
   ============================================ */



@media (max-width: 768px) {

    /* Match html background to body so view-transition holes stay dark */
    html {
        background-color: #0c0b09;
    }

    /* 1. Black canvas background */
    body.home-page {
        background: #0c0b09;
    }

    body.home-page #generative-bg {
        display: none !important;
    }

    /* 2. Nav dark */
    body.home-page .nav {
        background: #000000;
        border-bottom-color: rgba(255, 255, 255, 0.045);
    }

    body.home-page .nav-cta {
        color: rgba(220, 215, 200, 0.45) !important;
        opacity: 1 !important;
    }

    body.home-page .nav-cta.active,
    body.home-page .nav-cta:hover {
        color: rgba(220, 215, 200, 0.88) !important;
        opacity: 1 !important;
    }

    body.home-page .nav-separator {
        color: rgba(255, 255, 255, 0.15) !important;
        opacity: 1 !important;
    }

    /* 3. Logo: full-bleed, fills frame, white */
    body.home-page .hero-logo-lockup {
        width: 100vw !important;
        margin-left: calc((100% - 100vw) / 2) !important;
        max-width: none !important;
    }

    body.home-page #hero-logo-webgl {
        --logo-frame-inline: 100%;
        --logo-frame-block: 100%;
        --logo-frame-left: 0%;
        --logo-frame-top: 0%;
        width: 100% !important;
        aspect-ratio: 36 / 11 !important;
        min-height: unset !important;
        max-height: none !important;
        contain: none !important;
        margin: 0 0 0.5rem !important;
        filter: brightness(0) invert(1) !important;
    }

    body.home-page .logo-dot {
        display: none !important;
    }

    /* 4. Typed text and hero copy */
    body.home-page .typed-prefix,
    body.home-page .typed-text,
    body.home-page .typed-cursor {
        color: rgba(220, 215, 200, 0.5);
    }

    body.home-page .hero-intro {
        color: rgba(220, 215, 200, 0.35) !important;
        opacity: 1 !important;
    }

    body.home-page .hero-status-slip {
        border-color: rgba(255, 255, 255, 0.06);
        background: transparent;
        box-shadow: none;
    }

    /* 5. Two-column row: OS labels left, typed animation right */
    body.home-page .hero-left-content {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto auto !important;
        align-items: start !important;
        gap: 0.5rem 0.9rem !important;
        width: 100% !important;
    }

    body.home-page .hero-logo-lockup {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    body.home-page .hero-status-slip {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body.home-page .hero-actions {
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        align-self: center !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 0.28rem !important;
    }

    body.home-page .feature-list {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    body.home-page .btn-download {
        flex: none !important;
        width: auto !important;
        min-height: unset !important;
        height: auto !important;
        padding: 0 !important;
        font-size: 0.58rem !important;
        letter-spacing: 0.1em;
        text-transform: lowercase;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        border-radius: 0 !important;
        pointer-events: none !important;
        cursor: default !important;
        justify-content: flex-start !important;
        box-shadow: none !important;
    }

    body.home-page .btn-download:last-child {
        border: none !important;
    }

    body.home-page .btn-download:nth-child(1),
    body.home-page .btn-download:nth-child(2),
    body.home-page .btn-download:nth-child(3) {
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.2) !important;
    }

    body.home-page .btn-download + .btn-download {
        border: none !important;
    }

    body.home-page .btn-download .btn-label {
        font-size: 0.58rem !important;
        color: rgba(255, 255, 255, 0.2) !important;
        letter-spacing: 0.1em;
    }

    body.home-page .btn-download .btn-version {
        display: none !important;
    }

    body.home-page .hero-download-hint {
        display: none !important;
    }

    /* 6. Hide desktop-only chrome */
    body.home-page .home-shell-emblem {
        display: none !important;
    }

    /* 7. Feature list light text */
    body.home-page .feature-item {
        border-bottom-color: rgba(255, 255, 255, 0.045);
    }

    body.home-page .feature-num {
        color: rgba(220, 215, 200, 0.28);
    }

    body.home-page .feature-name {
        color: rgba(220, 215, 200, 0.75);
    }

    body.home-page .feature-meta {
        color: rgba(220, 215, 200, 0.36);
    }

    /* 9. Access section emphasized */
    body.home-page .access {
        background: #e8dcc8 !important;
        border-top: 1px solid rgba(120, 88, 60, 0.18);
        padding: 2.5rem 1.25rem !important;
    }

    body.home-page .access-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        max-width: 100% !important;
    }

    body.home-page .access-label {
        font-size: 0.92rem !important;
        opacity: 1 !important;
        color: #506040 !important;
        text-shadow: none !important;
    }

    body.home-page .access-sublabel {
        color: #7a8848 !important;
        text-shadow: none !important;
        font-size: 0.68rem !important;
        opacity: 1 !important;
    }

    body.home-page .access-form {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
    }

    body.home-page .access-input {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        font-size: 0.88rem;
        background: #f5f0e8 !important;
        border: 1px solid rgba(120, 88, 60, 0.3) !important;
        border-right: none !important;
        color: #3a3028 !important;
    }

    body.home-page .access-input::placeholder {
        color: #7a7060 !important;
        opacity: 0.6 !important;
    }

    body.home-page .access-input:focus {
        border-color: rgba(120, 88, 60, 0.55) !important;
        background: #faf6ee !important;
    }

    body.home-page .access-btn {
        flex: none !important;
        width: auto !important;
        height: 48px !important;
        padding: 0 1.4rem !important;
        gap: 0.5rem !important;
        background: rgba(74, 152, 152, 0.12) !important;
        border: 1px solid rgba(120, 88, 60, 0.3) !important;
        border-left: none !important;
        color: #4a9898 !important;
    }

    body.home-page .access-btn-label {
        display: inline !important;
        font-size: 0.74rem !important;
        letter-spacing: 0.06em;
    }

    body.home-page .access-btn:hover {
        background: rgba(74, 152, 152, 0.22) !important;
        color: #2e7070 !important;
        border-color: rgba(120, 88, 60, 0.45) !important;
    }

    /* 10. Footer dark */
    body.home-page .footer {
        background: #0a0a0a;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        justify-content: center;
    }

    body.home-page .footer-logo {
        filter: invert(1) brightness(0.6);
    }

    body.home-page .footer-copy {
        color: rgba(255, 255, 255, 0.2);
    }

    /* 11. Dev / Donate — avatar-top tumblr layout */
    .dev-page-main,
    .support-page-main {
        flex-direction: column !important;
        padding: 0 !important;
        min-height: 100vh;
    }

    .dev-sidebar {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 5rem 1.25rem 1.25rem !important;
        gap: 0.65rem !important;
        border-bottom: 1px solid rgba(43, 43, 43, 0.14);
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
    }

    .dev-author-art {
        width: 72px !important;
        height: 72px !important;
    }

    .dev-author-meta {
        align-items: center !important;
    }

    .dev-author-name {
        font-size: 0.92rem !important;
        text-align: center;
    }

    .dev-author-social-link {
        font-size: 0.8rem !important;
        text-align: center;
    }

    .dev-content,
    .support-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.75rem 1.25rem 3rem !important;
        margin: 0 !important;
    }

    .dev-header,
    .support-header {
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .page-summary {
        text-align: center !important;
        max-width: none !important;
    }

    /* Dev / Support pages — dark canvas on mobile */
    body.shell-static-page {
        background: #0c0b09;
    }

    body.shell-static-page #generative-bg {
        mix-blend-mode: screen;
        opacity: 0.14;
    }

    body.shell-static-page .nav {
        background: rgba(10, 10, 10, 0.93);
        border-bottom-color: rgba(255, 255, 255, 0.045);
    }

    body.shell-static-page .nav-cta {
        color: rgba(220, 215, 200, 0.45) !important;
        opacity: 1 !important;
    }

    body.shell-static-page .nav-cta.active,
    body.shell-static-page .nav-cta:hover {
        color: rgba(220, 215, 200, 0.88) !important;
        opacity: 1 !important;
    }

    body.shell-static-page .nav-separator {
        color: rgba(255, 255, 255, 0.15) !important;
        opacity: 1 !important;
    }

    body.shell-static-page .footer {
        background: #0a0a0a;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
    }

    body.shell-static-page .footer-logo {
        filter: invert(1) brightness(0.6);
    }

    body.shell-static-page .footer-copy {
        color: rgba(255, 255, 255, 0.2);
    }

    body.shell-static-page .dev-author-name {
        color: #F2EDDD !important;
    }

    body.shell-static-page .dev-author-social-link {
        color: rgba(255, 255, 255, 0.38) !important;
    }

    body.shell-static-page .dev-sidebar {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }

    /* Change 1 — Nav slimmer on all mobile pages */
    .nav {
        min-height: 30px !important;
        padding: 0.12rem 1rem !important;
    }

    /* Change 2 — Logo 12% bigger + moved down */
    body.home-page #hero-logo-webgl {
        aspect-ratio: 36 / 12.4 !important;
    }

    body.home-page .hero-logo-lockup {
        margin-top: 2rem !important;
    }

    /* Change 3 — OS labels dimmer, tighter, top-aligned with animation */
    body.home-page .hero-actions {
        gap: 0.1rem !important;
        align-self: start !important;
    }

    body.home-page .btn-download,
    body.home-page .btn-download:nth-child(1),
    body.home-page .btn-download:nth-child(2),
    body.home-page .btn-download:nth-child(3) {
        color: rgba(255, 255, 255, 0.09) !important;
    }

    body.home-page .btn-download .btn-label {
        color: rgba(255, 255, 255, 0.09) !important;
        font-size: 0.5rem !important;
        letter-spacing: 0.07em !important;
    }

    /* Change 4 — Post [001] matches title colour on dark dev page */
    body.shell-static-page .post-id {
        color: var(--text-ink) !important;
    }

    /* Change 5 — Crypto donate rows: hide arrow, "copy" stays */
    body.shell-static-page .donate-link--btc .donate-link-arrow,
    body.shell-static-page .donate-link--eth .donate-link-arrow {
        display: none !important;
    }

}


/* Hide avatar on support page as requested */
.support-page-main .dev-author-art {
    display: none !important;
}

/* Homepage text wordmark: final override after legacy image/mobile logo rules. */
body.home-page .hero-logo-lockup {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
}

body.home-page #hero-logo-webgl {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(620px, 100%) !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    height: auto !important;
    margin: 0 auto 0.5rem !important;
    contain: layout !important;
    filter: none !important;
}

body.home-page .hero-logo-text {
    width: 100%;
    padding-left: 1.2rem;
    font-size: clamp(3rem, 7.5vw, 4.75rem);
}

@media (max-width: 768px) {
    body.home-page #hero-logo-webgl {
        width: min(100%, 300px) !important;
    }

    body.home-page .hero-logo-text {
        padding-left: 1rem;
        font-size: clamp(2.4rem, 16vw, 3.75rem);
    }
}
