:root {
  --bg: #0b0f17;
  --bg-alt: #0f1522;
  --surface: #121a2a;
  --surface-2: #17213a;
  --text: #e8edf6;
  --muted: #9aa8c2;
  --border: #223049;
  --accent: #4da3ff;
  --accent-2: #a78bfa;
  --accent-ink: #04111f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --header-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --text: #121826;
  --muted: #55627a;
  --border: #dbe3f0;
  --accent: #0a5fd1;
  --accent-2: #6d4bd8;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(20, 40, 90, 0.1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

.bar-actions { display: flex; gap: 8px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-btn { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 14vw, 150px) 0 clamp(48px, 8vw, 80px);
  isolation: isolate;
}
#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; }
.lead { max-width: 640px; margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--accent-ink);
}
.btn.big { padding: 16px 28px; font-size: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.stats li {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stats strong { display: block; font-size: 2rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 28px; }
.section-lead { color: var(--muted); max-width: 640px; margin: -12px 0 32px; }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.prose { color: var(--muted); font-size: 1.08rem; }
.skills { display: grid; gap: 14px; }
.skill-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.skill-row h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.skill-row p { font-size: 15.5px; }

.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline > li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding-left: 36px; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--accent);
}
.when { color: var(--muted); font-size: 14.5px; font-weight: 600; padding-top: 3px; }
.what h3 { font-size: 1.2rem; }
.sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.what ul { margin-top: 10px; display: grid; gap: 6px; }
.what li, .points li, .articles li { display: block; position: relative; padding-left: 18px; font-size: 16px; }
.what li::before, .points li::before, .articles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}


.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 16px; }
.card .link { margin-top: auto; font-weight: 600; font-size: 15px; }

.card.featured {
  margin-bottom: 20px;
  padding: 0;
  background:
    radial-gradient(900px 300px at 100% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%),
    radial-gradient(700px 260px at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--surface);
}
.card.featured .card-body { padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; }
.card.featured h3 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.tag-line { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.points { display: grid; gap: 8px; color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.panel h3 { font-size: 1.25rem; }
.panel p { color: var(--muted); }
.articles { display: grid; gap: 8px; }
.articles a { font-weight: 600; }

.contact { text-align: center; }
.contact .section-lead { margin-inline: auto; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.social a { color: var(--muted); font-weight: 600; }
.social a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

strong { color: var(--text); font-weight: 650; }
.what li { color: var(--muted); }
.media { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.media img {
  display: block;
  height: clamp(170px, 26vw, 260px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.btn.sm { padding: 9px 16px; font-size: 15px; justify-self: start; }

.history { margin-top: 28px; }
.history-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.step {
  display: block;
  height: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.step:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.step span { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.step small { color: var(--muted); font-size: 13px; }
.journey .current .step { border-color: var(--accent); background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
@media (prefers-reduced-motion: reduce) { .step { transition: none; } }
