/* =========================================================
   CV page
   ========================================================= */
.page-cv { background: var(--paper); }
.cv { padding-top: 96px; }

.btn--ghost { background: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.btn--ghost-light:hover { box-shadow: 6px 6px 0 var(--paper); }
.nav__links a[aria-current="page"] { background: var(--pink); }

/* ---------- head ---------- */
.cv-hero {
  overflow-x: clip;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1500px; margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(50px, 7vw, 100px);
}
.cv-hero__name {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(52px, 8.6vw, 148px); line-height: .88; letter-spacing: -.05em;
  margin: 0 0 22px;
}
.cv-hero__role { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cv-hero__role span {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-family: var(--f-display); font-size: 13px; font-weight: 500;
}
.cv-hero__role span:first-child { background: var(--ink); color: var(--paper); }
.cv-hero__bio { max-width: 58ch; margin: 0 0 32px; font-size: 1.06em; }
.cv-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cv-hero__art { position: relative; aspect-ratio: 4 / 5; max-width: min(480px, 58vh); width: 100%; justify-self: center; }
.cv-photo {
  position: absolute; inset: 10% 6% 0 14%;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
}
.cv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cv-canvas { position: absolute; left: -12%; top: -6%; width: 78%; height: 62%; z-index: 3; touch-action: pan-y; }
.cv-hero__art .stk { z-index: 4; }

/* ---------- facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter) clamp(70px, 9vw, 130px);
}
.fact {
  display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: 22px; border: 1.5px solid var(--ink);
}
.fact--pink { background: var(--pink); }
.fact--blue { background: var(--blue); }
.fact--yellow { background: var(--yellow); }
.fact--orange { background: var(--orange); }
.fact__k { font-family: var(--f-display); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.fact__v { font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.05; }

[data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; translate: 0 0; }
.facts [data-reveal]:nth-child(2) { transition-delay: .07s; }
.facts [data-reveal]:nth-child(3) { transition-delay: .14s; }
.facts [data-reveal]:nth-child(4) { transition-delay: .21s; }

/* ---------- exhibitions ---------- */
.exh {
  background: var(--ink); color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.exh__head { max-width: 1500px; margin: 0 auto clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255, 246, 234, .5);
  font-family: var(--f-display); font-size: 13px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter__n { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--paper); }
.filter[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.filter--solo[aria-pressed="true"] { background: var(--hot); color: #fff; border-color: var(--hot); }
.filter--group[aria-pressed="true"] { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.filter--fair[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.exh__list { max-width: 1500px; margin: 0 auto; transition: opacity .18s; }
.exh__list.is-swapping { opacity: 0; }
.exh__year {
  display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 8fr); gap: 24px;
  border-top: 1.5px solid rgba(255, 246, 234, .22);
  padding: 22px 0;
}
.exh__y {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 5vw, 80px); line-height: .9; letter-spacing: -.03em;
  color: var(--paper); font-variant-numeric: tabular-nums;
  position: sticky; top: 90px; align-self: start;
  transition: color .4s;
}
.exh__year:hover .exh__y { color: var(--yellow); }
.exh__items { list-style: none; margin: 0; padding: 0; display: grid; }
.ex {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 240px); gap: 18px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 246, 234, .16);
  opacity: 0; translate: 0 14px;
  transition: opacity .6s var(--ease-out), translate .6s var(--ease-out), padding .3s var(--ease-out);
  transition-delay: calc(var(--k) * 60ms);
}
.ex:last-child { border-bottom: 0; }
.exh__year.is-in .ex { opacity: 1; translate: 0 0; }
.ex:hover { padding-left: 8px; }
.ex__title { font-weight: 500; font-size: 1.04em; }
.ex__place { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .02em; opacity: .7; text-align: right; }
.tag {
  justify-self: start;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.tag--solo { background: var(--hot); color: #fff; }
.tag--group { background: var(--blue); color: var(--ink); }
.tag--fair { background: var(--yellow); color: var(--ink); }

/* ---------- experience / education ---------- */
.cv-grid {
  overflow-x: clip;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px);
  max-width: 1500px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
}
.cv-grid--skills { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-bottom: clamp(80px, 10vw, 140px); }
.cv-h {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -.035em; line-height: 1;
  margin: 0 0 28px;
}
.cv-block { position: relative; }
.cv-side { display: grid; gap: clamp(40px, 5vw, 64px); align-content: start; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--ink); }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 30px 44px; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper);
  transition: background-color .3s, transform .4s var(--ease-spring);
}
.timeline li:nth-child(4n+1)::before { background: var(--hot); }
.timeline li:nth-child(4n+2)::before { background: var(--blue); }
.timeline li:nth-child(4n+3)::before { background: var(--yellow); }
.timeline li:nth-child(4n)::before { background: var(--orange); }
.timeline li:hover::before { transform: scale(1.3); }
.tl__when { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .06em; opacity: .65; }
.timeline b { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; }

.card {
  display: grid; gap: 4px; padding: 22px 24px; border-radius: 22px; border: 1.5px solid var(--ink);
  margin-bottom: 12px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card--blue { background: var(--blue); }
.card--yellow { background: var(--yellow); }
.card--pink { background: var(--pink); }
.card__k { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.card b { font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; }

.projects { list-style: none; margin: 0; padding: 0; display: grid; }
.projects li { display: grid; gap: 2px; padding: 14px 0; border-top: 1.5px solid var(--ink); }
.projects li:last-child { border-bottom: 1.5px solid var(--ink); }
.projects b { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.projects span { opacity: .8; }

.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li {
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff;
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  rotate: var(--r, 0deg);
  transition: rotate .5s var(--ease-spring), background-color .25s;
}
.skills li:nth-child(3n+1) { --r: -1.5deg; }
.skills li:nth-child(3n+2) { --r: 1deg; }
.skills li:nth-child(5n+1):hover { background: var(--pink); }
.skills li:nth-child(5n+2):hover { background: var(--blue); }
.skills li:nth-child(5n+3):hover { background: var(--yellow); }
.skills li:nth-child(5n+4):hover { background: var(--orange); }
.skills li:nth-child(5n):hover { background: var(--pink); }
.skills li:hover { rotate: 0deg; }

.langs { list-style: none; margin: 0; padding: 0; display: grid; }
.langs li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 16px; padding: 16px 0; border-top: 1.5px solid var(--ink); align-items: center; }
.langs li:last-child { border-bottom: 1.5px solid var(--ink); }
.langs b { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.langs span { grid-row: 2; opacity: .7; font-size: .92em; }
.dots {
  grid-row: 1 / 3; grid-column: 2;
  width: 118px; height: 18px;
  background:
    radial-gradient(circle, var(--ink) 0 7px, transparent 7.5px) 0 0 / 24px 18px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 calc(var(--n) * 24px), rgba(0,0,0,.18) 0);
  mask: linear-gradient(90deg, #000 calc(var(--n) * 24px), rgba(0,0,0,.18) 0);
}

/* ---------- contact ---------- */
.cv-contact {
  position: relative; overflow: hidden;
  background: var(--cobalt); color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center; display: grid; justify-items: center; gap: 36px;
}
.cv-contact__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 7.6vw, 128px); line-height: .92; letter-spacing: -.045em;
}
.cv-contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }


/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .cv { padding-top: 76px; }
  .cv-hero { grid-template-columns: 1fr; }
  .cv-hero__art { max-width: 360px; order: -1; margin-top: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .exh__year { grid-template-columns: 1fr; gap: 6px; }
  .exh__y { position: relative; top: 0; }
  .ex { grid-template-columns: 1fr; gap: 6px; }
  .ex__place { text-align: left; }
  .cv-grid, .cv-grid--skills { grid-template-columns: 1fr; }
}

/* ---------- print: a clean one-colour CV ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .nav, .sheet, .duck-cursor, .floaters, .stk, .toast, .skip, .cv-hero__art, .cv-hero__actions, .filters, .cv-contact, .footer { display: none !important; }
  .cv { padding: 0; }
  .cv-hero { display: block; padding: 0 0 8mm; }
  .cv-hero__name { font-size: 34pt; }
  .facts { grid-template-columns: repeat(4, 1fr); padding: 0 0 8mm; }
  .fact { background: #fff !important; padding: 8px 10px; }
  [data-reveal], .ex { opacity: 1 !important; translate: none !important; }
  .exh { background: #fff; color: #000; padding: 0; border-radius: 0; }
  .exh__y { color: #000; position: relative; top: 0; font-size: 18pt; }
  .exh__year { grid-template-columns: 22mm 1fr; padding: 6px 0; border-color: #ccc; break-inside: avoid; }
  .ex { grid-template-columns: 26mm 1fr 45mm; padding: 4px 0; border-color: #ddd; }
  .tag { background: none !important; color: #000 !important; border: 1px solid #000; }
  .cv-grid { padding: 8mm 0 0; }
  .card, .skills li { background: #fff !important; }
  .timeline li::before { background: #fff !important; }
}
