:root {
  color-scheme: dark;
  --ink: #080b13;
  --paper: #f1f4f8;
  --muted: #9da7b7;
  --line: rgba(255,255,255,.11);
  --lime: #c9ff59;
  --violet: #9574ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; overflow-x: hidden; }
body::before { position: fixed; inset: 0; z-index: -2; content: ""; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.ambient-glow { position: fixed; z-index: -1; width: 35rem; aspect-ratio: 1; border-radius: 50%; filter: blur(85px); opacity: .23; pointer-events: none; animation: ambient-drift 16s ease-in-out infinite alternate; }
.glow-one { top: 5%; left: -12rem; background: #3151c9; }
.glow-two { top: 45%; right: -17rem; background: #7945ce; animation-duration: 20s; animation-direction: alternate-reverse; }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(8,11,19,.78); backdrop-filter: blur(18px); }
.nav-shell { display: flex; width: min(1320px, calc(100% - 64px)); height: 78px; align-items: center; justify-content: space-between; margin: auto; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--paper); font: 700 17px "Space Grotesk",sans-serif; letter-spacing: -.05em; }
.brand img { object-fit: contain; }
.brand-accent { color: var(--lime); }
.brand small { margin-left: 2px; color: var(--muted); font: 500 12px "DM Sans",sans-serif; }
.nav-links { display: flex; gap: 38px; align-items: center; color: #b8c0ce; font-size: 13px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--lime); }
.nav-links .nav-contact { padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--paper); }
.nav-contact span { margin-left: 8px; color: var(--lime); }
.menu-toggle { display: none; }
.hero { position: relative; display: grid; min-height: min(780px, calc(100svh - 78px)); grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 40px; padding-bottom: 80px; overflow-x: clip; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 20px; }
.availability { display: inline-flex; gap: 9px; align-items: center; padding: 8px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: #c4ccda; font-size: 11px; }
.availability > span:first-child,.loader-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(201,255,89,.8); }
.eyebrow,.section-kicker { color: var(--lime); font: 600 10px "DM Sans",sans-serif; letter-spacing: .18em; }
.eyebrow { margin: 34px 0 12px; }
.hero h1,.about h2,.projects h2,.contact h2 { margin: 0; font: 600 clamp(3.2rem,7.8vw,7.4rem)/.98 "Space Grotesk",sans-serif; letter-spacing: -.075em; }
.hero-name { color: #c0c9d7; }
.hero-period,.projects-heading h2 span { color: var(--lime); }
.hero-lede { max-width: 430px; margin: 24px 0 30px; color: #aab4c3; font-size: clamp(16px,1.8vw,19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; padding: 0 19px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { background: var(--lime); color: #12160d; }
.button-primary:hover { background: #dcff9c; }
.button-quiet { border-color: var(--line); color: #dce1e9; }
.button-quiet:hover { border-color: rgba(201,255,89,.55); }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin-top: 55px; color: #727d8f; font-size: 10px; }
.footnote-line { width: 25px; height: 1px; background: var(--lime); }
.footnote-dot { color: var(--lime); }
.hero-visual { position: relative; width: min(410px, 100%); aspect-ratio: .88; justify-self: center; }
.portrait-frame { position: absolute; inset: 10% 12%; overflow: hidden; border: 1px solid rgba(255,255,255,.23); border-radius: 45% 45% 8px 8px; background: #171d29; box-shadow: 0 30px 100px rgba(46,45,104,.23); transform: rotate(2deg); }
.portrait-frame::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg,transparent 55%,rgba(8,11,19,.45)); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .6s ease; }
.hero-visual:hover .portrait-frame img { transform: scale(1.045); }
.portrait-index { position: absolute; z-index: 1; right: 15px; bottom: 14px; color: white; font: 500 10px "DM Mono",monospace; letter-spacing: .1em; }
.orbit { position: absolute; inset: 1% 0; border: 1px solid rgba(149,116,255,.2); border-radius: 50%; transform: rotate(-24deg); }
.orbit-two { inset: 9% -1%; border-color: rgba(201,255,89,.13); transform: rotate(58deg); }
.floating-note { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: rgba(16,21,34,.84); box-shadow: 0 12px 40px rgba(0,0,0,.24); color: #9aa5b7; font-size: 9px; line-height: 1.55; }
.floating-note strong { color: white; font-size: 10px; }
.note-top { top: 22%; right: -5%; animation: float 5s ease-in-out infinite; }
.note-bottom { bottom: 18%; left: -8%; animation: float 5.5s ease-in-out infinite reverse; }
.note-icon,.note-spark { color: var(--lime); font: 700 19px "Space Grotesk",sans-serif; }
.scroll-cue { position: absolute; bottom: 23px; left: 0; display: flex; gap: 10px; align-items: center; color: #707b8b; font-size: 9px; letter-spacing: .1em; }
.scroll-cue span { width: 20px; height: 32px; border: 1px solid #485263; border-radius: 99px; }
.scroll-cue span::after { display: block; width: 2px; height: 6px; margin: 6px auto; border-radius: 2px; background: var(--lime); content: ""; animation: scroll-tap 1.6s ease infinite; }
.about { padding-top: 132px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.section-kicker { display: flex; gap: 14px; align-items: center; color: #8591a3; }
.section-kicker span { color: var(--lime); font-family: "DM Mono",monospace; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; margin-top: 43px; }
.about h2,.projects h2,.contact h2 { font-size: clamp(2.7rem,5.5vw,5.1rem); }
.about h2 span,.contact h2 span { color: var(--violet); }
.about-copy p { margin: 0 0 18px; color: #aab4c3; font-size: 14px; line-height: 1.85; }
.technical { padding: 0 0 135px; }
.technical-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 35px 0; }
.technical-heading h2 { margin: 0; font: 600 clamp(2.6rem,5vw,4.7rem)/1 "Space Grotesk",sans-serif; letter-spacing: -.075em; }
.technical-heading h2 span { color: var(--lime); }
.technical-heading p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; }
.technical-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.technical-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg,#171d2cd9,#0e1320d9); transition: transform .25s ease,border-color .25s ease; }
.technical-card:hover { transform: translateY(-5px); border-color: #c9ff5977; }
.technical-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #c9ff5955; border-radius: 8px; color: var(--lime); font: 700 16px "Space Grotesk",sans-serif; }
.technical-card h3 { margin: 20px 0 7px; font: 600 18px "Space Grotesk",sans-serif; }
.technical-card p { margin: 0; color: var(--muted); font-size: 12px; }
.technical-card .skill-chips { margin-top: 18px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skill-chips span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: #b8c1cf; font: 10px "DM Mono",monospace; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.skill-chips span:hover { transform: translateY(-3px); border-color: var(--lime); color: var(--lime); }
.projects { padding-top: 60px; padding-bottom: 140px; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 42px 0 42px; }
.projects-heading h2 { font-size: clamp(3.5rem,7vw,6.8rem); }
.projects-heading p { max-width: 310px; margin: 0 2% 5px 0; color: #9ca8b7; font-size: 13px; }
.project-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card { min-width: 0; padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: #101520; transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease; }
.path-card:hover { transform: translateY(-7px); border-color: rgba(201,255,89,.42); box-shadow: 0 25px 80px rgba(0,0,0,.2); }
.path-topline { display: flex; justify-content: space-between; color: #778395; font: 9px "DM Mono",monospace; letter-spacing: .1em; }
.path-arrow { color: var(--lime); font-size: 20px; }
.path-art { position: relative; display: grid; height: 236px; place-items: center; margin: 18px 0; overflow: hidden; border-radius: 5px; }
.path-art-web { background: radial-gradient(ellipse at 75% 15%,rgba(119,103,225,.34),transparent 40%),linear-gradient(135deg,#171b34,#202941 50%,#191c2b); }
.browser-window { position: relative; z-index: 1; width: 65%; height: 69%; overflow: hidden; border: 1px solid rgba(225,229,255,.34); border-radius: 6px; background: rgba(17,21,37,.9); box-shadow: 0 22px 50px #08091199; transform: perspective(800px) rotateY(-12deg) rotateX(4deg); transition: transform .45s ease; }
.path-card:hover .browser-window { transform: perspective(800px) rotateY(-4deg) rotateX(0) translateY(-5px); }
.browser-bar { height: 24px; padding: 7px 9px; border-bottom: 1px solid #ffffff1a; }
.browser-bar i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #9298a9; }
.browser-content { display: flex; height: calc(100% - 24px); flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 13%; }
.browser-content span { width: 24%; height: 4px; margin-bottom: 13px; background: var(--lime); }
.browser-content b { width: 70%; height: 13px; margin-bottom: 6px; background: #edeef2; }
.browser-content em { width: 48%; height: 6px; background: #727b8f; }
.browser-content i { width: 27%; height: 15px; margin-top: 18px; border-radius: 3px; background: var(--violet); }
.path-orb { position: absolute; right: 11%; bottom: -48%; width: 180px; aspect-ratio: 1; border-radius: 50%; background: #8971ff35; filter: blur(25px); }
.path-art-games { background: radial-gradient(ellipse at 50% 70%,#632bd763,transparent 50%),linear-gradient(130deg,#17102e,#241046 65%,#0f1023); }
.gamepad-art { position: relative; z-index: 1; width: 172px; height: 92px; border: 2px solid #c780ff; border-radius: 45px 45px 28px 28px; background: linear-gradient(140deg,#47216a,#1e1937); box-shadow: 0 0 35px #ae3bff48,inset 0 0 18px #f396ff30; transform: rotate(-8deg); transition: transform .35s ease; }
.path-card:hover .gamepad-art { transform: rotate(2deg) scale(1.06); }
.pad-cross { position: absolute; top: 27px; left: 32px; color: #e8c8ff; font-size: 27px; }
.pad-buttons { position: absolute; top: 27px; right: 28px; color: #ffe668; font-size: 21px; }
.pad-buttons i { margin-left: 5px; color: #ff6a8d; font-style: normal; }
.pixel-star { position: absolute; color: #ffe36d; animation: blink 1.8s steps(2) infinite; }
.star-a { top: 21%; left: 22%; font-size: 22px; }.star-b { right: 19%; bottom: 22%; color: #e691ff; font-size: 30px; animation-delay: .4s; }
.game-art-caption { position: absolute; bottom: 17px; color: #d0a6ff; font: 9px "DM Mono",monospace; letter-spacing: .2em; }
.path-info { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.path-info h3 { margin: 0 0 6px; color: white; font: 600 23px "Space Grotesk",sans-serif; }
.path-info p { max-width: 350px; margin: 0; color: #929eaf; font-size: 12px; line-height: 1.6; }
.path-link { flex: 0 0 auto; color: var(--lime); font-size: 10px; font-weight: 700; }
.path-link b { margin-left: 6px; }
.contact { padding-top: 20px; padding-bottom: 105px; }
.contact-panel { position: relative; padding: clamp(28px,6vw,72px); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: radial-gradient(ellipse at 95% 0%,rgba(91,77,155,.2),transparent 45%),#101520; }
.contact-panel::after { position: absolute; top: 4%; right: 5%; width: 160px; height: 160px; border: 1px solid rgba(201,255,89,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 25px rgba(201,255,89,.025),0 0 0 50px rgba(201,255,89,.02); pointer-events: none; }
.contact h2 { margin: 32px 0 12px; font-size: clamp(3rem,7vw,6.5rem); }
.contact-panel > p { margin: 0 0 25px; color: #aab4c3; font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; color: #8793a4; font-size: 11px; }
.contact-links a:hover { color: var(--lime); }
.site-footer { display: flex; width: min(1320px,calc(100% - 64px)); min-height: 85px; align-items: center; justify-content: space-between; gap: 20px; margin: auto; border-top: 1px solid var(--line); color: #737e8e; font-size: 10px; }
.site-footer .brand { color: #c6cfdb; font-size: 14px; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer > a:last-child { color: #b3bdca; }
.intro-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center,#1a1b37 0%,#080b13 65%); transition: opacity .55s ease,visibility .55s ease; }
.intro-loader.is-hidden { opacity: 0; visibility: hidden; }
.intro-loader::before,.intro-loader::after { position: absolute; width: 150%; height: 1px; content: ""; background: linear-gradient(90deg,transparent,rgba(149,116,255,.55),rgba(201,255,89,.85),transparent); box-shadow: 0 0 20px #9574ff; transform: rotate(-25deg) translateY(-45vh); animation: loader-ray 1.6s ease-in-out infinite; }
.intro-loader::after { opacity: .45; animation-delay: -.8s; }
.loader-content { position: relative; z-index: 1; display: flex; width: min(280px,calc(100% - 48px)); flex-direction: column; align-items: center; text-align: center; }
.loader-emblem { position: relative; display: grid; width: min(58vw,32vh,220px); aspect-ratio: 1; place-items: center; }
.loader-ring { position: absolute; border-radius: 50%; }
.loader-ring-outer { inset: 0; border: 1px solid rgba(201,255,89,.16); border-top-color: var(--lime); border-right-color: rgba(201,255,89,.55); box-shadow: 0 0 30px rgba(149,116,255,.1); animation: loader-spin 2s linear infinite; }
.loader-ring-inner { inset: 10%; border: 1px solid rgba(149,116,255,.2); border-bottom-color: var(--violet); border-left-color: rgba(149,116,255,.65); animation: loader-spin 1.5s linear infinite reverse; }
.loader-logo { display: grid; width: 65%; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: radial-gradient(circle,#26243f,#111521 72%); box-shadow: 0 0 40px rgba(149,116,255,.16); }
.loader-logo img { width: 58%; height: 58%; object-fit: contain; }
.loader-brand { margin-top: clamp(12px,3vh,24px); color: var(--paper); font: 700 clamp(20px,5vw,25px) "Space Grotesk",sans-serif; letter-spacing: -.05em; }
.loader-brand span { color: var(--lime); }.loader-brand small { margin-left: 2px; color: var(--muted); font: 500 .6em "DM Sans",sans-serif; letter-spacing: 0; }
.loader-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: #aab4c3; font-size: 11px; }
.loader-pulse { display: inline-block; width: 6px; height: 6px; }.loader-dots { color: var(--lime); animation: blink .7s steps(2) infinite; }
.loader-track { width: min(180px,80%); height: 2px; margin-top: 16px; overflow: hidden; background: #ffffff1a; }.loader-track span { display: block; width: 35%; height: 100%; background: var(--lime); box-shadow: 0 0 9px var(--lime); animation: load 1.3s ease-in-out forwards; }
@keyframes load { to { width: 100%; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-ray { from { transform: rotate(-25deg) translateY(-45vh); } to { transform: rotate(-25deg) translateY(45vh); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scroll-tap { 0%,100% { opacity: .35; transform: translateY(0); } 55% { opacity: 1; transform: translateY(5px); } }
@keyframes blink { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ambient-drift { from { transform: translate(-5%, -8%) scale(.9); } to { transform: translate(22%, 18%) scale(1.25); } }

@media (max-width: 760px) {
  .section-wrap,.nav-shell,.site-footer { width: min(100% - 40px,600px); }
  .nav-shell { height: 68px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 5px; background: transparent; }
  .menu-toggle span { width: 16px; height: 1px; background: white; }
  .nav-links { position: absolute; top: 67px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); background: #0b0f18; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 4px; }
  .nav-links .nav-contact { margin-top: 6px; text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 22px; padding-top: 70px; padding-bottom: 84px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.2rem,13vw,5.8rem); }
  .hero-visual { width: min(350px,87%); margin-top: 5px; }
  .hero-footnote { margin-top: 35px; font-size: 9px; }
  .scroll-cue { bottom: 22px; }
  .about { padding-top: 85px; padding-bottom: 90px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .technical { padding-bottom: 85px; }
  .technical-heading { align-items: start; flex-direction: column; gap: 12px; }
  .technical-grid { grid-template-columns: 1fr; }
  .projects { padding-top: 10px; padding-bottom: 90px; }
  .projects-heading { align-items: start; flex-direction: column; gap: 12px; margin: 30px 0; }
  .projects-heading p { max-width: 420px; }
  .project-paths { grid-template-columns: 1fr; gap: 14px; }
  .path-art { height: clamp(180px,55vw,250px); }
  .contact { padding-bottom: 65px; }
  .contact-panel::after { right: -80px; }
  .contact-panel > .button { position: relative; z-index: 1; }
  .contact-links { gap: 12px 20px; }
  .site-footer { min-height: 110px; flex-wrap: wrap; justify-content: space-between; padding: 17px 0; }
  .site-footer > span { order: 3; width: 100%; }
}
@media (max-width: 400px) {
  .section-wrap,.nav-shell,.site-footer { width: calc(100% - 32px); }
  .hero { padding-top: 55px; }
  .availability { font-size: 10px; }
  .hero-actions .button { min-height: 44px; padding-inline: 12px; font-size: 11px; }
  .floating-note { padding: 8px 10px; }
  .path-card { padding: 14px; }
  .path-info { align-items: start; flex-direction: column; gap: 11px; }
  .contact-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ambient-canvas { display: none; }
}
