:root {
    color-scheme: dark;
    --bg: #07111f;
    --bg-deep: #040b14;
    --surface: #0d1a2b;
    --surface-strong: #102238;
    --surface-soft: #0a1626;
    --text: #eef5ff;
    --text-soft: #a8b8ce;
    --text-muted: #71839b;
    --line: rgba(152, 179, 211, 0.16);
    --line-strong: rgba(152, 179, 211, 0.28);
    --accent: #4ed8ff;
    --accent-strong: #26b8ff;
    --accent-alt: #8277ff;
    --success: #61e6a7;
    --warning: #ffc96b;
    --header: rgba(7, 17, 31, 0.82);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --container: 1180px;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f8fc;
    --bg-deep: #eaf0f7;
    --surface: #ffffff;
    --surface-strong: #eff4f9;
    --surface-soft: #f8fafc;
    --text: #0a1728;
    --text-soft: #40536a;
    --text-muted: #6f8095;
    --line: rgba(25, 57, 91, 0.12);
    --line-strong: rgba(25, 57, 91, 0.22);
    --accent: #007ea8;
    --accent-strong: #006dbe;
    --accent-alt: #6559e8;
    --success: #087b54;
    --warning: #a76100;
    --header: rgba(245, 248, 252, 0.86);
    --shadow: 0 30px 70px rgba(28, 55, 85, 0.12);
}

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

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

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(78, 216, 255, 0.28);
    color: var(--text);
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

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

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

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.045em;
}

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

.section {
    position: relative;
    padding: 128px 0;
}

.section-soft {
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    transition: transform 0.2s ease;
}

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

.scroll-progress {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    box-shadow: 0 0 14px var(--accent);
}

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

.site-header.scrolled {
    border-color: var(--line);
    background: var(--header);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(78, 216, 255, 0.14), rgba(130, 119, 255, 0.08));
    font-size: 14px;
    letter-spacing: -0.02em;
}

.brand-dot {
    margin-left: 4px;
    color: var(--accent);
    font-size: 28px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.desktop-nav a {
    position: relative;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.015em;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    background: var(--accent);
    content: "";
    transition: transform 0.2s ease;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button,
.menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.menu-toggle:hover {
    border-color: var(--line-strong);
    background: var(--surface);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

html[data-theme="dark"] .moon-icon,
html[data-theme="light"] .sun-icon {
    display: none;
}

.nav-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.025em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(78, 216, 255, 0.14);
}

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

.hero {
    min-height: 100svh;
    padding-top: 168px;
    padding-bottom: 70px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    gap: 74px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.availability {
    display: inline-flex;
    margin-bottom: 28px;
    padding: 8px 13px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(97, 230, 167, 0.24);
    border-radius: 100px;
    background: rgba(97, 230, 167, 0.07);
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.availability span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(97, 230, 167, 0.1), 0 0 12px currentColor;
    animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
    50% { opacity: 0.55; transform: scale(0.82); }
}

.hero-intro {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 26px;
    font-size: clamp(47px, 5.4vw, 78px);
    font-weight: 780;
    letter-spacing: -0.065em;
}

.hero h1 em {
    position: relative;
    color: transparent;
    background: linear-gradient(90deg, var(--accent), #8ca8ff 65%, var(--accent-alt));
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.hero-summary {
    max-width: 650px;
    margin-bottom: 36px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 780;
    letter-spacing: 0.01em;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 0.22s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button:hover svg {
    transform: translateX(3px);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #03111b;
    box-shadow: 0 16px 36px rgba(38, 184, 255, 0.15);
}

.button-primary:hover {
    box-shadow: 0 20px 45px rgba(38, 184, 255, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: rgba(78, 216, 255, 0.06);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
}

.hero-meta span,
.hero-meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.hero-meta svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.hero-stage {
    position: relative;
    z-index: 1;
    min-height: 560px;
    perspective: 1000px;
}

.stage-grid {
    position: absolute;
    inset: 2% -8% -2% 4%;
    transform: perspective(700px) rotateX(58deg) rotateZ(-16deg) translateY(24%);
    background-image: linear-gradient(rgba(78, 216, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 216, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent);
    opacity: 0.62;
}

.profile-terminal {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(100%, 470px);
    min-height: 468px;
    overflow: hidden;
    transform: translate(-50%, -50%) rotateY(-4deg) rotateX(2deg);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(16, 34, 56, 0.96), rgba(7, 17, 31, 0.97));
    box-shadow: -24px 40px 90px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.15s ease-out;
}

html[data-theme="light"] .profile-terminal {
    background: linear-gradient(145deg, #ffffff, #eaf1f8);
    box-shadow: -24px 40px 90px rgba(36, 66, 98, 0.16), inset 0 1px rgba(255, 255, 255, 0.8);
}

.terminal-bar {
    display: flex;
    height: 47px;
    padding: 0 17px;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.08);
}

.terminal-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6d75;
}

.terminal-bar > span:nth-child(2) { background: #ffc45d; }
.terminal-bar > span:nth-child(3) { background: #58d69a; }

.terminal-bar small {
    margin-left: auto;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.monogram {
    position: relative;
    display: grid;
    width: 176px;
    height: 176px;
    margin: 40px auto 32px;
    place-items: center;
    border: 1px solid rgba(78, 216, 255, 0.25);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(78, 216, 255, 0.26), transparent 35%), linear-gradient(145deg, rgba(78, 216, 255, 0.13), rgba(130, 119, 255, 0.15));
    box-shadow: inset 0 0 50px rgba(78, 216, 255, 0.08), 0 0 60px rgba(78, 216, 255, 0.08);
}

.monogram > span {
    font-size: 48px;
    font-weight: 850;
    letter-spacing: -0.08em;
}

.monogram-ring {
    position: absolute;
    border: 1px dashed rgba(78, 216, 255, 0.23);
    border-radius: 50%;
    animation: rotateRing 18s linear infinite;
}

.ring-one { inset: -15px; }
.ring-two { inset: -31px; animation-direction: reverse; animation-duration: 25s; }

.ring-one::before,
.ring-two::before {
    position: absolute;
    top: 50%;
    left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    content: "";
}

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

.terminal-code {
    width: calc(100% - 52px);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.85;
}

html[data-theme="light"] .terminal-code {
    background: rgba(255, 255, 255, 0.68);
}

.terminal-code p { margin: 0; }
.terminal-code .indent { padding-left: 18px; }
.code-violet { color: #ae9cff; }
.code-blue { color: var(--accent); }
.code-green { color: var(--success); }
.code-orange { color: var(--warning); }

.code-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    margin-left: 4px;
    transform: translateY(2px);
    background: var(--accent);
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink { 50% { opacity: 0; } }

.floating-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    min-height: 46px;
    padding: 0 16px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(13, 26, 43, 0.8);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    backdrop-filter: blur(12px);
    animation: floatChip 5s ease-in-out infinite;
}

html[data-theme="light"] .floating-chip { background: rgba(255, 255, 255, 0.82); }
.floating-chip span { color: var(--accent); font-weight: 800; }
.chip-dotnet { top: 7%; left: -4%; }
.chip-api { top: 38%; right: -10%; animation-delay: -1.5s; }
.chip-data { bottom: 6%; left: -2%; animation-delay: -3s; }

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-orb-one {
    top: -220px;
    right: -180px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(78, 216, 255, 0.12), transparent 67%);
}

.hero-orb-two {
    bottom: 0;
    left: -260px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(130, 119, 255, 0.09), transparent 70%);
}

.stats-grid {
    display: grid;
    margin-top: 72px;
    border-block: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    display: flex;
    min-height: 102px;
    padding: 22px 28px;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: 0; }
.stat-item strong { margin-bottom: 3px; font-size: 28px; letter-spacing: -0.05em; }
.stat-item span { color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

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

.section-kicker {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-kicker span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(78, 216, 255, 0.27);
    border-radius: 8px;
    background: rgba(78, 216, 255, 0.06);
    font-size: 9px;
}

.section-heading h2,
.contact-inner h2,
.experience-heading h2 {
    margin-bottom: 0;
    font-size: clamp(39px, 4.8vw, 64px);
    font-weight: 730;
    letter-spacing: -0.06em;
}

.heading-split {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 50px;
}

.heading-split > p {
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 15px;
}

.about-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 100px;
}

.about-copy > p {
    max-width: 590px;
    color: var(--text-soft);
    font-size: 16px;
}

.about-copy .lead {
    color: var(--text);
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 620;
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.principles {
    margin-top: 42px;
    border-top: 1px solid var(--line);
}

.principles > div {
    display: grid;
    padding: 20px 0;
    align-items: start;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 38px 125px 1fr;
    gap: 12px;
}

.principles span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.principles strong {
    font-size: 13px;
}

.principles small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.education-card {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow);
}

.education-card::before {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 216, 255, 0.14), transparent 68%);
    content: "";
}

.education-topline {
    display: flex;
    margin-bottom: 64px;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.education-seal {
    position: absolute;
    top: 74px;
    right: 34px;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(78, 216, 255, 0.32);
    border-radius: 50%;
    background: rgba(78, 216, 255, 0.07);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 0 0 8px rgba(78, 216, 255, 0.035);
}

.education-card h3 {
    max-width: 390px;
    margin-bottom: 12px;
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 700;
}

.school {
    max-width: 390px;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.education-location {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.education-score {
    display: grid;
    margin-top: 34px;
    padding: 24px 0;
    border-block: 1px solid var(--line);
    grid-template-columns: 0.7fr 1.3fr;
    gap: 24px;
}

.education-score > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.education-score > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.education-score small,
.coursework > small {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.education-score strong {
    font-size: 13px;
}

.coursework {
    margin-top: 24px;
}

.coursework > div {
    display: flex;
    margin-top: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.coursework span,
.skill-tags span,
.project-tech span {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 9px;
}

.skills-list {
    border-top: 1px solid var(--line);
}

.skill-row {
    display: grid;
    min-height: 190px;
    padding: 38px 0;
    align-items: start;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 72px minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 30px;
    transition: padding 0.24s ease, background-color 0.24s ease;
}

.skill-row:hover {
    padding-inline: 20px;
    background: linear-gradient(90deg, rgba(78, 216, 255, 0.035), transparent);
}

.skill-number {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
}

.skill-title h3 {
    margin-bottom: 10px;
    font-size: 26px;
}

.skill-title p {
    max-width: 360px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-tags span {
    padding: 9px 12px;
    font-size: 10px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.skill-tags span:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 216, 255, 0.38);
    color: var(--accent);
}

.section-projects {
    border-block: 1px solid var(--line);
    background: var(--bg-deep);
}

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

.project-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.project-card.featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
}

.project-visual {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background-color: #081421;
    isolation: isolate;
}

.project-card.featured .project-visual {
    min-height: 550px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}

.project-visual::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    content: "";
    mask-image: linear-gradient(to bottom right, black, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom right, black, transparent 90%);
}

.project-number {
    position: absolute;
    z-index: 8;
    top: 18px;
    left: 18px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(4, 11, 20, 0.5);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
    font-size: 9px;
    backdrop-filter: blur(10px);
}

.tradevision {
    background: radial-gradient(circle at 73% 25%, rgba(40, 201, 255, 0.2), transparent 35%), linear-gradient(145deg, #071624, #07101a);
    color: #48d7ff;
}

.market-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    overflow: hidden;
    transform: translate(-50%, -50%) rotateY(-5deg) rotateX(3deg);
    border: 1px solid rgba(72, 215, 255, 0.22);
    border-radius: 18px;
    background: rgba(4, 14, 24, 0.83);
    box-shadow: -25px 35px 75px rgba(0, 0, 0, 0.36), 0 0 60px rgba(72, 215, 255, 0.06);
}

.market-top {
    display: flex;
    height: 50px;
    padding: 0 17px;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.market-top span {
    margin-right: auto;
    color: #f2f8ff;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.market-top i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.market-window svg {
    width: 100%;
    height: 250px;
    padding-top: 20px;
    overflow: visible;
}

.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 3; filter: drop-shadow(0 0 6px currentColor); }

.ticker-strip {
    display: grid;
    min-height: 52px;
    padding: 0 16px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 8px;
    grid-template-columns: repeat(3, 1fr);
}

.ticker-strip b { margin-left: 5px; color: #55e2a5; font-weight: 700; }

.mechago {
    background: radial-gradient(circle at 25% 30%, rgba(255, 193, 97, 0.22), transparent 33%), linear-gradient(145deg, #171410, #0b1017);
}

.route-map {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.map-road {
    position: absolute;
    width: 140%;
    height: 27px;
    border-block: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.road-one { top: 26%; left: -20%; transform: rotate(24deg); }
.road-two { top: 60%; left: -20%; transform: rotate(-15deg); }
.road-three { top: 47%; left: -22%; transform: rotate(70deg); }

.route-line {
    position: absolute;
    top: 47%;
    left: 24%;
    width: 50%;
    height: 2px;
    transform: rotate(-18deg);
    background: repeating-linear-gradient(90deg, #ffc561 0 8px, transparent 8px 15px);
    filter: drop-shadow(0 0 7px #ffc561);
}

.map-pin {
    position: absolute;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50% 50% 50% 0;
    background: #ffc561;
    box-shadow: 0 0 0 7px rgba(255, 197, 97, 0.1), 0 0 20px rgba(255, 197, 97, 0.45);
}

.map-pin i { width: 8px; height: 8px; border-radius: 50%; background: #201609; }
.pin-start { top: 58%; left: 21%; transform: rotate(-45deg); }
.pin-start i, .pin-end i { transform: rotate(45deg); }
.pin-end { top: 28%; right: 20%; transform: rotate(-45deg); }

.mechanic-badge {
    position: absolute;
    right: 7%;
    bottom: 8%;
    display: grid;
    min-width: 150px;
    padding: 12px;
    align-items: center;
    border: 1px solid rgba(255, 197, 97, 0.24);
    border-radius: 13px;
    background: rgba(15, 15, 15, 0.72);
    color: white;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.mechanic-badge span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(255, 197, 97, 0.13); color: #ffc561; font-size: 11px; font-weight: 900; }
.mechanic-badge small { color: rgba(255, 255, 255, 0.62); font-family: var(--font-mono); font-size: 8px; }

.rentride {
    background: radial-gradient(circle at 70% 22%, rgba(125, 119, 255, 0.25), transparent 33%), linear-gradient(145deg, #11122b, #090e18);
}

.car-scene { position: absolute; inset: 0; }
.car-scene > svg { position: absolute; right: -2%; bottom: 1%; width: 92%; overflow: visible; filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.42)); }
.car-body { fill: #756cff; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.2; }
.car-window { fill: #14213a; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.wheel { fill: #080b10; stroke: rgba(255, 255, 255, 0.2); stroke-width: 4; }
.hub { fill: #a7a3ff; }
.road-line { position: absolute; right: 0; bottom: 12%; left: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(130, 119, 255, 0.7), transparent); box-shadow: 0 0 14px rgba(130, 119, 255, 0.6); }

.booking-chip {
    position: absolute;
    top: 17%;
    right: 8%;
    display: flex;
    padding: 11px 14px;
    flex-direction: column;
    border: 1px solid rgba(130, 119, 255, 0.26);
    border-radius: 11px;
    background: rgba(8, 10, 24, 0.73);
    backdrop-filter: blur(10px);
}

.booking-chip small { color: rgba(255, 255, 255, 0.42); font-family: var(--font-mono); font-size: 7px; text-transform: uppercase; }
.booking-chip strong { color: #a8a3ff; font-size: 11px; }

.vision-lab {
    background: radial-gradient(circle at 50% 50%, rgba(76, 236, 183, 0.18), transparent 38%), linear-gradient(145deg, #071d1c, #071018);
}

.vision-scene { position: absolute; inset: 0; }
.vision-frame { position: absolute; inset: 16% 20%; }
.vision-frame span { position: absolute; width: 34px; height: 34px; border-color: #5be4b3; border-style: solid; filter: drop-shadow(0 0 5px rgba(91, 228, 179, 0.5)); }
.vision-frame span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.vision-frame span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.vision-frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.vision-frame span:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }

.gesture-hand {
    position: absolute;
    top: 28%;
    left: 42%;
    width: 72px;
    height: 100px;
    transform: rotate(-9deg);
}

.gesture-hand b { position: absolute; right: 7px; bottom: 0; width: 52px; height: 59px; border: 2px solid #5be4b3; border-radius: 28px 24px 19px 28px; background: rgba(91, 228, 179, 0.07); }
.gesture-hand i { position: absolute; bottom: 49px; width: 12px; border: 2px solid #5be4b3; border-radius: 10px; background: rgba(91, 228, 179, 0.06); }
.gesture-hand i:nth-child(1) { left: 12px; height: 49px; }
.gesture-hand i:nth-child(2) { left: 27px; height: 66px; }
.gesture-hand i:nth-child(3) { left: 42px; height: 61px; }
.gesture-hand i:nth-child(4) { left: 57px; bottom: 44px; height: 46px; }
.gesture-hand i:nth-child(5) { right: -10px; bottom: 26px; width: 36px; height: 13px; transform: rotate(-34deg); }

.media-wave { position: absolute; right: 7%; bottom: 10%; display: flex; height: 28px; align-items: center; gap: 3px; }
.media-wave span { width: 3px; height: 35%; border-radius: 4px; background: #5be4b3; animation: mediaWave 1.2s ease-in-out infinite; }
.media-wave span:nth-child(2), .media-wave span:nth-child(6) { height: 70%; animation-delay: -0.2s; }
.media-wave span:nth-child(3), .media-wave span:nth-child(5) { height: 100%; animation-delay: -0.4s; }
.media-wave span:nth-child(4) { height: 58%; animation-delay: -0.6s; }
@keyframes mediaWave { 50% { transform: scaleY(0.45); opacity: 0.55; } }

.tracking-chip { position: absolute; bottom: 9%; left: 7%; padding: 9px 11px; border: 1px solid rgba(91, 228, 179, 0.24); border-radius: 10px; background: rgba(5, 20, 20, 0.72); color: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); font-size: 7px; backdrop-filter: blur(10px); }
.tracking-chip span { margin-left: 8px; color: #5be4b3; }
/* Mobile multiplayer game visual */
.mobile-game {
    background: radial-gradient( circle at 50% 50%, rgba(131, 103, 255, 0.22), transparent 42% ), linear-gradient(145deg, #11142d, #071018);
}

.game-scene {
    position: absolute;
    inset: 0;
}

.game-score {
    position: absolute;
    top: 11%;
    left: 50%;
    display: flex;
    width: 64%;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

    .game-score strong {
        margin-inline: 5px;
        color: #a8a3ff;
        font-size: 13px;
    }

.game-arena {
    position: absolute;
    inset: 24% 16% 21%;
    overflow: hidden;
    border: 1px solid rgba(168, 163, 255, 0.32);
    border-radius: 18px;
    background: rgba(7, 11, 29, 0.62);
    box-shadow: inset 0 0 32px rgba(132, 104, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.arena-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px dashed rgba(255, 255, 255, 0.16);
}

.game-paddle {
    position: absolute;
    width: 6px;
    height: 46px;
    border-radius: 10px;
    background: #a8a3ff;
    box-shadow: 0 0 14px rgba(168, 163, 255, 0.65);
}

.paddle-one {
    top: 26%;
    left: 10%;
}

.paddle-two {
    right: 10%;
    bottom: 24%;
}

.game-ball {
    position: absolute;
    top: calc(50% - 6px);
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #58dcff;
    box-shadow: 0 0 16px rgba(88, 220, 255, 0.8);
    animation: gameBall 2.5s ease-in-out infinite alternate;
}

.sync-chip {
    position: absolute;
    bottom: 8%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(168, 163, 255, 0.25);
    border-radius: 10px;
    background: rgba(9, 13, 31, 0.76);
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-mono);
    font-size: 7px;
    backdrop-filter: blur(10px);
}

    .sync-chip i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #5be4b3;
        box-shadow: 0 0 9px rgba(91, 228, 179, 0.8);
    }

@keyframes gameBall {
    from {
        transform: translate(-42px, 25px);
    }

    to {
        transform: translate(42px, -25px);
    }
}
.project-content {
    display: flex;
    padding: 34px;
    flex: 1;
    flex-direction: column;
}

.project-card.featured .project-content {
    padding: 50px 42px;
    justify-content: center;
}

.project-category {
    margin-bottom: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 17px;
    font-size: clamp(29px, 3vw, 41px);
    font-weight: 720;
}

.project-description {
    margin-bottom: 21px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.project-highlights {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.project-highlights li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 17px;
    color: var(--text-muted);
    font-size: 11px;
}

.project-highlights li::before {
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 5px;
    height: 1px;
    background: var(--accent);
    content: "";
}

.project-tech {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 7px;
}

.project-tech span { padding: 6px 8px; font-size: 8px; }

.project-footer {
    margin-top: auto;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.project-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 800;
}

.project-footer a svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 0.2s ease;
}

.project-footer a:hover { color: var(--accent); }
.project-footer a:hover svg { transform: translate(3px, -3px); }
.project-note { color: var(--text-muted); font-family: var(--font-mono); font-size: 9px; }

.experience-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
    gap: 110px;
}

.experience-heading {
    position: sticky;
    top: 130px;
    margin-bottom: 0;
}

.experience-heading > p:last-child {
    max-width: 420px;
    margin-top: 26px;
    color: var(--text-soft);
    font-size: 14px;
}

.timeline {
    position: relative;
    padding-left: 42px;
}

.timeline::before {
    position: absolute;
    top: 10px;
    bottom: 110px;
    left: 5px;
    width: 1px;
    background: linear-gradient(var(--accent), var(--line) 70%, transparent);
    content: "";
}

.timeline-item {
    position: relative;
    padding: 0 0 64px;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -43px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(78, 216, 255, 0.36);
}

.timeline-meta {
    display: flex;
    margin-bottom: 13px;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin-bottom: 5px;
    font-size: 29px;
}

.timeline-organization {
    margin-bottom: 15px !important;
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 750;
}

.timeline-item > p {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.achievement-card {
    display: grid;
    padding: 28px;
    align-items: center;
    border: 1px solid rgba(255, 201, 107, 0.22);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 201, 107, 0.09), rgba(255, 201, 107, 0.015));
    grid-template-columns: 82px 1fr;
    gap: 24px;
}

.achievement-medal {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: baseline;
    justify-content: center;
    border: 1px solid rgba(255, 201, 107, 0.3);
    border-radius: 50%;
    background: rgba(255, 201, 107, 0.08);
    color: var(--warning);
    box-shadow: inset 0 0 22px rgba(255, 201, 107, 0.08), 0 0 0 7px rgba(255, 201, 107, 0.025);
}

.achievement-medal span { margin-top: 18px; font-size: 31px; font-weight: 850; letter-spacing: -0.08em; }
.achievement-medal small { font-family: var(--font-mono); font-size: 8px; }
.achievement-label { margin-bottom: 7px; color: var(--warning); font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.achievement-card h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -0.035em; }
.achievement-card > div > p:last-child { margin-bottom: 0; color: var(--text-muted); font-size: 11px; }

.contact-section {
    min-height: 720px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.contact-section::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 820px;
    height: 820px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 216, 255, 0.09), transparent 63%);
    content: "";
}

.contact-inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 470px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.contact-inner .section-kicker { justify-content: center; }
.contact-inner h2 { margin-bottom: 24px; }
.contact-inner > p:not(.section-kicker) { max-width: 650px; margin-bottom: 38px; color: var(--text-soft); font-size: 15px; }

.contact-email {
    display: inline-flex;
    padding-bottom: 8px;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid var(--line-strong);
    font-size: clamp(19px, 3vw, 31px);
    font-weight: 700;
    letter-spacing: -0.04em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: transform 0.2s ease; }
.contact-email:hover { border-color: var(--accent); color: var(--accent); }
.contact-email:hover svg { transform: translate(4px, -4px); }

.contact-links {
    display: flex;
    margin-top: 38px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-links a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.contact-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--line);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one { width: 720px; height: 720px; }
.orbit-two { width: 1030px; height: 1030px; border-style: dashed; opacity: 0.6; }

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.footer-inner {
    display: grid;
    align-items: end;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
}

.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-inner > div:first-child p { margin: 11px 0 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 10px; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin: 0; justify-self: end; color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }

.error-page {
    display: grid;
    min-height: calc(100svh - 180px);
    padding: 150px 0 80px;
    place-items: center;
}

.error-card { max-width: 720px; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.error-card .section-kicker { justify-content: center; }
.error-card h1 { margin-bottom: 18px; font-size: 48px; }
.error-card > p { color: var(--text-soft); }
.request-id { font-family: var(--font-mono); font-size: 10px; }
.error-card .button { margin-top: 16px; }

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 1080px) {
    .desktop-nav { gap: 20px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.83fr); gap: 45px; }
    .hero-stage { min-height: 500px; }
    .profile-terminal { width: 410px; min-height: 440px; }
    .monogram { width: 150px; height: 150px; margin-top: 36px; }
    .chip-api { right: -4%; }
    .about-grid { gap: 55px; }
    .project-card.featured { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr); }
    .experience-grid { gap: 70px; }
}

@media (max-width: 900px) {
    .section { padding: 100px 0; }
    .desktop-nav, .nav-cta { display: none; }
    .menu-toggle { display: grid; position: relative; }
    .menu-toggle span { position: absolute; width: 17px; height: 1.5px; border-radius: 10px; background: currentColor; transition: transform 0.25s ease, top 0.25s ease; }
    .menu-toggle span:first-child { top: 16px; }
    .menu-toggle span:last-child { top: 24px; }
    .menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
    body.menu-open .site-header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .mobile-nav {
        position: fixed;
        z-index: 90;
        top: 84px;
        right: 0;
        bottom: auto;
        left: 0;
        display: flex;
        width: 100%;
        height: calc(100vh - 84px);
        height: calc(100dvh - 84px);
        min-height: calc(100svh - 84px);
        padding: 42px 24px;
        overflow-y: auto;
        flex-direction: column;
        overscroll-behavior: contain;
        background-color: var(--bg);
        isolation: isolate;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav[hidden] { display: none; }
    .mobile-nav a { display: flex; padding: 18px 0; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); font-size: 25px; font-weight: 700; letter-spacing: -0.035em; }
    .mobile-nav a span { color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
    .mobile-nav .mobile-cv { display: inline-flex; width: fit-content; min-height: 48px; margin-top: 30px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #06121c; font-size: 12px; letter-spacing: 0; }
    .hero { padding-top: 142px; }
    .hero-grid { grid-template-columns: 1fr; gap: 65px; }
    .hero-copy { max-width: 760px; }
    .hero h1 { font-size: clamp(50px, 9vw, 76px); }
    .hero-stage { width: min(100%, 570px); margin-inline: auto; }
    .profile-terminal { width: min(88%, 470px); }
    .stats-grid { margin-top: 55px; grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stat-item:first-child { padding-left: 28px; }
    .heading-split { grid-template-columns: 1fr; gap: 22px; }
    .heading-split > p { max-width: 550px; }
    .about-grid { grid-template-columns: 1fr; gap: 70px; }
    .about-copy > p { max-width: 720px; }
    .education-card { max-width: 680px; }
    .skill-row { grid-template-columns: 50px minmax(190px, 0.8fr) minmax(0, 1.2fr); }
    .project-card.featured { display: flex; grid-column: 1 / -1; }
    .project-card.featured .project-visual { min-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); }
    .project-card.featured .project-content { padding: 34px; }
    .market-window { width: 74%; }
    .market-window svg { height: 180px; }
    .experience-grid { grid-template-columns: 1fr; gap: 70px; }
    .experience-heading { position: static; }
    .contact-section { min-height: 650px; }
    .footer-inner { align-items: center; grid-template-columns: 1fr auto; }
    .footer-links { grid-row: 2; }
    .copyright { grid-column: 2; grid-row: 2; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 32px), var(--container)); }
    .section { padding: 84px 0; }
    .nav-shell { min-height: 72px; }
    .mobile-nav {
        top: 72px;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        min-height: calc(100svh - 72px);
    }
    .hero { padding-top: 120px; padding-bottom: 48px; }
    .availability { margin-bottom: 24px; font-size: 9px; }
    .hero h1 { font-size: clamp(42px, 12.5vw, 64px); }
    .hero-summary { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .hero-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
    .hero-stage { min-height: 440px; }
    .profile-terminal { width: 90%; min-height: 405px; }
    .terminal-bar { height: 42px; }
    .monogram { width: 128px; height: 128px; margin: 36px auto 28px; }
    .monogram > span { font-size: 39px; }
    .terminal-code { width: calc(100% - 34px); font-size: 8px; }
    .floating-chip { min-height: 40px; padding: 0 12px; font-size: 8px; }
    .chip-dotnet { left: 0; }
    .chip-api { right: 0; }
    .chip-data { left: 1%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { min-height: 88px; padding: 16px; }
    .stat-item:first-child { padding-left: 16px; }
    .stat-item strong { font-size: 23px; }
    .stat-item span { font-size: 8px; }
    .section-heading { margin-bottom: 48px; }
    .section-heading h2, .contact-inner h2, .experience-heading h2 { font-size: clamp(37px, 11vw, 54px); }
    .about-copy .lead { font-size: 22px; }
    .principles > div { grid-template-columns: 30px 1fr; }
    .principles small { grid-column: 2; }
    .education-card { padding: 25px; border-radius: 22px; }
    .education-topline { margin-bottom: 80px; flex-direction: column; gap: 5px; }
    .education-seal { top: 84px; right: 24px; width: 63px; height: 63px; }
    .education-score { grid-template-columns: 1fr; }
    .education-score > div + div { padding-top: 15px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .skill-row { padding: 30px 0; grid-template-columns: 34px 1fr; gap: 18px 10px; }
    .skill-tags { grid-column: 2; }
    .skill-row:hover { padding-inline: 10px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-visual, .project-card.featured .project-visual { min-height: 270px; }
    .project-content, .project-card.featured .project-content { padding: 27px; }
    .market-window { width: 84%; }
    .market-window svg { height: 150px; }
    .ticker-strip { font-size: 6px; }
    .mechanic-badge { min-width: 125px; }
    .experience-grid { gap: 55px; }
    .timeline { padding-left: 30px; }
    .timeline-marker { left: -31px; }
    .timeline-meta { flex-direction: column; gap: 4px; }
    .timeline-item h3 { font-size: 25px; }
    .achievement-card { padding: 22px; grid-template-columns: 62px 1fr; gap: 18px; }
    .achievement-medal { width: 62px; height: 62px; }
    .achievement-medal span { margin-top: 11px; font-size: 25px; }
    .contact-section { min-height: 590px; }
    .contact-inner > p:not(.section-kicker) { font-size: 13px; }
    .contact-email { font-size: 18px; }
    .contact-email svg { width: 18px; }
    .contact-links { align-items: stretch; flex-direction: column; }
    .contact-links a { justify-content: center; }
    .orbit-one { width: 480px; height: 480px; }
    .orbit-two { width: 700px; height: 700px; }
    .footer-inner { align-items: start; grid-template-columns: 1fr; }
    .footer-links { grid-row: auto; flex-wrap: wrap; }
    .copyright { grid-column: auto; grid-row: auto; justify-self: start; }
    .error-card { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Profile photo used by the Cloudflare Pages build. */
.photo-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(78, 216, 255, 0.26), transparent 38%);
    z-index: 1;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    object-fit: cover;
    object-position: center 20%;
    transform: translateY(8px) scale(1.8);
    transform-origin: center 20%;
}

.photo-frame.photo-missing::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--text);
    content: "AH";
    font-size: 48px;
    font-weight: 850;
    letter-spacing: -0.08em;
}

.monogram-ring {
    z-index: 2;
    pointer-events: none;
}
