:root { --blue: #70b8ff; --teal: #6fd4cb; --purple: #b7a3ec; --pink: #e0a3ce; --amber: #e8c585; --green: #9dc899; }
::selection { background: #e8c585; color: #09131e; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 40; pointer-events: none; }
.reading-progress i { display: block; height: 100%; background: linear-gradient(90deg, #70b8ff, #b7a3ec, #e8c585); transform: scaleX(0); transform-origin: left; }
nav ul a { position: relative; }
nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
nav ul a.on::after { transform: scaleX(1); }
main { position: relative; background: #09131e; }
main section { padding: clamp(80px, 9vw, 140px) max(6%, 20px); }
main .wrap { max-width: 1240px; }
main h2 { font-size: clamp(38px, 4.7vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
main h2 em { color: var(--gold); font: italic 400 1.04em/1.1 Georgia, serif; letter-spacing: -.045em; }
.section-label { display: flex; justify-content: space-between; gap: 20px; font: 9px/1.8 Consolas, monospace; letter-spacing: .14em; color: var(--gold); margin-bottom: 30px; }
main .sec-head { align-items: end; gap: 36px; margin-bottom: 54px; }
.sec-head .section-label { margin-bottom: 24px; }
main .sec-head > p { color: #a7b6c8; font-size: 14px; line-height: 1.9; max-width: 35ch; padding-bottom: 4px; }
.about { background: radial-gradient(ellipse at 80% 10%, #1b38512e, transparent 60%); }
.about > .wrap > .section-label { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 50px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.about .role { border: 0; border-radius: 0; background: transparent; padding: 0; font-size: 10px; color: #a7b6c8; margin-bottom: 23px; }
.about .role b { width: 5px; height: 5px; flex-shrink: 0; }
.about .lede { font-size: 16px; line-height: 1.95; color: #abb9cb; margin: 0 0 28px; }
.ecosystem { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #e1e7ee; }
.ecosystem small { display: block; font-size: 10px; margin-top: 5px; color: #8d9eb2; }
.ms-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 29px; height: 29px; flex-shrink: 0; }
.ms-mark i:nth-child(1) { background: #f35325; }.ms-mark i:nth-child(2) { background: #81bc06; }.ms-mark i:nth-child(3) { background: #05a6f0; }.ms-mark i:nth-child(4) { background: #ffba08; }
.about .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 68px; border-block: 1px solid var(--line); }
.about .stat { border: 0; padding: 30px 24px; position: relative; }
.about .stat:first-child { padding-left: 0; }
.about .stat + .stat { border-left: 1px solid var(--line); }
.about .stat::before { content: ""; position: absolute; top: -1px; left: 24px; width: 28px; height: 2px; background: var(--c); }
.about .stat:first-child::before { left: 0; }
.about .stat strong { font: 500 clamp(32px, 3.5vw, 50px)/1.2 var(--display); letter-spacing: -.05em; }
.about .stat span { display: block; max-width: 20ch; color: #8fa0b4; font-size: 11px; line-height: 1.6; margin-top: 8px; }
.marq { padding: 23px 0; background: #0c1926; border-color: #ffffff0c; }
.marq div { font-size: 13px; letter-spacing: -.01em; }
.marq span { margin: 0 25px; }
.marq span::before { content: "+"; color: #52657a; font: 12px Consolas, monospace; margin-right: 35px; }
.marq:hover div { animation-play-state: paused; }
#work { background: radial-gradient(ellipse at 100% 20%, #203c5422, transparent 45%); }
.project-index { display: flex; justify-content: space-between; font: 8px/1.8 Consolas, monospace; letter-spacing: .1em; color: #899bb0; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 30px; gap: 20px; }
#works { display: grid; gap: 34px; }
.work, .work:last-child { border: 1px solid #ffffff16; background: linear-gradient(115deg, #132334, #0d1a28); border-radius: 8px; overflow: hidden; }
.work::before { display: none; }
.work::after { width: 2px; }
.project-main { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 390px; }
.project-copy { padding: 38px 40px; }
.project-number { display: block; font: 14px Consolas, monospace; color: var(--gold); margin-bottom: 28px; }
.project-number > span { font-size: 8px; color: #8093a9; letter-spacing: .12em; margin-left: 8px; }
.work .kind { color: #9ab8d1; font: 9px/1.8 Consolas, monospace; margin-bottom: 12px; }
.work h3 { font: 500 clamp(25px, 2.5vw, 37px)/1.16 var(--display); letter-spacing: -.035em; max-width: 20ch; }
.work .one { font-size: 13px; line-height: 1.85; margin: 17px 0 24px; color: #97aabd; max-width: 43ch; }
.project-impact { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.project-impact strong { font: 500 34px/1 var(--display); letter-spacing: -.04em; color: var(--c); }
.project-impact > span { font-size: 10px; color: #9caec0; max-width: 19ch; line-height: 1.6; border-left: 1px solid #ffffff26; padding-left: 14px; }
.work button { box-sizing: border-box; display: inline-flex; align-items: center; width: auto; min-height: 44px; gap: 28px; padding: 0; font-size: 11px; color: #e5e9ef; }
.work button:hover { color: var(--gold); }
.work .plus { width: 30px; height: 30px; border-color: #ffffff35; flex-shrink: 0; }
.work .plus::before, .work .plus::after { width: 9px; height: 1px; }
.work.open .plus { color: #09131e; background: var(--gold); border-color: var(--gold); }
.work.open .plus::before, .work.open .plus::after { background: #09131e; }
.project-art { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 340px; border-left: 1px solid #ffffff0c; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--c) 12%, transparent), transparent 65%), #0b1825; }
.project-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse, #000, transparent 80%); }
.art-caption, .art-footnote { position: absolute; font: 8px Consolas, monospace; letter-spacing: .1em; color: #728ba1; left: 28px; }
.art-caption { top: 28px; }
.art-footnote { bottom: 26px; display: flex; align-items: center; gap: 8px; color: #a8bbce; }
.art-footnote i { width: 4px; height: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.art-orbit { position: absolute; width: 230px; height: 230px; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); border-radius: 24px; transform: translateY(var(--art-drift, 0px)) rotate(calc(45deg + var(--art-turn, 0deg))); }
.orbit-two { width: 165px; height: 165px; border-style: dashed; transform: translateY(var(--art-drift, 0px)) rotate(calc(-15deg - var(--art-turn, 0deg))); }
.art-core { display: grid; place-items: center; width: 82px; height: 82px; margin-top: -60px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); border-radius: 18px; background: linear-gradient(140deg, #263d54cc, #0f2030); box-shadow: 0 16px 70px #0006, inset 0 1px #ffffff20; transform: translateY(var(--art-drift, 0px)) rotate(-9deg); }
.art-core > span { font: 40px var(--display); color: var(--c); }
.flow-nodes { position: absolute; bottom: 86px; left: 8%; right: 8%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.flow-nodes::before { content: ""; position: absolute; height: 1px; background: color-mix(in srgb, var(--c) 40%, transparent); width: 100%; }
.flow-nodes > span { position: relative; flex: 1; background: #122335; border: 1px solid #ffffff21; border-radius: 5px; padding: 12px 8px; font-size: 9px; color: #c3d1de; text-align: center; box-shadow: 0 8px 18px #0003; }
.flow-nodes i { display: block; color: var(--c); font: normal 8px Consolas, monospace; margin-bottom: 5px; }
.work.open .flow-nodes > span { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.work .panel > div { min-height: 0; }
.work .metrics { padding: 30px 40px; border-top: 1px solid var(--line); gap: 24px 45px; }
.work .metrics strong { font-size: 31px; font-weight: 500; color: var(--gold); }
.work .metrics span { font-size: 11px; }
.work .cols { padding: 0 40px 30px; gap: 30px; }
.work .cols h4 { font: 10px Consolas, monospace; color: var(--gold); margin-bottom: 12px; }
.work .cols p { font-size: 13px; line-height: 1.9; color: #afbed0; }
.work .tags { padding: 0 40px 32px; }
.work .tags span { font-size: 10px; border-radius: 4px; padding: 5px 9px; color: #9eb4c9; }
#education { background: #0c1926; border-block: 1px solid #ffffff0d; }
.education-layout { display: grid; grid-template-columns: .85fr 1.4fr; gap: 65px; align-items: start; }
.education-layout .sec-head { position: sticky; top: 130px; display: block; margin: 0; }
.education-layout h2 { font-size: clamp(36px, 3.8vw, 54px); }
.education-layout .sec-head > p { margin-top: 26px; font-size: 13px; }
.education-seal { display: grid; width: fit-content; margin-top: 45px; padding: 20px 30px 20px 0; border-top: 1px solid var(--line); }
.education-seal > span, .education-seal > small { font: 8px Consolas, monospace; letter-spacing: .14em; color: #95a9bf; }
.education-seal strong { font: 400 72px/1.2 Georgia, serif; color: var(--gold); }
.education-seal strong span { font-size: 33px; }
.tl { gap: 24px; }
.tl::before { background: #294054; width: 1px; }
.tl i.prog { background: linear-gradient(var(--gold), #70b8ff, #b7a3ec); width: 1px; box-shadow: 0 0 15px #e8c58555; }
.timeline-heading { margin: 8px 0 0 38px; color: #95a9bf; font: 9px/1.6 Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.ed { padding-left: 38px; }
body:not(.scroll-ready) .ed .node::after { transform: scale(1); }
.ed .node { width: 12px; height: 12px; left: 6px; top: 31px; border-width: 1px; border-color: var(--gold); background: #0c1926; }
.ed .node::after { width: 4px; height: 4px; background: var(--gold); }
.ed .card, .ed.main .card { padding: 28px; grid-template-columns: 1fr auto; gap: 20px; border-radius: 6px; background: linear-gradient(120deg, #17283888, #0d1c2a); border-color: #ffffff12; }
.card::before { width: 2px; background: #e8c58560; }
.card::after { display: none; }
.card .when { font: 9px/1.8 Consolas, monospace; color: var(--gold); margin-bottom: 10px; }
.card h3, .ed.main h3 { font-size: 23px; font-weight: 500; line-height: 1.25; }
.card .where { font-size: 11px; line-height: 1.8; margin-top: 12px; }
.card .award { font-size: 10px; border-radius: 4px; padding: 8px 10px; line-height: 1.6; color: var(--gold); border-color: #e8c58522; background: #e8c58508; }
.company-mark { display: grid; width: 168px; min-height: 52px; place-items: center; padding: 8px 12px; border-radius: 4px; background: #fff; }
.company-mark img { display: block; max-width: 100%; max-height: 32px; object-fit: contain; }
.score strong { font: 400 42px/1.1 var(--display); color: var(--gold); letter-spacing: -.04em; }
.score span { font-size: 9px; white-space: nowrap; }
.certs { gap: 20px; }
.cert { padding: 30px; border-radius: 8px; border-color: #ffffff1a; background: linear-gradient(145deg, #1a2b3d, #0e1c2b 70%); }
.cert::before { height: 2px; background: linear-gradient(90deg, var(--c), transparent); }
.cert .ico { width: 52px; height: 52px; border-radius: 12px; margin: 6px 0 30px; background: color-mix(in srgb, var(--c) 10%, transparent); transform: rotate(-6deg); }
.cert .code { font: 500 38px/1 var(--display); letter-spacing: -.035em; }
.cert h4 { font-size: 17px; font-weight: 500; max-width: 22ch; margin-top: 14px; min-height: 46px; }
.cert .by { display: flex; align-items: center; gap: 8px; font-size: 10px; margin-top: 18px; }
.cert .by::before { content: ""; width: 13px; height: 13px; background: conic-gradient(#7fba00 0 25%, #ffb900 0 50%, #00a4ef 0 75%, #f25022 0); mask-image: linear-gradient(90deg, #000 45%, transparent 45% 55%, #000 55%); }
.cert .cid { font: 9px Consolas, monospace; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.cert .cid b { font-size: 11px; margin-top: 7px; color: #b7c8db; font-weight: 400; }
#contact { background: linear-gradient(#09131ef5, #09131eea), url("../599397.jpg") center 65% / cover; border-top: 1px solid var(--line); }
#contact::before { background: radial-gradient(circle, #c99e5720, transparent 65%); width: 650px; height: 650px; top: 0; right: -200px; }
#contact .wrap { position: relative; }
#contact h2 { font-size: clamp(40px, 5.3vw, 76px); }
.contact-availability { display: flex; align-items: center; gap: 8px; color: #a4baa3; font-size: 8px; }
.contact-availability i { background: #a4baa3; width: 4px; height: 4px; border-radius: 50%; }
#contact .sec-head { margin: 42px 0 28px; }
.mailbig { display: inline-block; font: 400 clamp(18px, 3.6vw, 49px)/1.4 var(--display); letter-spacing: -.035em; color: var(--gold); background: none; animation: none; border-bottom: 1px solid #e8c58555; padding-bottom: 8px; margin: 0 0 20px; }
.mailbig:hover { color: #ffe3b0; border-color: var(--gold); }
.mini { margin-bottom: 54px; }
.mini a, .mini button { font-size: 11px; border-radius: 4px; padding: 12px 14px; }
.ways { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.way { display: block; padding: 24px; border-radius: 6px; background: #11223499; border-color: #ffffff1a; min-width: 0; }
.way .ico { width: 36px; height: 36px; border-radius: 7px; margin-bottom: 23px; }
.way .ico svg { width: 20px; height: 20px; }
.way b { font-size: 17px; font-weight: 500; }
.way small { font-size: 10px; margin-top: 8px; overflow-wrap: anywhere; }
.way em { display: block; margin-top: 24px; font-size: 10px; color: #a8bbce; }
.way em::after { content: " \2197"; color: var(--gold); float: right; }
footer { display: flex; align-items: center; gap: 30px; padding: 32px 6%; background: #07111b; font-size: 11px; }
.footer-brand { font: 700 25px var(--display); color: #edf2f7; letter-spacing: -.05em; }
.footer-brand > span { color: var(--gold); }
footer small { display: block; font: 7px/1.8 Consolas, monospace; letter-spacing: .08em; color: #70869e; margin-top: 6px; }
.back-top { margin-left: auto; font-size: 10px; }
.back-top > span { margin-left: 20px; color: var(--gold); }
#site-motion { cursor: pointer; border: 1px solid var(--line); background: transparent; padding: 10px 12px; border-radius: 4px; color: #b7c8db; font-size: 10px; min-height: 40px; }
#site-motion:hover { border-color: var(--gold); color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .scroll-ready .reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .8s var(--reveal-delay, 0ms), transform .85s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
  .scroll-ready .reveal.revealed, .scroll-ready .reveal:has(:focus-visible) { opacity: 1; transform: none; }
  .scroll-ready .reveal:has(:focus-visible) { transition: none; }
  .scroll-ready .work.reveal { transform: translate3d(0, 45px, 0) scale(.98); }
  .scroll-ready .work.revealed, .scroll-ready .work:has(:focus-visible) { transform: none; }
  .scroll-ready .cert.reveal { transform: translate3d(0, 40px, 0) rotate(2deg); }
  .scroll-ready .cert.revealed { transform: none; }
  .scroll-ready .cert.revealed:hover, .scroll-ready .way.revealed:hover { transform: translateY(-6px); transition-delay: 0ms; }
  .ed.revealed .node::after { transform: scale(1); }
  .cert.revealed::after { transform: translateX(120%); transition: transform 1.3s .25s; }
  .work.revealed .flow-nodes > span { animation: node-arrive .8s cubic-bezier(.2,.7,.2,1) .25s both; }
  .work.revealed .flow-nodes > span:nth-child(2) { animation-delay: .4s; }
  .work.revealed .flow-nodes > span:nth-child(3) { animation-delay: .55s; }
}
@keyframes node-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.motion-paused .reveal { opacity: 1; transform: none; transition: none; }
body.motion-paused .art-orbit, body.motion-paused .art-core { transform: none; }
body.motion-paused .marq div, body.motion-paused .role b { animation-play-state: paused; }
body.motion-paused .flow-nodes > span { animation: none !important; }
@media (max-width: 1050px) {
  nav ul { gap: 20px; }
  .about-grid { gap: 35px; }
  .education-layout { gap: 32px; grid-template-columns: .85fr 1.2fr; }
  .ed .card, .ed.main .card { grid-template-columns: 1fr; }
  .score { text-align: left; }
  .ways { grid-template-columns: repeat(2, 1fr); }
  .project-copy { padding: 30px; }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cert { padding: 22px; }
}
@media (max-width: 700px) {
  nav ul { gap: 8px; font-size: 10px; }
  nav ul a span { font-size: 7px; margin-left: 3px; }
  .about-grid, .education-layout { grid-template-columns: 1fr; gap: 30px; }
  .about > .wrap > .section-label { margin-bottom: 30px; }
  .section-label { font-size: 8px; letter-spacing: .07em; gap: 15px; flex-wrap: wrap; }
  .about > .wrap > .section-label > span:last-child { display: none; }
  main h2 { font-size: 40px; }
  .about .role { font-size: 9px; line-height: 1.8; }
  .about .lede { font-size: 14px; }
  .about .stats { margin-top: 38px; grid-template-columns: 1fr 1fr; }
  .about .stat, .about .stat:first-child { padding: 24px 16px; }
  .about .stat:first-child::before { left: 16px; }
  .about .stat:nth-child(3) { border-left: 0; }
  .about .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about .stat::before { left: 16px; }
  .timeline-heading { margin-left: 30px; }
  .company-mark { width: 140px; min-height: 46px; }
  main .sec-head { margin-bottom: 32px; gap: 22px; }
  main .sec-head > p { font-size: 13px; }
  .project-index { font-size: 7px; }
  .project-index > span:last-child { display: none; }
  .project-main { grid-template-columns: 1fr; }
  .project-copy { padding: 28px; }
  .project-number { margin-bottom: 20px; }
  .project-art { min-height: 285px; border-left: 0; border-top: 1px solid #ffffff0d; }
  .art-orbit { width: 185px; height: 185px; }
  .orbit-two { width: 145px; height: 145px; }
  .art-core { width: 65px; height: 65px; margin-top: -35px; }
  .flow-nodes { bottom: 65px; }
  .flow-nodes > span { font-size: 8px; padding: 9px 5px; }
  .art-caption, .art-footnote { font-size: 7px; left: 22px; }
  .art-caption { top: 20px; }
  .art-footnote { bottom: 20px; }
  .work .cols { grid-template-columns: 1fr; padding: 0 28px 25px; gap: 22px; }
  .work .metrics { padding: 25px 28px; gap: 20px; }
  .work .tags { padding: 0 28px 28px; }
  .education-layout .sec-head { position: static; }
  .education-seal { display: none; }
  .education-layout h2 { font-size: 40px; }
  .ed { padding-left: 30px; }
  .ed .card, .ed.main .card { padding: 24px; }
  .card h3, .ed.main h3 { font-size: 21px; }
  .certs { grid-template-columns: 1fr; gap: 18px; }
  .cert { padding: 28px; }
  .cert h4 { min-height: 0; max-width: none; }
  .cert .ico { float: right; margin: 0; }
  #contact h2 { font-size: 42px; }
  #contact .sec-head { margin-top: 30px; }
  .mailbig { font-size: clamp(17px, 5vw, 32px); }
  .ways { gap: 12px; }
  .way { padding: 20px 16px; }
  .way small { font-size: 9px; }
  .way b { font-size: 16px; }
  footer { flex-wrap: wrap; gap: 20px; }
  footer > span { flex: 1; }
  .back-top { margin-left: 0; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 360px) {
  nav ul a span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .art-orbit, .art-core { transform: none; }
  .ed .node::after { transform: scale(1); }
}
