/* ── Tokens ─────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0b0c0d;
  --panel: #121315;
  --line: #232529;
  --line-strong: #383b40;
  --text: #e6e5e1;
  --muted: #8e9197;
  --dim: #5d6066;
  --accent: #f0b44c;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --cue: cubic-bezier(0.45, 0, 0.25, 1);
}

/* Smooth crossfade between pages (Chrome, Edge, Safari). */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #000; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent); color: #000; padding: 6px 12px; z-index: 50; }

/* ── Motion ─────────────────────────────────────────── */
@keyframes cue-up {
  from { opacity: 0; filter: brightness(0.2); transform: scale(1.06); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes level { from { transform: scaleX(0); } to { transform: none; } }

[data-reveal] {
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(20px); }

/* ── Header / footer ────────────────────────────────── */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.is-home .site-header { position: absolute; inset: 0 0 auto; border-color: transparent; }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 18px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__name { font-weight: 600; letter-spacing: -0.01em; }
.brand__role { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

.site-nav { display: flex; margin-inline: -12px; }
.site-nav a {
  position: relative; padding: 6px 12px;
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); text-decoration: none;
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px; font-family: var(--mono); font-size: 0.75rem; color: var(--dim);
}
.site-footer a { color: var(--muted); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  height: min(86svh, 780px); min-height: 520px;
  background: #000;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
  animation: cue-up 3s var(--cue) 0.3s both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 13, 0.9) 0%, rgba(11, 12, 13, 0.4) 42%, rgba(11, 12, 13, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 13, 0) 45%),
    linear-gradient(180deg, rgba(11, 12, 13, 0.6) 0%, rgba(11, 12, 13, 0) 22%);
}
.hero__content { position: relative; width: 100%; padding-bottom: clamp(40px, 7vh, 72px); }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.25rem); font-weight: 500;
  letter-spacing: -0.04em; line-height: 0.95; margin: 10px 0 16px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0.9s); }
.hero__fade { animation: fade 1s ease both; animation-delay: var(--d, 1.4s); }
.hero__role { font-family: var(--mono); font-size: clamp(0.8rem, 1.4vw, 0.95rem); letter-spacing: 0.04em; color: var(--muted); margin: 0; }

/* Cue readout, styled like a console playback. It's a button: GO replays the fade. */
.hero__readout {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 7vh, 72px);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; background: rgba(11, 12, 13, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  cursor: default; transition: border-color 0.25s;
}
.hero__readout b { color: var(--accent); font-weight: 500; }
.hero__state { min-width: 8ch; text-align: left; }
.hero__track { width: 80px; height: 3px; background: var(--line-strong); overflow: hidden; }
.hero__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: level 3s var(--cue) 0.3s both; }
.hero__pct { min-width: 4ch; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.hero__go {
  padding: 3px 9px; border: 1px solid var(--accent); color: var(--accent); font-weight: 500;
  opacity: 0.3; transition: opacity 0.3s, background 0.2s, color 0.2s;
}
.hero__readout.is-ready { cursor: pointer; }
.hero__readout.is-ready .hero__go { opacity: 1; }
.hero__readout.is-ready:hover { border-color: rgba(240, 180, 76, 0.5); }
.hero__readout.is-ready:hover .hero__go,
.hero__readout.is-ready:focus-visible .hero__go { background: var(--accent); color: #000; }
.hero__readout.is-ready:active .hero__go { transform: translateY(1px); }

@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .hero__media img { object-position: 74% 30%; }
  .hero__readout { position: relative; right: auto; bottom: auto; display: inline-flex; margin-bottom: 24px; gap: 10px; }
  .hero__track { width: 48px; }
}

/* ── Page structure ─────────────────────────────────── */
.page-head { padding-block: 48px 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; margin-top: 8px; }
.page-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 16px 0 0; }

.section { margin-top: 56px; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section__head a { text-decoration: none; }

/* ── Home ───────────────────────────────────────────── */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 64px; align-items: end; padding-top: 56px; }
.statement__text { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.statement__intro { color: var(--muted); max-width: 48ch; margin: 0; }
@media (max-width: 820px) { .statement { grid-template-columns: 1fr; padding-top: 32px; } }

.places {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.places > div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.places h3 { font-size: 1.05rem; margin: 10px 0 2px; }
.places p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cta { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.cta--page { margin: 40px 0 32px; padding: 0; border: 0; }
.cta__email {
  display: inline-block; margin-top: 6px;
  font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.cta__email:hover { background-size: 100% 2px; }

/* Spec list: label/value rows, used across pages */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 16px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.spec dt { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); padding-top: 2px; }
.spec dd { margin: 0; }
.spec dd a { text-decoration: none; }
.spec__count { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); padding-top: 2px; }
.spec--wide > div { grid-template-columns: minmax(7rem, 11rem) 1fr; }
.spec--wide dt { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: var(--muted); padding-top: 4px; }

/* ── Frames ─────────────────────────────────────────── */
.frame { position: relative; aspect-ratio: 3 / 2; background: var(--panel); overflow: hidden; margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.frame--portrait { aspect-ratio: 1; border: 1px solid var(--line); margin-bottom: 24px; }
.frame--portrait img { object-position: 72% 30%; }

/* ── Show cards ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
/* Cards in a row share a height; a text-only card's panel grows to match a photo card. */
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--bg); text-decoration: none;
  transition: border-color 0.3s, opacity 0.9s ease, transform 0.9s var(--ease);
}
.card:hover { border-color: var(--line-strong); color: inherit; }
.card .frame { border-bottom: 1px solid var(--line); }
/* Photos sit dimmed and come up to full on hover, like bringing a light up. */
.card .frame img { filter: grayscale(0.4) brightness(0.72); transition: filter 0.7s ease, transform 1.2s var(--ease); }
.card:hover .frame img { filter: none; transform: scale(1.04); }

.frame--text {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; background: var(--panel);
}
.frame--text::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(240, 180, 76, 0.16), transparent 70%);
}
.card:hover .frame--text::before { opacity: 1; }
.frame__title { position: relative; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; max-width: 14ch; transition: color 0.3s; }
.card:hover .frame__title { color: var(--accent); }
@media (max-width: 600px) { .frame--text { aspect-ratio: auto; min-height: 150px; gap: 32px; } }

.card__rows { margin: 0; display: grid; grid-template-columns: 1fr 5.5rem; }
.card__rows > div { padding: 10px 14px; border-top: 1px solid var(--line); }
.card__rows > .card__title, .card__rows > .card__role { grid-column: 1 / -1; }
.card__rows > div:first-child { border-top: 0; }
.card__rows > div:last-child { border-left: 1px solid var(--line); }
.card__rows dt { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.card__rows dd { margin: 0; font-size: 0.9rem; }
.card__title dd { font-size: 1.05rem; font-weight: 500; transition: color 0.3s; }
.card:hover .card__title dd { color: var(--accent); }

/* ── Work index ─────────────────────────────────────── */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index a {
  position: relative;
  display: grid; grid-template-columns: 3rem 1.5fr 1.2fr 1.5fr 5rem; gap: 16px; align-items: baseline;
  padding: 16px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background 0.3s, padding 0.4s var(--ease);
}
.index a:hover { background: var(--panel); color: inherit; padding-left: 16px; }
.index a:hover .index__title { color: var(--accent); }
.index__num, .index__year { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }
.index__year { text-align: right; }
.index__title { font-weight: 500; font-size: 1.05rem; transition: color 0.3s; }
.index__role, .index__venue { color: var(--muted); }
.index__venue { font-size: 0.9rem; }

/* Floating photo preview that follows the pointer (desktop only) */
.index__preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 300px; aspect-ratio: 3 / 2; overflow: hidden; pointer-events: none;
  border: 1px solid var(--line-strong); background: var(--panel);
  opacity: 0;
  transform: translate3d(calc(var(--px, 0px) + 28px), calc(var(--py, 0px) - 50%), 0) scale(var(--s, 0.94));
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
.index a:hover .index__preview { opacity: 1; --s: 1; }
@media (hover: none), (max-width: 900px) { .index__preview { display: none; } }

@media (max-width: 760px) {
  .index a { grid-template-columns: 2.25rem 1fr auto; row-gap: 2px; }
  .index a:hover { padding-left: 8px; }
  .index__title { grid-column: 2; }
  .index__year { grid-column: 3; grid-row: 1; }
  .index__role { grid-column: 2 / -1; font-size: 0.9rem; }
  .index__venue { display: none; }
}

/* ── Show page ──────────────────────────────────────── */
.crumbs { padding-block: 24px; margin: 0; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--dim); margin-inline: 6px; }

.show__layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .show__layout { grid-template-columns: 1fr; } }

.show__aside { display: flex; flex-direction: column; gap: 16px; }
.title-block { border: 1px solid var(--line); }
.team .title-block__head { margin: 0; }
.team__name { display: block; }
.team__name--me { color: var(--accent); }
.title-block__head { padding: 16px; border-bottom: 1px solid var(--line); }
.title-block__head h1 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 6px; }
.title-block__rows { margin: 0; }
.title-block__rows > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px;
  padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.title-block__rows dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding-top: 3px; }
.title-block__rows dd { margin: 0; }
.title-block__rows > div:last-child { border-bottom: 0; }

.show__main > * + * { margin-top: 40px; }


.prose { max-width: 66ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 2.2em 0 0.8em; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.prose p { color: #cfcfcb; }
.prose--lead p:first-child { font-size: 1.15rem; line-height: 1.5; color: var(--text); }

/* Photos and Technical sections share the same heading style */
.show-section > h2 { padding-bottom: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.show-section h2 span, .show-section h3 span { color: var(--dim); margin-left: 6px; }
.show-section h2 .show-section__credit { float: right; margin-left: 16px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.technical__block + .technical__block { margin-top: 32px; }
.technical__block > h3 { margin: 0 0 10px; }

.documents { max-width: 66ch; }
.documents ul { border-top: 1px solid var(--line); }
.documents ul { list-style: none; margin: 0; padding: 0; }
.documents a {
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.documents__num, .documents__type { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); padding-top: 3px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.gallery figure { margin: 0; }
.gallery__item {
  display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: filter 0.5s ease, transform 0.9s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { filter: none; transform: scale(1.05); }
.gallery figcaption { display: flex; gap: 8px; margin-top: 6px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.gallery figcaption .label { color: var(--dim); padding-top: 1px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; padding-top: 16px; text-decoration: none; font-weight: 500; }
.pager__next { text-align: right; margin-left: auto; }
.pager__year { font-family: var(--mono); font-size: 0.8rem; font-weight: 400; color: var(--dim); }

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(6, 7, 8, 0.97); color: var(--text);
}
.lightbox[open] { display: flex; flex-direction: column; animation: fade 0.25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage {
  flex: 1; min-height: 0; display: grid; place-items: center; padding: 24px var(--gutter) 16px;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; overflow: hidden;
}
.lightbox__stage:active { cursor: grabbing; }
.lightbox__img { -webkit-user-drag: none; will-change: transform; }
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain;
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px var(--gutter); border-top: 1px solid var(--line); }
.lightbox__caption { flex: 1; min-width: 0; color: var(--muted); font-size: 0.9rem; }
.lightbox__controls { display: flex; gap: 6px; }
.lightbox__controls button {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: none; color: var(--text); border: 1px solid var(--line-strong); padding: 8px 12px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox__controls button:hover { border-color: var(--accent); color: var(--accent); }

/* ── About / CV / Contact ───────────────────────────── */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.split .prose { margin-top: 40px; }
.split aside { margin-top: 48px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 0; } }

.button {
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; padding: 10px 16px; border: 1px solid var(--accent); color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--accent); color: #000; }

.credits { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.credits th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim);
  padding: 0 16px 8px 0; border-bottom: 1px solid var(--line);
}
.credits td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits td:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); white-space: nowrap; width: 6rem; }
.credits td:nth-child(2) a { text-decoration: none; font-weight: 500; }
.credits td:nth-child(3), .credits td:nth-child(4) { color: var(--muted); }
@media (max-width: 640px) {
  .credits thead { display: none; }
  .credits tr { display: grid; grid-template-columns: 4.5rem 1fr; border-bottom: 1px solid var(--line); padding-block: 10px; }
  .credits td { border: 0; padding: 0; }
  .credits td:first-child { grid-row: span 3; width: auto; padding-top: 2px; }
  .credits td:nth-child(4) { font-size: 0.85rem; }
}

.cv-columns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 48px; }
@media (max-width: 820px) { .cv-columns { grid-template-columns: 1fr; } }

.levels, .certs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.levels li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.levels__level { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding-top: 3px; }
.levels__level[data-level="proficient"] { color: var(--accent); }
.certs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.certs__name { font-weight: 500; }
.certs__issuer { margin-left: 8px; color: var(--dim); }
.certs p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ── Print (the CV PDF is made from this) ───────────── */
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 14mm; }
  :root {
    --bg: #fff; --panel: #fff; --line: #d9d9d9; --line-strong: #bdbdbd;
    --text: #111; --muted: #555; --dim: #777; --accent: #111;
  }
  body { font-size: 9.5pt; line-height: 1.45; }
  .site-header, .site-footer, .skip, .button, .section__head a { display: none !important; }
  .print-only { display: block; }
  [data-reveal], .js [data-reveal]:not(.is-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
  a { text-decoration: none; }

  #main.wrap { max-width: none; padding-inline: 0; }
  .page-head { padding-block: 0 10pt; }
  .page-head h1 { font-size: 22pt; margin-top: 2pt; }
  .lede { font-size: 11pt; margin-top: 3pt; }
  .cv-contact { margin: 6pt 0 0; font-family: var(--mono); font-size: 8pt; color: var(--muted); }

  .section { margin-top: 14pt; }
  .section__head { margin-bottom: 4pt; padding-bottom: 3pt; break-after: avoid; }
  .credits td, .credits th { padding-top: 4pt; padding-bottom: 4pt; }
  .spec > div, .levels li, .certs li { padding-block: 4pt; }
  .credits tr, .spec > div, .levels li, .certs li { break-inside: avoid; }
  .cv-columns { grid-template-columns: 1fr 1.4fr; gap: 0 24pt; }
  .levels__level[data-level="proficient"] { font-weight: 500; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0s !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
