@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0f14;
  --surface: #11171f;
  --fg: #e6edf3;
  --muted: #8b98a7;
  --line: #1f2a36;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.14);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --fg: #0f1720;
    --muted: #5b6878;
    --line: #e2e8f0;
    --accent: #1f6feb;
    --accent-soft: rgba(31, 111, 235, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.small { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; margin: 1.5rem 0 0.75rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 3.5rem; }
.brand { font-family: var(--mono); color: var(--fg); font-weight: 500; }
.brand:hover { text-decoration: none; }
.prompt { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links a { color: var(--muted); margin-left: 1.5rem; font-size: 0.9rem; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* hero */
.hero { padding-top: 6rem; padding-bottom: 3rem; }
.eyebrow { color: var(--accent); font-size: 0.9rem; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
.name-row { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1.25rem; }
.avatar {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.lede { font-size: 1.2rem; max-width: 40rem; color: var(--muted); margin: 0 0 1.5rem; }
.lede strong { color: var(--fg); font-weight: 600; }
.meta { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.sep { opacity: 0.5; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { filter: brightness(1.08); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  gap: 1px;
  overflow: hidden;
  padding: 0;
  margin-top: 1rem;
}
.stat { padding: 1.25rem; background: var(--surface); }
.stat .year { display: block; font-size: 0.75rem; color: var(--accent); margin-bottom: 0.4rem; }
.stat h3 { font-size: 0.98rem; line-height: 1.35; margin: 0; }
.stat p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; margin: 0.4rem 0 0; }

/* sections */
section { padding: 4rem 0 0; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 1.75rem; display: flex; align-items: baseline; gap: 0.75rem; }
.idx { font-size: 0.85rem; color: var(--accent); font-weight: 400; }
h3 { font-size: 1.05rem; margin: 0; }
h4 { font-size: 1rem; font-weight: 600; margin: 0; }

/* focus cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-list { list-style: none; margin: 0.75rem 0 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.card-list li { position: relative; padding-left: 1.1rem; margin-bottom: 0.3rem; }
.card-list li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.icon {
  width: 36px; height: 36px; padding: 7px;
  border-radius: 8px;
  background: var(--accent-soft);
  stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1rem;
}

/* timeline */
.row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem; }
.row .mono { font-size: 0.8rem; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--line); }
.timeline > li { position: relative; padding-bottom: 1.6rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.5rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted);
}
.timeline > li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.team { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin: 0.1rem 0 0; }
.timeline p:not(.team) { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 0; max-width: 42rem; }


/* experience: collapsible companies */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.toggle-all {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}
.toggle-all:hover { color: var(--accent); border-color: var(--accent); }

.org {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.org:hover, .org[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.org-head {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 3rem 1rem 1rem;
  list-style: none;
  cursor: pointer;
  position: relative;
}
.org-head::-webkit-details-marker { display: none; }
.org-head::after {
  content: "";
  position: absolute;
  right: 1.25rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.org[open] .org-head::after { transform: rotate(225deg); margin-top: -2px; }
.org-head:hover::after { border-color: var(--accent); }
.org-head:hover h3 { color: var(--accent); }
.org-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.org-title { flex: 1; min-width: 0; }
.org-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1rem; }
.org-line h3 { font-size: 1.1rem; }
.org-line .mono { font-size: 0.8rem; white-space: nowrap; }
.org-sub { margin: 0.15rem 0 0; font-size: 0.9rem; }
.logo {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo:has(img[src*="mastercard"]) img { width: 70%; }
.logo.dark { background: #15191e; }

.org .timeline {
  margin: 0.25rem 1.25rem 1.5rem 37px;
  animation: reveal 0.2s ease-out;
}
.bullets { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; max-width: 44rem; }
.bullets li { margin-bottom: 0.35rem; }
.bullets li:last-child { margin-bottom: 0; }
.bullets li::marker { color: var(--accent); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 640px) {
  .org-head { padding: 0.9rem 2.5rem 0.9rem 0.9rem; }
  .org-head::after { right: 1rem; }
  .org .timeline { margin: 0.25rem 1rem 1.25rem 30px; }
}

/* background */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; }
.two-col p { margin: 0 0 0.5rem; }
.plain { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.plain li { margin-bottom: 0.3rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

/* contact */
.contact {
  margin-top: 4rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
}
.contact h2 { margin-bottom: 0.75rem; }
.contact p { color: var(--muted); margin: 0; }

footer { padding-top: 3rem; padding-bottom: 3rem; font-size: 0.8rem; }

@media (max-width: 640px) {
  .nav-links a { margin-left: 1rem; font-size: 0.85rem; }
  .nav-links a:nth-child(3) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 4px var(--accent-soft); }
  .name-row { gap: 1rem; }
  .contact { padding: 1.75rem; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .org .timeline { animation: none; }
  html { scroll-behavior: auto; }
}
