@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@300;400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

@font-face {
    font-family: 'Geist Pixel';
    src: url('https://cdn.jsdelivr.net/gh/vercel/geist-pixel-font@main/fonts/webfonts/GeistPixel-Square.woff2') format('woff2');
    font-display: swap;
}

/* ── Theme Design System ────────────────────────────── */
:root {
    --bg: 255 255 255;
    --ink: 10 10 10;
    --g50: 250 250 250;
    --g100: 245 245 245;
    --g200: 233 233 233;
    --g300: 212 212 212;
    --g400: 163 163 163;
    --g500: 115 115 115;
    --g600: 82 82 82;
    --g700: 64 64 64;
    --g800: 38 38 38;
    --g900: 23 23 23;
    --g950: 10 10 10;
    --halftone: rgba(10, 10, 10, 0.9);
    --sel-bg: #0a0a0a;
    --sel-fg: #ffffff;
}

html.dark {
    --bg: 12 12 15;
    --ink: 244 244 245;
    --g50: 24 24 27;
    --g100: 30 30 34;
    --g200: 42 42 48;
    --g300: 58 58 66;
    --g400: 138 138 146;
    --g500: 160 160 168;
    --g600: 184 184 192;
    --g700: 206 206 212;
    --g800: 228 228 232;
    --g900: 240 240 243;
    --g950: 250 250 250;
    --halftone: rgba(244, 244, 245, 0.42);
    --sel-bg: #fafafa;
    --sel-fg: #0a0a0a;
    color-scheme: dark;
}

/* ── Base resets ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: rgb(var(--bg));
    color: rgb(var(--ink));
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-color: rgb(var(--bg));
    color: rgb(var(--ink));
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: var(--sel-bg);
    color: var(--sel-fg);
}

/* ── Typography & Links ──────────────────────────────── */
.font-sans { font-family: 'Geist', sans-serif; }
.font-mono { font-family: 'Geist Mono', monospace; }
.font-pixel { font-family: 'Geist Pixel', 'Geist Mono', monospace; }
.font-serif { font-family: 'Source Serif 4', Georgia, serif; }

a, button {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

a.underline-link {
    position: relative;
    display: inline-block;
}
a.underline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(var(--ink));
    opacity: 0.25;
    transition: opacity 0.2s;
}
a.underline-link:hover::after {
    opacity: 1;
}

.text-muted { color: rgb(var(--g500)); }
.text-faint { color: rgb(var(--g400)); }
.text-ink { color: rgb(var(--ink)); }

/* ── Layout & Columns ────────────────────────────────── */
.app-container {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .app-container {
        flex-direction: row;
    }
}

main {
    flex: 1;
    width: 100%;
    z-index: 10;
    position: relative;
}

@media (min-width: 1024px) {
    main {
        padding-left: 14rem; /* Clear left sidebar */
    }
}

.content-wrapper {
    width: 100%;
    max-width: 42rem; /* Reading measure constraint (672px) */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding: 5rem 3rem;
    }
}


/* ── Sidebar (Fixed Left on lg+) ────────────────────── */
.sidebar {
    display: none; /* hidden on mobile, top bar handles layout */
    width: 14rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid rgb(var(--g200));
    background-color: rgb(var(--bg));
    padding: 2rem 1.5rem;
    flex-direction: column;
    z-index: 50;
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex;
    }
}

.sidebar-logo {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    font-weight: normal;
    text-transform: lowercase;
    margin-bottom: 2.5rem;
    display: block;
}

.sidebar-logo:hover {
    opacity: 0.6;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    color: rgb(var(--g500));
}

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

.nav-link.active::before {
    content: '→';
    font-family: 'Geist Mono', monospace;
    color: rgb(var(--ink));
    margin-right: 0.2rem;
}

.sidebar-divider {
    height: 1px;
    background-color: rgb(var(--g200));
    margin: 1rem 0;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-footer-text {
    font-size: 11px;
    line-height: 1.4;
    color: rgb(var(--g400));
}

.sidebar-email-link {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--ink));
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.sidebar-email-link:hover {
    color: rgb(var(--g500));
}

/* ── Mobile Top Bar & Overlay Menu ──────────────────── */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: justify;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgb(var(--g200));
    background-color: rgba(var(--bg) / 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}

.mobile-header-logo {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 14px;
    flex: 1;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Overlay Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgb(var(--bg));
    z-index: 100;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.is-visible {
    display: flex;
}

.mobile-overlay.is-open {
    opacity: 1;
}

.mobile-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgb(var(--g200));
}

.mobile-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    font-family: 'Geist Mono', monospace;
    font-size: 16px;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.16,1,.3,1);
}

.mobile-overlay.is-open .mobile-nav-group {
    opacity: 1;
    transform: none;
}

.mobile-nav-link {
    color: rgb(var(--g700));
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.mobile-nav-link:hover {
    color: rgb(var(--ink));
}

.mobile-overlay-footer {
    margin-top: auto;
    border-top: 1px solid rgb(var(--g200));
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Theme Switcher ─────────────────────────────────── */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px;
    border: 1px solid rgb(var(--g200));
    border-radius: 9999px;
    width: fit-content;
}

.theme-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    border-radius: 9999px;
    color: rgb(var(--g400));
    transition: color .2s, background-color .2s;
}

.theme-opt:hover {
    color: rgb(var(--ink));
}

.theme-opt.is-active {
    background-color: rgb(var(--g100));
    color: rgb(var(--ink));
}

.theme-opt svg {
    width: 13px;
    height: 13px;
}

/* Coordinated Theme Crossfade */
html.theme-anim, 
html.theme-anim *, 
html.theme-anim *::before, 
html.theme-anim *::after {
    transition: background-color .5s ease, border-color .5s ease, color .5s ease,
                fill .5s ease, stroke .5s ease, box-shadow .5s ease, outline-color .5s ease !important;
}

::view-transition-old(root), ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* ── Halftone Dot Textures ──────────────────────────── */
.halftone-container {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
}

.halftone {
    background-image: radial-gradient(circle at center, var(--halftone) 1px, transparent 1.6px);
    background-size: 9px 9px;
}

.halftone-wide {
    background-size: 13px 13px;
}

.halftone-fine {
    background-image: radial-gradient(circle at center, var(--halftone) 0.8px, transparent 1.3px);
    background-size: 5px 5px;
}

/* Halftone Gradients Masks */
.mask-tr {
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 0%, transparent 65%);
}

.mask-bl {
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 0% 100%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse 80% 80% at 0% 100%, #000 0%, transparent 65%);
}

.mask-circle {
    -webkit-mask-image: radial-gradient(circle at center, #000 35%, transparent 70%);
    mask-image: radial-gradient(circle at center, #000 35%, transparent 70%);
}

.mask-fade-x {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
}

.mask-up {
    -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
    mask-image: linear-gradient(to top, #000, transparent 80%);
}

.halftone-white {
    background-image: radial-gradient(circle at center, #ffffff 1.1px, transparent 1.6px);
    background-size: 5px 5px;
}

html.dark .halftone-white {
    background-image: radial-gradient(circle at center, rgb(var(--bg)) 1.1px, transparent 1.6px);
}

.photo-dots-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.88) 1.4px, transparent 0);
    background-size: 6px 6px;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.25) 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.25) 100%);
}

html.dark .photo-dots-overlay {
    background-image: radial-gradient(rgba(12, 12, 15, 0.88) 1.4px, transparent 0);
}


.photo-dissolve {
    -webkit-mask-image: linear-gradient(to top, transparent 1%, #000 33%);
    mask-image: linear-gradient(to top, transparent 1%, #000 33%);
}

/* ── Entrance Stagger ────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.19s; }
.d4 { animation-delay: 0.26s; }
.d5 { animation-delay: 0.33s; }

/* ── Pulse Status Indicator ────────────────────────── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: rgb(var(--ink));
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.8s ease-in-out infinite;
}

/* ── Section Styling ────────────────────────────────── */
section {
    position: relative;
    padding: 3.5rem 0;
}

.section-divider {
    height: 1px;
    background-color: rgb(var(--g200));
    margin-top: 1rem;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.section-link {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g500));
}

.section-link:hover {
    color: rgb(var(--ink));
}

/* ── Hero Section ───────────────────────────────────── */
.hero-grid {
    display: grid;
    gap: 2.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hero-grid {
        grid-template-columns: 18rem 1fr;
        align-items: start;
        gap: 2.5rem;
    }
}

.hero-photo-col {
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-photo-col {
        margin: 0;
    }
}

.hero-photo-wrapper {
    position: relative;
}

.hero-photo {
    display: block;
    width: 100%;
    user-select: none;
    pointer-events: none;
    filter: grayscale(100%) contrast(1.15);
}

/* White halftone overlay: dissolves photo's bottom edge into the page */
.halftone-white {
    background-image: radial-gradient(circle at center, rgb(var(--bg)) 1px, transparent 1.5px);
    background-size: 5px 5px;
}

.dark .halftone-white {
    background-image: radial-gradient(circle at center, rgb(var(--bg)) 1px, transparent 1.5px);
}

/* Dots strongest at the bottom, fading upward */
.mask-up {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
    mask-image: linear-gradient(to top, #000, transparent 80%);
}

.hero-name {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 2rem;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .hero-name {
        font-size: 2.6rem;
    }
}

.hero-status {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g500));
}

.hero-bio {
    margin-top: 1.5rem;
    font-size: 15px;
    line-height: 1.6;
    color: rgb(var(--g600));
}

.hero-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g500));
}

.hero-links a:hover {
    color: rgb(var(--ink));
}

/* ── Project Card Deck ──────────────────────────────── */
.deck {
    position: relative;
    height: 19rem;
    margin-inline: -1.5rem;
    overflow-x: clip;
    overflow-y: visible;
}

@media (min-width: 640px) {
    .deck {
        height: 17.5rem;
    }
}

@media (min-width: 768px) {
    .deck {
        margin-inline: 0;
        overflow: visible;
    }
}

.deck-card {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    width: 18rem;
    margin-left: -9rem;
    transform-origin: center bottom;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    will-change: transform;
    outline: none;
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    background-color: rgb(var(--bg));
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .deck-card {
        width: 20.5rem;
        margin-left: -10.25rem;
    }
}

.deck-card.is-center {
    transform: translateY(0) rotate(0deg) scale(1);
    z-index: 30;
    box-shadow: 0 24px 48px -18px rgba(10, 10, 10, 0.2);
}

.deck-card.is-left {
    transform: translateX(-40%) translateY(14px) rotate(-14deg) scale(0.88);
    z-index: 10;
    box-shadow: 0 12px 24px -14px rgba(10, 10, 10, 0.15);
    cursor: pointer;
}

.deck-card.is-right {
    transform: translateX(40%) translateY(14px) rotate(14deg) scale(0.88);
    z-index: 20;
    box-shadow: 0 12px 24px -14px rgba(10, 10, 10, 0.15);
    cursor: pointer;
}

html.dark .deck-card.is-center {
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
}
html.dark .deck-card.is-left, html.dark .deck-card.is-right {
    box-shadow: none;
}

/* Dim back cards */
.deck-card.is-left::after, .deck-card.is-right::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: rgba(var(--bg) / 0.4);
    transition: background 0.35s ease;
    pointer-events: none;
}

.deck-card.is-left:hover::after, .deck-card.is-right:hover::after {
    background-color: rgba(var(--bg) / 0);
}

.deck-card.is-center:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 32px 56px -18px rgba(10, 10, 10, 0.25);
}

html.dark .deck-card.is-center:hover {
    box-shadow: 0 32px 56px -18px rgba(0, 0, 0, 0.7);
}

.deck-card.is-left:hover {
    transform: translateX(-45%) translateY(4px) rotate(-10deg) scale(0.92);
    z-index: 25;
}

.deck-card.is-right:hover {
    transform: translateX(45%) translateY(4px) rotate(10deg) scale(0.92);
    z-index: 25;
}

.deck-card:not(.is-center) a {
    pointer-events: none;
}

/* Card internal design */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card-tag {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgb(var(--g300));
    padding: 2px 8px;
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(var(--g500));
}

.card-tag.featured {
    background-color: rgb(var(--ink));
    color: rgb(var(--bg));
    border: none;
}

.card-header-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    border: 1px solid rgb(var(--g200));
    padding: 6px;
    background-color: #fff;
    object-fit: contain;
    flex-shrink: 0;
}

.card-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    line-height: 1.2;
}

.card-desc {
    margin-top: 0.75rem;
    font-size: 13px;
    line-height: 1.5;
    color: rgb(var(--g600));
    flex: 1;
}

.card-links {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g500));
}

.card-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.card-links a:hover {
    color: rgb(var(--ink));
}

/* ── Experience Timeline ────────────────────────────── */
.timeline {
    border-top: 1px solid rgb(var(--g200));
    border-bottom: 1px solid rgb(var(--g200));
    margin: 1rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    border-bottom: 1px solid rgb(var(--g200));
    align-items: baseline;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:hover {
    background-color: rgba(var(--g50) / 0.8);
}

.timeline-year {
    grid-column: span 2 / span 2;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
}

.timeline-role {
    grid-column: span 10 / span 10;
    font-weight: 500;
    font-size: 14px;
    color: rgb(var(--ink));
}

.timeline-company {
    grid-column: span 12 / span 12;
    font-size: 13px;
    color: rgb(var(--g500));
}

@media (min-width: 640px) {
    .timeline-role {
        grid-column: span 6 / span 6;
    }
    .timeline-company {
        grid-column: span 4 / span 4;
        text-align: right;
    }
}


/* ── Stack Section ──────────────────────────────────── */
.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stack-tag {
    display: inline-flex;
    border-radius: 6px;
    border: 1px solid rgb(var(--g200));
    background-color: rgb(var(--bg));
    padding: 0.25rem 0.625rem;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g600));
}

.section-title-mono {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
}


/* ── Typing Test Modal Overlay ──────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(var(--g50) / 0.82);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

html.dark .modal-backdrop {
    background-color: rgba(var(--bg) / 0.92);
}

.modal-overlay.is-open .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    transition: opacity 0.45s ease 0.05s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.modal-overlay.is-open .modal-content {
    opacity: 1;
    transform: none;
}

.modal-overlay.is-closing .modal-content {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.4, 0, 1, 1);
}

/* Stats */
.tt-stats {
    display: flex;
    align-items: flex-start;
    gap: 2.6rem;
    font-family: 'Geist Mono', monospace;
}

.tt-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.tt-stat-val {
    font-size: 1.8rem;
    font-weight: 500;
    color: rgb(var(--ink));
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tt-stat-val i {
    font-style: normal;
    font-size: 0.9rem;
    color: rgb(var(--g400));
    margin-left: 1px;
}

.tt-num {
    display: inline-block;
    min-width: 3ch;
    text-align: center;
}

.tt-stat-label {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(var(--g400));
}

/* Words */
.tt-words-wrap {
    width: 100%;
}

.tt-words {
    position: relative;
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 1.5rem;
    line-height: 2.5rem;
    min-height: 5.5rem;
    color: rgb(var(--g300));
    user-select: none;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.tt-word {
    display: inline-block;
    margin: 0 0.55rem 0.15rem 0;
    white-space: nowrap;
}

.tt-char {
    transition: color 0.09s ease;
}

.tt-char.correct {
    color: rgb(var(--ink));
}

.tt-char.incorrect {
    color: #e0584f;
}

.tt-char.extra {
    color: #e0584f;
    opacity: 0.55;
}

/* Blinking terminal caret */
.tt-caret {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 1.5rem;
    background-color: rgb(var(--ink));
    border-radius: 2px;
    transform: translateY(0.2rem);
    transition: left 0.11s cubic-bezier(0.16, 1, 0.3, 1), top 0.11s ease;
    animation: tt-blink 1.05s ease-in-out infinite;
}

@keyframes tt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.12; }
}

/* Keyboard Visual representation */
.tt-keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    align-items: center;
}

.tt-krow {
    display: flex;
    gap: 0.42rem;
}

.tt-key {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.45rem;
    border-radius: 0.62rem;
    background-color: rgb(var(--g100));
    border: 1px solid rgb(var(--g200));
    box-shadow: 0 2px 0 rgb(var(--g200));
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g500));
    transition: transform 0.07s ease, background 0.14s ease, color 0.14s ease, box-shadow 0.1s ease, border-color 0.14s ease;
}

.tt-key.space {
    min-width: 15rem;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(var(--g400));
}

.tt-key.next {
    border-color: rgb(var(--g300));
    color: rgb(var(--ink));
    box-shadow: 0 0 0 3px rgba(var(--ink) / 0.06), 0 2px 0 rgb(var(--g200));
}

.tt-key.active {
    background-color: rgb(var(--g200));
    color: rgb(var(--ink));
    border-color: rgb(var(--g300));
    transform: translateY(2px);
    box-shadow: 0 0 0 rgb(var(--g300));
}

.modal-overlay.is-open .tt-key {
    animation: tt-keyin 0.42s both cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tt-keyin {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tt-hint {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
    display: flex;
    gap: 1.1rem;
}

.tt-hint kbd, .tt-confirm kbd {
    padding: 1px 6px;
    border: 1px solid rgb(var(--g200));
    border-radius: 5px;
    background-color: rgb(var(--g50));
    color: rgb(var(--g500));
}

.tt-confirm {
    display: none;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--ink));
    padding: 0.5rem 0.95rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 0.7rem;
    background-color: rgb(var(--g100));
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.3);
    animation: tt-keyin 0.28s both;
}

.modal-overlay.is-confirming .tt-confirm {
    display: inline-flex;
}

.modal-overlay.is-confirming .tt-hint {
    display: none;
}

/* Results panel */
.tt-results {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.modal-overlay.show-results .tt-results {
    display: flex;
    animation: tt-keyin 0.5s both;
}

.modal-overlay.show-results .tt-stats,
.modal-overlay.show-results .tt-words-wrap,
.modal-overlay.show-results .tt-keyboard {
    display: none;
}

.tt-res-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.tt-res-wpm {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 5rem;
    line-height: 1;
    color: rgb(var(--ink));
    font-variant-numeric: tabular-nums;
}

.tt-res-cap {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(var(--g400));
}

.tt-res-grid {
    display: flex;
    gap: 2.6rem;
    font-family: 'Geist Mono', monospace;
}

.tt-res-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.tt-res-grid b {
    font-weight: 500;
    font-size: 1.5rem;
    color: rgb(var(--g800));
    font-variant-numeric: tabular-nums;
}

.tt-res-grid b i {
    font-style: normal;
    font-size: 0.85rem;
    color: rgb(var(--g400));
}

.tt-res-grid label {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(var(--g400));
}

.tt-restart {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.7rem;
    background-color: rgb(var(--ink));
    color: rgb(var(--bg));
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.tt-restart:hover {
    background-color: rgb(var(--g800));
    transform: translateY(-1px);
}

.tt-verdict {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: rgb(var(--g400));
}

.tt-verdict .tt-vicon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: rgb(var(--g300));
}

.tt-verdict.beat {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: rgb(var(--ink));
    animation: tt-beatpop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tt-verdict.beat .tt-vicon {
    color: rgb(var(--ink));
    width: 15px;
    height: 15px;
}

@keyframes tt-beatpop {
    0% { opacity: 0; transform: scale(0.7); }
    60% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Certifications Grid ── */
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-card {
    background-color: rgb(var(--bg));
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    box-shadow: 0 8px 22px -14px rgba(10, 10, 10, 0.12);
}

html.dark .cert-card {
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
}

.cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -20px rgba(10, 10, 10, 0.2);
}

html.dark .cert-card:hover {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

/* Logo sits directly on card — no wrapper box */
.cert-logo-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cert-logo {
    width: 2rem;
    height: 2rem;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.8;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

.cert-card:hover .cert-logo {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
}

.cert-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: rgb(var(--ink));
    margin-bottom: 0.35rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-issuer {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    color: rgb(var(--g500));
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.cert-verify-link {
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
    text-decoration: none;
    transition: color 0.2s ease;
}

.cert-verify-link:hover {
    color: rgb(var(--ink));
}

/* ── GitHub Section — Redesigned ── */

/* Profile header */
.gh-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.gh-avatar-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgb(var(--g200));
    flex-shrink: 0;
    background-color: rgb(var(--g100));
}

.gh-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.35s ease;
}

.gh-avatar-wrapper:hover .gh-avatar {
    filter: grayscale(0%) contrast(1);
}

.gh-profile-info {
    flex: 1;
    min-width: 0;
}

.gh-username {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    color: rgb(var(--ink));
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.gh-username:hover {
    opacity: 0.65;
}

.gh-arrow {
    font-size: 11px;
    color: rgb(var(--g400));
    transition: transform 0.2s ease;
}

.gh-username:hover .gh-arrow {
    transform: translate(1px, -1px);
}

.gh-bio {
    font-size: 13px;
    color: rgb(var(--g500));
    margin-top: 0.15rem;
    line-height: 1.4;
}

.gh-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
    width: 100%;
    margin-top: -0.25rem;
    padding-left: 4rem; /* align under username, past avatar */
}

@media (max-width: 639px) {
    .gh-profile-meta {
        padding-left: 0;
    }
}

.gh-meta-item {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gh-meta-dot {
    color: rgb(var(--g300));
}

/* Contribution graph card */
.gh-card {
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    padding: 1.25rem;
    background-color: rgb(var(--bg));
    box-shadow: 0 8px 22px -14px rgba(10, 10, 10, 0.12);
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

html.dark .gh-card {
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
}

.gh-card:hover {
    box-shadow: 0 18px 36px -20px rgba(10, 10, 10, 0.2);
    transform: translateY(-2px);
}

html.dark .gh-card:hover {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.gh-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.gh-card-label {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
}

/* Graph wrapper with month labels and day labels */
.gh-graph-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem; /* space for potential scrollbar */
}

/* Custom scrollbar for graph */
.gh-graph-wrapper::-webkit-scrollbar {
    height: 4px;
}
.gh-graph-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.gh-graph-wrapper::-webkit-scrollbar-thumb {
    background-color: rgb(var(--g200));
    border-radius: 4px;
}

.gh-months {
    display: flex;
    gap: 0;
    padding-left: 28px; /* align with grid, past day-labels */
    margin-bottom: 4px;
    width: max-content;
}

.gh-month-label {
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
    white-space: nowrap;
}

.gh-graph-body {
    display: flex;
    gap: 4px;
    width: max-content;
}

.gh-day-labels {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    gap: 3px;
    flex-shrink: 0;
    width: 24px;
}

.gh-day-label {
    font-family: 'Geist Mono', monospace;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(var(--g400));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    line-height: 1;
}

/* Grid — uses explicit pixel sizing for perfect rendering without clipping */
.github-grid {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    grid-auto-flow: column;
    grid-auto-columns: 10px;
    gap: 3px;
}

.github-dot {
    border-radius: 2px;
    display: block;
    width: 10px;
    height: 10px;
    transition: transform 0.15s ease, border-radius 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.github-dot:hover {
    transform: scale(1.6);
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.github-dot.level-0 {
    background-color: rgba(var(--ink) / 0.06);
}

.github-dot.level-1 {
    background-color: rgba(var(--ink) / 0.2);
}

.github-dot.level-2 {
    background-color: rgba(var(--ink) / 0.4);
}

.github-dot.level-3 {
    background-color: rgba(var(--ink) / 0.65);
}

.github-dot.level-4 {
    background-color: rgb(var(--ink));
}

/* Graph footer with legend */
.gh-graph-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.gh-legend {
    display: flex;
    align-items: center;
    gap: 3px;
}

.gh-legend-label {
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
    margin: 0 2px;
}

.gh-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.gh-legend-dot.level-0 { background-color: rgba(var(--ink) / 0.06); }
.gh-legend-dot.level-1 { background-color: rgba(var(--ink) / 0.2); }
.gh-legend-dot.level-2 { background-color: rgba(var(--ink) / 0.4); }
.gh-legend-dot.level-3 { background-color: rgba(var(--ink) / 0.65); }
.gh-legend-dot.level-4 { background-color: rgb(var(--ink)); }

/* Tooltip */
.github-tooltip {
    position: absolute;
    background-color: rgb(var(--g900));
    color: rgb(var(--bg));
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    transform: translateX(-50%);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}

/* Stats row — hairline-divided cells like experience timeline */
.gh-stats-row {
    display: flex;
    align-items: stretch;
    border: 1px solid rgb(var(--g200));
    border-radius: 12px;
    margin-top: 1.25rem;
    overflow: hidden;
    background-color: rgb(var(--bg));
}

.gh-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    text-align: center;
}

.gh-stat-divider {
    width: 1px;
    background-color: rgb(var(--g200));
    align-self: stretch;
    flex-shrink: 0;
}

.gh-stat-value {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 1.15rem;
    color: rgb(var(--ink));
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gh-stat-label {
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
}

@media (max-width: 480px) {
    .gh-stats-row {
        flex-wrap: wrap;
    }
    .gh-stat {
        flex: 1 1 45%;
        min-width: 0;
    }
    .gh-stat-divider {
        display: none;
    }
    .gh-stats-row {
        gap: 0;
    }
    /* Add borders between stats on mobile */
    .gh-stat:nth-child(1),
    .gh-stat:nth-child(3) {
        border-right: 1px solid rgb(var(--g200));
    }
    .gh-stat:nth-child(1),
    .gh-stat:nth-child(2) {
        border-bottom: 1px solid rgb(var(--g200));
    }
}



/* ── Ask overlay (Alt+K) ─────────────────────────── */
#askOverlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem;
}
#askOverlay.is-visible {
    display: flex;
}
.ask-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--g50) / 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity .4s ease;
}
#askOverlay.is-open .ask-backdrop {
    opacity: 1;
}
.ask-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    width: 100%;
    max-width: 760px;
    padding-left: clamp(1.5rem, 9vw, 8rem);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease .1s, transform .55s cubic-bezier(.16,1,.3,1) .1s;
}
#askOverlay.is-open .ask-content {
    opacity: 1;
    transform: none;
}
.ask-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    line-height: 1.05;
    color: rgb(var(--ink));
    letter-spacing: -0.01em;
    text-transform: lowercase;
    white-space: nowrap;
    transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
@keyframes askSweep {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    to {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
}
.ask-head.is-shimmer {
    -webkit-mask-image: linear-gradient(90deg, #000 0 38%, rgba(0,0,0,0.22) 50%, #000 62% 100%);
    mask-image: linear-gradient(90deg, #000 0 38%, rgba(0,0,0,0.22) 50%, #000 62% 100%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: askSweep 1.8s linear infinite;
}
.ask-title.is-small {
    font-size: clamp(1.25rem, 3.4vw, 1.95rem);
    line-height: 1.3;
    white-space: normal;
}
@media (max-width: 640px) {
    .ask-title {
        white-space: normal;
    }
}
.ask-head.is-shimmer .ask-title {
    color: rgb(var(--g500));
}
.ask-head {
    display: flex;
    align-items: center;
    gap: 0.5em;
    max-width: 100%;
    font-size: clamp(1.25rem, 3.4vw, 1.95rem);
}
.loader {
    width: 0.85em;
    aspect-ratio: 1;
    --_g: no-repeat radial-gradient(farthest-side, rgb(var(--g500)) 94%, #0000);
    background: var(--_g) 0 0, var(--_g) 100% 0, var(--_g) 100% 100%, var(--_g) 0 100%;
    background-size: 40% 40%;
    animation: l38 1s infinite;
}
@keyframes l38 {
    100% {
        background-position: 100% 0, 100% 100%, 0 100%, 0 0;
    }
}
#askLoader {
    display: none;
    flex: 0 0 auto;
    transform: translateY(0.08em);
}
#askLoader.is-on {
    display: block;
}
.ask-bubble {
    display: none;
    position: relative;
    margin-left: 11px;
    max-width: min(85vw, 600px);
    background: rgb(var(--g200));
    color: rgb(var(--ink));
    font-family: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    line-height: 1.45;
    padding: 10px 15px;
    border-radius: 14px;
    border-top-left-radius: 5px;
    word-break: break-word;
}
.ask-bubble.is-on {
    display: block;
    transform-origin: 0 50%;
    animation: bubbleIn .24s cubic-bezier(.16,1,.3,1);
}
.ask-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent rgb(var(--g200)) transparent transparent;
}
@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(3px) scale(.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.ask-field {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    max-width: 90vw;
    font-family: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
    font-size: clamp(1.05rem, 3vw, 1.5rem);
    color: rgb(var(--g500));
    cursor: text;
}
#askText {
    white-space: pre-wrap;
    word-break: break-word;
}
.ask-caret {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: rgb(var(--g500));
    margin-left: 3px;
    vertical-align: middle;
    animation: caretBlink 1.06s step-end infinite;
}
@keyframes caretBlink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.ask-hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    border: 0;
    padding: 0;
}

/* ── Projects Page ─────────────────────────────────── */
.proj-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}
.proj-back-link:hover {
    color: rgb(var(--ink));
}

.proj-page-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: clamp(2.2rem, 6vw, 3rem);
    line-height: 1;
    color: rgb(var(--ink));
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.proj-page-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: rgb(var(--g500));
    max-width: 34rem;
}

/* Featured project cards grid */
.proj-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .proj-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.proj-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    padding: 1.25rem;
    background-color: rgb(var(--bg));
    text-decoration: none;
    color: inherit;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.2s ease;
    box-shadow: 0 8px 22px -14px rgba(10, 10, 10, 0.12);
}

html.dark .proj-card {
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
}

.proj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -20px rgba(10, 10, 10, 0.22);
    border-color: rgb(var(--g300));
}

html.dark .proj-card:hover {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.proj-card-top {
    flex: 1;
}

.proj-card-icon-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.proj-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 10px;
    padding: 6px;
    background-color: rgb(var(--g50));
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.proj-card-footer {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(var(--g200));
}

.proj-card-meta {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
    transition: color 0.2s ease;
}

.proj-card:hover .proj-card-meta {
    color: rgb(var(--ink));
}

/* Repo list */
.proj-repo-list {
    border-top: 1px solid rgb(var(--g200));
}

.proj-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
}

.proj-empty {
    text-align: center;
    padding: 3rem 1rem;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g400));
}

.proj-repo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid rgb(var(--g200));
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.proj-repo-row:hover {
    background-color: rgba(var(--g50) / 0.8);
}

.proj-repo-main {
    flex: 1;
    min-width: 0;
}

.proj-repo-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proj-repo-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgb(var(--g400));
}

.proj-repo-name {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 14px;
    color: rgb(var(--ink));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-repo-arrow {
    font-size: 11px;
    color: rgb(var(--g300));
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.proj-repo-row:hover .proj-repo-arrow {
    transform: translate(1px, -1px);
    color: rgb(var(--ink));
}

.proj-repo-desc {
    margin-top: 0.3rem;
    font-size: 13px;
    color: rgb(var(--g500));
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proj-repo-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.proj-repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g500));
}

.gh-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.proj-repo-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
}

.proj-repo-stat svg {
    width: 12px;
    height: 12px;
}

.proj-repo-updated {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--g400));
    white-space: nowrap;
}

/* Mobile: stack repo rows */
@media (max-width: 640px) {
    .proj-repo-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .proj-repo-meta-row {
        padding-left: 1.625rem; /* align with name, past icon */
    }
    .proj-repo-desc {
        white-space: normal;
        padding-left: 1.625rem;
    }
}

/* ── Experience Page ───────────────────────────────── */
.exp-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-entry {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.exp-dot-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 12px;
    padding-top: 0.35rem;
}

.exp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgb(var(--g300));
    background-color: rgb(var(--bg));
    flex-shrink: 0;
    z-index: 1;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.exp-entry:first-child .exp-dot {
    border-color: rgb(var(--ink));
    background-color: rgb(var(--ink));
}

.exp-line {
    flex: 1;
    width: 1px;
    background-color: rgb(var(--g200));
    min-height: 2rem;
}

.exp-line.last {
    background: linear-gradient(to bottom, rgb(var(--g200)), transparent);
}

.exp-content {
    flex: 1;
    padding-bottom: 2.5rem;
    min-width: 0;
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.exp-date {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
}

.exp-type {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid rgb(var(--g200));
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--g500));
}

.exp-role {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 16px;
    line-height: 1.3;
    color: rgb(var(--ink));
    margin-bottom: 0.25rem;
}

.exp-company {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g500));
}

/* ── Bryl Lim Style Experience Layout ──────────────── */
.bl-timeline-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.bl-logo-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.bl-logo-box {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    border: 1px solid rgb(var(--g200));
    background-color: rgb(var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgb(var(--ink));
    flex-shrink: 0;
}

.bl-rail-line {
    width: 1px;
    flex: 1;
    background-color: rgb(var(--g200));
    margin-top: 0.5rem;
    min-height: 2.5rem;
}

.bl-rail-line.last {
    background: linear-gradient(to bottom, rgb(var(--g200)), transparent);
}

.bl-content {
    flex: 1;
    padding-bottom: 3rem;
    min-width: 0;
}

.bl-company-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: rgb(var(--ink));
    margin-bottom: 0.25rem;
}

.bl-meta-type {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g500));
    margin-bottom: 0.2rem;
}

.bl-meta-location {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g400));
    margin-bottom: 1.25rem;
}

.bl-role-card {
    position: relative;
}

.bl-role-title {
    font-size: 15px;
    font-weight: 500;
    color: rgb(var(--ink));
    margin-bottom: 0.25rem;
}

.bl-role-date {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
    margin-bottom: 0.75rem;
}

.bl-role-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgb(var(--g600));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bl-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgb(var(--g200));
    background-color: rgb(var(--bg));
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: rgb(var(--g600));
}

.exp-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgb(var(--g600));
    margin-bottom: 1rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.exp-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgb(var(--g200));
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--g500));
}

/* Education card */
.exp-edu-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    background-color: rgb(var(--bg));
    box-shadow: 0 8px 22px -14px rgba(10, 10, 10, 0.12);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

html.dark .exp-edu-card {
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
}

.exp-edu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -20px rgba(10, 10, 10, 0.2);
}

html.dark .exp-edu-card:hover {
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.exp-edu-icon {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 10px;
    padding: 7px;
    background-color: rgb(var(--g50));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-edu-icon svg {
    width: 100%;
    height: 100%;
}

.exp-edu-info {
    flex: 1;
    min-width: 0;
}

.exp-edu-degree {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    line-height: 1.3;
    color: rgb(var(--ink));
    margin-bottom: 0.2rem;
}

.exp-edu-school {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    color: rgb(var(--g500));
    margin-bottom: 0.65rem;
}

.exp-edu-detail {
    font-size: 13px;
    line-height: 1.6;
    color: rgb(var(--g600));
}

/* Stack grid on experience page */
.exp-stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .exp-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.exp-stack-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exp-stack-label {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--g400));
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgb(var(--g200));
}

.exp-stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .exp-edu-card {
        flex-direction: column;
        gap: 1rem;
    }
    .exp-edu-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ── Stack Page ────────────────────────────────────── */
.stk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .stk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stk-card {
    border: 1px solid rgb(var(--g200));
    border-radius: 12px;
    padding: 1.15rem;
    background-color: rgb(var(--bg));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
    box-shadow: 0 4px 14px -10px rgba(10, 10, 10, 0.1);
}

html.dark .stk-card {
    box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.35);
}

.stk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(10, 10, 10, 0.18);
    border-color: rgb(var(--g300));
}

html.dark .stk-card:hover {
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.stk-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.stk-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 8px;
    background-color: rgb(var(--g50));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: rgb(var(--ink));
    letter-spacing: -0.02em;
}

.stk-card-name {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 14px;
    line-height: 1.2;
    color: rgb(var(--ink));
}

.stk-card-level {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
}

.stk-card-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgb(var(--g500));
    margin-bottom: 0.75rem;
}

.stk-bar {
    height: 3px;
    width: 100%;
    background-color: rgb(var(--g100));
    border-radius: 999px;
    overflow: hidden;
}

.stk-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-color: rgb(var(--ink));
    opacity: 0.55;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .stk-fill {
    opacity: 0.45;
}

/* Focus area cards */
.stk-focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .stk-focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stk-focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stk-focus-card {
    border: 1px solid rgb(var(--g200));
    border-radius: 12px;
    padding: 1.25rem;
    background-color: rgb(var(--bg));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
    box-shadow: 0 4px 14px -10px rgba(10, 10, 10, 0.1);
}

html.dark .stk-focus-card {
    box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.35);
}

.stk-focus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(10, 10, 10, 0.18);
    border-color: rgb(var(--g300));
}

html.dark .stk-focus-card:hover {
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.stk-focus-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 10px;
    padding: 7px;
    background-color: rgb(var(--g50));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stk-focus-icon svg {
    width: 100%;
    height: 100%;
}

.stk-focus-name {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 14px;
    line-height: 1.3;
    color: rgb(var(--ink));
    margin-bottom: 0.5rem;
}

.stk-focus-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: rgb(var(--g500));
}

/* ── Certifications Page ───────────────────────────── */
.crt-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    background-color: rgb(var(--bg));
    box-shadow: 0 8px 22px -14px rgba(10, 10, 10, 0.1);
}

html.dark .crt-stats-row {
    box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.35);
}

.crt-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.crt-stat-number {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 1.75rem;
    line-height: 1;
    color: rgb(var(--ink));
}

.crt-stat-label {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
}

.crt-stat-divider {
    width: 1px;
    height: 2.5rem;
    background-color: rgb(var(--g200));
}

/* Detail cards */
.crt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crt-detail-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 16px;
    background-color: rgb(var(--bg));
    box-shadow: 0 4px 14px -10px rgba(10, 10, 10, 0.1);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
}

html.dark .crt-detail-card {
    box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.35);
}

.crt-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(10, 10, 10, 0.18);
    border-color: rgb(var(--g300));
}

html.dark .crt-detail-card:hover {
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.crt-detail-left {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.crt-detail-logo {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgb(var(--g200));
    border-radius: 12px;
    padding: 8px;
    background-color: rgb(var(--g50));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crt-detail-logo svg {
    width: 100%;
    height: 100%;
}

.crt-detail-info {
    flex: 1;
    min-width: 0;
}

.crt-detail-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 15px;
    line-height: 1.3;
    color: rgb(var(--ink));
    margin-bottom: 0.2rem;
}

.crt-detail-issuer {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--g500));
    margin-bottom: 0.65rem;
}

.crt-detail-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgb(var(--g600));
    margin-bottom: 0.75rem;
}

.crt-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crt-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--g400));
}

.crt-detail-tag {
    display: inline-flex;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgb(var(--g200));
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(var(--g500));
}

.crt-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 14px;
    border: 1px solid rgb(var(--g200));
    border-radius: 8px;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(var(--g500));
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.crt-verify-btn:hover {
    color: rgb(var(--ink));
    border-color: rgb(var(--g300));
    background-color: rgb(var(--g50));
}

/* Skills grid */
.crt-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .crt-skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.crt-skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Mobile: stack cards */
@media (max-width: 640px) {
    .crt-stats-row {
        gap: 1rem;
        padding: 1.25rem 1rem;
    }
    .crt-stat-number {
        font-size: 1.4rem;
    }
    .crt-detail-card {
        flex-direction: column;
        gap: 1rem;
    }
    .crt-detail-left {
        flex-direction: column;
        gap: 1rem;
    }
    .crt-verify-btn {
        align-self: flex-start;
    }
}

/* ── Media Queries & Utilities ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* ── Scattered overlapping certificate card wall (bryllim.com/certifications) ── */
.cert-card {
    transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px));
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
    box-shadow: 0 8px 22px -14px rgba(10,10,10,.30), 0 1px 0 rgba(10,10,10,.04);
    will-change: transform;
}
html.dark .cert-card {
    box-shadow: 0 8px 22px -14px rgba(0,0,0,.60), 0 1px 0 rgba(255,255,255,.04);
}
.cert-card:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.05);
    z-index: 30;
    box-shadow: 0 26px 46px -22px rgba(10,10,10,.45);
}
html.dark .cert-card:hover {
    box-shadow: 0 26px 46px -22px rgba(0,0,0,.85);
}

/* ── Tech Stack Tags (Photo 2 tight spacing replica) ── */
.stk-container, .space-y-10 {
    display: flex;
    flex-direction: column;
    gap: 1.75rem; /* tight 28px vertical gap between category sections */
}
.stk-container > section {
    margin-top: 0;
    margin-bottom: 0;
}
.stk-section-title, .mb-4 {
    margin-bottom: 0.75rem; /* 12px gap below category title */
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(var(--g400));
}
.stk-tags-wrap, .gap-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* gap-2 (8px gap between tag pills) */
}
span.tag, .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem; /* py-1.5 (6px) px-3 (12px) */
    border-radius: 6px; /* rounded-md */
    border: 1px solid rgb(var(--g200));
    background-color: rgb(var(--bg));
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    line-height: 1.25;
    color: rgb(var(--g700));
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    user-select: none;
}
span.tag:hover, .tag:hover {
    border-color: rgb(var(--g400));
    color: rgb(var(--ink));
}
span.tag.featured {
    background-color: rgb(var(--ink));
    color: rgb(var(--bg));
    border-color: rgb(var(--ink));
}

/* ── Page Hero Headers (Subpages: stack, experience, projects, certs) ── */
.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
    margin-bottom: 1.25rem;
    transition: color 0.2s ease;
}
.hero-back-link:hover {
    color: rgb(var(--ink));
}
.page-hero-title {
    font-family: 'Geist Pixel', 'Geist Mono', monospace;
    font-size: 2.25rem;
    line-height: 1;
    text-transform: lowercase;
    margin-bottom: 1rem;
    color: rgb(var(--ink));
}
.page-hero-subtitle {
    max-width: 38rem;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    line-height: 1.625;
    color: rgb(var(--g600));
}

/* ── GitHub Section (Dot Matrix Minimal) ── */
#github {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gh-dot-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: none;
}

.gh-dot-wrapper::-webkit-scrollbar {
    display: none;
}

.gh-dots-grid {
    display: grid;
    grid-template-rows: repeat(7, 14px);
    grid-auto-flow: column;
    grid-auto-columns: 14px;
    gap: 3px;
    align-items: center;
    justify-items: center;
    min-width: 680px;
}

.gh-dot-cell {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gh-dot-node {
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.gh-dot-cell:hover .gh-dot-node {
    transform: scale(1.5);
}

.gh-dot-node.level-0 {
    width: 3px;
    height: 3px;
    background-color: rgb(var(--ink));
    opacity: 0.22;
}

.gh-dot-node.level-1 {
    width: 5px;
    height: 5px;
    background-color: rgb(var(--ink));
    opacity: 0.55;
}

.gh-dot-node.level-2 {
    width: 8px;
    height: 8px;
    background-color: rgb(var(--ink));
    opacity: 0.8;
}

.gh-dot-node.level-3 {
    width: 11px;
    height: 11px;
    background-color: rgb(var(--ink));
    opacity: 0.95;
}

.gh-dot-node.level-4 {
    width: 14px;
    height: 14px;
    background-color: rgb(var(--ink));
    opacity: 1;
}

.gh-total-label {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(var(--g400));
}

.gh-tooltip {
    position: absolute;
    padding: 4px 8px;
    background-color: rgb(var(--ink));
    color: rgb(var(--bg));
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.gh-tooltip.is-active {
    opacity: 1;
    transform: translateY(0);
}




