:root {
    --bg: #F7F5FF;
    --bg-2: #EDE9FA;
    --bg-3: #E8E3F7;
    --bg-4: #DDD6F2;
    --surface: rgba(0, 0, 0, .04);
    --surface-hover: rgba(70, 230, 208, .08);
    --text: #3D3657;
    --text-2: #524B6E;
    --text-3: #6F668D;
    --heading: #1A1433;
    --heading-2: #0F0B22;
    --accent: #7C3AED;
    --accent-2: #6D28D9;
    --accent-3: #5B21B6;
    --teal: #0D9488;
    --teal-soft: rgba(13, 148, 136, .12);
    --border: rgba(0, 0, 0, .1);
    --border-hover: rgba(13, 148, 136, .35);
    --max-width: 1180px;
    --radius: 14px;
    --radius-lg: 22px;
    --font-sans: 'IBM Plex Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    --font-heading: 'Noto Sans SC', 'IBM Plex Sans', sans-serif;
}

[data-theme="dark"] {
    --bg: #08060F;
    --bg-2: #0A0712;
    --bg-3: #0C0820;
    --bg-4: #140A2E;
    --surface: rgba(255, 255, 255, .04);
    --surface-hover: rgba(70, 230, 208, .06);
    --text: #B3ABD2;
    --text-2: #A79FC8;
    --text-3: #8C81BA;
    --heading: #F1ECFF;
    --heading-2: #F4F0FF;
    --accent: #C795FF;
    --accent-2: #9B7BFF;
    --accent-3: #7C5CFF;
    --teal: #46E6D0;
    --teal-soft: rgba(70, 230, 208, .12);
    --border: rgba(255, 255, 255, .1);
    --border-hover: rgba(70, 230, 208, .35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

#dyl-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #8B5CF6, #C084FC, #7C5CFF);
}

[data-theme="light"] #dyl-progress {
    background: linear-gradient(90deg, #7C3AED, #A78BFA, #6D28D9);
}

#dyl-nav {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 46px;
    height: 66px;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: blur(10px);
    transition: background .4s, border-color .4s;
}

#dyl-nav.scrolled {
    background: var(--bg-2);
    background: rgba(from var(--bg-2) r g b / .86);
    border-color: var(--border);
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 13px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: .01em;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link {
    color: var(--text-2);
    transition: color .25s;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.mobile-menu-toggle span:nth-child(1) { width: 100%; }
.mobile-menu-toggle span:nth-child(2) { width: 75%; }
.mobile-menu-toggle span:nth-child(3) { width: 100%; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Solid fallback first: the relative-color syntax below is dropped
       entirely by browsers that don't support it, leaving the menu
       transparent over page content. */
    background: var(--bg-2);
    background: rgba(from var(--bg-2) r g b / .98);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    padding: 96px 24px 30px;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 99;
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-link {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-link.active {
    color: var(--accent);
}

#dyl-lang-toggle {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--bg);
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border: none;
    padding: 6px 13px;
    border-radius: 20px;
}

#dyl-search-trigger {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-2);
    line-height: 1;
}
#dyl-search-trigger:hover {
    color: var(--teal);
}

#dyl-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-2);
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color .25s, background .25s;
}
#dyl-theme-toggle:hover {
    color: var(--teal);
    background: var(--surface-hover);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-parallax {
    position: absolute;
    inset: -8% -2%;
    will-change: transform;
}

.hero-layer {
    position: absolute;
    inset: 0;
    transition: opacity 1.1s ease;
}

.hero-layer:nth-child(1) {
    background: radial-gradient(60% 80% at 22% 16%, rgba(150, 96, 255, .5), transparent 56%),
                radial-gradient(55% 75% at 86% 22%, rgba(192, 84, 252, .36), transparent 52%),
                radial-gradient(80% 90% at 60% 104%, rgba(108, 72, 230, .4), transparent 60%),
                linear-gradient(150deg, #1B0E3E 0%, #0A0712 60%);
}

.hero-layer:nth-child(2) {
    background: radial-gradient(60% 80% at 78% 18%, rgba(196, 80, 236, .5), transparent 56%),
                radial-gradient(60% 80% at 16% 30%, rgba(130, 70, 255, .34), transparent 52%),
                radial-gradient(80% 90% at 50% 104%, rgba(150, 60, 210, .4), transparent 60%),
                linear-gradient(150deg, #2A0E40 0%, #0A0712 60%);
}

.hero-layer:nth-child(3) {
    background: radial-gradient(60% 80% at 30% 20%, rgba(110, 90, 255, .5), transparent 56%),
                radial-gradient(55% 75% at 84% 26%, rgba(150, 96, 255, .34), transparent 52%),
                radial-gradient(80% 90% at 55% 104%, rgba(90, 70, 230, .4), transparent 60%),
                linear-gradient(150deg, #160D3A 0%, #0A0712 60%);
}

[data-theme="light"] .hero-layer:nth-child(1) {
    background: radial-gradient(60% 80% at 22% 16%, rgba(124, 58, 237, .32), transparent 56%),
                radial-gradient(55% 75% at 86% 22%, rgba(139, 92, 246, .24), transparent 52%),
                radial-gradient(80% 90% at 60% 104%, rgba(109, 40, 217, .28), transparent 60%),
                linear-gradient(150deg, #E2D9F5 0%, #F0EDFA 60%);
}

[data-theme="light"] .hero-layer:nth-child(2) {
    background: radial-gradient(60% 80% at 78% 18%, rgba(124, 58, 237, .32), transparent 56%),
                radial-gradient(60% 80% at 16% 30%, rgba(139, 92, 246, .24), transparent 52%),
                radial-gradient(80% 90% at 50% 104%, rgba(109, 40, 217, .28), transparent 60%),
                linear-gradient(150deg, #DDD6F2 0%, #F7F5FF 60%);
}

[data-theme="light"] .hero-layer:nth-child(3) {
    background: radial-gradient(60% 80% at 30% 20%, rgba(124, 58, 237, .32), transparent 56%),
                radial-gradient(55% 75% at 84% 26%, rgba(139, 92, 246, .24), transparent 52%),
                radial-gradient(80% 90% at 55% 104%, rgba(109, 40, 217, .28), transparent 60%),
                linear-gradient(150deg, #D9D1EE 0%, #F7F5FF 60%);
}

.hero-particles {
    position: absolute;
    inset: -10% 0;
    will-change: transform;
    pointer-events: none;
}

.hero-particles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 120%, rgba(from var(--bg) r g b / .92), transparent 60%);
    pointer-events: none;
}

.hero-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(from var(--bg) r g b / .7), transparent);
    pointer-events: none;
}

.hero-content-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 70% at 20% 80%, rgba(from var(--bg) r g b / .55), transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: absolute;
    left: 46px;
    right: 46px;
    bottom: 78px;
    z-index: 3;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .34em;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 1px 16px rgba(from var(--bg) r g b / .35);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    max-width: 980px;
    text-wrap: pretty;
    background: linear-gradient(180deg, var(--heading), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 14px rgba(from var(--bg) r g b / .4));
}

.hero-sub {
    font-size: 18px;
    color: rgba(from var(--heading) r g b / .92);
    max-width: 620px;
    margin-bottom: 34px;
    text-shadow: 0 1px 12px rgba(from var(--bg) r g b / .45);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bg);
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    padding: 13px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(from var(--accent) r g b / .25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--heading-2);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 9px;
    transition: border-color .25s, background .25s;
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(from var(--accent) r g b / .9);
    text-shadow: 0 1px 10px rgba(from var(--bg) r g b / .35);
}

.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.hero-dot {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    opacity: .3;
    border: none;
    cursor: pointer;
    transition: opacity .4s;
}

.hero-dot.active {
    opacity: 1;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.scroll-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .22em;
    color: rgba(from var(--accent) r g b / .6);
}

.scroll-arrow {
    font-size: 15px;
    color: rgba(from var(--accent) r g b / .7);
    animation: scrollcue 1.7s ease-in-out infinite;
}

@keyframes scrollcue {
    0% { transform: translateY(0); opacity: .9; }
    50% { transform: translateY(7px); opacity: .3; }
    100% { transform: translateY(0); opacity: .9; }
}

.section {
    position: relative;
    padding: 120px 46px;
}

[data-fx-pad] {
    padding: 120px 46px;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .3em;
    color: var(--accent-3);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 40px;
    color: var(--heading);
    margin: 0 0 72px;
    max-width: 680px;
    text-wrap: pretty;
}

.featured {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
}

.featured-row {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 130px;
}

.featured-row.reverse {
    flex-direction: row-reverse;
}

.featured-row:last-child {
    margin-bottom: 0;
}

.featured-cover {
    flex: 1.1;
    position: relative;
    height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='440' viewBox='0 0 800 440'%3E%3Crect width='800' height='440' fill='%23DDD6F2'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .featured-cover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='440' viewBox='0 0 800 440'%3E%3Crect width='800' height='440' fill='%23140A2E'/%3E%3C/svg%3E");
}

.featured-parallax {
    position: absolute;
    inset: -12% 0;
    will-change: transform;
}

.featured-bg {
    position: absolute;
    inset: -46px 0;
    background: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px);
}

.featured-bg.bg-0 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #3A1E7A 0%, #7C42C8 52%, #1A0F3A 100%);
}

.featured-bg.bg-1 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #5B2A8F 0%, #C04BD8 52%, #2A0F3E 100%);
}

.featured-bg.bg-2 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #2B1E7A 0%, #7C5CFF 52%, #160C33 100%);
}

[data-theme="light"] .featured-bg.bg-0 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #F3E8FF 0%, #E9D5FF 52%, #FAF5FF 100%);
}

[data-theme="light"] .featured-bg.bg-1 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #EDE9FA 0%, #DDD6F2 52%, #F7F5FF 100%);
}

[data-theme="light"] .featured-bg.bg-2 {
    background-image: repeating-linear-gradient(135deg, var(--surface) 0 2px, transparent 2px 15px), linear-gradient(140deg, #E0D4FF 0%, #F5F3FF 52%, #EDE9FA 100%);
}

.featured-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(from var(--bg) r g b / .6), transparent 60%);
    pointer-events: none;
}

.featured-cover-note {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: rgba(from var(--heading) r g b / .55);
    letter-spacing: .08em;
}

.featured-text {
    flex: 1;
    position: relative;
}

.featured-ghost {
    position: absolute;
    top: -78px;
    left: -6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 120px;
    line-height: 1;
    color: rgba(from var(--accent) r g b / .07);
    pointer-events: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.featured-row.reverse .featured-ghost {
    left: auto;
    right: -6px;
    text-align: right;
}

.featured-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.featured-heading {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 34px;
    line-height: 1.26;
    color: var(--heading-2);
    margin: 0 0 18px;
    text-wrap: pretty;
}

.featured-desc {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-2);
    margin: 0 0 26px;
    max-width: 440px;
}

.featured-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    border-bottom: 1px solid rgba(from var(--accent) r g b / .4);
    padding-bottom: 3px;
    transition: color .25s, border-color .25s;
}

.featured-link:hover {
    color: var(--teal);
    border-bottom-color: rgba(from var(--teal) r g b / .5);
}

.about-short {
    background: linear-gradient(180deg, var(--bg-3), var(--bg-4));
    overflow: hidden;
}

.about-short .about-inner {
    position: relative;
    max-width: 880px;
    z-index: 1;
}

.about-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 200px;
    line-height: 1;
    color: rgba(from var(--accent) r g b / .05);
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
}

.about-head {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 56px;
    line-height: 1.15;
    color: var(--heading-2);
    margin: 0 0 28px;
}

.about-body {
    font-size: 18px;
    line-height: 1.95;
    color: var(--text);
    margin: 0 0 40px;
    max-width: 680px;
}

.skill-list {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.skill-chip {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: rgba(from var(--accent) r g b / .12);
    border: 1px solid rgba(from var(--accent) r g b / .28);
    padding: 8px 15px;
    border-radius: 9px;
}

.recent {
    background: var(--bg-2);
}

.recent-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 56px;
}

.view-all {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-2);
    transition: color .25s;
}

.view-all:hover {
    color: var(--teal);
}

.recent-list {
    display: flex;
    flex-direction: column;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 26px 8px;
    border-top: 1px solid var(--border);
    border-radius: 10px;
    transition: background .25s;
}

.recent-item:hover {
    background: var(--surface-hover);
}

.recent-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
    width: 104px;
    flex-shrink: 0;
}

.recent-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    border: 1px solid rgba(from var(--accent) r g b / .3);
    background: rgba(from var(--accent) r g b / .1);
    padding: 3px 11px;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--heading-2);
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    text-wrap: pretty;
}

.recent-arrow {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--teal);
}

.tag-marquee {
    padding: 70px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.tag-marquee .section-kicker {
    margin: 0 46px 30px;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee-track {
    display: flex;
    gap: 18px;
    padding-right: 18px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tag-chip {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 11px 20px;
    border-radius: 30px;
    white-space: nowrap;
    transition: border-color .25s, color .25s;
}

.tag-chip:hover {
    border-color: var(--border-hover);
    color: var(--heading-2);
}

.tag-count {
    color: var(--teal);
    font-size: 13px;
}

.site-footer {
    position: relative;
    padding: 90px 46px 54px;
    overflow: hidden;
    background: radial-gradient(90% 120% at 50% 0%, rgba(from var(--accent-3) r g b / .22), transparent 55%), var(--bg);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 42px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
}

.footer-social {
    display: flex;
    gap: 26px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-2);
}

.footer-social a:hover {
    color: var(--teal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
}

.status-dot {
    color: var(--accent-2);
}

.article-page {
    padding: 128px 46px 40px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
}

.article-grid {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 20px;
    word-break: break-all;
}

.article-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 42px;
    line-height: 1.28;
    color: var(--heading-2);
    margin: 0 0 22px;
    text-wrap: pretty;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 26px;
    margin-bottom: 34px;
}

.meta-badge {
    color: var(--accent);
}

.article-body {
    font-size: 17px;
    line-height: 1.95;
    color: var(--text);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    max-width: 640px;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 26px;
    color: var(--heading);
    margin: 44px 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-2);
}

.article-body h3 {
    font-size: 22px;
    color: var(--heading);
    margin: 32px 0 14px;
}

.article-body p {
    margin: 0 0 24px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-body li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.7;
}

.article-body li::before {
    content: "·";
    color: var(--teal);
    flex-shrink: 0;
    font-weight: 700;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    background: rgba(from var(--accent) r g b / .1);
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.85;
    color: var(--heading-2);
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 14.5px;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid rgba(from var(--teal) r g b / .22);
    padding: 2px 7px;
    border-radius: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-body pre {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    overflow: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px 20px;
    margin: 24px 0;
}

.article-body pre code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
}

.article-body pre[class*="language-"] {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    overflow: auto;
    max-width: 100%;
    min-width: 0;
}
.article-body pre[class*="language-"] code[class*="language-"] {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mermaid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 28px 0;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-2);
}

.mermaid-view {
    display: flex;
    justify-content: center;
}

.mermaid-view[hidden],
.mermaid-source[hidden] {
    display: none;
}

.mermaid-source {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-variant-ligatures: none;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.mermaid-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
}

.mermaid:hover .mermaid-toolbar,
.mermaid-toolbar:focus-within {
    opacity: 1;
}

.mermaid-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .mermaid-toolbar {
        transition: none;
    }
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.article-body th,
.article-body td {
    border: 1px solid var(--border);
    padding: 10px 14px;
}

.article-body th {
    background: var(--surface);
}

.article-nav {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
    margin-top: 20px;
}

.nav-card {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--surface);
    transition: border-color .25s, background .25s;
}

.nav-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.nav-card.nav-next {
    text-align: right;
}

.nav-card.empty {
    border: none;
    background: transparent;
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 15px;
    color: var(--heading-2);
}

.toc {
    width: 236px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
}

.toc-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--accent-2);
    margin-bottom: 18px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.toc-item {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-2);
    padding: 8px 0 8px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    transition: color .25s, border-color .25s;
}

.toc-item:hover {
    color: var(--teal);
    border-left-color: var(--teal);
}

.toc-item.active {
    color: var(--teal);
    border-left-color: var(--teal);
}

.archive-page,
.tags-page,
.about-page,
.nf-page {
    padding: 140px 46px 60px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    min-height: 80vh;
}

.archive-inner,
.tags-inner {
    max-width: 920px;
    margin: 0 auto;
}

.archive-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 48px;
    color: var(--heading-2);
    margin: 0 0 10px;
}

.archive-sub {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 54px;
}

.archive-year-block {
    margin-bottom: 44px;
}

.archive-year-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.archive-year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--accent);
}

.archive-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .25s, border-color .25s;
}

.archive-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.archive-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
    width: 52px;
    flex-shrink: 0;
}

.posts-list .archive-date {
    width: 92px;
    white-space: nowrap;
}

.archive-cat {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--accent);
    border: 1px solid rgba(from var(--accent) r g b / .3);
    background: rgba(from var(--accent) r g b / .1);
    padding: 3px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.archive-item-title {
    font-size: 18px;
    color: var(--heading-2);
    flex: 1;
    line-height: 1.45;
    text-wrap: pretty;
}

.archive-arrow {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-3);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 70px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .25s, background .25s;
}

.category-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.category-arrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-2);
}

.category-name {
    font-size: 18px;
    color: var(--heading-2);
    flex: 1;
}

.category-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal);
    background: rgba(from var(--teal) r g b / .08);
    border: 1px solid rgba(from var(--teal) r g b / .25);
    padding: 3px 12px;
    border-radius: 20px;
}

.tags-section-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 30px;
}

.tags-total {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pill {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 9px 16px;
    border-radius: 9px;
    transition: border-color .25s, color .25s;
}

.tag-pill:hover {
    border-color: var(--border-hover);
    color: var(--heading-2);
}

.about-page {
    position: relative;
    overflow: hidden;
}

.about-page .about-ghost {
    top: 120px;
    right: -40px;
    left: auto;
    transform: none;
    font-size: 180px;
}

.about-page .about-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 1;
}

.about-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 52px;
    color: var(--heading-2);
    margin: 0 0 30px;
}

.about-para {
    font-size: 18px;
    line-height: 1.95;
    color: var(--text-2);
    margin: 0 0 22px;
}

.posts-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 6px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-2);
    transition: border-color .25s;
}

.posts-filter:focus-within {
    border-color: var(--border-hover);
}

.posts-filter-icon {
    font-size: 18px;
    color: var(--text-3);
}

.posts-filter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--heading);
}

.posts-filter-input::placeholder {
    color: var(--text-3);
}

.posts-filter-empty {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-3);
    padding: 28px 0;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
}

.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--heading-2);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 9px;
    transition: border-color .25s, background .25s;
}

.pagination a.page-btn:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.pagination .page-btn.is-disabled {
    opacity: .4;
    cursor: default;
}

.pagination .page-info {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-2);
}

.about-resume-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: -6px 0 30px;
}

.about-section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    color: var(--heading);
    margin: 0 0 20px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-2);
}

.now-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 50px;
}

.now-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
}

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

.now-key {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--heading-2);
}

.now-value {
    font-size: 13.5px;
    color: var(--text-3);
    text-align: right;
}

.find-me {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.find-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 11px 18px;
    border-radius: 10px;
    transition: border-color .25s, color .25s;
}

.find-link:hover {
    border-color: var(--border-hover);
    color: var(--teal);
}

.nf-page {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(80% 90% at 50% 30%, rgba(from var(--accent-3) r g b / .28), transparent 60%), var(--bg);
}

.nf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 340px;
    line-height: 1;
    color: rgba(from var(--accent) r g b / .07);
    pointer-events: none;
}

.nf-card {
    position: relative;
    width: 560px;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    background: var(--bg-2);
}

.nf-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--bg-3);
}

.nf-card-header span:first-child,
.nf-card-header span:nth-child(2),
.nf-card-header span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.nf-card-header span:first-child { background: #E5484D; }
.nf-card-header span:nth-child(2) { background: #E8B339; }
.nf-card-header span:nth-child(3) { background: #30A46C; }

.nf-card-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin-left: 8px;
}

.nf-card-body {
    padding: 28px 26px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.95;
}

.nf-line {
    margin-bottom: 4px;
}

.nf-line.muted {
    color: var(--text-3);
}

.nf-line.error {
    color: #E5484D;
}

.nf-line .accent {
    color: var(--accent-2);
}

.nf-line-spacer {
    height: 10px;
}

.nf-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .9s cubic-bezier(.16, .84, .3, 1), transform .9s cubic-bezier(.16, .84, .3, 1);
    will-change: opacity, transform;
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .marquee {
        animation: none !important;
    }
    .scroll-arrow {
        animation: none !important;
    }
}

@media (max-width: 960px) {
    .article-grid {
        flex-direction: column;
    }
    .toc {
        width: 100%;
        position: static;
        margin-top: 32px;
    }
}

@media (max-width: 760px) {
    #dyl-nav {
        padding: 0 20px;
    }
    .tagline {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
    }
    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 48px;
    }
    .hero-title {
        font-size: 34px;
        line-height: 1.18;
    }
    .kicker {
        font-size: 10.5px;
        letter-spacing: .18em;
    }
    .hero-sub {
        font-size: 15px;
    }
    .hero-cta {
        gap: 12px;
    }
    [data-fx-pad],
    .section {
        padding: 76px 20px;
    }
    .section-title,
    .archive-title,
    .about-title {
        font-size: 26px;
    }
    .about-head {
        font-size: 34px;
    }
    .featured-row,
    .featured-row.reverse {
        flex-direction: column;
        gap: 28px;
        margin-bottom: 64px;
    }
    .featured-cover {
        height: 220px;
        width: 100%;
    }
    .featured-ghost,
    .about-ghost {
        display: none;
    }
    .recent-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .recent-title {
        width: 100%;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 28px;
    }
    .nf-watermark {
        font-size: 180px;
    }
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.article-body pre:hover .code-copy-btn,
.code-copy-btn:focus {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .code-copy-btn {
        transition: none;
    }
}

/* ---------- search modal ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(from var(--bg) r g b / 85%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
[data-theme="dark"] .search-overlay {
    background: rgba(8, 6, 15, .85);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-modal {
    width: 640px;
    max-width: calc(100vw - 40px);
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    overflow: hidden;
}
.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--heading);
}
.search-input::placeholder {
    color: var(--text-3);
}
.search-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}
.search-results {
    max-height: 60vh;
    overflow: auto;
}
.search-empty,
.search-no-results,
.search-error {
    padding: 28px 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
}
.search-result {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.search-result:hover,
.search-result.focused {
    background: var(--surface-hover);
}
.search-result-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--heading);
    margin-bottom: 6px;
}
.search-result-title mark {
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 3px;
    padding: 0 2px;
}
.search-result-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 6px;
}
.search-result-excerpt {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}
.search-result-excerpt mark {
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 3px;
    padding: 0 2px;
}

.search-close {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 22px;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
    padding: 0 0 4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.search-close:hover,
.search-close:focus-visible {
    color: var(--heading);
    background: var(--surface-hover);
}
.search-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.search-footer-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
}
.search-result.focused {
    background: var(--surface-hover);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .search-overlay,
    .search-result {
        transition: none;
    }
}

/* ---------- about page v2: engineer console ---------- */
.about-page {
    position: relative;
    overflow: hidden;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    gap: 40px;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto 80px;
}

.terminal-window {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
    position: relative;
}

[data-theme="dark"] .terminal-window {
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.terminal-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, .02) 2px,
        rgba(0, 0, 0, .02) 4px
    );
    pointer-events: none;
    border-radius: inherit;
}

[data-theme="dark"] .terminal-window::after {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, .015) 2px,
        rgba(255, 255, 255, .015) 4px
    );
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.terminal-header span:nth-child(1),
.terminal-header span:nth-child(2),
.terminal-header span:nth-child(3) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-header span:nth-child(1) { background: #E5484D; }
.terminal-header span:nth-child(2) { background: #E8B339; }
.terminal-header span:nth-child(3) { background: #30A46C; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

.terminal-body {
    padding: 26px 28px 32px;
    font-family: var(--font-mono);
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-2);
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.terminal-line--muted {
    margin-top: 28px;
    margin-bottom: 12px;
    opacity: .7;
}

.terminal-prompt {
    color: var(--teal);
    font-weight: 700;
    user-select: none;
}

.terminal-cmd {
    color: var(--heading-2);
}

.terminal-cursor {
    display: inline-block;
    width: 9px;
    height: 1.2em;
    background: var(--teal);
    vertical-align: middle;
    animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-cursor {
        animation: none;
        opacity: 1;
    }
}

.terminal-output p {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--text-2);
}

.terminal-output p:last-child {
    margin-bottom: 0;
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 20px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--heading-2);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    transition: border-color .25s, background .25s, transform .2s;
}

.skill-tag:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.about-hero-side {
    position: sticky;
    top: 100px;
}

.about-identity {
    text-align: center;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    margin-bottom: 20px;
}

.about-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--border);
    box-shadow: 0 12px 40px rgba(from var(--accent) r g b / .18);
    margin-bottom: 18px;
    object-fit: cover;
}

.about-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 26px;
    color: var(--heading-2);
    margin-bottom: 4px;
}

.about-handle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-3);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-2);
    text-align: center;
}

.about-stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--heading-2);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.about-section {
    max-width: var(--max-width);
    margin: 0 auto 70px;
}

.about-section-header {
    margin-bottom: 28px;
}

.about-section-header .section-kicker {
    margin-bottom: 10px;
}

.about-section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 28px;
    color: var(--heading);
    margin: 0;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.repo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-2);
    transition: border-color .25s, transform .2s, box-shadow .2s;
}

.repo-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
}

[data-theme="dark"] .repo-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}

.repo-card--loading {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 14px;
    min-height: 120px;
}

.repo-card--error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-3);
}

.repo-loading-dots {
    display: inline-flex;
    gap: 5px;
    margin-right: 10px;
}

.repo-loading-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    animation: loading-dots 1.4s ease-in-out infinite;
}

.repo-loading-dots i:nth-child(2) { animation-delay: .2s; }
.repo-loading-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes loading-dots {
    0%, 80%, 100% { transform: scale(0); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .repo-loading-dots i {
        animation: none;
        transform: scale(1);
        opacity: 1;
    }
}

.repo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.repo-name {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-2);
    word-break: break-word;
}

.repo-stars {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
    flex-shrink: 0;
}

.repo-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.repo-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
}

.contact-btn-meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    opacity: .75;
    font-weight: 400;
}

@media (max-width: 960px) {
    .about-hero {
        grid-template-columns: 1fr;
    }
    .about-hero-side {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 24px;
        align-items: start;
    }
    .about-identity {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .about-hero {
        margin-bottom: 60px;
    }
    .terminal-body {
        padding: 20px;
        font-size: 13.5px;
    }
    .about-hero-side {
        grid-template-columns: 1fr;
    }
    .about-avatar {
        width: 120px;
        height: 120px;
    }
    .repo-grid {
        grid-template-columns: 1fr;
    }
    .contact-actions {
        flex-direction: column;
    }
    .contact-btn {
        justify-content: space-between;
    }
}
