:root {
    color-scheme: dark;
    --bg: #061014;
    --panel: rgba(10, 22, 29, 0.78);
    --panel-strong: rgba(11, 28, 34, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(94, 234, 212, 0.28);
    --text: #d8e4e8;
    --muted: #8ea3aa;
    --quiet: #5f747c;
    --cyan: #22d3ee;
    --teal: #2dd4bf;
    --violet: #a78bfa;
    --rose: #fb7185;
    --amber: #fbbf24;
    --green: #86efac;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(45, 212, 191, 0.16), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(167, 139, 250, 0.14), transparent 26rem),
        linear-gradient(135deg, #051014 0%, #0b1517 45%, #07131d 100%);
    color: var(--text);
    font-family: 'Space Grotesk', 'Noto Serif SC', sans-serif;
    overflow-x: hidden;
}

body.hero-scroll-page {
    scroll-snap-type: y proximity;
}

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

button,
input,
textarea {
    font: inherit;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.font-kai {
    font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(94, 234, 212, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--teal), var(--cyan), var(--violet));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.42);
    pointer-events: none;
}

.section-rail {
    position: fixed;
    right: max(18px, calc((100vw - 1160px) / 2 - 74px));
    top: 50%;
    z-index: 25;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
}

.section-rail a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 74px;
    min-height: 20px;
    color: rgba(142, 163, 170, 0.72);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-align: right;
    transition: color 0.2s ease;
}

.section-rail a::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: 9px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: rgba(3, 12, 15, 0.82);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.section-rail a.is-active {
    color: #dff7f8;
}

.section-rail a.is-active::after {
    transform: scale(1.45);
    background: var(--teal);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.48);
}

.scroll-section {
    position: relative;
    scroll-margin-top: 92px;
    scroll-snap-align: start;
}

.hero-scroll-page.js-ready .scroll-section:not(.is-visible) {
    opacity: 0;
    transform: translateY(34px);
}

.hero-scroll-page .scroll-section.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.76s ease, transform 0.76s ease;
}

.hero-scroll-page .scroll-section.is-visible .quick-link,
.hero-scroll-page .scroll-section.is-visible .project-card,
.hero-scroll-page .scroll-section.is-visible .repo-card-dyn,
.hero-scroll-page .scroll-section.is-visible .service-row,
.hero-scroll-page .scroll-section.is-visible .roadmap article,
.hero-scroll-page .scroll-section.is-visible .contact-link {
    animation: item-rise 0.62s ease both;
}

.hero-scroll-page .quick-link:nth-child(2),
.hero-scroll-page .project-card:nth-child(2),
.hero-scroll-page .repo-card-dyn:nth-child(2),
.hero-scroll-page .service-row:nth-child(2),
.hero-scroll-page .roadmap article:nth-child(2),
.hero-scroll-page .contact-link:nth-child(2) {
    animation-delay: 0.06s;
}

.hero-scroll-page .quick-link:nth-child(3),
.hero-scroll-page .project-card:nth-child(3),
.hero-scroll-page .repo-card-dyn:nth-child(3),
.hero-scroll-page .service-row:nth-child(3),
.hero-scroll-page .roadmap article:nth-child(3),
.hero-scroll-page .contact-link:nth-child(3) {
    animation-delay: 0.12s;
}

.hero-scroll-page .quick-link:nth-child(4),
.hero-scroll-page .project-card:nth-child(4),
.hero-scroll-page .repo-card-dyn:nth-child(4),
.hero-scroll-page .service-row:nth-child(4),
.hero-scroll-page .contact-link:nth-child(4) {
    animation-delay: 0.18s;
}

.hero-scroll-page .service-row:nth-child(5),
.hero-scroll-page .contact-link:nth-child(5) {
    animation-delay: 0.24s;
}

.hero-scroll-page .service-row:nth-child(6),
.hero-scroll-page .contact-link:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes item-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    backdrop-filter: blur(18px);
}

.brand,
.top-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: #ecfeff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand img {
    width: 30px;
    height: 30px;
}

.top-nav {
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(3, 10, 13, 0.54);
}

.top-nav a {
    min-width: 72px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-nav a:hover {
    color: #ecfeff;
    background: rgba(45, 212, 191, 0.12);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 40px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 28px;
    min-height: calc(100vh - 190px);
    padding-bottom: 34px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: auto -8% -18% 42%;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 64%);
    filter: blur(8px);
    pointer-events: none;
}

.hero-copy {
    min-width: 0;
}

.hero-kicker,
.sec-label {
    display: block;
    color: var(--teal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-num-wrap {
    display: inline-block;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.hero-num {
    position: relative;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(7.2rem, 18vw, 15rem);
    font-weight: 800;
    line-height: 0.84;
    letter-spacing: 0;
    background: linear-gradient(135deg, #67e8f9 0%, #5eead4 32%, #c4b5fd 68%, #fda4af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-num::after {
    content: '6767';
    position: absolute;
    inset: 0;
    z-index: -1;
    filter: blur(48px);
    opacity: 0.55;
    background: linear-gradient(135deg, #22d3ee, #a78bfa, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-shift 4.5s ease-in-out infinite alternate;
}

.hero-easter-egg:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.8);
    outline-offset: 8px;
    border-radius: 18px;
}

.hero-section h1 {
    margin: 14px 0 0;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
}

.hero-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: #aec0c6;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.02rem, 2vw, 1.24rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-action {
    gap: 10px;
    padding: 0 18px;
    color: #031314;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.secondary-action {
    padding: 0 18px;
    border: 1px solid var(--line);
    color: #dff7f8;
    background: rgba(8, 20, 25, 0.72);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.profile-panel,
.section-block,
.contact-section,
.launch-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.profile-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    transform: translateZ(0);
}

.profile-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 46%, rgba(167, 139, 250, 0.08));
    opacity: 0.9;
    pointer-events: none;
}

.avatar-portrait {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(#061014, #061014) padding-box,
        linear-gradient(135deg, var(--cyan), var(--violet), var(--rose)) border-box;
    box-shadow: 0 16px 42px rgba(34, 211, 238, 0.18);
}

.profile-name {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 800;
}

.profile-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
    line-height: 1.75;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags span,
.project-meta span,
.card-actions span,
.quick-link span:last-child {
    font-family: 'JetBrains Mono', monospace;
}

.profile-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 999px;
    color: #bff8ef;
    background: rgba(20, 184, 166, 0.08);
    font-size: 0.78rem;
}

.launch-zone {
    min-height: 74vh;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(7, 20, 24, 0.74), rgba(7, 19, 29, 0.66)),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.1), transparent 34rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.quick-link {
    display: grid;
    gap: 10px;
    min-height: 158px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 20, 24, 0.78);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-link:hover,
.project-card:hover,
.service-row:hover,
.contact-grid a:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(10, 31, 36, 0.92);
}

.quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 800;
}

.quick-icon.cyan {
    color: #cffafe;
    background: rgba(34, 211, 238, 0.16);
}

.quick-icon.zhihu-mark {
    overflow: hidden;
    background: transparent;
}

.quick-icon.zhihu-mark img {
    display: block;
    width: 38px;
    height: 38px;
}

.quick-zhihu-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(30, 64, 175, 0.3));
}

.quick-zhihu-logo svg {
    display: block;
    width: 31px;
    height: auto;
    max-height: 18px;
    flex-shrink: 0;
    stroke: none;
}

.quick-icon.rose {
    color: #ffe4e6;
    background: rgba(251, 113, 133, 0.16);
}

.quick-icon.violet {
    color: #ede9fe;
    background: rgba(167, 139, 250, 0.16);
}

.quick-icon.amber {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.16);
}

.quick-link strong {
    color: #f8fafc;
    font-size: 1.04rem;
}

.quick-link span:last-child {
    color: var(--quiet);
    font-size: 0.78rem;
    line-height: 1.5;
}

.launch-panel {
    overflow: hidden;
    margin: 18px 0 0;
    border-color: rgba(45, 212, 191, 0.26);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(2, 12, 15, 0.96), rgba(4, 47, 46, 0.28)),
        repeating-linear-gradient(0deg, rgba(45, 212, 191, 0.06) 0 1px, transparent 1px 7px);
}

.launch-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
}

.launch-row + .launch-row {
    border-top: 1px solid rgba(45, 212, 191, 0.18);
}

.launch-prompt,
.launch-command {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
}

.launch-prompt {
    color: var(--teal);
}

.launch-command {
    overflow-x: auto;
    color: #e2e8f0;
    white-space: nowrap;
}

.copy-command {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.65);
    color: #99f6e4;
    cursor: pointer;
}

.copy-command:hover {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(20, 184, 166, 0.16);
}

.section-block,
.contact-section {
    min-height: 78vh;
    margin-top: 28px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 18px;
}

.section-heading {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin-bottom: 24px;
}

.section-heading h2,
.contact-section h2 {
    margin: 0;
    color: #f8fafc;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
    line-height: 1.75;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 17, 21, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card.featured {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(5, 17, 21, 0.78) 52%),
        rgba(5, 17, 21, 0.76);
}

.project-card.sgs-card {
    background:
        linear-gradient(135deg, rgba(251, 113, 133, 0.13), rgba(5, 17, 21, 0.78) 52%),
        rgba(5, 17, 21, 0.76);
}

.project-meta,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--quiet);
    font-size: 0.76rem;
}

.status {
    padding: 5px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.status.live {
    color: var(--green);
}

.status.build {
    color: var(--cyan);
}

.status.lab {
    color: var(--amber);
}

.status.research {
    color: var(--rose);
}

.project-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.project-card p {
    margin: 0;
    color: #9db2b8;
    font-family: 'Noto Serif SC', serif;
    line-height: 1.75;
}

.card-actions {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.card-actions span:first-child {
    color: #dff7f8;
}

.github-preview {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(3, 12, 15, 0.66);
}

.github-preview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.github-preview-head h3 {
    margin: 7px 0 0;
    color: #f8fafc;
    font-size: clamp(1.16rem, 2vw, 1.42rem);
}

.repo-meta {
    flex-shrink: 0;
    color: var(--quiet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.repo-live-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.repo-card-dyn {
    display: flex;
    min-height: 172px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(6, 18, 22, 0.78);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.repo-card-dyn:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.32);
    background: rgba(14, 26, 33, 0.92);
}

.repo-head,
.repo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.repo-name {
    min-width: 0;
    overflow: hidden;
    color: #dff7f8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-stars {
    flex-shrink: 0;
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
}

.repo-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.repo-foot {
    color: var(--quiet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
}

.repo-lang {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-lang-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--amber);
}

.repo-updated {
    flex-shrink: 0;
}

.repo-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: var(--quiet);
    font-family: 'JetBrains Mono', monospace;
}

.split-section {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 26px;
    align-items: start;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(3, 12, 15, 0.66);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-row span,
.service-row strong {
    font-family: 'JetBrains Mono', monospace;
}

.service-row span {
    color: var(--teal);
    font-size: 0.78rem;
}

.service-row strong {
    min-width: 0;
    overflow: hidden;
    color: #e0f2fe;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-row em {
    grid-column: 2;
    color: var(--quiet);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    font-style: normal;
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.roadmap article {
    min-height: 210px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(3, 12, 15, 0.66);
}

.roadmap span {
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.roadmap h3 {
    margin: 18px 0 10px;
    color: #f8fafc;
}

.roadmap p {
    margin: 0;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
    line-height: 1.75;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 24px;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.contact-grid a {
    min-height: 66px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(3, 12, 15, 0.66);
    color: #dff7f8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.contact-icon svg {
    width: 19px;
    height: 19px;
}

.contact-glyph {
    display: block;
    width: 22px;
    height: 22px;
    color: currentColor;
}

.contact-icon.amber {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.14);
}

.contact-icon.slate {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.13);
}

.contact-icon.blue {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
}

.contact-icon.cyan {
    color: #cffafe;
    background: rgba(34, 211, 238, 0.14);
}

.contact-icon.gmail {
    background: rgba(248, 113, 113, 0.13);
}

.gmail-svg {
    stroke: none;
}

.gmail-red {
    fill: #ea4335;
}

.gmail-white {
    fill: #f8fafc;
}

.gmail-stroke {
    fill: none;
    stroke: #ea4335;
    stroke-width: 1.7;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 42px;
    color: var(--quiet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadein 0.7s ease forwards;
}

.hero-scroll-page .scroll-section.fade-in {
    animation: none;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }

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

@keyframes glow-shift {
    from {
        opacity: 0.35;
        transform: translate(2px, 6px) scale(1.01);
    }
    to {
        opacity: 0.7;
        transform: translate(-2px, 3px) scale(1.03);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #061014;
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #1f3a40;
}

@media (max-width: 900px) {
    body.hero-scroll-page {
        scroll-snap-type: none;
    }

    .section-rail {
        display: none;
    }

    .site-header {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
        justify-content: space-between;
    }

    .hero-section,
    .split-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 28px;
    }

    .profile-panel {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .profile-tags {
        grid-column: 1 / -1;
    }

    .quick-grid,
    .project-grid,
    .repo-live-grid,
    .roadmap,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 24px, 1160px);
        padding-top: 18px;
    }

    .site-header,
    .site-footer {
        width: min(100% - 24px, 1160px);
    }

    .top-nav a {
        min-width: auto;
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .hero-num {
        font-size: clamp(5.2rem, 28vw, 7.2rem);
    }

    .hero-actions,
    .site-footer {
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .quick-grid,
    .project-grid,
    .repo-live-grid,
    .roadmap,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .github-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card.featured {
        grid-column: auto;
    }

    .profile-panel {
        grid-template-columns: 1fr;
    }

    .launch-row {
        grid-template-columns: 70px minmax(0, 1fr) auto;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row em {
        grid-column: auto;
    }
}
