/* CV landing page */
:root { --cv-blue: #2563a6; --cv-grey: #f7f7f7; }

.cv-hero { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: space-between; }
.cv-hero .ruled { flex: 1 1 380px; gap: 18px; padding-top: 4px; padding-bottom: 4px; }
.cv-hero .eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: none; }
.cv-name { margin: 0 0 0 -29px; padding-left: 26px; border-left: 3px solid var(--ink); font-size: clamp(36px, 4.6vw, 52px); font-weight: 600; line-height: 1.1; }
.cv-role { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; margin: -8px 0 0; }
.cv-tag { font-size: 14px; color: var(--body); margin: 0; }
.cv-social { display: flex; gap: 10px; }
.cv-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); }
.cv-social a:hover { transform: translateY(-2px); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pill.solid { background: var(--ink); color: #fff; }
.pill.solid:hover { background: #333; color: #fff; }
.cv-photo { flex: 0 1 380px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e9e9e9; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; }

.cv-section { padding: 96px 0; }
.cv-section.grey { background: var(--cv-grey); }
.cv-h { text-align: center; font-size: 22px; font-weight: 400; letter-spacing: 0.06em; margin: 0 0 56px; }

/* Experience cards */
.xp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.xp {
  border: 1px solid #9a9a9a; border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}
.xp:hover { border-color: var(--ink); box-shadow: 0 14px 30px rgba(17, 30, 45, 0.08); }
.xp-date { align-self: flex-start; color: var(--cv-blue); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: 0.06em; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.xp-co { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; margin-top: 6px; }
.xp-role { font-size: 14px; color: var(--body); }
.xp-dur { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.xp.now { border-color: var(--ink); }
.xp.now .xp-dur::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2e9d5b; margin-right: 8px; vertical-align: 1px; }

/* Programmes */
.tool-group { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 40px; }
.tool-label { font-size: 12px; letter-spacing: 0.08em; color: var(--body); }
.tool-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 30px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--body); }
.tool img { width: 58px; height: 58px; object-fit: contain; transition: transform 0.35s var(--ease); }
.tool:hover img { transform: translateY(-4px) scale(1.06); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; max-width: 900px; margin: 0 auto; }
.skills p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--body); }
.skills strong { color: var(--ink); font-weight: 600; }

/* Roles */
.roles { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.role { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role-year { font-size: 22px; letter-spacing: 0.04em; color: var(--cv-blue); }
.role-text { font-size: 15px; line-height: 1.7; color: var(--body); margin: 0; }
.role-text strong { color: var(--ink); font-weight: 600; }

/* References */
.refs { padding: 96px var(--gutter); }
.refs-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.refs .title-bar { font-size: 26px; }
.ref-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-left: 28px; }
.ref-name { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.ref-note { font-size: 13px; color: var(--night-text); margin-top: 4px; }

@media (max-width: 900px) {
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cv-hero { padding: 56px var(--gutter) 72px; flex-direction: column-reverse; align-items: stretch; gap: 40px; }
  .cv-photo { flex: none; width: 70%; max-width: 280px; align-self: center; }
  .cv-name { margin-left: -19px; padding-left: 16px; }
  .cv-section { padding: 72px 0; }
  .xp-grid, .skills { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 6px; }
  .ref-grid { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp, .tool img, .cv-photo img, .cv-social a { transition: none; }
}
html.js .xp.in { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease; }
.tool.ai img { transition: transform 0.35s var(--ease); }
.ref-tel { display: inline-block; color: var(--night-text); text-decoration: none; padding: 4px 0; }
.ref-tel:hover { color: #fff; text-decoration: underline; }
/* What I do */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
html.js .cap.in { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease; }
.cap:hover { border-color: var(--ink); box-shadow: 0 14px 30px rgba(17, 30, 45, 0.08); }
.cap-n { font-size: 12px; letter-spacing: 0.14em; color: var(--cv-blue); }
.cap-t { font-size: 18px; font-weight: 500; line-height: 1.3; }
.cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cap-list li { font-size: 14px; line-height: 1.6; color: var(--body); padding-left: 16px; position: relative; }
.cap-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--muted); }
.cap-link { align-self: flex-start; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding: 8px 0 2px; margin-top: 6px; }
.cap-link::after { content: " →"; }
.cap-link:hover { color: var(--cv-blue); border-color: var(--cv-blue); }
.cap-link.soon { color: var(--muted); border-color: var(--rule); }
.cap-link.soon::after { content: ""; }
.how { max-width: 760px; margin: 48px auto 0; text-align: center; font-size: 15px; line-height: 1.75; color: var(--body); }
.how strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cap-grid { grid-template-columns: 1fr; } }

/* Liquid ink buttons */
.cv-actions { position: relative; }
.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cv-actions .ink { display: none; }
.cv-actions.ink-on { isolation: isolate; background: var(--paper); }
.cv-actions.ink-on .ink { display: block; position: absolute; inset: -24px; pointer-events: none; filter: url(#ink-goo); z-index: 0; }
.ink i { position: absolute; display: block; background: var(--ink); border-radius: 999px; }
.cv-actions.ink-on .ink-btn, .cv-actions.ink-on .ink-btn:hover { position: relative; background: transparent; color: var(--ink); }
.cv-actions.ink-on .ink-l { display: inline-block; color: #eeeeee; mix-blend-mode: difference; }
.cv-actions.ink-on .ink-btn { text-align: center; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.ink-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* What I do: two featured blocks */
.cap.wide { grid-column: span 2; }
.cap.wide .cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; align-content: start; }
@media (max-width: 900px) { .cap-grid > .cap.wide:not(:first-child) { grid-column: auto; } .cap-grid > .cap.wide:not(:first-child) .cap-list { display: flex; } }
@media (max-width: 720px) { .cap.wide { grid-column: auto; } .cap.wide .cap-list { display: flex; } }

/* LinkedIn button alongside the CTAs */
.cv-actions { align-items: center; }
.cv-in { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease; }
.cv-in:hover, .cv-in:focus-visible { background: var(--ink); color: #fff; }
.cv-in:active { transform: scale(0.94); }
@media (max-width: 420px) {
  .cv-actions { gap: 8px; }
  .cv-actions .pill { font-size: 14px; padding: 11px 16px; }
  .cv-in { width: 46px; height: 46px; }
}
/* mobile pass */
main { overflow-x: clip; }
@media (max-width: 720px) {
  .ref-tel { padding: 10px 0; }
  .cap-link { padding: 12px 0 6px; }
}
