:root {
  --bg: #0a0a14;
  --surface: #11111f;
  --line: #222238;
  --text: #e9e9f4;
  --muted: #9494ad;
  --blue: #4c7dff;
  --violet: #8b5cf6;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 36rem at 85% -10%, rgba(110, 80, 240, .18), transparent 60%),
    radial-gradient(40rem 28rem at -5% 20%, rgba(76, 125, 255, .10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.wrap { max-width: 80rem; margin: 0; padding: 0 1.5rem 0 clamp(1.25rem, 8vw, 7rem); }

/* top bar */
header.bar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: rgba(10,10,20,.7); border-bottom: 1px solid var(--line); }
header.bar .wrap { max-width: none; display: flex; justify-content: space-between; align-items: center; height: 3.5rem; }
.mark { font: 800 .95rem var(--display); letter-spacing: .02em; }
nav { display: flex; gap: 1.5rem; font-size: .95rem; color: var(--muted); }
nav a { padding: .6rem 0; }
nav a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 17rem; gap: 3rem; align-items: end; padding: clamp(3rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 5.5rem); }
.hero h1 {
  margin: 0;
  font: 800 clamp(2.4rem, 8.5vw, 5.5rem)/1 var(--display);
  letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--blue) 0%, var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero .full { margin: 1.75rem 0 0; font: 600 clamp(1.1rem, 2.4vw, 1.5rem) var(--display); }
.hero .lead { margin: 1.25rem 0 0; max-width: 36rem; color: var(--muted); }
.facts { margin: 0; padding-left: 1.5rem; border-left: 1px solid var(--line); display: grid; gap: 1.1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: .1rem 0 0; font-weight: 500; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { padding: .7rem 1.25rem; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--violet); }
.btn.primary { background: linear-gradient(100deg, var(--blue), var(--violet)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* sections */
section.row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem 3rem; padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 3.5rem; }
section.row > h2 { margin: 0; font: 600 .95rem var(--display); color: var(--muted); }
.content > *:first-child { margin-top: 0; }
.content p { margin: 0 0 1rem; max-width: 40rem; }
.item { padding-bottom: 1.75rem; }
.item:last-child { padding-bottom: 0; }
.item h3 { margin: 0; font: 600 1.1rem var(--body); }
.item .when { color: var(--muted); font-size: .95rem; }
.item p { margin: .4rem 0 0; color: var(--muted); max-width: 38rem; }
.item a.link { display: inline-block; margin-top: .5rem; color: var(--blue); font-weight: 600; font-size: .95rem; border-bottom: 1px solid transparent; }
.item a.link:hover { border-color: var(--blue); }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.skills h3 { margin: 0 0 .5rem; font: 600 1rem var(--body); }
.skills ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.skills li { padding: .15rem 0; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list span { width: 6rem; color: var(--muted); }
.contact-list a:hover { color: var(--blue); }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .facts { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); max-width: 24rem; }
}
@media (max-width: 720px) {
  .wrap { padding-right: 1.25rem; }
  body { font-size: 1rem; }
  section.row { grid-template-columns: 1fr; gap: 1rem; padding: 2.25rem 0; }
  nav { gap: 1.25rem; font-size: .9rem; }
  .hero .full { margin-top: 1.25rem; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .contact-list li { flex-direction: column; gap: .15rem; }
  .contact-list span { width: auto; font-size: .9rem; }
  .contact-list a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
}
