
:root {
  --bg: #050b12;
  --bg-deep: #02060b;
  --surface: #091521;
  --surface-2: #0d1d2b;
  --surface-3: #102538;
  --text: #f3f9ff;
  --muted: #9fb0bf;
  --muted-2: #728596;
  --accent: #17c8ff;
  --accent-2: #4e7cff;
  --accent-3: #8e5cff;
  --success: #36e2a0;
  --line: rgba(148, 197, 228, .16);
  --line-strong: rgba(64, 199, 255, .35);
  --glow: rgba(23, 200, 255, .18);
  --shadow: 0 26px 80px rgba(0, 0, 0, .36);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1220px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: radial-gradient(circle at 18% 0%, rgba(23,200,255,.09), transparent 34%), radial-gradient(circle at 90% 18%, rgba(78,124,255,.10), transparent 30%), linear-gradient(180deg, var(--bg-deep), var(--bg)); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--accent); color: #001018; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; left: 20px; top: -60px; z-index: 1000; padding: 12px 18px; background: var(--accent); color: #001018; border-radius: 8px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 20px; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.blueprint { position: relative; isolation: isolate; }
.blueprint::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(23,200,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,200,255,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent); }
.blueprint::after { content: ""; position: absolute; width: 580px; height: 580px; border: 1px solid rgba(23,200,255,.12); border-radius: 50%; right: -220px; top: -240px; box-shadow: 0 0 0 80px rgba(23,200,255,.015), 0 0 0 160px rgba(23,200,255,.01); z-index: -1; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: rgba(3, 9, 15, .82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transition: background .2s, box-shadow .2s; }
.site-header.scrolled { background: rgba(3, 9, 15, .96); box-shadow: 0 12px 42px rgba(0,0,0,.3); }
.nav-shell { width: min(1360px, calc(100% - 36px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #00131d; font-weight: 950; letter-spacing: -.05em; box-shadow: 0 0 30px var(--glow); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a { position: relative; padding: 11px 13px; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 650; transition: color .2s, background .2s; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); background: rgba(255,255,255,.045); }
.primary-nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav-cta { padding: 11px 17px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; font-weight: 800; color: var(--accent); background: rgba(23,200,255,.055); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px; }
.menu-button span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }

.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: .73rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(3.5rem, 8vw, 7.7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
p { color: var(--muted); }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button-row.center { justify-content: center; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 850; font-size: .9rem; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--accent), #4ba7ff); color: #001019; border-color: transparent; box-shadow: 0 15px 38px rgba(23,200,255,.16); }
.button.primary:hover { box-shadow: 0 18px 44px rgba(23,200,255,.26); }
.button.secondary { background: rgba(255,255,255,.035); color: var(--text); }
.button.secondary:hover { border-color: var(--line-strong); background: rgba(23,200,255,.06); }
.button.small { min-height: 42px; padding: 0 17px; font-size: .8rem; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 850; white-space: nowrap; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }

.hero { min-height: calc(100svh - var(--header-height)); display: grid; align-items: center; padding: 82px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(40px,7vw,92px); align-items: center; }
.availability { width: fit-content; display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 13px; border: 1px solid rgba(54,226,160,.28); border-radius: 999px; background: rgba(54,226,160,.05); color: #b9f9df; font-size: .79rem; font-weight: 750; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(54,226,160,.09), 0 0 18px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent, 0 0 18px var(--success); } }
.hero h1 { margin: 0 0 24px; max-width: 820px; }
.hero h1 span { display: block; background: linear-gradient(120deg, var(--accent), #77e9ff 40%, #7d8dff 75%, var(--accent-3)); -webkit-background-clip: text; color: transparent; }
.hero-lede { max-width: 720px; font-size: clamp(1.04rem,1.5vw,1.22rem); }
.hero-proof { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-proof span, .tag-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #bad0df; background: rgba(255,255,255,.025); font-size: .72rem; font-weight: 760; }
.hero-visual { position: relative; padding: 26px; }
.portrait-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow), 0 0 60px rgba(23,200,255,.10); }
.portrait-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(1,7,12,.9), transparent 46%); pointer-events: none; }
.portrait-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; filter: saturate(.94) contrast(1.02); }
.portrait-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: linear-gradient(rgba(23,200,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23,200,255,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(transparent, black); }
.portrait-label { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 21px; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.portrait-label span { color: var(--muted); font-size: .75rem; }
.portrait-label strong { color: var(--accent); font-size: .72rem; letter-spacing: .14em; }
.orbit-card { position: absolute; z-index: 5; min-width: 220px; padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(6,16,25,.91); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.orbit-card small, .orbit-card strong { display: block; }
.orbit-card small { color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; }
.orbit-card strong { margin-top: 4px; font-size: .84rem; }
.orbit-card-a { left: -25px; top: 90px; }
.orbit-card-b { right: -20px; bottom: 110px; }

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(9,21,33,.72); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-card { min-height: 185px; padding: 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.stat-card:first-child { border-left: 1px solid var(--line); }
.stat-card strong { display: block; color: var(--text); font-size: clamp(2.4rem,4vw,4.3rem); line-height: 1; letter-spacing: -.06em; }
.stat-card span { margin-top: 12px; color: var(--accent); font-weight: 850; }
.stat-card small { margin-top: 5px; color: var(--muted-2); line-height: 1.35; }
.page-stats { margin-top: -48px; position: relative; z-index: 3; width: min(var(--container), calc(100% - 44px)); margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page-stats .container { width: 100%; }
.skill-marquee { overflow: hidden; padding: 17px 0; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.marquee-track { width: max-content; display: flex; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding: 0 27px; color: #c4d4df; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.marquee-track span::after { content: "◇"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 110px 0; }
.section-dark { background: linear-gradient(180deg, #07131f, #06101a); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-accent { background: linear-gradient(135deg, rgba(23,200,255,.10), rgba(78,124,255,.08) 55%, rgba(142,92,255,.08)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 50px; max-width: 900px; }
.section-heading h2 { margin-bottom: 0; }
.row-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.row-heading > div { max-width: 880px; }
.heading-note { max-width: 390px; margin: 0 0 9px; }
.vision-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.vision-copy > p { margin-top: 0; font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: #c7d5df; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
blockquote { margin: 38px 0 0; padding: 26px 28px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0; background: rgba(23,200,255,.045); color: var(--text); font-size: clamp(1.25rem,2vw,1.65rem); line-height: 1.45; }
blockquote cite { display: block; margin-top: 14px; color: var(--muted); font-size: .78rem; font-style: normal; text-transform: uppercase; letter-spacing: .12em; }
.expertise-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { position: relative; min-height: 310px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.expertise-card:hover { background: rgba(23,200,255,.035); }
.card-number { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.expertise-card h3 { margin: 62px 0 16px; max-width: 420px; }
.expertise-card p { max-width: 520px; margin-bottom: 0; }
.signal-line { position: absolute; width: 160px; height: 80px; right: -25px; bottom: -10px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); transform: skewX(-35deg); opacity: .55; }

.featured-projects { display: grid; gap: 90px; }
.featured-project { display: grid; grid-template-columns: 1.15fr .85fr; gap: 58px; align-items: center; }
.featured-project.reverse { grid-template-columns: .85fr 1.15fr; }
.featured-project.reverse .project-media { order: 2; }
.project-media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.project-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s; }
.featured-project:hover .project-media img { transform: scale(1.025); }
.split-media { display: grid; grid-template-columns: 1fr 1fr; }
.split-media img { height: 100%; min-height: 330px; aspect-ratio: auto; }
.project-index { display: inline-block; margin-bottom: 26px; color: var(--muted-2); font-size: .75rem; letter-spacing: .12em; }
.project-copy h3 { font-size: clamp(2rem,3.3vw,3.5rem); margin-bottom: 18px; }
.project-copy > p:not(.eyebrow) { font-size: 1.03rem; }
.project-copy dl { margin: 26px 0; border-top: 1px solid var(--line); }
.project-copy dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-copy dt { color: var(--muted-2); }
.project-copy dd { margin: 0; font-weight: 800; }

.micromouse-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 40px; }
.micromouse-intro h2 { margin-bottom: 0; }
.micromouse-intro > p { margin: 0; font-size: 1.05rem; }
.photo-rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 33%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px; }
.rail-track::-webkit-scrollbar { display: none; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: zoom-in; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 440px; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(2,7,12,.8); color: var(--text); font-size: .72rem; }
.rail-control { position: absolute; z-index: 4; top: 50%; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(3,10,16,.9); color: var(--accent); font-size: 2rem; cursor: pointer; }
.rail-control.prev { left: -20px; }
.rail-control.next { right: -20px; }
.home-timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 210px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-row time { color: var(--accent); font-weight: 850; }
.timeline-row h3 { margin-bottom: 8px; }
.timeline-row p { margin: 0; }
.cta-section { overflow: hidden; padding: 100px 0; text-align: center; background: linear-gradient(135deg, #071725, #0c2134); border-top: 1px solid var(--line-strong); }
.cta-inner { max-width: 920px; }
.cta-inner h2 { margin-bottom: 20px; }
.cta-inner > p:not(.eyebrow) { max-width: 680px; margin: 0 auto; }

.page-hero { min-height: 450px; display: grid; align-items: center; overflow: hidden; padding: 86px 0 92px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #04101a, #071a29 58%, #071323); }
.page-hero-inner { max-width: 1040px; margin-left: max(22px, calc((100vw - var(--container)) / 2)); }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 52px; color: var(--muted-2); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero h1 { margin: 0 0 20px; font-size: clamp(3.8rem,8vw,7.5rem); }
.page-intro { max-width: 800px; margin: 0; font-size: clamp(1.05rem,1.6vw,1.25rem); }

.about-story { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: 28px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.photo-badge { position: absolute; right: -25px; bottom: 35px; padding: 16px 19px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(5,13,21,.94); box-shadow: var(--shadow); }
.photo-badge strong, .photo-badge span { display: block; }
.photo-badge strong { color: var(--accent); }
.photo-badge span { color: var(--muted); font-size: .73rem; }
.about-copy h2 { font-size: clamp(2.5rem,4.5vw,4.5rem); }
.about-copy > p { font-size: 1.04rem; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.value-card { min-height: 300px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.value-card span { color: var(--accent); font-weight: 900; }
.value-card h3 { margin: 80px 0 14px; font-size: 1.45rem; }
.skills-groups { border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 62px 1fr auto; gap: 22px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.skill-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--accent); font-size: .75rem; font-weight: 900; }
.skill-group h3 { margin-bottom: 5px; font-size: 1.35rem; }
.skill-group p { margin: 0; }
.skill-level { padding: 8px 12px; border-radius: 999px; background: rgba(23,200,255,.08); color: var(--accent); font-size: .72rem; font-weight: 850; }
.compact-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.compact-cta h2 { margin: 0; max-width: 850px; font-size: clamp(2rem,4vw,3.8rem); }

.journey { position: relative; margin-left: 20px; }
.journey::before { content: ""; position: absolute; left: 205px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--accent), var(--accent-3)); opacity: .55; }
.journey-item { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 70px; padding: 0 0 60px; }
.journey-item::before { content: ""; position: absolute; left: 200px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 24px var(--accent); }
.journey-meta { text-align: right; }
.journey-meta time, .journey-meta span { display: block; }
.journey-meta time { color: var(--text); font-weight: 850; }
.journey-meta span { margin-top: 7px; color: var(--accent); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.journey-content h3 { margin-bottom: 7px; }
.journey-content h4 { margin: 0 0 13px; color: var(--accent); font-size: .87rem; }
.journey-content p { margin: 0; max-width: 760px; }
.credential-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.credential { min-height: 220px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.credential > span { display: inline-grid; place-items: center; min-width: 54px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(23,200,255,.09); color: var(--accent); font-size: .68rem; font-weight: 900; }
.credential h3 { margin: 52px 0 9px; font-size: 1.4rem; }
.credential p { margin: 0; font-size: .88rem; }
.award-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.award-list { border-top: 1px solid var(--line); }
.award-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.award-list article > span { color: var(--accent); font-size: .75rem; font-weight: 900; }
.award-list h3 { margin: 0 0 7px; font-size: 1.45rem; }
.award-list p { margin: 0; }
.award-list a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 800; font-size: .83rem; }

.portfolio-section { padding-top: 70px; }
.portfolio-toolbar { position: sticky; top: calc(var(--header-height) + 12px); z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(4,12,19,.90); backdrop-filter: blur(16px); width: fit-content; max-width: 100%; }
.filter-button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; font-size: .78rem; }
.filter-button span { margin-left: 6px; color: var(--muted-2); }
.filter-button:hover, .filter-button.active { background: rgba(23,200,255,.1); color: var(--accent); }
.portfolio-list { display: grid; gap: 30px; }
.portfolio-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 18px 65px rgba(0,0,0,.20); }
.portfolio-card[hidden] { display: none; }
.portfolio-card:nth-child(even) .portfolio-media { order: 2; }
.portfolio-card .portfolio-media { border: 0; border-radius: 0; box-shadow: none; min-height: 100%; }
.portfolio-card .portfolio-media > img { height: 100%; aspect-ratio: auto; }
.portfolio-card .split-media img { min-height: 100%; }
.portfolio-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,55px); }
.project-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--muted-2); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.file-type { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--accent); background: rgba(23,200,255,.05); }
.featured-label { margin-left: auto; color: var(--success); }
.portfolio-body h2 { font-size: clamp(2rem,3vw,3.25rem); margin-bottom: 17px; }
.portfolio-body > p { margin-top: 0; }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage img { height: 100%; min-height: 0; aspect-ratio: auto; }
.collage img:first-child { grid-row: 1 / 3; }
.four-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.four-collage img { height: 100%; min-height: 0; aspect-ratio: auto; }
.teaching-gallery { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 2px; background: var(--line); }
.teaching-gallery button { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--surface); cursor: zoom-in; }
.teaching-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.teaching-gallery button:hover img, .teaching-gallery button:focus-visible img { transform: scale(1.045); opacity: .86; }
.teaching-gallery button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--accent); outline-offset: -3px; }
.cbtc-collage { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(4,1fr); gap: 2px; background: var(--line); }
.cbtc-collage button { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--surface); cursor: zoom-in; }
.cbtc-collage button:first-child { grid-row: 1 / 3; }
.cbtc-collage button:nth-child(2) { grid-row: 3 / 5; }
.cbtc-collage button:nth-child(3) { grid-row: 1 / 2; }
.cbtc-collage button:nth-child(4) { grid-row: 2 / 4; }
.cbtc-collage button:nth-child(5) { grid-row: 4 / 5; }
.cbtc-collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.cbtc-collage button:hover img, .cbtc-collage button:focus-visible img { transform: scale(1.035); opacity: .88; }
.cbtc-collage button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--accent); outline-offset: -3px; }
.document-art { display: grid; place-items: center; padding: 54px; background: radial-gradient(circle at 20% 15%, rgba(23,200,255,.15), transparent 35%), #07131f; }
.document-cover { width: min(390px,90%); aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: space-between; padding: 35px; border: 1px solid var(--line-strong); background: linear-gradient(145deg, #0c2740, #06101a); box-shadow: 26px 30px 0 rgba(23,200,255,.08), var(--shadow); }
.document-cover span, .document-cover small { color: var(--accent); letter-spacing: .13em; font-size: .72rem; }
.document-cover strong { font-size: clamp(2.5rem,5vw,4.8rem); line-height: .9; }
.code-art { display: grid; place-items: center; padding: 42px; background: #02070c; }
.code-art pre { width: 100%; margin: 0; padding: 28px; overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: #07131d; color: #8ce8ff; box-shadow: inset 0 0 40px rgba(23,200,255,.035); }
.no-results { text-align: center; padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-details h2, .form-panel h2 { font-size: clamp(2.4rem,4vw,4.2rem); }
.contact-cards { display: grid; gap: 12px; margin-top: 34px; }
.contact-card { display: grid; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--line-strong); transform: translateX(4px); }
.contact-card span { color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.contact-card strong { margin-top: 6px; font-size: 1.08rem; }
.contact-card small { margin-top: 5px; color: var(--muted-2); }
.social-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.social-strip a { color: var(--accent); font-size: .83rem; font-weight: 850; }
.form-panel { padding: clamp(28px,5vw,54px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13,29,43,.96), rgba(7,20,31,.96)); box-shadow: var(--shadow); }
.form-panel > p { margin-top: 0; }
form { display: grid; gap: 18px; margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: #c9d6df; font-size: .82rem; font-weight: 760; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: rgba(2,9,15,.72); color: var(--text); padding: 14px 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23,200,255,.08); }
.form-submit { width: fit-content; border: 0; }
.form-note { color: var(--muted-2); line-height: 1.4; }
.honeypot { position: absolute; left: -9999px; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.process-grid article { min-height: 240px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.process-grid span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #001018; background: var(--accent); font-weight: 950; }
.process-grid h3 { margin: 64px 0 12px; }

.resume-controls { position: sticky; top: var(--header-height); z-index: 30; padding: 12px 0; border-bottom: 1px solid var(--line); background: rgba(4,11,18,.91); backdrop-filter: blur(14px); }
.resume-controls .container { display: flex; justify-content: flex-end; gap: 10px; }
.resume-section { background: #06101a; }
.resume-sheet { max-width: 1160px; margin: auto; padding: clamp(30px,5vw,65px); border: 1px solid var(--line); border-radius: var(--radius); background: #0a1723; box-shadow: var(--shadow); }
.resume-header { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding-bottom: 30px; border-bottom: 2px solid var(--accent); }
.resume-header h1 { margin: 0; font-size: clamp(2.8rem,5vw,5rem); }
.resume-header address { display: grid; gap: 5px; text-align: right; color: var(--muted); font-style: normal; font-size: .86rem; }
.resume-block { margin-top: 38px; }
.resume-block > h2 { margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: .86rem; letter-spacing: .15em; text-transform: uppercase; }
.resume-block h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.resume-block p, .resume-block li { font-size: .89rem; }
.resume-columns { display: grid; grid-template-columns: .34fr .66fr; gap: 46px; }
.resume-block ul { padding-left: 20px; color: var(--muted); }
.resume-block li { margin-bottom: 7px; }
.plain-list { list-style: none; padding: 0 !important; }
.plain-list li { display: grid; margin-bottom: 14px; }
.plain-list span { color: var(--muted-2); font-size: .78rem; }
.resume-tags span { border-color: rgba(23,200,255,.18); }
.resume-job { margin-top: 28px; }
.resume-job + .resume-job { padding-top: 26px; border-top: 1px solid var(--line); }
.job-heading { display: flex; justify-content: space-between; gap: 20px; }
.job-heading h3 { margin-bottom: 5px; }
.job-heading p { margin: 0; color: var(--accent); font-size: .81rem; }
.job-heading time { flex: none; color: var(--muted-2); font-size: .78rem; }
.independent-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.independent-projects > h2 { grid-column: 1 / -1; }
.resume-project { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.resume-project > div { display: flex; justify-content: space-between; gap: 16px; }
.resume-project time { color: var(--muted-2); font-size: .72rem; white-space: nowrap; }
.site-footer { padding: 72px 0 25px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { width: min(var(--container), calc(100% - 44px)); margin: auto; display: grid; grid-template-columns: 1.7fr .7fr 1fr .7fr; gap: 48px; }
.footer-brand { display: flex; gap: 15px; }
.footer-brand p { max-width: 390px; margin: 7px 0 0; font-size: .84rem; }
.site-footer h2 { margin: 0 0 15px; color: var(--muted-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }
.footer-nav, .footer-contact, .footer-social { display: grid; align-content: start; gap: 8px; }
.footer-nav a, .footer-contact a, .footer-contact span, .footer-social a { color: var(--muted); font-size: .84rem; }
.footer-nav a:hover, .footer-contact a:hover, .footer-social a:hover { color: var(--accent); }
.footer-social a { display: flex; justify-content: space-between; gap: 14px; }
.footer-bottom { width: min(var(--container), calc(100% - 44px)); margin: 55px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: .73rem; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-columns: 70px 1fr 70px; place-items: center; padding: 40px 18px; background: rgba(0,4,8,.95); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px,82vw); max-height: 88vh; margin: 0; display: grid; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; margin: auto; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--muted); text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next { border: 1px solid var(--line); background: rgba(7,20,31,.9); color: var(--text); cursor: pointer; }
.lightbox-close { position: absolute; right: 22px; top: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; }
.lightbox-prev, .lightbox-next { width: 50px; height: 50px; border-radius: 50%; font-size: 2rem; }

.thank-you { min-height: 75vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.thank-you .container { max-width: 820px; }
.thank-you h1 { margin: 8px 0 20px; }
.success-mark { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 28px; border-radius: 50%; background: rgba(54,226,160,.12); border: 1px solid rgba(54,226,160,.35); color: var(--success); font-size: 2rem; }
.error-code { color: var(--accent); font-size: 6rem; font-weight: 950; line-height: 1; opacity: .3; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .brand-copy { display: none; }
  .primary-nav a { padding-inline: 9px; }
  .hero-grid, .vision-grid, .about-story, .contact-grid { gap: 48px; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .credential-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-social { grid-column: 2 / 4; }
  .portfolio-card { grid-template-columns: .9fr 1.1fr; }
  .resume-columns { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header-height: 70px; }
  .nav-shell { width: min(100% - 28px, 1360px); }
  .menu-button { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .primary-nav { position: fixed; inset: var(--header-height) 14px auto; display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(4,12,19,.98); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s; }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { padding: 13px; }
  .menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.open span:nth-child(2) { opacity: 0; }
  .menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 56px; }
  .hero-grid, .vision-grid, .about-story, .contact-grid, .micromouse-intro, .award-layout { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { max-width: 650px; padding: 12px; }
  .orbit-card-a { left: -4px; }
  .orbit-card-b { right: -4px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(3) { border-left: 1px solid var(--line); }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row-heading, .compact-cta { align-items: start; flex-direction: column; }
  .featured-project, .featured-project.reverse, .portfolio-card { grid-template-columns: 1fr; }
  .featured-project.reverse .project-media, .portfolio-card:nth-child(even) .portfolio-media { order: 0; }
  .rail-track { grid-auto-columns: minmax(280px,72%); }
  .gallery-item img { height: 390px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .journey { margin-left: 0; }
  .journey::before { left: 7px; }
  .journey-item { grid-template-columns: 1fr; gap: 13px; padding-left: 40px; }
  .journey-item::before { left: 2px; }
  .journey-meta { text-align: left; }
  .credential-grid, .process-grid { grid-template-columns: 1fr; }
  .portfolio-toolbar { width: 100%; top: calc(var(--header-height) + 7px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { grid-column: auto; }
  .resume-header { align-items: start; flex-direction: column; }
  .resume-header address { text-align: left; }
  .independent-projects { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  h1 { font-size: 3.55rem; }
  .hero h1 { font-size: clamp(3.5rem,17vw,5rem); }
  .page-hero h1 { font-size: 3.7rem; }
  .section { padding: 78px 0; }
  .stats-band .container { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card, .stat-card:first-child, .stat-card:nth-child(3) { border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .page-stats { width: calc(100% - 28px); }
  .expertise-grid { grid-template-columns: 1fr; }
  .split-media { grid-template-columns: 1fr; }
  .split-media img { min-height: 260px; }
  .values-grid { grid-template-columns: 1fr; }
  .skill-group { grid-template-columns: 50px 1fr; }
  .skill-level { grid-column: 2; width: fit-content; }
  .credential-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 0; }
  .collage, .four-collage, .teaching-gallery, .cbtc-collage { min-height: 420px; }
  .portfolio-body { padding: 28px; }
  .project-topline { flex-wrap: wrap; }
  .featured-label { margin-left: 0; }
  .resume-section { padding-inline: 0; }
  .resume-sheet { border-left: 0; border-right: 0; border-radius: 0; padding: 28px 20px; }
  .job-heading, .resume-project > div { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-social { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .lightbox { grid-template-columns: 42px 1fr 42px; padding-inline: 4px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

@media print {
  @page { size: letter; margin: .35in; }
  body { background: white !important; color: #111 !important; font-family: Arial, sans-serif; }
  body::before, .site-header, .site-footer, .page-hero, .resume-controls, .lightbox { display: none !important; }
  .resume-section { padding: 0; background: white; }
  .resume-sheet { max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: white; color: #111; }
  .resume-sheet p, .resume-sheet li, .resume-header address, .plain-list span { color: #333 !important; }
  .resume-block > h2, .eyebrow, .job-heading p { color: #006f96 !important; }
  .resume-header { border-color: #006f96; }
  .resume-columns { grid-template-columns: .34fr .66fr; gap: .25in; }
  .resume-block { margin-top: .18in; }
  .resume-job { break-inside: avoid; margin-top: .14in; }
  .resume-block p, .resume-block li { font-size: 8.5pt; line-height: 1.35; }
  .resume-block h3 { font-size: 10.5pt; }
  .resume-header h1 { font-size: 26pt; }
  .independent-projects { display: block; }
  .resume-project { break-inside: avoid; margin-bottom: .12in; border-color: #bbb; background: white; }
  .tag-list span { color: #333; border-color: #bbb; }
}
