:root {
  --resume-accent: #b6ff00;
  --resume-paper: #fbfaf4;
  --resume-ink: #050505;
  --resume-muted: rgb(5 5 5 / 58%);
  --resume-rule: rgb(5 5 5 / 18%);
  --resume-gutter: calc(var(--frame-x) + clamp(22px, 2.2vw, 36px));
  --resume-gap: clamp(36px, 5.5vw, 88px);
}

.resume-page-body {
  min-height: 100%;
  background: var(--resume-paper);
}

.resume-page {
  position: relative;
  min-height: 100dvh;
  overflow: clip;
  background: var(--resume-paper);
  color: var(--resume-ink);
  isolation: isolate;
}

.resume-atmosphere {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(160 221 255 / 25%), transparent 32%),
    radial-gradient(circle at 88% 20%, rgb(255 228 195 / 22%), transparent 32%),
    radial-gradient(circle at 72% 68%, rgb(255 201 229 / 15%), transparent 34%),
    var(--resume-paper);
  pointer-events: none;
}

.resume-pointer-canvas {
  z-index: 3;
  filter: none;
}

.resume-site-header,
.resume-site-footer {
  color: var(--resume-ink);
  transition: color 240ms ease;
}

.resume-site-header {
  mix-blend-mode: normal;
}

.resume-page a:focus-visible,
.resume-page button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.resume-hero,
.resume-section {
  position: relative;
  z-index: 1;
  padding-right: var(--resume-gutter);
  padding-left: var(--resume-gutter);
}

.resume-hero {
  display: grid;
  min-height: 100dvh;
  padding-top: clamp(132px, 17vh, 190px);
  padding-bottom: clamp(116px, 15vh, 170px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(16px, 1.8vw, 28px);
}

.resume-kicker,
.resume-section-heading > p,
.experience-index,
.experience-date,
.capability-index,
.education-date,
.resume-contact-kicker {
  margin: 0;
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.resume-hero-title {
  grid-column: 1 / 10;
}

.resume-kicker {
  margin-bottom: clamp(46px, 7vh, 76px);
}

.resume-hero h1 {
  margin: 0;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(70px, 9.4vw, 150px);
  font-weight: 600;
  letter-spacing: -0.067em;
  line-height: 0.82;
  text-transform: uppercase;
}

.resume-hero h1 span {
  display: block;
  white-space: nowrap;
}

.resume-hero-intro {
  display: grid;
  grid-column: 5 / 13;
  margin-top: clamp(68px, 9vh, 104px);
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.8fr);
  gap: var(--resume-gap);
}

.resume-lead,
.resume-meta {
  margin: 0;
}

.resume-lead {
  max-width: 34ch;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.resume-meta {
  color: var(--resume-muted);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(13px, 1.1vw, 17px);
  letter-spacing: -0.045em;
  line-height: 1.55;
  text-transform: uppercase;
}

.resume-hero-actions {
  display: flex;
  grid-column: 1 / 5;
  grid-row: 2;
  margin-top: clamp(68px, 9vh, 104px);
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.resume-download {
  display: inline-flex;
  min-height: 56px;
  padding: 0 20px;
  align-items: center;
  gap: clamp(48px, 6vw, 90px);
  background: var(--resume-ink);
  color: var(--resume-paper);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: 14px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-download:hover {
  transform: translateY(-3px);
}

.resume-download:active {
  transform: translateY(1px);
}

.resume-download img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.resume-linkedin {
  position: relative;
  min-height: 44px;
  padding: 12px 0;
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: 13px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.resume-linkedin::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-linkedin:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.resume-section {
  display: grid;
  padding-top: clamp(112px, 15vh, 170px);
  padding-bottom: clamp(112px, 15vh, 170px);
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 2.2fr);
  gap: var(--resume-gap);
  border-top: 1px solid var(--resume-rule);
}

.resume-section-heading {
  position: sticky;
  top: clamp(112px, 14vh, 148px);
  align-self: start;
}

.resume-section-heading > p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--resume-muted);
}

.resume-section-heading > p::before {
  width: 8px;
  height: 8px;
  background: var(--resume-accent);
  content: "";
}

.resume-section-heading h2 {
  max-width: 10ch;
  margin: clamp(46px, 6vh, 68px) 0 0;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(42px, 4.7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.056em;
  line-height: 0.94;
  text-wrap: balance;
}

.experience-list {
  grid-column: 2;
}

.experience-item {
  display: grid;
  padding: clamp(36px, 5vh, 58px) 0 clamp(58px, 8vh, 88px);
  grid-template-columns: 52px minmax(210px, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(22px, 3vw, 48px);
  border-top: 1px solid var(--resume-rule);
}

.experience-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.experience-index,
.experience-date,
.capability-index,
.education-date {
  color: var(--resume-muted);
}

.experience-item header {
  min-width: 0;
}

.experience-date {
  margin-bottom: 20px;
}

.experience-item h3,
.experience-company,
.education-list h3,
.education-list p {
  margin: 0;
}

.experience-item h3 {
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.experience-company {
  margin-top: 8px;
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.experience-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.experience-item li {
  position: relative;
  padding-left: 22px;
  text-wrap: pretty;
}

.experience-item li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--resume-accent);
  content: "";
}

.experience-item li + li {
  margin-top: 18px;
}

.resume-capabilities {
  background: var(--resume-ink);
  color: var(--resume-paper);
  border-top: 0;
}

.resume-capabilities-heading > p {
  color: rgb(251 250 244 / 60%);
}

.capability-grid {
  display: grid;
  grid-column: 2;
}

.capability-grid section {
  display: grid;
  padding: clamp(38px, 5vh, 62px) 0;
  grid-template-columns: minmax(120px, 0.5fr) minmax(220px, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid rgb(251 250 244 / 22%);
}

.capability-grid section:first-child {
  padding-top: 0;
  border-top: 0;
}

.capability-index {
  color: rgb(251 250 244 / 58%);
}

.capability-grid h3,
.capability-grid p {
  margin: 0;
}

.capability-grid h3 {
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.capability-grid section > p:last-child {
  color: rgb(251 250 244 / 66%);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: -0.04em;
  line-height: 1.48;
  text-wrap: pretty;
}

.education-list {
  grid-column: 2;
}

.education-list article {
  display: grid;
  padding: clamp(34px, 5vh, 56px) 0;
  grid-template-columns: minmax(140px, 0.45fr) minmax(200px, 0.7fr) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--resume-rule);
}

.education-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

.education-list h3 {
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(27px, 2.7vw, 42px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.education-list article > p:last-child {
  color: var(--resume-muted);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.resume-contact {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 86dvh;
  padding:
    clamp(128px, 18vh, 188px)
    var(--resume-gutter)
    clamp(146px, 20vh, 210px);
  align-content: center;
  background: var(--resume-ink);
  color: var(--resume-paper);
}

.resume-contact::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(90deg, var(--resume-accent) 0 12%, transparent 12% 100%);
  content: "";
}

.resume-contact-kicker {
  margin-bottom: clamp(50px, 7vh, 84px);
  color: rgb(251 250 244 / 58%);
}

.resume-contact h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(62px, 8.4vw, 132px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
}

.resume-contact-actions {
  display: flex;
  margin-top: clamp(58px, 8vh, 88px);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: 14px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.resume-contact-actions a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
}

.resume-contact-actions a:first-child {
  padding: 0 20px;
  background: var(--resume-accent);
  color: var(--resume-ink);
}

.resume-contact-actions a:last-child {
  position: relative;
}

.resume-contact-actions a:last-child::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.resume-site-footer {
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    color 240ms ease,
    opacity 240ms ease;
}

.resume-footer-email {
  position: relative;
  justify-self: end;
}

.resume-footer-email::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-footer-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.resume-mobile-email {
  justify-self: end;
}

.about-dark .resume-site-footer {
  color: var(--resume-paper);
}

.resume-header-dark .resume-site-header {
  color: var(--resume-paper);
}

.about-dark .resume-site-footer {
  opacity: 1;
  pointer-events: auto;
}

.resume-header-dark .resume-site-header img,
.about-dark .resume-site-footer img {
  filter: invert(1);
}

@media (min-width: 1024px) and (max-height: 820px) {
  .resume-hero {
    padding-top: 104px;
    padding-bottom: 102px;
  }

  .resume-kicker {
    margin-bottom: 34px;
  }

  .resume-hero h1 {
    font-size: clamp(66px, 7.8vw, 112px);
  }

  .resume-hero-intro,
  .resume-hero-actions {
    margin-top: 42px;
  }

  .resume-lead {
    font-size: clamp(24px, 2.05vw, 31px);
  }

}

@media (max-width: 1023px) {
  :root {
    --resume-gutter: calc(var(--mobile-frame-x) + 24px);
  }

  .resume-hero {
    padding-top: 120px;
    padding-bottom: 128px;
  }

  .resume-hero h1 {
    font-size: clamp(58px, 10.2vw, 100px);
  }

  .resume-section {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 2fr);
    gap: 48px;
  }

  .experience-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .experience-item ul {
    grid-column: 2;
    margin-top: 16px;
  }

  .capability-grid section,
  .education-list article {
    grid-template-columns: 1fr;
  }

  .capability-grid h3,
  .education-list h3 {
    margin-top: 18px;
  }

  .capability-grid section > p:last-child,
  .education-list article > p:last-child {
    margin-top: 18px;
  }

  .resume-site-footer {
    right: var(--mobile-frame-x);
    bottom: var(--mobile-frame-y);
    left: var(--mobile-frame-x);
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  :root {
    --resume-gutter: calc(var(--mobile-frame-x) + 18px);
  }

  .resume-hero {
    display: block;
    min-height: auto;
    padding-top: 108px;
    padding-bottom: 96px;
  }

  .resume-kicker {
    margin-bottom: 40px;
  }

  .resume-hero h1 {
    font-size: clamp(50px, 15.2vw, 74px);
    line-height: 0.86;
  }

  .resume-hero h1 span {
    white-space: normal;
  }

  .resume-hero-intro {
    display: block;
    margin-top: 64px;
  }

  .resume-lead {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.09;
  }

  .resume-meta {
    margin-top: 34px;
    font-size: 13px;
  }

  .resume-hero-actions {
    margin-top: 50px;
  }

  .resume-download {
    width: 100%;
    justify-content: space-between;
  }

  .resume-section {
    display: block;
    padding-top: 92px;
    padding-bottom: 110px;
  }

  .resume-section-heading {
    position: static;
  }

  .resume-section-heading h2 {
    max-width: 11ch;
    margin-top: 36px;
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .experience-list,
  .capability-grid,
  .education-list {
    margin-top: 72px;
  }

  .experience-item {
    display: block;
    padding: 36px 0 58px;
  }

  .experience-index {
    margin-bottom: 24px;
  }

  .experience-date {
    margin-bottom: 16px;
  }

  .experience-item h3 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .experience-item ul {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.35;
  }

  .experience-item li + li {
    margin-top: 16px;
  }

  .capability-grid section {
    display: block;
    padding: 42px 0;
  }

  .capability-grid h3 {
    margin-top: 30px;
    font-size: clamp(28px, 8.3vw, 38px);
  }

  .capability-grid section > p:last-child {
    margin-top: 30px;
    font-size: 15px;
  }

  .education-list article {
    display: block;
    padding: 40px 0;
  }

  .education-list h3 {
    margin-top: 26px;
    font-size: clamp(30px, 9vw, 42px);
  }

  .education-list article > p:last-child {
    margin-top: 16px;
    font-size: 15px;
  }

  .resume-contact {
    min-height: 100svh;
    padding: 116px var(--resume-gutter) 142px;
  }

  .resume-contact h2 {
    max-width: none;
    font-size: clamp(48px, 15vw, 70px);
  }

  .resume-contact-actions {
    margin-top: 54px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .resume-contact-actions a:first-child {
    justify-content: space-between;
  }

  .resume-contact-actions a:last-child {
    width: max-content;
  }

  .resume-site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .resume-footer-email {
    display: inline-flex;
  }

  .resume-mobile-menu-footer {
    font-size: 10px;
  }
}

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