:root{--bg:#090d12;--surface:#0f151d;--text:#eef4f8;--muted:#95a3af;--line:#26313c;--accent:#6ee7b7;--blue:#38bdf8;--shell:min(1160px,calc(100% - 40px));color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}body:before{position:fixed;inset:0;z-index:-1;content:"";pointer-events:none;background:linear-gradient(rgba(110,231,183,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(110,231,183,.025) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(#000,transparent 75%)}img{display:block;max-width:100%}a{color:inherit}.shell{width:var(--shell);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:10px;left:10px;z-index:999;padding:10px 16px;background:var(--accent);color:#06100c;font-weight:800;transform:translateY(-160%)}.skip-link:focus{transform:none}:focus-visible{outline:3px solid var(--blue);outline-offset:4px;border-radius:3px}
.site-header{position:sticky;top:0;z-index:100;border-bottom:1px solid #ffffff12;background:#090d12dc;backdrop-filter:blur(16px)}.nav{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;line-height:1.15}.brand-mark{display:grid;width:38px;aspect-ratio:1;place-items:center;border:1px solid var(--accent);color:var(--accent);font:800 12px ui-monospace,monospace}.brand strong,.brand small{display:block}.brand strong{font-size:14px}.brand small{margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.12em;text-transform:uppercase}.nav-links{display:flex;align-items:center;gap:30px}.nav-links a{color:#c7d0d8;font-size:13px;font-weight:650;text-decoration:none}.nav-links a:hover{color:var(--accent)}.nav-resume{padding:8px 14px;border:1px solid var(--line)}.nav-toggle{display:none;width:42px;height:42px;padding:11px;border:1px solid var(--line);background:transparent}.nav-toggle span:not(.sr-only){display:block;width:100%;height:1px;margin:5px 0;background:var(--text)}
.hero{min-height:calc(72vh - 72px);padding-block:clamp(72px,10vw,130px);display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:clamp(50px,8vw,110px)}.eyebrow{margin:0 0 18px;color:var(--accent);font:700 11px/1.3 ui-monospace,Consolas,monospace;letter-spacing:.18em;text-transform:uppercase}.status-dot{display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 16px var(--accent)}h1,h2,h3,p{margin-top:0}h1,h2,.contact h2{font-weight:650;letter-spacing:-.055em;line-height:1.02}h1{max-width:760px;margin-bottom:26px;font-size:clamp(3.4rem,7.6vw,6.6rem)}h1 em,.contact h2 em{color:var(--accent);font-family:Georgia,serif;font-weight:400}.hero-intro{max-width:640px;margin-bottom:30px;color:#abb7c1;font-size:clamp(1rem,1.6vw,1.18rem)}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.button{display:inline-flex;align-items:center;min-height:48px;padding:0 19px;border:1px solid var(--line);font-size:13px;font-weight:750;text-decoration:none}.button-primary{border-color:var(--accent);background:var(--accent);color:#07100d}.button:hover{border-color:var(--muted)}.button-primary:hover{background:#9af2d1}
.hero-console{overflow:hidden;border:1px solid var(--line);background:#0f151dd1;box-shadow:20px 20px #6ee7b709}.console-bar{height:42px;padding:0 14px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);background:#0c1117}.console-bar span{width:7px;height:7px;border-radius:50%;background:#34414d}.console-bar span:first-child{background:var(--accent)}.console-bar code{margin-left:auto;color:#71808d;font-size:10px}.hero-console pre{margin:0;padding:26px;overflow:auto;color:#aebbc5;font:12px/1.9 ui-monospace,Consolas,monospace}.hero-console b{color:#c084fc;font-weight:400}.hero-console i{color:var(--blue);font-style:normal}.hero-console q{color:#fbbf24}
.section{padding-block:clamp(80px,11vw,145px)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:clamp(45px,7vw,80px)}.section-heading h2,.about h2{margin:0;font-size:clamp(2.35rem,5vw,4.5rem)}.section-heading>p{max-width:440px;margin:0;color:var(--muted)}.featured-list{display:grid;gap:clamp(70px,11vw,135px)}.project-feature{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:clamp(38px,7vw,90px)}.project-feature.reverse{grid-template-columns:.75fr 1.25fr}.project-feature.reverse .project-media{order:2}.project-media{position:relative;display:block;overflow:hidden;aspect-ratio:16/9;border:1px solid var(--line);background:var(--surface)}.project-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s}.project-media:hover img{transform:scale(1.025)}.project-media>span{position:absolute;top:14px;left:14px;padding:5px 9px;background:#090d12e0;color:var(--accent);font:700 10px ui-monospace,monospace}.project-role{margin-bottom:12px;color:var(--accent);font:700 12px ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}.project-copy h3{margin-bottom:20px;font-size:clamp(1.8rem,3.5vw,3.1rem);line-height:1.08;letter-spacing:-.035em}.project-copy h3 a{text-decoration:none}.project-copy h3 a:hover{color:var(--accent)}.project-copy>p:not(.project-role){color:var(--muted);font-size:14px}.tags{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:24px 0 0;list-style:none}.tags li{padding:7px 11px;border:1px solid var(--line);color:#b8c3cc;font:600 12px ui-monospace,monospace;text-transform:uppercase}
.more-work{margin-top:clamp(100px,14vw,180px)}.more-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;border-bottom:1px solid var(--line)}.more-heading a{padding-bottom:18px;color:var(--muted);font-size:12px;text-decoration:none}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.project-card{display:grid;grid-template-columns:170px 1fr;overflow:hidden;border:1px solid var(--line);background:var(--surface);text-decoration:none}.project-card:hover{border-color:#506170}.project-card img{width:100%;height:100%;min-height:195px;object-fit:cover}.project-card>span{display:flex;flex-direction:column;padding:20px}.project-card small{color:var(--accent);font:600 12px/1.5 ui-monospace,monospace;text-transform:uppercase}.project-card strong{margin:10px 0;font-size:18px}.project-card em{color:var(--muted);font-size:12px;font-style:normal;line-height:1.55}
.reel{border-block:1px solid var(--line);background:var(--surface)}#reel,#technical-writing{scroll-margin-top:calc(72px + clamp(32px,7vh,80px))}.video-wrap{position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);background:#030506}.video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.about{display:grid;grid-template-columns:.72fr 1.28fr;align-items:center;gap:clamp(45px,9vw,120px)}.about-system{position:relative;overflow:hidden;aspect-ratio:1;border:1px solid var(--line);background:linear-gradient(145deg,#111824e8,#0b1017e8);box-shadow:18px 18px #c4b5fd0b}.system-bar{height:38px;padding:0 13px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);color:#75819a;font:700 8px ui-monospace,monospace;letter-spacing:.13em;text-transform:uppercase}.system-bar span:first-child{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}.about-system svg{position:absolute;inset:38px 0 0;width:100%;height:calc(100% - 38px)}.system-line,.system-flow,.system-ring{fill:none;stroke:#526073;stroke-width:1.5}.system-flow{stroke:var(--accent);stroke-dasharray:5 42;stroke-linecap:round;animation:system-flow 5s linear infinite}.flow-two{animation-delay:-2.5s}.system-ring{stroke:#c4b5fd38;stroke-dasharray:3 8}.system-node{position:absolute;width:30%;padding:9px 10px;border:1px solid #536174;background:#101722;color:#d6dee7;font-family:ui-monospace,Consolas,monospace;line-height:1.25}.system-node span,.system-node small{display:block;color:#7f8b99;font-size:7px;text-transform:uppercase;letter-spacing:.08em}.system-node strong{display:block;margin:4px 0;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.node-gameplay{top:20%;left:5%}.node-ai{bottom:8%;left:5%}.node-content{top:20%;right:5%}.node-iteration{right:5%;bottom:8%}.node-tools{top:50%;left:50%;width:32%;border-color:var(--accent);background:#151426;transform:translate(-50%,-35%);text-align:center}.node-tools strong{color:var(--accent);font-size:12px}.about h2{margin-bottom:30px}.about-copy>p:not(.eyebrow){color:var(--muted)}.text-links,.contact-links{display:flex;flex-wrap:wrap;gap:24px;margin-top:28px}.text-links a,.contact-links a{font-size:13px;font-weight:700;text-underline-offset:5px}.text-links a:hover,.contact-links a:hover{color:var(--accent)}.contact{padding-top:80px;border-top:1px solid var(--line);text-align:center}.contact .eyebrow{margin-bottom:28px}.contact h2{margin-bottom:36px;font-size:clamp(2.8rem,6vw,5.5rem)}.contact-email{display:inline-block;color:var(--accent);font:600 clamp(1rem,2.4vw,1.45rem) ui-monospace,monospace;text-underline-offset:8px}.contact-links{justify-content:center;margin-top:42px}footer{padding-block:30px;border-top:1px solid var(--line);color:#75838f;font:600 10px ui-monospace,monospace;text-transform:uppercase}footer .shell{display:flex;justify-content:space-between}footer p{margin:0}.reveal-ready .reveal{opacity:0;transform:translateY(24px);transition:opacity .65s,transform .65s}.reveal-ready .reveal.is-visible{opacity:1;transform:none}@keyframes system-flow{to{stroke-dashoffset:-94}}
@media(max-width:820px){.nav-toggle{display:block}.nav-links{position:absolute;top:72px;left:0;width:100%;padding:20px;display:none;border-bottom:1px solid var(--line);background:#0b1016}.nav-links a{padding:13px 10px}.nav-toggle[aria-expanded=true]+.nav-links{display:flex;align-items:stretch;flex-direction:column;gap:0}.hero{min-height:auto;grid-template-columns:1fr}.hero-console{max-width:520px}.section-heading{display:block}.section-heading>p{margin-top:20px}.project-feature,.project-feature.reverse{grid-template-columns:1fr}.project-feature.reverse .project-media{order:0}.project-grid{grid-template-columns:1fr}.about{grid-template-columns:1fr}.about-system{width:100%;max-width:420px}}
@media(max-width:520px){:root{--shell:calc(100% - 28px)}.hero{padding-block:60px}.hero-console{display:none}h1{font-size:clamp(3rem,15vw,4.4rem)}.section{padding-block:75px}.project-card{grid-template-columns:1fr}.project-card img{aspect-ratio:16/9;min-height:0}.contact h2{font-size:clamp(2.7rem,14vw,4.2rem)}footer .shell{gap:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.reveal{opacity:1!important;transform:none!important}}

/* Hero game-systems blueprint */
.hero-blueprint{position:relative;overflow:hidden;border:1px solid var(--line);background:linear-gradient(145deg,#111824e8,#0b1017e8);box-shadow:20px 20px #c4b5fd0b;color:#75819a}.hero-blueprint:before{position:absolute;inset:0;content:"";pointer-events:none;background:radial-gradient(circle at 50% 48%,#c4b5fd10,transparent 45%)}.hero-blueprint svg{position:relative;display:block;width:100%;height:auto}.blueprint-grid{fill:url(#blueprint-grid);color:#c4b5fd12}.blueprint-frame{fill:none;stroke:#c4b5fd55;stroke-width:1.2}.blueprint-connections path{fill:none;stroke:#526073;stroke-width:1.2}.blueprint-connections .blueprint-trace{stroke:var(--accent);stroke-width:1.5;stroke-dasharray:5 48;stroke-linecap:round;filter:url(#node-glow);animation:blueprint-flow 5.5s linear infinite}.blueprint-connections .trace-two{animation-delay:-1.3s}.blueprint-connections .trace-three{animation-delay:-2.6s}.blueprint-connections .trace-four{animation-delay:-3.9s}.blueprint-node rect{fill:#101722;stroke:#536174;stroke-width:1}.blueprint-node circle{fill:var(--accent);filter:url(#node-glow);transform-box:fill-box;transform-origin:center;animation:blueprint-pulse 3s ease-in-out infinite}.blueprint-node text{fill:#d6dee7;font:700 12px ui-monospace,Consolas,monospace;letter-spacing:1.4px}.blueprint-node .node-detail{fill:#7f8b99;font-size:7px;letter-spacing:1px}.node-ai circle{animation-delay:-.75s}.node-tools circle{animation-delay:-1.5s}.node-engine circle{animation-delay:-2.25s}.blueprint-core>rect:first-child{fill:#c4b5fd0a;stroke:var(--accent);stroke-width:1.2}.blueprint-core>rect:nth-child(2){fill:#0b1119;stroke:#c4b5fd40}.blueprint-core circle:not(.core-pulse){fill:var(--accent);filter:url(#node-glow)}.blueprint-core .core-pulse{fill:none;stroke:var(--accent);stroke-width:1;transform-box:fill-box;transform-origin:center;animation:core-signal 2.8s ease-out infinite}.blueprint-core text{fill:#dcd5ff;font:700 7px ui-monospace,Consolas,monospace;letter-spacing:1px;text-anchor:middle}.blueprint-coordinates text{fill:#5d6877;font:600 7px ui-monospace,Consolas,monospace;letter-spacing:1px}.blueprint-coordinates path{stroke:#495565;stroke-width:1}.hero-blueprint:hover .blueprint-node rect{stroke:#6f7e91}
@keyframes blueprint-flow{to{stroke-dashoffset:-106}}
@keyframes blueprint-pulse{0%,100%{opacity:.55;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
@keyframes core-signal{0%{opacity:.9;transform:scale(.55)}70%,100%{opacity:0;transform:scale(1.8)}}
@media(max-width:820px){.hero-blueprint{width:100%;max-width:560px}}
@media(max-width:520px){.hero-blueprint{display:block;box-shadow:12px 12px #c4b5fd0b}}
@media(prefers-reduced-motion:reduce){.blueprint-connections .blueprint-trace,.blueprint-node circle,.blueprint-core .core-pulse{animation:none}.blueprint-node circle{opacity:1}}
.hero-blueprint #blueprint-grid path{stroke:#c4b5fd12}

/* Homepage section hierarchy and project metadata. These selectors intentionally
   override the compact defaults above for every numbered homepage section. */
.section-heading .eyebrow,.about-copy>.eyebrow,.contact>.eyebrow{font-size:16px;line-height:1.45}.more-heading .eyebrow{font-size:14px}
.section-heading h2,.about h2{font-size:clamp(2.7rem,5.5vw,5rem)}
.project-card>.card-body{display:flex;flex-direction:column;padding:20px}.card-tags{margin-top:auto;padding-top:16px}.project-card .card-tags li{font-size:12px}
.project-copy h3.project-title-row{font-size:clamp(1.65rem,2.6vw,2.5rem)}.project-title-row a{display:inline-flex;max-width:100%;align-items:baseline;gap:.2em;white-space:nowrap}.project-title-row a>span:first-child{min-width:0}.project-title-arrow{flex:0 0 auto}
.nav-resume,.contact-links a[href$="JeffreyPopek_Resume.pdf"]{border-bottom:0;text-decoration:none!important}.nav-resume{border:0}

/* Light-purple accent palette */
:root{--accent:#c4b5fd;--blue:#a78bfa}
body:before{background:linear-gradient(rgba(196,181,253,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(196,181,253,.025) 1px,transparent 1px);background-size:48px 48px}
.hero-console{box-shadow:20px 20px #c4b5fd0b}
.button-primary:hover{background:#ddd6fe}

/* Slightly larger About schematic for easier label reading. */
.about{grid-template-columns:.84fr 1.16fr;gap:clamp(45px,7vw,90px)}
.system-node span,.system-node small{font-size:8px}.system-node strong{font-size:11px}.node-tools strong{font-size:13px}
@media(max-width:820px){.about{grid-template-columns:1fr}.about-system{max-width:460px}}

/* Keep the hero's SVG Tools module independent from the About diagram node. */
.hero-blueprint .node-tools{position:static;width:auto;padding:0;border:0;background:transparent;transform:translate(62px,316px);text-align:start}

/* Typography-led hero and About layouts. */
.hero{position:relative;min-height:calc(76vh - 72px);display:flex;align-items:center;padding-block:clamp(86px,12vw,155px)}
.hero-copy{width:min(900px,86%)}
.hero h1{max-width:900px}
.hero-intro{max-width:720px}
.scroll-cue{position:absolute;left:0;bottom:28px;display:inline-flex;align-items:center;gap:10px;color:#a99dd1;font:700 10px/1 ui-monospace,Consolas,monospace;letter-spacing:.14em;text-decoration:none;text-transform:uppercase}.scroll-cue:hover{color:var(--accent)}.scroll-arrow{display:inline-block;color:var(--accent);font-size:15px;animation:scroll-nudge 2.2s ease-in-out infinite}@keyframes scroll-nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
.about{grid-template-columns:minmax(0,1.65fr) minmax(260px,.9fr);align-items:start;gap:clamp(56px,9vw,120px)}
.about-copy{max-width:760px}.about-primary{max-width:690px;font-size:clamp(1.05rem,1.7vw,1.25rem);line-height:1.75}.about-direction{max-width:650px;margin-top:26px;padding-left:18px;border-left:2px solid var(--accent);color:#c7d0d8!important;font-weight:600}
.about-details{margin-top:56px;border-top:1px solid var(--line)}.about-details>div{padding:24px 0;border-bottom:1px solid var(--line)}.about-details h3{margin:0 0 14px;color:var(--accent);font:700 11px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.16em;text-transform:uppercase}.about-details ul{display:grid;gap:8px;padding:0;margin:0;list-style:none}.about-details li{color:#b8c3cc;font-size:14px}.about-details li:before{content:"—";margin-right:10px;color:#6f648f}
@media(max-width:820px){.hero{min-height:auto;padding-block:clamp(72px,14vw,105px);padding-bottom:125px}.hero-copy{width:100%}.scroll-cue{left:0;bottom:42px}.about{grid-template-columns:1fr;gap:48px}.about-details{width:100%;max-width:560px;margin-top:0}}
@media(prefers-reduced-motion:reduce){.scroll-arrow{animation:none}}

/* Contact hierarchy and primary email interaction. */
.contact .eyebrow{margin-bottom:30px}.contact h2{margin-bottom:20px}.contact-accent{color:var(--accent);font-weight:500}.contact-note{max-width:520px;margin:0 auto 34px;color:var(--muted);font-size:clamp(.95rem,1.5vw,1.08rem)}.contact-email{position:relative;text-decoration:none;transition:color .18s ease,transform .18s ease}.contact-email:after{position:absolute;right:0;bottom:-8px;left:0;height:1px;content:"";background:var(--accent);transform:scaleX(.28);transform-origin:left;transition:transform .2s ease}.contact-email:hover,.contact-email:focus-visible{color:#ddd6fe;transform:translateX(3px)}.contact-email:hover:after,.contact-email:focus-visible:after{transform:scaleX(1)}.contact-links{margin-top:48px}.contact-links a{color:#a7b1ba;font-weight:650}
@media(prefers-reduced-motion:reduce){.contact-email,.contact-email:after{transition:none}.contact-email:hover,.contact-email:focus-visible{transform:none}}

/* Curated technical writing */
.writing-heading{max-width:760px;margin-bottom:clamp(45px,7vw,80px)}.writing-heading .eyebrow{font-size:16px;line-height:1.45}.writing-heading h2{margin:0 0 24px;font-size:clamp(2.7rem,5.5vw,5rem)}.writing-heading>p:last-child{max-width:650px;margin:0;color:var(--muted)}.writing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.writing-card{display:flex;min-width:0;overflow:hidden;flex-direction:column;border:1px solid var(--line);background:var(--surface);text-decoration:none;transition:border-color .2s ease,transform .2s ease}.writing-card:focus-visible{border-color:#6f648f;transform:translateY(-3px)}.writing-card>img{width:100%;aspect-ratio:16/9;object-fit:cover}.writing-card-body{display:flex;flex:1;flex-direction:column;padding:24px}.writing-card strong{margin:0 0 12px;font-size:clamp(17px,1.4vw,20px);line-height:1.3}.writing-card-body>span:not(.writing-tags){color:var(--muted);font-size:13px;line-height:1.65}.writing-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:22px}.writing-tags>span{padding:4px 7px;border:1px solid #6f648f;color:var(--accent);font:600 9px/1.4 ui-monospace,monospace;letter-spacing:.04em;text-transform:uppercase}.writing-all{display:inline-block;margin-top:32px;color:var(--accent);font-size:13px;font-weight:700;text-underline-offset:6px}.writing-all:hover{color:#ddd6fe}
@media(hover:hover){.writing-card:hover{border-color:#6f648f;transform:translateY(-3px)}}
@media(max-width:820px){.writing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:700px){.writing-card strong{white-space:nowrap}}
@media(max-width:699px){.writing-grid{grid-template-columns:1fr}}
@media(max-width:520px){.writing-card-body{padding:20px}}
@media(prefers-reduced-motion:reduce){.writing-card{transition:none}.writing-card:hover,.writing-card:focus-visible{transform:none}}
