/* Nikolaus Friedl — CV. Schwarz-Weiß wie der Lebenslauf: Archivo für Name & Überschriften,
   Courier Prime (Schreibmaschine) für Fließtext, Daten und Beschriftungen. Alle Farben als Tokens, keine Fremd-Ressourcen. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --line: #d9d9d9;
  --mark: #e4e4e4;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); margin: 0; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--sans); text-decoration: none;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Grauer Balken hinter Titeln — das Erkennungszeichen des Lebenslaufs */
.mark {
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / var(--mark-w, 100%) 100%;
  padding: 0.08em 0.3em;
  margin-left: -0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 900ms var(--ease) 200ms;
}
.mark-inv { --mark: #2a2a2a; }

.label {
  font-family: var(--type);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Kopfleiste ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mono {
  font-family: var(--sans); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em;
  text-decoration: none; border: 1.5px solid var(--ink); padding: 3px 6px; line-height: 1;
}
.bar nav { display: flex; gap: 28px; margin-left: auto; font-family: var(--type); font-size: 0.9rem; }
.bar nav a {
  text-decoration: none; color: var(--ink-3); position: relative; padding: 6px 0;
  transition: color 200ms ease;
}
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease);
}
.bar nav a:hover, .bar nav a.active { color: var(--ink); }
.bar nav a:hover::after, .bar nav a.active::after { transform: scaleX(1); }

/* ---------- Kopf ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-name { position: relative; padding-left: 0; }
.rule-v {
  position: absolute; left: 4px; top: -72px; width: 1px; height: 48px; background: var(--ink);
  transform-origin: top; animation: grow-y 900ms var(--ease) both;
}
h1 {
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.role-br { display: none; }
.role { margin-top: 18px; font-family: var(--sans); font-weight: 600; font-size: 1.2rem; }
.summary {
  margin-top: 36px; padding-left: 18px; border-left: 1px solid var(--ink);
  max-width: 46ch; color: var(--ink-2); font-size: 0.95rem;
}
.summary-lead {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 500; line-height: 1.4;
  color: var(--ink); margin-bottom: 12px;
}

.portrait img {
  width: clamp(200px, 22vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.hero-side { justify-self: end; width: 100%; max-width: 300px; }
.cubes { width: 196px; color: var(--ink); margin-bottom: 36px; }
.cube .face { opacity: 0; animation: fade 700ms var(--ease) forwards; }
.cube:nth-child(1) .face { animation-delay: 700ms; }
.cube:nth-child(2) .face { animation-delay: 850ms; }
.cube:nth-child(3) .face { animation-delay: 1000ms; }
.skills { margin-top: 12px; font-size: 1rem; display: grid; gap: 2px; }
.skills li { display: flex; gap: 10px; }
.skills li::before { content: "—"; color: var(--ink-3); flex-shrink: 0; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background-color 250ms ease, color 250ms ease, transform 250ms var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 6px 11px; font-size: 0.8rem; }
.btn-inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-inv:hover { background: transparent; color: var(--paper); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Pulsierender Punkt: verfügbar */
.live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink); align-self: center; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.45); animation: pulse 2.4s ease-out infinite;
}
.skills li:has(.live)::before { content: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(17, 17, 17, 0); } }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stats > div { padding: 28px 22px 30px; border-right: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats dt { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-3); }
.stats > div:nth-child(2) { transition-delay: 90ms; }
.stats > div:nth-child(3) { transition-delay: 180ms; }
.stats > div:nth-child(4) { transition-delay: 270ms; }

.h2-sub { margin-top: 14px; font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: var(--ink-2); }

/* ---------- Abschnitte ---------- */
.block { border-top: 1px solid var(--ink); padding: 72px 0 88px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: 1.08rem; font-weight: 650; line-height: 1.35; }
h3 .sub { font-family: var(--type); font-weight: 400; font-size: 0.95em; color: var(--ink-3); }

.timeline { margin-top: 40px; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.when { font-family: var(--type); font-size: 0.92rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; letter-spacing: 0.02em; }
.timeline h3 + p { margin-top: 6px; color: var(--ink-2); max-width: 64ch; }

/* Arbeitsweise — frei nach Columbo */
.method { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.columbo { font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--ink); line-height: 1.3; }
.typed { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; vertical-align: bottom; }
.columbo-src { margin-top: 6px; font-size: 0.9rem; color: var(--ink-3); }
.method-text { margin-top: 28px; color: var(--ink-2); max-width: 52ch; }
.case { border-top: 1px solid var(--line); }
.case li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.case-no {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 1px 7px; transform: rotate(-1.5deg);
}
.case h3 { margin-top: 10px; }
.case h3 + p { margin-top: 4px; color: var(--ink-2); }

/* Das Zitat tippt sich einmal ein, sobald es sichtbar wird (23 Zeichen; Breite misst main.js). */
@keyframes type { from { width: 0; } to { width: var(--typed-w, 25ch); } }
@keyframes caret { 0% { border-right-color: var(--ink); } 50%, 100% { border-right-color: transparent; } }
.js .method-intro .typed { width: 0; border-right: 2px solid transparent; }
.js .method-intro.shown .typed {
  animation: type 1.5s steps(23, end) 350ms forwards, caret 0.8s step-end 7 forwards;
}


/* Kompetenzen */
.competences { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.label-gap { margin-top: 28px; }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid var(--line); padding: 3px 10px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2);
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: 0ms, 0ms, 0ms, calc(var(--i, 0) * 35ms + 150ms), calc(var(--i, 0) * 35ms + 150ms);
}
.chips li:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.js .reveal .chips li { opacity: 0; transform: translateY(6px); }
.js .reveal.shown .chips li { opacity: 1; transform: none; }
.langs { margin-top: 14px; }
.langs li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.langs span { color: var(--ink-3); }

/* Berufserfahrung */
.jobs { margin-top: 40px; border-top: 1px solid var(--ink); }
.job {
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 34px 0 36px; border-bottom: 1px solid var(--line);
}
/* Linie, die sich beim Einblenden über den Eintrag zieht */
.job::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease) 150ms;
}
.js .job.shown::before { transform: scaleX(1); }
.job .when b { display: block; color: var(--ink); font-weight: 700; }
.client { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.job h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 650; line-height: 1.2; }
.job-quiet h3 { font-size: 1.2rem; }
.job-role { margin-top: 6px; font-family: var(--sans); font-weight: 600; }
.job h3 + p, .job-role + p, .job p + p { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.job p strong { color: var(--ink); }
.job .bullets, .subp .bullets { margin-top: 12px; max-width: 68ch; gap: 6px; }
.ext { font-weight: 700; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; transition: background-size 300ms var(--ease); }
.ext:hover { background-size: 0 1px; }
.ext::after { content: " ↗"; font-weight: 400; }

/* Teilprojekte zum Aufklappen */
.subs { margin-top: 22px; display: grid; gap: 10px; }
.subp { border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--paper-2); transition: border-color 250ms ease, background-color 250ms ease; }
.subp:hover, .subp[open] { border-color: var(--ink); }
.subp[open] { background: var(--paper); }
.subp summary {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px; cursor: pointer; list-style: none;
}
.subp summary::-webkit-details-marker { display: none; }
.subp summary::after {
  content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink);
  font-family: var(--sans); font-weight: 600; line-height: 1; transition: transform 350ms var(--ease), background-color 250ms ease, color 250ms ease;
}
.subp summary:hover::after { background: var(--ink); color: var(--paper); }
.subp[open] summary::after { content: "–"; transform: rotate(180deg); }
.subp-title { font-family: var(--sans); font-weight: 650; font-size: 1.05rem; line-height: 1.35; }
.subp-meta { font-size: 0.85rem; color: var(--ink-3); }
.subp-body { padding: 0 18px 18px; color: var(--ink-2); }
.subp[open] .subp-body { animation: rise 500ms var(--ease) both; }
.note { margin-top: 12px; font-size: 0.85rem; font-style: italic; color: var(--ink-3); }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.slabs { width: 120px; color: var(--ink); flex-shrink: 0; }


.competences { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.bullets { margin-top: 16px; padding-left: 1.2em; list-style: disc; display: grid; gap: 10px; color: var(--ink-2); }
.bullets li { padding-left: 0.3em; }
.bullets li::marker { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--paper); padding: 80px 0 96px; }
.contact h2 { color: var(--paper); }
.contact-grid { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.contact-big {
  font-family: var(--sans); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 3rem); letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; padding-bottom: 4px;
  transition: background-size 500ms var(--ease);
}
.contact-big:hover { background-size: 100% 2px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 1rem; }
.contact dt { font-family: var(--type); font-size: 0.85rem; color: #a3a3a3; padding-top: 2px; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact .h2-sub { color: #cfcfcf; }
.contact .cta { margin-top: 36px; }
.one-more { margin-top: 48px; padding-top: 28px; border-top: 1px solid #2c2c2c; font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

.foot { background: var(--ink); color: #8f8f8f; font-family: var(--sans); font-size: 0.85rem; }
.foot .wrap { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #2c2c2c; }
.foot a { text-decoration: none; color: #bdbdbd; }
.foot a:hover { color: var(--paper); }

/* ---------- Dezente Bewegung ---------- */
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.in { animation: rise 900ms var(--ease) both; }
.in-1 { animation-delay: 80ms; }
.in-2 { animation-delay: 220ms; }
.in-3 { animation-delay: 380ms; }
.in-4 { animation-delay: 520ms; }

/* Name: Buchstaben kommen einzeln herein, jeder mit eigener Bewegung. */
h1.split { animation: none; perspective: 600px; }
h1 .word { display: inline-block; white-space: nowrap; }
h1 .ch {
  display: inline-block; transform-origin: 50% 60%;
  animation: 1100ms cubic-bezier(0.2, 0.8, 0.25, 1.15) var(--d, 0ms) both;
}
h1 .ch-spin { animation-name: in-spin; }
h1 .ch-flip { animation-name: in-flip; }
h1 .ch-swing { animation-name: in-swing; transform-origin: 50% 0; }
h1 .ch-tumble { animation-name: in-tumble; }
@keyframes in-spin { from { opacity: 0; transform: rotateY(-540deg) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes in-flip { from { opacity: 0; transform: rotateX(270deg) translateY(-0.3em); } to { opacity: 1; transform: none; } }
@keyframes in-swing {
  0% { opacity: 0; transform: rotate(-70deg); }
  35% { opacity: 1; transform: rotate(38deg); }
  60% { transform: rotate(-18deg); }
  80% { transform: rotate(8deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes in-tumble { from { opacity: 0; transform: translateY(-0.9em) rotate(200deg); } to { opacity: 1; transform: none; } }

/* Danach: einzelne Buchstaben wackeln zwischendurch oder beim Darüberfahren. */
h1 .ch.done { animation: none; }
h1 .ch.wiggle { animation-delay: 0ms; animation-duration: 900ms; animation-timing-function: var(--ease); }
h1 .ch.w-spin { animation-name: w-spin; }
h1 .ch.w-flip { animation-name: w-flip; }
h1 .ch.w-swing { animation-name: w-swing; transform-origin: 50% 0; }
h1 .ch.w-tumble { animation-name: w-tumble; }
@keyframes w-spin { to { transform: rotateY(360deg); } }
@keyframes w-flip { to { transform: rotateX(360deg); } }
@keyframes w-swing { 0%, 100% { transform: none; } 25% { transform: rotate(14deg); } 55% { transform: rotate(-9deg); } 80% { transform: rotate(4deg); } }
@keyframes w-tumble { 0%, 100% { transform: none; } 40% { transform: translateY(-0.18em) rotate(-12deg); } 70% { transform: translateY(0.04em) rotate(5deg); } }

/* Nur wenn JS läuft, wird verborgen — ohne JS ist alles sofort sichtbar. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.shown { opacity: 1; transform: none; }
.js h2.reveal .mark { --mark-w: 0%; }
.js h2.reveal.shown .mark { --mark-w: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cube .face { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .js h2.reveal .mark { --mark-w: 100%; }
  .js .method-intro .typed { width: auto; border: 0; }
  .js .reveal .chips li { opacity: 1; transform: none; }
  .js .job::before { transform: scaleX(1); }
}

/* ---------- Tablet & Handy ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr auto; gap: 36px; }
  .hero-side { grid-column: 1 / -1; justify-self: start; max-width: none; display: grid; grid-template-columns: auto 1fr; gap: 0 40px; align-items: start; }
  .cubes { margin-bottom: 0; grid-row: span 2; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .hero-side .label { align-self: end; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bar nav { gap: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 0.98rem; }
  .bar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 32px; }
  .portrait { order: -1; justify-self: center; }
  .portrait img { display: block; margin: 0 auto; }
  .hero-name h1, .hero-name .role { text-align: center; }
  .role { line-height: 1.5; }
  .role-sep { display: none; }
  .role-br { display: inline; }
  .portrait img { width: 168px; }
  .rule-v { display: none; }
  .hero-side { display: block; }
  .cubes { width: 150px; margin-bottom: 28px; }
  .block { padding: 56px 0 64px; }
  .timeline li, .job { grid-template-columns: 1fr; gap: 6px; }
  .stats > div { padding: 22px 14px 24px; }
  .stats > div:nth-child(odd) { padding-left: 0; }
  .hero-name .cta { justify-content: center; }
  .subp summary { padding: 14px; }
  .subp-body { padding: 0 14px 16px; }
  .competences, .contact-grid, .method { grid-template-columns: 1fr; gap: 36px; }
  .one-more { margin-top: 36px; }
  .slabs { width: 84px; }
  .contact { padding: 64px 0 72px; }
}
@media (max-width: 380px) {
  .wrap, .bar-inner { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Druck ---------- */
@media print {
  .bar, .skip, .foot a, .cubes, .slabs, .cta, .live, .subp summary::after { display: none !important; }
  .chips li { opacity: 1 !important; transform: none !important; }
  .job::before { display: none; }
  .subp { background: none; }
  .subp summary { display: block; padding-bottom: 10px; }
  .subp-meta { display: block; margin-top: 2px; }
  .subp-body { animation: none !important; }
  .one-more { border-top-color: var(--line); }
  .typed { width: auto !important; border: 0 !important; }
  .reveal, .in, h1 .ch { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  @page { size: A4; margin: 14mm 0; }
  body { font-size: 9.5pt; }
  .hero { padding-top: 0; padding-bottom: 28px; gap: 32px; }
  .rule-v { display: none; }
  h1 { font-size: 3.2rem; }
  .portrait img { width: 170px; }
  .block { padding: 26px 0 30px; }
  .timeline, .jobs, .competences, .stats { margin-top: 18px; }
  .job { padding: 16px 0; }
  .stats > div { padding-top: 14px; padding-bottom: 14px; }
  .timeline li { padding-top: 12px; padding-bottom: 12px; }
  .timeline li, .subp, .stats, .competences > div, .method > * { break-inside: avoid-page; }
  .job:not(:has(.subs)) { break-inside: avoid-page; }
  .h2-sub, .head-row { break-after: avoid-page; }
  .contact .h2-sub { color: var(--ink-2); }
  .hero-side { display: block; grid-column: 1 / -1; }
  .skills li:has(.live)::before { content: "—"; }
  h2 { break-after: avoid-page; }
  .contact { background: none; color: var(--ink); padding: 32px 0; border-top: 1px solid var(--ink); }
  .contact h2 { color: var(--ink); }
  .mark-inv { --mark: var(--mark); }
  .foot { background: none; }
}
