/* ════════════════════════════════════════
   style.css — tokens, layout, sections
   VOICE   : professional first, game second; calm, confident, readable
   IDEA    : a clean portfolio with a HUD layer — XP bar, level map, target-lock hovers
   PICTURE : portrait in a HUD frame beside the headline; pixel sprites as small details
   COLOUR  : deep navy ground, one cyan accent, violet used sparingly
   TYPE    : Chakra Petch (headings), IBM Plex Sans (body), Silkscreen (small labels)
   ════════════════════════════════════════ */

:root {
  color-scheme: dark;

  --bg:       #0a0f1c;
  --bg-2:     #0d1424;
  --card:     #111a2e;
  --card-2:   #15203a;
  --line:     #22304d;
  --line-2:   #2f4166;

  --accent:   #3de0f0;
  --accent-2: #8b7bff;
  --accent-ink: #04161a;
  --live:     #45e39a;
  --gold:     #f2d04b;

  --ink:      #e9eef8;
  --ink-2:    #a7b3cc;
  --ink-3:    #7a86a3;

  --f-head:   'Chakra Petch', 'Segoe UI', sans-serif;
  --f-body:   'IBM Plex Sans', system-ui, sans-serif;
  --f-pixel:  'Silkscreen', 'Courier New', monospace;

  --max-w:    1160px;
  --pad-x:    max(5vw, 18px);
  --pad-y:    clamp(72px, 9vw, 120px);
  --nav-h:    68px;
  --ease:     cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { left: 8px; }

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(10,15,28,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
@media (min-width: 1260px) { .nav__inner { padding: 0; } }
.nav__logo { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--f-head); }
.nav__mark { width: 18px; height: 18px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s steps(5);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links .nav__cta { color: var(--accent); border: 1px solid rgba(61,224,240,.4); margin-left: 8px; padding: 9px 16px; }
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { background: var(--accent); color: var(--accent-ink); }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 13px 11px;
  background: none; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; background: var(--ink); }

/* Thin XP-style progress bar */
.xp { height: 3px; background: transparent; }
.xp__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) var(--pad-x) clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(61,224,240,.10), transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(139,123,255,.08), transparent 65%),
    radial-gradient(circle, rgba(167,179,204,.13) 1px, transparent 1.5px) 0 0 / 28px 28px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.hero__name { font: 600 clamp(44px, 6.2vw, 78px)/1.02 var(--f-head); letter-spacing: -.01em; margin: 22px 0 14px; }
.hero__role { font: 400 15px/1.4 var(--f-pixel); color: var(--accent); min-height: 1.4em; margin-bottom: 22px; }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__photo { position: relative; }
.frame { position: relative; }
.hero__placeholder {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background:
    linear-gradient(rgba(61,224,240,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(61,224,240,.06) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(circle at 50% 55%, #1b2a4a, #0d1424 72%);
  border: 1px solid var(--line);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.hero__placeholder-note {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font: 13px/1 var(--f-pixel); color: var(--ink-3);
}
.hero__caption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 14px; font-size: 14px; color: var(--ink-3);
}

.stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 24px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font: 600 40px/1 var(--f-head); color: var(--ink); }
.stat__num b { font-weight: 600; color: var(--accent); }
.stat__label { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }

/* ══════════════ SECTIONS ══════════════ */
.band { padding: var(--pad-y) var(--pad-x); }
.band--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head__tag { font: 13px/1 var(--f-pixel); color: var(--accent); margin-bottom: 16px; min-height: 1em; }
.sec-head__tag--center { text-align: center; }
.sec-head__title { font: 600 clamp(28px, 3.6vw, 42px)/1.12 var(--f-head); text-wrap: balance; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__text { display: grid; gap: 18px; color: var(--ink-2); max-width: 38em; }
.about__text p:first-child { color: var(--ink); font-size: 19px; }

/* Expertise */
.abilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* Case studies */
.cases { display: grid; gap: 26px; }

/* Experience */
.levels { position: relative; display: grid; gap: 12px; padding-left: 64px; max-width: 900px; }
.levels__track { position: absolute; left: 20px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.levels__progress { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--accent); box-shadow: 0 0 8px rgba(61,224,240,.6); }
.walker { position: absolute; left: 7px; top: 0; width: 28px; height: 28px; z-index: 2; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }

/* Contact */
.contact { text-align: center; background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(61,224,240,.08), transparent 70%), var(--bg); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font: 600 clamp(32px, 4.6vw, 52px)/1.08 var(--f-head); max-width: 16em; text-wrap: balance; margin-bottom: 16px; }
.contact__sub { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 34px; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.contact__addr { font-size: 15px; color: var(--ink-3); }

/* Footer */
.footer { padding: 26px var(--pad-x); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.footer__arcade { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink-2); transition: color .2s; }
.footer__arcade:hover { color: var(--gold); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1020px) {
  .abilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; }
  .nav__links {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,15,28,.98); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-x) 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; font-size: 17px; }
  .nav__links a::after { left: 4px; right: auto; width: 40px; }
  .nav__links .nav__cta { margin: 10px 0 0; text-align: center; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { max-width: 360px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  body { font-size: 16.5px; }
  .hero__lead { font-size: 17.5px; }
  .hero__photo { max-width: 280px; }
  .hero__ctas .btn, .contact__ctas .btn { flex: 1 1 100%; }
  .stat { padding: 20px 12px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat__num { font-size: 32px; }
  .abilities { grid-template-columns: minmax(0, 1fr); }
  .levels { padding-left: 48px; }
  .levels__track { left: 14px; }
  .walker { left: 2px; width: 26px; height: 26px; }
}
