:root {
    --navy: #061329;
    --heading: #061329;
    --purple: #9c5ea9;
    --purple-deep: #6250a4;
    --purple-soft: #f0eaf4;
    --paper: #ebf3fc;
    --page: #f8f9fc;
    --surface: #fff;
    --surface-muted: #f0f2f7;
    --ink: #17233a;
    --muted: #687185;
    --line: #e5e8ef;
    --border-muted: #e9e9ef;
    --subtle-text: #8991a0;
    --nav-muted: #535d70;
    --header-surface: rgba(248, 249, 252, 0.92);
    --section-border: #ececf2;
    --yellow: #f9ca24;
    --white: #fff;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--heading);
    background: var(--page);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --heading: #edf0f7;
    --purple: #c894d3;
    --purple-deep: #b5a2ed;
    --purple-soft: #302639;
    --page: #10131c;
    --surface: #191f2c;
    --surface-muted: #252c3b;
    --ink: #e5e9f1;
    --muted: #a7b0c1;
    --line: #303747;
    --border-muted: #343b4b;
    --subtle-text: #a5adbd;
    --nav-muted: #c0c6d2;
    --header-surface: rgba(16, 19, 28, 0.94);
    --section-border: #2c3240;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--page);
}

.loading-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.loading-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: var(--navy);
    color: var(--white);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.07em;
}

.loading-mark span {
    color: var(--yellow);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

.section-shell {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

.section-space {
    padding-block: 112px;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--section-border);
    background: var(--header-surface);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1280px, calc(100% - 64px));
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.07em;
}

.brand-mark span {
    color: var(--yellow);
}

.brand-name {
    color: var(--heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-nav a,
.header-contact {
    color: var(--nav-muted);
    font-size: 12px;
    font-weight: 600;
    transition: color 160ms ease;
}

.main-nav a:hover,
.header-contact:hover {
    color: var(--purple);
}

.header-contact {
    padding: 11px 15px;
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    color: var(--heading);
}

.header-contact span {
    padding-left: 8px;
    color: var(--purple);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.preference-button {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 9px;
    border: 1px solid var(--border-muted);
    border-radius: 6px;
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
    font: inherit;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.preference-button:hover {
    border-color: var(--purple);
    color: var(--purple-deep);
}

.preference-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.theme-button span {
    font-size: 19px;
    line-height: 1;
}

.language-button {
    min-width: 63px;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.language-option {
    color: var(--subtle-text);
}

.language-option.active {
    color: var(--heading);
    font-weight: 750;
}

.language-divider {
    color: var(--subtle-text);
}

.hero {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 48px;
    padding-block: 74px 96px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.availability {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 31px;
    padding: 9px 13px;
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    background: var(--surface);
    color: var(--nav-muted);
    font-size: 11px;
    font-weight: 600;
}

.availability-dot,
.footer-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #49a67a;
    box-shadow: 0 0 0 3px #e4f4eb;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--purple-deep);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(52px, 6vw, 78px);
    font-weight: 720;
    letter-spacing: -0.075em;
    line-height: 1.02;
}

.hero h1 span,
.section-heading h2 span,
.contact-inner h2 span {
    color: var(--purple);
}

.hero-intro {
    max-width: 445px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(6, 19, 41, 0.13);
}

.button-primary:hover {
    background: var(--purple-deep);
    box-shadow: 0 10px 24px rgba(98, 80, 164, 0.2);
}

.button-primary span {
    color: var(--yellow);
    font-size: 16px;
}

.text-link {
    color: var(--heading);
    font-size: 12px;
    font-weight: 700;
}

.text-link span {
    padding-left: 5px;
    color: var(--purple);
    font-size: 16px;
    transition: padding 160ms ease;
}

.text-link:hover span {
    padding-left: 9px;
}

.hero-socials {
    display: flex;
    gap: 24px;
    margin-top: 47px;
}

.hero-socials a,
.contact-links a {
    color: var(--subtle-text);
    font-size: 11px;
    font-weight: 600;
}

.hero-socials a span,
.contact-links a span {
    padding-left: 4px;
    color: var(--purple);
}

.hero-socials a:hover,
.contact-links a:hover {
    color: var(--purple-deep);
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    z-index: -2;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 94, 169, 0.13), rgba(156, 94, 169, 0) 69%);
    content: "";
}

.visual-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(156, 94, 169, 0.12);
    border-radius: 50%;
    transform: rotate(-24deg);
}

.orbit-one {
    width: 460px;
    height: 260px;
}

.orbit-two {
    width: 390px;
    height: 340px;
    transform: rotate(38deg);
}

.code-window {
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #101b31;
    box-shadow: 0 32px 70px rgba(6, 19, 41, 0.22), 0 4px 12px rgba(6, 19, 41, 0.09);
    transform: rotate(-2deg);
}

.window-bar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #a7afc1;
    font-size: 10px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ed8278;
}

.window-dots i:nth-child(2) {
    background: #e5bb62;
}

.window-dots i:nth-child(3) {
    background: #67b78d;
}

.window-language {
    color: #c9a1d0;
    font-weight: 700;
}

.code-content {
    padding: 22px 18px 18px;
    color: #d3dae7;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(10px, 1.2vw, 12px);
    line-height: 2.15;
    white-space: nowrap;
}

.code-content p {
    margin: 0;
}

.code-muted {
    display: inline-block;
    width: 24px;
    color: #626d83;
    user-select: none;
}

.code-keyword {
    color: #c59cda;
}

.code-string {
    color: #d8c27e;
}

.window-footer {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #778198;
    font-size: 9px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-status i {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.floating-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid var(--section-border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(6, 19, 41, 0.1);
    color: var(--nav-muted);
    font-size: 10px;
    font-weight: 650;
}

.chip-dotnet {
    top: 67px;
    right: -2px;
}

.chip-data {
    bottom: 67px;
    left: -9px;
}

.chip-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    background: var(--purple-soft);
    color: var(--purple-deep);
    font-size: 9px;
    font-weight: 800;
}

.chip-data .chip-icon {
    background: #fbf3d9;
    color: #8b6a12;
    font-size: 14px;
}

.visual-index {
    position: absolute;
    right: 3px;
    bottom: 15px;
    color: var(--subtle-text);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.scroll-cue {
    position: absolute;
    bottom: 31px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--subtle-text);
    font-size: 10px;
}

.scroll-cue span {
    width: 22px;
    height: 1px;
    background: var(--purple);
}

.intro-band {
    border-block: 1px solid var(--section-border);
    background: var(--surface);
}

.intro-inner {
    min-height: 170px;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    align-items: center;
    gap: 60px;
}

.intro-inner .eyebrow {
    margin: 0;
}

.intro-inner p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

.intro-inner strong {
    color: var(--heading);
    font-weight: 650;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 38px 100px;
    align-items: start;
}

.section-heading .eyebrow {
    margin-bottom: 17px;
}

.section-heading h2,
.contact-inner h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 680;
    letter-spacing: -0.06em;
    line-height: 1.14;
}

.about-content {
    padding-top: 31px;
}

.about-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.about-content .about-lead {
    color: var(--heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.about-content .text-link {
    display: inline-block;
    margin-top: 9px;
}

.about-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 29px;
    border-left: 3px solid var(--yellow);
    background: var(--surface);
}

.note-symbol {
    color: var(--purple);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
}

.about-note p {
    margin: 0;
    color: var(--heading);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
}

.about-note p span {
    color: var(--subtle-text);
    font-size: 12px;
    font-weight: 450;
}

.projects-section {
    background: var(--surface);
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.section-title-row .section-heading .eyebrow {
    margin-bottom: 15px;
}

.all-projects-link {
    margin-bottom: 7px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 50px;
}

.project-card {
    min-width: 0;
}

.project-image {
    position: relative;
    display: block;
    aspect-ratio: 1.63 / 1;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--purple-soft), var(--surface-muted));
}

.project-image::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(6, 19, 41, 0.12));
    content: "";
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-image:hover img {
    transform: scale(1.04);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    color: var(--purple-deep);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.project-meta span:first-child {
    color: #9aa1af;
}

.project-card h3 {
    margin: 12px 0 8px;
    color: var(--heading);
    font-size: 20px;
    font-weight: 680;
    letter-spacing: -0.035em;
}

.project-card > p {
    max-width: 490px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.project-tags span {
    padding: 6px 9px;
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    color: var(--nav-muted);
    font-size: 9px;
    font-weight: 600;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.project-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font-size: 10px;
    font-weight: 650;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.project-action span {
    color: var(--yellow);
    font-size: 13px;
}

.project-action:hover {
    border-color: var(--purple-deep);
    background: var(--purple-deep);
    color: #fff;
}

.project-action-secondary {
    border-color: var(--border-muted);
    background: var(--surface);
    color: var(--heading);
}

.project-action-secondary span {
    color: var(--purple-deep);
}

.project-action-secondary:hover {
    border-color: var(--purple-deep);
    background: var(--purple-soft);
    color: var(--heading);
}

.skills-section .section-heading {
    margin-bottom: 47px;
}

.skills-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 80px;
}

.skills-intro {
    max-width: 290px;
    margin: 2px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.skill-item {
    min-height: 77px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid var(--line);
}

.skill-icon {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    background: var(--surface);
    color: var(--purple-deep);
    font-size: 10px;
    font-weight: 800;
}

.skill-item:nth-child(2n) .skill-icon {
    border-color: var(--border-muted);
    background: var(--surface-muted);
    color: var(--heading);
}

.skill-item > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.skill-item strong {
    color: var(--heading);
    font-size: 11px;
    font-weight: 700;
}

.skill-item small {
    color: var(--subtle-text);
    font-size: 9px;
}

.skill-arrow {
    margin-left: auto;
    color: var(--subtle-text);
    font-size: 13px;
}

.contact-section {
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.contact-inner {
    position: relative;
    min-height: 470px;
    padding-block: 82px;
}

.contact-inner::after {
    position: absolute;
    top: -165px;
    right: -95px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 95px rgba(255, 255, 255, 0.02);
    content: "";
    pointer-events: none;
}

.contact-inner .eyebrow {
    color: #c7a2d0;
}

.contact-inner h2 {
    color: var(--white);
    font-size: clamp(42px, 5vw, 60px);
}

.contact-inner h2 span {
    color: #c69ad1;
}

.contact-copy {
    max-width: 420px;
    margin: 20px 0 26px;
    color: #b7c0d0;
    font-size: 13px;
    line-height: 1.8;
}

.button-light {
    background: var(--yellow);
    color: var(--navy);
}

.button-light:hover {
    background: #ffda56;
    box-shadow: 0 8px 24px rgba(249, 202, 36, 0.15);
}

.contact-links {
    position: absolute;
    right: 0;
    bottom: 35px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-links > div {
    display: flex;
    gap: 24px;
}

.contact-links a {
    color: #b7c0d0;
}

.contact-links a span {
    color: #c69ad1;
}

.site-footer {
    background: #041024;
}

.footer-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand .brand-mark {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.footer-brand .brand-name {
    color: #e4e9f2;
    font-size: 11px;
}

.footer-inner p,
.footer-inner > span {
    margin: 0;
    color: #8791a3;
    font-size: 10px;
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    display: none;
    max-width: calc(100% - 32px);
    padding: 12px 40px 12px 16px;
    border: 1px solid #edc5c5;
    border-radius: 6px;
    background: #fff5f5;
    box-shadow: 0 8px 28px rgba(6, 19, 41, 0.16);
    color: #6a2525;
    font-size: 12px;
}

#blazor-error-ui .reload {
    color: var(--purple-deep);
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 9px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
}

.not-found-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(156, 94, 169, 0.11), transparent 42%),
        var(--page);
    text-align: center;
}

.not-found-preferences {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.not-found-content {
    position: relative;
    width: min(100%, 560px);
}

.not-found-code {
    display: block;
    margin-bottom: -10px;
    color: var(--purple-soft);
    font-size: clamp(120px, 30vw, 220px);
    font-weight: 800;
    letter-spacing: -0.1em;
    line-height: 1;
    user-select: none;
}

.not-found-content .eyebrow {
    position: relative;
    margin-bottom: 16px;
}

.not-found-content h1 {
    position: relative;
    margin: 0;
    color: var(--heading);
    font-size: clamp(34px, 8vw, 52px);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.13;
}

.not-found-description {
    max-width: 410px;
    margin: 18px auto 26px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.not-found-content .button {
    position: relative;
}

.not-found-brand {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 56px auto 0;
}

.not-found-brand .brand-mark {
    width: 30px;
    height: 30px;
}

.not-found-brand .brand-name {
    font-size: 11px;
}

@media (max-width: 900px) {
    .section-shell {
        width: min(100% - 48px, 720px);
    }

    .header-inner {
        width: calc(100% - 48px);
        gap: 18px;
    }

    .hero {
        min-height: 610px;
        grid-template-columns: 1fr 0.9fr;
        gap: 24px;
    }

    .hero-visual {
        min-height: 370px;
    }

    .orbit-one {
        width: 380px;
        height: 230px;
    }

    .orbit-two {
        width: 330px;
        height: 290px;
    }

    .chip-dotnet {
        right: -8px;
    }

    .chip-data {
        left: -12px;
    }

    .about-section {
        gap: 28px 55px;
    }

    .skills-layout {
        gap: 45px;
    }
}

@media (max-width: 680px) {
    .section-shell {
        width: calc(100% - 40px);
    }

    .section-space {
        padding-block: 78px;
    }

    .header-inner {
        width: calc(100% - 36px);
        min-height: 66px;
        gap: 14px;
    }

    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 11px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .main-nav {
        gap: 17px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .main-nav a:last-child {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-contact {
        display: none;
    }

    .preference-button {
        min-width: 34px;
        height: 34px;
        padding-inline: 7px;
    }

    .language-button {
        min-width: 59px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 4px;
        padding-block: 58px 75px;
    }

    .availability {
        margin-bottom: 24px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: clamp(52px, 13vw, 72px);
    }

    .hero-intro {
        max-width: 460px;
        margin-top: 18px;
        font-size: 13px;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 17px 21px;
        margin-top: 24px;
    }

    .hero-socials {
        margin-top: 27px;
    }

    .hero-visual {
        min-height: 320px;
        margin-top: 18px;
    }

    .code-window {
        width: min(100% - 30px, 430px);
    }

    .code-content {
        font-size: 10px;
    }

    .orbit-one {
        width: 330px;
        height: 210px;
    }

    .orbit-two {
        width: 290px;
        height: 260px;
    }

    .chip-dotnet {
        top: 34px;
        right: -2px;
    }

    .chip-data {
        bottom: 43px;
        left: 0;
    }

    .visual-index {
        right: 0;
        bottom: 8px;
    }

    .scroll-cue {
        bottom: 28px;
    }

    .intro-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 17px;
        padding-block: 35px;
    }

    .intro-inner p {
        font-size: 17px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        padding-top: 0;
    }

    .about-note {
        grid-column: auto;
        gap: 17px;
        padding: 17px 20px;
    }

    .section-heading h2 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .section-title-row {
        align-items: start;
        margin-bottom: 32px;
    }

    .section-title-row .section-heading h2 {
        max-width: 390px;
    }

    .all-projects-link {
        flex-shrink: 0;
        margin-top: 30px;
        font-size: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        row-gap: 39px;
    }

    .project-image {
        aspect-ratio: 1.58 / 1;
    }

    .project-meta {
        margin-top: 15px;
        font-size: 8px;
    }

    .project-card h3 {
        font-size: 19px;
    }

    .skills-section .section-heading {
        margin-bottom: 27px;
    }

    .skills-layout {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .skills-intro {
        max-width: 480px;
        font-size: 13px;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        min-height: 0;
        padding-block: 66px 126px;
    }

    .contact-inner h2 {
        font-size: clamp(42px, 11vw, 56px);
    }

    .contact-inner::after {
        top: -50px;
        right: -360px;
        width: 440px;
        height: 440px;
    }

    .contact-links {
        bottom: 25px;
        align-items: start;
        flex-direction: column;
        gap: 13px;
        padding-top: 14px;
    }

    .contact-links > div {
        gap: 21px;
    }

    .footer-inner {
        min-height: 90px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 9px 16px;
        padding-block: 16px;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 390px) {
    .section-shell {
        width: calc(100% - 32px);
    }

    .header-inner {
        width: calc(100% - 24px);
        gap: 8px;
    }

    .main-nav {
        display: none;
    }

    .brand-name {
        max-width: 86px;
        font-size: 10px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 9px;
    }

    .header-contact {
        padding-inline: 8px;
        font-size: 9px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-chip {
        padding: 8px 9px;
        font-size: 9px;
    }

    .chip-dotnet {
        right: -4px;
    }
}

@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;
    }
}

@media (max-width: 450px) {
    .main-nav {
        display: none;
    }
}

:root[data-theme="dark"] .availability {
    border-color: var(--border-muted);
    background: var(--surface);
    color: var(--nav-muted);
}

:root[data-theme="dark"] .about-note {
    border-left-color: var(--yellow);
}

:root[data-theme="dark"] .project-image {
    background: linear-gradient(135deg, #24283a, #1d293b);
}
