/* ------------------------------------------------------------------ fonts */

@font-face { font-family: 'Newsreader'; src: url(/assets/fonts/newsreader-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(/assets/fonts/newsreader-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(/assets/fonts/newsreader-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(/assets/fonts/newsreader-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/assets/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(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ----------------------------------------------------------------- tokens */

:root {
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --bg: #f4f2ec;
  --bg-elev: #fbfaf6;
  --ink: #15171c;
  --ink-2: #3a3e47;
  --muted: #6b707b;
  --line: #dcd7cc;
  --accent: #b23a26;

  --sys-1: #c2412d;
  --sys-2: #2c74b3;
  --sys-3: #7c4fb8;
  --sys-4: #c98a12;
  --sys-5: #12897a;
  --sys-6: #4f8a2e;
  --sys-7: #b5487e;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-elev: #171a1f;
    --ink: #ebe8e1;
    --ink-2: #c6c3bc;
    --muted: #949aa4;
    --line: #2a2e36;
    --accent: #ef7a5f;

    --sys-1: #ef6a52;
    --sys-2: #5aa2e6;
    --sys-3: #a582e6;
    --sys-4: #e8b03e;
    --sys-5: #3cc0ad;
    --sys-6: #7dbd55;
    --sys-7: #e07aac;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.kicker {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.lead { font: 400 clamp(19px, 1.6vw, 22px)/1.55 var(--serif); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--sans);
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.link-arrow { font: 500 15px/1.4 var(--sans); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--accent); }

.section-head { display: grid; gap: 8px; margin-bottom: 40px; max-width: 46rem; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font: 400 19px/1.5 var(--serif); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { font: 400 12px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

/* ----------------------------------------------------------------- header */

.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  position: relative; z-index: 5;
}
.brand { font: 500 19px/1 var(--serif); text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a, .lang-switch { font: 500 14px/1 var(--sans); text-decoration: none; color: var(--muted); padding: 6px 0; }
.site-nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.site-nav a:hover, .lang-switch:hover { color: var(--accent); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }

@media (max-width: 560px) {
  .site-header { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 17px; }
  .site-nav { gap: 14px; }
  .lang-switch { padding: 6px 9px; }
}

/* ------------------------------------------------------------------ story */

.story { position: relative; }

.step-num { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; }
.step-num span { color: var(--muted); }
.step h1 { font-size: clamp(44px, 5.2vw, 76px); letter-spacing: -0.025em; margin-bottom: 26px; line-height: 1.02; }
.step h2 { font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -0.015em; margin-bottom: 20px; }
.step p:not(.kicker):not(.step-num):not(.hero-actions):not(.step-hint) { font: 400 clamp(18px, 1.45vw, 20px)/1.6 var(--serif); color: var(--ink-2); }
.step .lead--ask { color: var(--ink); font-style: italic; }
.step-hint { font: 400 13px/1.4 var(--mono); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.step-hint::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

.step-card { transition: opacity .5s ease; }
.step:not(.is-active):not(.step--hero) .step-card { opacity: .32; }
@media (prefers-reduced-motion: reduce) { .step-card { transition: none; } }
.no-webgl .step .step-card { opacity: 1; }

/* figure */

.fig-stage {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 0fr;
  transition: grid-template-columns 1s cubic-bezier(.6, 0, .2, 1);
}
.fig-stage[data-split='1'] { grid-template-columns: 1fr 1fr; }
@media (prefers-reduced-motion: reduce) { .fig-stage { transition: none; } }

.fig-panel { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.fig-panel[data-panel='company'] { opacity: 0; transition: opacity .6s ease .35s; }
.fig-stage[data-split='1'] .fig-panel[data-panel='company'] { opacity: 1; }
.fig-stage[data-split='1'] .fig-panel[data-panel='body'] { box-shadow: inset -1px 0 0 var(--line); }

.fig-host { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.fig-host.is-dragging { cursor: grabbing; }
.fig-canvas { width: 100%; height: 100%; }
.fig-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.fig-label {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  font: 500 11px/1.2 var(--mono);
  color: var(--ink-2);
  will-change: transform, opacity;
  visibility: hidden;
}
.fig-label--sys { translate: -50% -100%; color: var(--c); letter-spacing: .07em; text-transform: uppercase; font-size: 10.5px; }
.fig-label--var {
  translate: 10px -50%;
  pointer-events: auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-left: 2px solid var(--c);
}
.fig-label--var.fig-label--left { translate: calc(-100% - 10px) -50%; border-left: 0; border-right: 2px solid var(--c); }
.fig-label--var:hover { color: var(--ink); background: var(--bg-elev); }
.fig-label--lvl { translate: -100% -50%; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.is-small .fig-label--var { font-size: 9.5px; padding: 1px 3px; }
.is-small .fig-label--sys { font-size: 9px; letter-spacing: .04em; }
.is-small .fig-label--lvl { display: none; }

.fig-panel figcaption {
  position: absolute; left: 22px; bottom: 18px;
  font: 500 11.5px/1.3 var(--mono);
  color: var(--muted);
  letter-spacing: .03em;
}

.fig-legend {
  position: absolute; left: 22px; top: 14px;
  display: flex; gap: 16px; list-style: none;
  font: 400 11.5px/1 var(--mono); color: var(--ink-2);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  padding: 8px 10px; border-radius: 8px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.fig-stage[data-legend='1'] .fig-legend { opacity: 1; transform: none; }
.fig-legend li { display: flex; align-items: center; gap: 6px; }
.fig-legend svg { width: 26px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.4; }

.fig-drag { position: absolute; right: 22px; top: 18px; font: 400 11px/1 var(--mono); color: var(--muted); margin: 0; }
@media (pointer: coarse) { .fig-drag { display: none; } }

.no-webgl .story-figure { display: none; }

/* desktop: text on the left, figure pinned on the right */
@media (min-width: 900px) {
  .story { display: grid; grid-template-columns: minmax(360px, 40%) 1fr; }
  .story-steps { grid-column: 1; grid-row: 1; padding: 0 clamp(24px, 3vw, 56px) 0 var(--gutter); }
  .story-figure { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100svh; }
  .step { min-height: 88svh; display: flex; align-items: center; }
  .step-card { max-width: 35rem; padding: 6svh 0; }
  .step--hero { min-height: calc(100svh - 70px); }
  .step:last-child { min-height: 100svh; }
  .no-webgl .story { grid-template-columns: 1fr; }
}

/* phones and tablets: figure pinned to the top, text scrolls beneath it */
@media (max-width: 899px) {
  .story-figure {
    position: sticky; top: 0; z-index: 3;
    height: 46svh;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .story-steps { padding: 0 var(--gutter); }
  .step { min-height: 62svh; padding: 7svh 0; }
  .step--hero { min-height: auto; padding-top: 5svh; }
  .step h1 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 18px; }
  .step h2 { font-size: 28px; margin-bottom: 14px; }
  .step p:not(.kicker):not(.step-num):not(.hero-actions):not(.step-hint) { font-size: 18px; }
  .step-hint { display: none; }
  .fig-panel figcaption { left: 12px; bottom: 10px; font-size: 10px; }
  .fig-legend { left: 8px; top: 8px; gap: 10px; font-size: 10px; padding: 6px 8px; }
  .fig-legend svg { width: 20px; }
}

/* ----------------------------------------------------------------- method */

.method, .proof, .recent, .earlier, .background { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.method { border-top: 1px solid var(--line); margin-top: 6vh; }

.method-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.method-list li { padding: 22px 24px 8px 0; border-right: 1px solid var(--line); }
.method-list li + li { padding-left: 24px; }
.method-list li:last-child { border-right: 0; }
.method-num { font: 500 12px/1 var(--mono); color: var(--accent); }
.method-list h3 { font-size: 26px; margin: 14px 0 12px; }
.method-list p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 899px) {
  .method-list { grid-template-columns: 1fr 1fr; }
  .method-list li { border-right: 0; padding: 22px 16px 8px 0; border-bottom: 1px solid var(--line); }
  .method-list li + li { padding-left: 0; }
  .method-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .method-list { grid-template-columns: 1fr; }
  .method-list li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ proof */

.proof-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.proof-list li { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.proof-n { font: 500 clamp(56px, 6.5vw, 92px)/0.95 var(--serif); letter-spacing: -0.03em; margin-bottom: 14px; }
.proof-label { font: 500 18px/1.4 var(--sans); margin-bottom: 10px; max-width: 28rem; }
.proof-detail { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 32rem; }
@media (max-width: 760px) { .proof-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- contact */

.site-footer { padding: clamp(96px, 14vw, 180px) var(--gutter) 40px; }
.contact { max-width: 46rem; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.02em; margin-bottom: 16px; }
.contact > p { font: 400 20px/1.5 var(--serif); color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.contact-mail { font: 400 14px/1 var(--mono); color: var(--muted); }
.contact-mail a { text-decoration: none; }
.colophon { margin: 96px auto 0; max-width: 1240px; font: 400 12px/1.4 var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

/* ------------------------------------------------------------- work page */

.page-head { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px); }
.page-head h1 { font-size: clamp(42px, 6vw, 84px); letter-spacing: -0.025em; max-width: 16ch; margin-bottom: 24px; }
.page-head .lead { max-width: 40rem; }
.page-head--center { text-align: center; }
.page-head--center h1 { margin-inline: auto; }
.page-head--center .hero-actions { justify-content: center; }

.case-index { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; }
.case-index a { text-decoration: none; font: 500 15px/1.4 var(--sans); display: inline-flex; gap: 10px; }
.case-index span { font: 500 12px/1.9 var(--mono); color: var(--accent); }

.case {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-rows: auto 1fr auto; gap: 24px clamp(32px, 5vw, 88px);
  scroll-margin-top: 16px;
}
.case-head, .case-metrics { grid-column: 1; }
.case-steps, .case .chips { grid-column: 2; }
.case-head { grid-row: 1; }
.case-metrics { grid-row: 2; align-self: start; }
.case-steps { grid-row: 1 / span 2; }
.case .chips { grid-row: 3; }
.case-num { color: var(--accent); margin-right: 6px; }
.case h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.02em; margin-bottom: 18px; }
.case-org { font: 500 16px/1.4 var(--sans); margin-bottom: 4px; }
.case-role { color: var(--muted); font-size: 15px; }
.case-context { font: 400 18px/1.55 var(--serif); color: var(--ink-2); }

.case-metrics { display: grid; gap: 0; border-top: 1px solid var(--ink); margin: 8px 0 0; }
.case-metrics div { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-metrics dt { font: 500 30px/1 var(--serif); letter-spacing: -0.02em; }
.case-metrics dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

.case-steps { list-style: none; counter-reset: s; }
.case-steps > li { position: relative; padding: 0 0 26px 30px; border-left: 1px solid var(--line); margin-left: 6px; }
.case-steps > li:last-child { padding-bottom: 6px; }
.case-steps > li::before {
  content: ''; position: absolute; left: -6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.case-steps > li:last-child::before { background: var(--accent); }
.case-steps h3 { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.case-steps p, .case-steps ul { font: 400 18px/1.6 var(--serif); color: var(--ink-2); margin: 0; }
.case-steps ul { list-style: none; display: grid; gap: 10px; }
.case-steps ul li { padding-left: 16px; position: relative; }
.case-steps ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--muted); }
.case-steps > li:last-child p { color: var(--ink); }

@media (max-width: 899px) {
  .case { grid-template-columns: 1fr; }
  .case-head, .case-metrics, .case-steps, .case .chips { grid-column: 1; grid-row: auto; }
  .case-metrics { margin-bottom: 16px; }
  .case-metrics div { grid-template-columns: 6.5rem 1fr; }
  .case-metrics dt { font-size: 26px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card-status { font-size: 14px !important; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.card-status span { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.card .chips { margin-top: 4px; }

.timeline { list-style: none; border-top: 1px solid var(--ink); }
.timeline > li { display: grid; grid-template-columns: 11rem 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tl-when { font: 500 13px/1.6 var(--mono); color: var(--muted); }
.timeline h3 { font-size: 24px; margin-bottom: 4px; }
.tl-org { font: 500 14.5px/1.4 var(--sans); color: var(--muted); }
.timeline p:last-child { color: var(--ink-2); margin: 0; max-width: 46rem; }
@media (max-width: 640px) { .timeline > li { grid-template-columns: 1fr; gap: 6px; } }

.background-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 32px; }
.background-list h3 { font-size: 21px; margin-bottom: 6px; }
.background-list p { color: var(--muted); font-size: 15px; margin: 0; }

/* -------------------------------------------------------------------- cv */

.cv-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 8.5in; margin: 24px auto 20px; padding: 0 var(--gutter); }

.cv-sheet {
  --paper: #ffffff;
  --cv-ink: #16181d;
  --cv-muted: #585d68;
  --cv-line: #cfcac0;
  background: var(--paper);
  color: var(--cv-ink);
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.6in 0.6in 0.7in;
  font: 400 13.2px/1.42 var(--sans);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 40px rgb(0 0 0 / .08);
  border-radius: 4px;
  color-scheme: light;
}
.cv-sheet h1, .cv-sheet h2, .cv-sheet h3 { font-family: var(--sans); line-height: 1.25; }
.cv-head { text-align: center; margin-bottom: 0.9em; }
.cv-head h1 { font-size: 1.62em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cv-headline { font-size: 1.08em; font-weight: 500; margin: 0.15em 0 0.25em; }
.cv-contact { font-size: .9em; color: var(--cv-muted); margin: 0; text-wrap: balance !important; }
.cv-sheet section { margin-top: 0.95em; }
.cv-sheet h2 { font-size: .95em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--cv-line); padding-bottom: .2em; margin-bottom: .55em; }
.cv-sheet p { margin: 0 0 .4em; text-wrap: auto; }
.cv-sheet ul, .cv-sheet ol { padding-left: 1.25em; }
.cv-sheet li { margin-bottom: .22em; }
.cv-skills { margin: 0; }
.cv-skills div { margin-bottom: .2em; }
.cv-skills dt { display: inline; font-weight: 600; }
.cv-skills dd { display: inline; margin: 0; }
.cv-job, .cv-edu { margin-bottom: .75em; }
.cv-row { display: flex; justify-content: space-between; gap: 1em; align-items: baseline; }
.cv-row h3 { font-size: 1em; font-weight: 600; }
.cv-dates { font-size: .95em; white-space: nowrap; font-weight: 500; }
.cv-org { font-style: italic; margin-bottom: .1em !important; }
.cv-context { font-size: .9em; color: var(--cv-muted); font-style: italic; }
.cv-job ul { margin-top: .25em; }
.cv-note { font-size: .88em; color: var(--cv-muted); }
.cv-lead { font-size: .95em; color: var(--cv-muted); }
.cv-pubs li { margin-bottom: .35em; }
.cv-plain { list-style: disc; }
.cv-projects li { margin-bottom: .35em; }
.cv-projects b, .cv-plain b { font-weight: 600; }

@media screen and (max-width: 760px) {
  .cv-sheet { padding: 24px 18px 32px; border-radius: 0; font-size: 14px; }
  .cv-row { flex-direction: column; gap: 0; }
}

@media print {
  @page { size: letter; margin: 0.45in 0.5in 0.5in; }
  html, body { background: #fff !important; }
  .site-header, .site-footer, .cv-toolbar, .skip { display: none !important; }
  .cv-sheet { box-shadow: none; padding: 0; max-width: none; font-size: 9pt; line-height: 1.32; border-radius: 0; }
  .cv-sheet section { margin-top: 0.8em; }
  .cv-sheet li { margin-bottom: .14em; }
  .cv-job { margin-bottom: .6em; }
  .cv-job ul { margin-top: .15em; }
  .cv-row, .cv-sheet h2, .cv-org, .cv-context { break-after: avoid; }
  .cv-sheet li { break-inside: avoid; }
  .cv-edu { break-inside: avoid; }
}
