:root {
  --bg: #0b0d12;
  --surface: #131722;
  --surface-2: #1a2030;
  --border: #252c3d;
  --text: #e8ebf2;
  --muted: #98a2b8;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbfd;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --border: #e2e6f0;
    --text: #141826;
    --muted: #596176;
    --accent: #6d3df0;
    --accent-2: #0891b2;
    --shadow: 0 10px 30px rgba(20, 24, 38, .08);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav nav a:hover { color: var(--text); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
  padding-block: 88px 64px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -120px -10% auto auto; width: 520px; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  filter: blur(20px);
}
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0 0 30px; }
.hero-photo { justify-self: center; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -10px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: .75; filter: blur(22px);
}
.hero-photo img {
  position: relative; width: min(360px, 78vw); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* BUTTONS */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); border-color: transparent; color: #fff; }

/* SECTIONS */
.section { padding-block: 64px; }
h2 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 28px; }
h2 .num { color: var(--accent-2); font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; margin-right: 10px; vertical-align: middle; }
.section-sub { color: var(--muted); margin: -14px 0 30px; }
.about { max-width: 68ch; color: var(--muted); }
.about p { margin: 0 0 16px; }

/* SKILLS */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
}
.chips.small li { padding: 3px 10px; font-size: 12.5px; background: var(--surface-2); }

/* GALLERY */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.thumb {
  aspect-ratio: 16 / 8; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.thumb svg { width: 56px; height: 56px; fill: rgba(255, 255, 255, .92); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body h3 { font-size: 20px; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-links { margin-top: auto; font-size: 15px; font-weight: 600; }
.card-links a { color: var(--accent-2); text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-weight: 400; font-size: 14px; }
.card-soon { background: transparent; border-style: dashed; }
.card-soon:hover { transform: none; box-shadow: none; }
.soon { margin: auto; text-align: center; color: var(--muted); padding: 40px 20px; }
.soon span { font-size: 40px; line-height: 1; display: block; color: var(--accent); }
.soon p { margin: 8px 0 0; }

/* CONTACT */
.contact {
  text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--surface);
}
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--muted); max-width: 48ch; margin: 0 auto 28px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer .links { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 32px; }
  .hero-photo { order: -1; justify-self: start; }
  .hero-photo img { width: 160px; border-radius: 20px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 14px; }
  .section { padding-block: 44px; }
}
@media (max-width: 480px) { .brand { display: none; } .nav-inner { justify-content: center; } }
