@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../webfonts/fa-brands-400.woff2") format("woff2");
}

.fas,
.fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

.fa-arrow-down::before { content: "\f063"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-arrow-up-right-from-square::before { content: "\f08e"; }
.fa-bars::before { content: "\f0c9"; }
.fa-camera::before { content: "\f030"; }
.fa-chart-line::before { content: "\f201"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-code::before { content: "\f121"; }
.fa-crosshairs::before { content: "\f05b"; }
.fa-cube::before { content: "\f1b2"; }
.fa-database::before { content: "\f1c0"; }
.fa-download::before { content: "\f019"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-eye::before { content: "\f06e"; }
.fa-github::before { content: "\f09b"; }
.fa-graduation-cap::before { content: "\f19d"; }
.fa-linkedin::before { content: "\f08c"; }
.fa-moon::before { content: "\f186"; }
.fa-paper-plane::before { content: "\f1d8"; }
.fa-route::before { content: "\f4d7"; }
.fa-server::before { content: "\f233"; }
.fa-sun::before { content: "\f185"; }
.fa-times::before { content: "\f00d"; }
.fa-trophy::before { content: "\f091"; }
.fa-video::before { content: "\f03d"; }
.fa-wand-magic-sparkles::before { content: "\e2ca"; }

:root {
    color-scheme: dark;
    --bg: #071426;
    --bg-deep: #030914;
    --surface: rgba(8, 22, 42, 0.72);
    --surface-solid: #08162a;
    --surface-soft: rgba(13, 33, 61, 0.6);
    --text: #eef5ff;
    --text-muted: #9fb0c5;
    --text-subtle: #71849c;
    --accent: #69a2ff;
    --accent-strong: #275fb6;
    --accent-soft: rgba(105, 162, 255, 0.12);
    --cyan: #6ee7f2;
    --green: #76e6ae;
    --gold: #ffcb68;
    --border: rgba(121, 172, 255, 0.18);
    --border-strong: rgba(121, 172, 255, 0.34);
    --header-bg: rgba(2, 8, 18, 0.74);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --max-width: 1180px;
}

.light-theme {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg-deep: #e9eef5;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-solid: #ffffff;
    --surface-soft: rgba(231, 238, 248, 0.76);
    --text: #0a1b31;
    --text-muted: #42566f;
    --text-subtle: #61748b;
    --accent: #2567cc;
    --accent-strong: #174f9f;
    --accent-soft: rgba(37, 103, 204, 0.1);
    --cyan: #087f91;
    --green: #157a50;
    --gold: #966600;
    --border: rgba(25, 75, 140, 0.16);
    --border-strong: rgba(25, 75, 140, 0.3);
    --header-bg: rgba(244, 247, 251, 0.82);
    --shadow: 0 24px 70px rgba(32, 62, 99, 0.12);
}

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

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

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(105, 162, 255, 0.2), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(110, 231, 242, 0.11), transparent 26rem),
        radial-gradient(circle at 52% 78%, rgba(39, 95, 182, 0.16), transparent 34rem),
        linear-gradient(145deg, var(--bg-deep), var(--bg) 44%, #06111f 76%, var(--bg-deep));
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(105, 162, 255, 0.08), transparent 22rem),
        radial-gradient(circle at 80% 72%, rgba(110, 231, 242, 0.06), transparent 24rem),
        linear-gradient(115deg, transparent 0 46%, rgba(105, 162, 255, 0.018) 46.2% 46.5%, transparent 46.7% 100%);
    mask-image: linear-gradient(to bottom, black 0 68%, transparent 100%);
    content: "";
    pointer-events: none;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(3.1rem, 6.7vw, 6.2rem);
    font-weight: 700;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.15rem, 4.5vw, 4.15rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

::selection {
    background: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease;
}

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

.particles-container {
    position: fixed;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 9% 18%, rgba(150, 190, 255, 0.54) 0 1px, transparent 1.9px),
        radial-gradient(circle at 12% 36%, rgba(255, 255, 255, 0.18) 0 0.8px, transparent 1.5px),
        radial-gradient(circle at 18% 67%, rgba(255, 255, 255, 0.22) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 21% 23%, rgba(150, 190, 255, 0.25) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 27% 31%, rgba(110, 231, 242, 0.3) 0 1px, transparent 1.9px),
        radial-gradient(circle at 32% 55%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 1.4px),
        radial-gradient(circle at 36% 82%, rgba(150, 190, 255, 0.36) 0 1px, transparent 1.8px),
        radial-gradient(circle at 41% 39%, rgba(110, 231, 242, 0.18) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 46% 14%, rgba(255, 255, 255, 0.2) 0 0.8px, transparent 1.5px),
        radial-gradient(circle at 52% 72%, rgba(150, 190, 255, 0.22) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 58% 58%, rgba(110, 231, 242, 0.24) 0 1px, transparent 1.8px),
        radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.15) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 69% 27%, rgba(150, 190, 255, 0.44) 0 1.1px, transparent 2px),
        radial-gradient(circle at 73% 52%, rgba(110, 231, 242, 0.17) 0 0.9px, transparent 1.6px),
        radial-gradient(circle at 78% 76%, rgba(255, 203, 104, 0.18) 0 1px, transparent 1.8px),
        radial-gradient(circle at 84% 88%, rgba(150, 190, 255, 0.2) 0 0.8px, transparent 1.6px),
        radial-gradient(circle at 88% 42%, rgba(150, 190, 255, 0.32) 0 0.9px, transparent 1.7px),
        radial-gradient(circle at 91% 62%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 1.5px),
        radial-gradient(circle at 94% 12%, rgba(110, 231, 242, 0.22) 0 1px, transparent 1.8px);
    opacity: 0.48;
    pointer-events: none;
}

.particles-container::before,
.particles-container::after {
    position: absolute;
    inset: -12%;
    content: "";
}

.particles-container::before {
    background:
        radial-gradient(ellipse at 12% 26%, rgba(105, 162, 255, 0.18), transparent 34%),
        radial-gradient(ellipse at 86% 40%, rgba(110, 231, 242, 0.11), transparent 30%),
        radial-gradient(ellipse at 42% 86%, rgba(118, 230, 174, 0.07), transparent 28%);
    filter: blur(4px);
}

.particles-container::after {
    background:
        radial-gradient(circle at 13% 42%, rgba(105, 162, 255, 0.13) 0 2px, transparent 3.2px),
        radial-gradient(circle at 23% 49%, rgba(105, 162, 255, 0.08) 0 1px, transparent 2px),
        radial-gradient(circle at 18% 53%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
        radial-gradient(circle at 31% 45%, rgba(110, 231, 242, 0.1) 0 1.2px, transparent 2.2px),
        radial-gradient(circle at 36% 50%, rgba(105, 162, 255, 0.07) 0 1px, transparent 2px),
        linear-gradient(112deg, transparent 0 12%, rgba(105, 162, 255, 0.07) 12.1% 12.25%, transparent 12.35% 100%),
        radial-gradient(circle at 63% 20%, rgba(110, 231, 242, 0.12) 0 2px, transparent 3.2px),
        radial-gradient(circle at 70% 25%, rgba(150, 190, 255, 0.1) 0 1px, transparent 2px),
        radial-gradient(circle at 67% 32%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
        linear-gradient(38deg, transparent 0 67%, rgba(110, 231, 242, 0.06) 67.1% 67.25%, transparent 67.35% 100%),
        radial-gradient(circle at 82% 68%, rgba(255, 203, 104, 0.08) 0 2px, transparent 3px),
        radial-gradient(circle at 87% 76%, rgba(110, 231, 242, 0.07) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 73%, rgba(105, 162, 255, 0.08) 0 1.1px, transparent 2.2px);
    opacity: 0.9;
}

.gradient-text {
    background: linear-gradient(100deg, #d7e8ff 8%, var(--accent) 52%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-theme .gradient-text {
    background-image: linear-gradient(100deg, #0d315d, var(--accent) 62%, var(--cyan));
}

.section {
    position: relative;
    padding: 108px 0;
    scroll-margin-top: 88px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.section-heading > p {
    max-width: 480px;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 1rem;
}

.section-kicker,
.eyebrow,
.project-number {
    margin-bottom: 13px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.animations-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animations-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

header.scrolled,
header.mobile-menu-active {
    border-color: var(--border);
    background: var(--header-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.header-content {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    flex: none;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
}

.brand img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    filter: drop-shadow(0 5px 14px rgba(105, 162, 255, 0.25));
}

header .header-availability {
    margin: 0;
    white-space: nowrap;
}

header nav {
    margin-left: auto;
}

header nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav a {
    position: relative;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

header nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: var(--accent);
    content: "";
    transition: transform 0.25s ease;
}

header nav a:hover,
header nav a.active {
    color: var(--text);
}

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

.header-actions,
.theme-switcher {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 10px;
}

.theme-switcher {
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.theme-switcher button,
.mobile-nav-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.theme-switcher button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(63, 127, 232, 0.28);
}

.mobile-nav-toggle {
    display: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 148px 0 54px;
}

.hero-grid {
    display: grid;
    min-height: 610px;
    align-items: center;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
    gap: 70px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 32px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(118, 230, 174, 0.14), rgba(118, 230, 174, 0.05));
    box-shadow: inset 0 0 0 1px rgba(118, 230, 174, 0.26), 0 8px 22px rgba(0, 0, 0, 0.08);
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.availability span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(118, 230, 174, 0.1);
}

.hero .eyebrow {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.hero-role {
    margin-bottom: 16px;
    color: var(--text);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
}

.hero-description {
    max-width: 690px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.hero-buttons,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 12px 30px rgba(63, 127, 232, 0.22);
}

.btn-primary:hover {
    background: #2f6dcc;
    box-shadow: 0 15px 38px rgba(63, 127, 232, 0.32);
}

.btn-secondary {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 27px;
    color: var(--text-subtle);
    font-size: 0.82rem;
}

.hero-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.hero-links a:hover {
    color: var(--accent);
}

.profile-orbit {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.hero-profile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    white-space: nowrap;
}

.hero-profile-actions .hero-buttons,
.hero-profile-actions .hero-links {
    gap: 8px;
    margin: 0;
    flex-wrap: nowrap;
}

.hero-profile-actions .btn,
.hero-profile-actions .hero-links a {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.68rem;
}

.hero-profile-actions .hero-links {
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.hero-profile-actions .hero-links a {
    display: grid;
    width: 40px;
    padding: 0;
    place-items: center;
}

.hero-profile-actions .hero-links i {
    font-size: 0.9rem;
}

.profile-frame {
    position: absolute;
    z-index: 2;
    inset: 10%;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 42% 58% 52% 48% / 45% 43% 57% 55%;
    background: var(--surface-solid);
    box-shadow: var(--shadow), 0 0 70px rgba(55, 125, 224, 0.12);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
}

.floating-label {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--header-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    color: var(--text);
    font-size: 0.71rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
}

.floating-label i {
    color: var(--accent);
}

.proof-strip {
    display: grid;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    grid-template-columns: 0.95fr 0.95fr 1.6fr;
    list-style: none;
    backdrop-filter: blur(16px);
}

.proof-item {
    position: relative;
    min-height: 118px;
    padding: 26px;
}

.proof-item + .proof-item {
    border-left: 1px solid var(--border);
}

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

.proof-item strong {
    margin-bottom: 5px;
    color: var(--text);
    font-size: clamp(1.28rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.proof-item span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.impact-proof {
    display: grid;
    align-content: center;
    gap: 5px;
}

.impact-proof strong {
    margin-bottom: 1px;
}

.impact-proof span {
    font-size: 0.7rem;
}

.impact-proof b {
    color: var(--green);
    font-weight: 700;
}

.accent-proof strong {
    color: var(--green);
}

.hackathon-proof i {
    margin-right: 6px;
    color: #fff;
    font-size: 0.75em;
}

.stack-proof strong {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

/* Professional impact */
.case-card,
.project-card,
.company-card,
.role-item,
.capability-card,
.achievement-card,
.other-work,
.education-row {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--surface), rgba(5, 16, 31, 0.36));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

.light-theme .case-card,
.light-theme .project-card,
.light-theme .company-card,
.light-theme .role-item,
.light-theme .capability-card,
.light-theme .achievement-card,
.light-theme .other-work,
.light-theme .education-row {
    background: linear-gradient(145deg, var(--surface), rgba(235, 241, 249, 0.74));
}

.case-card {
    overflow: hidden;
    padding: 38px;
    border-radius: 18px;
}

.case-featured {
    display: grid;
    align-items: center;
    margin-bottom: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr);
    gap: 50px;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-meta span:first-child {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
}

.case-card h3 {
    max-width: 670px;
    margin-bottom: 17px;
}

.case-card p,
.project-card > p,
.project-copy > p,
.company-card > p,
.role-item > p,
.capability-card p {
    color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 23px;
}

.tag-list span {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.system-visual {
    position: relative;
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 35px 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(rgba(105, 162, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 162, 255, 0.04) 1px, transparent 1px),
        rgba(1, 7, 15, 0.42);
    background-size: 28px 28px;
}

.light-theme .system-visual {
    background-color: rgba(226, 235, 247, 0.7);
}

.system-node {
    position: relative;
    z-index: 2;
    display: flex;
    width: 74px;
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-solid);
    color: var(--text-muted);
    font-size: 0.59rem;
    text-align: center;
}

.system-node i {
    color: var(--accent);
    font-size: 1rem;
}

.active-node,
.output-node {
    border-color: var(--border-strong);
    box-shadow: 0 0 30px rgba(63, 127, 232, 0.12);
}

.output-node i {
    color: var(--green);
}

.flow-arrow {
    z-index: 2;
    color: var(--text-subtle);
    font-size: 0.6rem;
}

.signal-line {
    position: absolute;
    top: 50%;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--green), transparent);
    opacity: 0.4;
}

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

.metric-visual {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 4px 0 32px;
}

.metric-visual > div {
    min-width: 112px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
}

.metric-visual span,
.metric-visual strong {
    display: block;
}

.metric-visual span {
    margin-bottom: 2px;
    color: var(--text-subtle);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.metric-visual strong {
    font-size: 2rem;
    letter-spacing: -0.06em;
}

.metric-visual > i {
    color: var(--text-subtle);
}

.metric-visual .metric-result {
    border-color: rgba(118, 230, 174, 0.28);
    background: rgba(118, 230, 174, 0.07);
}

.metric-result strong {
    color: var(--green);
}

.impact-callout {
    margin-top: 24px;
    padding: 12px 14px;
    border-left: 3px solid var(--green);
    background: rgba(118, 230, 174, 0.06);
    color: var(--text-muted);
    font-size: 0.76rem;
}

.impact-callout strong {
    color: var(--green);
    font-size: 1rem;
}

.impact-stack {
    display: grid;
    gap: 6px;
}

.agent-visual,
.data-flow,
.mini-flow {
    display: flex;
    align-items: center;
}

.agent-visual {
    min-height: 122px;
    gap: 10px;
    margin: 4px 0 32px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.agent-visual > span,
.worker-stack span {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-solid);
    color: var(--text-muted);
    font-size: 0.63rem;
    text-align: center;
}

.agent-visual > i {
    color: var(--text-subtle);
    font-size: 0.55rem;
}

.worker-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agent-visual .agent-result {
    border-color: rgba(118, 230, 174, 0.3);
    color: var(--green);
}

/* Projects */
.projects-section {
    background: linear-gradient(180deg, transparent, rgba(32, 79, 141, 0.06), transparent);
}

.project-feature {
    display: grid;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.project-media {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: var(--surface-solid);
}

.project-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 7, 15, 0.48), transparent 42%);
    content: "";
    pointer-events: none;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.award-badge {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 203, 104, 0.32);
    border-radius: 8px;
    background: rgba(2, 8, 18, 0.84);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.project-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
}

.project-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.project-copy .project-lead {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 500;
}

.mini-flow,
.data-flow {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-subtle);
    font-size: 0.62rem;
}

.mini-flow span,
.data-flow span {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--text-muted);
}

.text-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: 27px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.text-link:hover {
    color: var(--cyan);
}

.project-card {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    padding: 36px;
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover,
.capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 54px;
}

.project-icon,
.education-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.award-label {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
}

.project-card h3 {
    margin-bottom: 17px;
}

.project-card .text-link {
    margin-top: auto;
    padding-top: 24px;
}

.localdeck-preview {
    position: relative;
    aspect-ratio: 1.64;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #07101e;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.localdeck-preview::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(105, 162, 255, 0.12), transparent 45%);
    content: "";
    pointer-events: none;
}

.localdeck-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.shelfpick-preview img {
    object-position: center;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef6b6b;
}

.preview-bar i:nth-child(2) {
    background: #eab95a;
}

.preview-bar i:nth-child(3) {
    background: #66d398;
}

.preview-bar span {
    margin-left: 7px;
    color: #8093aa;
    font: 0.58rem monospace;
}

.preview-grid {
    display: grid;
    padding: 12px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.preview-grid span {
    padding: 16px 7px;
    border: 1px solid rgba(105, 162, 255, 0.14);
    border-radius: 6px;
    background: rgba(105, 162, 255, 0.07);
    color: #9fb0c5;
    font: 0.56rem monospace;
    text-align: center;
}

.other-work {
    display: grid;
    align-items: start;
    margin-top: 20px;
    padding: 34px 38px;
    border-radius: 16px;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 48px;
}

.other-work h3 {
    margin-bottom: 0;
}

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

.other-links a {
    display: grid;
    min-width: 0;
    min-height: 118px;
    align-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.other-links a:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--accent-soft);
    color: var(--accent);
}

.other-links span {
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.other-links small {
    min-width: 0;
    color: var(--text-subtle);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.other-links i {
    justify-self: end;
    font-size: 0.66rem;
}

/* Experience */
.experience-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 0.68fr 1.32fr;
    gap: 32px;
}

.company-card {
    position: sticky;
    top: 110px;
    padding: 30px;
    border-radius: 16px;
}

.company-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.company-logo {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    overflow: hidden;
}

.company-logo img,
.education-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo img {
    width: 82%;
    height: 82%;
}

.company-summary h3,
.company-summary p,
.role-heading h3,
.role-heading p {
    margin-bottom: 0;
}

.company-summary p,
.role-heading p {
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.role-timeline::before {
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: -17px;
    width: 1px;
    background: var(--border-strong);
    content: "";
}

.role-item {
    position: relative;
    padding: 30px;
    border-radius: 16px;
}

.timeline-dot {
    position: absolute;
    top: 34px;
    left: -22px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.role-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px;
}

.role-heading h3 {
    font-size: 1.24rem;
}

.role-heading time,
.role-date,
.education-date {
    color: var(--text-subtle);
    font-size: 0.73rem;
    white-space: nowrap;
}

.role-item ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.role-item li + li {
    margin-top: 9px;
}

.education-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    padding: 22px 28px;
    border-radius: 14px;
}

.education-row > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.education-row h3,
.education-row p {
    margin-bottom: 0;
}

.education-row h3 {
    font-size: 1rem;
}

.education-row p {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.education-icon {
    padding: 5px;
    background: #fff;
}

/* Achievements */
.achievements-section {
    background: linear-gradient(180deg, transparent, rgba(255, 203, 104, 0.05), transparent);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.achievement-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    border: 0;
    border-radius: 22px;
    background-color: var(--surface-solid);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.achievement-card::before {
    z-index: 2;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 21px;
    box-shadow: inset 0 -80px 120px rgba(2, 8, 18, 0.18);
}

.achievement-card::after {
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 8, 18, 0.1), rgba(2, 8, 18, 0.42) 34%, rgba(2, 8, 18, 0.9)),
        linear-gradient(90deg, rgba(2, 8, 18, 0.9), rgba(2, 8, 18, 0.32) 62%, rgba(2, 8, 18, 0.68));
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 203, 104, 0.34), 0 0 0 1px rgba(255, 203, 104, 0.08);
}

.achievement-inditex {
    background-image: url("../img/inditextech.webp");
}

.achievement-denodo {
    background-image: url("../img/denodo.webp");
}

.achievement-icon {
    position: relative;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 34px;
    place-items: center;
    border: 1px solid rgba(255, 203, 104, 0.3);
    border-radius: 12px;
    background: rgba(2, 8, 18, 0.48);
    color: var(--gold);
    backdrop-filter: blur(10px);
}

.achievement-card .project-number,
.achievement-card h3 {
    position: relative;
    z-index: 3;
}

.achievement-card h3 {
    margin-bottom: 15px;
    max-width: 520px;
}

.achievement-card p:not(.project-number) {
    position: relative;
    z-index: 3;
    max-width: 560px;
    color: var(--text-muted);
}

.achievement-card .text-link {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(2, 8, 18, 0.42);
    color: #fff;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.achievement-card .text-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 203, 104, 0.55);
    background: rgba(255, 203, 104, 0.16);
    color: var(--gold);
}

/* Capabilities, about and contact */
.capabilities-section {
    background: linear-gradient(180deg, transparent, rgba(32, 79, 141, 0.07), transparent);
}

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

.capability-card {
    position: relative;
    min-height: 290px;
    padding: 27px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.capability-card > span {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--text-subtle);
    font-size: 0.63rem;
}

.capability-card > i {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 48px;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.capability-card h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.capability-card p {
    margin-bottom: 0;
    font-size: 0.78rem;
}

.about-section {
    padding-top: 72px;
}

.about-grid {
    display: grid;
    align-items: start;
    padding: 55px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
}

.about-copy p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.contact-section {
    padding-top: 45px;
}

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 70px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 30%, rgba(105, 162, 255, 0.22), transparent 20rem),
        var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card::after {
    position: absolute;
    right: -60px;
    bottom: -160px;
    width: 340px;
    height: 340px;
    border: 1px solid var(--border);
    border-radius: 50%;
    content: "";
}

.contact-card h2 {
    max-width: 850px;
    margin: 0 auto 22px;
}

.contact-card > p:not(.section-kicker) {
    max-width: 680px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

.contact-actions {
    position: relative;
    z-index: 2;
    justify-content: center;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-subtle);
    font-size: 0.75rem;
}

.footer-content p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 7px;
}

.footer-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 9px;
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 42% 58% 52% 48% / 45% 43% 57% 55%; }
    50% { border-radius: 54% 46% 42% 58% / 51% 58% 42% 49%; }
}

@keyframes star-drift {
    to { transform: translate3d(4%, 3%, 0); }
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
        gap: 35px;
    }

    .floating-label {
        font-size: 0.62rem;
    }

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

    .system-visual {
        min-height: 240px;
    }

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

@media (max-width: 960px) {
    .header-content {
        min-height: 72px;
    }

    .header-availability {
        display: none;
    }

    .mobile-nav-toggle {
        display: grid;
    }

    header nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 24px;
        left: 24px;
        overflow: hidden;
        max-height: 0;
        margin: 0;
        border: 1px solid transparent;
        border-radius: 14px;
        background: var(--surface-solid);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease, border-color 0.2s ease;
    }

    header.mobile-menu-active nav {
        max-height: 420px;
        border-color: var(--border);
        opacity: 1;
        pointer-events: auto;
    }

    header nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px;
    }

    header nav a {
        display: block;
        min-height: 46px;
        padding: 12px;
        border-radius: 8px;
        color: var(--text-muted);
    }

    header nav a:hover {
        background: var(--accent-soft);
    }

    header nav a::after {
        display: none;
    }

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

    .project-media {
        min-height: 390px;
    }

    .experience-layout {
        grid-template-columns: 1fr;
    }

    .company-card {
        position: static;
    }

    .role-timeline {
        margin-left: 20px;
    }

    .other-work {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 36px;
    }

    .hero {
        padding-top: 116px;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1,
    .hero-description {
        margin-right: 0;
        margin-left: 0;
    }

    .hero-buttons,
    .hero-links {
        justify-content: flex-start;
    }

    .hero-profile-actions {
        flex-wrap: wrap;
        white-space: normal;
    }

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

    .proof-item:nth-child(3) {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .proof-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

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

    .project-card {
        min-height: 0;
    }

    .about-grid {
        padding: 40px 0;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        padding: 52px 28px;
    }
}

@media (max-width: 580px) {
    html {
        scroll-padding-top: 76px;
    }

    h1 {
        font-size: clamp(2.7rem, 13.5vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .theme-switcher button,
    .mobile-nav-toggle {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding-bottom: 28px;
    }

    .hero-visual {
        width: 100%;
    }

    .floating-label {
        padding: 7px 9px;
    }

    .proof-item {
        min-height: 108px;
        padding: 20px 16px;
    }

    .proof-item strong {
        font-size: 1.25rem;
    }

    .proof-item span {
        font-size: 0.68rem;
    }

    .stack-proof strong {
        font-size: 0.88rem;
    }

    .case-card,
    .project-card {
        padding: 25px;
    }

    .system-visual {
        min-height: 0;
        flex-direction: column;
        gap: 7px;
        padding: 22px;
    }

    .system-node {
        width: min(100%, 180px);
        min-height: 52px;
        flex-direction: row;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .signal-line {
        top: 7%;
        bottom: 7%;
        left: 50%;
        width: 1px;
        height: auto;
    }

    .metric-visual {
        gap: 10px;
    }

    .metric-visual > div {
        min-width: 0;
        flex: 1;
    }

    .agent-visual {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-media {
        min-height: 280px;
    }

    .project-copy {
        padding: 28px 24px 32px;
    }

    .other-work {
        padding: 26px 24px;
    }

    .other-links a {
        grid-template-columns: none;
    }

    .other-links small {
        display: block;
    }

    .role-heading {
        flex-direction: column;
        gap: 8px;
    }

    .education-row {
        align-items: start;
        flex-direction: column;
    }

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

    .capability-card {
        min-height: 240px;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

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

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

/* Profile frame and CV action */
.hero-buttons .cv-button {
    border-style: dashed;
}

.profile-orbit {
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
    padding: 16px 0 0 16px;
}

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

.profile-orbit::before {
    z-index: -1;
    inset: 0 16px 16px 0;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--accent-soft), transparent 45%);
    box-shadow: 20px 20px 0 -19px var(--cyan), 0 25px 80px rgba(39, 95, 182, 0.22);
}

.profile-orbit::after {
    z-index: -2;
    top: 12%;
    right: -18%;
    width: 75%;
    height: 65%;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(90px);
    opacity: 0.17;
}

.profile-frame {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
}

.profile-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 7, 15, 0.48), transparent 36%);
    content: "";
    pointer-events: none;
}

.profile-frame img {
    object-position: center;
}

.floating-label {
    right: -22px;
    bottom: 0;
    left: auto;
    border-radius: 8px;
    font-size: 0.7rem;
}

.floating-label span {
    color: var(--text-subtle);
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 22px), var(--max-width));
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: end;
        flex-direction: row;
        gap: 18px;
        margin-bottom: 30px;
    }

    .hero {
        min-height: auto;
        padding: 102px 0 34px;
    }

    .hero-grid {
        min-height: calc(100svh - 136px);
        align-items: center;
        grid-template-columns: minmax(0, 1.08fr) minmax(130px, 0.72fr);
        gap: 18px;
    }

    .hero h1 {
        max-width: none;
        margin-bottom: 14px;
        font-size: clamp(2rem, 8.8vw, 3.15rem);
    }

    .hero .eyebrow {
        margin-bottom: 10px;
        font-size: 0.66rem;
    }

    .hero-role {
        margin-bottom: 10px;
        font-size: clamp(0.82rem, 3vw, 1.05rem);
    }

    .hero-description {
        max-width: none;
        margin-bottom: 18px;
        font-size: clamp(0.74rem, 2.6vw, 0.92rem);
        line-height: 1.55;
    }

    .hero-visual {
        width: 100%;
        margin: 0;
    }

    .profile-orbit {
        width: min(100%, 180px);
        padding: 10px 0 0 10px;
    }

    .profile-orbit::before {
        inset: 0 10px 10px 0;
        border-radius: 16px;
    }

    .profile-frame {
        border-radius: 15px;
    }

    .floating-label {
        right: -8px;
        bottom: -2px;
        gap: 5px;
        padding: 6px 7px;
        font-size: 0.52rem;
    }

    .hero-profile-actions {
        justify-content: flex-start;
        gap: 6px;
        margin-top: 14px;
        white-space: normal;
    }

    .hero-profile-actions .hero-buttons,
    .hero-profile-actions .hero-links {
        flex-wrap: wrap;
        gap: 6px;
    }

    .hero-profile-actions .btn,
    .hero-profile-actions .hero-links a {
        min-height: 32px;
        padding: 7px 8px;
        font-size: 0.56rem;
    }

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

    .proof-item {
        min-height: 92px;
        padding: 16px 9px;
    }

    .proof-item:nth-child(3),
    .proof-item:nth-child(4) {
        border-top: 0;
    }

    .proof-item:nth-child(3) {
        border-left: 1px solid var(--border);
    }

    .proof-item strong {
        font-size: 1.08rem;
    }

    .proof-item span {
        font-size: 0.58rem;
        line-height: 1.45;
    }

    .case-featured,
    .project-feature,
    .experience-layout,
    .about-grid,
    .other-work {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    }

    .case-grid,
    .project-grid,
    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-featured {
        gap: 22px;
    }

    .case-card,
    .project-card,
    .company-card,
    .role-item,
    .capability-card,
    .other-work,
    .education-row {
        padding: 24px;
    }

    .project-feature {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .project-media {
        min-height: 300px;
    }

    .project-copy {
        padding: 26px;
    }

    .project-copy h3 {
        font-size: clamp(1.55rem, 5.2vw, 2.4rem);
    }

    .project-card {
        min-height: 390px;
    }

    .experience-layout {
        gap: 20px;
    }

    .role-timeline {
        margin-left: 10px;
    }

    .contact-card {
        padding: 44px 32px;
    }
}

@media (max-width: 580px) {
    h1 {
        font-size: clamp(1.82rem, 8.8vw, 2.55rem);
    }

    h2 {
        font-size: clamp(1.45rem, 7.4vw, 2rem);
    }

    h3 {
        font-size: clamp(1.02rem, 4.8vw, 1.34rem);
    }

    .container {
        width: min(calc(100% - 18px), var(--max-width));
    }

    .section-heading {
        gap: 12px;
    }

    .section-kicker,
    .eyebrow {
        font-size: 0.56rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(112px, 0.72fr);
        gap: 12px;
    }

    .hero-description {
        font-size: 0.68rem;
    }

    .profile-orbit {
        width: min(100%, 145px);
        padding: 8px 0 0 8px;
    }

    .profile-orbit::before {
        inset: 0 8px 8px 0;
    }

    .floating-label {
        right: -5px;
        max-width: 118px;
        padding: 5px 6px;
        font-size: 0.45rem;
    }

    .hero-profile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-profile-actions .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-profile-actions .btn {
        width: 100%;
        min-height: 29px;
        padding: 6px 7px;
        font-size: 0.5rem;
    }

    .hero-profile-actions .hero-links {
        justify-content: flex-start;
    }

    .proof-item {
        min-height: 82px;
        padding: 13px 6px;
    }

    .proof-item strong {
        font-size: 0.92rem;
    }

    .proof-item span {
        font-size: 0.5rem;
    }

    .case-featured,
    .project-feature,
    .experience-layout,
    .about-grid,
    .other-work {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    .case-card,
    .project-card,
    .company-card,
    .role-item,
    .capability-card,
    .other-work,
    .education-row {
        padding: 18px;
    }

    .case-card p,
    .project-card > p,
    .project-copy > p,
    .company-card > p,
    .role-item > p,
    .capability-card p {
        font-size: 0.68rem;
        line-height: 1.55;
    }

    .tag-list span,
    .mini-flow span,
    .data-flow span {
        padding: 5px 6px;
        font-size: 0.48rem;
    }

    .system-visual {
        min-height: 150px;
        flex-direction: row;
        gap: 6px;
        padding: 12px;
    }

    .system-node {
        width: auto;
        min-height: 48px;
        flex: 1;
        flex-direction: column;
        font-size: 0.48rem;
    }

    .flow-arrow {
        transform: none;
    }

    .signal-line {
        top: 50%;
        right: 8%;
        bottom: auto;
        left: 8%;
        width: auto;
        height: 1px;
    }

    .metric-visual {
        gap: 7px;
    }

    .metric-visual > div {
        min-width: 0;
        padding: 10px;
    }

    .metric-visual strong {
        font-size: 1.15rem;
    }

    .agent-visual {
        flex-wrap: nowrap;
        gap: 5px;
        padding: 12px;
    }

    .agent-visual > span,
    .worker-stack span {
        padding: 6px;
        font-size: 0.46rem;
    }

    .project-media {
        min-height: 220px;
    }

    .project-copy {
        padding: 18px;
    }

    .project-copy .project-lead {
        font-size: 0.78rem;
    }

    .project-card {
        min-height: 330px;
    }

    .project-card-top {
        margin-bottom: 26px;
    }

    .other-links a {
        min-height: 104px;
        grid-template-columns: none;
        gap: 8px;
        padding: 14px;
    }

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

    .other-links span {
        font-size: 0.78rem;
        overflow-wrap: normal;
        word-break: normal;
    }

    .other-links small {
        display: block;
        font-size: 0.52rem;
    }

    .role-heading,
    .education-row,
    .footer-content {
        align-items: center;
        flex-direction: row;
    }

    .contact-actions .btn {
        width: auto;
    }
}

@media (max-width: 800px) {
    .hero {
        padding: 92px 0 26px;
    }

    .hero + .section {
        padding-top: 28px;
    }

    .animations-ready .hero + .section .section-heading.reveal {
        opacity: 1;
        transform: none;
    }

    .hero-grid {
        min-height: 0;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) minmax(140px, 0.48fr);
        gap: 14px;
    }

    .hero-content {
        min-width: 0;
        grid-column: 1;
    }

    .hero-visual {
        display: contents;
    }

    .profile-orbit {
        width: min(100%, 190px);
        max-width: 100%;
        grid-column: 2;
        justify-self: end;
    }

    .profile-orbit::after {
        right: 0;
        width: 58%;
        opacity: 0.12;
    }

    .floating-label {
        right: 4px;
        bottom: 4px;
        max-width: calc(100% - 16px);
        white-space: normal;
    }

    .hero-profile-actions {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1 / -1;
        margin-top: 2px;
    }

    .hero-profile-actions .hero-buttons {
        flex: 1 1 auto;
    }

    .hero-profile-actions .hero-links {
        flex: 0 0 auto;
    }

    .proof-strip {
        margin-top: 16px;
        grid-template-columns: 0.9fr 0.9fr 1.55fr;
    }

    .proof-item {
        min-height: 98px;
        padding: 13px 8px;
    }

    .proof-item strong {
        font-size: 0.96rem;
    }

    .proof-item span {
        font-size: 0.52rem;
        line-height: 1.38;
    }

    .impact-proof span {
        font-size: 0.5rem;
    }

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

    .case-featured .system-visual {
        width: 100%;
    }

    .system-visual,
    .agent-visual,
    .mini-flow,
    .data-flow {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .system-visual {
        justify-content: flex-start;
        min-height: 150px;
        flex-wrap: nowrap;
        padding: 18px;
    }

    .system-node {
        width: 72px;
        min-width: 72px;
        flex: 0 0 72px;
    }

    .flow-arrow {
        flex: 0 0 auto;
    }

    .agent-visual {
        min-height: 104px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .agent-visual > span,
    .worker-stack {
        flex: 0 0 auto;
    }
}

@media (max-width: 580px) {
    .hero {
        padding-top: 58px;
        padding-bottom: 4px;
    }

    .hero + .section {
        padding-top: 12px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 0.5fr);
        gap: 10px;
    }

    .hero h1 {
        margin-bottom: 6px;
        font-size: clamp(1.42rem, 7vw, 1.9rem);
        line-height: 1;
    }

    .hero .eyebrow {
        margin-bottom: 5px;
    }

    .hero-role {
        margin-bottom: 5px;
        font-size: 0.68rem;
    }

    .hero-description {
        margin-bottom: 7px;
        font-size: 0.56rem;
        line-height: 1.32;
    }

    .profile-orbit {
        width: min(100%, 148px);
    }

    .floating-label {
        gap: 4px;
        padding: 4px 5px;
        font-size: 0.41rem;
    }

    .hero-profile-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .hero-profile-actions .hero-buttons {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .hero-profile-actions .btn {
        width: auto;
        min-width: 0;
        min-height: 27px;
        flex: 1 1 0;
        gap: 5px;
        padding: 5px 5px;
        font-size: 0.44rem;
    }

    .hero-profile-actions .btn i {
        font-size: 0.62rem;
    }

    .hero-profile-actions .hero-links {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .hero-profile-actions .hero-links a {
        width: 27px;
        min-height: 27px;
    }

    .proof-strip {
        margin-top: 8px;
        grid-template-columns: 0.82fr 0.78fr 1.55fr;
    }

    .proof-item {
        min-height: 74px;
        padding: 8px 5px;
    }

    .proof-item strong {
        margin-bottom: 3px;
        font-size: 0.76rem;
    }

    .proof-item span {
        font-size: 0.4rem;
        line-height: 1.22;
    }

    .impact-proof {
        gap: 4px;
    }

    .impact-proof span {
        font-size: 0.38rem;
    }

    .hackathon-proof i {
        margin-right: 3px;
    }

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

    .system-visual {
        min-height: 132px;
        padding: 14px;
        gap: 3px;
        justify-content: space-between;
    }

    .system-node {
        width: 45px;
        min-width: 45px;
        min-height: 58px;
        flex: 0 0 45px;
        gap: 5px;
        padding: 7px 4px;
        font-size: 0.43rem;
    }

    .system-node i {
        font-size: 0.78rem;
    }

    .flow-arrow {
        font-size: 0.44rem;
    }

    .agent-visual {
        min-height: 92px;
        gap: 7px;
    }

    .agent-visual > span,
    .worker-stack span {
        font-size: 0.5rem;
    }

    .mini-flow,
    .data-flow {
        flex-wrap: wrap;
        padding-bottom: 2px;
    }

    .mini-flow span,
    .data-flow span {
        flex: 0 1 auto;
    }

    .role-heading,
    .education-row,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .role-timeline {
        margin-left: 22px;
    }
}

/* Mobile-first responsive layer */
html {
    scroll-padding-top: 76px;
}

h1 {
    font-size: clamp(2.15rem, 12vw, 3.6rem);
}

h2 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
}

h3 {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
}

.container {
    width: min(calc(100% - 24px), var(--max-width));
}

.section {
    padding: 64px 0;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.header-content {
    min-height: 72px;
    gap: 12px;
}

.header-availability {
    display: none;
}

.mobile-nav-toggle {
    display: grid;
}

header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    overflow: hidden;
    max-height: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, border-color 0.2s ease;
}

header.mobile-menu-active nav {
    max-height: 420px;
    border-color: var(--border);
    opacity: 1;
    pointer-events: auto;
}

header nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
}

header nav a {
    display: block;
    min-height: 46px;
    padding: 12px;
    border-radius: 8px;
}

header nav a:hover {
    background: var(--accent-soft);
}

header nav a::after {
    display: none;
}

.hero {
    min-height: auto;
    padding: 104px 0 44px;
}

.hero-grid,
.case-featured,
.project-feature,
.experience-layout,
.about-grid,
.other-work {
    grid-template-columns: 1fr;
}

.hero-grid {
    min-height: auto;
    gap: 28px;
}

.hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 11vw, 3.45rem);
    line-height: 1.04;
}

.hero .eyebrow {
    margin-bottom: 11px;
    font-size: 0.72rem;
}

.hero-role {
    margin-bottom: 12px;
    font-size: 1rem;
}

.hero-description {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.6;
}

.profile-orbit {
    width: min(100%, 260px);
    margin-inline: auto;
}

.floating-label {
    right: 0;
    bottom: 4px;
    max-width: calc(100% - 18px);
    white-space: normal;
}

.hero-profile-actions {
    display: grid;
    justify-content: stretch;
    gap: 12px;
    white-space: normal;
}

.hero-profile-actions .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.hero-profile-actions .hero-links {
    justify-content: center;
    padding-left: 0;
    border-left: 0;
}

.hero-profile-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.88rem;
}

.hero-profile-actions .hero-links a {
    width: 44px;
    min-height: 44px;
}

.proof-strip,
.case-grid,
.project-grid,
.capability-grid,
.other-links {
    grid-template-columns: 1fr;
}

.proof-item + .proof-item,
.proof-item:nth-child(3) {
    border-top: 1px solid var(--border);
    border-left: 0;
}

.proof-item {
    min-height: 112px;
    padding: 22px;
}

.proof-item strong {
    font-size: 1.45rem;
}

.proof-item span,
.impact-proof span {
    font-size: 0.82rem;
    line-height: 1.45;
}

.case-card,
.project-card,
.company-card,
.role-item,
.capability-card,
.other-work,
.education-row {
    padding: 26px;
}

.case-card p,
.project-card > p,
.project-copy > p,
.company-card > p,
.role-item > p,
.capability-card p,
.about-copy p,
.contact-card > p:not(.section-kicker) {
    font-size: 0.95rem;
    line-height: 1.65;
}

.section-kicker,
.eyebrow,
.project-number {
    font-size: 0.72rem;
}

.tag-list span,
.mini-flow span,
.data-flow span {
    padding: 6px 9px;
    font-size: 0.68rem;
}

.system-visual,
.agent-visual,
.mini-flow,
.data-flow {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.system-visual {
    justify-content: flex-start;
    min-height: 150px;
    flex-wrap: nowrap;
    padding: 18px;
}

.system-node {
    width: 72px;
    min-width: 72px;
    flex: 0 0 72px;
}

.flow-arrow {
    flex: 0 0 auto;
    transform: none;
}

.signal-line {
    top: 50%;
    right: 8%;
    bottom: auto;
    left: 8%;
    width: auto;
    height: 1px;
}

.project-media {
    min-height: 260px;
}

.project-copy {
    padding: 24px;
}

.project-card {
    min-height: 0;
}

.project-copy .project-lead {
    font-size: 1rem;
}

.metric-visual strong {
    font-size: 1.85rem;
}

.agent-visual > span,
.worker-stack span {
    font-size: 0.63rem;
}

.company-card {
    position: static;
}

.role-timeline {
    margin-left: 22px;
}

.role-heading,
.education-row,
.footer-content {
    align-items: flex-start;
    flex-direction: column;
}

.contact-card {
    padding: 44px 24px;
}

.contact-actions .btn {
    width: 100%;
}

@media (min-width: 581px) {
    html {
        scroll-padding-top: 86px;
    }

    .container {
        width: min(calc(100% - 40px), var(--max-width));
    }

    .hero-grid {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 8vw, 4.2rem);
    }

    .hero-role {
        font-size: 1.12rem;
    }

    .profile-orbit {
        width: min(100%, 320px);
    }

    .hero-profile-actions .hero-buttons {
        display: flex;
        flex-wrap: wrap;
    }

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

    .proof-item strong {
        font-size: 1.6rem;
    }

    .proof-item:nth-child(2) {
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .case-grid,
    .project-grid,
    .capability-grid,
    .other-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-actions .btn {
        width: auto;
    }
}

@media (min-width: 801px) {
    html {
        scroll-padding-top: 94px;
    }

    h1 {
        font-size: clamp(3.1rem, 6.7vw, 6.2rem);
    }

    h2 {
        font-size: clamp(2.15rem, 4.5vw, 4.15rem);
    }

    h3 {
        font-size: clamp(1.35rem, 2vw, 1.9rem);
    }

    .container {
        width: min(calc(100% - 48px), var(--max-width));
    }

    .section {
        padding: 108px 0;
    }

    .section-heading {
        align-items: end;
        flex-direction: row;
        gap: 48px;
        margin-bottom: 48px;
    }

    .hero {
        min-height: 100vh;
        padding: 148px 0 54px;
    }

    .hero-grid {
        min-height: 610px;
        grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
        gap: 70px;
    }

    .hero-description {
        font-size: clamp(1rem, 1.7vw, 1.16rem);
    }

    .hero-role {
        font-size: clamp(1.15rem, 2vw, 1.45rem);
    }

    .profile-orbit {
        width: min(100%, 380px);
    }

    .hero-profile-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        white-space: nowrap;
    }

    .hero-profile-actions .hero-buttons,
    .hero-profile-actions .hero-links {
        flex-wrap: nowrap;
    }

    .hero-profile-actions .hero-links {
        justify-content: flex-start;
        padding-left: 10px;
        border-left: 1px solid var(--border);
    }

    .hero-profile-actions .btn {
        width: auto;
        min-height: 40px;
        font-size: 0.68rem;
    }

    .hero-profile-actions .hero-links a {
        width: 40px;
        min-height: 40px;
    }

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

    .proof-item + .proof-item,
    .proof-item:nth-child(3) {
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .case-featured {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr);
    }

    .project-feature {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    }

    .experience-layout {
        grid-template-columns: 0.68fr 1.32fr;
    }

    .about-grid {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .other-work {
        grid-template-columns: 0.72fr 1.28fr;
    }

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

    .capability-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .other-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .case-card {
        padding: 38px;
    }

    .case-card p,
    .project-card > p,
    .project-copy > p,
    .company-card > p,
    .role-item > p,
    .capability-card p,
    .about-copy p,
    .contact-card > p:not(.section-kicker) {
        font-size: inherit;
        line-height: 1.6;
    }

    .project-card {
        min-height: 500px;
        padding: 36px;
    }

    .company-card {
        position: sticky;
        top: 110px;
        padding: 30px;
    }

    .role-item {
        padding: 30px;
    }

    .role-heading,
    .education-row,
    .footer-content {
        align-items: center;
        flex-direction: row;
    }

    .project-media {
        min-height: 470px;
    }

    .project-copy {
        padding: 45px;
    }

    .role-timeline {
        margin-left: 0;
    }

    .contact-card {
        padding: 70px;
    }
}

@media (min-width: 961px) {
    .header-content {
        min-height: 82px;
        gap: 32px;
    }

    .header-availability {
        display: inline-flex;
    }

    .mobile-nav-toggle {
        display: none;
    }

    header nav {
        position: static;
        overflow: visible;
        max-height: none;
        margin-left: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transition: none;
    }

    header nav ul {
        align-items: center;
        flex-direction: row;
        gap: 28px;
        padding: 0;
    }

    header nav a {
        display: inline-block;
        min-height: 0;
        padding: 10px 0;
        border-radius: 0;
    }

    header nav a:hover {
        background: transparent;
    }

    header nav a::after {
        display: block;
    }
}

@media (min-width: 1051px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
        gap: 70px;
    }
}

/* Mobile layout correction */
@media (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .section {
        padding: 72px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 34px;
    }

    .section-heading > p {
        font-size: 0.98rem;
    }

    .hero {
        min-height: auto;
        padding: 108px 0 48px;
    }

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

    .hero-content {
        min-width: 0;
        grid-column: auto;
        text-align: left;
    }

    .hero-visual {
        display: block;
        width: 100%;
        margin: 0;
    }

    .hero h1 {
        max-width: 10ch;
        margin-bottom: 18px;
        font-size: clamp(2.45rem, 12vw, 3.7rem);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .hero .eyebrow,
    .section-kicker,
    .project-number {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .hero-role {
        margin-bottom: 14px;
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .hero-description {
        max-width: 34rem;
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.65;
    }

    .profile-orbit {
        width: min(78vw, 330px);
        max-width: 100%;
        grid-column: auto;
        justify-self: center;
        margin: 0 auto;
        padding: 14px 0 0 14px;
    }

    .profile-orbit::before {
        inset: 0 14px 14px 0;
        border-radius: 18px;
    }

    .profile-frame {
        border-radius: 18px;
    }

    .floating-label {
        right: 8px;
        bottom: 8px;
        max-width: calc(100% - 24px);
        padding: 8px 10px;
        font-size: 0.68rem;
        white-space: normal;
    }

    .hero-profile-actions {
        display: grid;
        width: 100%;
        grid-column: auto;
        gap: 12px;
        margin-top: 22px;
    }

    .hero-profile-actions .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-profile-actions .btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .hero-profile-actions .hero-links {
        justify-content: center;
        gap: 10px;
        padding-left: 0;
        border-left: 0;
    }

    .hero-profile-actions .hero-links a {
        width: 46px;
        min-height: 46px;
        font-size: 1rem;
    }

    .proof-strip {
        margin-top: 6px;
        grid-template-columns: 1fr;
    }

    .proof-item {
        min-height: auto;
        padding: 22px;
    }

    .proof-item + .proof-item,
    .proof-item:nth-child(2),
    .proof-item:nth-child(3) {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .proof-item strong {
        margin-bottom: 6px;
        font-size: 1.55rem;
    }

    .proof-item span,
    .impact-proof span {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .case-featured,
    .project-feature,
    .experience-layout,
    .about-grid,
    .other-work,
    .case-grid,
    .project-grid,
    .achievement-grid,
    .capability-grid,
    .other-links {
        grid-template-columns: 1fr;
    }

    .case-card,
    .project-card,
    .company-card,
    .role-item,
    .capability-card,
    .achievement-card,
    .other-work,
    .education-row {
        padding: 26px;
    }

    .case-card p,
    .project-card > p,
    .project-copy > p,
    .company-card > p,
    .role-item > p,
    .capability-card p,
    .achievement-card p:not(.project-number),
    .about-copy p,
    .contact-card > p:not(.section-kicker) {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .tag-list span,
    .mini-flow span,
    .data-flow span {
        padding: 6px 9px;
        font-size: 0.68rem;
    }

    .system-visual,
    .agent-visual,
    .mini-flow,
    .data-flow {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .system-visual {
        min-height: 160px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 18px;
    }

    .system-node {
        width: 74px;
        min-width: 74px;
        min-height: 82px;
        flex: 0 0 74px;
        flex-direction: column;
        font-size: 0.6rem;
    }

    .flow-arrow {
        flex: 0 0 auto;
        transform: none;
    }

    .signal-line {
        top: 50%;
        right: 8%;
        bottom: auto;
        left: 8%;
        width: auto;
        height: 1px;
    }

    .project-media {
        min-height: 260px;
    }

    .project-copy {
        padding: 26px;
    }

    .project-card {
        min-height: auto;
    }

    .project-card-top {
        margin-bottom: 32px;
    }

    .company-card {
        position: static;
    }

    .role-timeline {
        margin-left: 20px;
    }

    .role-heading,
    .education-row,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .role-heading {
        gap: 8px;
    }

    .contact-card {
        padding: 48px 26px;
    }

    .contact-actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .hero {
        padding-top: 96px;
    }

    .hero h1 {
        max-width: 11ch;
        font-size: clamp(2.25rem, 12vw, 3rem);
    }

    .profile-orbit {
        width: min(84vw, 300px);
    }

    .case-card,
    .project-card,
    .company-card,
    .role-item,
    .capability-card,
    .achievement-card,
    .other-work,
    .education-row {
        padding: 22px;
    }
}

/* Reduce text density on mobile */
@media (max-width: 800px) {
    .section-heading > p,
    .case-card p,
    .project-card > p:not(.project-number),
    .project-copy > p:not(.project-number):not(.project-lead),
    .company-card > p,
    .role-item ul,
    .role-item > p,
    .about-copy p + p {
        display: none;
    }

    .hero-description,
    .project-copy .project-lead,
    .about-copy p,
    .contact-card > p:not(.section-kicker),
    .capability-card p {
        display: block;
        font-size: 1rem;
        line-height: 1.55;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .case-card,
    .project-card,
    .company-card,
    .role-item,
    .capability-card,
    .achievement-card,
    .other-work,
    .education-row {
        padding: 24px;
    }

    .case-card h3,
    .project-card h3,
    .role-item h3,
    .achievement-card h3,
    .capability-card h3 {
        margin-bottom: 0;
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        line-height: 1.12;
    }

    .achievement-card h3 {
        margin-bottom: 12px;
    }

    .case-card .tag-list,
    .project-card .tag-list,
    .project-copy .tag-list {
        margin-top: 18px;
    }

    .capability-card {
        min-height: auto;
    }

    .capability-card > i {
        margin-bottom: 24px;
    }

    .project-card .text-link {
        padding-top: 18px;
    }

    .about-grid {
        gap: 18px;
    }

    .contact-card h2 {
        margin-bottom: 18px;
    }
}
