/* === Tokens — Dark Electric === */
:root {
  --bg: #050813;
  --bg-elev: #0a0f1f;
  --card: #0c1326;
  --card-2: #0f1830;
  --line: #1a2748;
  --line-bright: #2a3d6e;
  --ink: #e9eef9;
  --ink-soft: #c4cde0;
  --ink-mute: #7a86a3;
  --accent: #3b8bff;
  --accent-bright: #5aa3ff;
  --accent-dim: #1f4d99;
  --accent-glow: rgba(59, 139, 255, 0.18);
  --good: #4ade80;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(59,139,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(59,139,255,0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 56px 80px;
}

/* === Top bar === */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.topbar .brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
}
.topbar .brand .glyph {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 13px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 6px 22px var(--accent-glow);
}
.topbar nav {
  display: flex; gap: 4px;
}
.topbar nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  transition: background 120ms ease, color 120ms ease;
}
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); background: var(--card); }
.topbar .cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600; font-size: 13.5px;
  box-shadow: 0 6px 22px var(--accent-glow), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.topbar .cta:hover { transform: translateY(-1px); background: var(--accent-bright); }

/* === Section label === */
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.section-label::before {
  content: ""; width: 28px; height: 1px;
  background: var(--accent);
}
.section-label .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.5;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 0.78fr 1.4fr 0.82fr;
  gap: 36px;
  margin-bottom: 80px;
}

/* hero LEFT — photo + impact */
.hero-left { display: flex; flex-direction: column; gap: 28px; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(59,139,255,0.35), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255,255,255,0.018) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.018) 24px 25px);
  z-index: 2;
  pointer-events: none;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.65) contrast(1.08) brightness(0.92);
}
.portrait .scan {
  position: absolute; inset: 12px;
  border: 1px solid rgba(91,163,255,0.25);
  border-radius: 8px;
  z-index: 3;
  pointer-events: none;
}

.impact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.impact-block h4 {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}
.impact {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.impact:first-of-type { border-top: none; padding-top: 0; }
.impact:last-of-type { padding-bottom: 0; }
.impact .num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.impact .desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.impact .desc strong { color: var(--ink); font-weight: 600; }

/* hero MIDDLE — name + about + brings */
.hero-mid h1 {
  font-size: clamp(56px, 6.6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 18px;
  color: var(--ink);
}
.tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}
.tagline .sep { color: var(--accent-dim); margin: 0 10px; }
.contact-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin: 0 0 28px;
}
.contact-row a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 120ms ease;
}
.contact-row a:hover { color: var(--accent-bright); }
.contact-row .icn {
  width: 18px; height: 18px;
  color: var(--accent);
}
.bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 44px;
  max-width: 62ch;
  text-wrap: pretty;
}
.bio strong { color: var(--ink); font-weight: 600; }

.brings { display: flex; flex-direction: column; gap: 22px; }
.bring {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
}
.icon-bubble {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(91,163,255,0.18), rgba(59,139,255,0.06));
  border: 1px solid rgba(91,163,255,0.4);
  color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(59,139,255,0.18), inset 0 0 12px rgba(91,163,255,0.08);
}
.icon-bubble svg { width: 20px; height: 20px; }
.bring p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-top: 9px;
}
.bring p strong { color: var(--ink); font-weight: 600; }

/* hero RIGHT — stats + chips */
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 12px;
  align-items: center;
  transition: border-color 160ms ease, transform 160ms ease;
}
.stat-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.stat-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num .unit {
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0;
}
.stat-card .label {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 6px;
}
.stat-card .icon-bubble {
  width: 40px; height: 40px;
  align-self: center;
  grid-row: 1 / span 2;
  grid-column: 2;
}

.stack-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.stack-card h4 {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
  text-align: center;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stack-chip {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.stack-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.also-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.also-card .icon-bubble { margin-top: 2px; }
.also-card h4 {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
}
.also-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* === Why work with me === */
.section { padding-top: 80px; }
.section h2 {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 24ch;
  text-wrap: balance;
}
.section h2 .accent { color: var(--accent); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  transition: border-color 160ms ease, transform 160ms ease;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(59,139,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.why-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.why-card:hover::before { opacity: 1; }
.why-card .icon-bubble { width: 52px; height: 52px; }
.why-card .icon-bubble svg { width: 24px; height: 24px; }
.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 10px;
  color: var(--ink);
}
.why-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* === Experience timeline (dark) === */
.xp-headers {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 100px;
  gap: 32px;
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-bright);
}
.role {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 100px;
  gap: 32px;
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  border-radius: 14px;
}
.role:hover { background: var(--card); }
.role.open {
  background: var(--card);
  border-top-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.role .yr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.role .yr .span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.role .title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.role .title .co {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  font-weight: 500;
}
.role .summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.role .chev {
  justify-self: end;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  align-self: start;
  padding-top: 4px;
}
.role:hover .chev, .role.open .chev { color: var(--accent-bright); }
.role .chev .arr {
  display: inline-block;
  margin-left: 6px;
  transition: transform 200ms ease;
}
.role.open .chev .arr { transform: rotate(90deg); }

.role-detail {
  grid-column: 2 / -1;
  padding: 8px 0 4px;
}
.role-detail ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 80ch;
}
.role-detail li {
  font-size: 14px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.role-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.role-detail .stacks {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.role-detail .stacks .chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--card-2);
}

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.faq.open { border-color: var(--line-bright); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease;
}
.faq-q:hover { background: rgba(59,139,255,0.04); }
.faq-q .chev {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  color: var(--accent);
  font-size: 12px;
  transition: transform 200ms ease, background 160ms ease;
}
.faq.open .faq-q .chev {
  transform: rotate(180deg);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.faq-a {
  padding: 0 24px 24px 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin: 0; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* === Contact / Closer === */
.closer {
  margin-top: 100px;
  padding: 64px 56px;
  background:
    radial-gradient(800px 300px at 30% 0%, rgba(59,139,255,0.18), transparent 70%),
    linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(59,139,255,0.03) 32px 33px);
  pointer-events: none;
}
.closer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.closer h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.closer h2 .accent { color: var(--accent); }
.closer p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  text-wrap: pretty;
}
.closer-rows {
  display: flex; flex-direction: column;
  gap: 10px;
}
.closer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(5,8,19,0.5);
  font-size: 14.5px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.closer-row:hover {
  border-color: var(--accent);
  background: rgba(59,139,255,0.06);
  transform: translateY(-2px);
}
.closer-row .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.closer-row .val {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 13.5px;
}
.closer-row .arr { color: var(--accent); transition: transform 200ms ease; }
.closer-row:hover .arr { transform: translate(4px, -4px); }

footer {
  margin-top: 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1240px) {
  .hero { grid-template-columns: 0.85fr 1.4fr; }
  .hero-right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .hero-right > * { flex: 1 1 280px; }
  .why-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .page { padding: 20px 20px 60px; }
  .hero { grid-template-columns: 1fr; }
  .hero-right > * { flex: 1 1 100%; }
  .topbar nav { display: none; }
  .role, .xp-headers { grid-template-columns: 90px 1fr 80px; gap: 14px; }
  .role .summary { grid-column: 2 / -1; }
  .role-detail { grid-column: 1 / -1; }
  .closer { padding: 36px 24px; }
  .closer-grid { grid-template-columns: 1fr; }
}
