/* ============================================================
   CV PAGE (cv.html)
   One orange thread: the timeline fill and the current-section
   marker. Everything else stays neutral.
   ============================================================ */
.cv-body {
  padding: 40px var(--pad-x) var(--sec-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.cv-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.cv-print-header,
.cv-print-only { display: none; }

/* ---------- Rail ---------- */
.cv-rail {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  max-height: calc(100vh - var(--nav-h) - 56px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cv-rail::-webkit-scrollbar { display: none; }

.cv-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0.5px solid var(--gray-mid);
  border-radius: 1px;
  background: var(--surface-dark);
  color: var(--warm-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cv-download svg { transition: transform 0.3s var(--ease); }
.cv-download:hover,
.cv-download:focus-visible { border-color: var(--blaze-orange); color: var(--blaze-orange); }
.cv-download:hover svg { transform: translateY(2px); }

.cv-rail__alt {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.cv-rail__alt a,
.cv-rail__print {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--gray-mid);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.cv-rail__alt a:hover,
.cv-rail__print:hover { color: var(--warm-white); }

.cv-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 0.5px solid var(--gray-mid);
  border-bottom: 0.5px solid var(--gray-mid);
}
.cv-contact li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cv-contact svg { color: var(--graphite); }
.cv-contact a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease);
}
.cv-contact a:hover { color: var(--warm-white); }

/* Keyboard focus in the rail */
.cv-rail__alt a:focus-visible,
.cv-rail__print:focus-visible,
.cv-contact a:focus-visible,
.cv-spy a:focus-visible { outline: 1px solid var(--warm-white); outline-offset: 3px; }

/* Scroll-spy */
.cv-spy__list,
.cv-spy__sub { list-style: none; }
.cv-spy a {
  display: block;
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--graphite);
  text-decoration: none;
  border-left: 0.5px solid var(--gray-mid);
  transition: color 0.3s var(--ease);
}
.cv-spy__sub a {
  padding-left: 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.cv-spy a::before {
  content: '';
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--blaze-orange);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.cv-spy a:hover { color: var(--warm-white); }
.cv-spy a[aria-current="true"] { color: var(--warm-white); }
.cv-spy a[aria-current="true"]::before { transform: scaleY(1); }

/* ---------- Main column ---------- */
.cv-main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  min-width: 0;
}

.cv-section { scroll-margin-top: calc(var(--nav-h) + 24px); }

.cv-section__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--gray-mid);
}
.cv-section__count {
  margin-left: 8px;
  color: var(--warm-white);
}

.cv-summary {
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-lead);
  max-width: 720px;
}

.cv-focus {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5px;
  background: var(--gray-mid);
  border: 0.5px solid var(--gray-mid);
}
.cv-focus__item {
  flex: 1 1 210px;
  background: var(--surface-darker);
  padding: 20px 22px 22px;
}
.cv-focus__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--warm-white);
  margin-bottom: 8px;
}
.cv-focus__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Timeline ---------- */
.cv-timeline {
  --cv-progress: 0;
  position: relative;
  padding-left: 40px;
}
.cv-timeline::before,
.cv-timeline::after {
  content: '';
  position: absolute;
  left: 5px; top: 10px; bottom: 0;
  width: 1px;
}
.cv-timeline::before { background: var(--gray-mid); }
.cv-timeline::after {
  background: var(--blaze-orange);
  transform: scaleY(var(--cv-progress));
  transform-origin: top;
}

.cv-role {
  position: relative;
  padding-bottom: 56px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.cv-role:last-child { padding-bottom: 0; }
.cv-role::before {
  content: '';
  position: absolute;
  left: -40px; top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--pitch-black);
  border: 1px solid var(--graphite);
  z-index: 1;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.cv-role.is-reached::before {
  border-color: var(--blaze-orange);
  background: var(--blaze-orange);
}

.cv-role__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cv-role__company {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cv-role__logo {
  height: var(--logo-h, 18px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(0.96) sepia(0.06);
  opacity: 0.85;
}
/* The mark already says the name; keep the text for assistive tech and print */
.cv-role__logo + span {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#role-dn-creative .cv-role__logo + span {
  position: static;
  width: auto; height: auto;
  clip: auto;
}
.cv-role__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--warm-white);
}
.cv-role__dates {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 6px;
}
.cv-role__scope {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 24px;
}

.cv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.5px;
  background: var(--gray-mid);
  border: 0.5px solid var(--gray-mid);
  margin-bottom: 28px;
}
.cv-metric {
  background: var(--surface-darker);
  padding: 18px 20px 20px;
}
.cv-metric__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--warm-white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cv-metric__label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.cv-role__track {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 28px 0 12px;
}
.cv-metrics + .cv-role__track { margin-top: 0; }

.cv-role__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 760px;
}
.cv-role__highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
}
.cv-role__highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78em;
  width: 8px; height: 0.5px;
  background: var(--graphite);
}

/* ---------- Skills / education rows ---------- */
.cv-skills { border-top: 0.5px solid var(--gray-mid); }
.cv-skills__row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--gray-mid);
}
.cv-section__heading + .cv-skills { border-top: 0; margin-top: -14px; }
.cv-skills dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  padding-top: 3px;
}
.cv-skills dd {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- Awards ---------- */
.cv-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 56px;
}
.cv-awards__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}
.cv-awards__list { list-style: none; }
.cv-awards__list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--gray-mid);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-lead);
}
.cv-awards__list strong {
  grid-row: span 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 3px;
}
.cv-awards__list span {
  grid-column: 2;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cv-layout { grid-template-columns: 1fr; gap: 48px; }
  .cv-rail {
    position: static;
    max-height: none;
    overflow: visible;
    gap: 20px;
  }
  .cv-spy { display: none; }
  .cv-rail__downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .cv-download { padding: 14px 28px; }
  .cv-rail__alt { margin-top: 0; }
  .cv-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 28px;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .cv-contact li { display: flex; gap: 10px; }
}

@media (max-width: 640px) {
  .cv-main { gap: 56px; }
  .cv-timeline { padding-left: 28px; }
  .cv-role::before { left: -28px; }
  .cv-skills__row { grid-template-columns: 1fr; gap: 6px; }
  .cv-metrics { grid-template-columns: repeat(2, 1fr); }
  .cv-role__dates { padding-top: 0; }
  .cv-download { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-role::before,
  .cv-spy a::before,
  .cv-download,
  .cv-download svg { transition: none; }
}

/* ============================================================
   PRINT — the same page as a two-page letter resume.
   Light paper, dark ink, no site chrome.
   ============================================================ */
@page { size: letter; margin: 0.45in 0.55in; }

@media print {
  html, body { background: #fff !important; }
  body > :not(main) { display: none !important; }
  body { color: #1A1A1A; font-size: 9pt; }
  main { position: static !important; }

  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  .cv-body { padding: 0; max-width: none; }
  .cv-layout { display: block; }
  .cv-rail,
  .cv-screen-only,
  .cv-metrics,
  .cv-awards,
  .cv-focus__desc { display: none !important; }
  .cv-print-only { display: block; }
  .cv-main { gap: 9pt; }

  .cv-print-header {
    display: block;
    padding-bottom: 8pt;
    margin-bottom: 10pt;
    border-bottom: 1.5pt solid #1A1A1A;
  }
  .cv-print-header__name {
    font-family: var(--font-display);
    font-size: 26pt;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #0A0A0A;
  }
  .cv-print-header__role { font-size: 10pt; font-weight: 500; margin-top: 4pt; color: #1A1A1A; }
  .cv-print-header__contact { font-size: 8.5pt; margin-top: 3pt; color: #444; }

  .cv-section__heading {
    font-size: 10.5pt;
    letter-spacing: 3px;
    color: #C2410C;
    margin-bottom: 6pt;
    padding-bottom: 3pt;
    border-bottom: 0.5pt solid #BDBDBD;
    break-after: avoid;
  }
  .cv-section__count { color: #1A1A1A; }

  .cv-summary { font-size: 8.8pt; font-weight: 400; line-height: 1.4; color: #1A1A1A; max-width: none; }

  .cv-focus {
    display: block;
    margin-top: 5pt;
    background: none;
    border: 0;
  }
  .cv-focus::before { content: 'Focus areas: '; font-weight: 700; font-size: 9pt; }
  .cv-focus__item { display: inline; background: none; padding: 0; }
  .cv-focus__item:not(:last-child)::after { content: ' · '; }
  .cv-focus__title {
    display: inline;
    font-family: var(--font-body);
    font-size: 9pt;
    letter-spacing: 0;
    color: #1A1A1A;
  }

  .cv-timeline { padding-left: 0; }
  .cv-timeline::before,
  .cv-timeline::after,
  .cv-role::before { display: none; }

  .cv-role { padding-bottom: 6pt; }
  .cv-role__header { margin-bottom: 1pt; flex-wrap: nowrap; align-items: baseline; }
  .cv-role__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6pt; }
  .cv-role__company {
    order: 2;
    gap: 0;
    min-height: 0;
    margin: 0;
    font-size: 9.5pt;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #1A1A1A;
  }
  .cv-role__company::before { content: '|'; margin-right: 6pt; color: #888; }
  .cv-role__logo { display: none; }
  .cv-role__logo + span,
  #role-dn-creative .cv-role__logo + span {
    position: static;
    width: auto; height: auto;
    clip: auto;
  }
  .cv-role__title {
    font-family: var(--font-body);
    font-size: 9.5pt;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    color: #0A0A0A;
  }
  .cv-role__dates { font-size: 8.5pt; letter-spacing: 0; text-transform: none; color: #444; padding-top: 0; }
  .cv-role__scope { font-size: 8.5pt; font-style: italic; line-height: 1.35; color: #444; max-width: none; margin-bottom: 3pt; }
  .cv-role__track {
    font-size: 8.5pt;
    letter-spacing: 0;
    text-transform: none;
    color: #1A1A1A;
    margin: 4pt 0 2pt !important;
    break-after: avoid;
  }
  .cv-role__highlights { gap: 1.5pt; max-width: none; }
  .cv-role__highlights li { font-size: 8.5pt; line-height: 1.34; color: #1A1A1A; padding-left: 10pt; }
  .cv-role__highlights li::before { width: 3pt; height: 3pt; border-radius: 50%; background: #1A1A1A; top: 0.5em; }

  .cv-skills { border: 0; margin-top: 0 !important; }
  .cv-skills__row { display: block; padding: 0 0 2.5pt; border: 0; }
  .cv-skills dt { display: inline; font-size: 8.5pt; letter-spacing: 0; text-transform: none; color: #0A0A0A; padding: 0; }
  .cv-skills dt::after { content: ': '; }
  .cv-skills dd { display: inline; font-size: 8.5pt; line-height: 1.36; color: #1A1A1A; }

  .cv-awards { grid-template-columns: 1fr 1fr; gap: 0 20pt; }
  .cv-awards__title { font-size: 8.5pt; letter-spacing: 0; text-transform: none; color: #0A0A0A; margin-bottom: 2pt; }
  .cv-awards__list li {
    display: block;
    padding: 0 0 1pt;
    border: 0;
    font-size: 8.3pt;
    line-height: 1.35;
    color: #1A1A1A;
  }
  .cv-awards__list strong { font-size: 8.3pt; letter-spacing: 0; text-transform: none; color: #0A0A0A; padding: 0; }
  .cv-awards__list strong::after { content: ':'; }
  .cv-awards__list span { font-size: 8.3pt; color: #555; }
  .cv-awards__list span::before { content: '· '; }

  .cv-role, .cv-skills__row, .cv-awards__group { break-inside: avoid; }
  #role-prudential { break-inside: auto; }
  .cv-role__header, .cv-role__scope { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}
