:root {
  --bg: #0b0d0e;
  --surface: #111415;
  --surface-2: #171a1b;
  --line: #2b2f30;
  --text: #e9e6df;
  --muted: #8f9491;
  --accent: #ffb84d;
  --accent-soft: #372b19;
  --green: #81d098;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--accent); color: #111; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 78px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(11,13,14,.84);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 1rem; }
.brand-mark {
  display: grid; place-items: center; width: 37px; height: 37px;
  border: 1px solid var(--accent); color: var(--accent); font: 500 14px var(--mono);
}
.brand-status { color: var(--muted); font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brand-status i, .panel-footer i { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); font: 400 12px var(--mono); }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--text); }
.nav-cta { padding: .65rem 1rem; border: 1px solid var(--line); color: var(--text); }
.nav-cta span { color: var(--accent); margin-left: .5rem; }

.hero { position: relative; min-height: 100svh; padding: clamp(8rem, 14vh, 11rem) clamp(1.25rem, 6.5vw, 7.5rem) 7rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(370px, .75fr); align-items: center; gap: clamp(3rem, 7vw, 8rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 22%; left: 45%; width: 420px; height: 420px; border-radius: 50%; background: var(--accent); filter: blur(190px); opacity: .07; pointer-events: none; }
.eyebrow { margin: 0 0 1.6rem; color: var(--muted); font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { color: var(--accent); margin-right: .75rem; }
h1, h2 { margin: 0; font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(3.2rem, 6.5vw, 7.4rem); }
h2 { font-size: clamp(2.7rem, 5vw, 5.5rem); }
h1 em, h2 em { color: var(--muted); font-style: normal; font-weight: 400; }
.hero-lead { max-width: 700px; margin: 2rem 0 0; color: #b6b8b4; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 175px; padding: .9rem 1.1rem; font: 500 12px var(--mono); transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button span { margin-left: 1rem; }
.button-primary { background: var(--accent); color: #15110b; border: 1px solid var(--accent); }
.button-ghost { border: 1px solid var(--line); }
.button-ghost:hover { border-color: var(--muted); }

.system-panel { position: relative; border: 1px solid var(--line); background: rgba(17,20,21,.82); box-shadow: 0 35px 80px rgba(0,0,0,.32); font-family: var(--mono); transform: rotate(.5deg); }
.panel-bar, .panel-footer { height: 43px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.panel-dots { display: flex; gap: 5px; }
.panel-dots i { width: 6px; height: 6px; border-radius: 50%; background: #343839; }
.panel-live { color: var(--green); }
.panel-body { padding: 1.4rem 0; font-size: clamp(10px, 1vw, 13px); line-height: 1.85; }
.code-line { display: grid; grid-template-columns: 45px 1fr; padding-right: 1rem; }
.line-no { padding-right: .8rem; color: #4a4e4f; text-align: right; user-select: none; }
.indent { display: inline-block; padding-left: 1.4rem; color: #a8aaa7; }
.indent.deep { padding-left: 2.8rem; }
.code-line b { color: #d986cf; font-weight: 400; }
.code-line q { color: #b5d995; quotes: '"' '"'; }
.code-line strong { color: var(--accent); font-weight: 400; }
.panel-footer { border: 0; border-top: 1px solid var(--line); }
.panel-footer span:first-child { color: var(--green); }

.hero-foot { position: absolute; bottom: 0; left: 0; display: flex; width: max-content; padding: .85rem 0; border-top: 1px solid var(--line); color: #555a58; font: 400 9px var(--mono); letter-spacing: .16em; white-space: nowrap; animation: ticker 32s linear infinite; }
.hero-foot span { padding-right: 3rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 6.5vw, 7.5rem); border-top: 1px solid var(--line); }
.section-heading { max-width: 950px; }
.section-heading > p:last-child, .section-heading-row > p { max-width: 470px; margin: 2rem 0 0; color: var(--muted); }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 4rem; }
.section-heading-row > p { margin: 0 0 .75rem; }

.impact { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); background: rgba(17,20,21,.42); }
.impact .section-heading h2 { font: 500 clamp(1.5rem, 2.4vw, 2.4rem)/1.2 var(--sans); letter-spacing: -.04em; }
.impact .eyebrow { margin-bottom: .8rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact .metrics { margin-top: 2.5rem; }
.metric { min-width: 0; padding: 2.2rem clamp(1rem, 2.5vw, 2.5rem) 2.5rem 0; }
.impact .metric { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.metric + .metric { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }
.metric-number { margin: 0; color: var(--accent); font: 300 clamp(3rem, 5vw, 5rem)/1 var(--mono); letter-spacing: -.08em; }
.metric-number sup { font-size: .35em; letter-spacing: 0; vertical-align: top; }
.metric-label { margin: 1.3rem 0 .6rem; font: 500 12px var(--mono); text-transform: uppercase; }
.metric-detail { max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.project-card { display: grid; grid-template-columns: 1.25fr .75fr; margin-top: 5rem; border: 1px solid var(--line); background: var(--surface); }
.project-main { padding: clamp(2rem, 4vw, 4.5rem); }
.project-meta { display: flex; justify-content: space-between; color: var(--muted); font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 4rem; }
.project-title-row h3 { margin: 0; font: 400 clamp(2rem, 4vw, 4.5rem)/1 var(--mono); letter-spacing: -.08em; }
.project-title-row h3 span { color: var(--accent); }
.project-title-row a { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border: 1px solid var(--line); color: var(--accent); transition: background .2s, color .2s; }
.project-title-row a:hover { background: var(--accent); color: #111; }
.project-intro { max-width: 720px; margin: 2rem 0; color: #afb2ae; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.8; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.project-tags li { padding: .5rem .7rem; border: 1px solid var(--line); color: var(--muted); font: 400 9px var(--mono); text-transform: uppercase; }
.project-visual { min-height: 430px; padding: 3rem; display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid var(--line); background: var(--surface-2); }
.architecture { display: flex; align-items: center; width: 100%; color: var(--muted); font: 400 8px var(--mono); }
.arch-client, .arch-core, .arch-services i { display: grid; place-items: center; border: 1px solid #444a49; }
.arch-client { width: 55px; height: 40px; }
.arch-line { height: 1px; flex: 1; background: #444a49; position: relative; }
.arch-line::after { content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.arch-core { width: 90px; height: 90px; border-color: var(--accent); color: var(--accent); border-radius: 50%; }
.arch-core small { color: var(--muted); font-size: 7px; }
.arch-services { display: grid; gap: 5px; }
.arch-services i { width: 55px; height: 27px; font-style: normal; }
.project-visual > p { margin-top: 3rem; color: #656a68; font: 400 9px/1.7 var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .12em; }

.personal-projects { background: #d9e8e4; color: #102c3c; }
.personal-projects .eyebrow, .personal-projects .section-heading-row > p { color: #5c7377; }
.personal-projects .eyebrow span, .personal-projects h2 em { color: #d24c34; }
.play-project { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 5rem; overflow: hidden; border: 1px solid rgba(16,44,60,.25); background: #f3f0e8; box-shadow: 12px 12px 0 rgba(16,44,60,.12); }
.play-copy { padding: clamp(2rem, 4.5vw, 4.5rem); }
.play-kicker { display: flex; justify-content: space-between; gap: 1rem; color: #68797b; font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.play-status { color: #16724f; }
.play-status i { display: inline-block; width: 6px; height: 6px; margin-right: .35rem; border-radius: 50%; background: #27a66f; }
.play-copy h3 { margin: 3.5rem 0 1.5rem; font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 700; line-height: .95; letter-spacing: -.07em; }
.play-description { max-width: 620px; margin: 0; color: #314b53; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.8; }
.play-data { max-width: 620px; margin: 1.5rem 0 0; padding-left: 1rem; border-left: 2px solid #e0b341; color: #607378; font-size: 12px; line-height: 1.7; }
.play-data strong { color: #102c3c; font-weight: 600; }
.play-stack { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.play-stack li { padding: .45rem .65rem; border: 1px solid rgba(16,44,60,.2); color: #506970; font: 500 9px var(--mono); text-transform: uppercase; }
.play-link { display: flex; align-items: center; justify-content: space-between; max-width: 310px; margin-top: 2.4rem; padding: .9rem 1rem; background: #102c3c; color: #fffaf0; font: 500 11px var(--mono); transition: transform .2s, background .2s; }
.play-link:hover { transform: translateY(-2px); background: #d24c34; }
.game-preview { position: relative; min-height: 620px; display: grid; place-items: center; padding: 4rem; overflow: hidden; background: #102c3c; }
.game-preview::before, .game-preview::after { content: ""; position: absolute; border-radius: 50%; }
.game-preview::before { width: 390px; height: 390px; right: -120px; top: -100px; background: #d24c34; opacity: .9; }
.game-preview::after { width: 280px; height: 280px; left: -100px; bottom: -90px; background: #e0b341; }
.game-window { position: relative; z-index: 2; width: min(100%, 390px); padding: 1.5rem; border: 1px solid rgba(255,255,255,.35); background: #f3f0e8; box-shadow: 10px 10px 0 rgba(0,0,0,.22); color: #102c3c; transform: rotate(1.5deg); }
.game-topbar { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgba(16,44,60,.2); font: 500 9px var(--mono); letter-spacing: .1em; }
.game-topbar i { color: #d24c34; font-style: normal; }
.country-shape { position: relative; height: 190px; display: grid; place-items: center; }
.country-shape svg { width: 84%; height: 84%; fill: #d9e8e4; stroke: #102c3c; stroke-width: 2; }
.country-shape span { position: absolute; font: 500 2.3rem var(--mono); }
.game-window > p { margin: .25rem 0 1rem; font-size: 13px; font-weight: 600; text-align: center; }
.guess-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid #102c3c; font: 500 10px var(--mono); }
.guess-row span { padding: .75rem; color: #65787c; }
.guess-row button { padding: .75rem 1rem; border: 0; background: #102c3c; color: #fff; font: inherit; }
.game-hint { margin-top: .8rem; padding: .65rem; background: #f0d46f; font: 500 10px var(--mono); text-align: center; }
.game-hint b { margin-right: .4rem; }
.floating-chip { position: absolute; z-index: 3; padding: .65rem .8rem; background: #f3f0e8; color: #102c3c; box-shadow: 5px 5px 0 rgba(0,0,0,.22); font: 500 8px var(--mono); letter-spacing: .08em; }
.chip-wikidata { left: 6%; top: 17%; transform: rotate(-5deg); }
.chip-streak { right: 7%; bottom: 15%; transform: rotate(5deg); background: #e0b341; }

.stack-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 5rem; border: 1px solid var(--line); }
.stack-primary, .stack-secondary { padding: clamp(2rem, 4vw, 4rem); }
.stack-secondary { border-left: 1px solid var(--line); }
.stack-grid p:first-child { margin: 0 0 2rem; color: var(--accent); font: 400 10px var(--mono); letter-spacing: .12em; }
.stack-primary ul { margin: 0; padding: 0; list-style: none; }
.stack-primary li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: clamp(1.05rem, 1.8vw, 1.5rem); }
.stack-primary li > span { color: #555a58; font: 400 9px var(--mono); }
.stack-primary li small { color: var(--muted); font: 400 9px var(--mono); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .65rem; }
.tag-cloud span { padding: .65rem .8rem; background: #1c2021; border: 1px solid var(--line); color: #adb0ad; font: 400 10px var(--mono); }
blockquote { margin: 3.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.8; }

.journey { background: #0e1112; }
.journey-grid { display: grid; grid-template-columns: 1.15fr .85fr; margin-top: 5rem; border: 1px solid var(--line); background: var(--surface); }
.career-column, .education-column { padding: clamp(2rem, 4vw, 4rem); }
.education-column { border-left: 1px solid var(--line); background: #141718; }
.journey-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; color: var(--muted); font: 400 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.journey-label span:first-child { color: var(--accent); }
.career-list { position: relative; margin: 0; padding: 0; list-style: none; }
.career-list::before { content: ""; position: absolute; top: 1.6rem; bottom: 1.6rem; left: 5px; width: 1px; background: var(--line); }
.career-list li { position: relative; display: grid; grid-template-columns: 110px 1fr auto; gap: clamp(1rem, 2vw, 2rem); padding: 1.25rem 0 1.25rem 2rem; border-top: 1px solid var(--line); }
.career-list li::before { content: ""; position: absolute; left: 2px; top: 1.65rem; width: 7px; height: 7px; border: 1px solid #59605e; border-radius: 50%; background: var(--surface); }
.career-list .career-current::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 9px rgba(129,208,152,.45); }
.career-list time { color: #727875; font: 400 9px var(--mono); }
.career-list h3 { margin: -.2rem 0 .25rem; font-size: clamp(.95rem, 1.3vw, 1.12rem); font-weight: 500; line-height: 1.45; letter-spacing: -.02em; }
.career-list h3 span { color: #6d7370; font: 400 9px var(--mono); }
.career-list p { margin: 0; color: var(--muted); font-size: 11px; }
.career-list i { align-self: start; padding: .25rem .45rem; background: rgba(129,208,152,.1); color: var(--green); font: normal 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.journey-link { display: flex; justify-content: space-between; max-width: 220px; margin-top: 2rem; padding: .75rem 0; border-bottom: 1px solid var(--line); color: #aeb1ad; font: 400 10px var(--mono); }
.journey-link span { color: var(--accent); }
.journey-link:hover { color: var(--text); border-color: var(--accent); }
.degree { position: relative; padding: 1.8rem; border: 1px solid var(--line); background: #111415; }
.degree + .degree { margin-top: 1rem; }
.degree-master { border-color: #5d4827; background: linear-gradient(145deg, rgba(255,184,77,.08), transparent 55%), #111415; }
.degree-top { display: flex; justify-content: space-between; color: var(--muted); font: 400 9px var(--mono); letter-spacing: .08em; }
.degree-top > span { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; }
.degree h3 { margin: 2.2rem 0 .25rem; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.04em; }
.degree-focus { margin: 0 0 1.2rem !important; color: var(--accent) !important; font: 400 10px var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; }
.degree > p { margin: 1rem 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.degree-note { display: block; padding-top: 1rem; border-top: 1px solid var(--line); color: #6f7472; font: 400 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.contact { background: var(--accent); color: #14120f; }
.contact .eyebrow, .contact .eyebrow span, .contact h2 em { color: rgba(20,18,15,.55); }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-top: 5rem; }
.contact-bottom > p { max-width: 500px; margin: 0; font-size: 1.05rem; }
.email-button { display: flex; flex-direction: column; align-items: flex-start; min-width: min(100%, 360px); padding: 1rem 0; border: 0; border-bottom: 1px solid rgba(20,18,15,.4); background: transparent; cursor: pointer; text-align: left; }
.email-button span { font: 500 clamp(1.2rem, 2.1vw, 1.8rem) var(--mono); }
.email-button i { margin-top: .3rem; font: normal 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

footer { padding: 2rem clamp(1.25rem, 6.5vw, 7.5rem); display: flex; justify-content: space-between; color: var(--muted); font: 400 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
footer p { margin: 0; }
footer div { display: flex; gap: 2rem; }
footer a:hover { color: var(--accent); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 10rem; }
  .hero-copy { max-width: 800px; }
  .system-panel { width: min(100%, 560px); justify-self: end; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .play-project { grid-template-columns: 1fr; }
  .game-preview { min-height: 540px; }
  .journey-grid { grid-template-columns: 1fr; }
  .education-column { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading-row { display: block; }
  .section-heading-row > p { margin-top: 2rem; }
}

@media (max-width: 700px) {
  .site-header { height: 66px; }
  .brand-status, nav > a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 6rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.7rem); }
  h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .system-panel { transform: none; }
  .panel-body { font-size: 10px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 1.8rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .project-title-row { margin-top: 3rem; }
  .project-title-row a { width: 42px; height: 42px; }
  .project-visual { min-height: 300px; padding: 1.5rem; }
  .play-kicker { flex-direction: column; }
  .play-copy h3 { margin-top: 2.5rem; }
  .game-preview { min-height: 450px; padding: 3rem 1.25rem; }
  .game-window { transform: none; }
  .floating-chip { display: none; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-secondary { border-left: 0; border-top: 1px solid var(--line); }
  .stack-primary li { grid-template-columns: 32px 1fr; }
  .stack-primary li small { display: none; }
  .career-list li { grid-template-columns: 86px 1fr; padding-left: 1.5rem; }
  .career-list i { display: none; }
  .career-list h3 span { display: block; margin-top: .25rem; }
  .contact-bottom { align-items: stretch; flex-direction: column; }
  .email-button { min-width: 0; width: 100%; }
  footer { gap: 1.5rem; flex-direction: column; }
  footer div { gap: 1rem; flex-wrap: wrap; }
}

@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; }
}
