.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 7vw, 8rem);
  align-items: start;
  isolation: isolate;
  background-color: var(--signal-bg);
  color: var(--signal-text);
}
.cv-art {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--mast-height) + clamp(1rem, 5vh, 3rem));
  margin-top: clamp(2rem, 4vw, 5rem);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .61;
}
.cv-art img {
  width: 100%;
  max-height: 82vh;
  max-height: min(82vh, calc(100dvh - var(--mast-height) - 3rem));
  object-fit: contain;
  object-position: top center;
  mask-image: linear-gradient(to bottom, black 77%, transparent 100%);
}
.cv-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}
.cv-intro {
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4rem);
}
.cv-eyebrow, .cv-date, .cv-skills dt {
  font: 400 .9rem/1.4 var(--signal-mono);
  color: var(--signal-mint);
}
.cv-eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--signal-active);
}
.cv-eyebrow::before { content: ""; width: 2.4rem; border-top: 1px solid currentColor; }
.cv-intro h1, .cv-section h2, .cv-section h3, .cv-reference blockquote {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
}
.cv-intro h1 {
  margin: 1.4rem 0 1.2rem;
  font-size: clamp(4.1rem, 7.65vw, 7.2rem);
  line-height: .94;
}
.cv-intro h1 em { display: block; font-style: italic; color: var(--signal-active); }
.cv-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.05rem; font-size: 1.15rem; font-weight: 600; }
.cv-role span { border-left: 1px solid #b6ad9e; padding-left: 1.05rem; color: var(--signal-muted); font-size: 1rem; font-weight: 400; }
.cv-summary, .cv-position > p:not([class]), .cv-education div > p:not([class]), .cv-skills dd {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.58;
  color: var(--signal-muted);
}
.cv-intro .contact-block { margin-block-start: 1rem; }
.cv-summary { max-width: 58ch; margin-top: 1.55rem; }
.cv-summary + .cv-summary { margin-top: .75rem; }
.cv-role a, .cv-projects a, .cv-skills a {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--signal-mint);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  cursor: pointer;
}
.cv-role a { font-size: 1rem; font-weight: 400; }
.cv-role a:hover, .cv-projects a:hover, .cv-skills a:hover { color: var(--signal-active); }
.cv-section { padding: clamp(1.6rem, 3.3vw, 3rem) 0; border-top: 1px solid #bcb3a3; }
.cv-section h2 { font-size: clamp(2.1rem, 3.25vw, 3.35rem); line-height: 1.08; margin-bottom: 1.65rem; }
.cv-section h3 { font-size: clamp(1.55rem, 2.15vw, 2.15rem); line-height: 1.12; margin: .2rem 0; }
.cv-roles { list-style: none; padding: 0; margin: 0; }
.cv-position {
  position: relative;
  border-left: 1px solid #c5b9a8;
  padding: 0 0 1.8rem 1.45rem;
  margin-left: .24rem;
}
.cv-position::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: .38rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--signal-active);
  background: var(--signal-bg);
}
.cv-position:first-child::before { background:var(--signal-active); }
.cv-position:last-child { border-color: transparent; padding-bottom: 0; }
.cv-job { color: var(--signal-text); font-weight: 550; }
.cv-position > p:not([class]) { margin-top: .65rem; }
.cv-projects { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; margin-top: .8rem; }
.cv-education { display: grid; gap: 1.5rem; }
.cv-skills { display: grid; grid-template-columns: minmax(9rem, .55fr) minmax(0, 1fr); gap: .9rem clamp(1rem, 3vw, 2.75rem); margin: 0; }
.cv-skills dt { padding-top: .2rem; }
.cv-skills dd { margin: 0; }
.cv-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-tools li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  break-inside: avoid;
}
.cv-tools img {
  width: calc(var(--tool-icon-size) / 2);
  height: auto;
  flex: none;
}
.cv-reference blockquote { margin: 0 0 1.2rem; font-size: clamp(1.4rem, 2.15vw, 2.05rem); font-style: italic; line-height: 1.3; letter-spacing: -.023em; }
.cv-reference figcaption { font-size: 1rem; }
.cv-reference figcaption strong { display: block; font-weight: 600; }

@media (max-width: 760px) {
  .cv-layout { grid-template-columns: minmax(0, 1fr); }
  .cv-content, .cv-art { grid-area: 1 / 1; }
  .cv-art {
    width: min(57%, 19rem);
    justify-self: end;
    top: calc(var(--mast-height) + .75rem);
    margin-top: 1.7rem;
    opacity: .24;
  }
  .cv-art img { max-height: 60vh; mask-image: linear-gradient(to bottom, black 55%, transparent 100%); }
  .cv-intro { padding-top: 2rem; }
  .cv-intro h1 { font-size: clamp(3.6rem, 11vw, 5rem); }
  .cv-content {
    background: linear-gradient(to right, var(--signal-bg) 0%, var(--signal-bg) 38%, transparent 95%);
  }
  .cv-summary, .cv-position > p:not([class]), .cv-education div > p:not([class]), .cv-skills dd {
    color: var(--signal-text);
  }
  .cv-section h2 { margin-bottom: 1.25rem; }
}
@media screen {
  .cv-content { container-type: inline-size; }
  @container (max-width: 31rem) {
    .cv-skills { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .cv-skills dt:not(:first-child) { margin-top: .65rem; }
  }
}
@page { size: auto; margin: 14mm 16mm; }
@media print {
  .cv-role a { flex-basis: 100%; font-size: 10pt; }
  .cv-role a::after { content: " · " attr(href); }
  html, body { background: white; color: black; }
  .mast, footer, .skip, .cv-art, .cv-projects, .cv-eyebrow { display: none !important; }
  .cv-layout, .cv-content { display: block; background: white; width: 100%; margin: 0; padding: 0; }
  .cv-intro { padding: 0 0 3mm; }
  .cv-intro h1 { margin: 0 0 2mm; font-size: 30pt; }
  .cv-intro h1 em { display: inline; }
  .cv-summary, .cv-position > p:not([class]), .cv-education div > p:not([class]), .cv-skills dd,
  .cv-role, .cv-role span, .cv-job, .cv-reference figcaption { max-width: none; font-size: 10pt; line-height: 1.32; }
  .cv-summary, .cv-summary + .cv-summary, .cv-position > p:not([class]) { margin-top: 2mm; }
  .cv-section { padding: 3mm 0; }
  .cv-section h2 { font-size: 16pt; margin: 0 0 2mm; break-after: avoid; }
  .cv-section h3 { font-size: 13pt; }
  .cv-date, .cv-skills dt { font-size: 9pt; }
  .cv-position { padding: 0 0 3mm 4mm; }
  .cv-position, .cv-education > div, .cv-reference figure { break-inside: avoid; }
  .cv-education { gap: 2mm; }
  .cv-skills { display: grid; grid-template-columns: 31mm 1fr; gap: 1.5mm 2mm; }
  .cv-reference blockquote { font-size: 11pt; margin: 0 0 2mm; }
}
