/* CV page (28.11): reading layout in home style + A4 print for the PDF */
.cv-page { padding-top: 64px; }
.cv-page__head { position: relative; }
.cv-page__photo { display: block; width: 112px; height: 112px; border-radius: 28px; object-fit: cover; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
@media (min-width: 1000px) { .cv-page__head { padding-right: 280px; } .cv-page__photo { position: absolute; top: 8px; right: 0; width: 240px; height: 240px; border-radius: 40px; margin: 0; } }
.cv-page .t-section { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; }
.cv-page__lede { margin: 32px 0 0; max-width: 760px; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.02em; color: var(--color-text); }
.cv-print-contacts { display: none; }
.cv-page__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cv-page__actions .btn { gap: 8px; }
.cv-sec { margin-top: 96px; }
.cv-sec__title { margin: 0 0 24px; font-weight: var(--fw); font-size: 32px; letter-spacing: -0.04em; }
.cv-job { display: grid; gap: 8px; padding: 24px 0; }
@media (min-width: 810px) { .cv-job { grid-template-columns: 220px 1fr; gap: 32px; } }
.cv-job__period { margin: 0; font-size: 15px; line-height: 24px; color: var(--color-text-muted); }
.cv-job__role { margin: 0; font-weight: var(--fw); font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
.cv-job__role span { color: var(--color-text-muted); }
.cv-job ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; max-width: 760px; }
.cv-job li { font-size: 16px; line-height: 24px; color: var(--color-text-body, #444); text-wrap: pretty; }
.cv-skills li:first-child { background: var(--color-plate); color: var(--color-text); }

/* ---- A4 print (used for the downloadable PDF) ---- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  html, body { background: #fff !important; }
  body { padding-top: 0 !important; font-size: 10pt; }
  .site-header, .case-toc, .site-footer, .skip-link, .cv-page__actions { display: none !important; }
  .js .reveal, .js .stagger > *, .js .hero__title, .js .case-head .t-section { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .cv-page { padding: 0; width: auto !important; }
  .cv-page .t-section { font-size: 30pt; }
  .cv-page__lede { font-size: 12pt; margin-top: 10pt; max-width: none; }
  .case-tags { margin-top: 10pt; gap: 4pt; }
  .case-tags li { min-height: 0; padding: 3pt 8pt; font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv-sec { margin-top: 18pt; break-inside: auto; }
  .cv-sec__title { font-size: 15pt; margin-bottom: 4pt; }
  .cv-job { grid-template-columns: 40mm 1fr; gap: 5mm; padding: 6pt 0; break-inside: avoid; }
  .cv-job__period { font-size: 9pt; line-height: 15pt; white-space: nowrap; }
  .cv-job__role { font-size: 11.5pt; line-height: 15pt; }
  .cv-job ul { margin-top: 4pt; gap: 2pt; max-width: none; }
  .cv-job li { font-size: 9.5pt; line-height: 13pt; }
  a { color: inherit !important; }
  .cv-job li a { display: none; }
  .cv-page__head { padding-right: 38mm !important; }
  .cv-page__photo { position: absolute; top: 0; right: 0; width: 32mm; height: 32mm; border-radius: 8mm; box-shadow: none; margin: 0; }
  .cv-print-contacts { display: block; margin: 8pt 0 0; font-size: 10pt; color: #555; }
  .cv-page .t-section__idx { display: none; }
  .cv-sec__title { break-after: avoid; }
  /* sections may flow across pages (only single jobs stay whole), so page 1 is filled */
}
/* links to cases: pills under the job, not a trailing "Case" word in the text (28.11) */
.cv-job__cases { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
@media print { .cv-job__cases { display: none !important; } }
/* alignment (28.11): period sits on the role's baseline, bullet text aligns with the role */
.cv-job { align-items: baseline; }
.cv-job ul { padding-left: 0; list-style: none; }
/* case links under a job: product icon + name + arrow, reads as a destination (28.11) */
.cv-case { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--color-plate); color: var(--color-text); text-decoration: none; font-size: 16px; transition: background .2s; }
.cv-case:hover { background: var(--color-plate-hover); color: var(--color-text); }
.cv-case img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.cv-case__sub { color: var(--color-text-muted); }
.cv-case__arrow { flex: none; margin-left: 2px; transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); }
.cv-case:hover .cv-case__arrow { transform: translate(2px, -2px); }
.cv-job__cases a.cv-case, .cv-job__cases a.cv-case:hover { color: var(--color-text); }
/* period in the role's size and weight, muted: one line read across both columns (28.11) */
@media screen { .cv-job__period { font-size: 20px; line-height: 26px; letter-spacing: -0.02em; } }
@media screen and (max-width: 809.98px) { .cv-job__period { font-size: 15px; line-height: 22px; letter-spacing: 0; } }
@media screen and (min-width: 810px) {
  .cv-job { grid-template-columns: 280px 1fr; }
  .cv-job__period { white-space: nowrap; }
}
/* line breaks (28.11): the company never breaks away from its "·", and below 1000px the period sits above the role */
.cv-job__role span { white-space: nowrap; }
@media screen and (min-width: 810px) and (max-width: 999.98px) {
  .cv-job { grid-template-columns: 1fr; gap: 4px; }
  .cv-job__period { font-size: 15px; line-height: 22px; letter-spacing: 0; }
}
/* skills in three groups (30.11): the same two columns as the jobs, the group name sits where the dates are */
.cv-skillrow { display: grid; gap: 12px; padding: 16px 0; align-items: baseline; }
.cv-skillrow__label { margin: 0; font-weight: var(--fw); font-size: 15px; line-height: 22px; color: var(--color-text-muted); }
.cv-page .cv-skillrow .cv-skills { margin: 0; }
@media screen and (min-width: 1000px) {
  .cv-skillrow { grid-template-columns: 280px 1fr; gap: 32px; }
  .cv-skillrow__label { font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
}
@media print {
  .cv-skillrow { grid-template-columns: 40mm 1fr; gap: 5mm; padding: 4pt 0; break-inside: avoid; }
  .cv-skillrow__label { font-size: 9pt; line-height: 15pt; }
}
