/* =========================================
   DONIDONKA.INFO — MAIN STYLESHEET
   Dark / minimal / terminal-inspired
   ========================================= */

:root {
    color-scheme: dark;

    --background: #030405;
    --surface: rgba(8, 8, 8, 0.92);
    --surface-hover: rgba(15, 16, 18, 0.97);

    --border: #1b1d20;
    --border-hover: #41454a;

    --text: #e8e8e8;
    --muted: #92959a;
    --subtle: #666a70;

    --accent: #d1d3d6;
    --accent-bright: #f0f0f0;
    --accent-dim: #55595e;

    --font: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
    --content-width: 1080px;
}

/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-width: 320px;
    min-height: 100vh;

    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.7;

    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: #44484e;
    color: #ffffff;
}

/* Background: tiny stars and restrained blue atmosphere */

.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-shell {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
    min-height: 100svh;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -2;
    pointer-events: none;

    background-image:
        radial-gradient(1px 1px at 17px 31px,
            rgba(225, 229, 235, 0.55) 99%,
            transparent 100%),
        radial-gradient(1px 1px at 91px 83px,
            rgba(180, 185, 193, 0.32) 99%,
            transparent 100%),
        radial-gradient(2px 2px at 145px 17px,
            rgba(205, 209, 216, 0.28) 99%,
            transparent 100%),
        radial-gradient(1px 1px at 63px 147px,
            rgba(205, 209, 216, 0.24) 99%,
            transparent 100%);

    background-size:
        190px 190px,
        240px 240px,
        320px 320px,
        280px 280px;

    opacity: 0.53;
    animation: star-drift 100s linear infinite;
}

.site-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(ellipse at 12% 35%,
            rgba(25, 27, 30, 0.08),
            transparent 38%),
        radial-gradient(ellipse at 88% 56%,
            rgba(22, 23, 25, 0.06),
            transparent 36%);

    opacity: 0.9;
}

@keyframes star-drift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position:
            190px 380px,
            -240px 480px,
            320px -320px,
            -280px 280px;
    }
}

/* Header */

.site-header {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: min(var(--content-width), calc(100% - 64px));
    min-height: 58px;

    margin: 16px auto 0;
    padding: 0 19px;

    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.82);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.015);

    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    color: var(--accent);
    border: 1px solid var(--border-hover);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: -2px;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.brand:hover .brand-mark {
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.brand-name {
    color: #e1e1e1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.7px;
}

.brand-cursor {
    color: var(--accent);
    animation: cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes cursor-blink {
    to {
        visibility: hidden;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 9px 12px;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.25px;
    text-transform: lowercase;

    transition:
        color 180ms ease,
        background 180ms ease;
}

.nav-link::before {
    content: "[";
    margin-right: 6px;
    color: transparent;
}

.nav-link::after {
    content: "]";
    margin-left: 6px;
    color: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.035);
}

.nav-link.active::before,
.nav-link.active::after {
    color: var(--accent-dim);
}

/* Hero */

.hero {
    position: relative;

    display: grid;
    place-items: center;

    width: 100%;
    min-height: 455px;

    padding: 68px 24px 38px;
}

.profile {
    position: relative;
    z-index: 1;

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

    width: min(100%, 600px);
    text-align: center;
}

.avatar {
    position: relative;

    display: grid;
    place-items: center;

    width: 105px;
    height: 105px;
    margin-bottom: 24px;

    border: 1px solid #414348;
    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 25%,
            rgba(95, 98, 103, 0.12),
            transparent 62%),
        #090a0c;

    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.025),
        0 0 38px rgba(255, 255, 255, 0.025),
        inset 0 0 25px rgba(255, 255, 255, 0.02);

    overflow: hidden;
}

.avatar::before {
    content: "";
    position: absolute;
    inset: 6px;

    border: 1px solid rgba(220, 222, 225, 0.10);
    border-radius: inherit;
}

.avatar span {
    color: #d8dadd;
    font-size: 39px;
    font-weight: 500;
    letter-spacing: -3px;

    text-shadow: 0 0 24px rgba(230, 232, 235, 0.10);
}

.eyebrow {
    margin-bottom: 5px;

    color: #777b80;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.2px;
}

.profile h1 {
    color: #ededed;
    font-size: clamp(34px, 5vw, 43px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -1.8px;

    text-shadow: 0 0 35px rgba(255, 255, 255, 0.025);
}

.profile-subtitle {
    margin-top: 5px;

    color: #b9b9b9;
    font-size: clamp(12px, 2vw, 15px);
    letter-spacing: 0.55px;
}

.profile-subtitle span {
    margin: 0 4px;
    color: #565a60;
}

.profile-description {
    max-width: 420px;
    margin-top: 20px;

    color: #969696;
    font-size: 11px;
    line-height: 1.9;
}

.scroll-cue {
    display: grid;
    place-items: center;

    width: 34px;
    height: 24px;
    margin-top: 11px;
}

.scroll-cue span {
    width: 7px;
    height: 2px;

    background: var(--accent);
    opacity: 0.8;

    transition:
        width 180ms ease,
        opacity 180ms ease;
}

.scroll-cue:hover span {
    width: 19px;
    opacity: 1;
}

/* Terminal-style corner panels */

.terminal-panel {
    position: absolute;
    top: 28px;

    padding: 11px 14px;

    border: 1px solid rgba(54, 54, 54, 0.75);
    background: rgba(11, 11, 11, 0.48);

    color: #a0a0a0;
    font-size: 10px;
    line-height: 1.9;

    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.terminal-panel:hover {
    border-color: rgba(104, 104, 104, 0.7);
    background: rgba(16, 16, 16, 0.76);
}

.terminal-left {
    left: max(32px, calc((100% - var(--content-width)) / 2));
}

.terminal-right {
    right: max(32px, calc((100% - var(--content-width)) / 2));
}

.terminal-prompt {
    padding-right: 4px;
    color: var(--accent);
}

.terminal-comment {
    color: #777777;
}

/* Link cards */

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    width: min(960px, calc(100% - 64px));
    margin: 0 auto 88px;
}

.link-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
    min-height: 82px;
    padding: 17px 18px;

    border: 1px solid var(--border);
    background: rgba(11, 11, 11, 0.7);

    box-shadow: inset 0 1px rgba(255, 255, 255, 0.012);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.link-card:hover {
    transform: translateY(-3px);

    border-color: var(--border-hover);
    background: var(--surface-hover);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px rgba(186, 186, 186, 0.04);
}

.card-icon {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;
    flex-shrink: 0;

    color: var(--accent);
}

.card-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

.card-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
    flex: 1;
}

.card-title {
    color: #dedede;
    font-size: 12px;
    font-weight: 500;

    transition: color 180ms ease;
}

.card-description {
    color: #8a8a8a;
    font-size: 10px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.card-arrow {
    display: block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;

    color: #909090;
    opacity: 0.75;

    transition:
        color 180ms ease,
        opacity 180ms ease,
        transform 180ms ease;
}

.link-card:hover .card-title {
    color: var(--accent-bright);
}

.link-card:hover .card-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Content sections */

.content-section {
    width: min(900px, calc(100% - 64px));
    margin: 0 auto 78px;
    scroll-margin-top: 92px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;
}

.section-index {
    color: #8e8e8e;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.section-heading h2 {
    color: #dedede;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.section-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg,
            var(--border-hover),
            transparent);
}

.about-panel {
    padding: 23px 25px;

    border: 1px solid var(--border);
    background: rgba(12, 12, 12, 0.72);
}

.section-kicker {
    margin-bottom: 13px;
    color: #8b8b8b;
    font-size: 10px;
}

.about-text {
    max-width: 720px;
    color: #b5b5b5;
    font-size: 12px;
    line-height: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 19px;
}

.tag {
    padding: 4px 9px;

    border: 1px solid #2a2a2a;
    background: rgba(32, 32, 32, 0.48);

    color: #c4c4c4;
    font-size: 10px;
}

/* Projects placeholder */

.project-placeholder {
    display: flex;
    align-items: center;
    gap: 17px;

    min-height: 95px;
    padding: 20px 23px;

    border: 1px dashed #292929;
    background: rgba(12, 12, 12, 0.5);

    transition:
        border-color 180ms ease,
        background 180ms ease;
}

.project-placeholder:hover {
    border-color: #3a3a3a;
    background: rgba(19, 19, 19, 0.72);
}

.project-placeholder-icon {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;
    flex-shrink: 0;

    border: 1px solid #303030;
    color: var(--accent);
}

.project-placeholder-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.project-placeholder-title {
    color: #d2d2d2;
    font-size: 12px;
}

.project-placeholder-description {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

/* Footer */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;

    width: min(800px, calc(100% - 64px));
    margin: auto auto 0;
    padding: 25px 0 29px;
}

.footer-line {
    height: 1px;
    flex: 1;
    min-width: 25px;
    background: linear-gradient(90deg,
            transparent,
            #1c344e);
}

.footer-line:last-of-type {
    background: linear-gradient(90deg,
            #1c344e,
            transparent);
}

.footer-domain {
    color: #6798c9;
    font-size: 10px;
    letter-spacing: 1.8px;

    transition: color 180ms ease;
}

.footer-domain:hover {
    color: var(--accent-bright);
}

.footer-note {
    flex-basis: 100%;
    text-align: center;

    color: #4f637a;
    font-size: 9px;
    letter-spacing: 0.15px;
}

/* Small entrance effects — activated by script.js */

.has-js .js-reveal {
    opacity: 0;
    transform: translateY(12px);

    transition:
        opacity 450ms ease,
        transform 450ms ease;
}

.has-js .js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive layout */

@media (min-width: 1400px) {
    .hero {
        min-height: 475px;
    }
}

@media (max-width: 900px) {
    .terminal-panel {
        font-size: 9px;
    }

    .terminal-left {
        left: 24px;
    }

    .terminal-right {
        right: 24px;
    }

    .link-grid {
        gap: 12px;
    }

    .link-card {
        gap: 11px;
        padding: 15px 13px;
    }
}

@media (max-width: 700px) {
    .site-header {
        width: calc(100% - 28px);
        min-height: 56px;

        gap: 8px;
        padding: 0 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding: 9px 6px;
        font-size: 9px;
    }

    .nav-link::before {
        margin-right: 3px;
    }

    .nav-link::after {
        margin-left: 3px;
    }

    .hero {
        min-height: 410px;
        padding: 58px 20px 34px;
    }

    .terminal-panel {
        top: 17px;
        padding: 7px 9px;
        font-size: 8px;
        line-height: 1.65;
    }

    .terminal-left {
        left: 18px;
    }

    .terminal-right {
        right: 18px;
    }

    .avatar {
        width: 91px;
        height: 91px;
        margin-bottom: 19px;
    }

    .avatar span {
        font-size: 34px;
    }

    .profile h1 {
        font-size: 35px;
    }

    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 36px);
        margin-bottom: 70px;
    }

    .link-card {
        min-height: 77px;
        gap: 10px;
        padding: 13px 11px;
    }

    .card-icon {
        width: 23px;
        height: 23px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-title {
        font-size: 11px;
    }

    .card-description {
        font-size: 9px;
    }

    .content-section {
        width: calc(100% - 36px);
        margin-bottom: 60px;
    }

    .about-panel {
        padding: 19px;
    }

    .site-footer {
        width: calc(100% - 36px);
    }
}

@media (max-width: 440px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 10px 8px;
    }

    .brand {
        justify-content: center;
        width: 100%;
    }

    .main-nav {
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 5px 7px;
    }

    .hero {
        min-height: 385px;
        padding-top: 65px;
    }

    .terminal-panel {
        top: 10px;
        font-size: 7px;
    }

    .terminal-left {
        left: 10px;
    }

    .terminal-right {
        right: 10px;
    }

    .profile h1 {
        font-size: 31px;
    }

    .profile-subtitle {
        font-size: 11px;
    }

    .profile-description {
        font-size: 10px;
    }

    .link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .link-card {
        min-height: 72px;
        padding: 14px 17px;
    }

    .content-section {
        margin-bottom: 50px;
    }

    .about-text {
        font-size: 11px;
    }

    .footer-domain {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* Respect accessibility settings */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .has-js .js-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Optional background music player */

.music-player {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 440px);
    margin-top: 23px;
    padding: 12px;
    border: 1px solid rgba(59, 59, 59, 0.9);
    background: rgba(12, 12, 12, 0.78);
    text-align: left;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
    transition: border-color 180ms ease, background 180ms ease;
}

.music-player:hover,
.music-player:focus-within {
    border-color: #2b5276;
    background: rgba(16, 16, 16, 0.92);
}

.music-play-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 37px;
    height: 37px;
    border: 1px solid #2a5278;
    background: rgba(43, 43, 43, 0.55);
    color: var(--accent);
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.music-play-button:hover {
    background: rgba(59, 59, 59, 0.65);
    border-color: var(--accent);
    color: #fff;
}

.music-play-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.music-play-symbol {
    display: block;
    padding-left: 2px;
    font-size: 13px;
    line-height: 1;
}

.music-play-button.is-playing .music-play-symbol {
    padding-left: 0;
    font-size: 12px;
}

.music-details {
    flex: 1;
    min-width: 0;
}

.music-eyebrow {
    color: #5b82a8;
    font-size: 8px;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.music-title {
    overflow: hidden;
    margin-top: 2px;
    color: #dedede;
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-title span {
    color: #788da5;
}

.music-status {
    margin-top: 2px;
    color: #667e98;
    font-size: 9px;
    line-height: 1.5;
}

.music-timeline {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
}

.music-time {
    flex-shrink: 0;
    color: #71869d;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.music-seek,
.music-volume-control input {
    width: 100%;
    min-width: 0;
    height: 14px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.music-seek {
    flex: 1;
}

.music-volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 48px;
    flex-shrink: 0;
}

.volume-symbol {
    color: #6786a6;
    font-size: 7px;
    letter-spacing: 1px;
}

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

@media (max-width: 440px) {
    .music-player {
        gap: 9px;
        padding: 10px;
    }

    .music-play-button {
        width: 34px;
        height: 34px;
    }

    .music-volume-control {
        width: 39px;
    }

    .music-title {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .music-player,
    .music-play-button {
        transition: none;
    }
}


/* --- Starfield / rifle backdrop / expanded landing page --- */
.site-shell {
    position: relative;
    isolation: isolate;
}
.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 28%, rgba(41, 41, 41, 0.24), transparent 48%),
        radial-gradient(ellipse at 85% 82%, rgba(39, 39, 39, 0.15), transparent 42%),
        #03060b;
}
.site-shell::after {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    opacity: .58;
    background-image:
        radial-gradient(1px 1px at 7% 18%, #9bd9ff 99%, transparent),
        radial-gradient(1px 1px at 19% 72%, #73baff 99%, transparent),
        radial-gradient(1px 1px at 32% 33%, #d3eaff 99%, transparent),
        radial-gradient(1px 1px at 45% 81%, #4c9ce0 99%, transparent),
        radial-gradient(1px 1px at 61% 21%, #83c9ff 99%, transparent),
        radial-gradient(1px 1px at 73% 61%, #b7e3ff 99%, transparent),
        radial-gradient(1px 1px at 86% 29%, #67b8f3 99%, transparent),
        radial-gradient(1px 1px at 94% 78%, #9bd9ff 99%, transparent);
    background-size: 310px 270px, 380px 330px, 430px 390px, 350px 310px, 390px 360px, 420px 400px, 360px 330px, 450px 410px;
    animation: star-drift 100s linear infinite;
}
@keyframes star-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-2%, 1.5%, 0); }
}
/* The uploaded rifle artwork is a site-wide atmospheric watermark, not a card image. */
body::before {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    width: min(72vw, 880px);
    height: min(72vw, 880px);
    right: -8vw;
    top: 48%;
    transform: translateY(-50%) rotate(-5deg);
    background: url("assets/rifle.svg") center / contain no-repeat;
    opacity: .19;
    filter: saturate(.78) drop-shadow(0 0 35px rgba(162, 162, 162, 0.14));
}
.site-header {
    border-color: rgba(79, 79, 79, 0.36);
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(18px);
}
.brand-mark {
    box-shadow: 0 0 22px rgba(153, 153, 153, 0.12);
}
.hero {
    position: relative;
}
.hero::before {
    content: "D /";
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: -1;
    color: rgba(165, 165, 165, 0.025);
    font-size: clamp(150px, 27vw, 340px);
    font-weight: 700;
    letter-spacing: -.1em;
    white-space: nowrap;
    pointer-events: none;
}
.avatar {
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(43, 43, 43, 0.92), rgba(9, 9, 9, 0.96));
    border-color: rgba(159, 159, 159, 0.42);
    box-shadow: 0 0 0 7px rgba(135, 135, 135, 0.035), 0 0 48px rgba(128, 128, 128, 0.14);
}
.avatar span {
    font-size: 26px;
    letter-spacing: -2px;
}
.profile h1 {
    letter-spacing: -.065em;
}
.profile-description {
    max-width: 420px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}
.primary-action, .secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #303030;
    font-size: 10px;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.primary-action {
    color: #e6f4ff;
    background: linear-gradient(120deg, rgba(80, 80, 80, 0.55), rgba(20, 20, 20, 0.8));
    border-color: #386b96;
}
.secondary-action {
    color: #9cb5cc;
    background: rgba(12, 12, 12, 0.65);
}
.primary-action span, .secondary-action span { color: var(--accent-bright); }
.primary-action:hover, .secondary-action:hover {
    transform: translateY(-2px);
    border-color: #76b9ec;
    background-color: rgba(47, 47, 47, 0.8);
}
.music-player {
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(11, 11, 11, 0.72);
    backdrop-filter: blur(12px);
}
.music-play-button { border-radius: 3px; }
.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(900px, calc(100% - 64px));
    margin: -6px auto 94px;
    border: 1px solid rgba(66, 66, 66, 0.65);
    background: rgba(11, 11, 11, 0.72);
    backdrop-filter: blur(14px);
}
.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-right: 1px solid rgba(66, 66, 66, 0.5);
}
.status-item:last-child { border-right: 0; }
.status-item > span, .status-label {
    color: #59738d;
    font-size: 8px;
    letter-spacing: 1.35px;
}
.status-item strong {
    color: #d4e6f7;
    font-size: 10px;
    font-weight: 500;
}
.status-dot {
    width: 6px;
    height: 6px;
    margin-bottom: -14px;
    margin-left: auto;
    border-radius: 50%;
    background: #76d5a5;
    box-shadow: 0 0 11px rgba(118, 213, 165, .5);
}
.content-section {
    scroll-margin-top: 90px;
}
.section-heading h2 {
    letter-spacing: -.04em;
}
.about-panel, .project-card {
    border-color: rgba(64, 64, 64, 0.78);
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.88), rgba(9, 9, 9, 0.84));
    backdrop-filter: blur(12px);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.project-card {
    display: flex;
    flex-direction: column;
    min-height: 255px;
    padding: 18px;
    border: 1px solid rgba(64, 64, 64, 0.78);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(154, 154, 154, 0.75);
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.96), rgba(10, 10, 10, 0.92));
}
.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.project-number {
    color: #858585;
    font-size: 8px;
    letter-spacing: 1.3px;
}
.project-open {
    color: #78b9e9;
    font-size: 17px;
}
.project-glyph {
    margin: 26px 0 15px;
    color: #e0efff;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.08em;
}
.project-glyph span { color: #6eb9f1; }
.project-card h3 {
    color: #d9e8f6;
    font-size: 13px;
    font-weight: 500;
}
.project-card p {
    margin-top: 9px;
    color: #849ab0;
    font-size: 10px;
    line-height: 1.8;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 17px;
}
.project-tags span {
    padding: 4px 6px;
    border: 1px solid rgba(73, 73, 73, 0.65);
    color: #78a9d2;
    font-size: 8px;
    background: rgba(19, 19, 19, 0.7);
}
.site-footer {
    margin-top: 70px;
}
@media (max-width: 800px) {
    body::before {
        width: 95vw;
        height: 95vw;
        right: -25vw;
        top: 45%;
        opacity: .12;
    }
    .status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 68px;
    }
    .status-item:nth-child(2) { border-right: 0; }
    .status-item:nth-child(-n+2) { border-bottom: 1px solid rgba(66, 66, 66, 0.5); }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 210px; }
}
@media (max-width: 440px) {
    .status-strip {
        width: calc(100% - 36px);
        margin-top: 0;
    }
    .status-item { padding: 12px; }
    .status-item strong { font-size: 9px; }
    body::before {
        width: 115vw;
        height: 115vw;
        right: -38vw;
        opacity: .09;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-shell::after { animation: none; }
}


/* Additional pages, mobile navigation, and small live details */
.mobile-menu-toggle { display:none; border:1px solid var(--border); color:var(--accent); background:rgba(11, 11, 11, 0.8); padding:8px 10px; cursor:pointer; font-size:10px; }
.mobile-menu-toggle span { margin-left:6px; }
.status-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
.status-item:nth-child(3) { border-right:0; }
.status-item:nth-child(-n+3) { border-bottom:1px solid rgba(66, 66, 66, 0.5); }
.page-hero { width:min(900px,calc(100% - 64px)); margin:82px auto 42px; }
.page-hero .eyebrow { margin-bottom:10px; }
.page-hero h1 { font-size:clamp(30px,5vw,46px); line-height:1.2; letter-spacing:-.07em; color:#eef5fd; }
.page-hero p { max-width:620px; margin-top:16px; color:#969696; font-size:12px; line-height:2; }
.page-label { color:#8a8a8a; font-size:9px; letter-spacing:1.8px; margin-bottom:14px; }
.page-content { width:min(900px,calc(100% - 64px)); margin:0 auto 80px; }
.page-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.info-card { border:1px solid rgba(64, 64, 64, 0.78); background:linear-gradient(145deg,rgba(17, 17, 17, 0.88),rgba(9, 9, 9, 0.84)); padding:22px; min-height:145px; transition:transform 180ms ease,border-color 180ms ease; }
a.info-card:hover { transform:translateY(-3px); border-color:var(--border-hover); }
.info-card .card-meta { color:#858585; font-size:8px; letter-spacing:1.2px; }
.info-card h2,.info-card h3 { color:#d9e8f6; font-size:13px; font-weight:500; margin:13px 0 8px; }
.info-card p { color:#849ab0; font-size:10px; line-height:1.9; }
.info-card .project-tags { margin-top:14px; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.gallery-tile { min-height:170px; border:1px solid var(--border); background:radial-gradient(ellipse at 50% 25%,rgba(83, 83, 83, 0.23),transparent 65%),rgba(11, 11, 11, 0.76); padding:16px; display:flex; flex-direction:column; justify-content:space-between; }
.gallery-art { min-height:105px; display:grid; place-items:center; color:#8bcfff; font-size:28px; text-shadow:0 0 24px rgba(162, 162, 162, 0.22); }
.gallery-tile span:last-child { color:#8199b2; font-size:9px; }
.update-list { border-left:1px solid #303030; margin-left:8px; padding-left:24px; display:grid; gap:22px; }
.update-item { position:relative; padding:2px 0 8px; }
.update-item::before { content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:var(--accent); left:-28px; top:7px; box-shadow:0 0 12px rgba(192, 192, 192, 0.3); }
.update-date { color:#8b8b8b; font-size:9px; letter-spacing:1px; }
.update-item h2 { color:#d9e8f6; font-size:13px; font-weight:500; margin:7px 0; }
.update-item p { color:#849ab0; font-size:10px; line-height:1.9; }
.contact-link { display:inline-flex; align-items:center; gap:12px; border:1px solid #393939; background:rgba(20, 20, 20, 0.7); color:#dedede; padding:12px 15px; font-size:10px; margin-top:18px; }
.not-found { min-height:55vh; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:50px 20px; }
.not-found .error-code { color:#d0d0d0; font-size:clamp(70px,16vw,140px); line-height:1; letter-spacing:-.1em; text-shadow:0 0 50px rgba(157, 157, 157, 0.18); }
.not-found h1 { font-size:17px; margin-top:20px; }
.not-found p { color:var(--muted); font-size:11px; margin-top:10px; }
.not-found .primary-action { margin-top:24px; }
.site-footer a { color:#a0a0a0; }
.site-footer a:hover { color:var(--accent-bright); }
@media(max-width:700px) {
 .mobile-menu-toggle { display:block; }
 .site-header { flex-wrap:wrap; position:relative; }
 .main-nav { display:none; flex-basis:100%; flex-wrap:wrap; padding:4px 0 10px; }
 .main-nav.is-open { display:flex; }
 .main-nav .nav-link { flex:1 0 28%; text-align:center; }
 .status-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .status-item:nth-child(3) { border-right:1px solid rgba(66, 66, 66, 0.5); }
 .status-item:nth-child(even) { border-right:0; }
 .status-item:nth-child(-n+4) { border-bottom:1px solid rgba(66, 66, 66, 0.5); }
 .status-item:nth-child(5),.status-item:nth-child(6) { border-bottom:0; }
 .page-hero { margin-top:58px; }
 .page-grid { grid-template-columns:1fr; }
 .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:440px) {
 .page-hero,.page-content { width:calc(100% - 36px); }
 .gallery-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
 .info-card,.link-card,.project-card { transition:none; }
}


/* Monochrome profile artwork */
.avatar { background: #08090a; border-color: #33363a; box-shadow: 0 0 0 5px rgba(255,255,255,.018), 0 0 30px rgba(0,0,0,.35); }
.avatar::before { border-color: rgba(220,222,225,.08); pointer-events:none; z-index:1; }
.avatar-image { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }

/* small site utilities */
.music-player-global { position:fixed; z-index:20; right:18px; bottom:18px; width:min(440px,calc(100% - 36px)); margin:0; box-shadow:0 12px 42px rgba(0,0,0,.52); backdrop-filter:blur(18px); }
.music-player-global .music-eyebrow,.music-player-global .music-title,.music-player-global .music-status { text-transform:lowercase; }
.reading-progress { position:fixed; z-index:50; top:0; left:0; width:0; height:2px; background:#d5d5d5; pointer-events:none; }
.back-to-top { position:fixed; z-index:19; right:20px; bottom:118px; width:38px; height:38px; border:1px solid #303030; background:rgba(7,7,8,.92); color:#ddd; opacity:0; pointer-events:none; transform:translateY(5px); transition:opacity .18s ease,transform .18s ease; cursor:pointer; }
.back-to-top.is-visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.copy-page-link { margin-top:14px; border:1px solid #292929; background:#080808; color:#a8a8a8; padding:7px 10px; font:inherit; font-size:9px; cursor:pointer; }
.copy-page-link:hover { border-color:#555; color:#eee; }
@media(max-width:520px) {
 .music-player-global { right:10px; bottom:10px; width:calc(100% - 20px); }
 .back-to-top { bottom:130px; right:12px; }
 .music-player-global .music-volume-control { max-width:62px; }
}


/* October polish: quieter monochrome, more contrast, less template-like blue */
:root {
    --background: #020303;
    --surface: rgba(7, 7, 7, .94);
    --surface-hover: rgba(15, 15, 15, .98);
    --border: #1d1d1d;
    --border-hover: #505050;
    --text: #e7e7e7;
    --muted: #929292;
    --subtle: #666;
    --accent: #cfcfcf;
    --accent-bright: #f4f4f4;
    --accent-dim: #555;
}
/* Keep the starfield, but remove the obvious blue tint. */
.site-shell::before {
    background:
        radial-gradient(ellipse at 50% 27%, rgba(85,85,85,.12), transparent 49%),
        radial-gradient(ellipse at 85% 82%, rgba(58,58,58,.08), transparent 42%),
        #020303;
}
.site-shell::after {
    opacity: .38;
    background-image:
        radial-gradient(1px 1px at 7% 18%, #b8b8b8 99%, transparent),
        radial-gradient(1px 1px at 19% 72%, #858585 99%, transparent),
        radial-gradient(1px 1px at 32% 33%, #d4d4d4 99%, transparent),
        radial-gradient(1px 1px at 45% 81%, #777 99%, transparent),
        radial-gradient(1px 1px at 61% 21%, #aaa 99%, transparent),
        radial-gradient(1px 1px at 73% 61%, #d0d0d0 99%, transparent),
        radial-gradient(1px 1px at 86% 29%, #8c8c8c 99%, transparent),
        radial-gradient(1px 1px at 94% 78%, #b8b8b8 99%, transparent);
    background-size: 310px 270px, 380px 330px, 430px 390px, 350px 310px, 390px 360px, 420px 400px, 360px 330px, 450px 410px;
}
.primary-action {
    color: #e9e9e9;
    background: linear-gradient(120deg, rgba(64,64,64,.42), rgba(12,12,12,.84));
    border-color: #454545;
}
.secondary-action { color: #b6b6b6; }
.primary-action:hover, .secondary-action:hover { border-color: #858585; }
.music-player:hover, .music-player:focus-within { border-color: #575757; }
.music-play-button { border-color: #414141; }
.music-eyebrow, .music-title span, .music-status, .music-time, .volume-symbol,
.status-item > span, .status-label, .info-card p, .project-card p,
.project-tags span, .page-hero p, .gallery-art {
    color: #929292;
}
.project-open, .project-glyph span { color: #b8b8b8; }
.project-card h3, .info-card h2, .info-card h3, .page-hero h1,
.update-item h2, .status-item strong { color: #e0e0e0; }
.project-tags span { border-color: #303030; background: rgba(12,12,12,.75); }
.about-panel, .project-card, .info-card {
    background: linear-gradient(145deg, rgba(15,15,15,.91), rgba(5,5,5,.9));
    border-color: #282828;
}
.project-card:hover, a.info-card:hover { border-color: #626262; }
body::before { filter: grayscale(1) contrast(1.05); }
@media (prefers-reduced-motion: reduce) {
    .site-shell::after { animation: none; }
}


/* extra details: dark, flat, and intentionally restrained */
.site-header { position: relative; }
.site-preferences { display:flex; align-items:center; gap:6px; margin-left:auto; }
.quiet-toggle, .project-filter {
    appearance:none; border:1px solid #292929; background:#080808; color:#a5a5a5;
    padding:8px 10px; font:inherit; font-size:.68rem; cursor:pointer; letter-spacing:.02em;
    transition:border-color .18s ease, color .18s ease, background .18s ease;
}
.quiet-toggle:hover, .quiet-toggle[aria-pressed="true"], .project-filter:hover, .project-filter.is-active {
    color:#f1f1f1; border-color:#777; background:#141414;
}
.brand-mark[role="button"] { cursor:pointer; }
.brand-mark.copied { color:#fff; }
.quick-directory { border-top:1px solid #222; }
.quick-directory a { display:grid; grid-template-columns:46px 1fr 24px; align-items:center; gap:16px; padding:20px 4px; border-bottom:1px solid #222; text-decoration:none; transition:padding .2s ease, background .2s ease; }
.quick-directory a:hover { padding-left:12px; background:linear-gradient(90deg,rgba(255,255,255,.035),transparent); }
.directory-number { color:#656565; font-size:.72rem; }
.quick-directory strong, .quick-directory small { display:block; }
.quick-directory strong { color:#e6e6e6; font-size:.9rem; font-weight:500; }
.quick-directory small { color:#888; margin-top:6px; font-size:.73rem; }
.directory-arrow { color:#aaa; text-align:right; }
.project-tools { margin-bottom:24px; padding:18px; border:1px solid #222; background:#070707; }
.project-tools label { display:block; color:#999; font-size:.7rem; margin-bottom:10px; }
.project-tools input { width:100%; min-height:42px; border:1px solid #333; background:#030303; color:#eee; padding:11px 12px; font:inherit; font-size:.78rem; outline:none; }
.project-tools input:focus { border-color:#888; }
.project-filter-row { display:flex; gap:7px; flex-wrap:wrap; margin-top:12px; }
.filter-result { color:#777; font-size:.68rem; margin:12px 0 0; }
.project-filter-card[hidden] { display:none !important; }
.empty-filter-message { color:#888; font-size:.8rem; padding:30px 0; }
.gallery-project { text-decoration:none; min-height:240px; }
.gallery-project small { color:#777; font-size:.67rem; padding:0 18px 18px; }
.gallery-art { display:flex; min-height:150px; align-items:center; justify-content:center; font-size:3.6rem; letter-spacing:-.12em; color:#ddd; background:linear-gradient(145deg,#111,#050505); border-bottom:1px solid #222; }
.gallery-art span { color:#999 !important; }
.gallery-securetext { background:radial-gradient(ellipse at 50% 100%,#202020,#070707 72%); }
.gallery-neurux { background:linear-gradient(135deg,#151515,#060606 68%); }
.gallery-ckrp { background:repeating-linear-gradient(135deg,#090909,#090909 12px,#0d0d0d 12px,#0d0d0d 13px); }
.gallery-site { background:radial-gradient(ellipse at center,#191919,#050505 70%); }
.info-card, .link-card, .project-card, .gallery-tile { position:relative; overflow:hidden; }
.info-card::after, .link-card::after, .project-card::after, .gallery-tile::after {
    content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
    background:radial-gradient(240px circle at var(--pointer-x,50%) var(--pointer-y,50%),rgba(255,255,255,.045),transparent 65%);
    transition:opacity .2s ease;
}
.info-card:hover::after, .link-card:hover::after, .project-card:hover::after, .gallery-tile:hover::after { opacity:1; }
.reading-progress { position:fixed; z-index:1000; top:0; left:0; height:2px; width:0; background:#d7d7d7; pointer-events:none; }
.back-to-top { position:fixed; z-index:90; right:22px; bottom:24px; width:40px; height:40px; opacity:0; visibility:hidden; transform:translateY(8px); border:1px solid #333; background:#080808; color:#ddd; font:inherit; cursor:pointer; transition:opacity .2s,transform .2s,visibility .2s,border-color .2s; }
.back-to-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover { border-color:#888; }
.copy-page-link { display:block; margin:16px auto 0; border:1px solid #292929; background:transparent; color:#777; padding:7px 10px; font:inherit; font-size:.65rem; cursor:pointer; }
.copy-page-link:hover { color:#ddd; border-color:#777; }
.image-lightbox { width:min(92vw,900px); max-width:none; max-height:90vh; padding:18px; border:1px solid #333; background:#050505; color:#ddd; }
.image-lightbox::backdrop { background:rgba(0,0,0,.88); }
.image-lightbox img { display:block; max-width:100%; max-height:72vh; margin:auto; object-fit:contain; }
.image-lightbox p { color:#888; font-size:.7rem; margin:12px 0 0; }
.lightbox-close { display:block; margin-left:auto; border:0; background:transparent; color:#ddd; font-size:1.5rem; cursor:pointer; }
html.high-contrast { --text:#fff; --muted:#c5c5c5; }
html.high-contrast body, html.high-contrast .site-shell::before { background-color:#000; }
html.high-contrast .about-panel, html.high-contrast .project-card, html.high-contrast .info-card { border-color:#555; }
html.user-reduced-motion *, html.user-reduced-motion *::before, html.user-reduced-motion *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
@media (max-width: 760px) {
    .site-preferences { margin-left:0; }
    .site-header { flex-wrap:wrap; }
    .quick-directory a { grid-template-columns:32px 1fr 20px; gap:10px; }
    .back-to-top { right:12px; bottom:14px; }
}
@media (max-width: 440px) {
    .quiet-toggle { padding:7px 8px; font-size:.62rem; }
}
@media (prefers-reduced-motion: reduce) {
    .quick-directory a, .quiet-toggle, .project-filter, .back-to-top { transition:none; }
}

/* Profile picture: the original pencil-rifle artwork, background removed, shown as-is (no filters).
   assets/profile-rifle-original.jpg is the untouched source file. */
.avatar { width:120px; height:120px; background:#050505; }
.avatar-image { filter:none; width:86%; height:86%; object-fit:contain; border-radius:0; image-rendering:auto; }
@media (max-width: 640px) { .avatar { width:104px; height:104px; } }
