:root {
  --bg: #070c0b;
  --bg-soft: #0b1210;
  --surface: #111a17;
  --surface-2: #16211d;
  --surface-3: #1b2923;
  --text: #f4faf7;
  --muted: #a9b9b1;
  --muted-2: #82938a;
  --accent: #79efbf;
  --accent-soft: rgba(121, 239, 191, 0.09);
  --accent-strong: #a2f6d2;
  --line: rgba(215, 239, 226, 0.15);
  --line-bright: rgba(121, 239, 191, 0.36);
  --warning: #f2c078;
  --max: 1200px;
  --radius: 22px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 14px; color: var(--bg); background: var(--accent); border-radius: 8px; font-weight: 700; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.42; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000 0, transparent 68%); }
.site-grid::before { content: ""; position: absolute; width: 860px; height: 860px; top: -520px; left: 50%; transform: translateX(-20%); border-radius: 50%; background: rgba(80, 210, 159, .12); filter: blur(130px); }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 150; width: 100%; height: 2px; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--accent); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: rgba(8,13,12,.78); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(8,13,12,.92); border-color: var(--line); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--bg); background: var(--accent); border-radius: 9px; font: 700 12px var(--mono); letter-spacing: -.05em; }
.brand-word { font-size: 14px; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav a { position: relative; padding: 10px 12px; color: #b5c4bc; border-radius: 9px; text-decoration: none; font: 650 13px var(--mono); letter-spacing: .02em; transition: color .2s ease, background .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); background: rgba(255,255,255,.04); }
.primary-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--accent); }
.primary-nav .nav-contact { margin-left: 8px; padding-inline: 16px; color: var(--bg); background: var(--accent); }
.primary-nav .nav-contact:hover, .primary-nav .nav-contact.active { color: var(--bg); background: var(--accent-strong); }
.primary-nav .nav-contact.active::after { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 17px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; min-height: 100svh; padding: 150px 0 32px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.availability { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 28px; padding: 7px 10px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid rgba(121,239,191,.18); border-radius: 99px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.availability > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(121,239,191,.08); animation: pulse 2.4s ease-out infinite; }
.hero-kicker, .section-index { margin: 0; color: var(--accent); font: 600 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 790px; margin: 13px 0 24px; font-size: clamp(48px, 6.35vw, 88px); line-height: .98; letter-spacing: -.065em; font-weight: 680; }
h1 em { display: block; color: var(--muted-2); font-style: normal; }
.hero-summary { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.62; }
.hero-specialties { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 25px; color: var(--text); font: 600 12px var(--mono); }
.hero-specialties span { position: relative; padding-left: 15px; }
.hero-specialties span::before { content: "/"; position: absolute; left: 0; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 19px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font: 700 13px var(--mono); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--line-bright); background: var(--surface-2); }
.button-primary { color: #07110d; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-strong); }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px; color: #c1d0c8; text-decoration: none; font: 700 13px var(--mono); }
.text-link:hover { color: var(--accent); }
.text-link span, .project-link span { transition: transform .2s ease; }
.text-link:hover span, .project-link:hover span { transform: translate(2px, -2px); }

.hero-visual { min-height: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.portrait-card { position: relative; width: min(78%, 315px); aspect-ratio: .88; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transform: rotate(2.5deg); box-shadow: 0 38px 90px rgba(0,0,0,.25); }
.portrait-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8,13,12,.92), transparent 48%); }
.portrait-card img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(1) contrast(1.02) brightness(.88); }
.portrait-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.portrait-label span { font-size: 14px; font-weight: 700; }
.portrait-label small { color: var(--muted); font: 9px var(--mono); text-align: right; }
.system-card { position: relative; z-index: 2; align-self: flex-start; width: min(92%, 390px); margin-top: 18px; padding: 16px; background: rgba(12,18,16,.96); border: 1px solid var(--line-bright); border-radius: 16px; box-shadow: 0 28px 70px rgba(0,0,0,.42); transform: rotate(-.4deg); }
.system-card-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 13px; color: var(--muted-2); border-bottom: 1px solid var(--line); font: 9px var(--mono); letter-spacing: .06em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.status-pill { justify-self: end; color: var(--accent); }
.system-lines { padding: 13px 0 6px; }
.system-lines div { display: grid; grid-template-columns: 23px 62px 1fr auto; align-items: center; gap: 8px; min-height: 34px; font: 10px var(--mono); }
.system-lines span, .system-lines small { color: var(--muted-2); }
.system-lines b { color: var(--text); font-weight: 500; }
.system-lines i { height: 1px; background: linear-gradient(to right, var(--accent), rgba(121,239,191,.08)); position: relative; }
.system-lines i::after { content: ""; position: absolute; top: -2px; right: 20%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: flow 2.6s linear infinite; }
.system-card > p { margin: 8px 0 0; padding: 12px 10px; color: var(--muted); background: #070b0a; border-radius: 8px; font: 10px var(--mono); }
.prompt { margin-right: 7px; color: var(--accent); }
.cursor { display: inline-block; width: 6px; height: 12px; margin-left: 5px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.hero-foot { display: flex; align-items: center; gap: 22px; margin-top: clamp(40px, 7vh, 78px); color: var(--muted-2); font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-foot div { flex: 1; height: 1px; background: var(--line); }

section:not(.hero) { padding: clamp(82px, 10vw, 132px) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; margin-bottom: 58px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2, .experience-intro h2, .contact-copy h2 { max-width: 780px; margin: 0; font-size: clamp(37px, 5vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
.section-heading p:not(.section-index), .experience-intro > p:not(.section-index) { max-width: 650px; margin: 16px 0 0; color: var(--muted); }

.impact-section { background: linear-gradient(180deg, rgba(121,239,191,.025), transparent); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { position: relative; min-height: 225px; padding: 25px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.metric-card:hover { transform: translateY(-4px); border-color: var(--line-bright); background: var(--surface-2); }
.metric-value { min-height: 49px; display: flex; align-items: baseline; gap: 6px; margin-bottom: 42px; font-size: clamp(35px, 3.5vw, 47px); line-height: 1; letter-spacing: -.055em; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric-value small { display: inline; padding: 0; color: var(--accent); background: none; border: 0; border-radius: 0; font: 700 18px/1 var(--sans); letter-spacing: -.01em; text-transform: uppercase; }
.metric-value .metric-symbol { font-size: 20px; letter-spacing: 0; }
.metric-card strong { display: block; font-size: 14px; }
.metric-card p { max-width: 200px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.metric-arrow { position: absolute; right: 18px; bottom: 17px; color: var(--muted-2); transition: color .2s, transform .2s; }
.metric-card:hover .metric-arrow { color: var(--accent); transform: translate(2px, 2px); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); }
.about-grid .section-heading { display: block; margin: 0; }
.about-grid .section-heading h2 { margin-top: 20px; }
.about-copy > p { color: var(--muted); font-size: 16px; }
.about-copy .lead { margin-top: 0; color: var(--text); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.48; letter-spacing: -.02em; }
.principles { margin-top: 42px; border-top: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles span { color: var(--accent); font: 10px var(--mono); }
.principles strong { font-size: 13px; }
.principles small { color: var(--muted); font: 10px var(--mono); text-align: right; }

.projects-section { background: var(--bg-soft); }
.project-feature { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(38px, 6vw, 74px); align-items: center; padding: clamp(38px, 5vw, 62px); margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project-feature + .project-feature { margin-top: 28px; }
.project-flagship { border-color: var(--line-bright); box-shadow: inset 0 1px 0 rgba(121,239,191,.08); }
.project-reverse .project-visual { order: 2; }
.project-reverse .project-copy { order: 1; }
.project-visual { min-height: 440px; overflow: hidden; background: #090e0c; border: 1px solid var(--line); border-radius: 16px; }
.visual-top { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted-2); border-bottom: 1px solid var(--line); font: 9px var(--mono); letter-spacing: .1em; }
.live-dot { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.live-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(121,239,191,.08); }
.live-dot.warning { color: var(--warning); }

.gateway-map { position: relative; height: 330px; background-image: radial-gradient(circle at center, rgba(121,239,191,.08), transparent 55%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.gateway-client, .gateway-router, .provider, .cache-node, .db-node { position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 9px 12px; color: var(--text); background: #111a16; border: 1px solid var(--line); border-radius: 8px; font: 700 10px var(--mono); }
.gateway-client span, .provider span, .cache-node span, .db-node span, .gateway-router small { margin-top: 3px; color: var(--muted-2); font: 8px var(--mono); }
.gateway-client { top: 135px; left: 6%; }
.gateway-router { top: 130px; left: 41%; min-height: 58px; border-color: var(--accent); box-shadow: 0 0 30px rgba(121,239,191,.1); }
.provider-a { top: 75px; right: 5%; }
.provider-b { top: 190px; right: 5%; }
.cache-node { top: 36px; left: 39%; color: var(--accent); }
.db-node { bottom: 27px; left: 39%; }
.flow-line { position: absolute; z-index: 1; height: 1px; background: rgba(121,239,191,.32); }
.flow-line i { position: absolute; width: 6px; height: 6px; top: -3px; left: 0; border-radius: 50%; background: var(--accent); animation: packet 2.4s linear infinite; }
.line-a { top: 159px; left: 24%; width: 17%; }
.line-b { top: 159px; left: 58%; width: 21%; }
.trace-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; height: 60px; padding: 0 17px; color: var(--muted); border-top: 1px solid var(--line); font: 9px var(--mono); }
.trace-row strong, .trace-row small { color: var(--accent); }
.trace-row i { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--accent); font: 600 9px var(--mono); letter-spacing: .1em; }
.project-meta span:last-child { color: var(--muted-2); text-align: right; }
.project-copy h3 { margin: 22px 0 2px; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.project-subtitle { margin: 8px 0 22px; color: var(--text); font-size: 14px; font-weight: 650; }
.project-description { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.engineering-list { display: grid; gap: 11px; padding: 0; margin: 0 0 23px; list-style: none; }
.engineering-list li { position: relative; padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.engineering-list li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }
.project-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; border-block: 1px solid var(--line); }
.project-metrics span { padding-right: 10px; color: var(--muted-2); font: 9px var(--mono); line-height: 1.35; }
.project-metrics span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.project-metrics strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 11px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tech-row span, .focus-row span { padding: 5px 8px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 5px; font: 9px var(--mono); }
.project-link { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--text); text-decoration: none; font: 750 13px var(--mono); }
.project-link:hover { color: var(--accent); }

.vision-visual { position: relative; }
.camera-frame { position: relative; height: 280px; margin: 20px; overflow: hidden; background: radial-gradient(circle at 55% 43%, rgba(121,239,191,.07), transparent 18%), linear-gradient(145deg, #131c19, #080d0b); border: 1px solid var(--line); border-radius: 10px; }
.camera-frame::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.018) 5px); }
.face-box { position: absolute; left: 36%; top: 18%; width: 30%; height: 60%; border: 1px solid var(--accent); }
.face-box span { position: absolute; top: -17px; left: -1px; padding: 2px 5px; color: var(--bg); background: var(--accent); font: 7px var(--mono); }
.face-box i { position: absolute; width: 14px; height: 14px; border-color: var(--accent); }
.face-box i:nth-child(2) { top: -5px; left: -5px; border-top: 2px solid; border-left: 2px solid; }
.face-box i:nth-child(3) { top: -5px; right: -5px; border-top: 2px solid; border-right: 2px solid; }
.face-box i:nth-child(4) { bottom: -5px; left: -5px; border-bottom: 2px solid; border-left: 2px solid; }
.face-box i:nth-child(5) { right: -5px; bottom: -5px; border-right: 2px solid; border-bottom: 2px solid; }
.scan-line { position: absolute; z-index: 2; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 4s linear infinite; }
.frame-corner { position: absolute; width: 20px; height: 20px; border-color: var(--muted-2); }
.c1 { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }.c2 { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }.c3 { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }.c4 { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.alert-stack { display: grid; gap: 5px; padding: 0 20px 18px; }
.alert-stack span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; padding: 7px 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font: 8px var(--mono); }
.alert-stack i { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }.alert-stack b { color: var(--text); font-weight: 500; }

.planner-map { position: relative; height: 320px; margin: 0; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 24px 24px; }
.obstacle { position: absolute; background: repeating-linear-gradient(45deg, #1c2823 0 4px, #151f1b 4px 8px); border: 1px solid rgba(255,255,255,.06); }
.obstacle-a { left: 24%; top: 0; width: 14%; height: 62%; }.obstacle-b { left: 55%; bottom: 0; width: 15%; height: 58%; }.obstacle-c { right: 8%; top: 13%; width: 13%; height: 35%; }
.planner-map .node { position: absolute; z-index: 2; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 3px rgba(255,255,255,.03); }
.n1{left:18%;top:67%}.n2{left:46%;top:67%}.n3{left:50%;top:35%}.n4{left:75%;top:35%}.n5{left:75%;top:53%}.n6{left:95%;top:53%}.n7{left:45%;top:22%}.n8{left:87%;top:72%}
.planner-map .path { position: absolute; z-index: 1; height: 2px; transform-origin: left center; background: var(--accent); box-shadow: 0 0 10px rgba(121,239,191,.25); }
.p1{left:9%;top:84%;width:19.2%;transform:rotate(-62deg)}.p2{left:18%;top:67%;width:28%;transform:rotate(0)}.p3{left:46%;top:67%;width:32.3%;transform:rotate(-82.9deg)}.p4{left:50%;top:35%;width:25%;transform:rotate(0)}.p5{left:75%;top:35%;width:18%;transform:rotate(90deg)}.p6{left:75%;top:53%;width:20%;transform:rotate(0)}.p7{left:95%;top:53%;width:35%;transform:rotate(-90deg)}
.planner-map b { position: absolute; z-index: 3; display: grid; place-items: center; width: 20px; height: 20px; color: var(--bg); background: var(--accent); border-radius: 50%; font: 700 8px var(--mono); }.start{left:7%;bottom:12%}.goal{right:5%;top:18%}
.planner-stats { display: grid; grid-template-columns: repeat(3, 1fr); height: 72px; border-top: 1px solid var(--line); }
.planner-stats span { display: grid; place-content: center; gap: 2px; color: var(--muted-2); text-align: center; font: 8px var(--mono); }.planner-stats span + span { border-left: 1px solid var(--line); }.planner-stats b { color: var(--accent); font-size: 11px; }

.experience-section { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.experience-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(52px, 9vw, 120px); align-items: start; }
.experience-intro { position: sticky; top: 120px; }
.experience-intro h2 { margin-top: 18px; }
.experience-intro > .text-link { margin-top: 18px; padding-left: 0; }
.experience-list { position: relative; }
.experience-list::before { content: ""; position: absolute; left: 20px; top: 21px; bottom: 21px; width: 1px; background: linear-gradient(var(--accent), var(--line), transparent); }
.experience-card { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 24px; padding-bottom: 42px; }
.experience-card:last-child { padding-bottom: 0; }
.experience-marker { position: relative; z-index: 1; padding-top: 2px; }
.experience-marker span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); background: var(--bg); border: 1px solid var(--line-bright); border-radius: 50%; font: 9px var(--mono); }
.experience-content { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, transform .2s ease; }
.experience-card:hover .experience-content { transform: translateX(3px); border-color: var(--line-bright); }
.role-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.role-top p { margin: 0 0 5px; color: var(--accent); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.role-top h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.role-top time { flex-shrink: 0; color: var(--muted-2); font: 9px var(--mono); }
.experience-content > p { margin: 18px 0; color: var(--muted); font-size: 13px; }
.role-impact { display: flex; flex-wrap: wrap; gap: 8px; }
.role-impact span { min-width: 122px; flex: 1; padding: 10px; color: var(--muted-2); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 7px; font: 8px var(--mono); }
.role-impact strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 11px; }
.disclaimer { display: block; margin-top: 10px; color: var(--muted-2); font: 8px var(--mono); }
.experience-minor { opacity: .86; }

.signal-section { background: var(--bg-soft); }
.signal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: stretch; }
.cp-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 62px); color: var(--bg); background: var(--accent); border-radius: var(--radius); }
.signal-section .section-index { color: #183b2d; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cp-head > span { padding: 5px 8px; color: #103124; border: 1px solid rgba(8,13,12,.25); border-radius: 5px; font: 700 9px var(--mono); }
.rating-block { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 16px; margin: 38px 0 30px; color: var(--bg); }
.rating-block strong { font-size: clamp(72px, 7.5vw, 102px); line-height: .78; letter-spacing: -.075em; }
.rating-block span { padding-bottom: 4px; font: 700 10px var(--mono); text-transform: uppercase; }
.rating-block em { padding: 7px 10px; color: var(--accent); background: var(--bg); border-radius: 5px; font: 700 10px var(--mono); font-style: normal; }
.cp-card h2 { margin: 0; color: var(--bg); font-size: clamp(36px, 4.3vw, 56px); line-height: 1.04; letter-spacing: -.052em; }
.cp-card > p { max-width: 640px; margin: 22px 0 0; color: rgba(8,13,12,.7); font-size: 14px; line-height: 1.65; }
.cp-card .project-link { margin-top: 15px; color: var(--bg); }
.cp-card .project-link:hover { opacity: .68; }
.rank-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.16); }
.rank-axis { display: flex; justify-content: space-between; margin-bottom: 33px; color: var(--muted-2); font: 8px var(--mono); }
.rank-row { display: grid; grid-template-columns: 70px 1fr 65px; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--line); font: 9px var(--mono); }
.rank-row > span { color: var(--text); }
.rank-row i { position: relative; height: 4px; background: var(--surface-3); border-radius: 99px; }
.rank-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar); background: var(--accent); border-radius: inherit; }
.rank-row small { color: var(--muted-2); text-align: right; }
.rank-footer { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 27px; }
.rank-footer span { padding: 5px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font: 8px var(--mono); }

.skills-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 14px; }
.skill-card { min-height: 330px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.skill-primary { background: linear-gradient(150deg, rgba(121,239,191,.1), var(--surface) 55%); border-color: var(--line-bright); }
.skill-head { display: flex; justify-content: space-between; color: var(--accent); font: 600 9px var(--mono); letter-spacing: .08em; }
.skill-head b { color: var(--muted-2); }
.skill-card h3 { max-width: 270px; margin: 55px 0 25px; font-size: 24px; line-height: 1.18; letter-spacing: -.03em; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-end; }
.skill-cloud span, .skill-cloud strong { padding: 6px 8px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 5px; font: 500 9px var(--mono); }
.skill-cloud strong { color: var(--text); border-color: rgba(121,239,191,.18); }

.achievements-section { background: var(--bg-soft); }
.achievements-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 110px); }
.achievements-grid .section-heading { display: block; margin: 0; }
.achievements-grid .section-heading h2 { margin-top: 18px; }
.achievement-list { display: grid; gap: 12px; }
.achievement { display: grid; grid-template-columns: 76px 1fr auto; gap: 22px; align-items: center; min-height: 154px; padding: 25px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.achievement:hover { transform: translateY(-2px); border-color: var(--line-bright); background: var(--surface-2); }
.achievement-rank { color: var(--accent); font-size: 29px; line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.achievement p { margin: 0 0 7px; color: #bdccc4; font: 700 11px/1.45 var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.achievement h3 { margin: 0 0 7px; color: var(--text); font-size: 19px; line-height: 1.35; }
.achievement small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.achievement-year { color: var(--muted); font: 650 10px var(--mono); }

.focus-section { background: var(--bg); }
.focus-card { position: relative; overflow: hidden; padding: clamp(38px, 7vw, 84px); background: var(--surface); border: 1px solid var(--line-bright); border-radius: var(--radius); }
.focus-card::after { content: ""; position: absolute; right: -170px; bottom: -250px; width: 500px; height: 500px; border-radius: 50%; background: rgba(121,239,191,.08); filter: blur(50px); }
.focus-card h2 { position: relative; z-index: 1; max-width: 950px; margin: 25px 0 38px; font-size: clamp(32px, 4.5vw, 57px); line-height: 1.14; letter-spacing: -.045em; }
.focus-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; }

.contact-section { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 7vw, 86px); align-items: center; }
.contact-copy h2 { margin-top: 20px; }
.contact-copy > p:not(.section-index) { max-width: 600px; color: var(--muted); }
.contact-actions { width: min(100%, 560px); justify-self: end; }
.contact-primary { position: relative; display: flex; flex-direction: column; min-height: 120px; justify-content: center; padding: clamp(18px, 2vw, 24px); color: var(--bg); background: var(--accent); border-radius: 14px; text-decoration: none; transition: background .2s, transform .2s; }
.contact-primary:hover { background: var(--accent-strong); transform: translateY(-3px); }
.contact-primary span { margin-bottom: 6px; font: 750 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-primary strong { font-size: clamp(17px, 1.65vw, 22px); line-height: 1.2; letter-spacing: -.02em; }
.contact-primary i { position: absolute; top: 18px; right: 18px; font-style: normal; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.contact-links a { padding: 15px 10px; color: #bccbc3; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; text-align: center; text-decoration: none; font: 650 12px var(--mono); transition: color .2s, border-color .2s; }
.contact-links a:hover { color: var(--accent); border-color: var(--line-bright); }

.site-footer { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; color: var(--muted-2); font: 10px var(--mono); text-transform: uppercase; }
.footer-inner a { text-decoration: none; }.footer-inner a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(121,239,191,.28); } 70%,100% { box-shadow: 0 0 0 9px rgba(121,239,191,0); } }
@keyframes flow { from { right: 100%; } to { right: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes packet { from { left: 0; } to { left: 100%; } }
@keyframes scan { from { top: 0; } to { top: 100%; } }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; }
  .hero-visual { min-height: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 205px; }
  .project-feature { gap: 34px; padding: 34px; }
  .project-visual { min-height: 400px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-primary { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .container { width: min(var(--max), calc(100% - 36px)); }
  .menu-toggle { display: block; z-index: 2; }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 90px 28px 40px; background: rgba(8,13,12,.98); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .primary-nav.open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .primary-nav a { padding: 14px; font-size: 18px; text-align: center; }
  .primary-nav .nav-contact { margin: 16px 0 0; }
  .primary-nav a.active::after { display: none; }
  .hero { min-height: auto; padding-top: 128px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 520px); min-height: 0; margin: 0 auto; }
  .portrait-card { width: 280px; }
  .system-card { width: min(92%, 360px); }
  .hero-foot { margin-top: 50px; }
  .section-heading { grid-template-columns: 130px 1fr; }
  .about-grid, .project-feature, .experience-layout, .signal-grid, .achievements-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-reverse .project-visual, .project-reverse .project-copy { order: initial; }
  .experience-intro { position: static; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-primary { grid-column: auto; }
  .skill-card { min-height: 270px; }
  .achievements-grid .section-heading { margin-bottom: 25px; }
  .contact-actions { width: 100%; justify-self: stretch; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-shell { min-height: 68px; }
  .brand-word { display: none; }
  .hero { padding-top: 112px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .availability { white-space: normal; line-height: 1.35; }
  .hero-visual { min-height: 0; }
  .portrait-card { width: 235px; }
  .system-card { width: min(96%, 330px); margin-top: 14px; }
  .system-lines div { grid-template-columns: 21px 58px 1fr auto; }
  .hero-foot span:first-child { display: none; }
  .hero-foot { margin-top: 35px; }
  section:not(.hero) { padding: 76px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .section-heading h2, .experience-intro h2, .contact-copy h2 { font-size: clamp(36px, 11vw, 50px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 185px; }
  .metric-value { margin-bottom: 27px; }
  .principles > div { grid-template-columns: 34px 1fr; }
  .principles small { grid-column: 2; text-align: left; }
  .project-feature { padding: 18px; border-radius: 16px; }
  .project-visual { min-height: 390px; }
  .gateway-map { height: 310px; }
  .gateway-client { left: 3%; }.gateway-router { left: 37%; }.provider-a,.provider-b { right: 2%; }.cache-node,.db-node { left: 35%; }
  .project-meta { align-items: flex-start; }
  .project-copy { padding: 12px 4px 6px; }
  .project-copy h3 { font-size: 37px; }
  .project-metrics { grid-template-columns: 1fr; }
  .project-metrics span { padding: 8px 0; }
  .project-metrics span + span { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .camera-frame { height: 260px; margin: 13px; }
  .alert-stack { padding-inline: 13px; }
  .planner-map { height: 300px; }
  .experience-list::before { left: 16px; }
  .experience-card { grid-template-columns: 34px 1fr; gap: 12px; }
  .experience-marker span { width: 34px; height: 34px; }
  .experience-content { padding: 19px; }
  .role-top { flex-direction: column; gap: 8px; }
  .role-impact { display: grid; }
  .cp-card { padding: 30px 26px; }
  .rating-block { grid-template-columns: auto 1fr auto; gap: 11px; margin: 30px 0 26px; }
  .rating-block strong { font-size: clamp(62px, 20vw, 78px); }
  .rating-block span { font-size: 8px; }
  .rating-block em { justify-self: end; }
  .cp-card h2 { font-size: clamp(34px, 10vw, 44px); }
  .rank-panel { padding: 20px; }
  .rank-row { grid-template-columns: 58px 1fr; }
  .rank-row small { display: none; }
  .achievement { grid-template-columns: 56px 1fr; }
  .achievement-year { display: none; }
  .focus-card { width: calc(100% - 28px); padding: 28px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-primary { min-height: 116px; }
  .contact-primary strong { font-size: clamp(17px, 4.7vw, 20px); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-actions .text-link { justify-content: center; }
  .hero-visual { min-height: 0; }
  .portrait-card { width: 210px; }
  .system-card { width: 100%; }
  .gateway-client span, .provider span, .cache-node span, .db-node span, .gateway-router small { display: none; }
}

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

@media print {
  .site-header, .site-grid, .scroll-progress, .hero-visual, .hero-foot { display: none; }
  body { color: #111; background: #fff; }
  .hero { min-height: auto; padding-top: 40px; }
  section, .project-feature { break-inside: avoid; }
}
