:root {
    --font-primary: "IBM Plex Mono", monospace;
    --font-secondary: "IBM Plex Serif", Georgia, serif;
    --font-serif: "IBM Plex Serif", Georgia, serif;
    --font-sans: "IBM Plex Serif", Georgia, serif;

    --color-primary: #2b2622;
    --color-secondary: #3a342e;
    --color-text: #332d27;
    --color-muted: #5a534a;
    --color-subtle: #6f675e;
    --color-border: #cabfa8;
    --color-bg: #faf6ee;
    --color-bg-deep: #f4eee2;

    --glitch-base: #2b2622;
    --harness-blue: #00ade4;

    --scanline-rgb: 90, 83, 74;
    --scanline-opacity: 0.035;
    --scanline-thickness: 2.5px;
    --scanline-period: 7px;
    --dither-opacity: 0.1;
}

[data-theme="dark"] {
    --color-primary: #ece3cf;
    --color-secondary: #d8cfb8;
    --color-text: #ddd3bb;
    --color-muted: #a3967c;
    --color-subtle: #857a64;
    --color-border: #453d2e;
    --color-bg: #16130f;
    --color-bg-deep: #1e1a14;

    --glitch-base: #ece3cf;
    --harness-blue: #00ade4;

    --scanline-rgb: 232, 220, 192;
    --scanline-opacity: 0.035;
    --scanline-thickness: 2.5px;
    --scanline-period: 7px;
    --dither-opacity: 0.1;
}

.discord-link {
    position: relative;
}

.discord-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-bg);
}

.spotify-link {
    position: relative;
}

.spotify-play-indicator {
    position: absolute;
    top: -3px;
    right: -3px;
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #17a346;
    border-radius: 50%;
    border: 1px solid var(--color-bg);
}

.spotify-play-indicator .icon {
    color: white;
    font-size: 7px !important;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
}

.blog-alert-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #2e9e67;
    border-radius: 50%;
    border: 1px solid var(--color-bg);
    box-shadow: 0 0 0 2px rgba(46, 158, 103, 0.3),
                0 0 12px 2px rgba(46, 158, 103, 0.6);
    pointer-events: none;
}

/* ========================================
   BLOG CTA (central, above experience)
   ======================================== */

.blog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: center;
    padding: 12px 24px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(43, 38, 34, 0.03), transparent 80%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 1.0em;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease,
                backdrop-filter 0.3s ease,
                -webkit-backdrop-filter 0.3s ease,
                box-shadow 0.3s ease;
}

.blog-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 0%, rgba(43, 38, 34, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-cta:hover {
    color: #1d1915;
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(43, 38, 34, 0.06), transparent 80%);
    box-shadow: 0 0 0 1px rgba(43, 38, 34, 0.15),
                0 0 24px rgba(43, 38, 34, 0.12);
}

.blog-cta:hover::before {
    opacity: 1;
}

.blog-cta-icon {
    font-size: 1.05em;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.blog-cta:hover .blog-cta-icon {
    color: #1d1915;
}

.blog-cta-text {
    position: relative;
    z-index: 1;
}

.blog-cta-external {
    opacity: 0.55;
    margin-left: 2px;
    color: var(--color-primary);
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

.blog-cta:hover .blog-cta-external {
    opacity: 1;
    color: #1d1915;
}

.blog-cta .blog-alert-indicator {
    top: 6px;
    right: 8px;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 2px rgba(46, 158, 103, 0.25),
                0 0 10px 2px rgba(46, 158, 103, 0.55);
}

.discord-status-dot.online {
    background-color: #2e9e67;
}

.discord-status-dot.idle {
    background-color: #c07d0a;
}

.discord-status-dot.dnd {
    background-color: #cf3b3b;
}

.discord-status-dot.offline {
    background-color: #5f6b76;
}

.resume-link {
    position: relative;
}

.resume-age-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-bg);
}

.resume-age-dot[hidden] {
    display: none;
}

.resume-age-dot.fresh {
    background-color: #2e9e67;
}

.resume-age-dot.fading {
    background-color: #215c3c;
}

.resume-age-dot.dim {
    background-color: #143824;
}

.resume-age-text {
    font-size: 0.85em;
    color: var(--color-muted);
    white-space: nowrap;
}

.resume-age-text[hidden] {
    display: none;
}

.resume-age-text[data-state="fresh"] {
    color: #2e9e67;
}

.resume-age-text[data-state="fading"] {
    color: #215c3c;
}

.resume-age-text[data-state="dim"] {
    color: #143824;
}

.now-playing {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: opacity 0.3s ease;
}

.now-playing-card {
    position: relative;
}

.now-playing-card[hidden] {
    display: none;
}

.now-playing-link {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    text-align: left;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 16px 8px 8px;
    transition: border-color 0.2s ease;
}

.now-playing-link:hover {
    border-color: var(--color-primary);
}

.now-playing-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.now-playing-art {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.now-playing-art-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.now-playing-track {
    font-family: var(--font-secondary);
    font-size: 1.02em;
    line-height: 1.15;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-artist {
    font-family: var(--font-primary);
    font-size: 0.78em;
    line-height: 1.15;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.now-playing-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--color-border);
    overflow: hidden;
}

.now-playing-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #17a346;
    transition: width 0.4s linear;
}

.now-playing.paused .now-playing-fill {
    background: var(--color-border);
}

.now-playing-time {
    flex-shrink: 0;
    font-family: var(--font-primary);
    font-size: 0.66em;
    line-height: 1;
    color: var(--color-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.now-playing-link:hover .now-playing-time,
.now-playing-link:focus-visible .now-playing-time {
    opacity: 1;
}

.now-playing-last-played {
    display: none;
    font-family: var(--font-primary);
    font-size: 0.72em;
    line-height: 1.2;
    color: var(--color-subtle);
    margin-top: 3px;
}

.now-playing.paused .now-playing-last-played {
    display: block;
}

.lyrics-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 1;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lyrics-dot:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.lyrics-dot[aria-expanded="true"] {
    color: var(--color-bg);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.lyrics-dot:focus-visible,
.lyrics-close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.lyrics-dot[hidden] {
    display: none;
}

.lyrics-panel {
    align-self: flex-end;
    margin-top: 6px;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(43, 38, 34, 0.08);
}

.lyrics-panel[hidden] {
    display: none;
}

.lyrics-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}

.lyrics-title {
    font-family: var(--font-secondary);
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 0;
    background: none;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.lyrics-close:hover {
    color: var(--color-primary);
}

.lyrics-scroll {
    max-height: 40vh;
    overflow-y: auto;
    padding: 12px;
    scroll-behavior: smooth;
}

.lyrics-line {
    margin: 0;
    padding: 3px 0 3px 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.78em;
    line-height: 1.55;
    color: var(--color-subtle);
}

.lyrics-line.active {
    font-weight: 600;
}

.lyrics-words {
    flex: 1;
    min-width: 0;
}

.lyrics-time {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.92em;
    color: var(--color-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lyrics-line:hover .lyrics-time,
.lyrics-line.active .lyrics-time {
    opacity: 1;
}

.lyrics-word {
    color: inherit;
    transition: color 0.2s ease;
}

.lyrics-line.active .lyrics-word.active {
    color: var(--color-primary);
    font-weight: 700;
}

.lyrics-plain {
    margin: 0;
    white-space: pre-line;
    font-family: var(--font-primary);
    font-size: 0.78em;
    line-height: 1.6;
    color: var(--color-subtle);
}

.lyrics-empty {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 0.76em;
    font-style: italic;
    color: var(--color-subtle);
}

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

html {
    height: 100%;
    overflow-x: hidden;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 900px 700px at 50% 0%,
            rgba(90, 83, 74, 0.08) 0%,
            rgba(90, 83, 74, 0.06) 20%,
            rgba(90, 83, 74, 0.05) 40%,
            rgba(90, 83, 74, 0.04) 60%,
            rgba(90, 83, 74, 0.03) 80%,
            rgba(90, 83, 74, 0.02) 100%),
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 1px,
            rgba(var(--scanline-rgb), var(--scanline-opacity)) 1px,
            rgba(var(--scanline-rgb), var(--scanline-opacity)) calc(1px + var(--scanline-thickness)),
            transparent calc(1px + var(--scanline-thickness)),
            transparent var(--scanline-period));
    z-index: -1;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.08rem;
    background: transparent;
    color: var(--color-secondary);
    line-height: 1.7;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    min-height: 100vh;
    margin-bottom: 0;
    margin-top: 0;
}

.name-section {
    text-align: center;
    width: 100%;
    margin-top: .5rem;
    margin-bottom: -1.0rem;
}

.header-main {
    align-items: stretch;
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.center-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    order: 2;
}

.about-cards {
    order: 1;
}

.links {
    order: 3;
}

.logo-container {
    position: relative;
    display: block;
}

.blog-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.2em;
    font-weight: 600;
    position: relative;
}

.blog-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--color-primary);
    transform: translateX(-50%);
}

.blog-link:hover::after {
    width: 100%;
}

.logo-svg {
    display: block;
    width: auto;
    height: 400px;
    aspect-ratio: 696 / 1000;
    color: var(--color-primary);
    opacity: 0.8;
    user-select: none;
    padding: 0 25px;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.about-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.card-content p {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9em;
}

.about-card-harness {
    grid-column: 1 / -1;
}

.about-card-harness .card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.about-card-harness .harness-card-title {
    font-size: 1em;
}

.harness-name {
    color: var(--harness-blue);
    font-weight: 700;
    text-decoration: none;
}

.harness-name:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-card-harness .harness-card-role {
    flex: 0 1 265px;
    margin-top: 0;
    color: var(--color-muted);
    font-size: 0.8em;
    line-height: 1.4;
    text-align: right;
}

@media (max-width: 480px) {
    .about-card-harness .card-content {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .about-card-harness .harness-card-role {
        flex-basis: auto;
        text-align: center;
    }
}

.links {
    font-family: var(--font-primary);
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.link {
    display: flex;
    align-items: center;
    color: var(--color-subtle);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 400;
}

.link:hover {
    color: var(--color-primary);
}

/* Stack the hero below the width where the three columns stop fitting. */
@media (min-width: 769px) and (max-width: 959px) {
    .header {
        gap: 30px;
        text-align: center;
    }

    .header-main {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about-cards {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
        order: 1;
    }

    .center-logo {
        position: fixed;
        top: -100px;
        right: -200px;
        z-index: 0;
        pointer-events: none;
    }

    .logo-svg {
        width: 550px;
        height: 550px;
        opacity: 0.07;
    }

    .links {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        min-height: 48px;
        max-width: 280px;
        order: 3;
    }

    .link {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
}

.item-title {
    display: inline-block;
    vertical-align: middle;
}

.descriptors {
    font-family: "Times New Roman", serif;
    font-size: 1.1em;
    color: var(--color-muted);
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 20px;
    font-weight: 400;
}

.pronounce {
    font-size: 1em;
    color: var(--color-subtle);
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    margin-top: -30px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 40px;
}

.section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.section-title {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.5em;
    font-weight: 400;
    color: var(--color-primary);
    margin-top: 10px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    text-align: center;
    align-self: center;
}

.item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;

}

.item {
    font-size: 1.0em;
}

.item-title {
    font-weight: 700;
    font-size: 1.3em;
    color: var(--color-text);
    margin-bottom: 5px;
}

.item-details {
    color: var(--color-muted);
    margin-bottom: 5px;
}

.item-description {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1em;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 0 40px;
}

.contact-header {
    margin-bottom: 10px;
}

.contact-title {
    font-family: var(--font-secondary);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
    color: var(--color-text);
    position: relative;
}

.contact-label {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary);
}

.contact-link {
    font-family: var(--font-secondary);
    text-decoration: none;
    color: var(--color-text);
}

.contact-item .discord-status-dot {
    position: static;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-bg);
    margin-left: 4px;
}

.contact-label {
    font-weight: 600;
    color: var(--color-primary);
}

.contact-value {
    color: var(--color-text);
}

.contact-link {
    text-decoration: none;
    color: var(--color-text);
}

.contact-value:hover {
    color: var(--color-primary);
}

.contact-status-text {
    font-family: var(--font-secondary);
    font-size: 0.85em;
    font-weight: 600;
    margin: 0px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    padding-left: 4px;
    padding-right: 4px;
}

.footer {
    position: relative;
    font-family: var(--font-primary);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-subtle);
    margin-top: 5rem;
    padding: 0 40px 40px 40px;
}

@media (max-width: 768px) {
    .footer {
        padding: 0 20px 40px 20px;
    }
}

.cryptonite-link {
    font-weight: 700;
    position: relative;
    color: var(--glitch-base);
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
}

.cryptonite-link:hover {
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        color: var(--glitch-base);
    }

    20% {
        transform: translate(-2px, 2px);
        color: #ff0033;
    }

    40% {
        transform: translate(2px, -2px);
        color: #0033ff;
    }

    60% {
        transform: translate(-2px, -2px);
        color: var(--glitch-base);
    }

    80% {
        transform: translate(2px, 2px);
        color: #ff0033;
    }

    100% {
        transform: translate(0);
        color: var(--glitch-base);
    }
}

.flare-link {
    color: #b45f06;
    text-decoration: none;
    font-weight: 600;
    padding: 2px;
    font-family: "IBM Plex Mono";
    border: 1px solid transparent;
    border-radius: 4px;
}

.flare-link:hover {
    text-decoration: underline;
}

.repo-link .icon {
    font-size: 1em;
}

.item-link {
    margin-top: 6px;
}

/* Achievement links in titles should look like regular titles */

/* New achievement card layout */

/* Project card layout */

.tech-tag {
    color: var(--color-text);
    font-size: 0.8em;
    font-weight: 400;
    padding: 2px 8px;
    background: rgba(43, 38, 34, 0.05);
    border: 1px solid rgba(43, 38, 34, 0.12);
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {

    /* AGGRESSIVE MOBILE PERFORMANCE - Remove ALL animations and transitions */
    *,
    *::before,
    *::after {
        animation: none !important;
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition: none !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    /* Ensure dark background on mobile */
    html,
    body {
        background-color: var(--color-bg) !important;
    }

    /* Remove only the gradient/scanline effects, keep solid background */
    html::before {
        background-image: none !important;
        background-color: var(--color-bg) !important;
    }

    /* Disable scroll reveal - show everything immediately */
    .reveal,
    .reveal-fade-up,
    .reveal-fade-left,
    .reveal-fade-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Improve mobile font rendering */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Optimize touch scrolling */
    body {
        touch-action: pan-y pan-x;
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize scrollbar for mobile */
    *::-webkit-scrollbar {
        width: 6px;
    }

    *::-webkit-scrollbar-track {
        background: var(--color-bg) !important;
    }

    *::-webkit-scrollbar-thumb {
        background-color: #d6cdbd !important;
        border: none !important;
        border-radius: 3px;
    }

    /* Remove all backdrop-filter and box-shadow effects */
    .about-card,
    .item,
    .now-playing {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .spotify-play-indicator,
    .spotify-text,
    .discord-status-dot.online,
    .discord-status-dot.idle,
    .discord-status-dot.dnd {
        animation: none !important;
        text-shadow: none !important;
    }

    .blog-alert-indicator {
        top: -3px;
        right: -3px;
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 2px rgba(46, 158, 103, 0.25),
                    0 0 10px 1px rgba(46, 158, 103, 0.5);
    }

    .header {
        gap: 30px;
        text-align: center;
        min-height: 100vh;
        margin-top: 0;
        padding: 60px 20px 20px 20px;
    }

    .header-main {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
        order: 1;
    }

    /* Improve touch targets for social links */
    .links {
        align-items: center;
        flex-shrink: 0;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        border: none;
        padding: 10px 5px;
        order: 3;
        min-height: 48px;
        height: auto;
        max-width: 280px;
    }

    .link {
        font-size: 1.5em;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .center-logo {
        position: fixed;
        top: -100px;
        right: -200px;
        z-index: 0;
        pointer-events: none;
    }

    .logo-svg {
        width: 550px;
        height: 550px;
        opacity: 0.07;
    }

    .content {
        gap: 20px;
        max-width: 100%;
        padding: 40px 20px;
    }

    .section {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .tech-tag {
        font-size: 0.75em;
        padding: 1px 6px;
    }

    .item-description {
        display: none;
    }

    .item {
        padding: 15px;
        border-radius: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-section {
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding: 0 20px;
    }

    .contact-items {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
        flex-wrap: wrap;
    }

    .contact-title {
        font-size: 1.1em;
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    .contact-status-text {
        font-size: 0.8em;
        padding: 1px 6px;
        margin-left: 0;
        margin-top: 4px;
    }
}

* {
    scrollbar-width: auto;
    scrollbar-color: #d6cdbd #f0eadd;
}

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    background: #f0eadd;
}

*::-webkit-scrollbar-thumb {
    background-color: #d6cdbd;
    border-radius: 10px;
    border: 3px solid #f0eadd;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #c2b7a4;
}

::selection {
    background-color: #e5ddcf !important;
    color: #2b2622 !important;
}

/* Dither Effect Overlay */
#dither-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    /* Multiply blends dark grain into the cream background */
    opacity: var(--dither-opacity);
    /* Adjust for visibility of the sparse noise */
}

/* ========================================
   SCROLL REVEAL - DISABLED (show immediately)
   ======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* All reveal classes show elements immediately - no transition */
.reveal,
.reveal-fade-up,
.reveal-fade-left,
.reveal-fade-right,
.reveal-scale {
    opacity: 1;
    transform: none;
}

.reveal.reveal-visible,
.reveal-fade-up.reveal-visible,
.reveal-fade-left.reveal-visible,
.reveal-fade-right.reveal-visible,
.reveal-scale.reveal-visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   INTERACTIVE CARD STYLES
   ======================================== */

/* Enhanced item hover effect */
.item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}

/* Project card - simplified */

/* Tech tag hover effect */
.tech-tag {
    transition: all 0.2s ease;
    cursor: default;
}

/* ========================================
   ACHIEVEMENT CARD ENHANCEMENTS
   ======================================== */

/* ========================================
   EXPERIENCE TIMELINE
   ======================================== */

.experience-section {
    position: relative;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    position: relative;
    margin-bottom: 0;
    border: none;
    padding: 0;
}

/* ========================================
   CONTACT SECTION ENHANCEMENTS
   ======================================== */

.contact-section {
    position: relative;
}

.contact-title {
    display: inline-block;
    position: relative;
}

.contact-link {
    position: relative;
    transition: all 0.2s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Copy button styling */
.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    color: var(--color-subtle);
    font-size: 0.9em;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--color-primary);
    background: rgba(43, 38, 34, 0.1);
}

.copy-btn.copied {
    color: var(--color-primary);
}

.copy-icon-wrap {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 0;
}

.copy-icon-wrap .icon {
    position: absolute;
    inset: 0;
    width: 1em;
    height: 1em;
    vertical-align: baseline;
    transition: opacity 0.2s ease;
}

.copy-icon-wrap .icon-check {
    opacity: 0;
}

.copy-icon-wrap.copied .icon-copy {
    opacity: 0;
}

.copy-icon-wrap.copied .icon-check {
    opacity: 1;
}

.contact-icon {
    margin-right: 4px;
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-border) 20%,
            var(--color-primary) 50%,
            var(--color-border) 80%,
            transparent 100%);
    margin: 40px 0;
    opacity: 0.5;
}

/* ========================================
   SECTION TITLE ANIMATION
   ======================================== */

.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.section-title.reveal-visible::after {
    width: 60px;
}

/* ========================================
   LINK HOVER EFFECTS
   ======================================== */

/* ========================================
   REDUCED MOTION
   ======================================== */

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

    .reveal,
    .reveal-fade-up,
    .reveal-fade-left,
    .reveal-fade-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .item:hover {
        transform: none;
    }

    .tech-tag:hover {
        transform: none;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {

    /* Disable complex hover effects on touch devices */
    .item:hover {
        transform: none;
    }

    /* Contact section mobile */
    .copy-btn {
        display: none;
    }

    /* Now playing card mobile */
    .now-playing {
        top: 12px;
        right: 12px;
    }

    .now-playing-link {
        max-width: calc(100vw - 24px);
        padding: 6px 12px 6px 6px;
    }

    .now-playing-art {
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   TIMELINE SECTION
   ======================================== */

/* Card grid layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Card item */
.card-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.card-placement {
    font-size: 0.75em;
    font-weight: 600;
    font-family: "IBM Plex Mono";
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.card-placement[data-placement="1st Place"] {
    color: #9c7c00;
    background: rgba(184, 134, 11, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-placement[data-placement="2nd Place"] {
    color: #6b6b6b;
    background: rgba(112, 112, 112, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-placement[data-placement="3rd Place"] {
    color: #9c4a1f;
    background: rgba(160, 82, 45, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-title-row {
    flex: 1;
    min-width: 0;
}

.card-title-link {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: inline;
}

.card-title-link {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.card-title-link .icon {
    flex-shrink: 0;
}

a.card-title-link:hover {
    color: var(--color-primary);
}

.card-live-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 6px;
    color: var(--color-subtle);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-live-link:hover {
    color: var(--color-primary);
}

.card-live-link .icon {
    font-size: 0.85em;
}

.card-title-link.proprietary {
    cursor: not-allowed;
    opacity: 0.8;
}

.card-date {
    font-size: 0.75em;
    color: var(--color-subtle);
    white-space: nowrap;
    flex-shrink: 0;
}

.card-description {
    font-size: 0.88em;
    color: var(--color-muted);
    line-height: 1.55;
}

.card-footer {
    margin-top: auto;
}

.card-location {
    font-size: 0.8em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.card-amount {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-primary);
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BAD APPLE SECRET OVERLAY
   ======================================== */

.footer-secret {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-muted);
    opacity: 0.35;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-secret:hover {
    opacity: 1;
    color: var(--color-primary);
}

#bad-apple-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    background: transparent;
}

.bad-apple-canvas {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.bad-apple-video {
    display: none;
}

.bad-apple-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10001;
    pointer-events: auto;
}

.bad-apple-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 252, 245, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bad-apple-btn:hover {
    background: #ffffff;
    border-color: rgba(43, 38, 34, 0.3);
    color: #1d1915;
}

/* ========================================
   THEME TOGGLE
   ======================================== */

.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.theme-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

html[data-theme="light"] .theme-icon-moon {
    opacity: 1;
    transform: none;
}

html[data-theme="light"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

html[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

html[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: none;
}

/* ========================================
   DARK THEME OVERRIDES
   ======================================== */

html[data-theme="dark"]::before {
    background-image:
        radial-gradient(ellipse 900px 700px at 50% 0%,
            rgba(232, 220, 192, 0.05) 0%,
            rgba(232, 220, 192, 0.04) 20%,
            rgba(232, 220, 192, 0.03) 40%,
            rgba(232, 220, 192, 0.02) 60%,
            rgba(232, 220, 192, 0.015) 80%,
            transparent 100%),
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 1px,
            rgba(var(--scanline-rgb), var(--scanline-opacity)) 1px,
            rgba(var(--scanline-rgb), var(--scanline-opacity)) calc(1px + var(--scanline-thickness)),
            transparent calc(1px + var(--scanline-thickness)),
            transparent var(--scanline-period));
    background-color: var(--color-bg);
}

[data-theme="dark"] .tech-tag {
    background: rgba(236, 227, 207, 0.06);
    border: 1px solid rgba(236, 227, 207, 0.16);
}

[data-theme="dark"] .blog-cta {
    background: linear-gradient(180deg, rgba(236, 227, 207, 0.05), transparent 80%);
}

[data-theme="dark"] .blog-cta::before {
    background: radial-gradient(120% 120% at 50% 0%, rgba(236, 227, 207, 0.08), transparent 60%);
}

[data-theme="dark"] .blog-cta:hover {
    color: #f6f0e2;
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(236, 227, 207, 0.09), transparent 80%);
    box-shadow: 0 0 0 1px rgba(236, 227, 207, 0.15),
        0 0 24px rgba(236, 227, 207, 0.10);
}

[data-theme="dark"] .blog-cta:hover .blog-cta-icon,
[data-theme="dark"] .blog-cta:hover .blog-cta-external {
    color: #f6f0e2;
}

[data-theme="dark"] .copy-btn:hover {
    background: rgba(236, 227, 207, 0.08);
}

[data-theme="dark"] .card-placement[data-placement="1st Place"] {
    color: #e3c564;
    background: rgba(227, 197, 100, 0.14);
}

[data-theme="dark"] .card-placement[data-placement="2nd Place"] {
    color: #b8b3a8;
    background: rgba(184, 179, 168, 0.12);
}

[data-theme="dark"] .card-placement[data-placement="3rd Place"] {
    color: #d28a5c;
    background: rgba(210, 138, 92, 0.12);
}

[data-theme="dark"] #dither-canvas {
    mix-blend-mode: screen;
}

[data-theme="dark"] .bad-apple-btn {
    background: rgba(22, 19, 15, 0.8);
}

[data-theme="dark"] .bad-apple-btn:hover {
    background: #241f18;
    border-color: rgba(236, 227, 207, 0.3);
    color: #f6f0e2;
}

[data-theme="dark"] * {
    scrollbar-color: #453d2e #1e1a14;
}

[data-theme="dark"] {
    scrollbar-color: #453d2e #1e1a14;
}

[data-theme="dark"] *::-webkit-scrollbar-track,
[data-theme="dark"]::-webkit-scrollbar-track {
    background: #1e1a14;
}

[data-theme="dark"] *::-webkit-scrollbar-thumb,
[data-theme="dark"]::-webkit-scrollbar-thumb {
    background-color: #453d2e;
    border: 3px solid #1e1a14;
}

[data-theme="dark"] *::-webkit-scrollbar-thumb:hover,
[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background-color: #5a4f3c;
}

[data-theme="dark"] ::selection {
    background-color: #4a4030 !important;
    color: #f6f0e2 !important;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
    }

    [data-theme="dark"] *::-webkit-scrollbar-thumb,
    [data-theme="dark"]::-webkit-scrollbar-thumb {
        background-color: #453d2e !important;
    }
}

.footer-madoka {
    position: absolute;
    bottom: 0;
    right: max(40px, calc(50% - 600px));
    width: 200px;
    height: auto;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 900px) {
    .footer-madoka {
        display: none;
    }
}

/* ========================================
   COMPONENT STYLES (migrated from Astro)
   ======================================== */

.icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.name {
    font-family: "La Belle Aurore", cursive;
    font-size: 4.75em;
    line-height: 1;
    font-weight: 400;
    color: inherit;
    letter-spacing: 1px;
    display: block;
    padding-bottom: 0.5rem;
}

.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;
}

.exp-role {
    color: var(--color-text);
    font-weight: 500;
}

.exp-org {
    color: var(--color-primary);
    font-weight: 500;
}

.exp-period {
    color: var(--color-subtle);
    font-style: italic;
    opacity: 1;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.item-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-family: "IBM Plex Serif", serif;
    font-size: 0.95rem;
}

.repo-link, .deployed-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    line-height: 1;
}

.link-separator {
    color: var(--color-primary);
    opacity: 0.8;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    margin: 0 -2px;
}

.repo-link::after, .deployed-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.repo-link:hover::after, .deployed-link:hover::after {
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.8em;
    color: var(--color-subtle);
}

.footer-time {
    font-size: 0.75em;
    color: var(--color-muted);
    font-family: var(--font-primary);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin: 8px 0;
}

.footer-link {
    color: var(--color-subtle);
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.footer-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

