:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --card: #fff;
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1024px;
  --nav-h: 52px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font: inherit; font-size: 17px; font-weight: 400; letter-spacing: -.022em;
  color: #fff; background: var(--blue);
  border: 1px solid transparent; border-radius: 980px;
  cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), transform .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }

.btn--small { min-height: 28px; padding: 0 12px; font-size: 12px; letter-spacing: -.01em; }
.btn--large { min-height: 52px; padding: 0 30px; font-size: 18px; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: rgba(0, 113, 227, .06); }

.link-arrow { font-size: 17px; color: var(--link); }
.link-arrow::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .3em;
  border: solid currentColor; border-width: 1.5px 1.5px 0 0;
  transform: translateY(-.08em) rotate(45deg);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }

.nav__inner {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-right: auto; }
.nav__brand:hover { text-decoration: none; }

.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 12px; color: rgba(0, 0, 0, .8); letter-spacing: -.01em; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); text-decoration: none; }
.nav__links a.is-active { font-weight: 600; }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; background: var(--bg); overflow: hidden; }

.hero__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; margin-bottom: 22px;
  font-size: 14px; color: var(--ink); background: var(--bg-alt); border-radius: 980px;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #30a14e;
  box-shadow: 0 0 0 0 rgba(48, 161, 78, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 161, 78, .45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(48, 161, 78, 0); }
}

.eyebrow {
  font-size: 17px; font-weight: 600; color: #bf4800; letter-spacing: -.01em; margin-bottom: 10px;
}
.eyebrow--dark { color: #f5a35c; }

.hero__title {
  font-size: clamp(44px, 7.2vw, 80px);
  line-height: 1.05; font-weight: 700; letter-spacing: -.015em;
}

.hero__lede {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: var(--ink-2); letter-spacing: .004em;
}

.hero__cta { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero__photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 640 / 760; background: var(--bg-alt);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .25);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.roles {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.roles::before {
  content: "Roles I'm looking at"; width: 100%;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
  margin-bottom: 4px;
}
.roles li {
  font-size: 14px; padding: 7px 14px; border-radius: 980px;
  background: var(--bg-alt); color: var(--ink);
}

/* ---------- Section basics ---------- */

section { padding: 120px 0; }

.section-title {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06; font-weight: 700; letter-spacing: -.012em;
}
.section-lede {
  margin-top: 20px; max-width: 36em;
  font-size: 21px; line-height: 1.38; color: var(--ink-2); letter-spacing: .004em;
}

/* ---------- Impact (dark) ---------- */

.impact { background: #000; color: #f5f5f7; }
.impact .section-title { color: #f5f5f7; }

.stats {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}
.stat { border-top: 1px solid #424245; padding-top: 22px; }
.stat__value {
  font-size: clamp(48px, 6vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffb45e 0%, #ff6f61 55%, #e9488f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 12px; font-size: 17px; line-height: 1.4; color: #a1a1a6; max-width: 17em; }

/* ---------- Path ---------- */

.path { background: var(--bg-alt); }

.steps {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card); border-radius: var(--radius-sm);
  padding: 26px 22px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .2); }
.step__year { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 36px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.step:last-child { background: var(--ink); }
.step:last-child h3 { color: #f5f5f7; }
.step:last-child p, .step:last-child .step__year { color: #a1a1a6; }

/* ---------- Experience ---------- */

.experience .section-title { margin-bottom: 56px; }

.job { padding: 40px 0; border-top: 1px solid var(--line); }
.job__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.job__company { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.job__title { margin-top: 4px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: .002em; }
.job__meta {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
  font-size: 15px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums;
}
.job__meta span:first-child { color: var(--ink); font-weight: 500; }

.job__points { margin-top: 22px; max-width: 46em; display: grid; gap: 12px; }
.job__points li { position: relative; padding-left: 22px; color: #424245; }
.job__points li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
}

.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 980px; border: 1px solid var(--line); color: var(--ink-2); }

.job--compact { padding: 28px 0; }
.job--compact .job__title { font-size: 21px; }

.job--feature {
  margin-top: 16px; padding: 40px; border: 0;
  border-radius: var(--radius); background: linear-gradient(135deg, #f6efe6 0%, #efe6da 100%);
}
.job--feature .job__company { color: #8a6a43; }

/* ---------- Statement ---------- */

.statement { padding: 160px 0; text-align: center; background: var(--bg); }
.statement__text {
  font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; line-height: 1.05; letter-spacing: -.015em;
}
.statement__text span {
  display: inline-block; margin-top: 18px;
  font-size: clamp(21px, 2.4vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: .004em; color: var(--ink-2);
}

/* ---------- Capabilities ---------- */

.capabilities { background: var(--bg-alt); }

.bento {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tile {
  background: var(--card); border-radius: var(--radius); padding: 34px 30px 36px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: scale(1.015); box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .22); }
.tile--wide { grid-column: span 2; }
.tile--accent { background: linear-gradient(140deg, #0a84ff 0%, #5e5ce6 100%); color: #fff; }
.tile.tile--accent p { color: rgba(255, 255, 255, .88); }
.tile--accent .tile__icon { stroke: #fff; }

.tile__icon {
  width: 34px; height: 34px; fill: none; stroke: var(--blue);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tile h3 { margin-top: 26px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.tile p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }

.tools { margin-top: 56px; }
.tools__title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
}
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 15px; padding: 9px 16px; border-radius: 980px; background: var(--card); }

/* ---------- Credentials ---------- */

.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 34px 30px; }
.card__kicker {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
  margin-bottom: 18px;
}
.card h3 { font-size: 21px; line-height: 1.24; font-weight: 600; letter-spacing: .01em; }
.card h3 + h3 { margin-top: 16px; }
.card p { margin-top: 8px; font-size: 15px; color: #424245; }
.muted { color: var(--ink-3); font-weight: 400; }

.langs { display: grid; gap: 16px; }
.langs li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; font-size: 15px; }
.langs span:first-child { font-weight: 600; }
.langs em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.bar { height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.1s var(--ease) .2s;
}
.is-visible .bar::after { transform: scaleX(var(--level)); }

/* ---------- Contact ---------- */

.contact { background: var(--bg-alt); text-align: center; padding: 140px 0; }
.contact__title { font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.contact__lede { margin: 22px auto 0; max-width: 28em; font-size: 21px; color: var(--ink-2); }
.contact__actions { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact__list {
  margin-top: 44px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: 17px;
}

/* ---------- Footer ---------- */

.footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: var(--ink-3);
}
.footer a { color: var(--ink-2); }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  padding: 12px 20px; border-radius: 980px;
  font-size: 15px; color: #fff; background: rgba(29, 29, 31, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 240px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: -22px; margin-right: -22px; padding: 6px 22px 24px; scroll-padding: 0 22px;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
}

@media (max-width: 833px) {
  section { padding: 88px 0; }
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__grid { gap: 28px; }
  .hero__photo { width: 200px; order: -1; border-radius: 24px; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .25); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .bento, .cards { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .statement { padding: 110px 0; }

  .nav__inner { gap: 14px; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -12px;
    background: none; border: 0; cursor: pointer; padding: 0 12px;
  }
  .nav__toggle span {
    display: block; height: 1.5px; width: 18px; background: var(--ink); border-radius: 1px;
    transition: transform .3s var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 22px 28px;
    background: #fbfbfd; min-height: calc(100vh - var(--nav-h));
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav__links.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav__links a { font-size: 24px; font-weight: 600; padding: 12px 0; color: var(--ink); }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero__photo { width: 128px; border-radius: 22px; }
  .wrap, .nav__inner { padding-left: 18px; padding-right: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
  .stat__label { font-size: 15px; }
  .steps { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin: 64px 0 0; padding: 0; }
  .step h3 { margin-top: 14px; }
  .job__head { flex-direction: column; gap: 10px; }
  .job__meta { flex-direction: row; gap: 12px; align-items: baseline; text-align: left; }
  .job--feature { padding: 28px 22px; }
  .tile, .card { padding: 28px 24px; }
  .hero__cta { gap: 20px; }
  .contact__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s ease; }
  .status__dot { animation: none; }
  .step:hover, .tile:hover { transform: none; }
  .bar::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .nav__links { background: #fbfbfd; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Print: a clean one-pass CV ---------- */

@media print {
  .nav, .skip, .toast, .hero__cta, .contact__actions, .statement, .footer a { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  section { padding: 24px 0 !important; background: #fff !important; color: #000 !important; }
  .impact .section-title, .stat__value { color: #000 !important; -webkit-text-fill-color: #000; background: none; }
  .hero__photo { max-width: 160px; box-shadow: none; }
  .tile, .card, .step, .job--feature { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .tile--accent { background: #fff; color: #000; }
  a { color: #000; }
}
