.resume-view {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  padding-block: clamp(28px, 5vw, 68px);
}

.resume-view .label {
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.resume-title {
  margin: clamp(15px, 3vw, 34px) 0 clamp(20px, 3.8vw, 52px);
  font-size: clamp(3.35rem, 11vw, 10.25rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .9;
}

.resume-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 8px clamp(22px, 5vw, 80px);
  padding-top: clamp(15px, 2.4vw, 36px);
}

.resume-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.resume-intro h2,
.resume-experience > header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.25vw, 3rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.053em;
}

.resume-intro p,
.resume-education-name > p:last-child {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.resume-experience > header { margin-bottom: clamp(14px, 2.2vw, 28px); }
.resume-total { margin: 7px 0 0; color: var(--muted); }

.resume-employer,
.resume-education {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(16px, 4vw, 60px);
  border-top: 1px solid var(--line);
  padding-block: clamp(18px, 3.4vw, 46px);
}

.resume-employer h3,
.resume-degree h3 {
  margin: 0 0 9px;
  font-size: clamp(1.5rem, 3.5vw, 3.2rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.resume-role { margin: 0 0 5px; font-size: clamp(1rem, 1.45vw, 1.25rem); font-weight: 650; }
.resume-period {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.resume-period small { display: block; margin-top: 3px; font: inherit; }
.resume-period time { color: var(--ink); }

.resume-work :is(ul,p) { max-width: 69ch; }
.resume-work ul { margin: 0 0 12px; padding-left: 1.2em; }
.resume-work li + li { margin-top: 6px; }
.resume-work ul ::marker { color: var(--blue); }
.resume-team, .resume-tools { margin: 0; color: var(--muted); font-size: .91rem; }
.resume-team + .resume-tools { margin-top: 5px; }
.resume-team b, .resume-tools b { color: var(--ink); margin-inline-end: .3em; }

.resume-projects { margin-top: clamp(16px, 2.4vw, 27px); }
.resume-projects h4 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.015em; }
.resume-projects details > summary {
  min-height: 46px;
  padding-block: 9px;
  line-height: 1.25;
}
.resume-projects details > summary::after { flex: 0 0 auto; }
.resume-projects details > ul { margin-block: 0 12px; }
.resume-projects details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 4px;
  text-decoration-color: var(--line);
  text-underline-offset: .26em;
}
.resume-projects details a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }

.resume-education { padding-bottom: 0; }
.resume-education-name h2 {
  margin: 7px 0 13px;
  font-size: clamp(2.85rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.065em;
}
.resume-education-name .name-dot { color: var(--blue); margin-left: .035em; }
.resume-degree { align-self: end; }
.resume-degree h3 { max-width: 26ch; font-size: clamp(1.35rem, 2.65vw, 2.45rem); }
.resume-degree p { margin: 0; color: var(--muted); }
.resume-view :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 680px) {
  .resume-intro, .resume-employer, .resume-education { grid-template-columns: minmax(0, 1fr); }
  .resume-education { gap: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .resume-title .name-line { animation: home-name 680ms var(--home-ease) both; }
  .resume-intro::before { animation: resume-line 460ms var(--home-ease) both; }
  .resume-projects details[open] > :not(summary) { animation: home-rise 220ms var(--home-ease) both; }
  .resume-projects details a { transition: text-decoration-color 180ms var(--home-ease); }
}

@keyframes resume-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
