.resume-head { align-items: center; }
.resume-introduction { max-width: 630px; }
.resume-introduction h2 { margin-bottom: .48em; }
.resume-status {
  margin: 0 0 1em;
  color: #e5e4e6;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.45;
}
.resume-portrait {
  position: relative;
  isolation: isolate;
  width: min(100%, 470px);
  aspect-ratio: 1;
  overflow: hidden;
  background: #1d252c;
}
.resume-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resume-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url(assets/volumetric-light.webp) 48% 64% / 130% auto;
  mix-blend-mode: screen;
  opacity: .54;
}
.resume-portrait::after, .resume-portrait .cursor-light {
  mask-image: linear-gradient(105deg, #000 0, #0009 7%, transparent 24% 78%, #000a 98%),
    linear-gradient(to top, #000b, transparent 20%);
}
.resume-portrait .cursor-light { --reflection-color: 165 202 252; }
.resume-jobs li { scroll-margin-top: 24px; }
.job-row {
  position: relative;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
  padding: clamp(26px, 2.45vw, 42px) clamp(24px, 2.6vw, 48px);
}
.job-row:focus-visible, .work-tabs button:focus-visible, .work-reader a:focus-visible {
  outline: 2px solid #d4ddf4;
  outline-offset: 4px;
}
.job-row h4 {
  width: fit-content;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: #626269;
}
.job-row:hover h4, .job-row:focus-visible h4 { color: #fff; text-decoration-color: currentColor; }
.job-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #090909;
  opacity: 0;
}
.job-row:is(.is-lit, :focus-visible) .job-light { opacity: 1; }
@media (hover: hover) {
  .job-row:hover .job-light { opacity: 1; }
}
.job-light::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: url(assets/volumetric-light.webp) 51% 51% / cover;
  transform: translate(var(--pan-x, 0%), var(--pan-y, 0%));
}
.job-light::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, #0a0d1b77, #13121b70 49%, #100e16a8);
}
.job-row .cursor-light {
  --reflection-origin: 47%;
  --reflection-width: clamp(150px, 17vw, 310px);
  --reflection-height: clamp(76px, 8.2vw, 145px);
}
.job-row .cursor-light::before { content: none; }
.job-row:is(.is-lit, :focus-visible) :is(.resume-date, .resume-role, .resume-work) {
  color: #f0edf2;
}
.work-reader { min-height: 100svh; color: #f4f3f1; background: #090909; }
.work-reader main { width: min(calc(100% - 64px), 1680px); margin-inline: auto; padding-bottom: 8svh; }
.work-reader nav { padding-top: clamp(25px, 3.2vw, 52px); color: #c4c3c8; font-size: 15px; }
.work-reader a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.work-reader a:hover { color: white; }
.work-cover, .work-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5.5vw, 94px);
}
.work-cover { align-items: center; padding-block: clamp(33px, 4vw, 68px) clamp(48px, 5vw, 85px); }
.work-heading { min-width: 0; }
.work-date { margin: 0 0 1.25em; color: #adaeb4; font-size: clamp(15px, 1.13vw, 19px); }
.work-heading h1 {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(40px, 4.25vw, 74px);
  font-weight: 470;
  line-height: 1.04;
  letter-spacing: -.059em;
  text-wrap: balance;
}
.work-role { margin: .55em 0 1.12em; font-size: clamp(21px, 1.8vw, 31px); line-height: 1.25; letter-spacing: -.037em; }
.work-lede, .work-section p { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.24vw, 20px); line-height: 1.55; letter-spacing: -.015em; color: #c4c2c6; }
.work-lede { max-width: 43ch; }
.work-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.3vw, 56px);
  color: #fff;
  background: #131521;
  --reflection-color: 170 189 245;
}
.work-backdrop {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: #191924 url(assets/volumetric-light.webp) calc(50% + var(--pan-x, 0%)) calc(54% + var(--pan-y, 0%)) / cover;
}
.work-backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(107deg, #070913d9, #10101bb3 56%, #1514214d);
}
.work-tabs {
  display: flex; align-self: start; align-items: center; flex-wrap: wrap;
  gap: 0 clamp(14px, 1.65vw, 29px); border-bottom: 1px solid #e9e7f04d;
}
.work-tabs[hidden], .work-panel[hidden] { display: none; }
.work-tabs button {
  appearance: none;
  color: #cfccd1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin: 0 0 -1px;
  padding: 7px 0 10px;
  font: 510 clamp(14px, 1.12vw, 18px)/1.35 Manrope, sans-serif;
  cursor: pointer;
}
.work-tabs button:hover { color: white; }
.work-tabs button[aria-selected="true"] { border-color: #fbfbfd; color: white; }
.work-panels { position: relative; }
.work-panel:not(:first-child) { margin-top: 32px; }
.work-panel h2 { margin: 0 0 1em; font-size: 20px; font-weight: 480; }
.work-panel p { margin: 0; }
.work-feature[data-ready] { min-height: clamp(395px, 28vw, 515px); }
.work-feature[data-ready] .work-panels { display: grid; grid-template-areas: "topic"; flex: 1; }
.work-feature[data-ready] .work-panel {
  grid-area: topic; align-self: end; display: flex; flex-direction: column; justify-content: flex-end;
  margin: 0; padding-top: clamp(30px, 3.6vw, 58px);
}
/* Reserve the tallest topic while keeping inactive text out of focus and accessibility. */
.work-feature[data-ready] .work-panel[hidden] { display: flex; visibility: hidden; }
.work-feature[data-ready] .work-panel h2 { display: none; }
.work-value { font-size: clamp(49px, 6.3vw, 105px); line-height: 1.02; font-weight: 480; letter-spacing: -.065em; }
.work-value.is-number { font-size: clamp(68px, 7.6vw, 130px); font-variant-numeric: lining-nums tabular-nums; }
.work-panel .work-unit { margin-top: .22em; max-width: 28ch; font-size: clamp(20px, 1.75vw, 29px); line-height: 1.17; font-weight: 490; letter-spacing: -.031em; text-wrap: balance; }
.work-panel .work-caption { margin-top: 1.1em; max-width: 53ch; font-size: clamp(15px, 1.12vw, 18px); line-height: 1.48; letter-spacing: -.011em; color: #e6e3e8; }
.work-section { padding-block: clamp(30px, 3.5vw, 60px); border-top: 1px solid #303034; }
.work-section h2 { margin: 0; max-width: 23ch; font-size: clamp(22px, 2.1vw, 35px); font-weight: 470; line-height: 1.16; letter-spacing: -.04em; }
.work-section p + p { margin-top: 1em; }
@media (prefers-reduced-motion: no-preference) {
  .job-light { transition: opacity 340ms ease-out; }
  .job-light::before { transition: transform 500ms cubic-bezier(.2,.65,.3,1); }
  .job-row :is(.resume-date, .resume-role, .resume-work) { transition: color 260ms ease-out; }
  .job-row h4, .work-heading h1 { view-transition-name: var(--employer-transition); }
  .resume-jobs li:is(:target, :hover, :focus-within, [data-opened]) .job-light,
  .work-backdrop { view-transition-name: var(--light-transition); }
  .work-feature[data-ready] .work-panel:not([hidden]) { animation: work-topic-in 280ms ease-out both; }
  @keyframes work-topic-in { from { opacity: 0; transform: translateY(5px); } }
}
@media (max-width: 760px) {
  .work-reader main { width: calc(100% - 40px); }
  .work-cover, .work-section { grid-template-columns: 1fr; gap: 22px; }
  .work-feature[data-ready] { min-height: 340px; }
  .resume-portrait { width: min(100%, 400px); }
}
