@charset "utf-8";

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #080d0a;
  --panel: #0d1511;
  --panel-raised: #111c16;
  --surface: #CBD5E1;
  --surface-ink: #101711;
  --text: #f7faf8;
  --muted: #A1A1AA;
  --line: rgba(203, 213, 225, .18);
  --line-strong: rgba(203, 213, 225, .34);
  --primary: #1B4DEA;
  --primary-readable: #A8BCFF;
  --primary-ink: #FFFFFF;
  --accent: #2563EB;
  --header: rgba(0, 0, 0, .82);
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --page-width: 1240px;
  --sans: "Inter", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --display: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8f6;
  --bg-alt: #eaf0ed;
  --panel: #ffffff;
  --panel-raised: #f0f5f2;
  --surface: #CBD5E1;
  --surface-ink: #101711;
  --primary: #1B4DEA;
  --primary-readable: #1B4DEA;
  --primary-ink: #FFFFFF;
  --text: #101711;
  --muted: #53615a;
  --line: rgba(16, 23, 17, .15);
  --line-strong: rgba(16, 23, 17, .28);
  --header: rgba(245, 248, 246, .88);
  --shadow: 0 22px 70px rgba(22, 41, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
::selection { background: var(--primary); color: var(--primary-ink); }

.page-width { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; }
.section-shell { position: relative; }
.section-padding { padding-block: clamp(80px, 8vw, 112px); }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 10px 14px;
  transform: translateY(-160%); border-radius: 8px; background: var(--primary); color: var(--primary-ink);
}
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; transform-origin: left; background: var(--primary); box-shadow: 0 0 12px rgba(27, 77, 234, .7); }

.site-header {
  position: sticky; top: 0; z-index: 90; height: 82px;
  border-bottom: 1px solid transparent; background: var(--header); backdrop-filter: blur(18px);
  transition: border-color .3s, background .3s, height .3s;
}
.site-header.is-scrolled { height: 70px; border-color: var(--line); }
.nav-shell { width: min(1380px, calc(100% - 96px)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-name { white-space: nowrap; }
.brand-name strong { color: var(--primary-readable); font-weight: 600; }
.desktop-nav { display: flex; align-items: center; gap: clamp(19px, 2.4vw, 36px); margin-left: auto; }
.desktop-nav a, .mobile-menu a {
  position: relative; color: var(--muted); font: 500 10px/1.2 var(--mono); letter-spacing: .075em;
  text-transform: uppercase; transition: color .2s;
}
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 2px; border-radius: 2px; background: var(--primary); transition: width .28s var(--ease-out); }
.desktop-nav a:hover, .desktop-nav a.is-current { color: var(--text); }
.desktop-nav a:hover::after, .desktop-nav a.is-current::after { width: 100%; }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; }
.theme-toggle {
  display: grid; width: 38px; height: 38px; place-items: center; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--text);
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary-ink); background: var(--primary); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--panel); }
.language-button { min-width: 34px; padding: 6px 8px; border: 0; border-radius: 9999px; background: transparent; color: var(--muted); font: 600 9px/1 var(--mono); transition: color .2s, background .2s; }
.language-button.is-active { background: var(--primary); color: var(--primary-ink); }
.language-button:not(.is-active):hover { color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 15px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.nav-cta:hover { transform: translateY(-2px); background: #1642CC; }
.arrow-up-right { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

.hero {
  min-height: 650px; padding: clamp(60px, 7vw, 100px) 0 76px; overflow: clip;
  background-image: linear-gradient(rgba(203, 213, 225, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 213, 225, .035) 1px, transparent 1px);
  background-size: 52px 52px;
}
:root[data-theme="light"] .hero { background-image: linear-gradient(rgba(16, 23, 17, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 23, 17, .04) 1px, transparent 1px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 76% 42%, rgba(37, 99, 235, .14), transparent 35%), radial-gradient(ellipse at 23% 35%, rgba(27, 77, 234, .07), transparent 30%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .82fr); align-items: center; gap: clamp(48px, 8vw, 120px); min-height: 500px; }
.hero-copy { position: relative; z-index: 2; padding-block: 20px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; color: var(--muted); font: 600 10px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.status-dot, .instruction-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(27, 77, 234, .12), 0 0 14px rgba(27, 77, 234, .55); }
.hero h1 { max-width: 760px; margin: 23px 0 7px; font: 500 clamp(62px, 7.2vw, 94px)/.89 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.hero-name { margin: 18px 0 0; color: var(--primary-readable); font-size: clamp(15px, 1.55vw, 18px); font-weight: 600; letter-spacing: .01em; }
.hero-description { max-width: 545px; margin: 15px 0 0; color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 27px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 17px; border-radius: 8px; font-size: 11px; font-weight: 600; transition: transform .22s var(--ease-out), background .22s, color .22s; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--primary); color: var(--primary-ink); }
.button-dark:hover { background: #1642CC; }
.button-arrow { display: inline-grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 11px; font-weight: 600; transition: gap .2s, color .2s; }
.text-link:hover { gap: 13px; color: var(--primary-readable); }
.text-link span:last-child { color: var(--primary-readable); font-size: 15px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: clamp(32px, 4.5vw, 54px); padding-top: 15px; border-top: 1px solid var(--line); }
.hero-fact { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.fact-index { color: var(--primary-readable); font: 500 10px var(--mono); }

.hero-visual { position: relative; width: min(100%, 480px); justify-self: end; isolation: isolate; --mx: 50%; --my: 50%; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: -35px -45px -35px 7%; background: radial-gradient(ellipse at var(--mx) var(--my), rgba(27, 77, 234, .16), transparent 58%); transition: background .2s; }
.connection-map { position: absolute; z-index: 0; inset: -9% -10%; width: 120%; height: 118%; overflow: visible; pointer-events: none; }
.connection-map path { fill: none; stroke: rgba(27, 77, 234, .45); stroke-width: 1.25; stroke-dasharray: 4 6; animation: signalFlow 16s linear infinite; }
.connection-map circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2px; }
.connection-map .map-junction { fill: var(--primary); }
@keyframes signalFlow { to { stroke-dashoffset: -100; } }
.portrait-frame { position: relative; z-index: 1; width: 100%; aspect-ratio: .86; margin: 0; padding: 9px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(203, 213, 225, .07); box-shadow: var(--shadow); }
.portrait-frame::before { content: ""; position: absolute; z-index: 2; inset: 9px; border: 1px solid rgba(255, 255, 255, .48); border-radius: 12px; pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: 100%; border-radius: 11px; object-fit: cover; object-position: 50% 19%; }
.portrait-frame::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 9px; height: 38%; border-radius: 0 0 11px 11px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); pointer-events: none; }
.portrait-caption { position: absolute; z-index: 3; left: 25px; right: 25px; bottom: 24px; display: flex; align-items: center; gap: 12px; color: #fff; }
.caption-mark { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 8px; color: var(--primary-readable); font: 600 9px var(--mono); letter-spacing: -.04em; }
.portrait-caption strong, .portrait-caption small { display: block; }
.portrait-caption strong { font: 600 17px/1.2 var(--display); }
.portrait-caption small { margin-top: 3px; color: rgba(255, 255, 255, .77); font: 500 8px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.visual-orbit { position: absolute; z-index: 0; border: 1px solid rgba(27, 77, 234, .28); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 110px; aspect-ratio: 1; top: -40px; right: -29px; }
.orbit-two { width: 180px; aspect-ratio: 1; top: -74px; right: -64px; border-color: rgba(37, 99, 235, .24); }
.vertical-mark { position: absolute; z-index: 3; top: 13%; left: -31px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: .1em; writing-mode: vertical-rl; }
.vertical-mark i { width: 1px; height: 48px; background: var(--primary); }
.image-coordinate { position: absolute; right: -31px; bottom: 8px; color: var(--muted); font: 500 8px var(--mono); letter-spacing: .13em; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; left: max(48px, calc((100% - var(--page-width))/2)); bottom: 25px; display: flex; align-items: center; gap: 11px; color: var(--muted); font: 500 8px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.scroll-line { display: block; width: 30px; height: 1px; transform-origin: left; background: var(--primary); animation: linePulse 1.8s ease-in-out infinite alternate; }
@keyframes linePulse { from { transform: scaleX(.45); opacity: .55; } to { transform: scaleX(1); opacity: 1; } }

.capability-strip { position: relative; z-index: 2; border-block: 1px solid var(--line); background: var(--bg-alt); }
.capability-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 30px; }
.strip-label { color: var(--muted); font: 600 9px var(--mono); letter-spacing: .14em; }
.capability-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 17px; }
.capability-list span { color: var(--text); font-size: 11px; font-weight: 500; }
.capability-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(27, 77, 234, .5); }

.section-kicker { margin: 0 0 19px; }
.section-kicker > span:first-child { color: var(--primary-readable); font: 500 10px var(--mono); }
.section-heading h2, .experience-intro h2, .contact h2 { margin: 0; font: 600 clamp(36px, 4.4vw, 58px)/1.06 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
.section-intro { max-width: 330px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.profile { background: var(--bg-alt); }
.profile-grid { display: grid; grid-template-columns: .88fr 1fr; gap: clamp(55px, 10vw, 145px); }
.profile .section-heading h2 { max-width: 560px; }
.profile-copy { max-width: 600px; padding-top: 26px; color: var(--muted); }
.profile-copy p { margin: 0; }
.profile-copy .lead-copy { color: var(--text); font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }
.profile-copy > p:nth-of-type(2) { margin-top: 17px; font-size: 13px; }
.profile-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--text); }
.note-rule { flex: 0 0 21px; height: 2px; margin-top: 11px; border-radius: 2px; background: var(--primary); }
.profile-note p { max-width: 450px; font-size: 12px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 28px; }
.profile-tags > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 500 9px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.profile-tags i { color: var(--primary-readable); font-style: normal; }

.expertise { background: var(--bg); }
.section-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-topline .section-heading { max-width: 700px; }
.section-topline .section-heading h2 { max-width: 670px; }
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.expertise-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .32s var(--ease-out), border-color .25s, box-shadow .3s; }
.expertise-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 15px 35px rgba(0, 0, 0, .16); }
.expertise-card:nth-child(1) { grid-row: span 2; min-height: 286px; border-color: transparent; background: var(--primary); color: var(--primary-ink); }
.expertise-card:nth-child(2) { background: var(--surface); color: var(--surface-ink); }
.expertise-card:nth-child(3) { background: var(--panel-raised); }
.expertise-card:nth-child(4) { grid-column: 1 / -1; background: var(--accent); color: #fff; }
.expertise-trigger { display: grid; width: 100%; min-height: 91px; grid-template-columns: 38px minmax(0, 1fr) 34px; align-items: center; gap: 13px; padding: 19px 21px 14px; border: 0; background: transparent; color: inherit; text-align: left; }
.expertise-number { align-self: start; padding-top: 6px; color: var(--primary-readable); font: 500 10px var(--mono); }
.expertise-card:nth-child(1) .expertise-number { color: rgba(255, 255, 255, .8); }
.expertise-card:nth-child(2) .expertise-number { color: #1B4DEA; }
.expertise-card:nth-child(4) .expertise-number { color: rgba(255, 255, 255, .8); }
.expertise-title { color: inherit; font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; transition: color .2s; }
.expertise-toggle { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid currentColor; border-radius: 8px; color: inherit; font-size: 17px; line-height: 1; opacity: .68; transition: transform .35s var(--ease-out), opacity .2s, background .2s; }
.expertise-trigger:hover .expertise-toggle { opacity: 1; }
.expertise-trigger[aria-expanded="true"] .expertise-toggle { transform: rotate(45deg); opacity: 1; }
.expertise-details { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease-out), opacity .25s; }
.expertise-card.is-open .expertise-details { max-height: 280px; opacity: 1; }
.expertise-details p, .detail-tags { margin: 0 22px; }
.expertise-details p { color: inherit; font-size: 11px; line-height: 1.7; opacity: .8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 0 20px; }
.detail-tags span { padding: 5px 8px; border: 1px solid currentColor; border-radius: 9999px; color: inherit; font: 500 8px/1.2 var(--mono); opacity: .72; }
.engineering-caption { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 29px; color: var(--muted); font: 500 18px/1.2 var(--display); }
.caption-line { width: clamp(20px, 5vw, 72px); height: 1px; background: var(--line-strong); }

.experience { overflow: hidden; background: var(--bg-alt); }
.experience::before { content: ""; position: absolute; top: -155px; right: -130px; width: 440px; aspect-ratio: 1; border: 1px solid rgba(27, 77, 234, .13); border-radius: 50%; box-shadow: 0 0 0 38px rgba(27, 77, 234, .025), 0 0 0 80px rgba(37, 99, 235, .035); pointer-events: none; }
.experience-layout { position: relative; display: grid; grid-template-columns: .72fr 1fr; gap: clamp(55px, 10vw, 140px); }
.experience-intro h2 { max-width: 500px; }
.experience-intro .section-intro { margin-top: 20px; }
.timeline-instruction { display: flex; align-items: center; gap: 11px; margin-top: 37px; color: var(--muted); font: 600 9px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.instruction-dot { width: 6px; height: 6px; flex-basis: 6px; box-shadow: none; }
.experience-content { display: grid; min-width: 0; grid-template-columns: minmax(150px, .48fr) minmax(0, 1fr); align-items: stretch; gap: clamp(22px, 3vw, 42px); }
.timeline-tabs { position: relative; display: flex; flex-direction: column; align-self: start; padding: 8px 0; --timeline-progress: 0%; }
.timeline-tabs::before, .timeline-tabs::after { content: ""; position: absolute; z-index: 0; top: 25px; left: 17px; width: 1px; }
.timeline-tabs::before { bottom: 25px; background: var(--line-strong); }
.timeline-tabs::after { bottom: 25px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out); }
.timeline-tabs.is-in-view::after { transform: scaleY(var(--timeline-progress)); }
.timeline-tab { position: relative; z-index: 1; display: grid; width: 100%; min-height: 81px; grid-template-columns: 12px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 12px; padding: 13px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.timeline-tab + .timeline-tab { margin-top: 4px; }
.timeline-tab:hover { transform: translateX(3px); color: var(--text); }
.timeline-tab.is-selected { border-color: rgba(27, 77, 234, .22); background: rgba(27, 77, 234, .08); }
.timeline-year { grid-column: 2; grid-row: 1; color: var(--muted); font: 500 9px/1.4 var(--mono); letter-spacing: .035em; }
.timeline-role { grid-column: 2; grid-row: 2; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; transition: color .2s; }
.timeline-node { position: relative; z-index: 2; grid-column: 1; grid-row: 1 / span 2; justify-self: center; width: 9px; height: 9px; border: 1px solid var(--muted); border-radius: 50%; background: var(--bg-alt); transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.timeline-tab.is-selected .timeline-role, .timeline-tab.is-selected .timeline-year { color: var(--primary-readable); }
.timeline-tab.is-selected .timeline-node { transform: scale(1.2); border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px rgba(27, 77, 234, .13); }
.timeline-panel { position: relative; display: flex; min-width: 0; align-items: flex-start; padding: clamp(25px, 3vw, 36px); border: 1px solid rgba(16, 23, 17, .08); border-radius: 18px; background: var(--surface); color: var(--surface-ink); box-shadow: var(--shadow); }
.timeline-panel-content { width: 100%; }
.panel-topline { display: flex; justify-content: space-between; gap: 18px; color: #1B4DEA; font: 600 9px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.panel-index { color: rgba(16, 23, 17, .55); white-space: nowrap; }
.timeline-panel h3 { margin: 20px 0 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.timeline-company { margin: 0; color: rgba(16, 23, 17, .68); font: 600 10px/1.55 var(--mono); letter-spacing: .025em; }
.timeline-summary { margin: 20px 0 14px; color: rgba(16, 23, 17, .78); font-size: 13px; line-height: 1.7; }
.timeline-bullets { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.timeline-bullets li { position: relative; padding-left: 17px; color: rgba(16, 23, 17, .84); font-size: 12px; line-height: 1.62; }
.timeline-bullets li::before { content: ""; position: absolute; top: .72em; left: 0; width: 7px; height: 2px; border-radius: 2px; background: var(--accent); }
.education { background: var(--bg); }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.education-card { position: relative; min-height: 224px; padding: 24px 25px 20px; overflow: hidden; border: 1px solid rgba(16, 23, 17, .08); border-radius: 16px; background: var(--surface); color: var(--surface-ink); transition: transform .3s var(--ease-out), box-shadow .3s; }
.education-card::after { content: ""; position: absolute; top: -55px; right: -42px; width: 150px; aspect-ratio: 1; border: 1px solid rgba(37, 99, 235, .23); border-radius: 50%; box-shadow: 0 0 0 18px rgba(37, 99, 235, .05); pointer-events: none; }
.education-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.education-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 15px; }
.education-level { color: #1B4DEA; font: 600 8px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.education-years { color: rgba(16, 23, 17, .58); font: 500 8px/1.4 var(--mono); letter-spacing: .06em; }
.education-card h3 { position: relative; z-index: 1; max-width: 390px; margin: 29px 0 7px; font-size: clamp(23px, 2.5vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.education-card > p { position: relative; z-index: 1; max-width: 420px; min-height: 34px; margin: 0; color: rgba(16, 23, 17, .68); font-size: 10px; line-height: 1.6; }
.grade-line { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 17px; padding-top: 10px; border-top: 1px solid rgba(16, 23, 17, .15); color: rgba(16, 23, 17, .58); font: 500 8px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.grade-line strong { color: #0a1820; font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.grade-line strong span { color: rgba(16, 23, 17, .58); font-size: 10px; }

.toolkit { background: var(--bg-alt); }
.toolkit-grid { display: grid; grid-template-columns: .82fr 1fr; gap: clamp(55px, 10vw, 138px); }
.toolkit-grid .section-heading h2 { max-width: 530px; }
.toolkit-content { border-top: 1px solid var(--line); }
.toolkit-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.toolkit-row h3 { margin: 5px 0 0; color: var(--primary-readable); font: 600 9px/1.5 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.language-cards { display: grid; gap: 9px; }
.toolkit-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: transform .24s var(--ease-out), border-color .24s, background-color .24s, box-shadow .24s; }
.toolkit-card:hover { transform: translateY(-3px); border-color: rgba(27, 77, 234, .55); background-color: var(--panel-raised); box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
.language-card { display: grid; gap: 7px; padding: 14px 16px; }
.language-card-title { display: flex; align-items: center; gap: 12px; }
.language-card-title img { width: 31px; height: 23px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 3px; object-fit: cover; transition: transform .24s var(--ease-out); }
.language-card:hover .language-card-title img { transform: translateX(2px); }
.language-card-title b { color: var(--text); font-size: 14px; font-weight: 500; }
.language-card small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.software-grid, .approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.software-card { display: flex; min-height: 132px; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 15px 10px; color: var(--text); font-size: 11px; font-weight: 500; line-height: 1.4; text-align: center; }
.software-logo { display: block; width: 48px; height: 48px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; }
.software-logo-wide { width: min(100%, 128px); height: 42px; padding: 6px 8px; }
.software-card .software-logo { transition: transform .24s var(--ease-out); }
.software-card:hover .software-logo { transform: scale(1.05); }
.approach-card { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 12px; color: var(--text); font-size: 11px; font-weight: 500; line-height: 1.4; }
.approach-card img { display: block; width: 22px; height: 22px; flex: 0 0 auto; filter: brightness(0) saturate(100%) invert(31%) sepia(93%) saturate(2312%) hue-rotate(216deg) brightness(94%) contrast(97%); transition: transform .24s var(--ease-out); }
:root[data-theme="dark"] .approach-card img { filter: brightness(0) saturate(100%) invert(82%) sepia(31%) saturate(712%) hue-rotate(190deg) brightness(105%) contrast(102%); }
.approach-card:hover img { transform: translateY(-1px) scale(1.06); }
.toolkit-card.reveal-pending:nth-child(2) { transition-delay: .06s; }
.toolkit-card.reveal-pending:nth-child(3) { transition-delay: .12s; }
.toolkit-card.reveal-pending:nth-child(4) { transition-delay: .18s; }

.contact { padding: clamp(76px, 8vw, 106px) 0 73px; overflow: hidden; background: var(--accent); color: #fff; }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(100deg, transparent, #000 30%, #000 85%, transparent); }
.contact::after { content: ""; position: absolute; top: -180px; right: -130px; width: 490px; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255, 255, 255, .035), 0 0 0 78px rgba(255, 255, 255, .025); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(45px, 8vw, 112px); }
.section-kicker-light { color: rgba(255, 255, 255, .7); }
.contact h2 { max-width: 590px; color: #fff; }
.contact-copy > p:not(.section-kicker) { max-width: 455px; margin: 19px 0 0; color: rgba(255, 255, 255, .8); font-size: 12px; }
.contact-availability { display: flex; align-items: center; gap: 11px; margin-top: 26px; color: rgba(255, 255, 255, .94); font: 500 9px/1.4 var(--mono); }
.contact-availability .status-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(27, 77, 234, .18), 0 0 12px rgba(27, 77, 234, .65); }
.contact-card { padding: 27px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: #07110C; box-shadow: 0 22px 55px rgba(0, 0, 0, .22); }
.contact-card-label { color: rgba(255, 255, 255, .58); font: 600 8px var(--mono); letter-spacing: .17em; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: clamp(18px, 2.2vw, 25px); font-weight: 500; letter-spacing: -.035em; overflow-wrap: anywhere; transition: color .2s; }
.email-link:hover { color: var(--primary-readable); }
.email-link span { flex: 0 0 auto; color: var(--primary-readable); font-size: 17px; }
.contact-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 14px; }
.contact-card-bottom > span { max-width: 230px; color: rgba(255, 255, 255, .66); font-size: 9px; line-height: 1.6; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s; }
.copy-button:hover { color: var(--primary); border-color: var(--primary); }
.copy-button span:last-child { color: var(--primary); font-size: 14px; }
.copy-status { min-height: 18px; margin: 6px 0 -13px; color: var(--primary-readable); font-size: 9px; }
.contact-technical { position: absolute; right: 48px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .62); font: 500 7px var(--mono); letter-spacing: .12em; }
.contact-technical i { width: 23px; height: 1px; background: rgba(255, 255, 255, .55); }
.site-footer { background: #000; color: var(--muted); }
:root[data-theme="light"] .site-footer { background: #101711; color: #CBD5E1; }
.footer-inner { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { color: #fff; font-size: 10px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand .brand-name strong { color: var(--primary-readable); }
.footer-inner p { margin: 0; font-size: 9px; letter-spacing: .035em; }
.back-to-top { display: inline-flex; align-items: center; gap: 10px; font: 500 9px var(--mono); transition: color .2s; }
.back-to-top span:last-child { color: var(--primary-readable); font-size: 14px; }
.back-to-top:hover { color: #fff; }

.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity .62s var(--ease-out), transform .62s var(--ease-out); }
.reveal.reveal-pending.is-visible { opacity: 1; transform: translateY(0); }
.expertise-card.reveal-pending:nth-child(2), .education-card.reveal-pending:nth-child(2) { transition-delay: .07s; }
.expertise-card.reveal-pending:nth-child(3) { transition-delay: .13s; }
.expertise-card.reveal-pending:nth-child(4) { transition-delay: .19s; }

@media (min-width: 1500px) {
  .hero { min-height: 730px; }
  .hero-grid { min-height: 575px; }
}
@media (max-width: 1100px) {
  .page-width, .nav-shell { width: calc(100% - 64px); }
  .desktop-nav { gap: 17px; }
  .nav-actions { gap: 9px; }
  .brand-name { max-width: 135px; white-space: normal; line-height: 1.2; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 48px; }
  .image-coordinate { right: -17px; }
  .profile-grid, .experience-layout, .toolkit-grid { gap: 58px; }
  .contact-grid { gap: 48px; }
}
@media (max-width: 860px) {
  .page-width, .nav-shell { width: calc(100% - 48px); }
  .site-header { height: 72px; }
  .site-header.is-scrolled { height: 66px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 6px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; }
  .menu-toggle span { width: 100%; height: 1px; background: var(--text); transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 12px 24px 19px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 20px 35px rgba(0, 0, 0, .24); }
  .mobile-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border: 0; }
  .hero { min-height: auto; padding: 54px 0 73px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; min-height: 510px; }
  .hero h1 { font-size: clamp(57px, 8.1vw, 78px); }
  .hero-visual { width: 100%; }
  .vertical-mark { left: -22px; }
  .image-coordinate { display: none; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .scroll-cue { left: 24px; }
  .capability-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding-block: 17px; }
  .capability-list { justify-content: flex-start; gap: 9px 14px; }
  .profile-grid { grid-template-columns: 1fr 1fr; gap: 33px; }
  .section-topline { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 31px; }
  .section-topline .section-intro { max-width: 480px; }
  .experience-layout, .toolkit-grid { grid-template-columns: 1fr; gap: 35px; }
  .experience-intro h2 { max-width: 640px; }
  .timeline-instruction { margin-top: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact-copy > p:not(.section-kicker) { max-width: 620px; }
  .contact-card { max-width: 680px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .page-width, .nav-shell { width: calc(100% - 40px); }
  .site-header { height: 66px; }
  .nav-actions { gap: 8px; }
  .nav-cta { display: none; }
  .brand { gap: 8px; font-size: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { max-width: 112px; }
  .theme-toggle, .menu-toggle { width: 35px; height: 35px; }
  .theme-icon { width: 16px; height: 16px; }
  .language-switch { padding: 2px; }
  .language-button { min-width: 29px; padding: 6px 6px; font-size: 8px; }
  .hero { padding: 41px 0 65px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 39px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 530px; margin-top: 19px; font-size: clamp(59px, 15vw, 78px); }
  .hero-description { max-width: 440px; margin-top: 13px; font-size: 13px; }
  .hero-name { margin-top: 14px; }
  .hero-actions { gap: 16px; margin-top: 22px; }
  .button { min-height: 45px; gap: 12px; padding-inline: 13px; font-size: 10px; }
  .hero-facts { margin-top: 22px; padding-top: 12px; }
  .hero-visual { width: min(84%, 350px); align-self: center; }
  .portrait-frame { padding: 7px; border-radius: 15px; }
  .portrait-frame::before { inset: 7px; border-radius: 10px; }
  .portrait-frame img { border-radius: 9px; }
  .portrait-frame::after { left: 7px; right: 7px; bottom: 7px; }
  .portrait-caption { left: 18px; right: 17px; bottom: 19px; gap: 9px; }
  .caption-mark { width: 31px; height: 31px; font-size: 8px; }
  .portrait-caption strong { font-size: 15px; }
  .portrait-caption small { font-size: 7px; }
  .orbit-one { width: 81px; top: -30px; right: -20px; }
  .orbit-two { width: 132px; top: -53px; right: -43px; }
  .vertical-mark { left: -18px; font-size: 6px; }
  .scroll-cue { left: 20px; bottom: 20px; font-size: 7px; }
  .capability-inner { gap: 8px; }
  .capability-list { gap: 8px 10px; }
  .capability-list span { font-size: 9px; }
  .capability-list i { width: 4px; height: 4px; }
  .section-padding { padding-block: 70px; }
  .profile-grid { grid-template-columns: 1fr; gap: 22px; }
  .profile-copy { padding-top: 0; }
  .section-heading h2, .experience-intro h2, .contact h2 { font-size: clamp(34px, 10.3vw, 49px); }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card:nth-child(1) { grid-row: auto; min-height: 0; }
  .expertise-card:nth-child(4) { grid-column: auto; }
  .expertise-trigger { min-height: 78px; grid-template-columns: 30px minmax(0, 1fr) 31px; gap: 10px; padding: 16px 17px 11px; }
  .expertise-title { font-size: 15px; }
  .expertise-details p, .detail-tags { margin-inline: 17px; }
  .engineering-caption { gap: 8px; font-size: 16px; text-align: center; }
  .experience-layout { gap: 30px; }
  .experience-content { grid-template-columns: 1fr; gap: 19px; }
  .timeline-tabs { padding-block: 0; }
  .timeline-tabs::before, .timeline-tabs::after { top: 17px; bottom: 17px; }
  .timeline-tab { min-height: 70px; }
  .timeline-panel { padding: 22px 19px; }
  .panel-topline { font-size: 8px; }
  .timeline-panel h3 { font-size: clamp(25px, 7vw, 32px); }
  .timeline-summary { font-size: 12px; }
  .timeline-bullets li { font-size: 11px; }
  .education-grid { grid-template-columns: 1fr; gap: 12px; }
  .education-card { min-height: 0; padding: 21px 19px 17px; }
  .education-card h3 { margin-top: 22px; font-size: 27px; }
  .toolkit-row { grid-template-columns: 1fr; gap: 11px; padding-block: 21px; }
  .toolkit-row h3 { margin: 0; font-size: 8px; }
  .language-card { padding: 13px 14px; }
  .software-card { min-height: 118px; }
  .approach-card { min-height: 62px; padding: 10px; gap: 9px; font-size: 10px; }
  .contact { padding: 68px 0 73px; }
  .contact-card { padding: 21px 18px; }
  .email-link { font-size: clamp(17px, 5.4vw, 23px); }
  .contact-card-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-card-bottom > span { max-width: 100%; }
  .contact-technical { right: 20px; bottom: 10px; font-size: 6px; }
  .contact-technical i { width: 13px; }
  .footer-inner { min-height: 88px; flex-wrap: wrap; padding-block: 14px; gap: 9px 16px; }
  .footer-inner p { order: 3; width: 100%; font-size: 8px; }
  .back-to-top { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
}
