﻿/* =========================================
   守底书屋 — 1:1 复刻样式
   ========================================= */

:root {
    --bg-deep: #050505;
    --bg-dark: #0a0a0a;
    --bg-card-dark: #161616;
    --bg-light: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --accent: #22d3ee;
    --accent-hover: #06b6d4;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --accent-glow: rgba(34, 211, 238, 0.35);
    --border-light: #e5e7eb;
    --border-dark: #1f2937;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 40px -12px rgba(0, 0, 0, 0.18);
    --shadow-accent: 0 0 0 1px rgba(34, 211, 238, 0.5), 0 12px 28px -8px rgba(34, 211, 238, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC",
                 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s var(--ease);
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container { padding: 0 48px; }
}

/* =========================================
   Nav
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background .3s var(--ease);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav__inner { padding: 14px 48px; }
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.nav__logo-icon svg, .nav__logo-icon img { width: 100%; height: 100%; object-fit: contain; }

.nav__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav__logo-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .5px;
}

.nav__logo-text em {
    font-size: 11px;
    font-style: normal;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 16px;
}

.nav__link {
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color .2s var(--ease), background .2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav__link.is-active {
    color: var(--accent);
}

.nav__caret {
    width: 12px;
    height: 12px;
    opacity: .7;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* =========================================
   Nav Dropdown (资料中心)
   ========================================= */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-secondary);
}

.nav__dropdown.is-open .nav__dropdown-trigger {
    color: var(--accent);
}

.nav__dropdown.is-open .nav__caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav__menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 180px;
    list-style: none;
    background: rgba(20, 22, 28, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px;
    margin: 0;
    box-shadow:
        0 24px 48px -16px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(34, 211, 238, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
    z-index: 110;
}

.nav__menu-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(20, 22, 28, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 3px;
}

.nav__dropdown.is-open .nav__menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}

.nav__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease);
    white-space: nowrap;
    user-select: none;
}

.nav__menu-item:hover,
.nav__menu-item:focus-visible {
    background: rgba(34, 211, 238, 0.10);
    color: var(--accent);
    padding-left: 18px;
    outline: none;
}

.nav__menu-item.is-featured {
    background: rgba(34, 211, 238, 0.10);
    color: var(--accent);
    font-weight: 500;
    border-left: 2px solid var(--accent);
    border-radius: 4px 8px 8px 4px;
}

.nav__menu-item.is-featured:hover {
    background: rgba(34, 211, 238, 0.18);
    padding-left: 18px;
}

.nav__menu-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .nav__dropdown {
        width: 100%;
    }
    .nav__dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }
    .nav__menu-panel {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0 0 0 14px;
        margin: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height .3s var(--ease);
        border-radius: 0;
    }
    .nav__menu-panel::before { display: none; }
    .nav__dropdown.is-open .nav__menu-panel {
        max-height: 480px;
        padding: 6px 0 6px 14px;
        transform: none;
    }
    .nav__menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    .nav__menu-item.is-featured {
        border-left: none;
        border-bottom: 2px solid var(--accent);
        border-radius: 0;
    }
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav__profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color .2s var(--ease);
}

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

.nav__profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav__profile-avatar svg {
    width: 100%;
    height: 100%;
}

.nav__logout {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    transition: all .2s var(--ease);
}

.nav__logout:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.nav__burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .3s var(--ease);
}

@media (max-width: 900px) {
    .nav__menu, .nav__right { display: none; }
    .nav__burger { display: flex; }
    .nav.is-open .nav__inner {
        flex-wrap: wrap;
    }
    .nav.is-open .nav__menu {
        display: flex;
        order: 3;
        flex-basis: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 12px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 0;
    }
    .nav.is-open .nav__right {
        display: flex;
        order: 4;
        flex-basis: 100%;
        background: var(--bg-dark);
        padding: 12px 24px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav.is-open .nav__link { padding: 12px 14px; width: 100%; }
}

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    min-height: 92vh;
    padding: 160px 24px 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

@media (min-width: 1024px) {
    .hero { padding: 200px 48px 120px; }
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .55;
    filter: saturate(.8) contrast(1.1);
    background: #0a0a0a;
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(34, 211, 238, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.85) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn .7s var(--ease) forwards;
}

.hero__title-word:nth-child(1) { animation-delay: .1s; }
.hero__title-word:nth-child(2) { animation-delay: .18s; }
.hero__title-word:nth-child(3) { animation-delay: .26s; }
.hero__title-word:nth-child(4) { animation-delay: .34s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero__title-accent {
    color: var(--accent);
    text-shadow: 0 0 32px var(--accent-glow);
    display: inline-block;
    margin-left: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn .7s var(--ease) .42s forwards;
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: heroIn .7s var(--ease) .6s forwards;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroIn .7s var(--ease) .75s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform .25s var(--ease);
}

.btn--primary {
    background: var(--accent);
    color: #042f33;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
}

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

/* =========================================
   Categories
   ========================================= */
.categories {
    background: var(--bg-light);
    padding: 80px 0;
    color: var(--text-dark);
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .categories__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .categories__grid { grid-template-columns: 1fr; }
    .categories { padding: 56px 0; }
}

.cat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    display: block;
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    overflow: hidden;
    isolation: isolate;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 100%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    z-index: -1;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 211, 238, 0.4);
}

.cat-card:hover::before { opacity: 1; }

.cat-card.is-active {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.cat-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease);
}

.cat-card:hover .cat-card__icon {
    transform: scale(1.08);
}

.cat-card__icon svg {
    width: 100%;
    height: 100%;
}

.cat-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cat-card.is-active .cat-card__title { color: var(--accent); }

.cat-card__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   Articles
   ========================================= */
.articles {
    background: var(--bg-dark);
    padding: 80px 0;
    color: var(--text-primary);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 12px auto 0;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .articles__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .articles__grid { grid-template-columns: 1fr; }
    .articles { padding: 56px 0; }
}

.post-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 22px 22px 18px;
    position: relative;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    overflow: hidden;
    cursor: pointer;
}

.post-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: width .35s var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -16px rgba(34, 211, 238, 0.4);
}

.post-card:hover::after { width: 100%; }

.post-card__tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 500;
}

.post-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
    font-size: 12px;
    color: var(--text-muted);
}

.post-card__dl {
    color: var(--text-muted);
    display: inline-flex;
    transition: color .2s var(--ease), transform .2s var(--ease);
}

.post-card__dl svg {
    width: 16px;
    height: 16px;
}

.post-card__dl:hover {
    color: var(--accent);
    transform: translateY(2px);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-deep);
    color: var(--text-secondary);
    padding: 0;
    position: relative;
}

.footer__line {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #3b82f6 8%,
        #22d3ee 30%,
        #a855f7 50%,
        #f97316 70%,
        #eab308 90%,
        transparent 100%);
    opacity: .55;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding: 56px 24px 32px;
}

@media (min-width: 1024px) {
    .footer__inner { padding: 56px 48px 32px; }
}

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

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer__brand-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.footer__brand-icon svg, .footer__brand-icon img { width: 100%; height: 100%; object-fit: contain; }

.footer__brand strong {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

.footer__search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 320px;
    transition: border-color .2s var(--ease);
}

.footer__search:focus-within {
    border-color: var(--accent);
    background: rgba(34, 211, 238, 0.04);
}

.footer__search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}

.footer__search input::placeholder { color: var(--text-tertiary); }

.footer__search button {
    width: 40px;
    height: 38px;
    background: var(--accent);
    color: #042f33;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s var(--ease);
}

.footer__search button:hover { background: var(--accent-hover); }

.footer__search button svg {
    width: 16px;
    height: 16px;
}

.footer__col h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .5px;
}

.footer__social {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.footer__social li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color .2s var(--ease);
}

.footer__social li:hover { color: var(--accent); }

.footer__chip {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent);
    color: #042f33;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer__chip svg { width: 16px; height: 16px; }

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.footer__links a {
    color: var(--text-secondary);
    transition: color .2s var(--ease), padding-left .2s var(--ease);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text-tertiary);
}

@media (min-width: 1024px) {
    .footer__bottom { padding: 20px 48px 28px; }
}

.footer__copy {
    font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
    letter-spacing: .3px;
}

.footer__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__meta a {
    color: var(--text-tertiary);
    transition: color .2s var(--ease);
    font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

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

.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer__top svg {
    width: 12px;
    height: 12px;
}

/* =========================================
   Reveal animations
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================
   Selection
   ========================================= */
::selection {
    background: var(--accent);
    color: #042f33;
}

/* =========================================
   Scrollbar (subtle)
   ========================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
