/* Panarc Projects, Work: Ru's CV and work-history board. Written Sat 31 Oct 2026 by Claude.
   Sand homepage look (night ground, cream text, sand-bottle headings), as the Liminal Road course page.
   Motion obeys html[data-motion]; print gives a clean black-on-white A4 CV built from the same data. */
:root {
  --night: #100d14; --night-2: #17121d; --cream: #efe3cc; --cream-2: rgba(239, 227, 204, .76); --cream-3: rgba(239, 227, 204, .54);
  --line: rgba(239, 227, 204, .15); --card: rgba(239, 227, 204, .035); --card-2: rgba(239, 227, 204, .06);
  --acc: #a3d98f; /* the notebook's colour: the one accent, means "you can open or choose this" */
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(18px, 4.4vw, 64px);
  --wide: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .06  0 0 0 0 .05  0 0 0 0 .08  0 0 0 .9 -.32'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #7fb4ff; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #111; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

#cv-sand { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
main { position: relative; z-index: 1; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }

/* type */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: var(--cream-2); }
.grain-dot { width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(#2a63b8, #d65f86, #ffd23f, #74efe9, #2a63b8); flex: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.04; margin-bottom: 14px; }
h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.015em; color: var(--cream-2); }
.sandtype { color: var(--cream); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sandtype {
    background-image: var(--grain), linear-gradient(176deg, #f3e6c8 0 34%, #ffd23f 34% 44%, #e9a0b6 44% 54%, #dcc6a1 54% 67%, #8fd9d4 67% 78%, #a3d98f 78% 89%, #a9c4f0 89%);
    background-size: 240px 240px, 100% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: cv-drift 26s linear infinite;
  }
}
@keyframes cv-drift { to { background-position: 240px 120px, 0 0; } }
html[data-motion="off"] .sandtype { animation: none; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion="on"]) .sandtype { animation: none; } }

/* buttons: one primary per section, quiet text actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 650; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; background: none; transition: transform .2s ease, background .2s ease; }
.btn.primary { background: var(--cream); color: #15110f; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.quiet { padding: 0 4px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
html[data-motion="off"] .btn { transition: none; }

/* gaps: only drawn with ?gaps=1 */
.gap { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: #ffe48a; border: 1px dashed rgba(255, 210, 63, .65); background: rgba(255, 210, 63, .07); border-radius: 999px; padding: 3px 10px; vertical-align: middle; -webkit-text-fill-color: #ffe48a; }
.cv-gapbar { max-width: var(--wide); margin: 18px auto 0; padding: 14px var(--gutter); }
.cv-gapbar .in { border: 1px dashed rgba(255, 210, 63, .5); border-radius: 16px; padding: 14px 18px; background: rgba(255, 210, 63, .04); }
.cv-gapbar b { display: block; font-size: 13px; color: #ffe48a; margin-bottom: 8px; }
.cv-gapbar ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

/* hero */
.cv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.cv-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .95; }
.cv-hero h1 .sandtype { display: inline-block; padding-bottom: .06em; }
.cv-head { display: block; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; color: var(--cream); margin-top: 18px; max-width: 22em; }
.cv-own { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--cream-2); max-width: 32em; margin: 18px 0 26px; }
.cv-snap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0; margin: 0 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cv-snap > div { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.cv-snap > div:last-child { border-right: 0; margin-right: 0; }
.cv-snap dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.cv-snap dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.cv-mode { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; gap: 2px; margin-bottom: 14px; }
.cv-mode button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cream-2); cursor: pointer; min-height: 38px; }
.cv-mode button[aria-checked="true"] { background: var(--cream); color: #15110f; }
.cv-summary { font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--cream-2); max-width: 36em; margin: 0 0 26px; min-height: 3.2em; }
.cv-links { margin: 16px 0 0; font-size: 14px; color: var(--cream-3); }
.cv-portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #241b2c 0%, #140f19 60%, #100d14 100%); border: 1px solid var(--line); max-width: 100%; }
.cv-portrait canvas, .cv-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-portrait .gap { position: absolute; left: 14px; right: 14px; bottom: 14px; justify-content: center; }

/* sections */
.cv-sec { padding-block: clamp(48px, 7vw, 96px); }
.cv-intro { color: var(--cream-2); max-width: 40em; margin: 0 0 30px; }

/* proof */
.cv-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cv-pr { border-top: 1px solid var(--line); padding-top: 18px; }
.cv-pr > button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.cv-pr .v { display: block; font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.cv-pr .l { display: block; font-size: 17px; font-weight: 600; margin-top: 8px; }
.cv-pr .d { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream-3); margin-top: 8px; }
.cv-pr .d::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.cv-pr .how { font-size: 13px; color: var(--acc); margin-top: 10px; display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
.cv-pr .more { margin-top: 14px; font-size: 15px; color: var(--cream-2); }
.cv-pr .more small { display: block; color: var(--cream-3); font-size: 13px; margin-top: 8px; }

/* filters */
.cv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.cv-chip { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--cream-2); cursor: pointer; min-height: 40px; }
.cv-chip:hover { border-color: rgba(239, 227, 204, .4); }
.cv-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #10200b; }

/* timeline */
.cv-timeline { position: relative; --date-w: 150px; --rail-x: 176px; }
.cv-rail { position: absolute; top: 0; left: calc(var(--rail-x) - 30px); width: 60px; height: 100%; pointer-events: none; }
.cv-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.cv-item { display: grid; grid-template-columns: var(--date-w) 52px minmax(0, 1fr); align-items: start; }
.cv-when { grid-column: 1; text-align: right; padding-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--cream-2); }
.cv-when small { display: block; color: var(--cream-3); font-weight: 500; }
.cv-dot { grid-column: 2; justify-self: center; margin-top: 28px; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 2px solid var(--cream); box-shadow: 0 0 0 5px var(--night); position: relative; z-index: 1; }
.cv-item.open .cv-dot { background: var(--acc); border-color: var(--acc); }
.cv-card { grid-column: 3; background: var(--card); border: 1px solid var(--line); border-radius: 20px; position: relative; }
.cv-card-in { transition: opacity .5s ease, filter .5s ease, transform .5s ease; }
.cv-item[data-form="wait"] .cv-card-in, .cv-item[data-form="forming"] .cv-card-in { opacity: 0; filter: blur(7px); }
.cv-item[data-form="forming"] .cv-card { clip-path: inset(0 100% 0 0 round 20px); }
.cv-item[data-form="done"] .cv-card { clip-path: inset(0 0 0 0 round 20px); transition: clip-path .75s cubic-bezier(.3,.7,.2,1), border-color .5s ease, background .5s ease; }
.cv-item[data-form="wait"] .cv-card { border-color: transparent; background: transparent; }
.cv-card { transition: border-color .5s ease, background .5s ease; }
html[data-motion="off"] .cv-card, html[data-motion="off"] .cv-card-in { transition: none; }
.cv-top { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px 22px; cursor: pointer; border-radius: 20px; }
.cv-top:hover { background: var(--card); }
.cv-top h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; padding-right: 36px; }
.cv-org { display: block; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--cream-2); margin-top: 4px; }
.cv-line { display: block; color: var(--cream-2); margin-top: 10px; max-width: 46em; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cv-tags span { font-size: 12px; color: var(--cream-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cv-open { position: absolute; top: 24px; right: 22px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--acc); transition: transform .3s ease; pointer-events: none; }
.cv-item.open .cv-open { transform: rotate(45deg); }
.cv-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.cv-item.open .cv-body { grid-template-rows: 1fr; }
html[data-motion="off"] .cv-body, html[data-motion="off"] .cv-open { transition: none; }
.cv-body > div { overflow: hidden; min-height: 0; }
.cv-body-in { padding: 0 26px 26px; border-top: 1px solid var(--line); margin: 0 26px; padding-inline: 0; }
.cv-res { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.cv-res li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.cv-res li::before { content: counter(r, decimal-leading-zero); counter-increment: r; font-size: 12px; color: var(--acc); padding-top: 3px; font-variant-numeric: tabular-nums; }
.cv-res { counter-reset: r; }
.cv-res p { margin: 0; font-size: 16px; }
.cv-res small { display: block; color: var(--cream-3); font-size: 13px; margin-top: 3px; }
.cv-also { color: var(--cream-2); font-size: 15px; margin: 18px 0 0; max-width: 46em; }
.cv-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); margin: 22px 0 8px; }
.cv-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tools span { font-size: 13px; background: var(--card-2); border-radius: 8px; padding: 4px 10px; }
.cv-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.cv-shots figure { margin: 0; max-width: 640px; }
.cv-shots img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.cv-shots figcaption { font-size: 13px; color: var(--cream-3); margin-top: 8px; }
.cv-deeper { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; }
.cv-deeper summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cv-deeper summary::-webkit-details-marker { display: none; }
.cv-deeper summary::after { content: "+"; color: var(--acc); font-weight: 700; }
.cv-deeper[open] summary::after { content: "\2212"; }
.cv-deeper dl { margin: 0; padding: 0 16px 14px; display: grid; gap: 12px; }
.cv-deeper dt { font-weight: 700; font-size: 15px; }
.cv-deeper dd { margin: 2px 0 0; color: var(--cream-2); font-size: 15px; }
.cv-see { display: inline-flex; margin-top: 22px; font-weight: 650; color: var(--acc); text-underline-offset: 5px; }
.cv-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cv-tiles li { background: var(--card-2); border-radius: 14px; padding: 14px 16px; }
.cv-tiles b { display: block; font-size: 15px; }
.cv-tiles span { display: block; font-size: 13px; color: var(--cream-2); margin-top: 4px; line-height: 1.4; }
.cv-tiles em { display: inline-block; font-style: normal; font-size: 12px; color: var(--cream-3); margin-top: 8px; }
.cv-item.gaprow .cv-card { border-style: dashed; border-color: rgba(255, 210, 63, .45); background: none; }
.cv-item.gaprow .cv-top { cursor: default; }
.cv-empty { color: var(--cream-3); margin: 10px 0 0 calc(var(--date-w) + 52px); }

/* skills */
.cv-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cv-sk { border-top: 1px solid var(--line); padding-top: 16px; }
.cv-sk h3 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 12px; }
.cv-sk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-sk li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.cv-lv { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cream-3); }
.cv-lv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--acc); }
.cv-lv.daily::before { background: var(--acc); }
.cv-lv.comfortable::before { background: linear-gradient(90deg, var(--acc) 50%, transparent 50%); }
.cv-how { color: var(--cream-2); margin: 30px 0 0; max-width: 46em; }
.cv-how b { color: var(--cream); }

/* honest notes */
.cv-end { border-top: 1px solid var(--line); }
.cv-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cv-notes li { font-size: 16px; color: var(--cream-2); }
.cv-notes b { display: block; color: var(--cream); font-size: 17px; margin-bottom: 4px; }
.cv-ref { margin: 34px 0 22px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.cv-ref a { text-underline-offset: 5px; }
.cv-nojs { color: var(--cream-2); padding-block: 20px; }

/* ---------- the portrait viewer (assets/work/portrait/portrait.js) ---------- */
.cv-portrait.pv { aspect-ratio: auto; overflow: visible; background: none; border: 0; border-radius: 0; width: 100%; outline: none; }
.pv-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #1c1219; touch-action: pan-y; transition: background .6s ease; }
.cv-portrait.pv .pv-gl, .cv-portrait.pv .pv-c2 { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-portrait.pv .pv-still { position: absolute; inset: auto; max-width: none; object-fit: fill; }
.pv[data-live="on"] .pv-stage { cursor: crosshair; }
.pv-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--cream); background: rgba(16, 13, 20, .5); border: 1px solid rgba(239, 227, 204, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease; }
.pv-arrow:hover, .pv-arrow:focus-visible { background: rgba(16, 13, 20, .78); color: var(--acc); }
.pv-arrow:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pv-prev { left: 12px; } .pv-next { right: 12px; }
.pv-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--cream-3); min-width: 0; }
.pv-count { font-weight: 650; color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-label { color: var(--cream-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pv-alt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pv-dots { margin-left: auto; display: flex; gap: 0; flex: none; }
.pv-dot { width: 22px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pv-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(239, 227, 204, .3); transition: width .25s ease, background .25s ease; }
.pv-dot[aria-current="true"]::before { width: 16px; background: var(--acc); }
.pv-dot:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 8px; }
.pv-hint { margin: 4px 0 0; font-size: 12px; color: var(--cream-3); min-height: 1.5em; }
.cv-portrait.pv:focus-visible .pv-stage { outline: 2px solid var(--acc); outline-offset: 3px; }

/* "How the work gets made", inside the AI lab card */
.cv-engine { margin-top: 24px; }
.cv-en { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.cv-en-feed { flex: 1.15; display: flex; min-width: 0; }
.cv-en-feed > ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.cv-en-n { flex: 1; min-width: 0; background: var(--card-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; }
.cv-en-n b { display: block; font-size: 14px; }
.cv-en-n span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--cream-2); margin-top: 2px; }
.cv-en-n em { display: inline-block; margin-top: 7px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffe48a; border: 1px solid rgba(255, 210, 63, .5); border-radius: 999px; padding: 1px 8px; }
.cv-en-n.you { background: rgba(163, 217, 143, .1); border-color: rgba(163, 217, 143, .45); }
.cv-en-n.you b { color: var(--acc); }
.cv-en-arrow { flex: 0 0 26px; position: relative; }
.cv-en-arrow::before { content: ""; position: absolute; left: 5px; right: 7px; top: 50%; height: 1.5px; background: var(--cream-3); }
.cv-en-arrow::after { content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--cream-3); border-right: 1.5px solid var(--cream-3); transform: translateY(-50%) rotate(45deg); }
.cv-en-line { font-size: 14px; color: var(--cream-2); margin: 12px 0 0; max-width: 46em; }

/* "What I build for businesses" (For clients only) */
.cv-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv-svc a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 18px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s ease; }
.cv-svc a:hover, .cv-svc a:focus-visible { background: var(--card); }
.cv-svc .n { font-size: 12px; color: var(--acc); font-variant-numeric: tabular-nums; }
.cv-svc .t b { display: block; font-size: 1.08rem; letter-spacing: -.01em; }
.cv-svc .t span { display: block; color: var(--cream-2); font-size: 15px; margin-top: 2px; }
.cv-svc .s { font-size: 13px; color: var(--cream-3); text-align: right; }
.cv-svc .go { grid-column: 2 / -1; font-size: 14px; font-weight: 600; color: var(--acc); margin-top: 4px; }
.cv-interests { color: var(--cream-2); margin: 30px 0 0; max-width: 46em; }
.cv-interests b { color: var(--cream); font-weight: 650; }

/* tablets */
@media (max-width: 1000px) {
  .cv-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cv-hero { grid-template-columns: minmax(0, 1fr); }
  .cv-portrait { order: -1; width: 150px; aspect-ratio: 1; border-radius: 50%; }
  .cv-portrait.pv { width: min(100%, 380px); aspect-ratio: auto; border-radius: 0; }
  .cv-proof, .cv-notes { grid-template-columns: minmax(0, 1fr); }
  .cv-timeline { --rail-x: 12px; }
  .cv-item { grid-template-columns: 26px minmax(0, 1fr); }
  .cv-when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 8px; }
  .cv-when small { display: inline; margin-left: 6px; }
  .cv-dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
  .cv-card { grid-column: 2; }
  .cv-empty { margin-left: 26px; }
}
@media (max-width: 560px) {
  .cv-skills { grid-template-columns: minmax(0, 1fr); }
  .cv-snap { grid-template-columns: minmax(0, 1fr); }
  .cv-snap > div { border-right: 0; margin-right: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cv-snap > div:last-child { border-bottom: 0; }
  .cv-top { padding: 18px 18px; }
  .cv-body-in { margin: 0 18px; }
  .cv-open { top: 18px; right: 14px; }
  .cv-shots { grid-template-columns: minmax(0, 1fr); }
  .cv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-mode button { padding: 8px 13px; }
  .cv-en { flex-direction: column; align-items: stretch; }
  .cv-en-feed > ol { grid-template-columns: 1fr 1fr; }
  .cv-en-arrow { flex: 0 0 22px; }
  .cv-en-arrow::before { left: 50%; right: auto; top: 3px; bottom: 6px; width: 1.5px; height: auto; }
  .cv-en-arrow::after { left: 50%; right: auto; top: auto; bottom: 5px; transform: translateX(-50%) rotate(135deg); }
  .cv-svc a { grid-template-columns: 30px minmax(0, 1fr); padding-inline: 2px; }
  .cv-svc .s { grid-column: 2; text-align: left; }
}

/* ---------- the print CV ---------- */
.cv-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > *:not(.cv-print) { display: none !important; }
  .cv-print { display: block !important; font: 400 9.6pt/1.42 var(--sans); color: #000; }
  .cv-print * { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; animation: none !important; }
  .cv-print h1 { font-size: 22pt; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
  .cv-print .p-head { font-size: 11pt; font-weight: 600; margin: 4pt 0 0; }
  .cv-print .p-own { font-family: var(--serif); font-style: italic; margin: 3pt 0 0; }
  .cv-print .p-contact { margin: 6pt 0 0; font-size: 9pt; }
  .cv-print .p-rule { border: 0; border-top: .8pt solid #000; margin: 9pt 0; }
  .cv-print h2 { break-after: avoid; page-break-after: avoid; font-size: 10pt; letter-spacing: .12em; text-transform: uppercase; margin: 11pt 0 5pt; font-weight: 800; }
  .cv-print p { margin: 0 0 4pt; }
  .cv-print .p-role { break-inside: avoid; margin: 0 0 8pt; }
  .cv-print .p-rt { display: flex; justify-content: space-between; gap: 12pt; font-weight: 700; font-size: 10.4pt; }
  .cv-print .p-rt span:last-child { font-weight: 500; white-space: nowrap; }
  .cv-print .p-org { font-style: italic; font-family: var(--serif); }
  .cv-print ul { margin: 2pt 0 0; padding-left: 13pt; }
  .cv-print li { margin: 0 0 1.5pt; }
  .cv-print .p-meta { color: #333 !important; -webkit-text-fill-color: #333 !important; }
  .cv-print .p-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 4pt 16pt; }
  .cv-print .p-skills b { display: block; }
  .cv-print .p-foot { margin-top: 10pt; font-size: 8.4pt; color: #333 !important; }
  .cv-print a { text-decoration: none; }
  .cv-print .p-photo { float: right; width: 27mm; height: 27mm; object-fit: cover; border-radius: 2.5mm; margin: 0 0 3mm 6mm; }
}
