:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-strong: #111111;
  --ink: #f5f5f2;
  --muted: #8b8b87;
  --soft: #b6b6b1;
  --line: #242424;
  --line-strong: #3a3a3a;
  --inverse-bg: #f5f5f2;
  --inverse-ink: #070707;
  --logo-filter: invert(1);
  --header-bg: rgba(5, 5, 5, .84);
  --ambient: rgba(255, 255, 255, .09);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #efefeb;
  --surface-strong: #e7e7e1;
  --ink: #090909;
  --muted: #6e6e69;
  --soft: #3d3d3a;
  --line: #d6d6d0;
  --line-strong: #bcbcb5;
  --inverse-bg: #0a0a0a;
  --inverse-ink: #f7f7f4;
  --logo-filter: invert(0);
  --header-bg: rgba(247, 247, 244, .88);
  --ambient: rgba(0, 0, 0, .075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .28s ease, color .28s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
.shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
main { position: relative; isolation: isolate; }

.ambient-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-blur { position: absolute; display: block; border-radius: 50%; background: var(--ambient); filter: blur(110px); opacity: .7; will-change: transform; }
.blur-a { width: 430px; height: 430px; right: -190px; top: 11%; animation: ambient-float-a 17s ease-in-out infinite alternate; }
.blur-b { width: 360px; height: 360px; left: -210px; top: 62%; opacity: .42; animation: ambient-float-b 21s ease-in-out infinite alternate; }
@keyframes ambient-float-a { from { transform: translate3d(0, -30px, 0) scale(.95); } to { transform: translate3d(-90px, 120px, 0) scale(1.13); } }
@keyframes ambient-float-b { from { transform: translate3d(0, 50px, 0) scale(.92); } to { transform: translate3d(120px, -70px, 0) scale(1.08); } }

.reveal-ready [data-reveal] {
  opacity: 0;
  filter: blur(13px);
  transform: translate3d(0, 30px, 0) scale(.992);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .95s cubic-bezier(.2,.7,.2,1), filter 1.05s cubic-bezier(.2,.7,.2,1);
  transition-delay: 0ms;
  will-change: opacity, transform, filter;
}
.reveal-ready [data-reveal-delay="1"] { transition-delay: 90ms; }
.reveal-ready [data-reveal-delay="2"] { transition-delay: 180ms; }
.reveal-ready [data-reveal-delay="3"] { transition-delay: 270ms; }
.reveal-ready [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }

.nav {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.signature-logo { width: 82px; height: 54px; object-fit: contain; filter: var(--logo-filter); transition: filter .25s ease; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; color: var(--muted); font-size: 12px; }
.nav-links a, .linkedin-nav { transition: color .2s ease; }
.nav-links a:hover, .linkedin-nav:hover { color: var(--ink); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.linkedin-nav { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 12px; }
.linkedin-nav svg { width: 14px; height: 14px; }

.theme-toggle {
  width: 72px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.theme-option { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
.theme-option svg { width: 15px; height: 15px; }
.theme-option.active { background: var(--ink); color: var(--bg); }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
  padding-block: 118px 86px;
}
.hero-main { max-width: 860px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 60px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero-name {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 590;
  margin: 0 0 24px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 34px; font-size: clamp(68px, 8.4vw, 124px); line-height: .87; letter-spacing: -.075em; font-weight: 610; }
h1 span { color: var(--muted); }
.hero-intro { max-width: 690px; color: var(--soft); font-size: 18px; line-height: 1.65; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); border-radius: 0; font-size: 12px; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.button:hover svg { transform: translate(2px, -2px); }
.button-solid { background: var(--ink); color: var(--bg); }
.button-solid:hover { background: transparent; color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--bg); }
.hero-aside { padding-top: 20px; border-top: 1px solid var(--line-strong); align-self: end; }
.aside-number, .section-index { display: block; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.aside-number { margin-bottom: 38px; }
.aside-line { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.aside-line span { color: var(--muted); font-size: 10px; }
.aside-line strong { font-size: 11px; font-weight: 560; text-align: right; }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-strong); }
.proof article { min-height: 130px; padding: 25px 0; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof article:not(:first-child) { padding-left: 28px; }
.proof article:last-child { border-right: 0; }
.proof strong { font-size: clamp(34px, 4vw, 55px); letter-spacing: -.055em; font-weight: 560; }
.proof span { color: var(--muted); font-size: 11px; margin-top: 7px; }

.stack-strip { min-height: 104px; display: grid; grid-template-columns: 180px 1fr; gap: 56px; align-items: center; border-bottom: 1px solid var(--line-strong); }
.stack-strip > span { color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.stack-strip > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.stack-strip strong { padding: 7px 10px; border: 1px solid var(--line); color: var(--soft); font-size: 9px; font-weight: 540; letter-spacing: .02em; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.stack-strip strong:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-2px); }

.work-section { padding-block: 150px 130px; }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 56px; align-items: start; margin-bottom: 70px; }
.section-head h2 { max-width: 900px; margin: -10px 0 0; font-size: clamp(44px, 5.8vw, 78px); line-height: .98; letter-spacing: -.06em; font-weight: 570; }
.work-list { border-top: 1px solid var(--line-strong); }
.work-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 42px; padding: 44px 18px; margin-inline: -18px; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .3s ease; }
.work-row:hover { background: var(--surface); }
.work-copy { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.work-row:hover .work-copy { transform: translateX(7px); }
.work-index { display: flex; flex-direction: column; gap: 13px; }
.work-index > span { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.work-index small { max-width: 150px; color: var(--muted); font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.work-copy h3 { font-size: 29px; letter-spacing: -.035em; font-weight: 580; margin-bottom: 13px; }
.work-copy > p { max-width: 630px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag-list span { padding: 6px 9px; border: 1px solid var(--line); color: var(--soft); font-size: 9px; }
.work-links { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; }
.work-links a, .work-links > span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.work-links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.work-links svg { width: 13px; height: 13px; }

.expertise-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.expertise-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.expertise-list article { min-height: 280px; padding: 30px 36px 30px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.expertise-list article:hover { background: var(--surface); }
.expertise-list h3, .expertise-list p { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.expertise-list article:hover h3, .expertise-list article:hover p { transform: translateX(8px); }
.expertise-list article:nth-child(odd) { border-right: 1px solid var(--line); }
.expertise-list article:nth-child(even) { padding-left: 36px; }
.expertise-list article > span { color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.expertise-list h3 { margin: 67px 0 15px; font-size: 27px; letter-spacing: -.035em; font-weight: 580; }
.expertise-list p { max-width: 500px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.growth-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.growth-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: end; padding: 0 0 36px 236px; border-bottom: 1px solid var(--line-strong); }
.growth-intro > p { max-width: 670px; margin: 0; color: var(--soft); font-size: 16px; line-height: 1.65; }
.growth-intro > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.growth-intro span { padding: 7px 9px; border: 1px solid var(--line-strong); color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.growth-grid article { min-height: 560px; padding: 32px 34px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.growth-grid article:first-child { padding-left: 0; }
.growth-grid article:last-child { padding-right: 0; border-right: 0; }
.growth-grid article:hover { background: var(--surface); }
.growth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.growth-card-top small { font: inherit; }
.growth-grid h3 { margin: 74px 0 17px; font-size: clamp(30px, 3.1vw, 43px); line-height: 1; letter-spacing: -.05em; font-weight: 570; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.growth-grid article:hover h3 { transform: translateX(7px); }
.growth-grid > article > p { min-height: 68px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.growth-grid ul { list-style: none; padding: 0; margin: 38px 0 0; border-top: 1px solid var(--line); }
.growth-grid li { min-height: 43px; padding: 10px 0; display: grid; grid-template-columns: 13px 1fr; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 10px; line-height: 1.45; }
.growth-grid li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.journey-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.journey-layout { display: block; }
.experience-list { max-width: 1000px; margin-left: 236px; border-top: 1px solid var(--line-strong); }
.experience-list article { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.experience-meta { display: flex; flex-direction: column; gap: 8px; }
.experience-meta span { font: 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.experience-meta small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.experience-copy h3 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.03em; font-weight: 580; }
.experience-copy strong { color: var(--soft); font-size: 11px; font-weight: 550; }
.experience-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 18px 0 0; }
.credentials-section { padding-block: 115px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line-strong); }
.credentials-section h2 { max-width: 470px; margin: 28px 0 0; font-size: clamp(38px, 4.7vw, 64px); line-height: 1; letter-spacing: -.055em; font-weight: 570; }
.credentials-section ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.credentials-section li { min-height: 66px; display: grid; grid-template-columns: 55px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.credentials-section li span { color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.credentials-section li strong { font-size: 13px; font-weight: 560; }

.life-section { padding-block: 140px; border-top: 1px solid var(--line-strong); }
.life-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.life-grid article { min-height: 410px; padding: 30px 42px 34px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.life-grid article::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--ink); right: -170px; bottom: -170px; opacity: 0; filter: blur(70px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.life-grid article:hover::before { opacity: .12; transform: translate(-60px, -55px) scale(1.18); }
.life-grid article > * { position: relative; z-index: 1; }
.life-grid article:first-child { border-right: 1px solid var(--line); }
.life-grid article:last-child { padding-left: 42px; }
.life-card-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.life-card-top small { font: inherit; }
.life-grid h3 { max-width: 520px; margin: 100px 0 19px; font-size: clamp(38px, 4.4vw, 62px); line-height: .98; letter-spacing: -.055em; font-weight: 570; }
.life-grid p { max-width: 530px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.life-grid > article > strong { margin-top: auto; color: var(--soft); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }

.contact-strip { min-height: 360px; padding-block: 68px; border-block: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.contact-strip h2 { max-width: 760px; margin: 28px 0 0; font-size: clamp(48px, 6.6vw, 88px); line-height: .94; letter-spacing: -.065em; font-weight: 570; }
.contact-strip-actions { min-width: 220px; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.contact-strip-actions a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.contact-strip-actions a:hover { color: var(--muted); }
.contact-strip-actions svg { width: 15px; height: 15px; }
.footer { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 10px; }
.footer-logo { width: 68px; height: 46px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-aside { max-width: 600px; }
  .stack-strip { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .stack-strip > div { justify-content: flex-start; }
  .work-row { grid-template-columns: 130px 1fr; }
  .work-links { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .growth-intro { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .growth-intro > div { justify-content: flex-start; }
  .growth-grid { grid-template-columns: 1fr; }
  .growth-grid article, .growth-grid article:first-child, .growth-grid article:last-child { min-height: auto; padding: 34px 0 38px; border-right: 0; }
  .growth-grid h3 { margin-top: 50px; }
  .growth-grid > article > p { min-height: 0; }
  .experience-list { margin-left: 0; }
  .credentials-section { grid-template-columns: 1fr; gap: 55px; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip-actions { max-width: 500px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1240px); }
  .nav { min-height: 74px; grid-template-columns: 1fr auto; }
  .signature-logo { width: 66px; height: 44px; }
  .nav-links, .linkedin-nav { display: none; }
  .nav-actions { grid-column: 2; }
  .hero { padding-block: 84px 65px; gap: 70px; }
  .eyebrow { margin-bottom: 43px; font-size: 8px; }
  .hero-name { font-size: clamp(27px, 9vw, 38px); margin-bottom: 20px; }
  h1 { font-size: clamp(57px, 17vw, 82px); }
  .hero-intro { font-size: 16px; }
  .button { width: 100%; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article { min-height: 105px; border-bottom: 1px solid var(--line); }
  .proof article:nth-child(2n) { border-right: 0; padding-left: 18px; }
  .proof article:nth-last-child(-n+2) { border-bottom: 0; }
  .proof article:nth-child(3) { padding-left: 0; }
  .stack-strip { min-height: 0; }
  .work-section { padding-block: 100px 80px; }
  .section-head { grid-template-columns: 1fr; gap: 35px; margin-bottom: 50px; }
  .section-head h2 { margin-top: 0; font-size: 45px; }
  .work-row { grid-template-columns: 1fr; gap: 30px; padding-block: 36px; }
  .work-links { grid-column: 1; }
  .expertise-section, .growth-section, .journey-section { padding-block: 95px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list article, .expertise-list article:nth-child(even) { min-height: 235px; padding: 28px 0; border-right: 0; }
  .expertise-list h3 { margin-top: 52px; }
  .experience-list article { grid-template-columns: 1fr; gap: 25px; }
  .experience-meta { flex-direction: row; justify-content: space-between; }
  .credentials-section { padding-block: 90px; gap: 42px; }
  .life-section { padding-block: 95px; }
  .life-grid { grid-template-columns: 1fr; }
  .life-grid article, .life-grid article:last-child { min-height: 340px; padding: 26px 0 30px; border-right: 0; }
  .life-grid h3 { margin-top: 72px; font-size: 44px; }
  .contact-strip { min-height: 0; padding-block: 80px; }
  .contact-strip h2 { font-size: 49px; }
  .footer { min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
}
