:root {
    --ink: #f1e9d8;
    --paper: #000000;
    --paper-2: #050505;
    --ivory: #000000;
    --char: #d6cebe;
    --rust: #e07a4f;
    --rust-deep: #ff9069;
    --sage: #8aa074;
    --gold: #e2bd6a;
    --pencil: #9b9082;
    --rule: rgba(241, 233, 216, 0.12);

    --grain-opacity: 0.08;
    --grain-blend: screen;

    --display: "Fraunces", "Instrument Serif", Georgia, serif;
    --serif: "Instrument Serif", "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Share Tech Mono", "JetBrains Mono", "Menlo", monospace;

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    transition:
        background 0.5s ease,
        color 0.5s ease;
    font-feature-settings: "ss01", "ss02";
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::selection {
    background: var(--ink);
    color: var(--ivory);
}

a {
    color: var(--rust-deep);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:hover {
    color: var(--rust);
}

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    background: transparent;
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    mix-blend-mode: var(--grain-blend);
    transition: opacity 0.5s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cursor-ink {
    display: none;
}

main,
.masthead,
footer {
    position: relative;
    z-index: 1;
}

.masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 6vw 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pencil);
}
.masthead-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
}
.folio {
    white-space: nowrap;
}
.folio.right {
    margin-left: auto;
}
.rule {
    flex: 1;
    height: 1px;
    background: var(--rule);
}
.dateline {
    white-space: nowrap;
    color: var(--ink);
}

.hero {
    min-height: 100vh;
    position: relative;
}
.hero-stack {
    position: absolute;
    z-index: 1;
    left: clamp(23px, calc(4vw - 5px), 59px);
    bottom: 42px;
    width: clamp(260px, 28vw, 340px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.name-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    transform: translate3d(
        calc(var(--mx, 0) * -28px),
        calc(var(--my, 0) * -14px),
        0
    );
    will-change: transform;
}

.display {
    font-family: var(--display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(34px, 4.8vw, 64px);
    line-height: 1;
    letter-spacing: -0.012em;
    font-variation-settings:
        "opsz" 144,
        "SOFT" 100,
        "WONK" 1;
    color: var(--ink);
    user-select: none;
}
.display .ch {
    display: inline-block;
    transform: translateY(110%) rotate(4deg);
    opacity: 0;
    animation: chDrop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.display .ch.space {
    width: 0.32em;
}
@keyframes chDrop {
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

.hero-tagline {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    line-height: 1.8;
    color: rgba(241, 233, 216, 0.7);
    opacity: 0;
    animation: fadeUp 1s 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-tagline a {
    color: var(--rust);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 122, 79, 0.4);
    transition: color 0.25s, border-color 0.25s;
}
.hero-tagline a:hover {
    color: var(--rust-deep);
    border-color: var(--rust-deep);
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 0;
    animation: heroFade 1s 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    transform: translate3d(
        calc(var(--mx, 0) * -18px),
        calc(var(--my, 0) * -9px),
        0
    );
    will-change: transform;
}
.menu-rule {
    height: 1px;
    width: 100%;
    margin: 2px 0;
    background: var(--rule);
    transform-origin: left center;
}
.menu-btn {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.menu-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 12px 8px 20px;
    color: rgba(241, 233, 216, 0.55);
    border-radius: 2px;
    transition:
        padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-item::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 2px;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-btn:hover .menu-item,
.menu-btn:focus-visible .menu-item {
    color: var(--ink);
    padding-left: 26px;
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px) saturate(1.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.menu-btn:hover .menu-item::before,
.menu-btn:focus-visible .menu-item::before {
    transform: scaleY(1);
}
.menu-num {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(241, 233, 216, 0.45);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-btn:hover .menu-num,
.menu-btn:focus-visible .menu-num {
    color: var(--ink);
}
.menu-label {
    font-family: "Rajdhani", var(--sans);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.menu-arrow {
    font-size: 8px;
    color: rgba(241, 233, 216, 0.85);
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-btn:hover .menu-arrow,
.menu-btn:focus-visible .menu-arrow {
    opacity: 1;
    transform: translateX(0);
}
.menu-btn-reboot .menu-label {
    color: rgba(255, 120, 120, 0.65);
}
.menu-btn-reboot:hover .menu-label,
.menu-btn-reboot:focus-visible .menu-label {
    color: rgba(255, 140, 140, 1);
}

.hero-cta {
    margin-top: 14px;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    align-self: flex-start;
    color: rgba(241, 233, 216, 0.55);
    opacity: 0;
    animation: heroFade 1s 1.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate3d(
        calc(var(--mx, 0) * -10px),
        calc(var(--my, 0) * -5px),
        0
    );
    will-change: transform;
}
.hero-cta:hover {
    color: var(--ink);
}
.hero-cta-text {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.hero-corner {
    position: absolute;
    z-index: 1;
    bottom: 32px;
    right: clamp(20px, 3vw, 48px);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pencil);
    opacity: 0;
    animation: heroFade 1s 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    transform: translate3d(
        calc(var(--mx, 0) * -8px),
        calc(var(--my, 0) * -4px),
        0
    );
    will-change: transform;
}
.hero-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(0.15) brightness(1.05) contrast(1.05);
    border: 1px solid var(--rule);
}
.corner-name {
    color: var(--char);
}
.mark {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pencil);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1s,
        transform 1s;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.bio {
    padding: 12vh 6vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.margin-note {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--pencil);
    line-height: 1.6;
    border-left: 2px solid var(--rust);
    padding: 4px 0 4px 16px;
    position: sticky;
    top: 40px;
    height: fit-content;
    transform: rotate(-1deg);
}
.margin-note.right {
    border-left: none;
    border-right: 2px solid var(--rust);
    padding: 4px 16px 4px 0;
    text-align: right;
    transform: rotate(1deg);
}
.note-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--rust);
    display: block;
    margin-bottom: 6px;
}

.section-h {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    font-variation-settings:
        "opsz" 96,
        "SOFT" 80,
        "WONK" 0;
}
.section-h em {
    font-style: italic;
    color: var(--rust);
    position: relative;
}
.section-h em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 6px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6'><path d='M2 4 Q 50 1 100 3 T 198 2' stroke='%23b94a26' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>")
        no-repeat;
    background-size: 100% 100%;
    opacity: 0.6;
}

.lede {
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 48px;
    color: var(--char);
    max-width: 56ch;
}

.chapters {
    list-style: none;
    counter-reset: ch;
}
.chapters li {
    counter-increment: ch;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
    position: relative;
    transition:
        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        padding-left 0.4s;
}
.chapters li:hover {
    transform: translateX(8px);
    padding-left: 8px;
}
.chapters li::before {
    content: "→";
    position: absolute;
    left: -28px;
    top: 32px;
    color: var(--rust);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition:
        opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}
.chapters li:hover::before {
    opacity: 1;
    transform: translateX(0);
}
.chapter-year {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--rust);
    letter-spacing: 0.05em;
    padding-top: 4px;
}
.chapter-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 400;
}
.chapter-body {
    font-size: 16px;
    color: var(--char);
    line-height: 1.6;
    max-width: 60ch;
}

.live-row {
    padding: 8vh 6vw;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 6vw;
    row-gap: 32px;
    align-items: stretch;
}
.live-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}
.live-shell .discord-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.live-shell .spotify-box {
    flex: 0 0 auto;
}
.discord-card .dc-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.discord-card .dc-button {
    margin-top: auto;
}
.live-credit {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pencil);
    text-align: center;
}
.live-credit a {
    color: var(--pencil);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}
.live-credit a:hover {
    color: var(--rust);
    border-color: var(--rust);
}

.cyberpunk-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.25s;
}
.cyberpunk-logo:hover {
    opacity: 1;
}

.live-credit a:has(.cyberpunk-logo) {
    text-decoration: none;
    border-bottom: none;
}

.discord {
    padding: 8vh 6vw;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.discord-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card-tag {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--pencil);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse 2s infinite;
}

.discord-card {
    --dc-accent: #5865f2;
    --dc-bg: #232428;
    --dc-bg-2: #2b2d31;
    --dc-bg-3: #1e1f22;
    --dc-text: #f2f3f5;
    --dc-muted: #b5bac1;
    --dc-dim: #949ba4;
    --dc-divider: rgba(255, 255, 255, 0.06);
    --dc-online: #23a55a;
    --dc-idle: #f0b232;
    --dc-dnd: #f23f43;
    --dc-offline: #80848e;

    width: 100%;
    max-width: 100%;
    background: var(--dc-bg);
    color: var(--dc-text);
    border-radius: 8px;
    overflow: hidden;
    font-family: "gg sans", "Helvetica Neue", "Inter", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.24),
        0 30px 60px -20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.discord-card:hover {
    transform: translateY(-4px) rotate(-0.4deg);
}
.discord-card.loading {
    padding: 60px;
    text-align: center;
    font-family: var(--mono);
    color: var(--pencil);
    font-size: 13px;
    background: var(--ivory);
    color: var(--pencil);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 20px 40px -20px rgba(0, 0, 0, 0.18);
}

.dc-banner {
    height: 90px;
    background: var(--dc-accent);
    background-size: cover;
    background-position: center;
    position: relative;
}

.dc-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: -52px 0 0 16px;
}
.dc-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--dc-bg);
    padding: 6px;
}
.dc-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.dc-status-pip {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 6px solid var(--dc-bg);
    background: var(--dc-offline);
    z-index: 2;
    overflow: visible;
}
.pip-online {
    background: var(--dc-online);
}
.pip-idle {
    background: var(--dc-idle);
}
.pip-idle::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dc-bg);
}
.pip-dnd {
    background: var(--dc-dnd);
}
.pip-dnd::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: var(--dc-bg);
    border-radius: 1px;
}
.pip-offline {
    background: transparent;
    box-shadow: inset 0 0 0 3px var(--dc-offline);
}

.dc-body {
    padding: 14px 16px 16px;
}

.dc-name-block {
    margin-top: 4px;
    margin-bottom: 12px;
}
.dc-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--dc-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.dc-handle {
    font-size: 14px;
    color: var(--dc-text);
    margin-top: 2px;
    font-weight: 500;
}

.dc-badges {
    position: absolute;
    top: 98px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dc-bg-3);
    border-radius: 8px;
    padding: 4px 6px;
    z-index: 2;
    max-width: calc(100% - 120px);
    flex-wrap: wrap;
}
.dc-badge {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: default;
}
.dc-badge svg,
.dc-badge img {
    width: 18px;
    height: 18px;
    display: block;
}

.dc-panel {
    background: var(--dc-bg-3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.dc-panel:last-child {
    margin-bottom: 0;
}

.dc-panel-h {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dc-text);
    margin-bottom: 8px;
}

.dc-custom-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--dc-text);
}
.dc-custom-emoji {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.dc-activity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.dc-act-art-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.dc-act-art {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    background: #111;
}
.dc-act-art.round {
    border-radius: 50%;
}
.dc-act-art-small {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--dc-bg-3);
    background: #111;
    object-fit: cover;
}
.dc-act-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
}
.dc-act-name {
    font-weight: 700;
    color: var(--dc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-act-detail,
.dc-act-state,
.dc-act-time {
    color: var(--dc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-act-time {
    color: var(--dc-dim);
    font-size: 12px;
}

.dc-panel.spotify {
    background: var(--dc-bg-3);
}
.dc-panel.spotify .dc-panel-h {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dc-text);
}
.dc-panel.spotify .dc-panel-h svg {
    color: #1db954;
}
.dc-panel.spotify .dc-act-art-wrap {
    width: 56px;
    height: 56px;
}
.dc-panel.spotify .dc-act-name {
    color: var(--dc-text);
}
.dc-panel.spotify .dc-act-detail,
.dc-panel.spotify .dc-act-state {
    color: var(--dc-muted);
}

.dc-sp-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--dc-muted);
    font-variant-numeric: tabular-nums;
}
.dc-sp-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.dc-sp-bar-fill {
    height: 100%;
    background: var(--dc-text);
    border-radius: 99px;
    transition: width 1s linear;
    position: relative;
}
.dc-sp-bar-fill::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dc-text);
    transform: translateY(-50%);
}

.dc-button {
    display: block;
    width: 100%;
    background: var(--dc-accent);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition:
        filter 0.2s,
        transform 0.2s;
    text-align: center;
    text-decoration: none !important;
}
.dc-button:hover {
    filter: brightness(1.08);
    color: #fff !important;
}
.dc-button:active {
    transform: scale(0.98);
}

.dc-empty {
    font-size: 13px;
    color: var(--dc-dim);
    text-align: center;
    padding: 4px 0;
    margin-bottom: 12px;
}

.dc-avatar-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 124%;
    height: 124%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dc-name-inner {
    margin-bottom: 12px;
}

.dc-display.gradient {
    background: linear-gradient(
        90deg,
        var(--dc-name-1, #fff),
        var(--dc-name-2, #fff)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.dc-handle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.dc-clan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px 2px 4px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--dc-text);
    letter-spacing: 0.02em;
}
.dc-clan img {
    width: 14px;
    height: 14px;
    display: block;
}

.dc-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--dc-muted);
    padding: 8px 0;
    border-top: 1px solid var(--dc-divider);
    border-bottom: 1px solid var(--dc-divider);
    margin-bottom: 12px;
}
.dc-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--dc-muted);
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
}

.dc-about {
    font-size: 13px;
    line-height: 1.45;
    color: var(--dc-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.dc-platforms {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.dc-platform {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: var(--dc-text);
    font-size: 10px;
}

.dc-banner-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    z-index: 4;
}
.dc-banner-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--dc-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dc-avatar-wrap.has-deco {
    margin: -56px 0 0 14px;
    width: 92px;
    height: 92px;
}

.spotify-box {
    width: 100%;
}

.rp-root {
    --rp-cyan: #0df;
    --rp-red: #f33;
    --rp-bg: #0b0b0b;

    container-type: inline-size;
    container-name: rp;
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    font-family: "Rajdhani", ui-sans-serif, system-ui, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    padding: 3cqw;
    border-radius: 1.5cqw;
}

.rp-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #3a0a0a 0%, #0b0b0b 55%, #000 100%);
    opacity: 0.6;
    filter: blur(60px);
    transform: scale(1.5);
    border-radius: 9999px;
    z-index: 0;
    pointer-events: none;
}

.rp-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5cqw;
}

.rp-head {
    display: flex;
    flex-direction: column;
}
.rp-head-code {
    color: var(--rp-red);
    font-size: 1.25cqw;
    letter-spacing: 0.3em;
    font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, monospace;
    margin-bottom: 0.3cqw;
    margin-left: 0.3cqw;
    font-weight: 700;
}
.rp-head-bar {
    position: relative;
    height: 6.4cqw;
    display: flex;
    align-items: center;
    background: rgba(255, 51, 51, 0.02);
}
.rp-head-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.rp-head-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1.95cqw;
    background: var(--rp-red);
}
.rp-head-bar-stripe {
    position: absolute;
    left: 0.4cqw;
    top: 0.55cqw;
    bottom: 0.55cqw;
    width: 0.28cqw;
    background: #000;
}
.rp-head-title {
    margin-left: 4.5cqw;
    color: var(--rp-cyan);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 3.4cqw;
    line-height: 1;
    padding-top: 0.4cqw;
    text-shadow: 0 0 3px rgba(0, 221, 255, 0.5);
}

.rp-main {
    display: flex;
    width: 100%;
    margin-top: 2cqw;
}

.rp-main-left {
    position: relative;
    width: 29cqw;
    height: 26.5cqw;
    flex-shrink: 0;
}
.rp-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rp-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}
.rp-cover-empty {
    width: calc(26.5cqw - 8px);
    height: calc(26.5cqw - 8px);
    border: 1.5px dashed var(--rp-red);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 29, 29, 0.1);
    color: var(--rp-red);
    opacity: 0.6;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 2cqw;
}

.rp-main-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 26.5cqw;
    margin-left: 0.3cqw;
}
.rp-main-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--rp-red);
}
.rp-main-line-top { top: 0; }
.rp-main-line-bottom { bottom: 0; }
.rp-now-label {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 0.55cqw;
    color: var(--rp-red);
    font-size: 1.4cqw;
    letter-spacing: 0.2em;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1;
}
.rp-now-title {
    padding: 1.6cqw 0 0.8cqw 0.8cqw;
    color: var(--rp-red);
    font-size: 4.5cqw;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.05em;
    max-width: 47cqw;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(255, 51, 51, 0.2);
}
.rp-vol-row {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.2cqw;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 0 0.8cqw;
}
.rp-vol-label {
    color: var(--rp-red);
    font-size: 3cqw;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.3cqw;
}
.rp-vol-controls {
    display: flex;
    align-items: center;
    gap: 2.5cqw;
}
.rp-key-box.rp-vol-up {
    margin-left: auto;
}
.rp-key-box {
    border: 1.5px solid var(--rp-cyan);
    border-radius: 2px;
    width: 4.4cqw;
    height: 4.4cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rp-cyan);
    font-weight: 700;
    font-size: 2.8cqw;
    line-height: 1;
    padding-top: 0.19cqw;
    background: rgba(0, 221, 255, 0.1);
    cursor: pointer;
    transition: background 0.1s linear;
}
.rp-key-box:hover {
    background: rgba(0, 221, 255, 0.2);
}
.rp-vol-percent {
    color: var(--rp-cyan);
    font-size: 3.6cqw;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 8.4cqw;
    text-align: center;
    line-height: 1;
    margin-top: 0.3cqw;
}

.rp-list-wrap {
    position: relative;
    margin-top: 1.5cqw;
    padding-left: 0.8cqw;
}
.rp-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0.55cqw;
    background: rgba(255, 51, 51, 0.2);
}
.rp-scrollbar-thumb {
    position: absolute;
    bottom: 6cqw;
    width: 100%;
    height: 17cqw;
    background: var(--rp-red);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--rp-red);
}
.rp-list {
    list-style: none;
    margin: 0;
    padding: 0 6cqw 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85cqw;
}
.rp-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.1cqw 2.2cqw;
    cursor: pointer;
    color: var(--rp-cyan);
    transition: background 0.08s linear;
}
.rp-row:hover {
    background: rgba(0, 221, 255, 0.05);
}
.rp-row-active {
    background: rgba(0, 221, 255, 0.15);
    color: var(--rp-cyan);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.4cqw), calc(100% - 1.4cqw) 100%, 0 100%);
}
.rp-row-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.55cqw;
    height: 100%;
    background: var(--rp-cyan);
}
.rp-row-iconwrap {
    width: 4.4cqw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.rp-icon {
    width: 1.95cqw;
    height: 1.95cqw;
    margin-right: 0.55cqw;
}
.rp-icon-inactive {
    opacity: 0.8;
    color: var(--rp-cyan);
}
.rp-icon-active {
    color: var(--rp-cyan);
}
.rp-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.rp-row-label {
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-top: 0.3cqw;
    margin-left: 0.55cqw;
    font-size: 3.1cqw;
}
.rp-row-label-active {
    font-size: 3.6cqw;
}

.rp-separator {
    width: 100%;
    height: 1.5px;
    background: var(--rp-red);
    opacity: 0.7;
    margin-top: 1.5cqw;
}

.rp-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5cqw;
    position: relative;
}
.rp-foot-warn {
    color: var(--rp-red);
    font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, monospace;
    font-size: 0.95cqw;
    line-height: 1.2;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-transform: uppercase;
    width: 35cqw;
    text-align: justify;
}
.rp-foot-keys {
    display: flex;
    gap: 2.2cqw;
    margin-bottom: 0.8cqw;
}
.rp-foot-key {
    display: flex;
    align-items: center;
    gap: 1.1cqw;
}
.rp-foot-key:nth-child(2) {
    margin-left: 2.2cqw;
}
.rp-key-box-sm {
    width: 3.9cqw;
    height: 3.9cqw;
    font-size: 2.5cqw;
    padding-top: 0.11cqw;
    box-shadow: inset 0 0 5px rgba(0, 221, 255, 0.3);
    cursor: default;
}
.rp-key-box-sm:hover {
    background: rgba(0, 221, 255, 0.1);
}
.rp-foot-key-label {
    font-size: 2.5cqw;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding-top: 0.55cqw;
}
.rp-foot-key-label-red {
    color: var(--rp-red);
    text-shadow: 0 0 3px rgba(255, 51, 51, 0.5);
}
.rp-foot-key-label-cyan {
    color: var(--rp-cyan);
    text-shadow: 0 0 3px rgba(0, 221, 255, 0.5);
}

.stack {
    padding: 12vh 6vw;
    max-width: 1200px;
    margin: 0 auto;
}
.stack-head {
    margin-bottom: 48px;
}
.sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    color: var(--pencil);
    max-width: 50ch;
}
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.tech {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 14px;
    background: var(--ivory);
    border: 1px solid var(--rule);
    border-radius: 4px;
    cursor: default;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.35s,
        border-color 0.35s;
    overflow: hidden;
}
.tech::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        var(--accent, var(--rust)) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.tech:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25);
    border-color: var(--accent, var(--rust));
}
.tech:hover::before {
    opacity: 0.12;
}
.tech img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition:
        transform 0.35s,
        filter 0.35s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.tech:hover img {
    transform: scale(1.15) rotate(-6deg);
}

.tech.dark-icon img {
    filter: invert(1) brightness(1.15) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.tech-name {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--char);
}
.tech.appear {
    animation: techIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes techIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.repos {
    padding: 10vh 6vw;
    max-width: 1200px;
    margin: 0 auto;
}
.repos-head {
    margin-bottom: 40px;
}
.shelf {
    position: relative;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 8px 12px;
    border: none;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--rust) transparent;
}
.shelf::-webkit-scrollbar {
    width: 4px;
}
.shelf::-webkit-scrollbar-track {
    background: transparent;
}
.shelf::-webkit-scrollbar-thumb {
    background: var(--rust);
    border-radius: 2px;
}
.shelf-loading {
    padding: 40px;
    text-align: center;
    font-family: var(--mono);
    color: var(--pencil);
    font-size: 12px;
}
.shelf-error {
    padding: 30px;
    font-family: var(--mono);
    color: var(--rust-deep);
    font-size: 12px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 4px;
}
.repo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--ivory);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 18px 20px;
    position: relative;
    transition:
        transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.3s,
        border-color 0.3s;
    cursor: pointer;
    min-height: 120px;
}
.repo {
    background: var(--paper-2);
    border-color: var(--rule);
}
.repo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
    border-color: var(--rust);
}
.repo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--gold));
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.repo:hover::before {
    opacity: 1;
}
.repo-main {
    flex: 1;
    min-width: 0;
}
.repo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.repo-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}
.repo-stars {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(200, 154, 58, 0.2);
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.02em;
}
.repo-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--pencil);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.repo-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pencil);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
}
.lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: -1px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.repo-updated {
    margin-left: auto;
}

.colophon {
    padding: 12vh 6vw;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--rule);
}
.colophon-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.colophon h3 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 14px;
}
.colophon p {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.6;
    color: var(--char);
    max-width: 50ch;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.links a {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    color: var(--char);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition:
        color 0.25s,
        border-color 0.25s,
        transform 0.25s;
}
.links a:hover {
    color: var(--rust);
    border-bottom-color: var(--rust);
    transform: translateX(-4px);
}

.endmark {
    text-align: center;
    padding: 40px 6vw 60px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pencil);
}

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }
    .bio,
    .discord,
    .colophon-grid,
    .live-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .margin-note,
    .margin-note.right {
        transform: none;
        text-align: left;
        border-right: none;
        border-left: 2px solid var(--rust);
        padding: 4px 0 4px 16px;
        position: static;
    }
    .links {
        align-items: flex-start;
    }
    .chapters li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .chapters li::before {
        display: none;
    }
    .chapters li:hover {
        transform: none;
        padding-left: 0;
    }
    .hero-corner {
        gap: 18px;
    }
    .shelf {
        max-height: 480px;
    }
    .repo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }
    .spotify-box {
        width: 100%;
    }
    .discord-card {
        width: 100%;
    }
    .repos {
        padding: 8vh 5vw;
    }
    .stack-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .masthead {
        padding: 16px 5vw 0;
    }
    .masthead-row {
        gap: 8px;
        padding-bottom: 10px;
        font-size: 10px;
    }
    .dateline {
        font-size: 10px;
    }

    .hero-stack {
        left: clamp(15px, calc(5vw - 5px), 35px);
        bottom: 42px;
        width: min(300px, 86vw);
    }
    .display {
        font-size: clamp(32px, 11vw, 52px);
    }
    .hero-tagline {
        font-size: 9px;
        letter-spacing: 0.2em;
    }
    .menu-label {
        font-size: 15px;
    }
    .hero-corner {
        right: clamp(14px, 3vw, 24px);
        bottom: 32px;
        gap: 10px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }
    .hero-avatar {
        display: none;
    }

    .bio,
    .discord,
    .stack,
    .repos,
    .colophon,
    .live-row {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .bio {
        padding-top: 8vh;
        padding-bottom: 8vh;
    }
    .stack {
        padding-top: 8vh;
        padding-bottom: 8vh;
    }

    .section-h {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 20px;
    }
    .lede {
        font-size: 17px;
        margin-bottom: 28px;
    }
    .chapters li {
        padding: 22px 0;
    }
    .chapter-title {
        font-size: 19px;
    }
    .chapter-body {
        font-size: 15px;
    }

    .dc-banner {
        height: 70px;
    }
    .dc-badges {
        top: 78px;
        right: 10px;
        max-width: calc(100% - 100px);
    }
    .dc-avatar-wrap {
        width: 76px;
        height: 76px;
        margin-top: -42px;
    }
    .dc-avatar-wrap.has-deco {
        width: 80px;
        height: 80px;
        margin-top: -46px;
    }
    .dc-status-pip {
        width: 20px;
        height: 20px;
        border-width: 5px;
    }
    .pip-idle::after {
        top: -2px;
        left: -2px;
        width: 8px;
        height: 8px;
    }
    .pip-dnd::after {
        height: 2px;
    }
    .dc-display {
        font-size: 18px;
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .tech {
        padding: 16px 8px;
        gap: 8px;
    }
    .tech img {
        width: 30px;
        height: 30px;
    }
    .tech-name {
        font-size: 10px;
    }

    .shelf {
        max-height: 420px;
        padding: 6px 8px;
    }
    .repo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .repo {
        padding: 14px 16px;
        min-height: auto;
    }
    .repo-name {
        font-size: 16px;
    }
    .repo-head {
        gap: 8px;
        margin-bottom: 8px;
    }
    .repo-desc {
        font-size: 13px;
        min-height: 0;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
    }
    .repo-meta {
        gap: 12px;
        font-size: 10px;
        padding-top: 10px;
    }
    .lang-dot {
        width: 8px;
        height: 8px;
        margin-right: 5px;
    }

    .colophon {
        padding-top: 8vh;
        padding-bottom: 8vh;
    }
    .colophon h3 {
        font-size: 22px;
    }
    .colophon-grid {
        gap: 28px;
    }

    .endmark {
        padding: 30px 5vw 40px;
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .cursor-ink {
        display: none;
    }
}

@media (max-width: 380px) {
    .display {
        font-size: clamp(28px, 10vw, 40px);
    }
    .hero-tagline {
        font-size: 8.5px;
    }
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (hover: none) {
    .repo:hover,
    .tech:hover,
    .discord-card:hover {
        transform: none;
    }
    .repo:hover {
        transform: none;
        box-shadow: none;
    }
    .repo::before {
        display: none;
    }
    .chapters li:hover {
        transform: none;
        padding-left: 0;
    }
    .chapters li::before {
        display: none;
    }
}

.fa-heart {
    color: #e05c5c;
}

#blackhole {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    display: block;
    pointer-events: none;
    background: transparent;
}

#moonlayer {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
    background: transparent;
}

.bh-scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 0, 0, 0.28) 52%,
            rgba(0, 0, 0, 0.62) 82%,
            rgba(0, 0, 0, 0.82) 100%
        ),
        rgba(0, 0, 0, var(--bh-flat, 0));
}

.bh-fb {
    position: fixed;
    z-index: 0;
    display: none;
    pointer-events: none;
}
.bh-fb.on {
    display: block;
}
.bh-fb-disk {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scaleY(var(--fb-tilt, 0.3)) rotate(0deg);
    filter: blur(12px);
    animation: fbSpin 30s linear infinite;
    background: conic-gradient(
        from 0deg,
        rgba(255, 80, 40, 0) 0deg,
        rgba(255, 150, 70, 0.5) 60deg,
        rgba(255, 244, 224, 0.82) 112deg,
        rgba(255, 120, 50, 0.46) 190deg,
        rgba(150, 24, 12, 0.32) 280deg,
        rgba(255, 80, 40, 0) 360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 24%, #000 33%, #000 90%, transparent 100%);
    mask: radial-gradient(circle, transparent 24%, #000 33%, #000 90%, transparent 100%);
}
.bh-fb-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--fb-core, 60px);
    height: var(--fb-core, 60px);
    margin-left: calc(var(--fb-core, 60px) / -2);
    margin-top: calc(var(--fb-core, 60px) / -2);
    border-radius: 50%;
    background: #000;
    box-shadow:
        0 0 0 1px rgba(255, 96, 62, 0.5),
        0 0 34px 8px rgba(255, 82, 44, 0.26);
}
@keyframes fbSpin {
    to {
        transform: scaleY(var(--fb-tilt, 0.3)) rotate(360deg);
    }
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.display {
    text-shadow:
        0 0 38px rgba(0, 0, 0, 0.92),
        0 2px 6px rgba(0, 0, 0, 0.7);
}
.hero-tagline,
.hero-corner,
.menu-item,
.hero-cta-text {
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
    .hero-veil {
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bh-fb-disk {
        animation: none;
    }
}

.display .ch.space {
    width: 0.3em;
}

@media (max-width: 640px) {
    .section-h {
        font-size: clamp(27px, 7.6vw, 38px);
    }
}
