:root {
    --bg: #09090b;
    --bg-alt: #0f0f12;
    --surface: #141418;
    --card: #1a1a1f;
    --card-hover: #1f1f26;
    --accent: #a855f7;
    --accent-soft: #c084fc;
    --accent-neon: #e879f9;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text: #fafafa;
    --muted: #a1a1aa;
    --dim: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --nav-h: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html {
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-alt);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    cursor: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    transition: left 0.2s var(--ease);
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

#progress-bar,
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-neon));
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 9998;
    transition: width 0.2s var(--ease);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-hover);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 110;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: rgba(168, 85, 247, 0.45);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

#navbar,
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
}

#navbar.scrolled,
.navbar.scrolled {
    background: rgba(9, 9, 11, 0.92);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: var(--accent-soft);
}

.nav-cta {
    color: var(--accent-neon) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    background: rgba(168, 85, 247, 0.08) !important;
}

.nav-cta:hover {
    background: rgba(168, 85, 247, 0.14) !important;
    color: var(--text) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#hero,
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 48px) 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.55;
}

.hero-bg__glow {
    position: absolute;
    width:  min(720px, 90vw);
    height: min(480px, 60vh);
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, rgba(232, 121, 249, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at center, rgba(168, 85, 247, 0.2) 0%, transparent 68%);
    opacity: 1;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: center;
    gap: 64px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.5vw, 5.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text);
}

.hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--muted);
    line-height: 1.75;
    font-weight: 400;
    max-width: 38ch;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--dim);
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.hero-right {
    width: 100%;
}

.hero-seq {
    opacity: 0;
    animation: heroSeqIn 0.85s var(--ease) forwards;
}

.hero-seq--1 { animation-delay: 0.06s; }
.hero-seq--2 { animation-delay: 0.18s; }
.hero-seq--3 { animation-delay: 0.3s; }
.hero-seq--3b { animation-delay: 0.38s; }
.hero-seq--4 { animation-delay: 0.48s; }
.hero-seq--5 { animation-delay: 0.58s; }

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

.status-panel {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.status-panel__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.status-panel__dots {
    display: flex;
    gap: 5px;
}

.status-panel__dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--dim);
    opacity: 0.45;
    font-style: normal;
}

.status-panel__dots i:nth-child(1) { opacity: 0.35; }
.status-panel__dots i:nth-child(2) { opacity: 0.5; }
.status-panel__dots i:nth-child(3) { background: var(--accent); opacity: 0.55; }

.status-panel__title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--dim);
    text-transform: lowercase;
}

.status-panel__body {
    padding: 18px 20px 22px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
}

.status-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--muted);
}

.status-line__prompt {
    color: var(--accent-soft);
    font-weight: 500;
    flex-shrink: 0;
}

.status-line--idle {
    margin-top: 6px;
    opacity: 0;
}

.status-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.status-divider.visible {
    opacity: 1;
}

.status-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: baseline;
}

.status-key {
    color: var(--dim);
    font-size: 0.76rem;
}

.status-val {
    color: var(--text);
}

.status-val--ok {
    color: #4ade80;
}

.t-row {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.t-row.show {
    opacity: 1;
    transform: translateY(0);
}

#t-done {
    opacity: 0;
    transition: opacity 0.28s ease;
}

#t-done.show {
    opacity: 1;
}

.t-cursor {
    color: var(--accent-soft);
    animation: blink 1s step-end infinite;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #9333ea;
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-large {
    padding: 15px 32px;
    font-size: 1rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-magnetic {
    position: relative;
}

.btn-ripple-pulse {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

section[id] {
    scroll-margin-top: var(--nav-h);
}

.section {
    padding: 100px 24px;
}

.section--alt {
    background: var(--bg-alt);
}

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

.section-header {
    position: relative;
    margin-bottom: 56px;
    max-width: 560px;
    padding-left: clamp(0px, 2vw, 8px);
}

.section-header[data-section]::before {
    content: attr(data-section);
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-52%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(168, 85, 247, 0.07);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.section-header > * {
    position: relative;
    z-index: 1;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.section-sub {
    margin-top: 14px;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 48ch;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.section-header--inline {
    margin-bottom: 28px;
    max-width: none;
}

.section-header--inline[data-section]::before {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    left: 0;
    transform: translateY(-48%);
}

.about-left .section-label {
    margin-bottom: 16px;
}

.about-left .section-title {
    margin-bottom: 22px;
}

.about-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-text:last-of-type {
    margin-bottom: 0;
}

.github-stats {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    max-width: 420px;
}

.github-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.github-stats__cell {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--dim);
}

.github-stats__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.github-stats__val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.github-stats__lbl {
    font-size: 0.68rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.github-stats__meta {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: var(--dim);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.github-stats__loading {
    grid-column: 1 / -1;
    color: var(--muted);
}

.github-stats__error {
    grid-column: 1 / -1;
    color: var(--dim);
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.focus-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.focus-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    transform: translateY(-2px);
}

.focus-icon {
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.focus-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}

.focus-card p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.skill-group {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 10px;
    align-items: start;
}

.skill-group-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 6px;
}

.skill-group-label--plain {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    padding-top: 4px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

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

.tag--dim {
    opacity: 0.6;
}

.tag--dim em {
    font-style: normal;
    font-size: 0.68rem;
    color: var(--dim);
}

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

.service-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.service-card__shine {
    display: none;
}

.service-card__inner {
    padding: 26px 22px;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    transform: translateY(-2px);
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-soft);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.12em;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.project-card--featured {
    padding: 0;
    overflow: hidden;
}

.project-card--featured:hover {
    background: var(--card);
}

.project-card--featured:hover .project-card__body {
    background: var(--card-hover);
}

.project-card__preview-link {
    display: block;
    color: inherit;
    outline-offset: 4px;
}

.project-card__preview-link:focus-visible {
    outline: 2px solid var(--accent-soft);
}

.project-preview {
    position: relative;
    min-height: 140px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.project-preview__noise {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    pointer-events: none;
}

.project-preview__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-preview__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.project-preview__impact {
    font-size: 0.78rem;
    color: var(--muted);
    max-width: 36ch;
    line-height: 1.45;
}

.project-preview--aurora {
    background:
        linear-gradient(155deg, var(--surface) 0%, #15152a 45%, var(--card) 100%),
        radial-gradient(ellipse 90% 70% at 15% 25%, rgba(168, 85, 247, 0.22), transparent 58%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(232, 121, 249, 0.14), transparent 55%);
}

.project-card__body {
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.project-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 4px;
}

.project-status--active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.18);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

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

.project-card--more {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 28px;
    border-style: dashed;
    opacity: 0.65;
}

.project-card--more:hover {
    opacity: 0.85;
}

.more-icon {
    color: var(--dim);
    margin-bottom: 14px;
}

.project-card--more h3 {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.project-card--more p {
    font-size: 0.85rem;
    color: var(--dim);
}

#contact {
    text-align: center;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 640px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.contact-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 560px;
}

.contact-actions .btn-primary {
    flex: 1 1 200px;
    min-width: 0;
}

.contact-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 28px;
}

.contact-gh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--dim);
    transition: color 0.2s;
}

.contact-gh:hover {
    color: var(--muted);
}

footer .logo span,
footer .logo-accent {
    color: var(--accent-soft);
}

footer .logo--footer .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--dim);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--dim);
}

.footer-legal a:hover {
    color: var(--accent-soft);
}

.footer-dot {
    color: var(--border-hover);
    user-select: none;
}

.page-legal .legal-main {
    padding: 0;
    scroll-margin-top: var(--nav-h);
}

.legal-page-wrap {
    position: relative;
}

.legal-page-inner {
    max-width: 760px;
}

.legal-page-head {
    margin-bottom: 28px;
}

.legal-page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 10px 0 14px;
    color: var(--text);
}

.legal-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 40px);
    transition: border-color 0.22s;
}

.legal-panel:hover {
    border-color: var(--border-hover);
}

.legal-prose h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 26px 0 10px;
    color: var(--text);
}

.legal-prose h2:first-child {
    margin-top: 0;
}

.legal-prose p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 14px;
}

.legal-prose p a {
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose p a:hover {
    color: var(--text);
}

.legal-lead {
    font-size: 0.92rem;
    color: var(--dim);
    max-width: 52ch;
}

.legal-back {
    margin-top: 36px !important;
}

.error-http {
    margin: 0 0 18px !important;
}

.error-http__code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(3rem, 12vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent-soft);
}

.reveal {
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
}

.reveal.reveal--clip {
    transition: opacity 0.7s var(--ease);
}

.reveal.reveal--clip.visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #progress-bar,
    .progress-bar {
        transition: none;
    }

    .hero-seq {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .t-cursor {
        animation: none;
    }

    .reveal,
    .reveal.reveal--clip {
        opacity: 1;
        transition: none;
    }

    .reveal.visible,
    .reveal.reveal--clip.visible {
        opacity: 1;
    }

    .t-row {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #t-done {
        opacity: 1;
        transition: none;
    }

    .status-divider.visible {
        opacity: 1;
    }

    .focus-card:hover,
    .service-card:hover,
    .project-card:hover {
        transform: none;
    }
}

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card--more {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 60px;
    }

    #hero,
    .hero {
        min-height: 100svh;
        align-items: flex-start;
        padding: calc(var(--nav-h) + 36px) 20px 56px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        gap: 18px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.97);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s var(--ease), opacity 0.35s;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 36px;
    }

    .section {
        padding: 72px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header[data-section]::before {
        font-size: clamp(4rem, 18vw, 6rem);
        left: -4px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .skill-group {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .skill-group-label {
        padding-top: 0;
    }

    .focus-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .focus-card {
        padding: 16px;
    }

    .contact-sub br {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-start;
    }

    .legal-page-head {
        margin-bottom: 22px;
    }
}

@media (max-width: 480px) {
    #hero,
    .hero {
        padding: calc(var(--nav-h) + 28px) 16px 48px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 9.5vw, 2.75rem);
    }

    .section {
        padding: 56px 16px;
    }

    .section-title {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn-primary {
        flex: 1 1 auto;
        width: 100%;
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .focus-card {
        padding: 14px;
    }

    .focus-card h4 {
        font-size: 0.88rem;
    }

    .service-card__inner {
        padding: 22px 18px;
    }

    .tag {
        font-size: 0.74rem;
        padding: 5px 10px;
    }

    .project-card__body {
        padding: 18px 16px 22px;
    }

    .project-preview {
        min-height: 120px;
        padding: 16px 18px;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .github-stats__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-inner {
        text-align: left;
    }

    .logo-img {
        height: 34px;
    }
}
