:root {
    --bg-color: #121212;
    --text-main: #E5E5E5;
    --text-muted: #8F8F8F;
    --border-color: #2D2D2D;
    --card-bg: #1A1A1A;
    --accent: #FF3B3B;
    --code-bg: #0A0A0A;
    --font-main: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrainsMono Nerd Font', 'JetBrains Mono Nerd Font', 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
    overflow-x: hidden;
}

body {
    max-width: 100%;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(234, 234, 234, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 234, 234, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 0;
}

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

.mono {
    font-family: var(--font-mono);
}

.text-blue {
    color: var(--accent);
}

.text-gradient {
    color: var(--accent);
    display: inline-block;
}

.hero h1,
.archive-hero h1,
section h2,
.blog-section-title,
.case-hero #case-title {
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.nav-hidden {
    transform: translateY(-100%);
}

main {
    padding-top: 75px;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: -1.5px;
    text-wrap: balance;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

section.in-view h2::after {
    width: 100%;
}

.hero {
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -3px;
    text-wrap: balance;
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    color: var(--text-muted);
    text-wrap: pretty;
}

.hero-console {
    margin-top: 36px;
    max-width: 620px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.hero-console-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.hero-console-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    opacity: 0.5;
}

.hero-console .hero-typed {
    margin: 0;
    padding: 18px;
    border-right: 2px solid var(--accent);
    min-height: 1.8em;
    font-size: 0.95rem;
    line-height: 1.7;
    animation: typingCursor 0.9s step-end infinite;
}

.hero-typed.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes typingCursor {
    0%, 100% { border-right-color: var(--accent); }
    50%      { border-right-color: transparent; }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.in-view > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.in-view > *:nth-child(n+9) { transition-delay: 0.48s; }

.intro-grid {
    display: block;
}

.intro-col + .intro-col {
    margin-top: 48px;
}

.intro-about p {
    max-width: 56ch;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-wrap: pretty;
}

@media (min-width: 900px) {
    .intro-grid {
        display: grid;
        grid-template-columns: minmax(220px, 300px) 1fr;
        gap: 64px;
        align-items: start;
    }
    .intro-col + .intro-col {
        margin-top: 0;
    }
}

.obsessions-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.obsessions-list li {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.obsessions-list li:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.sec-feature {
    display: block;
    padding: 24px 22px;
    margin-bottom: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    text-decoration: none;
}

.sec-feature-tag {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.sec-feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 10px;
}

.sec-feature:hover .sec-feature-title {
    color: var(--accent);
}

.sec-feature-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

.contact-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 30px;
}

.contact-box > p {
    max-width: 56ch;
    margin-bottom: 16px;
}

.contact-box ul {
    list-style: none;
}

.pgp-details {
    margin-top: 4px;
}

.pgp-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    list-style: none;
    transition: color 0.15s ease;
}

.pgp-summary::-webkit-details-marker {
    display: none;
}

.pgp-summary::marker {
    content: '';
}

.pgp-summary:hover {
    color: var(--text-main);
}

.pgp-summary svg {
    flex-shrink: 0;
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.pgp-details[open] .pgp-summary {
    color: var(--text-main);
}

.pgp-details[open] .pgp-summary svg {
    transform: rotate(0deg);
}

.contact-box ul li {
    margin-bottom: 8px;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-all;
}

.contact-box ul li a {
    color: var(--accent);
}

.contact-box img {
    max-width: 320px;
    width: 100%;
    display: block;
    margin: 24px auto;
    border-radius: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.35);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

footer p {
    opacity: 0.8;
}

.search-wrapper {
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}

.sec-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.sec-entry {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border-color);
    border-left: 2px solid transparent;
    text-decoration: none;
}

.sec-entry:hover {
    background: var(--card-bg);
    border-left-color: var(--accent);
}

.sec-entry-date {
    flex-shrink: 0;
    width: 88px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sec-entry-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.sec-entry:hover .sec-entry-title {
    color: var(--accent);
}

.archive-hero {
    padding: 60px 0 30px 0 !important;
}

.archive-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    text-wrap: balance;
}

.archive-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 62ch;
}

.empty-state {
    color: var(--text-muted);
    padding: 14px 16px;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: 0;
    font-size: 0.85rem;
}

.case-hero {
    padding: 60px 0 40px 0 !important;
}

.case-hero #case-title {
    font-size: 3.6rem;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 14px;
    text-wrap: balance;
}

#back-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
}

#back-link:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

#case-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 10px;
}

.container.container-wide {
    max-width: 1400px;
}

.case-hero-inner {
    display: flex;
    flex-direction: column;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

.case-hero-inner #back-link {
    align-self: flex-start;
    margin-bottom: 18px;
}

.case-hero-inner #case-title {
    margin-bottom: 12px;
}

.blog-sections-container {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-section {
    margin-bottom: 60px;
}

.blog-section-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 22px;
    padding-bottom: 14px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.blog-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.blog-section-body .blog-p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 18px;
    text-wrap: pretty;
}

.blog-section-body .blog-p strong {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
}

.blog-section-body .blog-p em {
    font-style: italic;
}

.blog-section-body .blog-p del {
    text-decoration: line-through;
}

.blog-section-body .blog-p u {
    text-decoration: underline;
}

.blog-section-body .blog-p mark {
    background: #fceb3b;
    color: #111;
    padding: 0 2px;
    border-radius: 0;
}

.inline-link {
    text-decoration: underline;
    color: var(--accent);
}

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

.blog-section-body .blog-code {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 18px;
    margin: 22px 0;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    overflow-x: auto;
    color: var(--text-main);
    max-width: 100%;
    width: 100%;
}

.blog-section-body .blog-code code {
    font-family: var(--font-mono);
}

.blog-img-wrap {
    margin: 24px 0;
}

.blog-img-wrap img {
    max-width: 100%;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: #000;
    padding: 6px;
}

.lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-trigger:hover {
    opacity: 0.88;
    box-shadow: 0 0 0 2px var(--accent);
}

#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox-scroll {
    width: 100%;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
    cursor: grab;
}

#lightbox-scroll::-webkit-scrollbar {
    display: none;
}

#lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
}

#lightbox-img {
    object-fit: contain;
    border-radius: 0;
    user-select: none;
    display: block;
    flex-shrink: 0;
}

#lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    z-index: 10000;
}

#lightbox-close:hover {
    opacity: 1;
    border-color: var(--accent);
}

.video-section {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.video-wrapper {
    max-width: 1020px;
    margin: 0 auto;
    border: 2px solid rgba(255, 59, 59, 0.45);
    border-radius: 0;
    overflow: hidden;
    background: #000;
    position: relative;
    aspect-ratio: 16 / 9;
}
.video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; outline: none; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.vp-controls {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    display: flex; align-items: center; gap: 8px;
    opacity: 0; transition: opacity 0.2s ease; z-index: 1;
}
.video-wrapper:hover .vp-controls,
.video-wrapper.vp-paused .vp-controls,
.video-wrapper.vp-ui .vp-controls { opacity: 1; }
.vp-btn { background: none; border: none; color: var(--text-main); cursor: pointer; padding: 4px; flex-shrink: 0; line-height: 0; opacity: 0.85; transition: opacity 0.15s ease, color 0.15s ease; }
.vp-btn:hover { opacity: 1; color: var(--accent); }
.vp-btn svg { width: 22px; height: 22px; display: block; }
.vp-progress { flex: 1; position: relative; height: 3px; background: rgba(255,255,255,0.25); border-radius: 0; cursor: pointer; }
.vp-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); border-radius: 0; pointer-events: none; }
.vp-seek { position: absolute; inset: -10px 0; opacity: 0; cursor: pointer; margin: 0; -webkit-appearance: none; touch-action: none; }
.vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
.vp-seek::-moz-range-thumb { width: 0; height: 0; border: none; }
.vp-time { font-size: 0.72rem; font-family: var(--font-mono); color: rgba(255,255,255,0.85); white-space: nowrap; flex-shrink: 0; min-width: 76px; text-align: right; }
.vp-volume { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.vp-vol-track { position: relative; height: 3px; width: 60px; background: rgba(255,255,255,0.25); border-radius: 0; cursor: pointer; flex-shrink: 0; }
.vp-vol-bar { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--accent); border-radius: 0; pointer-events: none; }
.vp-vol-slider { position: absolute; inset: -10px 0; opacity: 0; cursor: pointer; margin: 0; -webkit-appearance: none; width: 100%; }
.video-wrapper:fullscreen { max-width: none; width: 100%; height: 100%; aspect-ratio: unset; border: none; border-radius: 0; margin: 0; }
.video-wrapper:-webkit-full-screen { max-width: none; width: 100%; height: 100%; aspect-ratio: unset; border: none; border-radius: 0; margin: 0; }

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    width: 100%;
}

.home-nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.home-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.home-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    display: none;
}

.home-nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.home-nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
    position: relative;
}

.home-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--accent);
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-nav-links a:hover {
    color: var(--accent);
}

.home-nav-links a:hover::after {
    width: 100%;
}

.home-nav-right {
    display: flex;
    align-items: center;
    position: relative;
}

.home-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 7px 12px;
    min-width: 240px;
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

.home-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.home-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.82rem;
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
}

.home-search-input:focus-visible {
    outline: none;
}

.home-search-input::placeholder {
    color: var(--text-muted);
}

.home-search-kbd {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 1px 6px;
    line-height: 1.6;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.home-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    box-shadow: 4px 4px 0 0 var(--border-color);
    z-index: 2000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-search-results.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.15s ease;
}

.search-result-item:last-of-type {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--border-color);
}

.search-result-title {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
    display: block;
}

.search-result-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.search-result-empty {
    padding: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.search-result-all {
    padding: 9px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--border-color);
    text-align: right;
}

.search-result-all a {
    font-size: 0.78rem;
    color: var(--accent);
    font-family: var(--font-mono);
    transition: opacity 0.15s ease;
}

.search-result-all a:hover {
    opacity: 0.8;
    color: var(--accent);
}

.code-collapse-wrap {
    margin: 22px 0;
}

.code-toolbar {
    display: flex;
    align-items: center;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 0;
}

.code-collapse-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    transition: color 0.15s ease;
}

.code-collapse-btn:hover {
    color: var(--text-main);
}

.code-collapse-btn svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.code-collapse-wrap.collapsed .code-collapse-btn svg {
    transform: rotate(-90deg);
}

.code-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.code-copy-btn:hover {
    color: var(--text-main);
}

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

.code-copy-btn .check-icon {
    display: none;
}

.code-copy-btn.copied .copy-icon {
    display: none;
}

.code-copy-btn.copied .check-icon {
    display: block;
}

.code-collapse-wrap .blog-code {
    margin: 0;
    border-top: none;
    border-radius: 0;
}

.code-collapse-wrap.collapsed .blog-code {
    display: none;
}

.sources-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    transition: color 0.15s ease;
}

.sources-toggle:hover {
    color: var(--text-main);
}

.sources-wrap.open .sources-toggle {
    border-bottom-color: var(--border-color);
}

.sources-toggle svg {
    flex-shrink: 0;
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.sources-wrap.open .sources-toggle svg {
    transform: rotate(0deg);
}

.sources-list {
    display: none;
    flex-direction: column;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 8px 14px;
}

.sources-wrap.open .sources-list {
    display: flex;
}

.sources-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s ease;
    font-family: var(--font-mono);
    overflow: hidden;
}

.sources-link:last-child {
    border-bottom: none;
}

.sources-link:hover {
    background: var(--border-color);
}

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

.sources-host {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.sources-path {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sources-ext {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--accent);
    font-size: 0.8rem;
}

.sources-link:hover .sources-ext {
    opacity: 1;
}

.pgp-key {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    max-width: 100%;
    font-size: 0.8rem;
    margin-top: 10px;
}

.article-layout {
    display: block;
}

.toc-nav {
    display: none;
}

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

.toc-link {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-link:hover {
    color: var(--text-main);
}

.toc-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

@media (min-width: 880px) {
    .article-layout {
        display: flex;
        gap: 32px;
        align-items: flex-start;
    }
    .article-layout .blog-sections-container {
        flex: 1;
        min-width: 0;
    }
    .toc-nav {
        display: block;
        width: 190px;
        flex-shrink: 0;
        position: sticky;
        top: 110px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .article-layout {
        gap: 40px;
    }
    .toc-nav {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 0 60px 0;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.05rem;
    }
    main {
        padding-top: 110px;
    }
    section {
        padding: 50px 0;
    }
    .sec-feature-title {
        font-size: 1.25rem;
    }
    .blog-section-title {
        font-size: 1.4rem;
    }
    .case-hero #case-title {
        font-size: 2.2rem;
    }
    .home-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }
    .home-nav-left {
        gap: 16px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    .home-nav-right {
        width: 100%;
    }
    .home-search-wrap {
        min-width: unset;
        width: 100%;
    }
    .home-search-results {
        left: 0;
        right: 0;
        min-width: unset;
        width: 100%;
    }
    .vp-vol-track { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
