/* ===================================================================
   J.C. Chambers III — Author Site
   Theme: "The System" — a dark fantasy / sci-fi LitRPG interface.
   Gold = heroism & high fantasy. Cyan = the System / sci-fi.
   =================================================================== */

:root {
    --bg:          #07090f;
    --bg-2:        #0b0f1a;
    --surface:     #0f1420;
    --surface-2:   #141b2c;
    --line:        rgba(120, 160, 220, 0.14);
    --line-strong: rgba(120, 160, 220, 0.30);

    --text:        #e8eef7;
    --text-muted:  #93a1b8;
    --text-dim:    #5f6e87;

    --cyan:        #43d3ff;   /* the System */
    --cyan-soft:   rgba(67, 211, 255, 0.14);
    --gold:        #f5c451;   /* heroism */
    --gold-soft:   rgba(245, 196, 81, 0.14);
    --violet:      #9d7bff;

    --glow-cyan:   0 0 24px rgba(67, 211, 255, 0.35);
    --glow-gold:   0 0 24px rgba(245, 196, 81, 0.30);

    --font-display: "Cinzel", Georgia, serif;
    --font-system:  "Rajdhani", "Segoe UI", sans-serif;
    --font-body:    "Inter", system-ui, sans-serif;

    --radius: 14px;
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient backdrop: deep space + faint nebula + grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 700px at 78% -8%, rgba(67, 211, 255, 0.10), transparent 60%),
        radial-gradient(900px 700px at 12% 8%, rgba(157, 123, 255, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(245, 196, 81, 0.07), transparent 60%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(120, 160, 220, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 220, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
            mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
    pointer-events: none;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container-x { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .02em; line-height: 1.15; }

.eyebrow {
    font-family: var(--font-system);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: .8rem;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    margin: .5rem 0 .6rem;
}
.section-head p { color: var(--text-muted); font-size: 1.06rem; margin: 0; }

.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }

/* ---------- Pitch line (punchy intro paragraph) ----------
   The duplicated selector lets .pitch work anywhere while still
   outranking the quieter `.section-head p` default.                */
.pitch,
.section-head p.pitch {
    font-family: var(--font-system);
    font-weight: 600;
    font-size: clamp(1.18rem, 2.8vw, 1.7rem);
    line-height: 1.45;
    letter-spacing: .01em;
    color: var(--text);
    margin: 0;
}
.pitch .boom {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 18px rgba(245, 196, 81, .35);
}
.pitch .love {
    color: var(--violet);
    font-weight: 700;
    text-shadow: 0 0 18px rgba(157, 123, 255, .35);
}
/* the callback: same gold, turned up */
.pitch .boom.louder {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-shadow: 0 0 26px rgba(245, 196, 81, .55);
}

/* ---------- Announcement banner ---------- */
.topbar {
    background: linear-gradient(90deg, rgba(245,196,81,.12), rgba(67,211,255,.12));
    border-bottom: 1px solid var(--line);
    font-family: var(--font-system);
    font-size: .95rem;
    letter-spacing: .02em;
    text-align: center;
    padding: 9px 16px;
    color: var(--text);
}
.topbar a { font-weight: 600; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(7, 9, 15, 0.72);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--text);
    letter-spacing: .04em;
    white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .mark { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    font-family: var(--font-system);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--cyan-soft); }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line-strong);
    color: var(--text); border-radius: 8px;
    width: 42px; height: 38px; font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 2px;
        background: rgba(11, 15, 26, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 18px;
        max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
        padding-top: 0; padding-bottom: 0;
    }
    .nav-links.open { max-height: 340px; padding-top: 12px; padding-bottom: 18px; }
    .nav-links a { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-system);
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
    background: linear-gradient(180deg, #ffd778, var(--gold));
    color: #2a1f02;
    box-shadow: var(--glow-gold);
}
.btn-gold:hover { color: #2a1f02; box-shadow: 0 0 34px rgba(245,196,81,.5); }

.btn-cyan {
    background: linear-gradient(180deg, #6fe0ff, var(--cyan));
    color: #04222b;
    box-shadow: var(--glow-cyan);
}
.btn-cyan:hover { color: #04222b; box-shadow: 0 0 34px rgba(67,211,255,.55); }

.btn-ghost {
    background: rgba(255,255,255,.02);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); background: var(--cyan-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(80px, 14vh, 150px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
#starfield { position: absolute; inset: 0; z-index: 0; }
.hero .container-x { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    margin: 16px 0 10px;
    background: linear-gradient(120deg, #fff 0%, #cfe3ff 40%, var(--cyan) 70%, var(--gold) 110%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(67,211,255,.15);
}
.hero .lede {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 30px;
}
@media (max-width: 900px) { .hero .lede { margin-left: auto; margin-right: auto; } }
.hero .lede strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

/* Hero status panel (LitRPG card) */
.statpanel {
    position: relative;
    background: linear-gradient(160deg, rgba(20,27,44,.92), rgba(11,15,26,.92));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.statpanel::before, .statpanel::after {
    content: ""; position: absolute; width: 16px; height: 16px;
    border: 2px solid var(--cyan); opacity: .8;
}
.statpanel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.statpanel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.statpanel .sp-title {
    font-family: var(--font-system);
    text-transform: uppercase; letter-spacing: .22em;
    font-size: .82rem; color: var(--cyan);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px dashed var(--line-strong);
    padding-bottom: 12px; margin-bottom: 16px;
}
.statpanel .sp-title .lvl { color: var(--gold); }

.stat-row { margin-bottom: 14px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-row .label {
    display: flex; justify-content: space-between;
    font-family: var(--font-system); font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; font-size: .82rem; color: var(--text-muted);
    margin-bottom: 6px;
}
.stat-row .label .val { color: var(--text); }
.bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.bar > span {
    display: block; height: 100%; width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.bar.gold > span { background: linear-gradient(90deg, var(--gold), #ff9d57); }

/* Hero quest log (LitRPG card variant) */
.questlog .quest {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    margin-bottom: 10px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.questlog .quest:last-child { margin-bottom: 0; }
a.quest { color: inherit; }
a.quest:hover {
    border-color: var(--cyan);
    background: var(--cyan-soft);
    transform: translateX(3px);
}
.questlog .q-ic {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 1.05rem; line-height: 1;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
}
.questlog .q-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.questlog .q-name {
    font-family: var(--font-system); font-weight: 600;
    letter-spacing: .04em; color: var(--text); font-size: .98rem;
}
.questlog .q-meta {
    font-size: .74rem; letter-spacing: .04em;
    color: var(--text-muted);
}
.questlog .q-status {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-system); font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; font-size: .68rem;
    padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.questlog .q-status.done { color: var(--gold); background: var(--gold-soft); }
.questlog .q-status.live { color: var(--cyan); background: var(--cyan-soft); }
.questlog .q-status.wip  { color: var(--violet); background: rgba(157,123,255,.14); }
.questlog .q-status .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 0 0 var(--cyan);
    animation: questPulse 1.8s infinite;
}
@keyframes questPulse {
    0%   { box-shadow: 0 0 0 0 rgba(67,211,255,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(67,211,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(67,211,255,0); }
}
@media (prefers-reduced-motion: reduce) {
    .questlog .q-status .dot { animation: none; }
    a.quest:hover { transform: none; }
}

/* ---------- Carousel (featured) ---------- */
.featured-carousel { max-width: 560px; margin: 0 auto; }
.carousel-image {
    max-height: 640px; width: auto; margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.carousel-item { text-align: center; }
.car-caption {
    margin-top: 18px;
    font-family: var(--font-system);
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); font-size: .9rem;
}
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 0 6px var(--cyan)); }

/* ---------- Book cards (the Library) ---------- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.book-card {
    position: relative;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.book-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 24px 50px rgba(0,0,0,.5), var(--glow-cyan);
}
.book-cover { position: relative; aspect-ratio: 3/4.5; overflow: hidden; background: #060810; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-cover .ribbon {
    position: absolute; top: 14px; left: 14px;
    font-family: var(--font-system); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: .72rem;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(7,9,15,.78); border: 1px solid var(--line-strong);
    backdrop-filter: blur(4px);
}
.ribbon.amazon { color: var(--gold); border-color: var(--gold-soft); }
.ribbon.royalroad { color: var(--cyan); border-color: var(--cyan-soft); }
.ribbon.soon { color: var(--violet); border-color: rgba(157,123,255,.3); }

.book-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { font-size: 1.32rem; margin: 0 0 4px; }
.book-series {
    font-family: var(--font-system); font-size: .82rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.book-body p { color: var(--text-muted); font-size: .96rem; margin: 0 0 18px; }
.book-body .btn { margin-top: auto; align-self: flex-start; }

/* Genre tags styled as "attributes" */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
    font-family: var(--font-system); font-weight: 600; font-size: .76rem;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 6px;
    background: var(--cyan-soft); color: var(--cyan);
    border: 1px solid rgba(67,211,255,.22);
}
.tag.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,196,81,.25); }

/* ---------- Detailed book entries (books.html) ---------- */
.book-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.book-detail::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(420px 300px at 0% 0%, var(--cyan-soft), transparent 60%);
    pointer-events: none; opacity: .6;
}
.book-detail > * { position: relative; z-index: 1; }
.book-detail .cover-wrap img {
    border-radius: 10px; width: 100%;
    box-shadow: 0 20px 45px rgba(0,0,0,.55);
}
.book-detail h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 6px; }
.book-detail .meta {
    font-family: var(--font-system); letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-dim); font-size: .85rem; margin-bottom: 18px;
}
.book-detail p { color: var(--text-muted); }
.book-detail .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 720px) {
    .book-detail { grid-template-columns: 1fr; }
    .book-detail .cover-wrap { max-width: 260px; margin: 0 auto; }
    .book-detail .actions { justify-content: center; }
    .book-detail { text-align: center; }
    .book-detail .tags { justify-content: center; }
}

/* ---------- About / Worlds ---------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose p { color: var(--text-muted); font-size: 1.07rem; }
.prose p strong { color: var(--text); }

.map-frame {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.map-frame img { width: 100%; }
.map-frame figcaption {
    font-family: var(--font-system); letter-spacing: .14em; text-transform: uppercase;
    font-size: .8rem; color: var(--cyan);
    padding: 12px 16px; background: rgba(7,9,15,.7);
    border-top: 1px solid var(--line);
}

.creed {
    border-left: 3px solid var(--gold);
    padding: 8px 0 8px 22px;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--text);
    margin: 0;
}

/* ---------- Collapsible disclosure ---------- */
.disclosure {
    max-width: 880px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    overflow: hidden;
}
.disclosure > summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 18px;
    padding: 22px clamp(18px, 3vw, 28px);
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: rgba(120, 160, 220, .06); }
.disclosure > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.disclosure > summary .eyebrow { grid-column: 1; }
.disclosure > summary h2 {
    grid-column: 1;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    margin: .2rem 0 0;
}
.disclosure > summary .chev {
    grid-column: 2; grid-row: 1 / span 2;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--cyan-soft);
    color: var(--cyan);
    border: 1px solid rgba(67, 211, 255, .25);
    font-size: 1.1rem; line-height: 1;
    transition: transform .25s ease;
}
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.disc-body { padding: 24px clamp(18px, 3vw, 28px) 28px; }
.disc-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin: 30px 0 .35rem;
}
.disc-body > p:first-child { margin-top: 0; }

/* ---------- Socials ---------- */
.socials-wrap { text-align: center; }
.substack-embed { max-width: 480px; margin: 40px auto; text-align: center; }
.substack-cta {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    color: var(--gold);
    margin: 0 0 .5rem;
}
.substack-embed iframe { width: 100%; max-width: 480px; }
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 940px;
    margin: 40px auto 0;
}
.social-card {
    flex: 1 1 170px; max-width: 220px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 26px 18px;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.social-card:hover {
    color: var(--text); transform: translateY(-5px);
    border-color: var(--cyan); box-shadow: 0 18px 40px rgba(0,0,0,.45), var(--glow-cyan);
}
.social-card .ic {
    width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--cyan-soft); color: var(--cyan);
    border: 1px solid rgba(67,211,255,.25);
}
.social-card .ic svg { width: 26px; height: 26px; fill: currentColor; }
.social-card .name { font-family: var(--font-system); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.social-card .handle { color: var(--text-dim); font-size: .85rem; }
.social-card.is-gold .ic { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,196,81,.28); }
.social-card.is-gold:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.45), var(--glow-gold); }

/* ---------- Stats strip ---------- */
.stats-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; max-width: 760px; margin: 0 auto;
}
@media (max-width: 620px) { .stats-strip { grid-template-columns: 1fr; } }
.stat-tile {
    text-align: center; padding: 26px 18px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(255,255,255,.015);
}
.stat-tile .num {
    font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
    color: var(--gold); text-shadow: var(--glow-gold);
}
.stat-tile .cap {
    font-family: var(--font-system); letter-spacing: .14em; text-transform: uppercase;
    font-size: .82rem; color: var(--text-muted); margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 34px;
    margin-top: 40px;
    background: rgba(7,9,15,.6);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer .brand { font-size: 1.05rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-system); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--cyan); }
.footer .copyright { color: var(--text-dim); font-size: .85rem; width: 100%; margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
