/* Résumé (/resume, Wix: /about-9): glass sections on screen, plain black-on-white when printed. */
.cv__wrap { max-width: 1040px; display: grid; gap: clamp(18px, 2.6vw, 28px); }
.cv h2 { margin-top: 0; }

.cv-banner { padding: 8px; overflow: hidden; }
.cv-banner img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius-sm); }

.cv-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; margin-top: clamp(-120px, -9vw, -40px); position: relative; }
.cv-head__photo { margin: 0; padding: 10px; }
.cv-head__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cv-head__body { align-self: center; }
.cv-head__name { margin: 0 0 .2em; }
.cv-head__headline { font: 400 1.25rem/1.35 var(--font-display); color: var(--text-muted); margin: 0 0 1.2em; }
.cv-contact { margin: 0; display: grid; gap: .9em; }
.cv-contact dt { font: 400 1rem/1.3 var(--font-display); color: var(--heading); }
.cv-contact dd { margin: .15em 0 0; color: var(--text-muted); }
.cv-actions { margin: 1.6em 0 0; }

.cv-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cv-job { --dot: 1.55em; padding-left: 22px; border-left: 2px solid var(--glass-border); position: relative; }
.cv-job::before { content: ""; position: absolute; left: -7px; top: var(--dot); width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); }
.cv-job__in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 3vw, 40px); padding: 1.3em 0; position: relative; }
.cv-job__title { font: 600 1.02rem/1.35 var(--font-body); margin: 0; color: var(--heading); }
.cv-job__when { margin: .2em 0 0; color: var(--text-muted); font-size: .95rem; }
.cv-job__text { text-align: left; }
.cv-job__text :is(p, ul) { margin: 0; }
.cv-job__text ul { padding-left: 1.2em; }
.cv-job__text strong { color: var(--heading); }
.cv-job__text a { overflow-wrap: anywhere; }

/* spatial timeline (mouse only; public/js/resume.js). Each job is a pane hinged on its dot. The one under the mouse
   (.is-near) comes forward on a glass plate, leans towards the pointer and catches its light; the others shrink, fade and
   swing back, more the further away they are. Per job: --n distance from the near one (0 to 3), --dir which side of it
   (-1 above, 1 below). Only .cv-job__in and the dot move: the <li>s stay put, so what's under the mouse never shifts. */
@media screen and (hover: hover) and (pointer: fine) {
  .cv-jobs { position: relative; padding-right: 16px; }
  .cv-job { --push: calc(var(--dir, 0) * (4 - var(--n, 0)) * 4px); }
  .cv-job.is-near { z-index: 1; }
  .cv-job__in { padding-right: 20px; isolation: isolate; transform-origin: -23px calc(var(--dot) + 6px); transition: transform .55s var(--ease-out), opacity .4s ease; }
  .cv-job::before { z-index: 1; transition: transform .55s var(--ease-out), box-shadow .4s ease; }
  .is-live .cv-job.is-near::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--terracotta) 28%, transparent), 0 0 22px 4px color-mix(in srgb, var(--terracotta) 55%, transparent); }

  /* the plate, and the light on it */
  .cv-job__in::before, .cv-job__in::after { content: ''; position: absolute; z-index: -1; inset: .45em 0 .45em -10px; border-radius: var(--radius-lg); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .cv-job__in::before { border: 1px solid var(--glass-border-hover); background: var(--glass-bg-hover); box-shadow: 0 26px 50px -20px color-mix(in srgb, black 55%, transparent), var(--shadow-glass); }
  .cv-job__in::after { background: radial-gradient(340px circle at calc(var(--px, .5) * 100%) calc(var(--py, .5) * 100%), color-mix(in srgb, var(--sand) 30%, transparent), transparent 72%); }
  .is-near > .cv-job__in::before, .is-near > .cv-job__in::after { opacity: 1; }

  /* the glow on the rail that slides to the near job (--y, --h: its top and height) */
  .cv-jobs::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; width: 2px; height: var(--h, 0); transform: translateY(var(--y, 0)); opacity: 0; pointer-events: none;
    background: linear-gradient(transparent, var(--terracotta) 30%, var(--terracotta) 60%, transparent); transition: transform .55s var(--ease-out), height .55s var(--ease-out), opacity .4s ease; }
  .cv-jobs.is-live::before { opacity: 1; }
}
@media screen and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .is-live .cv-job::before { transform: translateY(var(--push)) scale(calc(1 - var(--n) * .12)); }
  .is-live .cv-job.is-near::before { transform: scale(1.35); }
  .is-live .cv-job__in {
    transform: perspective(1100px) translateY(var(--push)) rotateX(calc(var(--dir) * var(--n) * -3deg)) rotateY(calc(2deg + var(--n) * 3deg)) scale(calc(.97 - var(--n) * .025));
    opacity: calc(.94 - var(--n) * .1);
    transition-delay: calc((var(--n) - 1) * 25ms); /* the others follow in a small wave */
  }
  .is-live .is-near > .cv-job__in {
    transform: perspective(1100px) translateY(0) rotateX(calc((.5 - var(--py, .5)) * 5deg)) rotateY(calc((var(--px, .5) - .5) * 4deg)) scale(1.045);
    opacity: 1; transition-delay: 0s;
  }
}

.cv-social { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.cv-social__text { align-self: center; }
.cv-social__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.cv-social__links a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cream); border: 1px solid var(--glass-border); transition: transform .2s ease; }
.cv-social__links a:hover { transform: translateY(-2px); }
.cv-social__icon { width: 22px; height: 22px; }
.cv-social__links svg { width: 17px; height: 17px; fill: var(--terracotta-strong); }
.cv-social__img { margin: 0; padding: 10px; }
.cv-social__img img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-sm); }
.cv-print-only { display: none; }

@media (max-width: 767px) {
  .cv-head, .cv-social, .cv-job__in { grid-template-columns: 1fr; }
  .cv-head { margin-top: -24px; }
  .cv-head__photo img { max-height: 520px; }
  .cv-job__in { gap: .5em; }
}

@media print {
  /* print: fixed black on white (the only hard-coded colours in page CSS; presets must not affect the printed résumé) */
  :root { --text: #000 !important; --text-muted: #000 !important; --heading: #000 !important; --link: #000 !important; color-scheme: light; }
  @page { margin: 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .backdrop, .nav, .drawer, .footer, .skip-link, .crumbs, .cv-actions, .cv-banner, .cv-head__photo, .cv-social__img, .cv-social__links { display: none !important; }
  .section, .page-hero { padding: 0 !important; }
  .container, .cv__wrap { width: auto; max-width: none; margin: 0; gap: 14pt; }
  .glass, .panel { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; border-radius: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .cv-head, .cv-social { display: block; margin: 0; }
  .cv-head { border-bottom: 1px solid #000 !important; padding-bottom: 8pt !important; }
  .cv-head__name { font-size: 22pt; }
  .cv-head__headline { font-size: 13pt; margin-bottom: 6pt; }
  .cv-contact { display: flex; flex-wrap: wrap; gap: 4pt 18pt; }
  .cv-contact div { display: flex; gap: 4pt; }
  .cv-contact dd { margin: 0; }
  .cv h2 { font-size: 14pt; margin: 0 0 6pt; border-bottom: 1px solid #000; padding-bottom: 2pt; }
  .cv h2 br { display: none; }
  .cv-job { border: 0; padding: 0 0 8pt; break-inside: avoid; }
  .cv-job__in { padding: 0; grid-template-columns: 1.6fr 3fr; }
  .cv-job::before { display: none; }
  .cv-print-only { display: block; margin: 0; }
  a { color: #000 !important; text-decoration: none; }
}
