/* =========================================================
   Resume page — same tokens as the rest of the site (styles.css):
   cream/ink, mint accent, Poppins, light by default with dark toggle.
   Layout: intro row (title + download) → one resume card → closing CTA.
   ========================================================= */

.cv-page { background: var(--bg); }
.cv { padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 8vw, 96px); display: grid; gap: clamp(28px, 4vw, 44px); max-width: calc(980px + var(--gutter) * 2); }

/* Soft background glow, like the homepage hero */
.cv-page::before { content: ""; position: fixed; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%; background: radial-gradient(circle, var(--blob-a), transparent 65%); opacity: .55; pointer-events: none; z-index: -1; }
.cv-page::after { content: ""; position: fixed; inset: auto auto -25% -15%; width: 55vw; height: 55vw; max-width: 640px; max-height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--blob-b), transparent 65%); opacity: .45; pointer-events: none; z-index: -1; }

/* ---------- Intro ---------- */
.cv-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.cv-intro > div:first-child { display: grid; gap: 12px; max-width: 620px; }
.cv-title { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.cv-sub { margin: 0; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }
.cv-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- The card ---------- */
.cv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); display: grid; gap: clamp(30px, 4vw, 44px); }
.cv-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 32px; padding-bottom: clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.cv-id { display: flex; align-items: center; gap: 16px; }
.cv-id__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); object-fit: cover; flex: none; }
.cv-name { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.cv-role { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.cv-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: right; font-size: 14.5px; }
.cv-contact a { color: var(--ink-2); text-decoration: none; transition: color .3s; }
.cv-contact li:last-child a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cv-contact a:hover { color: var(--accent); }
.cv-sep { margin: 0 8px; color: var(--muted); }

.cv-sec { display: grid; gap: 18px; }
.cv-h { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cv-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cv-summary { margin: 0; font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.cv-num { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 24%, transparent) 62%); padding: 0 2px; border-radius: 2px; }

/* ---------- Experience timeline ---------- */
.cv-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 30px; }
.cv-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.cv-timeline::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.cv-job { position: relative; display: grid; gap: 10px; }
.cv-job::before { content: ""; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-sizing: border-box; z-index: 1; }
.cv-job:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.cv-job__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.cv-job__head h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cv-co { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
a.cv-co { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .3s; }
a.cv-co:hover { color: var(--accent); }
.cv-co__hint { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.cv-co__hint svg { width: 12px; height: 12px; }
.cv-job__role { font-weight: 400; color: var(--ink-2); }
.cv-job__role::before { content: "·"; margin-right: 10px; color: var(--muted); }
.cv-job__meta { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.cv-bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cv-bullets li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.cv-bullets li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Skills ---------- */
.cv-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.cv-skill { display: grid; gap: 10px; align-content: start; }
.cv-skill h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chips li { padding: 6px 12px; border-radius: 999px; font-size: 13px; line-height: 1.3; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-2); border: 1px solid transparent; transition: background-color .3s, color .3s, border-color .3s; }
.cv-chips li:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.cv-skill--ai .cv-chips li { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.cv-skill--ai { grid-column: 1 / -1; }
.cv-skill--tools .cv-chips li { background: color-mix(in srgb, #FEAA04 18%, transparent); color: var(--ink); }

/* ---------- Education ---------- */
.cv-edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cv-edu li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cv-edu li:last-child { border-bottom: 0; }
.cv-edu li > div { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15.5px; }
.cv-edu b { font-weight: 600; }
.cv-edu span { color: var(--ink-2); }
.cv-edu .cv-edu__dates { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------- Closing CTA ---------- */
.cv-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: var(--bg); }
.cv-cta h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.cv-cta p { margin: 6px 0 0; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.cv-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cv-cta .btn--primary { background: var(--accent); color: var(--on-accent); }
.cv-cta .btn--primary::before { background: var(--bg); }
.cv-cta .btn--primary:hover { color: var(--ink); }
.cv-cta .btn--ghost { border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--bg); }
.cv-cta .btn--ghost::before { background: var(--bg); }
.cv-cta .btn--ghost:hover { color: var(--ink); border-color: var(--bg); }

/* ---------- Reveal on scroll (only when JS + motion are on) ---------- */
.js .cv .reveal { opacity: 0; transform: translateY(18px); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .cv-contact { text-align: left; }
  .cv-skills { grid-template-columns: 1fr; }
  .cv-job__meta { white-space: normal; }
  .cv-intro__actions .btn, .cv-cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 420px) {
  .cv-timeline { padding-left: 22px; }
  .cv-timeline::before, .cv-timeline::after { left: 4px; }
  .cv-job::before { left: -22px; width: 12px; height: 12px; }
  .cv-co__hint { display: none; }
}

/* ---------- Print: just the resume card ---------- */
@media print {
  .nav, .progress, .skip-link, .cv-intro__actions, .cv-cta, .footer, .cv-page::before, .cv-page::after { display: none !important; }
  .cv { padding: 0; }
  .cv-card { box-shadow: none; border: 0; padding: 0; }
  .js .cv .reveal { opacity: 1 !important; transform: none !important; }
}

/* Core skills: one combined set of chips */
.cv-chips--core { gap: 10px; }
.cv-chips--core li { padding: 8px 16px; font-size: 14px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 65%, var(--ink)); font-weight: 500; }

/* Section titles in normal case (no capitals) */
.cv-h { text-transform: none; letter-spacing: 0; font-size: 17px; }
