/* Résumé page: builds on ../landing.css (tokens, nav, buttons, glass, 3D layer). */

.print-only { display: none; }
.nav__links a.is-current { color: var(--ink); }

/* ---------- header ---------- */
.cv-hero { padding: 150px 0 70px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 11px;
  padding: 8px 14px 8px 12px; border: 1px solid rgba(77,255,138,.25); border-radius: 999px;
  background: rgba(77,255,138,.05); margin: 0 0 34px;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--term); box-shadow: 0 0 10px var(--term); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--term); } }
.cv-hero__name {
  margin: 0; font-weight: 600; letter-spacing: -.055em; line-height: .86;
  font-size: clamp(64px, 9.5vw, 156px);
  background: linear-gradient(180deg, #fff 0%, #d9d6cf 55%, #8f8b83 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cv-hero__role { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.02em; margin: 26px 0 0; font-weight: 500; }
.cv-hero__pitch { color: #c4c1ba; font-size: 18.5px; line-height: 1.6; max-width: 60ch; margin: 20px 0 32px; }
.cv-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-hero__meta { color: var(--mute); font-size: 11px; margin: 28px 0 0; }
.cv-hero__meta b { color: var(--faint); font-weight: 400; margin: 0 6px; }

/* ---------- two-column body: index + reading column; the 3D lives to the right ---------- */
.cv-body { display: grid; grid-template-columns: 170px minmax(0, 760px); gap: 56px; align-items: start; }
.cv-index { position: sticky; top: 96px; padding-top: 8px; }
.cv-index ol { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 2px; font-size: 11px; }
.cv-index a { display: flex; gap: 12px; padding: 8px 0; color: var(--faint); transition: color .25s; }
.cv-index a span { color: var(--faint); opacity: .7; }
.cv-index a:hover, .cv-index a.on { color: var(--ink); }
.cv-index a.on span { color: var(--gold); opacity: 1; }
.cv-index__pdf { color: var(--gold); font-size: 11px; border-top: 1px solid var(--line); padding-top: 18px; display: block; }

.cv-sec { padding: 40px 0 90px; scroll-margin-top: 80px; }
.cv-sec--tight { padding-bottom: 40px; }
.cv-sec__head { margin-bottom: 34px; }
.cv-sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cv-sec__head h2 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; font-size: clamp(34px, 3.6vw, 54px); }
.cv-sec__note { color: var(--mute); margin: 16px 0 0; max-width: 52ch; font-size: 15.5px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- impact ---------- */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 24px 22px 22px; border-radius: 16px; }
.metric b { display: block; font-weight: 500; font-size: 44px; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.metric p { color: var(--mute); font-size: 14px; line-height: 1.45; margin: 12px 0 0; }
.metric strong { color: var(--ink); font-weight: 500; }

/* ---------- skills ---------- */
.skills { display: grid; gap: 22px; }
.skills__group h3 { color: var(--faint); font-size: 10.5px; font-weight: 400; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 14px var(--sans); color: #d6d3cc; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: rgba(220,181,101,.5); color: var(--ink); transform: translateY(-1px); }
.chip .n { font: 500 10.5px var(--mono); color: var(--faint); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #111; }
.chip.on .n { color: rgba(0,0,0,.55); }

/* ---------- experience ---------- */
.role { position: relative; padding: 0 0 40px 30px; border-left: 1px solid var(--line); margin-left: 4px; }
.role::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.role:first-of-type::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.role__head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.role__head h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.role__title { margin: 4px 0 0; color: var(--gold); font-size: 15px; }
.role__when { color: var(--mute); font-size: 11px; white-space: nowrap; margin: 0; }
.role__intro { color: var(--mute); margin: 14px 0 0; font-size: 15.5px; max-width: 62ch; }
.hl { list-style: none; margin: 16px 0 0; padding: 0; }
.hl__item { border-top: 1px solid var(--line); transition: opacity .35s, background .35s; border-radius: 4px; }
.hl__item:last-child { border-bottom: 1px solid var(--line); }
.hl__toggle {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 4px; font-size: 16.5px; font-weight: 500; color: #e2dfd8; letter-spacing: -.01em; line-height: 1.4;
}
.hl__toggle span { flex: 1; }
.hl__toggle::after { content: "+"; font: 400 18px var(--mono); color: var(--faint); transition: transform .35s var(--ease), color .2s; line-height: 1.2; }
.hl__toggle:hover { color: #fff; }
.hl__toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.hl__item.open .hl__toggle::after { transform: rotate(45deg); color: var(--gold); }
.hl__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.hl__item.open .hl__body { grid-template-rows: 1fr; }
.hl__inner { overflow: hidden; min-height: 0; }
.hl__body p { margin: 0; color: var(--mute); font-size: 15.5px; line-height: 1.6; padding: 0 30px 0 4px; }
.hl__body .stack { color: var(--faint); font-size: 10.5px; line-height: 1.7; padding-top: 12px; padding-bottom: 18px; }
.earlier { color: var(--mute); font-size: 15px; margin: 6px 0 0 34px; max-width: 62ch; }
.earlier span { color: var(--gold); font-size: 10.5px; margin-right: 10px; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pj { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px; border-radius: 16px; align-items: center; transition: opacity .35s, border-color .3s, transform .4s var(--ease); }
.pj img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; filter: saturate(.85); }
.pj h3 { margin: 0 0 4px; font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.pj p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.45; }
.pj .pj__url { color: var(--gold); font-size: 10px; margin-top: 8px; text-transform: none; letter-spacing: .02em; }

/* ---------- beyond + education ---------- */
.beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.beyond h3, .edu h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.beyond p, .edu p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }

.cv-contact { min-height: 80vh; padding-top: 12vh; }

/* ---------- skill filter: matches light up, everything else recedes ---------- */
body.filtering .hl__item, body.filtering .pj { opacity: .28; }
body.filtering .hl__item.match, body.filtering .pj.match { opacity: 1; }
body.filtering .hl__item.match { background: linear-gradient(90deg, rgba(220,181,101,.09), transparent 70%); }
body.filtering .hl__item.match .hl__toggle span { color: #fff; }
body.filtering .pj.match { border-color: rgba(220,181,101,.55); }
body.filtering .role:not(.has-match) .role__head { opacity: .45; transition: opacity .35s; }
.filterbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(14,13,12,.82); border: 1px solid rgba(220,181,101,.4);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  font-size: 14px; color: var(--mute); animation: rise .45s var(--ease);
  width: max-content; max-width: calc(100vw - 24px); white-space: nowrap;
}
@media (max-width: 560px) { .filterbar { font-size: 13px; gap: 10px; padding-left: 14px; } }
.filterbar b { color: var(--ink); font-weight: 500; }
.filterbar__clear { all: unset; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; color: #111; background: var(--gold); padding: 8px 14px; border-radius: 999px; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.filterbar[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* the reading column needs the room; the 3D steps back */
  body.page-cv #gl { opacity: .35; }
}
@media (max-width: 900px) {
  .cv-body { grid-template-columns: 1fr; gap: 0; }
  .cv-index { display: none; }
  .impact { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr; }
  .beyond { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .cv-hero { padding-top: 120px; }
  .role { padding-left: 20px; }
  .role__head { flex-direction: column; gap: 4px; }
  .impact { grid-template-columns: 1fr 1fr; }
  .metric b { font-size: 34px; }
}

/* ======================================================================
   PRINT / PDF: the same content as a clean, ATS-friendly two-pager
   ====================================================================== */
@page { size: Letter; margin: 11mm 13mm 11mm; }
@media print {
  html, body { background: #fff !important; }
  body { color: #16140f; font: 9.2pt/1.38 var(--sans); }
  #gl, .vignette, .nav, .cv-index, .filterbar, .cv-hero__actions, .cv-hero__meta, .status,
  .btn, .cv-sec__note, .skills, .cv-contact, .pj img, [data-expand-all] { display: none !important; }
  .print-only { display: block !important; }
  .wrap { padding: 0 !important; max-width: none !important; }
  em { color: #8a6420; }
  .label { color: #16140f; font: 600 8.2pt var(--sans); letter-spacing: .12em; margin: 0 0 4pt; padding-bottom: 2pt; border-bottom: .6pt solid #cfc8bb; }
  .cv-sec__head h2 { display: none; }

  .cv-hero { padding: 0 0 8pt; border-bottom: 1.2pt solid #16140f; }
  .cv-hero__name { font-size: 30pt; line-height: 1; background: none; color: #16140f; -webkit-text-fill-color: #16140f; letter-spacing: -.03em; }
  .cv-hero__role { font-size: 12.5pt; margin: 5pt 0 0; }
  .cv-hero__pitch { color: #2f2b24; font-size: 9.6pt; margin: 6pt 0 0; max-width: none; line-height: 1.45; }
  .print-contact { font-size: 7.9pt; color: #4a443a; margin: 5pt 0 0; white-space: nowrap; }

  .cv-body { display: block; }
  .cv-sec { padding: 6pt 0 0; break-inside: auto; }
  .cv-sec__head { margin-bottom: 6pt; }
  .cv-sec__head h2 { font-size: 13pt; letter-spacing: -.01em; }
  .cv-sec__head h2 em { color: #16140f; font-family: var(--sans); font-style: normal; }

  .impact { grid-template-columns: repeat(3, 1fr); gap: 4pt 14pt; }
  .glass { background: none !important; border: 0 !important; backdrop-filter: none !important; box-shadow: none !important; border-radius: 0 !important; }
  .metric { padding: 0; display: flex; gap: 6pt; align-items: baseline; }
  .metric b { font-size: 11pt; color: #16140f; letter-spacing: -.02em; min-width: 34pt; }
  .metric p { font-size: 7.9pt; line-height: 1.3; color: #4a443a; margin: 0; }
  .metric strong { color: #16140f; }

  .print-skills { font-size: 8.8pt; color: #2f2b24; margin: 0; line-height: 1.55; }
  .print-skills b { color: #16140f; }

  .role { border: 0; padding: 0 0 4pt; margin: 0; }
  .role__head { break-after: avoid; }
  .role::before { display: none; }
  .role__head h3 { font-size: 10.8pt; }
  .role__title { color: #8a6420; font-size: 9pt; margin-top: 1pt; }
  .role__when { color: #4a443a; font-size: 8pt; }
  .role__intro { color: #2f2b24; font-size: 9pt; margin-top: 3pt; max-width: none; }
  .hl { margin-top: 3pt; }
  .hl__item, .hl__item:last-child { border: 0; opacity: 1 !important; background: none !important; break-inside: avoid; padding-left: 10pt; position: relative; }
  .hl__item::before { content: "▸"; position: absolute; left: 0; top: 1.5pt; font-size: 7pt; color: #8a6420; }
  .hl__toggle { padding: 2pt 0 0; font-size: 9pt; color: #16140f; font-weight: 600; }
  .hl__toggle::after { display: none; }
  .hl__body { display: block; }
  .hl__inner { overflow: visible; }
  .hl__body p { color: #2f2b24; font-size: 8.5pt; padding: 1pt 0 0; line-height: 1.33; }
  .hl__item[data-print="brief"] .hl__body p:not(.stack) { display: none; }
  .hl__body .stack { color: #6b6355; font-size: 7.6pt; padding: 1pt 0 3pt; text-transform: none; letter-spacing: 0; }
  .earlier { margin: 2pt 0 0; color: #2f2b24; font-size: 8.9pt; max-width: none; }
  .earlier span { color: #8a6420; }

  .projects { grid-template-columns: repeat(3, 1fr); gap: 5pt 14pt; }
  .pj { display: block; padding: 0; opacity: 1 !important; break-inside: avoid; }
  .pj > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5pt; }
  .pj h3 { font-size: 9pt; order: 1; margin: 0; }
  .pj .pj__url { order: 2; color: #8a6420; font-size: 7.4pt; margin: 0; }
  .pj p { order: 3; width: 100%; font-size: 8.3pt; line-height: 1.32; color: #2f2b24; }

  .beyond { display: block; }
  .beyond > div { margin: 0 0 1.5pt; }
  .beyond h3 { display: inline; }
  .beyond h3::after { content: " · "; font-weight: 400; }
  .beyond p { display: inline; }
  .beyond h3, .edu h3 { font-size: 9.6pt; margin: 0 0 2pt; }
  .beyond p, .edu p { font-size: 8.4pt; line-height: 1.32; color: #2f2b24; }
  #education { padding-top: 6pt; }
  #education .cv-sec__head { margin-bottom: 2pt; }
  .edu { display: flex; gap: 8pt; align-items: baseline; }
  a { color: inherit; text-decoration: none; }
}

/* <button class="btn"> needs the same face as the link buttons */
button.btn { color: var(--ink); font-family: var(--sans); cursor: pointer; }
