: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);

    --card-bg: #111114;
    --card-hover: #16161a;
    --border: #222227;
    --border-subtle: #18181c;
    --border-hover: #35353c;
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --accent-red: #ef4444;
    --radius: 4px;

    --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 { display: none; }

.hero {
    min-height: 100vh;
    position: relative;
}

.hero-viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 3rem;
    pointer-events: none;
}
.hero-viewport > * {
    pointer-events: auto;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0;
    animation: heroFade 1s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-top .meta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-top .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    display: inline-block;
    flex-shrink: 0;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    transform: translate3d(
        calc(var(--mx, 0) * -18px),
        calc(var(--my, 0) * -9px),
        0
    );
    will-change: transform;
}

.hero-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display {
    font-family: var(--sans);
    font-style: normal;
    line-height: 1.1;
    color: var(--text-primary);
    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-sub {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 1s 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-sub a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition:
        color 120ms ease,
        border-color 120ms ease;
}
.hero-sub a:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--card-bg);
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-shrink: 0;
    opacity: 0;
    animation: heroFade 1s 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    transform: translate3d(
        calc(var(--mx, 0) * -10px),
        calc(var(--my, 0) * -5px),
        0
    );
    will-change: transform;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-family: var(--sans);
    font-size: 0.825rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 120ms ease;
}

.nav-btn .nav-idx {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 120ms ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    background: var(--card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
    outline: none;
}

.nav-btn:hover .nav-idx,
.nav-btn:focus-visible .nav-idx {
    color: var(--text-secondary);
}

.nav-btn.reboot:hover,
.nav-btn.reboot:focus-visible {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--accent-red);
}

.nav-btn.reboot:hover .nav-idx,
.nav-btn.reboot:focus-visible .nav-idx {
    color: var(--accent-red);
}

.hero-corner {
    display: none;
}

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

.bio {
    padding: 5rem 1.5rem 3rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.bio-body {
    width: 100%;
    min-width: 0;
}

.section-h,
.section-title {
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    font-variation-settings: normal;
}

.lede {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 62ch;
}

.chapters {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.chapters::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 17px;
    width: 1px;
    background-color: var(--border);
    z-index: 1;
}
.chapters li {
    position: relative;
    display: flex;
    gap: 1.25rem;
    z-index: 2;
}
.chapters li::before {
    content: "";
    width: 35px;
    height: 35px;
    border-radius: var(--radius);
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    box-sizing: border-box;
    background-image: radial-gradient(
        circle at center,
        var(--text-muted) 0 3px,
        transparent 3px
    );
}
.chapters li.active::before {
    background-image: radial-gradient(
        circle at center,
        #22c55e 0 3px,
        transparent 3px
    );
    box-shadow: inset 0 0 8px rgba(34, 197, 94, 0.4);
}
.chapter-node {
    flex: 1;
    min-width: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    transition:
        border-color 150ms ease,
        background 150ms ease;
}
.chapters li:hover .chapter-node {
    background: var(--card-hover);
    border-color: var(--border-hover);
}
.chapter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.4rem;
}
.chapter-year {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0;
    padding-top: 0;
}
.chapter-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.chapter-title {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.chapter-body {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: none;
    margin-bottom: 0.75rem;
}
.chapter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.chapter-tags span {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 1px 6px;
    border-radius: var(--radius);
}

.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: 3rem 1.5rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.stack-head {
    margin-bottom: 0;
}
.sub {
    display: none;
}
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.6rem;
}
.tech {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: default;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
    overflow: hidden;
}
.tech:hover {
    border-color: var(--accent, var(--border-hover));
    box-shadow: 0 0 14px -3px var(--accent, var(--border-hover));
    background: var(--card-hover);
}
.tech img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.tech.dark-icon img {
    filter: invert(1);
}
.tech-name {
    font-family: var(--sans);
    font-size: 0.825rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tech.appear {
    animation: techIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes techIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repos {
    padding: 3rem 1.5rem 5rem;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.repos-head {
    margin-bottom: 0;
}
.shelf {
    position: relative;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    border: none;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}
.shelf::-webkit-scrollbar {
    width: 4px;
}
.shelf::-webkit-scrollbar-track {
    background: transparent;
}
.shelf::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
}
.shelf-loading {
    padding: 40px;
    text-align: center;
    font-family: var(--mono);
    color: var(--text-muted);
    font-size: 12px;
}
.shelf-error {
    padding: 30px;
    font-family: var(--mono);
    color: var(--accent-red);
    font-size: 12px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 2px;
}
.repo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    position: relative;
    transition:
        border-color 150ms ease,
        background 150ms ease;
    cursor: pointer;
}
.repo:hover {
    background: var(--card-hover);
    border-color: #3b3b44;
}
.repo-main {
    flex: 1;
    min-width: 0;
}
.repo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.6rem;
}
.repo-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.repo-name .arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition:
        transform 120ms ease,
        color 120ms ease;
}
.repo:hover .repo-name .arrow {
    transform: translate(2px, -2px);
    color: var(--text-primary);
}
.repo-stars {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: var(--radius);
    letter-spacing: 0;
}
.repo-desc {
    font-family: var(--sans);
    font-size: 0.825rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repo-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}
.lang-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.45rem;
    vertical-align: -1px;
}
.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;
    }
    .discord,
    .colophon-grid,
    .live-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .links {
        align-items: flex-start;
    }
    .shelf {
        max-height: 480px;
    }
    .spotify-box {
        width: 100%;
    }
    .discord-card {
        width: 100%;
    }
}

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

    .hero-top {
        font-size: 0.7rem;
    }

    .discord,
    .colophon,
    .live-row {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .section-h,
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .chapters::before {
        display: none;
    }
    .chapters li::before {
        display: none;
    }
    .chapters li {
        gap: 0;
    }

    .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(2, 1fr);
        gap: 0.5rem;
    }

    .shelf {
        max-height: 420px;
    }
    .repo-grid {
        grid-template-columns: 1fr;
    }

    .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) {
    .hero-title {
        font-size: 1.15rem;
    }
    .hero-sub {
        font-size: 0.7rem;
    }
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (hover: none) {
    .discord-card:hover {
        transform: none;
    }
    .repo:hover {
        transform: none;
        box-shadow: none;
    }
    .tech:hover {
        box-shadow: 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-sub,
.hero-top,
.nav-btn {
    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: 768px) {
    .hero-viewport {
        padding: 1.5rem;
    }
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .hero-nav {
        width: 100%;
        justify-content: space-between;
    }
    .nav-btn {
        padding: 0.45rem 0.5rem;
    }
}
