/* IBM Plex, self-hosted. SIL Open Font License 1.1. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* palette: cool slate ground, navy band, one blue accent */
  --ground: #F5F6F8;
  --ink: #10151F;
  --ink-soft: #3A4252;
  --muted: #566070;
  --line: #D5D9E0;
  --accent: #1D3FCC;
  --accent-deep: #17329F;
  --band: #0F1626;
  --band-line: #2B3550;
  --band-text: #F5F6F8;
  --band-soft: #C9D1E3;
  --band-accent: #9DB1FF;
  /* type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* space, 4px base */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 6px;
  --bar: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, p, dl, dt, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.topbar a:focus-visible, .band a:focus-visible { outline-color: var(--band-accent); }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--s6);
  padding-right: var(--s6);
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #FFFFFF;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 4px;
  z-index: 20;
}
.skip:focus { top: 12px; }

/* Shared small type */
.eyebrow, .tag {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow { color: var(--band-accent); }
.tag { color: var(--muted); }
.tag.muted { font-size: 12px; }

/* Top bar: the one floating element */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 22, 38, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--band-line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--bar);
}
.brand {
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--band-text);
  padding: 12px 0;
}
.brand:hover { color: var(--band-accent); }
.topbar nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
}
.topbar nav a {
  text-decoration: none;
  color: var(--band-soft);
  padding: 14px 0;
  transition: color 150ms ease-out;
}
.topbar nav a:hover { color: #FFFFFF; }

/* Dark bands: hero and closing */
.band { background: var(--band); color: var(--band-text); }

.hero { padding-top: 88px; padding-bottom: var(--s8); }
h1 {
  margin-top: var(--s5);
  max-width: 900px;
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  margin-top: var(--s5);
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--band-soft);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s6);
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn-light { background: var(--band-text); color: var(--band); }
.btn-light:hover { background: #FFFFFF; color: var(--band); }
.btn-ghost-light { border-color: #8793AD; color: var(--band-text); }
.btn-ghost-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.avail { font-family: var(--mono); font-size: 14px; color: var(--band-text); }

/* Proof: one lead figure, three quiet ones */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6) var(--s8);
  align-items: end;
  margin-top: 80px;
  padding-top: var(--s6);
  border-top: 1px solid var(--band-line);
}
.proof-num {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-weight: 600;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.proof-num svg { width: 0.42em; height: auto; flex: none; color: #8793AD; }
.proof-num .after { color: var(--band-accent); }
.proof-label { margin-top: var(--s4); max-width: 34ch; font-size: 16px; line-height: 1.5; color: var(--band-soft); }

.proof-rest > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s5);
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--band-line);
}
.proof-rest > div:first-child { border-top: 0; padding-top: 0; }
.proof-rest > div:last-child { padding-bottom: 0; }
.proof-rest dt { font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.proof-rest dd { font-size: 16px; line-height: 1.5; color: var(--band-soft); }

/* Sections */
.section { padding-top: var(--s9); padding-bottom: var(--s9); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: baseline;
  gap: var(--s2) var(--s8);
  margin-bottom: var(--s6);
}
.section-head p { max-width: 56ch; font-size: 16px; color: var(--muted); }
h2 { font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }

/* Decision log: ruled entries, no boxes */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s6) var(--s8);
  padding: var(--s6) 0 56px;
  border-top: 2px solid var(--ink);
}
.entry h3 {
  margin-top: var(--s3);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.entry .role { margin-top: var(--s3); font-size: 15px; color: var(--muted); }
.key { margin-top: var(--s6); }
.key-num {
  display: block;
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.key-label { display: block; margin-top: var(--s2); font-size: 15px; color: var(--muted); }

.rows > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--s2) var(--s5);
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.rows > div:first-child { border-top: 0; padding-top: 4px; }
.rows > div:last-child { padding-bottom: 0; }
.rows dt {
  padding-top: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rows dd { max-width: 60ch; color: var(--ink-soft); text-wrap: pretty; }
.rows .result dt { color: var(--accent); }
.rows .result dd { color: var(--ink); font-weight: 500; }

/* Career: a quiet ruled list under the log */
.sub-head {
  padding-top: var(--s6);
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.career { margin-top: var(--s4); }
.career li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4px var(--s8);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.career li:first-child { border-top: 0; }
.career .years { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.career .title { font-weight: 600; }
.career .scope { color: var(--ink-soft); }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s7) var(--s6);
  padding-top: var(--s6);
  border-top: 2px solid var(--ink);
}
.project { display: flex; flex-direction: column; align-items: flex-start; }
.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.shot:hover img { transform: scale(1.025); }
.project .tag { margin-top: var(--s5); }
.project h3 { margin-top: var(--s2); font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.project > p:not(.tag) { margin-top: var(--s3); font-size: 16px; color: var(--ink-soft); text-wrap: pretty; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s3);
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
}
.more:hover { color: var(--accent-deep); }
.more svg { width: 16px; height: 16px; }

/* Closing band */
.closing { padding-top: var(--s9); }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s7) var(--s8);
  padding-bottom: var(--s8);
}
.closing h2 {
  margin-top: var(--s4);
  max-width: 20ch;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  text-wrap: balance;
}
.closing .why { margin-top: var(--s4); max-width: 46ch; color: var(--band-soft); }
.address { margin-top: var(--s4); font-family: var(--mono); font-size: 14px; color: var(--band-soft); }
.about p:not(.eyebrow) { margin-top: var(--s4); color: var(--band-soft); max-width: 44ch; }
.about p:not(.eyebrow) + p { margin-top: var(--s3); }
.fineprint {
  padding: var(--s5) 0 40px;
  border-top: 1px solid var(--band-line);
  max-width: none;
  font-size: 14px;
  line-height: 1.55;
  color: #A9B3C9;
}

/* One entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rise:nth-child(2) { animation-delay: 60ms; }
  .rise:nth-child(3) { animation-delay: 120ms; }
  .rise:nth-child(4) { animation-delay: 180ms; }
  .rise:nth-child(5) { animation-delay: 260ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Tablet */
@media (max-width: 920px) {
  .proof { grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: var(--s8); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s7); }
  .key { margin-top: var(--s5); }
  .career li { grid-template-columns: 140px minmax(0, 1fr); gap: 4px var(--s5); }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); align-items: start; justify-items: start; }
  .project .shot { grid-row: 1 / span 4; align-self: start; }
  .project .tag { margin-top: 0; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 600px) {
  :root { --bar: 56px; }
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .topbar nav { gap: 20px; }
  .hero { padding-top: 56px; padding-bottom: var(--s7); }
  .lede { font-size: 17px; }
  .avail { flex-basis: 100%; }
  .proof { margin-top: var(--s7); }
  .proof-rest > div { grid-template-columns: 92px minmax(0, 1fr); gap: var(--s4); }
  .proof-rest dt { font-size: 21px; }
  .section { padding-top: var(--s8); padding-bottom: var(--s8); }
  h2 { font-size: 28px; }
  .entry h3 { font-size: 23px; }
  .key-num { font-size: 44px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .rows dt { padding-top: 0; }
  .career li { grid-template-columns: minmax(0, 1fr); }
  .career .years { grid-row: auto; }
  .project { display: flex; }
  .project .tag { margin-top: var(--s4); }
  .closing { padding-top: var(--s8); }
}
