@font-face { font-family: "Inter"; font-weight: 100 900; src: url("vendor/inter-var.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("vendor/instrument-serif-italic.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #f3f1ec; --ink: #121212; --muted: #63635e; --line: #d9d6ce; --accent: #2f3cff;
  --pad: clamp(20px, 4vw, 56px); --max: 1240px; --edge: max(var(--pad), calc((100vw - var(--max)) / 2));
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ul, ol { list-style: none; }
em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--edge); background: rgb(243 241 236 / .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 18px; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); padding: 6px 0; }
.top nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 15px 24px; border-radius: 999px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link { font-weight: 600; text-underline-offset: 5px; }

.hero { position: relative; min-height: calc(100svh - 58px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  padding: 0 var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; margin: 20px 0 28px; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 34em; color: #33332f; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.stage { position: relative; height: min(78svh, 760px); min-height: 420px; }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(74%, 62svh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--accent); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.facts { border-block: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.facts div { padding: 26px 24px 26px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
dd { font-weight: 600; letter-spacing: -.01em; }

.block { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; }
.block > h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.block > :not(h2) { grid-column: 2; }
.num { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 650; }

.about .big { font-size: clamp(24px, 2.9vw, 42px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; text-wrap: pretty; }
.about p + p { margin-top: 28px; max-width: 36em; color: #33332f; }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.caps li { padding: 28px 28px 34px 0; border-bottom: 1px solid var(--line); }
.caps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.caps h3::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 18px; }
.caps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.note { margin-top: 28px; color: var(--muted); }
.note a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

.jobs { border-top: 1px solid var(--ink); }
.jobs > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.where { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.jobs h3 { font-size: 24px; }
.jobs div > p:not(.where) { max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-size: 14px; font-weight: 500; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .5); }
.big-tags li { font-size: 15px; padding: 8px 16px; }

.skills { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; border-top: 1px solid var(--ink); padding-top: 28px; }
.skills h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skills .gap { margin-top: 36px; }
.skills p { margin-top: 14px; font-weight: 600; }

.contact { margin-top: clamp(72px, 10vw, 140px); background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 140px) var(--pad); text-align: center; }
.contact .eyebrow { color: #a8a8a0; }
.contact h2 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -.04em; font-weight: 650; max-width: 16em; margin: 20px auto 40px; text-wrap: balance; }
.contact em { color: #9aa2ff; }
.contact .sub { color: #a8a8a0; margin: -16px 0 36px; }
.contact :focus-visible, .foot :focus-visible { outline-color: #9aa2ff; }
.foot { background: var(--ink); color: #a8a8a0; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px var(--edge) 32px; border-top: 1px solid #2c2c2c; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .top nav a:not(.btn):not([href="#experience"]) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; min-height: 0; }
  .stage { height: 46svh; min-height: 320px; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 20px 16px 20px 0; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .block { grid-template-columns: 1fr; gap: 20px; }
  .block > :not(h2) { grid-column: 1; }
  .caps { grid-template-columns: 1fr; }
  .caps li, .caps li:not(:nth-child(3n+1)) { padding: 24px 0 28px; border-left: 0; }
  .jobs > li { grid-template-columns: 1fr; gap: 8px; }
  .skills { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .top, .stage, .contact .btn { display: none; } .hero { min-height: 0; grid-template-columns: 1fr; } }
