:root {
    --bg: #f6f8fc;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #5f6b7a;
    --soft: #e8edf5;
    --line: #d8e0eb;
    --blue: #2563eb;
    --blue-dark: #173fa6;
    --orange: #f97316;
    --violet: #7c3aed;
    --green: #11845b;
    --shadow: 0 18px 42px rgba(22, 34, 51, 0.10);
    --container: 1180px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-smooth: cubic-bezier(.22, .61, .36, 1);
}

* {
    box-sizing: border-box;
}

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

body {
    --grid-shift-y: 0px;
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
}

body::before {
    inset: -96px 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: translate3d(0, var(--grid-shift-y), 0);
    will-change: transform;
}

body::after {
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(17, 24, 39, 0.24) 0 0.45px, transparent 0.75px) 0 0 / 5px 5px,
        radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.16) 0 0.4px, transparent 0.7px) 0 0 / 7px 7px;
    opacity: 0.09;
}

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

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

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 80;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.site-header {
    position: fixed;
    inset: 18px 0 auto;
    z-index: 50;
    pointer-events: none;
}

.navbar {
    width: min(var(--container), calc(100% - 40px));
    min-height: 64px;
    margin-inline: auto;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(216, 224, 235, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 38px rgba(22, 34, 51, 0.10);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled .navbar {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 48px rgba(22, 34, 51, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
}

.brand-text {
    white-space: nowrap;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav-panel a {
    position: relative;
    padding: 10px 13px;
    border-radius: 6px;
    transition: background 180ms ease, color 180ms ease;
}

.nav-panel a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 360ms var(--ease-out);
}

.nav-panel a:hover,
.nav-panel a.active {
    background: #eef4ff;
    color: var(--blue);
}

.nav-panel a:hover::after,
.nav-panel a.active::after {
    transform: scaleX(1);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
}

.lang-option {
    min-width: 38px;
    height: 34px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-option:hover {
    color: var(--blue);
}

.lang-option.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
}

main {
    padding-top: 128px;
}

.section-shell,
.footer-inner {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section-shell {
    margin-bottom: 104px;
}

main > .section-shell {
    position: relative;
}

#experience,
#projects {
    --section-band: rgba(233, 240, 255, 0.52);
}

#projects {
    --section-band: rgba(233, 247, 241, 0.50);
}

#experience::before,
#projects::before {
    content: "";
    position: absolute;
    top: -54px;
    bottom: -54px;
    left: 50%;
    z-index: -1;
    width: 100vw;
    border-block: 1px solid rgba(94, 114, 142, 0.10);
    background: var(--section-band);
    transform: translateX(-50%);
    pointer-events: none;
}

#experience,
#skills,
#projects {
    --section-accent: var(--blue);
}

#skills {
    --section-accent: var(--orange);
}

#projects {
    --section-accent: var(--green);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    min-height: calc(100vh - 150px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: 0;
}

.intro-copy > .eyebrow,
.intro-copy > .lead,
.intro-copy > .intro-actions {
    opacity: 0;
    translate: 0 22px;
    filter: blur(6px);
    transition:
        opacity 720ms var(--ease-out),
        translate 720ms var(--ease-out),
        filter 720ms var(--ease-out);
}

.intro.active .intro-copy > .eyebrow,
.intro.active .intro-copy > .lead,
.intro.active .intro-copy > .intro-actions {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
}

.intro.active .intro-copy > .eyebrow {
    transition-delay: 80ms;
}

.intro.active .intro-copy > .lead {
    transition-delay: 260ms;
}

.intro.active .intro-copy > .intro-actions {
    transition-delay: 360ms;
}

.split-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.75em) rotate(1.5deg);
    filter: blur(8px);
    transition: opacity 680ms cubic-bezier(.2,.7,.2,1), transform 680ms cubic-bezier(.2,.7,.2,1), filter 680ms ease;
    transition-delay: calc(var(--word-index, 0) * 48ms);
}

.split-title.ready .word {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
}

.lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 6px;
    font-weight: 800;
}

.primary-link {
    padding: 0 20px;
    background: var(--ink);
    color: #fff;
    transition: transform 180ms ease, background 180ms ease;
}

.primary-link:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

.primary-link span {
    font-size: 20px;
}

.profile-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    isolation: isolate;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(calc(var(--parallax-y, 0px) + 30px)) scale(0.985);
    transition:
        opacity 820ms var(--ease-out),
        filter 820ms var(--ease-out),
        transform 820ms var(--ease-out),
        box-shadow 240ms ease;
}

.intro.active .profile-card {
    opacity: 1;
    filter: blur(0);
    transform: translateY(var(--parallax-y, 0px)) scale(1);
    transition-delay: 180ms, 180ms, 180ms, 0ms;
}

.profile-card:hover {
    box-shadow: 0 26px 58px rgba(22, 34, 51, 0.16);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    pointer-events: none;
}

.profile-card::after {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 1;
    pointer-events: none;
    background: conic-gradient(from 180deg, transparent, rgba(37, 99, 235, 0.16), transparent, rgba(249, 115, 22, 0.16), transparent);
    animation: auraSpin 12s linear infinite;
    opacity: 0.72;
}

.profile-card img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
    transform: translate3d(0, var(--image-parallax-y, 0px), 0) scale(1.045);
    transition: transform 900ms var(--ease-out), filter 300ms ease;
    will-change: transform;
}

.profile-card:hover img {
    transform: translate3d(0, var(--image-parallax-y, 0px), 0) scale(1.075);
    filter: saturate(1) contrast(1.04);
}

.profile-info {
    position: relative;
    z-index: 3;
    padding: 22px;
    display: grid;
    gap: 4px;
}

.profile-info span {
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-info strong {
    font-size: 22px;
}

.profile-info p {
    margin: 0;
    color: var(--muted);
}

.profile-float {
    position: absolute;
    z-index: 4;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(22, 34, 51, 0.14);
    backdrop-filter: blur(12px);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    animation: floatSoft 5.6s ease-in-out infinite;
}

.profile-float-one {
    top: 24px;
    left: 22px;
}

.profile-float-two {
    right: 20px;
    bottom: 98px;
    animation-delay: -2.2s;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.proof-strip div {
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip strong {
    font-size: 20px;
}

.proof-strip span {
    margin-top: 4px;
    color: var(--muted);
}

.experience-list {
    position: relative;
    display: grid;
    gap: 18px;
}

.experience-list::before {
    content: "";
    position: absolute;
    left: 206px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(var(--blue), rgba(37, 99, 235, 0.08));
}

.experience-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(240px, 0.42fr);
    gap: 28px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(22, 34, 51, 0.07);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.experience-card::before {
    content: "";
    position: absolute;
    left: 200px;
    top: 31px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

.experience-card:hover {
    --hover-x: 8px;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 44px rgba(22, 34, 51, 0.12);
}

.experience-date span,
.experience-date small {
    display: block;
}

.experience-date span {
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    max-width: 150px;
}

.experience-date small {
    margin-top: 8px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
}

.experience-main h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.experience-place {
    margin: 6px 0 12px;
    color: var(--orange);
    font-weight: 800;
}

.experience-main p:last-child {
    margin: 0;
    color: var(--muted);
}

.experience-points {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-points li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.experience-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.25fr minmax(0, 0.7fr) minmax(280px, 0.45fr);
    align-items: end;
    gap: 28px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

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

.skill-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 12px 28px rgba(22, 34, 51, 0.07);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
}

.skill-card::after,
.case-item::after,
.experience-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(37, 99, 235, 0.14), transparent 34%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.skill-card:hover::after,
.case-item:hover::after,
.experience-card:hover::after {
    opacity: 1;
}

.skill-card:hover {
    --hover-y: -6px;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 44px rgba(22, 34, 51, 0.12);
}

.skill-card .material-symbols-outlined {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 6px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 28px;
}

.skill-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
}

.case-list {
    display: grid;
    gap: 18px;
}

.case-item {
    position: relative;
    display: grid;
    grid-template-columns: 78px 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(22, 34, 51, 0.07);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    overflow: hidden;
    cursor: pointer;
}

.case-item:hover {
    --hover-x: 8px;
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: 0 22px 44px rgba(22, 34, 51, 0.12);
}

.case-item:focus-visible {
    outline: 4px solid rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.45);
}

.case-number {
    color: var(--orange);
    font-family: "JetBrains Mono", monospace;
    font-size: 22px;
    font-weight: 800;
}

.case-item img {
    width: 220px;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #f8fafc;
    transform: scale(1.001);
    transition: transform 720ms var(--ease-out), filter 300ms ease;
    will-change: transform;
}

.case-item:hover img,
.case-item:focus-visible img {
    transform: scale(1.055);
    filter: saturate(1.06) contrast(1.03);
}

.case-number {
    transition: transform 420ms var(--ease-out), color 240ms ease;
}

.case-item:hover .case-number,
.case-item:focus-visible .case-number {
    transform: translateX(7px);
    color: var(--blue);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f0f4fa;
    color: #405064;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.case-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
}

.case-content p {
    margin: 0;
    color: var(--muted);
}

.repo-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.repo-link:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    background: #eef4ff;
}

.repo-link .material-symbols-outlined {
    font-size: 17px;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.project-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 320ms ease;
}

.project-modal.is-open .project-modal-backdrop {
    opacity: 1;
}

.project-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 760px);
    overflow: hidden auto;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
    opacity: 0;
    filter: blur(8px);
    transform: translateY(34px) scale(0.97);
    transition:
        opacity 420ms var(--ease-out),
        filter 420ms var(--ease-out),
        transform 420ms var(--ease-out);
}

.project-modal.is-open .project-modal-panel {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.project-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.project-modal-close:hover {
    transform: rotate(4deg);
    background: #fff;
}

.project-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transform: scale(1.07);
    transition: transform 900ms var(--ease-out);
}

.project-modal.is-open .project-modal-image {
    transform: scale(1);
}

.project-modal-body > * {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 520ms var(--ease-out), translate 520ms var(--ease-out);
}

.project-modal.is-open .project-modal-body > * {
    opacity: 1;
    translate: 0 0;
}

.project-modal.is-open .project-modal-body > :nth-child(1) { transition-delay: 110ms; }
.project-modal.is-open .project-modal-body > :nth-child(2) { transition-delay: 160ms; }
.project-modal.is-open .project-modal-body > :nth-child(3) { transition-delay: 210ms; }
.project-modal.is-open .project-modal-body > :nth-child(4) { transition-delay: 260ms; }

.project-modal-body {
    padding: clamp(22px, 4vw, 34px);
}

.project-modal-tags {
    width: fit-content;
    margin: 0 0 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-modal-body h3 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.project-modal-description {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.project-modal-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 24px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease;
}

.project-modal-link:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

.project-modal-link .material-symbols-outlined {
    font-size: 18px;
}

body.modal-open {
    overflow: hidden;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: 34px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: var(--shadow);
}

.contact-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.contact-copy > p:last-of-type {
    max-width: 480px;
    color: var(--muted);
}

.contact-links,
.contact-form {
    display: grid;
    gap: 14px;
}

.contact-links {
    margin-top: 28px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.contact-links a:hover {
    color: var(--blue);
}

.contact-form {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 13px 14px;
    font: inherit;
    resize: vertical;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-form button {
    justify-self: start;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    background: var(--blue-dark);
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

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

.footer-logo {
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(7px);
    transition:
        opacity 760ms var(--ease-out),
        transform 760ms var(--ease-out),
        filter 760ms var(--ease-out);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-item {
    opacity: 0;
    translate: 0 28px;
    filter: blur(6px);
    transition:
        opacity 700ms var(--ease-out),
        translate 700ms var(--ease-out),
        filter 700ms var(--ease-out);
    transition-delay: calc(100ms + var(--reveal-index, 0) * 72ms);
    will-change: opacity, translate, filter;
}

.reveal.active .reveal-item {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
}

.section-heading .eyebrow::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--section-accent, var(--blue));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 620ms var(--ease-out) 240ms;
}

.reveal.active .section-heading .eyebrow::after {
    transform: scaleX(1);
}

.motion-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --hover-x: 0px;
    --hover-y: 0px;
    transform:
        perspective(1000px)
        translate3d(var(--hover-x), var(--hover-y), 0)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition:
        transform 420ms var(--ease-out),
        border-color 220ms ease,
        box-shadow 220ms ease;
    will-change: transform;
}

.motion-card.is-tilting {
    transition-duration: 90ms, 220ms, 220ms;
}

@media (max-width: 980px) {
    .intro,
    .section-heading,
    .skills-grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .intro {
        min-height: auto;
    }

    .profile-card {
        max-width: 560px;
    }

    .proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experience-list::before,
    .experience-card::before {
        display: none;
    }

    .experience-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .case-item img {
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
    }
}

@media (max-width: 720px) {
    .site-header {
        inset: 10px 0 auto;
    }

    .navbar,
    .section-shell,
    .footer-inner {
        width: min(100% - 28px, var(--container));
    }

    .brand-text {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-panel {
        position: absolute;
        top: 72px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-panel.open {
        display: flex;
        animation: menuDrop 180ms ease both;
    }

    main {
        padding-top: 106px;
    }

    .section-shell {
        margin-bottom: 76px;
    }

    #experience::before,
    #projects::before {
        top: -38px;
        bottom: -38px;
    }

    .intro h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .lead {
        font-size: 17px;
    }

    .reveal {
        transform: translateY(24px);
    }

    .reveal-item {
        translate: 0 20px;
        transition-delay: calc(70ms + var(--reveal-index, 0) * 54ms);
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }

    .case-item {
        grid-template-columns: 1fr;
    }

    .project-modal-image {
        height: auto;
        aspect-ratio: 2 / 1;
        object-fit: contain;
        background: #f8fafc;
    }

    .case-number {
        font-size: 18px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
}

@keyframes auraSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal,
    .reveal-item,
    .intro-copy > .eyebrow,
    .intro-copy > .lead,
    .intro-copy > .intro-actions,
    .profile-card,
    .project-modal-panel,
    .project-modal-body > * {
        opacity: 1 !important;
        translate: 0 0 !important;
        transform: none !important;
        filter: none !important;
    }

    .motion-card,
    .profile-card img,
    .case-item img {
        transform: none !important;
    }

    body::before {
        transform: none !important;
    }
}
