:root {
  --bg: #030303;
  --ink: #f4f4f1;
  --muted: #aeaeaa;
  --dim: #969690;
  --line: rgba(244, 244, 241, 0.11);
  --line-strong: rgba(244, 244, 241, 0.2);
  --panel: #080808;
  --body-font: 'Courier Prime', 'Courier New', Courier, ui-monospace, monospace;
  --title-font: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono-font: 'Courier Prime', 'Courier New', Courier, ui-monospace, monospace;
  --max: 1460px;
  --pad-x: clamp(26px, 5.4vw, 98px);
  --body-size: clamp(1.04rem, 1.35vw, 1.25rem);
  --body-line: 1.62;
  --title-gap: clamp(40px, 3.5vw, 52px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  overflow-x: hidden;
}

body::selection { background: var(--ink); color: var(--bg); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.045), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 32%);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .24;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 30;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  padding: 0 max(var(--pad-x), (100% - var(--max)) / 2);
  border-bottom: 1px solid var(--line);
  background: rgba(3,3,3,.72);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 178px;
  filter: invert(1) brightness(1.12);
  opacity: .96;
}

.primary-nav,
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3.7vw, 62px);
}

.primary-nav a,
.private-link,
.site-footer a,
.site-footer span {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .08em;
  transition: color .2s ease;
}

.primary-nav a:hover,
.private-link:hover,
.site-footer a:hover { color: var(--ink); }

.private-link {
  justify-self: end;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(244,244,241,.55);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-nav-open="true"] .nav-toggle-bars { background: transparent; }
.site-header[data-nav-open="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav-open="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.section-nav {
  position: fixed;
  z-index: 18;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 21px;
  justify-items: end;
}

.section-nav::before {
  content: '';
  position: absolute;
  right: -13px;
  top: -16px;
  bottom: -16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}

.section-nav a {
  position: relative;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .03em;
}

.section-nav a::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--line-strong);
}

.section-nav a.active { color: var(--ink); }
.section-nav a.active::after { background: var(--ink); width: 22px; }

.side-honor {
  position: fixed;
  z-index: 15;
  left: 0;
  top: 36%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 124px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.03);
  color: var(--ink);
}

.side-honor span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono-font);
  font-size: 14px;
}
.side-honor strong { position: absolute; top: 12px; font-size: 18px; }

main { position: relative; z-index: 2; }

.screen {
  min-height: 100svh;
  position: relative;
  padding: 126px max(var(--pad-x), (100% - var(--max)) / 2) 72px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.screen::after {
  content: attr(data-section);
  position: absolute;
  right: clamp(62px, 8vw, 138px);
  bottom: 80px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,244,241,.055);
  font-family: var(--title-font);
  font-size: clamp(8rem, 17vw, 18rem);
  line-height: .75;
  font-weight: 800;
  letter-spacing: .01em;
  z-index: -1;
}

.section-kicker {
  margin: 0 0 28px;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2,
p,
dl,
dd,
ul { margin: 0; }

h1 {
  max-width: 920px;
  margin-left: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 5.8vw, 6.6rem);
  line-height: .9;
  letter-spacing: .01em;
  font-weight: 700;
  text-wrap: balance;
}

/* Homepage hero headline: always two lines ("Healthcare AI." / "Enterprise UX.").
   Sized so the longest line fits the left column at every width; nowrap guarantees
   the <br> is the only break. */
.intro-screen h1 {
  white-space: nowrap;
  text-wrap: nowrap;
}

.intro-screen {
  display: flex;
  flex-direction: column;
  padding-top: 84px;
  padding-bottom: 36px;
}

.hero-layout {
  width: min(100%, var(--max));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 0.78fr);
  gap: clamp(30px, 5.2vw, 82px);
  align-items: center;
}

.intro-copy {
  min-width: 0;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 62px);
  margin: 0 0 clamp(28px, 4.4vh, 48px);
}

.hero-kpis div {
  display: grid;
  gap: 6px;
}

.hero-kpis strong {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(2.1rem, 3.3vw, 3.4rem);
  line-height: .9;
  letter-spacing: .005em;
  font-weight: 600;
}

.hero-kpis span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-subcopy {
  max-width: 660px;
  margin-top: var(--title-gap);
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.6;
}

.hero-portrait {
  position: relative;
  margin: 0;
  min-height: clamp(500px, 74svh, 760px);
  align-self: stretch;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 12% 0 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(244,244,241,.14), transparent 42%),
    linear-gradient(180deg, rgba(244,244,241,.025), rgba(244,244,241,.015));
  border: 1px solid rgba(244,244,241,.08);
  z-index: -1;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, var(--bg) 86%);
  pointer-events: none;
}

.hero-portrait img {
  width: min(152%, 720px);
  max-width: none;
  object-fit: contain;
  transform: translateY(0);
  filter: grayscale(.12) contrast(1.06) brightness(.92);
}

h2 {
  font-family: var(--title-font);
  font-size: clamp(3.45rem, 5.4vw, 6.1rem);
  line-height: .9;
  letter-spacing: .01em;
  font-weight: 700;
  max-width: 1040px;
  text-wrap: balance;
}

.fact-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, max-content));
  justify-content: space-between;
  column-gap: clamp(24px, 2.4vw, 44px);
  row-gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-row dt {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.fact-row dd {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 14px;
}

.section-title-wrap {
  margin-left: clamp(0px, 12vw, 250px);
  max-width: 930px;
}
.section-title-wrap p:not(.section-kicker) {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.project-screen {
  align-content: end;
  padding-bottom: clamp(120px, 18vh, 220px);
}

.project-line {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 180px;
  gap: 36px;
  align-items: end;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-index,
.project-type,
.project-note {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-main {
  display: grid;
  gap: 16px;
}

.project-title {
  display: block;
  max-width: 980px;
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: .91;
  letter-spacing: .01em;
  font-weight: 700;
  transition: color .2s ease;
}

.project-line:hover .project-title { color: #fff; }
.project-note { justify-self: end; text-align: right; }

.project-context {
  max-width: 720px;
  margin: 34px 0 0 clamp(146px, 10vw, 190px);
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.65;
}

.archive-screen,
.approach-screen {
  align-content: center;
}

.archive-intro {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.archive-grid {
  width: min(100%, var(--max));
  margin: var(--title-gap) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.archive-grid div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px 36px 26px 0;
  border-bottom: 1px solid var(--line);
}

.archive-grid strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
}

.archive-grid span {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.5;
}

/* Awards & Recognition (#awards) */
.awards-groups {
  width: min(100%, var(--max));
  margin: var(--title-gap) auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 68px) clamp(40px, 6vw, 96px);
}
.awards-group-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.awards-group-head h3 {
  font-family: var(--title-font);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--ink);
}
.awards-group-head p {
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.awards-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: baseline;
}
.awards-list .award-tier {
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.awards-list .award-cat {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.45;
}

.approach-screen {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.approach-copy {
  max-width: 1050px;
}

.approach-copy ul {
  list-style: none;
  padding: 0;
  margin-top: var(--title-gap);
  border-top: 1px solid var(--line);
}

.approach-copy li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

.approach-copy li span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
}

.portrait-badge {
  margin: 0;
  align-self: end;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.08), transparent 70%);
}

.portrait-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translateY(10px);
  filter: grayscale(.08) contrast(1.05) brightness(.94);
}

.contact-copy {
  max-width: 1120px;
}

.email-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--muted);
  font-family: var(--title-font);
  font-size: clamp(2rem, 5.8vw, 6.4rem);
  line-height: 1;
  letter-spacing: .005em;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s ease;
}
.email-link:hover { color: var(--ink); }

.site-footnote {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vh, 64px) max(var(--pad-x), (100% - var(--max)) / 2) clamp(56px, 9vh, 100px);
  border-top: 1px solid var(--line);
}
.site-footnote p {
  max-width: 840px;
  margin: 0;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(var(--pad-x), (100% - var(--max)) / 2);
  border-top: 1px solid var(--line);
}
.site-footer span:last-child { justify-self: end; }

.to-top {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244,244,241,.45);
  background: rgba(8,8,8,.8);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, color .2s ease;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
  align-items: center;
}

.button-link,
.text-link {
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.button-link:hover { transform: translateY(-2px); opacity: .9; }

.text-link {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 7px;
  transition: color .2s ease, border-color .2s ease;
}

.text-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.work-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(46px, 7vh, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-brief div {
  display: grid;
  gap: 14px;
  padding: 28px 34px 28px 0;
}

.work-brief div + div {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.work-brief span,
.case-meta dt,
.fit-grid article span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work-brief strong {
  max-width: 380px;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: .01em;
  font-weight: 600;
}

.case-screen {
  align-content: center;
  gap: clamp(34px, 6vh, 72px);
}

.case-body {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.case-body .project-context {
  margin: var(--title-gap) 0 0;
}

.case-meta {
  display: grid;
  border-top: 1px solid var(--line);
}

.case-meta div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.case-meta dd {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

.capabilities-screen,
.fit-screen {
  align-content: center;
}

.archive-grid strong,
.fit-grid h3 {
  font-family: var(--title-font);
  letter-spacing: .01em;
  font-weight: 600;
}

.fit-intro {
  margin-left: clamp(0px, 12vw, 250px);
  max-width: 1080px;
}

.fit-grid {
  width: min(100%, 1180px);
  margin: clamp(54px, 8vh, 90px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.fit-grid article {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 30px 28px;
  border-bottom: 1px solid var(--line);
}

.fit-grid article + article {
  border-left: 1px solid var(--line);
}

.fit-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  line-height: 1;
}

.fit-grid p,
.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.62;
}

.contact-note {
  max-width: 760px;
  margin-top: var(--title-gap);
}

.work-index-screen {
  align-content: center;
}

.work-index-head {
  width: min(100%, var(--max));
  margin: 0 auto var(--title-gap);
}

.work-index-head h2 {
  max-width: none;
}

.work-list {
  width: min(100%, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 72px 140px minmax(0, 1fr) 220px;
  gap: clamp(20px, 3.6vw, 52px);
  align-items: center;
  min-height: clamp(130px, 15vh, 168px);
  padding: 24px 8px;
  margin-inline: -8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  transition: background .16s ease-out, color .16s ease-out;
}

.work-number,
.work-copy,
.work-thumb,
.project-note {
  transition: transform .45s cubic-bezier(.25,1,.5,1);
}

.work-number,
.work-copy em {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.work-copy {
  display: grid;
  gap: 10px;
}

.work-copy strong {
  position: relative;
  width: fit-content;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(2.1rem, 3.8vw, 4.7rem);
  line-height: .92;
  letter-spacing: .005em;
  font-weight: 700;
}

.work-copy strong::after {
  content: '';
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-left: .28em;
  vertical-align: -.1em;
  opacity: 0;
  transform: translateX(-4px);
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 32% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 1px 32% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 32% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 1px 32% no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 32% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 1px 32% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 32% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 1px 32% no-repeat;
  transition: opacity .16s ease-out, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.work-item:hover .work-copy strong::after,
.work-item:focus-visible .work-copy strong::after {
  opacity: 1;
  transform: translateX(0);
  animation: oz-crop-blink .11s steps(2, jump-none) infinite;
}

.work-copy em {
  max-width: 680px;
  font-style: normal;
  text-transform: none;
  letter-spacing: .01em;
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.45;
}

.work-item:hover .work-copy strong {
  color: #fff;
}

.work-thumb {
  display: block;
  width: min(140px, 100%);
  aspect-ratio: 72 / 48;
  overflow: hidden;
  border: 1px solid rgba(244,244,241,.08);
  background: var(--bg);
  color: #5e5e5e;
  transform-origin: center;
  transition: border-color .22s cubic-bezier(.25,1,.5,1), filter .22s cubic-bezier(.25,1,.5,1), opacity .22s cubic-bezier(.25,1,.5,1);
  opacity: .68;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(.78) brightness(.36);
  opacity: .8;
  transition: filter .22s cubic-bezier(.25,1,.5,1), opacity .22s cubic-bezier(.25,1,.5,1), transform .22s cubic-bezier(.25,1,.5,1);
}

.work-item:hover .work-thumb,
.work-item:focus-visible .work-thumb {
  border-color: rgba(255,78,216,.38);
  opacity: 1;
}

.work-item:hover .work-thumb img,
.work-item:focus-visible .work-thumb img {
  filter: grayscale(.15) sepia(.35) saturate(2.8) hue-rotate(272deg) contrast(1.16) brightness(.82);
  opacity: .95;
}

/* Animated wireframe thumbnails — calm at rest, loop on hover, reduced-motion safe */
.work-thumb .wire { width: 100%; height: 100%; display: block; }
.work-thumb .wire .wl { fill: none; stroke: #4a4a47; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; transition: stroke .22s ease; }
.work-thumb .wire .wf { fill: #242422; transition: fill .22s ease; }
.work-thumb .wire .acc { fill: #2d2d2a; transition: fill .22s ease, opacity .22s ease; }
.work-item:hover .work-thumb .wire .wl,
.work-item:focus-visible .work-thumb .wire .wl { stroke: #8d8d88; }
.work-item:hover .work-thumb .wire .wf,
.work-item:focus-visible .work-thumb .wire .wf { fill: #3b3b37; }
.work-item:hover .work-thumb .wire .acc,
.work-item:focus-visible .work-thumb .wire .acc { fill: #ff4ed8; opacity: .6; }

@media (prefers-reduced-motion: no-preference) {
  .work-item:hover .work-thumb .wire .bar,
  .work-item:focus-visible .work-thumb .wire .bar { transform-box: fill-box; transform-origin: bottom; animation: wbar 1.6s ease-in-out infinite; }
  .work-item:hover .work-thumb .wire .bar:nth-child(2) { animation-delay: .12s; }
  .work-item:hover .work-thumb .wire .bar:nth-child(3) { animation-delay: .24s; }
  .work-item:hover .work-thumb .wire .bar:nth-child(4) { animation-delay: .36s; }
  .work-item:hover .work-thumb .wire .bar:nth-child(5) { animation-delay: .48s; }
  .work-item:hover .work-thumb .wire .cell,
  .work-item:focus-visible .work-thumb .wire .cell { animation: wfade 1.9s ease-in-out infinite; }
  .work-item:hover .work-thumb .wire .cell:nth-child(2) { animation-delay: .12s; }
  .work-item:hover .work-thumb .wire .cell:nth-child(3) { animation-delay: .24s; }
  .work-item:hover .work-thumb .wire .cell:nth-child(4) { animation-delay: .36s; }
  .work-item:hover .work-thumb .wire .cell:nth-child(5) { animation-delay: .48s; }
  .work-item:hover .work-thumb .wire .cell:nth-child(6) { animation-delay: .6s; }
  .work-item:hover .work-thumb .wire .chartline,
  .work-item:focus-visible .work-thumb .wire .chartline { stroke-dasharray: 220; animation: wdraw 2.6s ease-in-out infinite; }
  .work-item:hover .work-thumb .wire .dot,
  .work-item:focus-visible .work-thumb .wire .dot { animation: wfade 1.3s ease-in-out infinite; }
  .work-item:hover .work-thumb .wire .cur,
  .work-item:focus-visible .work-thumb .wire .cur { animation: wblink 1s step-end infinite; }
  .work-item:hover .work-thumb .wire .pop,
  .work-item:focus-visible .work-thumb .wire .pop { transform-box: fill-box; transform-origin: center; animation: wpop 2.2s ease-in-out infinite; }
}
@keyframes wbar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes wfade { 0%, 100% { opacity: .3; } 50% { opacity: .95; } }
@keyframes wdraw { 0% { stroke-dashoffset: 220; } 65%, 100% { stroke-dashoffset: 0; } }
@keyframes wblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wpop { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1); } }

.work-item[data-oz-hover="true"] {
  filter: url(#jp-project-glitch-0) !important;
}

body.motion-enabled .work-item.reveal[data-oz-hover="true"] { filter: url(#jp-project-glitch-0) !important; }
body.motion-enabled .work-item.reveal.project-glitch-1[data-oz-hover="true"] { filter: url(#jp-project-glitch-1) !important; }
body.motion-enabled .work-item.reveal.project-glitch-2[data-oz-hover="true"] { filter: url(#jp-project-glitch-2) !important; }

.work-item.project-glitch-1[data-oz-hover="true"] { filter: url(#jp-project-glitch-1) !important; }
.work-item.project-glitch-2[data-oz-hover="true"] { filter: url(#jp-project-glitch-2) !important; }

@keyframes oz-crop-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.motion-enabled .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(10px);
  transition:
    opacity 760ms cubic-bezier(.2, .8, .2, 1),
    transform 760ms cubic-bezier(.2, .8, .2, 1),
    filter 760ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.motion-enabled .reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.motion-enabled .site-header.reveal {
  transform: translate3d(0, -18px, 0);
}

.motion-enabled .site-header.reveal.is-revealed {
  transform: translate3d(0, 0, 0);
}

/* Hero entrance: staggered fade-up that plays once on page load. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.intro-screen .section-kicker,
.intro-screen .hero-kpis > div,
.intro-screen h1,
.intro-screen .hero-subcopy,
.intro-screen .hero-actions,
.intro-screen .fact-row > div,
.case-hero .eyebrow-link,
.case-hero .section-kicker,
.case-hero h1,
.case-hero .hero-subcopy,
.case-hero .hero-actions {
  animation: hero-rise 720ms cubic-bezier(.2, .8, .2, 1) both;
}

.intro-screen .hero-portrait,
.case-hero .case-visual,
.case-hero .access-panel {
  animation: hero-fade 900ms ease both;
  animation-delay: 200ms;
}

/* Stagger: homepage hero */
.intro-screen .section-kicker { animation-delay: 80ms; }
.intro-screen h1 { animation-delay: 160ms; }
.intro-screen .hero-kpis > div:nth-child(1) { animation-delay: 260ms; }
.intro-screen .hero-kpis > div:nth-child(2) { animation-delay: 310ms; }
.intro-screen .hero-kpis > div:nth-child(3) { animation-delay: 360ms; }
.intro-screen .hero-subcopy { animation-delay: 380ms; }
.intro-screen .hero-actions { animation-delay: 480ms; }
.intro-screen .fact-row > div { animation-delay: 560ms; }

/* Stagger: case-study / private-access hero */
.case-hero .eyebrow-link { animation-delay: 80ms; }
.case-hero .section-kicker { animation-delay: 140ms; }
.case-hero h1 { animation-delay: 220ms; }
.case-hero .hero-subcopy { animation-delay: 360ms; }
.case-hero .hero-actions { animation-delay: 460ms; }

.glitch-hover {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.glitch-hover::before,
.glitch-hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.glitch-hover::before {
  top: 38%;
  background: #7cf7ff;
  transform: translate3d(-1px, 0, 0);
}

.glitch-hover::after {
  top: 62%;
  background: #ff4ed8;
  transform: translate3d(1px, 0, 0);
}

.glitch-hover:hover::before,
.glitch-hover:hover::after,
.glitch-hover.is-glitching::before,
.glitch-hover.is-glitching::after {
  opacity: .76;
  animation: text-glitch 520ms steps(2, end) both;
}

.glitch-hover:hover,
.glitch-hover.is-glitching {
  text-shadow: -1px 0 #7cf7ff, 1px 0 #ff4ed8;
}

.glitch-hover:hover::after,
.glitch-hover.is-glitching::after {
  animation-delay: 34ms;
}

.glitch-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glitch-surface::before,
.glitch-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.glitch-surface::before {
  background:
    linear-gradient(90deg, transparent, rgba(124,247,255,.1), transparent),
    repeating-linear-gradient(180deg, rgba(255,255,255,.055) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  transform: translateX(-100%);
}

.glitch-surface::after {
  border-top: 1px solid rgba(124,247,255,.45);
  border-bottom: 1px solid rgba(255,78,216,.32);
  transform: translate3d(0, calc((var(--glitch-offset, 0) - 1) * 3px), 0);
}

.glitch-surface:hover::before,
.glitch-surface:hover::after {
  opacity: 1;
}

.glitch-surface:hover::before {
  animation: surface-scan 720ms cubic-bezier(.2, .8, .2, 1) both;
}

.glitch-surface:hover::after {
  animation: surface-slice 520ms steps(3, end) both;
}

.work-item:hover,
.archive-grid div:hover,
.fit-grid article:hover,
.case-pager a:hover {
  background:
    linear-gradient(90deg, rgba(255,255,255,.028), transparent 74%),
    rgba(255,255,255,.008);
}

.case-visual:hover img,
.portrait-badge:hover img {
  animation: image-glitch 620ms steps(2, end) both;
}

@keyframes text-glitch {
  0% { clip-path: inset(0 0 78% 0); transform: translate3d(-2px, 0, 0); }
  12% { clip-path: inset(18% 0 52% 0); transform: translate3d(3px, -1px, 0); }
  24% { clip-path: inset(64% 0 16% 0); transform: translate3d(-4px, 1px, 0); }
  38% { clip-path: inset(8% 0 72% 0); transform: translate3d(2px, 0, 0); }
  56% { clip-path: inset(42% 0 36% 0); transform: translate3d(-1px, 1px, 0); }
  72% { clip-path: inset(72% 0 8% 0); transform: translate3d(3px, 0, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

@keyframes surface-scan {
  0% { transform: translateX(-115%); }
  48% { transform: translateX(18%); }
  100% { transform: translateX(115%); }
}

@keyframes surface-slice {
  0% { clip-path: inset(0 0 86% 0); transform: translate3d(-3px, -1px, 0); }
  25% { clip-path: inset(28% 0 52% 0); transform: translate3d(4px, 1px, 0); }
  50% { clip-path: inset(58% 0 24% 0); transform: translate3d(-2px, 0, 0); }
  75% { clip-path: inset(78% 0 5% 0); transform: translate3d(2px, -1px, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

@keyframes image-glitch {
  0% { transform: translate3d(0, 0, 0) scale(1); filter: saturate(.92) contrast(1.03); }
  18% { transform: translate3d(-6px, 2px, 0) scale(1.012); filter: saturate(1.25) contrast(1.18) hue-rotate(8deg); }
  36% { transform: translate3d(5px, -1px, 0) scale(1.018); filter: saturate(.75) contrast(1.25) hue-rotate(-10deg); }
  62% { transform: translate3d(-2px, 1px, 0) scale(1.008); filter: saturate(1.1) contrast(1.12); }
  100% { transform: translate3d(0, 0, 0) scale(1); filter: saturate(.92) contrast(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .motion-enabled .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.case-page .screen {
  min-height: auto;
}

.case-detail {
  --case-accent: #f4f4f1;
}

.case-hero {
  min-height: 100svh;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .74fr);
  gap: clamp(38px, 6vw, 96px);
  align-items: center;
  padding-top: 118px;
}

.case-hero-copy {
  max-width: 900px;
}

.private-access-hero {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .62fr);
}

.access-panel {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.access-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(124, 227, 216, .22);
  pointer-events: none;
}

.access-panel div {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}

.access-panel div:last-child {
  border-bottom: 0;
}

.access-panel span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.access-panel strong {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  font-weight: 600;
}

.access-proof-list li {
  align-items: start;
}

.eyebrow-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
}

.eyebrow-link:hover { color: var(--ink); border-color: var(--ink); }

.case-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  overflow: hidden;
  box-shadow: 0 30px 120px rgba(0,0,0,.34);
}

.case-visual::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--case-accent) 22%, transparent), transparent 34%);
  opacity: .8;
  pointer-events: none;
}

.case-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
}

/* Animated wireframe on case-study hero visuals — continuous gentle loop, reduced-motion safe */
.case-visual .wire { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; display: block; }
.case-visual .wire .wl { fill: none; stroke: #5c5c58; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.case-visual .wire .axis { fill: none; stroke: #3a3a38; stroke-width: .8; }
.case-visual .wire .wf { fill: rgba(244,244,241,.09); }
.case-visual .wire .acc { fill: var(--case-accent, #8d8d88); opacity: .42; }
.case-visual .wire .accs { fill: none; stroke: var(--case-accent, #8d8d88); stroke-width: 1.4; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .case-visual .wire .bar { transform-box: fill-box; transform-origin: bottom; animation: wbar 2.2s ease-in-out infinite; }
  .case-visual .wire .bar:nth-child(2) { animation-delay: .18s; }
  .case-visual .wire .bar:nth-child(3) { animation-delay: .36s; }
  .case-visual .wire .bar:nth-child(4) { animation-delay: .54s; }
  .case-visual .wire .bar:nth-child(5) { animation-delay: .72s; }
  .case-visual .wire .bar:nth-child(6) { animation-delay: .9s; }
  .case-visual .wire .cell { animation: wfade 2.6s ease-in-out infinite; }
  .case-visual .wire .cell:nth-child(2) { animation-delay: .16s; }
  .case-visual .wire .cell:nth-child(3) { animation-delay: .32s; }
  .case-visual .wire .cell:nth-child(4) { animation-delay: .48s; }
  .case-visual .wire .cell:nth-child(5) { animation-delay: .64s; }
  .case-visual .wire .cell:nth-child(6) { animation-delay: .8s; }
  .case-visual .wire .cell:nth-child(7) { animation-delay: .96s; }
  .case-visual .wire .cell:nth-child(8) { animation-delay: 1.12s; }
  .case-visual .wire .chartline { stroke-dasharray: 520; animation: wdrawL 3.6s ease-in-out infinite; }
  .case-visual .wire .dot { animation: wfade 1.6s ease-in-out infinite; }
  .case-visual .wire .cur { animation: wblink 1.1s step-end infinite; }
  .case-visual .wire .pop { transform-box: fill-box; transform-origin: center; animation: wpop 2.8s ease-in-out infinite; }
}
@keyframes wdrawL { 0% { stroke-dashoffset: 520; } 60%, 100% { stroke-dashoffset: 0; } }

.case-summary,
.case-challenge,
.case-approach,
.case-proof,
.case-close {
  padding-top: clamp(110px, 15vh, 170px);
  padding-bottom: clamp(110px, 15vh, 170px);
}

.case-two-col {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(320px, 1fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.case-two-col > p,
.case-bullets,
.proof-list {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.65;
}

.case-bullets,
.proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.case-bullets li,
.proof-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.proof-list li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: start;
}

.proof-list span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
}

.case-close-copy {
  max-width: 1080px;
}

.case-pager {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-pager a {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 72px) var(--pad-x);
}

.case-pager a + a {
  border-left: 1px solid var(--line);
  text-align: right;
}

/* Pin the pager's outer edges to the same centered spine as section content. */
.case-pager a:first-child { padding-left: max(var(--pad-x), (100vw - var(--max)) / 2); }
.case-pager a:last-child { padding-right: max(var(--pad-x), (100vw - var(--max)) / 2); }

.case-pager span {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.case-pager strong {
  font-family: var(--title-font);
  font-size: clamp(2rem, 3.6vw, 4.4rem);
  line-height: .95;
  letter-spacing: .005em;
}

.case-pager a:hover strong { color: #fff; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 16px; }
  .section-nav, .side-honor { display: none; }
  .nav-toggle { display: inline-flex; }
  .private-link { font-size: 14px; }

  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    padding: 8px var(--pad-x) 20px;
    background: rgba(3,3,3,.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    z-index: 19;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .site-header[data-nav-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }

  .primary-nav a {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero-layout { grid-template-columns: 1fr; margin-bottom: 60px; }
  .hero-portrait { min-height: 420px; max-width: 520px; justify-self: center; width: 100%; }
  h1, .section-title-wrap, .archive-intro, .approach-copy, .contact-copy { margin-left: 0; }
  h1 { font-size: clamp(2rem, 10vw, 5.5rem); }
  .fact-row { grid-template-columns: repeat(2, 1fr); position: relative; left: auto; right: auto; bottom: auto; margin-top: 60px; }
  .intro-screen { align-content: center; }
  .work-brief { grid-template-columns: 1fr; }
  .work-brief div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .work-index-head { grid-template-columns: 1fr; align-items: start; }
  .work-item { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .work-copy strong { font-size: clamp(2.6rem, 10vw, 5.2rem); }
  .project-line { grid-template-columns: 1fr; gap: 18px; }
  .project-note { justify-self: start; text-align: left; }
  .project-context { margin-left: 0; }
  .case-body { grid-template-columns: 1fr; gap: var(--title-gap); }
  .case-hero { grid-template-columns: 1fr; min-height: auto; }
  .case-two-col { grid-template-columns: 1fr; gap: var(--title-gap); }
  .case-close-copy { margin-left: 0; }
  .case-pager { grid-template-columns: 1fr; }
  .case-pager a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .archive-grid { grid-template-columns: 1fr; }
  .awards-groups { grid-template-columns: 1fr; }
  .fit-intro { margin-left: 0; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-grid article + article { border-left: 0; }
  .approach-screen { grid-template-columns: 1fr; }
  .portrait-badge { width: min(290px, 70vw); }
  .site-footer { grid-template-columns: 1fr; gap: 22px; padding: 34px var(--pad-x); }
  .site-footer nav { justify-content: start; flex-wrap: wrap; row-gap: 12px; }
  .site-footer span:last-child { justify-self: start; }
}

@media (max-width: 620px) {
  :root { --pad-x: 18px; }
  .site-header { height: 70px; grid-template-columns: 1fr auto; }
  .brand img { width: 145px; }
  .private-link { display: none; }
  .primary-nav { top: 70px; }
  .screen { padding-top: 96px; }
  .hero-kpis { gap: 24px; margin-bottom: 36px; }
  .hero-kpis strong { font-size: 2.1rem; }
  .hero-portrait { min-height: 340px; }
  h2 { font-size: clamp(3rem, 13vw, 5rem); }
  .project-title { font-size: clamp(2.7rem, 12vw, 4.8rem); }
  .fact-row { grid-template-columns: 1fr; }
  .awards-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   Resume page (/resume) — long-scroll on-brand web resume
   ============================================================ */
.resume {
  position: relative;
  z-index: 2;
  padding: clamp(112px, 14vh, 176px) max(var(--pad-x), (100% - var(--max)) / 2) clamp(96px, 12vh, 140px);
}

.resume-header {
  margin-bottom: clamp(64px, 9vw, 110px);
}

.resume-header h1 {
  max-width: 1000px;
  margin-top: var(--title-gap);
  font-family: var(--title-font);
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: .95;
  letter-spacing: .01em;
  font-weight: 700;
  text-wrap: balance;
}

.resume-lead {
  max-width: 720px;
  margin-top: var(--title-gap);
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

.resume-label {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Quick-fact bar */
.resume-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, max-content));
  justify-content: space-between;
  column-gap: clamp(24px, 2.4vw, 44px);
  row-gap: 22px;
  margin-bottom: clamp(72px, 10vw, 120px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resume-facts dt {
  margin-bottom: 12px;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.resume-facts dd {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 14px;
  line-height: 1.45;
}

/* Sections */
.resume-section {
  margin-bottom: clamp(72px, 11vw, 132px);
}
.resume-section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}
.resume-num {
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
}
.resume-section > h2 {
  max-width: 1040px;
  margin-bottom: var(--title-gap);
  font-family: var(--title-font);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: .01em;
  font-weight: 700;
  text-wrap: balance;
}
.resume-section > p,
.resume-prose {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

/* Roles + Award groups (shared block treatment) */
.resume-block {
  padding-bottom: clamp(40px, 5vw, 56px);
  margin-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.resume-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.resume-block-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 36px;
  margin-bottom: 28px;
}
.resume-block-head h3 {
  font-family: var(--title-font);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--ink);
}
.resume-block-head h3 + p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--body-size);
}
.resume-block-meta {
  text-align: right;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.7;
}

.resume-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.resume-bullets li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 940px;
}
.resume-bullets li .resume-bnum {
  padding-top: .35em;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
}
.resume-bullets li .resume-btext {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

.resume-earlier {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.resume-earlier p:not(.resume-label) {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

/* Awards */
.resume-awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.resume-awards li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  max-width: 940px;
}
.resume-awards .resume-tier {
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.resume-awards .resume-cat {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: 1.45;
}

/* Capability cards */
.resume-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
  max-width: 1120px;
}
.resume-cards h3 {
  margin-bottom: 12px;
  font-family: var(--title-font);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--ink);
}
.resume-cards p {
  color: var(--muted);
  font-size: var(--body-size);
  line-height: var(--body-line);
}

/* Tools */
.resume-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 56px);
  max-width: 1120px;
}

.resume-footnote {
  max-width: 760px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  line-height: 1.6;
}

.resume-facts sup,
.resume-cards sup { font-size: .7em; }
.resume-tools .resume-label { margin-bottom: 18px; }
.resume-tools ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.resume-tools li {
  color: var(--muted);
  font-size: var(--body-size);
}

/* Education / certifications */
.resume-block-head:only-child { margin-bottom: 0; }
.resume-certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.resume-certs li { max-width: 940px; }
.resume-certs .resume-cert-name {
  display: block;
  color: var(--ink);
  font-size: var(--body-size);
  line-height: 1.4;
}
.resume-certs .resume-cert-meta {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-family: var(--mono-font);
  font-size: 14px;
  letter-spacing: .06em;
}

@media (max-width: 1020px) {
  .resume-facts { grid-template-columns: repeat(2, 1fr); }
  .resume-cards { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  .resume-tools { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .resume-block-head { flex-direction: column; }
  .resume-block-meta { text-align: left; }
}

@media (max-width: 620px) {
  .resume-facts { grid-template-columns: 1fr; }
  .resume-tools { grid-template-columns: 1fr; }
  .resume-bullets li,
  .resume-awards li { grid-template-columns: 1fr; gap: 4px; }
  .resume-bullets li .resume-bnum { padding-top: 0; }
}

@media print {
  .site-header, .site-footer, .to-top, .grain, .nav-toggle { display: none !important; }
  .resume { padding: 24px; color: #000; }
  body { background: #fff; color: #000; }
  .resume-lead, .resume-section > p, .resume-prose, .resume-block-head h3 + p,
  .resume-bullets li .resume-btext, .resume-awards .resume-cat, .resume-cards p,
  .resume-tools li, .resume-facts dd { color: #111; }
  .resume-section > h2, .resume-header h1, .resume-block-head h3, .resume-cards h3, .resume-awards .resume-tier { color: #000; }
}
