/* andresledezma.dev
   Layout: one calm column of sections, cards only where content is a separate object.
   The accent is the blue of the PDF CV, so the site and the document match. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #5a6572;
  --line: #e0e4e9;
  --accent: #1f4e9b;
  --accent-soft: #e9eff8;
  --ok: #1d7f53;
  --nok: #b3392b;
  --band: #1d2836;
  --band-ink: #f3f5f8;
  --band-muted: #b4bfcb;
  --orange: #d38b3d;
  --on-orange: #1d2836;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wide: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --surface: #161d25; --ink: #e5e9ee; --muted: #9aa5b1; --line: #26303b;
    --accent: #8fb4ec; --accent-soft: #1a2636; --ok: #4cc38a; --nok: #f07a6a; --band: #172230; --band-ink: #eef1f5; --band-muted: #a7b3c0; --orange: #dc9a52; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --surface: #161d25; --ink: #e5e9ee; --muted: #9aa5b1; --line: #26303b;
  --accent: #8fb4ec; --accent-soft: #1a2636; --ok: #4cc38a; --nok: #f07a6a; --band: #172230; --band-ink: #eef1f5; --band-muted: #a7b3c0; --orange: #dc9a52; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Top band: header and title area, the only place with the orange */
.band { background: var(--band); color: var(--band-ink); border-bottom: 3px solid var(--orange); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--band); border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 12%, transparent); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--band-ink); font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 1.05rem; letter-spacing: 0.01em; }
.mark:hover { text-decoration: none; color: var(--band-ink); }
.mark .badge { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 2px; }
.nav a { font-family: var(--display); font-stretch: 108%; font-weight: 500; font-size: 0.92rem; color: var(--band-muted); padding: 6px 10px; border-radius: 4px; }
.nav a:hover { color: var(--band-ink); text-decoration: none; background: color-mix(in srgb, var(--band-ink) 8%, transparent); }
.nav a[aria-current="page"] { color: var(--band-ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
@media (max-width: 460px) { .mark .full { display: none; } .nav a { padding: 6px 8px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.primary:hover { filter: brightness(1.08); }

/* Hero */
.hero { padding-block: clamp(44px, 7vw, 84px) clamp(36px, 5vw, 60px); }
.hero .wrap { display: grid; gap: 16px; }
.hero .label, .cv-head .label { color: var(--orange); }
.hero h1, .cv-head h1 { font-family: var(--display); font-weight: 750; font-stretch: 115%; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); letter-spacing: -0.005em; color: var(--band-ink); }
.hero .role, .cv-head .role { font-size: 1.1rem; color: var(--band-muted); max-width: 46ch; }
.hero .summary { max-width: 60ch; color: var(--band-ink); }
.hero .next { max-width: 60ch; padding-left: 12px; border-left: 3px solid var(--orange); color: var(--band-ink); }
.hero .next b { font-weight: 600; color: var(--orange); }
.hero .actions { margin-top: 8px; }
.band .btn { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 35%, transparent); }
.band .btn:hover { border-color: var(--band-ink); }
.band .btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

/* Sections */
.section { padding-block: clamp(36px, 6vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 6px; margin-bottom: 24px; }
.section-head h2 { font-size: 1.5rem; }

/* Featured project */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; }

.feature-text { padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.feature-title { display: flex; align-items: center; gap: 14px; }
.feature-title img { width: 48px; height: 48px; border-radius: 11px; }
.feature-title h3 { font-size: 1.35rem; }
.feature-title p { font-size: 0.9rem; color: var(--muted); }
.feature ul { padding-left: 1.1em; display: grid; gap: 8px; max-width: 60ch; }
.feature li::marker { color: var(--muted); }
.feature-intro { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .feature-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 40px; } }

.built-with { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.88rem; color: var(--ink); }
.built-with img { width: 20px; height: 20px; }
.built-with b { font-weight: 600; }
a.built-with:hover { text-decoration: none; border-color: var(--muted); }

.shots { display: grid; gap: 14px; padding: 0 clamp(20px, 3.5vw, 36px) clamp(20px, 3.5vw, 36px); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot img, .shot video { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1230; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); }

/* Achievements */
.achievements { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; }
@media (min-width: 760px) { .achievements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.achievements li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.achievements b { font-weight: 600; font-size: 1.02rem; }
.achievements span { color: var(--muted); font-size: 0.95rem; }

/* Achievement graphics: illustrations drawn in SVG, with light motion */
.section-head .note { font-size: 0.85rem; color: var(--muted); }
.ach-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 20px; margin-bottom: 14px; }
.ach-text { display: grid; gap: 6px; max-width: 62ch; }
.ach-text b { font-weight: 600; font-size: 1.1rem; }
.ach-text span { color: var(--muted); }
.ach-viz { display: grid; gap: 14px; }
@media (min-width: 820px) { .ach-viz { grid-template-columns: 1.15fr 1fr; } }
.viz { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz figcaption { font-size: 0.85rem; color: var(--muted); }
.viz text { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.viz .t-ink { fill: var(--ink); font-weight: 500; }
.viz .t-accent { fill: var(--accent); font-weight: 500; }
.viz .t-nok { fill: var(--nok); font-weight: 500; }
.viz .t-ok { fill: var(--ok); font-weight: 500; }
.viz .lead { stroke: var(--muted); stroke-width: 0.75; stroke-opacity: 0.6; fill: none; }
.viz .axis { stroke: var(--line); stroke-width: 1; fill: none; }

.car-body { fill: color-mix(in srgb, var(--accent) 4%, var(--surface)); stroke: var(--muted); stroke-opacity: 0.45; stroke-width: 1.2; }
.car-glass { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--muted); stroke-opacity: 0.25; stroke-width: 1; }
.car-wheel { fill: color-mix(in srgb, var(--muted) 22%, transparent); stroke: var(--muted); stroke-opacity: 0.35; }
.brake-line { stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 2.4; fill: none; stroke-linejoin: round; }
.brake-flow { stroke: var(--accent); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
.brake-part { fill: var(--accent); }
.brake-unit { fill: color-mix(in srgb, var(--accent) 18%, var(--surface)); stroke: var(--accent); stroke-width: 1.6; }
@keyframes flow { to { stroke-dashoffset: -24; } }

.decay-good { stroke: var(--ok); stroke-width: 1.6; fill: none; opacity: 0.75; }
.decay-bad { stroke: var(--nok); stroke-width: 2.2; fill: none; }
.limit-old { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; fill: none; }
.limit-new { stroke: var(--accent); stroke-width: 2; fill: none; }
/* The chart replays every 7 s: pass curves draw, the faulty curve crosses the new limit, the reject is flagged */
.draw { stroke-dasharray: 420; stroke-dashoffset: 0; animation: draw-good 7s ease-in-out infinite; }
.decay-bad.draw { animation-name: draw-bad; }
@keyframes draw-good { 0% { stroke-dashoffset: 420; opacity: 1; } 30% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw-bad { 0%, 12% { stroke-dashoffset: 420; opacity: 1; } 45% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pulse { fill: var(--nok); transform-box: fill-box; transform-origin: center; animation: reveal 7s linear infinite, pulse 1.4s ease-in-out infinite; }
.reveal { animation: reveal 7s linear infinite; }
@keyframes reveal { 0%, 44% { opacity: 0; } 48%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.8); } }

.bolt { fill: color-mix(in srgb, var(--muted) 30%, var(--surface)); stroke: var(--muted); stroke-width: 1; }
.bolt.one { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); }
.arrow { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 4 4; animation: flow 1.2s linear infinite; }
.arrow-head { fill: var(--accent); }
.bar-before { fill: color-mix(in srgb, var(--muted) 45%, var(--surface)); }
.bar-after { fill: var(--accent); }
.grow { transform-box: fill-box; transform-origin: left center; animation: grow 1.4s ease-out both; }
.grow.late { animation-delay: 0.5s; }
@keyframes grow { from { transform: scaleX(0); } }
.row { fill: none; stroke: var(--line); }
.scan { fill: color-mix(in srgb, var(--accent) 14%, transparent); animation: scan 4.8s steps(1, end) infinite; }
@keyframes scan { 0% { transform: translateY(0); } 25% { transform: translateY(16px); } 50% { transform: translateY(32px); } 75% { transform: translateY(48px); } }

/* Moisture drops near the evaporator blink */
.drop { fill: var(--nok); opacity: 0.85; animation: drop-blink 2.4s ease-in-out infinite; }
.drop.d2 { animation-delay: 0.5s; } .drop.d3 { animation-delay: 1s; }
@keyframes drop-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
/* Bolt cutaway: both bolts drive in, the long one cracks the case and fluid drips; replays every 6 s */
.bracket { fill: color-mix(in srgb, var(--muted) 35%, var(--surface)); stroke: var(--muted); stroke-opacity: 0.5; }
.case-wall { fill: color-mix(in srgb, var(--muted) 22%, var(--surface)); }
.case-fluid { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.case-edge { fill: none; stroke: var(--muted); stroke-opacity: 0.6; stroke-width: 1.4; }
.bolt-metal { fill: color-mix(in srgb, var(--ok) 25%, var(--surface)); stroke: var(--ok); stroke-width: 1.2; }
.bolt-metal.long { fill: color-mix(in srgb, var(--nok) 22%, var(--surface)); stroke: var(--nok); }
.bolt-in { animation: bolt-in 6s ease-in-out infinite; }
@keyframes bolt-in { 0% { transform: translateY(-24px); opacity: 0; } 8% { opacity: 1; } 32%, 90% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.crack { fill: none; stroke: var(--nok); stroke-width: 1.6; stroke-linejoin: round; animation: crack 6s linear infinite; }
@keyframes crack { 0%, 32% { opacity: 0; } 36%, 90% { opacity: 1; } 100% { opacity: 0; } }
.leak-group { animation: crack 6s linear infinite; }
.leak { fill: var(--accent); opacity: 0; animation: leak 1.5s ease-in infinite; }
.leak.l2 { animation-delay: 0.75s; }
@keyframes leak { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 0.9; } 100% { transform: translateY(14px); opacity: 0; } }
.unit-box { fill: var(--surface); stroke: var(--muted); stroke-opacity: 0.6; }

.achievements.rows { grid-template-columns: 1fr; }
.achievements.rows li { gap: 16px; padding: clamp(18px, 3vw, 24px); }
@media (min-width: 760px) { .achievements.rows li { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; } }
.achievements .viz { padding: 10px 12px; }
.ach-body { display: grid; gap: 6px; min-width: 0; }
.ach-body b { font-size: 1.1rem; }
.tag { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.par { display: grid; gap: 12px; margin: 10px 0 0; }
.par div { display: grid; gap: 2px; align-content: start; }
.par dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.par .result dt { color: var(--ok); }
.par dd { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.ach-feature .par { margin: 0; }
@media (min-width: 900px) { .ach-feature .par { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
@media (min-width: 720px) { .contact { grid-template-columns: max-content auto; justify-content: start; align-items: center; column-gap: 56px; } }
.contact-main { display: grid; align-content: start; min-width: 0; }
.contact-mark { justify-self: end; }
@media (min-width: 720px) { .contact-mark { justify-self: start; } }
.contact-mark svg { display: block; width: clamp(84px, 18vw, 150px); height: auto; border-radius: 18px; box-shadow: 0 1px 0 var(--line), 0 18px 34px -24px rgba(0, 0, 0, 0.45); }
.mark-scan { animation: mark-scan 0.5s linear infinite; }
.mark-roll { animation: mark-roll 4.5s linear infinite; }
@keyframes mark-scan { to { transform: translateY(3px); } }
@keyframes mark-roll { from { transform: translateY(0); } to { transform: translateY(125px); } }
.contact-list { display: grid; gap: 8px; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-list dt { font-size: 0.82rem; color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 519px) { .contact-list div { grid-template-columns: 1fr; gap: 0; } .contact-list { gap: 10px; } }

.footer { border-top: 1px solid var(--line); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; color: var(--muted); }

/* ---------- CV page ---------- */
.cv-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.cv-head .wrap { display: grid; gap: 24px; }
@media (min-width: 880px) { .cv-head .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.cv-head .role { margin-top: 10px; }
.cv-head .card { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: grid; gap: 14px; min-width: 0; }

.cv-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .cv-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: 48px; } }
.cv-main, .cv-side { display: grid; gap: 40px; align-content: start; min-width: 0; }
.cv-block { display: grid; gap: 16px; }
.cv-block > h2 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose { max-width: 68ch; display: grid; gap: 10px; }
.bullets { padding-left: 1.1em; display: grid; gap: 6px; max-width: 68ch; }
.bullets li::marker { color: var(--muted); }

.role-block { display: grid; gap: 14px; }
.role-block + .role-block { padding-top: 22px; border-top: 1px dashed var(--line); }
.role-block header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.role-block h3 { font-size: 1.1rem; }
.role-block .where { font-size: 0.9rem; color: var(--muted); font-style: italic; width: 100%; }
.dates { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

.project { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.project h4 { font-size: 1rem; line-height: 1.4; }
.project h4 em { font-weight: 400; color: var(--muted); }
.project .bullets { font-size: 0.95rem; }
.project .bullets b { font-weight: 600; }

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 14px; }
.side-card h3 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.skill { display: grid; gap: 2px; }
.skill + .skill { border-top: 1px solid var(--line); padding-top: 12px; }
.skill dt { font-weight: 600; font-size: 0.9rem; }
.skill dd { margin: 0; font-size: 0.9rem; color: var(--muted); }
.side-list { display: grid; gap: 12px; margin: 0; }
.side-list dt { font-weight: 600; font-size: 0.9rem; }
.side-list dd { margin: 0; font-size: 0.9rem; color: var(--muted); }

.contact .actions { margin-top: 18px; }
.side-text { font-size: 0.9rem; color: var(--muted); }

/* Print: the CV page as a plain document */
@media print {
  @page { size: letter; margin: 13mm 14mm 14mm; }
  :root { --bg: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #ccc; --accent: #1f4e9b; color-scheme: light; }
  body { font-size: 9.5pt; line-height: 1.42; }
  .topbar, .no-print, .footer, body::before, .cv-head .label { display: none !important; }
  .band { background: #fff; color: #111; border: 0; }
  .cv-head h1 { color: #111; }
  .cv-head .role { color: #444; }
  .wrap { padding: 0 !important; max-width: none; }
  .cv-head { padding: 0 0 10pt; }
  .cv-head .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16pt; }
  .cv-head h1 { font-size: 24pt; }
  .cv-head .role { font-size: 10pt; margin-top: 2pt; }
  .cv-head .card { border: 0; padding: 0; }
  .contact-list { gap: 1pt; font-size: 8.5pt; }
  .contact-list div { grid-template-columns: 5rem 1fr; gap: 6pt; }
  .section { padding: 0 !important; border: 0; }
  .cv-grid, .cv-main, .cv-block, .role-block { display: block; }
  .cv-block { margin-bottom: 11pt; }
  .cv-block > h2 { font-size: 9pt; margin-bottom: 6pt; padding-bottom: 3pt; }
  .prose p + p { margin-top: 4pt; }
  .bullets { display: block; font-size: 9pt; }
  .bullets li { margin-bottom: 2pt; }
  .role-block { margin-bottom: 9pt; }
  .role-block + .role-block { padding-top: 8pt; }
  .role-block header { display: block; margin-bottom: 5pt; break-after: avoid; break-inside: avoid; }
  .role-block header .dates { float: right; }
  .role-block header .where { display: block; }
  .role-block h3 { font-size: 10.5pt; }
  .project { display: block; padding: 6pt 8pt; margin-bottom: 6pt; border-radius: 3px; }
  .project h4 { break-after: avoid; }
  .bullets li { break-inside: avoid; }
  .project h4 { font-size: 9.5pt; margin-bottom: 3pt; }
  .project .bullets { font-size: 8.7pt; }
  .cv-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7pt; align-items: start; }
  .cv-side .side-card:first-child { grid-column: 1 / -1; }
  .cv-side .side-card:first-child > dl { columns: 2; column-gap: 14pt; }
  .skill, .side-list > div { break-inside: avoid; margin-bottom: 5pt; }
  .skill + .skill { border-top: 0; padding-top: 0; }
  .side-card { padding: 8pt; gap: 6pt; border-radius: 3px; break-inside: avoid; }
  .side-card h3 { font-size: 8.5pt; }
  .skill + .skill { padding-top: 5pt; }
  .skill dt, .skill dd, .side-list dt, .side-list dd { font-size: 8.3pt; }
  .side-list { gap: 5pt; }
  a { color: inherit; }
}
