:root {
    --bg: #030007;
    --panel: rgba(5, 12, 18, 0.88);
    --panel-strong: rgba(7, 18, 24, 0.94);
    --panel-soft: rgba(10, 18, 28, 0.66);
    --line: rgba(0, 229, 255, 0.22);
    --line-strong: rgba(0, 229, 255, 0.58);
    --green: #00e5ff;
    --green-soft: #41f6ff;
    --green-deep: #008ea3;
    --cyan: #00e5ff;
    --cyan-soft: #41f6ff;
    --pink: #ff0a8a;
    --pink-soft: #ff4dbc;
    --yellow: #ffe66d;
    --status-green: #17f970;
    --text: #fffaff;
    --muted: #b9bac8;
    --dim: #8d8a9b;
    --purple: #a855f7;
    --shadow: 0 0 40px rgba(0, 229, 255, 0.24);
    --border: 1px solid var(--line);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 10, 138, 0.28), transparent 30rem),
        radial-gradient(circle at 88% 16%, rgba(0, 229, 255, 0.24), transparent 31rem),
        radial-gradient(circle at 54% 82%, rgba(255, 230, 109, 0.08), transparent 26rem),
        var(--bg);
    isolation: isolate;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 10, 138, 0.032) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
    background:
        linear-gradient(115deg, transparent 0 24%, rgba(255, 10, 138, 0.2) 24.15%, transparent 24.35% 100%),
        linear-gradient(145deg, transparent 0 62%, rgba(0, 229, 255, 0.16) 62.1%, transparent 62.3% 100%),
        repeating-linear-gradient(0deg, transparent 0 78px, rgba(0, 229, 255, 0.052) 79px, transparent 80px),
        repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 10, 138, 0.035) 121px, transparent 122px);
    opacity: 0.76;
    z-index: -1;
}

.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.74;
    mix-blend-mode: screen;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 50;
    transform: translateY(-140%);
    padding: 10px 14px;
    color: #08000b;
    background: linear-gradient(135deg, var(--yellow), var(--cyan));
    border-radius: 6px;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(100% - 120px, 1240px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 68px;
    background: rgba(3, 0, 7, 0.86);
    border-bottom: 1px solid rgba(0, 229, 255, 0.22);
    backdrop-filter: blur(18px);
}

.site-nav {
    height: 100%;
    display: grid;
    grid-template-columns: 270px 1fr auto;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    width: 10px;
    height: 10px;
    border: 2px solid var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 10, 138, 0.95);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--cyan);
    border-radius: inherit;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
}

.nav-menu::before,
.nav-menu::after {
    content: none;
}

.nav-link,
.cv-link,
.section-kicker,
.btn,
.stack-title,
.timeline-card time {
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    color: rgba(244, 245, 242, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transform: scaleX(0.25);
    transition: opacity 220ms ease, transform 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.6), 0 0 22px rgba(255, 10, 138, 0.22);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.cv-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 22px;
    color: var(--pink-soft);
    border: 1px solid rgba(255, 10, 138, 0.72);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 10, 138, 0.1);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cv-link:hover,
.cv-link:focus-visible {
    background: rgba(255, 10, 138, 0.12);
    box-shadow: 0 0 28px rgba(255, 10, 138, 0.28);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--green);
    background: transparent;
    border: var(--border);
    border-radius: 6px;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.nav-toggle span {
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 10px;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
    transform-origin: center;
}

.nav-toggle.is-active {
    background: rgba(255, 10, 138, 0.12);
    border-color: rgba(0, 229, 255, 0.62);
    box-shadow: 0 0 24px rgba(255, 10, 138, 0.24), inset 0 0 18px rgba(0, 229, 255, 0.08);
    transform: scale(1.04);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ccs-main {
    position: relative;
    z-index: 1;
}

.hero,
.section-band {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-band {
    transition: background-color 520ms ease, box-shadow 520ms ease;
}

.section-band::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.14), rgba(255, 10, 138, 0.08), transparent),
        radial-gradient(circle at 18% 18%, rgba(255, 10, 138, 0.12), transparent 19rem);
    opacity: 0;
    transform: translateX(-18%);
    transition: opacity 720ms ease, transform 960ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-band.is-section-visible::after,
.section-band.is-section-focus::after {
    opacity: 0.36;
    transform: translateX(0);
}

.section-band.is-section-focus {
    box-shadow: inset 0 0 72px rgba(0, 229, 255, 0.06);
}

.hero {
    min-height: 620px;
    padding: 96px 0 0;
    overflow: hidden;
}

.hero::before,
.section-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 36%, rgba(255, 10, 138, 0.2), transparent 20rem),
        radial-gradient(circle at 76% 42%, rgba(0, 229, 255, 0.16), transparent 20rem),
        linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.07), transparent);
    opacity: 0.8;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 31%, rgba(255, 10, 138, 0.66) 31.1%, transparent 31.35% 100%),
        linear-gradient(0deg, transparent 0 83%, rgba(0, 229, 255, 0.5) 83.1%, transparent 83.35% 100%),
        radial-gradient(circle at 20% 60%, rgba(255, 10, 138, 0.32), transparent 16rem),
        radial-gradient(circle at 78% 64%, rgba(0, 229, 255, 0.36), transparent 15rem);
    opacity: 0.54;
    animation: circuitDrift 14s ease-in-out infinite alternate;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 470px;
    gap: 88px;
    align-items: center;
}

.section-kicker {
    margin: 0 0 22px;
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 900;
}

.hero h1,
.about h2,
.projects h2,
.experience h2,
.lab-contact h2,
.stack-contact h2 {
    margin: 0;
    color: var(--text);
    line-height: 1.03;
    font-weight: 900;
}

.hero h1 {
    max-width: 720px;
    font-size: 4.45rem;
    text-wrap: balance;
    text-shadow: 0 18px 28px rgba(0, 0, 0, 0.58);
}

.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--pink) 0%, var(--pink-soft) 34%, var(--cyan) 70%, var(--yellow) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 26px rgba(255, 10, 138, 0.32), 0 0 38px rgba(0, 229, 255, 0.24);
}

.hero-lead {
    max-width: 550px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 38px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 950;
}

.btn-primary {
    color: #fffaff;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    border: 1px solid var(--pink-soft);
    box-shadow: 0 0 32px rgba(255, 10, 138, 0.48);
}

.btn-outline {
    color: var(--cyan);
    background: rgba(3, 0, 7, 0.56);
    border: 1px solid var(--cyan);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.08);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.dashboard-frame {
    position: relative;
    min-height: 452px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(8, 17, 25, 0.92), rgba(4, 2, 10, 0.95)),
        linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 10, 138, 0.08), transparent);
    border: 1px solid rgba(0, 229, 255, 0.58);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.16),
        0 0 46px rgba(0, 229, 255, 0.3),
        0 0 54px rgba(255, 10, 138, 0.14),
        inset 0 0 44px rgba(0, 229, 255, 0.05);
    animation: dashboardPulse 5s ease-in-out infinite;
}

.dashboard-frame::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: -1;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25), rgba(255, 10, 138, 0.12), transparent 68%);
    filter: blur(20px);
}

.dashboard-topbar,
.dashboard-brand,
.activity-row {
    display: flex;
    align-items: center;
}

.dashboard-topbar {
    justify-content: space-between;
    margin-bottom: 28px;
}

.dashboard-brand {
    gap: 10px;
    font-size: 0.92rem;
}

.mini-logo,
.project-icon,
.lab-icon,
.contact-icon {
    position: relative;
    flex: 0 0 auto;
}

.mini-logo {
    width: 18px;
    height: 18px;
}

.mini-logo::before,
.mini-logo::after {
    content: "";
    position: absolute;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.75);
}

.mini-logo::before {
    width: 8px;
    height: 8px;
    left: 5px;
    top: 0;
    border-radius: 50%;
}

.mini-logo::after {
    width: 18px;
    height: 8px;
    left: 0;
    bottom: 0;
    border-radius: 3px 3px 2px 2px;
    clip-path: polygon(0 100%, 18% 0, 40% 0, 50% 100%, 60% 0, 82% 0, 100% 100%);
}

.dash-menu {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    width: 22px;
    padding: 2px;
    background: transparent;
    border: 0;
}

.dash-menu span {
    height: 2px;
    width: 100%;
    background: rgba(244, 245, 242, 0.65);
}

.dash-label {
    margin: 0 0 16px;
    color: rgba(244, 245, 242, 0.82);
    font-size: 0.86rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric,
.chart-panel,
.activity-panel,
.stack-card,
.project-card,
.timeline-card,
.lab-grid a {
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(3, 8, 15, 0.72);
}

.metric {
    min-height: 78px;
    padding: 14px 12px;
}

.metric span,
.metric small,
.activity-row time,
.footer-grid p {
    color: var(--dim);
}

.metric span {
    display: block;
    margin-bottom: 7px;
    font-size: 0.64rem;
}

.metric strong {
    display: block;
    font-size: 1rem;
}

.metric small {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 0.67rem;
    font-weight: 800;
}

.chart-panel {
    margin-top: 18px;
    padding: 16px 18px 10px;
}

.chart-title {
    color: rgba(244, 245, 242, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
}

.sales-chart {
    display: block;
    width: 100%;
    height: 126px;
    margin-top: 10px;
}

.chart-axis {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    color: rgba(244, 245, 242, 0.48);
    font-size: 0.58rem;
    text-align: center;
}

.activity-panel {
    margin-top: 14px;
    padding: 14px 18px 12px;
}

.activity-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.68rem;
}

.activity-row span {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border: 1px solid var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.65);
}

.activity-row p {
    margin: 0;
}

.activity-row time {
    white-space: nowrap;
}

.api-flow-frame {
    overflow: hidden;
    min-height: 470px;
    transform-style: preserve-3d;
    perspective: 900px;
}

.api-flow-frame::after {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(120deg, transparent 0 22%, rgba(255, 10, 138, 0.12) 22.1% 22.4%, transparent 22.5% 100%),
        radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.2), transparent 13rem);
    opacity: 0.9;
}

.api-flow-topbar,
.api-flow-frame .dash-label,
.api-flow-visual,
.api-pipeline {
    position: relative;
    z-index: 2;
}

.api-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 11px;
    color: var(--status-green);
    border: 1px solid rgba(23, 249, 112, 0.34);
    border-radius: 999px;
    background: rgba(23, 249, 112, 0.08);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.api-live-badge span {
    width: 7px;
    height: 7px;
    background: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(23, 249, 112, 0.9);
    animation: liveBlink 1.5s ease-in-out infinite;
}

.api-flow-visual {
    height: 272px;
    margin-top: 18px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 45%, rgba(0, 229, 255, 0.2), transparent 9rem),
        radial-gradient(circle at 16% 12%, rgba(255, 10, 138, 0.12), transparent 8rem),
        linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 10, 138, 0.035) 1px, transparent 1px),
        rgba(2, 8, 15, 0.66);
    background-size: auto, 32px 32px, 32px 32px, auto;
    box-shadow: inset 0 0 34px rgba(0, 229, 255, 0.08);
    overflow: hidden;
    transform: rotateX(4deg) rotateY(-5deg);
}

.api-flow-visual::before,
.api-flow-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.api-flow-visual::before {
    inset: 22px 34px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 50%;
    transform: rotate(-12deg);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.07);
}

.api-flow-visual::after {
    left: 50%;
    top: 50%;
    width: 260px;
    height: 84px;
    border: 1px solid rgba(255, 10, 138, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(18deg);
}

.api-flow-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.api-orbit-core {
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 2;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 229, 255, 0.48);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.28), rgba(255, 10, 138, 0.1) 48%, transparent 68%);
    box-shadow: 0 0 46px rgba(0, 229, 255, 0.28), 0 0 34px rgba(255, 10, 138, 0.16), inset 0 0 24px rgba(0, 229, 255, 0.1);
    animation: apiCoreFloat 5.4s ease-in-out infinite;
}

.api-orbit-core::before,
.api-orbit-core::after {
    content: "";
    position: absolute;
    inset: -13px;
    border: 1px solid rgba(0, 229, 255, 0.26);
    border-radius: 50%;
}

.api-orbit-core::before {
    transform: rotateX(68deg) rotateZ(0deg);
    animation: apiOrbitSpin 5.8s linear infinite;
}

.api-orbit-core::after {
    transform: rotateY(65deg) rotateZ(40deg);
    animation: apiOrbitSpin 7.2s linear infinite reverse;
}

.api-orbit-core span {
    position: absolute;
    inset: 25px;
    border: 1px solid var(--yellow);
    border-radius: 50%;
    background: rgba(255, 230, 109, 0.24);
    box-shadow: 0 0 24px rgba(255, 230, 109, 0.72);
}

.api-node {
    position: absolute;
    z-index: 4;
    width: 116px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 7px;
    background: rgba(3, 10, 18, 0.88);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), inset 0 0 18px rgba(0, 229, 255, 0.06);
    transform: translate(-50%, -50%) translateZ(28px);
    animation: apiNodeFloat 4.8s ease-in-out infinite;
}

.api-node span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.api-node strong {
    display: block;
    color: rgba(244, 245, 242, 0.9);
    font-size: 0.72rem;
    line-height: 1.2;
}

.api-node-client {
    left: 18%;
    top: 24%;
}

.api-node-gateway {
    left: 31%;
    top: 72%;
    animation-delay: -1.1s;
}

.api-node-api {
    left: 50%;
    top: 48%;
    width: 126px;
    border-color: rgba(255, 10, 138, 0.6);
    background: rgba(20, 4, 20, 0.9);
    box-shadow: 0 0 30px rgba(255, 10, 138, 0.22), inset 0 0 20px rgba(0, 229, 255, 0.08);
    animation-delay: -0.4s;
}

.api-node-db {
    left: 73%;
    top: 25%;
    animation-delay: -1.8s;
}

.api-node-response {
    left: 79%;
    top: 73%;
    animation-delay: -2.5s;
}

.api-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 16px;
}

.api-pipeline-step {
    position: relative;
    min-height: 58px;
    padding: 12px 10px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 7px;
    background: rgba(3, 8, 15, 0.68);
    overflow: hidden;
}

.api-pipeline-step::before {
    content: "";
    position: absolute;
    left: -55%;
    top: 0;
    width: 52%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 10, 138, 0.22), rgba(0, 229, 255, 0.18), transparent);
    transform: skewX(-18deg);
    animation: pipelineSweep 4s ease-in-out infinite;
    animation-delay: calc(var(--step-delay, 0) * 0.35s);
}

.api-pipeline-step:nth-child(1) {
    --step-delay: 0;
}

.api-pipeline-step:nth-child(2) {
    --step-delay: 1;
}

.api-pipeline-step:nth-child(3) {
    --step-delay: 2;
}

.api-pipeline-step:nth-child(4) {
    --step-delay: 3;
}

.api-pipeline-step span {
    display: block;
    color: var(--yellow);
    font-size: 0.62rem;
    font-weight: 900;
}

.api-pipeline-step p {
    margin: 6px 0 0;
    color: rgba(244, 245, 242, 0.82);
    font-size: 0.68rem;
    font-weight: 800;
}

.api-pipeline-step.is-active {
    border-color: rgba(255, 10, 138, 0.52);
    box-shadow: inset 0 0 20px rgba(255, 10, 138, 0.1), 0 0 20px rgba(0, 229, 255, 0.08);
}

.tech-strip {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    min-height: 92px;
    color: rgba(244, 245, 242, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tech-strip span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 24px;
    vertical-align: middle;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 230, 109, 0.9);
}

.section-band {
    padding: 72px 0;
    overflow: hidden;
}

.section-band > .shell {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px 150px;
    align-items: center;
    gap: 86px;
}

.about h2,
.projects h2,
.experience h2,
.lab-contact h2,
.stack-contact h2 {
    font-size: 2.15rem;
}

.about-copy {
    max-width: 720px;
}

.about-copy p:not(.section-kicker),
.lab-panel > p:not(.section-kicker),
.tech-panel > p:not(.section-kicker),
.contact-panel > p,
.project-card p,
.timeline-card p {
    color: var(--muted);
    line-height: 1.68;
}

.about-copy p:not(.section-kicker) {
    margin: 20px 0 0;
    font-size: 0.95rem;
}

.stack-card {
    min-height: 226px;
    padding: 22px 24px;
    background: rgba(3, 8, 6, 0.76);
}

.stack-title {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 900;
}

.stack-card ul,
.timeline-card ul,
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stack-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 7px 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.stack-card li span {
    width: 9px;
    height: 9px;
    border: 1px solid var(--green);
    border-radius: 2px;
    box-shadow: inset 0 0 4px rgba(0, 229, 255, 0.3);
}

.code-mark {
    display: grid;
    place-items: center;
    min-height: 200px;
    color: rgba(255, 10, 138, 0.68);
    font-size: 5.3rem;
    font-weight: 300;
}

.projects h2 {
    margin-bottom: 34px;
}

.projects-wrap {
    position: relative;
}

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

.project-card {
    position: relative;
    min-height: 252px;
    padding: 34px 32px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(6, 14, 22, 0.92), rgba(3, 0, 7, 0.84)),
        radial-gradient(circle at 82% 90%, rgba(0, 229, 255, 0.16), transparent 14rem);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 10, 138, 0.09), rgba(0, 229, 255, 0.06), transparent),
        linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 100% 42px;
    opacity: 0.45;
    pointer-events: none;
}

.project-card-featured {
    border-color: rgba(0, 229, 255, 0.78);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.2);
}

.project-card-purple {
    background:
        linear-gradient(180deg, rgba(8, 9, 13, 0.96), rgba(3, 3, 6, 0.86)),
        radial-gradient(circle at 86% 90%, rgba(255, 10, 138, 0.36), transparent 13rem);
    border-color: rgba(255, 10, 138, 0.32);
}

.project-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.project-card p {
    position: relative;
    z-index: 1;
    min-height: 55px;
    margin: 24px 0 16px;
    font-size: 0.86rem;
}

.tag-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-row span {
    padding: 6px 10px;
    color: rgba(244, 245, 242, 0.8);
    border: 1px solid rgba(244, 245, 242, 0.16);
    border-radius: 5px;
    background: rgba(1, 3, 2, 0.52);
    font-size: 0.69rem;
}

.project-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-card:hover,
.project-card:focus-within,
.timeline-card:hover,
.tech-stack-card:hover,
.tech-stack-card:focus-within,
.lab-grid a:hover,
.lab-grid a:focus-visible {
    transform: translateY(-4px);
}

.project-card:hover,
.project-card:focus-within {
    border-color: rgba(255, 10, 138, 0.64);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 28px rgba(255, 10, 138, 0.18), 0 0 24px rgba(0, 229, 255, 0.12);
}

.project-icon {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.icon-astra {
    border-radius: 50%;
}

.icon-astra::before,
.icon-astra::after {
    content: "";
    position: absolute;
    background: currentColor;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
}

.icon-astra::before {
    width: 10px;
    height: 10px;
    top: 0;
    left: 9px;
    border-radius: 50%;
}

.icon-astra::after {
    width: 28px;
    height: 13px;
    left: 0;
    bottom: 0;
    border-radius: 3px;
    clip-path: polygon(0 100%, 16% 18%, 38% 18%, 48% 100%, 58% 18%, 82% 18%, 100% 100%);
}

.icon-cats::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid #ff6cae;
    border-top-color: #ffb340;
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(255, 108, 174, 0.6);
}

.icon-cats::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    left: 9px;
    top: 9px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.icon-parking::before,
.icon-parking::after {
    content: "";
    position: absolute;
    border: 2px solid var(--green);
}

.icon-parking::before {
    inset: 2px 1px 8px;
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.16);
}

.icon-parking::after {
    width: 18px;
    height: 7px;
    left: 5px;
    bottom: 2px;
    border-top: 0;
}

.project-preview {
    position: absolute;
    right: 18px;
    bottom: -14px;
    width: 185px;
    height: 74px;
    border: 1px solid rgba(0, 229, 255, 0.34);
    background: rgba(0, 28, 38, 0.55);
    box-shadow: 0 0 26px rgba(0, 229, 255, 0.22);
}

.project-preview span {
    position: absolute;
    height: 10px;
    background: var(--green);
}

.project-preview span:nth-child(1) {
    left: 14px;
    top: 14px;
    width: 55px;
}

.project-preview span:nth-child(2) {
    left: 78px;
    top: 14px;
    width: 44px;
}

.project-preview span:nth-child(3) {
    left: 14px;
    top: 38px;
    width: 78px;
}

.project-preview span:nth-child(4) {
    left: 102px;
    top: 38px;
    width: 52px;
}

.corner-screen {
    position: absolute;
    right: 22px;
    top: 46px;
    width: 42px;
    height: 31px;
    border: 1px solid rgba(255, 10, 138, 0.28);
    background: rgba(255, 10, 138, 0.08);
}

.round-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--green);
    background: rgba(1, 3, 2, 0.58);
    border: 1px solid rgba(244, 245, 242, 0.28);
    border-radius: 50%;
    transform: translateY(-50%);
}

.round-control-left {
    left: -56px;
}

.round-control-right {
    right: -56px;
}

.experience {
    padding-bottom: 82px;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 44px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), rgba(255, 10, 138, 0.62), var(--yellow), transparent);
}

.timeline-card {
    position: relative;
    padding: 34px 28px 26px;
    background: rgba(3, 7, 5, 0.66);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.timeline-card:hover {
    border-color: rgba(255, 10, 138, 0.42);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(255, 10, 138, 0.13);
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -1px;
    width: 13px;
    height: 13px;
    background: var(--yellow);
    border: 3px solid rgba(3, 7, 5, 1);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 230, 109, 0.9);
}

.timeline-card time {
    position: absolute;
    top: -27px;
    left: 25px;
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 900;
}

.timeline-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.timeline-card p {
    margin: 0 0 20px;
    color: var(--green-soft);
    font-size: 0.78rem;
}

.timeline-card li {
    position: relative;
    padding-left: 17px;
    margin: 8px 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.45;
}

.timeline-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 4px;
    border-left: 1px solid var(--green);
    border-bottom: 1px solid var(--green);
    transform: rotate(-45deg);
}

.lab-contact,
.stack-contact {
    padding: 0;
}

.lab-contact-grid,
.stack-contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    min-height: 292px;
}

.lab-panel,
.tech-panel,
.contact-panel {
    position: relative;
    padding: 58px 0;
}

.contact-panel {
    padding-left: 72px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-contact h2,
.stack-contact h2 {
    margin-bottom: 10px;
}

.lab-panel > p:not(.section-kicker),
.tech-panel > p:not(.section-kicker),
.contact-panel > p {
    margin: 0;
    max-width: 470px;
    font-size: 0.84rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
    max-width: 720px;
    margin-top: 28px;
}

.tech-stack-card {
    position: relative;
    min-height: 132px;
    padding: 20px 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(5, 14, 22, 0.88), rgba(3, 1, 10, 0.78)),
        radial-gradient(circle at 90% 0%, rgba(0, 229, 255, 0.16), transparent 7rem);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tech-stack-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 54%, rgba(255, 10, 138, 0.1) 54.2%, transparent 54.6% 100%),
        linear-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px);
    background-size: 100% 100%, 100% 34px;
    opacity: 0.78;
}

.tech-stack-card:hover,
.tech-stack-card:focus-within {
    border-color: rgba(0, 229, 255, 0.58);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 26px rgba(0, 229, 255, 0.14), 0 0 18px rgba(255, 10, 138, 0.12);
}

.tech-stack-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    color: #07000b;
    background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
    border-radius: 7px;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.26);
    font-size: 0.74rem;
    font-weight: 950;
}

.tech-stack-card:nth-child(1) .tech-stack-icon,
.tech-stack-card:nth-child(4) .tech-stack-icon {
    background: linear-gradient(135deg, var(--yellow), #ffb703);
    box-shadow: 0 0 22px rgba(255, 230, 109, 0.28);
}

.tech-stack-card:nth-child(2) .tech-stack-icon,
.tech-stack-card:nth-child(5) .tech-stack-icon {
    color: #fffaff;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    box-shadow: 0 0 22px rgba(255, 10, 138, 0.28);
}

.tech-stack-card h3,
.tech-stack-card p {
    position: relative;
    z-index: 1;
}

.tech-stack-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.tech-stack-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.52;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
    max-width: 690px;
    margin-top: 28px;
}

.lab-grid a {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 0 22px;
    color: rgba(244, 245, 242, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(2, 11, 7, 0.76);
}

.lab-grid a:hover,
.lab-grid a:focus-visible {
    border-color: var(--green);
    box-shadow: inset 0 0 22px rgba(0, 229, 255, 0.08);
}

.lab-icon,
.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--green);
}

.lab-icon::before,
.lab-icon::after,
.contact-icon::before,
.contact-icon::after {
    content: "";
    position: absolute;
}

.qr::before {
    inset: 3px;
    background:
        linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) right bottom / 4px 4px no-repeat;
}

.chat::before {
    inset: 3px 2px 6px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.chat::after {
    left: 9px;
    bottom: 2px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.api::before {
    inset: 5px 3px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skewX(-18deg);
}

.ticket::before {
    inset: 5px 2px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.ticket::after {
    top: 7px;
    bottom: 7px;
    left: 50%;
    border-left: 1px dashed currentColor;
}

.lock::before {
    width: 14px;
    height: 11px;
    left: 5px;
    bottom: 3px;
    background: currentColor;
    border-radius: 2px;
}

.lock::after {
    width: 10px;
    height: 9px;
    left: 7px;
    top: 2px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.more::before {
    inset: 4px;
    background:
        linear-gradient(currentColor 0 0) left top / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) right top / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) left bottom / 7px 7px no-repeat,
        linear-gradient(currentColor 0 0) right bottom / 7px 7px no-repeat;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 32px;
    color: var(--muted);
    font-size: 0.86rem;
}

.mail::before {
    inset: 5px 2px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.mail::after {
    left: 4px;
    right: 4px;
    top: 7px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.phone::before {
    width: 14px;
    height: 20px;
    left: 5px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.phone::after {
    width: 4px;
    height: 4px;
    left: 10px;
    bottom: 5px;
    background: currentColor;
    border-radius: 50%;
}

.pin::before {
    width: 14px;
    height: 14px;
    left: 5px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.pin::after {
    width: 4px;
    height: 4px;
    left: 10px;
    top: 7px;
    background: currentColor;
    border-radius: 50%;
}

.globe::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.globe::after {
    left: 5px;
    right: 5px;
    top: 50%;
    border-top: 2px solid currentColor;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(1, 3, 2, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 78px;
    gap: 30px;
}

.footer-grid p {
    margin: 0;
    font-size: 0.72rem;
}

.footer-copy {
    color: rgba(244, 245, 242, 0.78) !important;
    margin-bottom: 5px !important;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.social-links a {
    display: grid;
    place-items: center;
    min-width: 22px;
    min-height: 22px;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 900;
}

.footer-made {
    text-align: right;
}

.js-enhanced [data-reveal] {
    opacity: 0;
    filter: blur(9px);
    transform: translate3d(0, 42px, 0);
    transition:
        opacity 940ms ease,
        filter 940ms ease,
        transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, filter, transform;
}

.js-enhanced [data-reveal="left"] {
    transform: translate3d(-54px, 10px, 0);
}

.js-enhanced [data-reveal="right"] {
    transform: translate3d(54px, 10px, 0);
}

.js-enhanced [data-reveal="scale"] {
    transform: translate3d(0, 32px, 0) scale(0.94);
}

.js-enhanced [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.js-enhanced .is-section-focus [data-reveal].is-visible {
    animation: sectionComfortPulse 920ms ease both;
}

.js-enhanced [data-reveal].is-visible.project-card:hover,
.js-enhanced [data-reveal].is-visible.project-card:focus-within,
.js-enhanced [data-reveal].is-visible.timeline-card:hover,
.js-enhanced [data-reveal].is-visible.tech-stack-card:hover,
.js-enhanced [data-reveal].is-visible.tech-stack-card:focus-within,
.js-enhanced .lab-grid a[data-reveal].is-visible:hover,
.js-enhanced .lab-grid a[data-reveal].is-visible:focus-visible {
    transform: translateY(-4px);
}

.js-enhanced .is-visible .brand-mark,
.js-enhanced .is-visible .mini-logo,
.js-enhanced [data-reveal].is-visible .project-icon,
.js-enhanced [data-reveal].is-visible .lab-icon,
.js-enhanced [data-reveal].is-visible .contact-icon {
    animation: iconPing 1.7s ease-out both;
}

@keyframes circuitDrift {
    0% {
        transform: translate3d(-10px, -6px, 0) scale(1);
        opacity: 0.45;
    }

    100% {
        transform: translate3d(14px, 10px, 0) scale(1.02);
        opacity: 0.66;
    }
}

@keyframes dashboardPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(0, 229, 255, 0.14),
            0 0 42px rgba(0, 229, 255, 0.28),
            0 0 36px rgba(255, 10, 138, 0.12),
            inset 0 0 44px rgba(0, 229, 255, 0.05);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(255, 10, 138, 0.22),
            0 0 58px rgba(0, 229, 255, 0.42),
            0 0 54px rgba(255, 10, 138, 0.22),
            inset 0 0 58px rgba(255, 10, 138, 0.07);
    }
}

@keyframes liveBlink {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes apiCoreFloat {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-6px) scale(1.04);
    }
}

@keyframes apiOrbitSpin {
    0% {
        rotate: 0deg;
    }

    100% {
        rotate: 360deg;
    }
}

@keyframes apiNodeFloat {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) translateZ(28px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-5px) translateZ(38px);
    }
}

@keyframes pipelineSweep {
    0%,
    18% {
        left: -60%;
        opacity: 0;
    }

    38% {
        opacity: 1;
    }

    72%,
    100% {
        left: 112%;
        opacity: 0;
    }
}

@keyframes iconPing {
    0% {
        transform: scale(0.86);
        filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0));
    }

    55% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.68)) drop-shadow(0 0 10px rgba(255, 10, 138, 0.24));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0));
    }
}

@keyframes navLightSweep {
    0% {
        left: -45%;
        opacity: 0;
    }

    22% {
        opacity: 0.88;
    }

    100% {
        left: 118%;
        opacity: 0;
    }
}

@keyframes sectionComfortPulse {
    0% {
        filter: brightness(1);
        transform: translate3d(0, 0, 0) scale(1);
    }

    40% {
        filter: brightness(1.16);
        transform: translate3d(0, -3px, 0) scale(1.01);
    }

    100% {
        filter: brightness(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .particle-canvas {
        display: none;
    }

    .js-enhanced [data-reveal] {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

@media (max-width: 1180px) {
    .shell {
        width: min(100% - 56px, 980px);
    }

    .site-nav {
        grid-template-columns: auto 1fr auto;
    }

    .brand {
        font-size: 0.82rem;
    }

    .nav-menu {
        gap: 18px;
    }

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

    .hero {
        padding-top: 74px;
    }

    .hero h1 {
        max-width: 850px;
        font-size: 3.7rem;
    }

    .dashboard-frame {
        width: min(100%, 540px);
        margin: 0 auto 34px;
    }

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

    .code-mark {
        display: none;
    }

    .project-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .round-control {
        display: none;
    }

    .timeline {
        gap: 46px;
    }

    .timeline::before {
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
    }

    .timeline-card time {
        position: static;
        display: block;
        margin-bottom: 12px;
    }

    .lab-contact-grid,
    .stack-contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 32px, 640px);
    }

    .site-nav {
        grid-template-columns: 1fr auto;
    }

    .cv-link {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    body.nav-is-open .site-header {
        box-shadow: 0 0 32px rgba(255, 10, 138, 0.14), 0 0 24px rgba(0, 229, 255, 0.1);
    }

    .nav-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: grid;
        gap: 0;
        overflow: hidden;
        padding: 12px;
        background:
            linear-gradient(145deg, rgba(4, 18, 11, 0.98), rgba(1, 5, 3, 0.96)),
            radial-gradient(circle at 18% 0%, rgba(255, 10, 138, 0.18), transparent 14rem),
            radial-gradient(circle at 88% 14%, rgba(0, 229, 255, 0.16), transparent 14rem);
        border: 1px solid rgba(0, 229, 255, 0.34);
        border-radius: 8px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56), 0 0 32px rgba(0, 229, 255, 0.16);
        transform: translateY(-20px) scale(0.96);
        transform-origin: top right;
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 260ms ease,
            transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 360ms ease;
    }

    .nav-menu::before,
    .nav-menu::after {
        content: "";
        position: absolute;
        pointer-events: none;
    }

    .nav-menu::before {
        inset: 0;
        background:
            linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 10, 138, 0.06) 1px, transparent 1px);
        background-size: 34px 34px;
        opacity: 0.18;
    }

    .nav-menu::after {
        left: -35%;
        top: 0;
        width: 32%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 10, 138, 0.34), rgba(0, 229, 255, 0.28), transparent);
        transform: skewX(-18deg);
        opacity: 0;
    }

    .nav-menu.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 28px 68px rgba(0, 0, 0, 0.6), 0 0 46px rgba(255, 10, 138, 0.2), 0 0 34px rgba(0, 229, 255, 0.12);
    }

    .nav-menu.is-open::after {
        animation: navLightSweep 620ms ease-out 120ms both;
    }

    .nav-link {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 14px 12px;
        font-size: 0.82rem;
        opacity: 0;
        transform: translateX(18px);
        transition:
            color 180ms ease,
            text-shadow 180ms ease,
            opacity 320ms ease,
            transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--nav-delay, 0) * 54ms);
    }

    .nav-link::before {
        content: "";
        width: 7px;
        height: 7px;
        margin-right: 12px;
        border: 1px solid currentColor;
        border-radius: 50%;
        opacity: 0.72;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.44);
    }

    .nav-link::after {
        bottom: 8px;
        left: 31px;
        right: 12px;
    }

    .nav-menu.is-open .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu:not(.is-open) .nav-link {
        transition-delay: 0ms;
    }

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

    .hero h1 {
        font-size: 2.85rem;
    }

    .hero-lead {
        font-size: 0.98rem;
    }

    .hero-actions {
        gap: 14px;
    }

    .btn {
        width: 100%;
    }

    .tech-strip {
        min-height: 76px;
        gap: 14px;
        font-size: 0.74rem;
    }

    .tech-strip span:not(:last-child)::after {
        margin-left: 14px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-flow-frame {
        min-height: 455px;
    }

    .api-flow-visual {
        height: 252px;
        transform: rotateX(3deg);
    }

    .api-node {
        width: 106px;
        padding: 9px 10px;
    }

    .api-node strong {
        font-size: 0.68rem;
    }

    .api-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about h2,
    .projects h2,
    .experience h2,
    .lab-contact h2,
    .stack-contact h2 {
        font-size: 1.75rem;
    }

    .lab-grid,
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 22px 0;
        text-align: center;
    }

    .footer-made {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand {
        gap: 10px;
        font-size: 0.74rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .dashboard-frame,
    .project-card,
    .timeline-card,
    .stack-card {
        padding: 22px;
    }

    .api-flow-frame {
        min-height: 500px;
    }

    .api-flow-visual {
        height: 320px;
    }

    .api-orbit-core {
        width: 78px;
        height: 78px;
    }

    .api-node {
        width: 94px;
        min-height: 50px;
        padding: 8px 9px;
    }

    .api-node span {
        font-size: 0.58rem;
    }

    .api-node strong {
        font-size: 0.62rem;
    }

    .api-node-client {
        left: 23%;
        top: 18%;
    }

    .api-node-gateway {
        left: 25%;
        top: 76%;
    }

    .api-node-db {
        left: 76%;
        top: 18%;
    }

    .api-node-response {
        left: 75%;
        top: 78%;
    }

    .api-pipeline-step {
        min-height: 54px;
    }

    .sales-chart {
        height: 110px;
    }

    .chart-axis {
        font-size: 0.52rem;
    }

    .activity-row {
        grid-template-columns: 12px 1fr;
    }

    .activity-row time {
        grid-column: 2;
    }
}
