:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #141414;
  --line: #232323;
  --line-2: #2e2e2e;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --accent: #7cf3c0;
  --accent-dim: rgba(124, 243, 192, 0.12);
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 243, 192, 0.07), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(255, 255, 255, 0.03), transparent 60%);
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .section__intro a { color: var(--accent); }
p a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.brand__mark { color: var(--text); }
.brand__cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav nav { min-width: 0; }
.nav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { display: block; padding: 6px 12px; font-size: 14px; color: var(--text-2); border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--bg-2); }

/* HERO */
.hero { padding: 96px 0 40px; }
.hero__grid > * { min-width: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font-family: var(--mono); font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; max-width: 100%; padding: 6px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -0.04em; }
.hero__role { margin: 18px 0 0; font-family: var(--mono); font-size: clamp(15px, 2vw, 18px); color: var(--accent); }
.hero__lead { margin: 22px 0 0; max-width: 58ch; font-size: 18px; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; font-size: 15px; transition: border-color .2s, background .2s, transform .2s; }
.btn:hover { border-color: var(--text-3); background: var(--bg-2); }
.btn--primary { background: var(--text); color: #000; border-color: var(--text); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.badges li { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 4px 10px; border: 1px dashed var(--line-2); border-radius: 6px; }

.hero__photo { position: relative; justify-self: end; width: 100%; max-width: 340px; }
.hero__photo::before { content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 45%, transparent 60%, var(--line-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; filter: grayscale(100%) contrast(1.05); transition: filter .5s; }
.hero__photo:hover img { filter: grayscale(0%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: 13px; color: var(--text-3); }
.stats > div { min-width: 0; }
.stats dd { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

/* SECTIONS */
.section { padding: 88px 0 24px; }
.section__title { display: flex; align-items: baseline; gap: 14px; font-size: clamp(28px, 4vw, 38px); font-weight: 700; margin-bottom: 40px; }
.section__title::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-8px); }
.idx { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--accent); }
.section__intro { margin: -20px 0 32px; color: var(--text-2); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--text-2); font-size: 17px; }
.about p { margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; }

/* TIMELINE */
.timeline { position: relative; }
.job > * { min-width: 0; }
.job { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job__meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 4px; }
.job__date { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.job__place { font-size: 13px; color: var(--text-3); }
.tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px; }
.tag--live { color: var(--accent); background: var(--accent-dim); }
.job__body h3 { font-size: 21px; font-weight: 600; }
.job__company { margin: 4px 0 14px; color: var(--accent); font-weight: 500; }
.job__company--lg { font-size: 21px; font-weight: 600; color: var(--text); margin: 0 0 18px; }
.job__body > p { margin: 0 0 18px; color: var(--text-2); }
.job--current .job__body h3 { font-size: 24px; }

.roles { position: relative; margin: 0 0 20px; padding-left: 22px; }
.roles::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.roles li { position: relative; padding-bottom: 18px; }
.roles li:last-child { padding-bottom: 0; }
.roles li::before { content: ""; position: absolute; left: -22px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.roles li:not(:first-child)::before { border-color: var(--text-3); }
.roles h3 { font-size: 17px; }
.role__date { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.roles p { margin: 10px 0 0; color: var(--text-2); }

/* SKILLS */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* CERTS */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.cert { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; height: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s, background .2s; }
a.cert:hover { border-color: var(--accent); background: #161816; transform: translateY(-2px); }
.cert__year { grid-row: 1 / span 2; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.cert__name { font-size: 15px; font-weight: 500; line-height: 1.35; }
.cert__issuer { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* AWARDS */
.awards li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.awards li:first-child { border-top: 0; }
.awards__year { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.awards p { margin: 0; color: var(--text-2); }
.awards strong { color: var(--text); font-weight: 600; }

/* EDUCATION */
.edu { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.edu__list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.edu__list li:first-child { border-top: 0; padding-top: 0; }
.edu__year { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.edu__list h3 { font-size: 17px; font-weight: 600; }
.edu__list p { margin: 4px 0 0; font-size: 14px; color: var(--text-3); }
.langs dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.langs dl > div:first-child { border-top: 0; padding-top: 0; }
.langs dt { font-weight: 500; }
.langs dd { font-size: 14px; color: var(--text-2); }
.courses { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.courses summary { cursor: pointer; font-size: 14px; color: var(--text-2); list-style: none; }
.courses summary::-webkit-details-marker { display: none; }
.courses summary::before { content: "+ "; font-family: var(--mono); color: var(--accent); }
.courses[open] summary::before { content: "− "; }
.courses ul { margin-top: 12px; }
.courses li { font-size: 14px; color: var(--text-3); padding: 3px 0; }

/* CONTACT */
.contact { padding-bottom: 96px; }
.contact__lead { margin: 0 0 20px; color: var(--text-2); font-size: 18px; max-width: 52ch; }
.contact__mail { display: inline-block; font-size: clamp(22px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; border-bottom: 2px solid var(--line-2); transition: color .2s, border-color .2s; word-break: break-all; }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.socials a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: var(--text-3); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--text-3); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { order: -1; justify-self: start; max-width: 160px; }
  .hero__photo img, .hero__photo::before { border-radius: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .edu { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .eyebrow { border-radius: 12px; }
  .job__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
}
@media (max-width: 720px) {
  .nav__links a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .skills { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .stats dd { font-size: 20px; }
  .stats > div { padding: 18px; }
  .awards li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  body::before, .nav, .hero__cta, .hero__photo { display: none; }
  .card, .cert, .stats { background: #fff; border-color: #ccc; }
  * { color: #000 !important; }
}
