/* Pierre Thalamy - personal site
   Plain CSS, no build step. Tokens on :root, dark theme via data-theme or system preference. */

:root {
  --bg: #fbfaf8;
  --bg-elev: #ffffff;
  --bg-muted: #f2f0ec;
  --border: #e6e2db;
  --border-strong: #d4cfc6;
  --text: #1b1a17;
  --text-2: #55524b;
  --text-3: #86827a;
  --accent: #0e6f8a;
  --accent-strong: #0a5a70;
  --accent-soft: #e2f1f5;
  --accent-text: #0a5a70;
  --shadow: 0 1px 2px rgba(20, 18, 14, .05), 0 8px 24px -12px rgba(20, 18, 14, .18);
  --shadow-lift: 0 2px 4px rgba(20, 18, 14, .06), 0 18px 40px -16px rgba(20, 18, 14, .25);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 46rem;
  --wide: 66rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214;
    --bg-elev: #171a1d;
    --bg-muted: #1d2126;
    --border: #262b31;
    --border-strong: #343b43;
    --text: #ecebe7;
    --text-2: #b3b1aa;
    --text-3: #7f7d77;
    --accent: #5cc3dc;
    --accent-strong: #86d4e6;
    --accent-soft: #14303a;
    --accent-text: #86d4e6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #101214;
  --bg-elev: #171a1d;
  --bg-muted: #1d2126;
  --border: #262b31;
  --border-strong: #343b43;
  --text: #ecebe7;
  --text-2: #b3b1aa;
  --text-3: #7f7d77;
  --accent: #5cc3dc;
  --accent-strong: #86d4e6;
  --accent-soft: #14303a;
  --accent-text: #86d4e6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.25em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: #fff; padding: .5rem .9rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; color: var(--text); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 1.75rem; height: 1.75rem; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--text-2); padding: .45rem .7rem; border-radius: 999px; font-size: .95rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .sep { width: 1px; height: 1.25rem; background: var(--border-strong); margin: 0 .35rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--text-2); transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .sun, .theme-toggle .moon { transition: opacity .25s var(--ease), transform .35s var(--ease); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.lang-switch {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .6rem !important;
  border: 1px solid var(--border); color: var(--text-2) !important;
}
.lang-switch:hover { border-color: var(--border-strong); }

@media (max-width: 560px) {
  .nav a:not(.lang-switch) { padding: .4rem .5rem; font-size: .9rem; }
  .brand .name { display: none; }
}

/* ---------- Sections ---------- */
main { padding-block: 3rem 5rem; }
.section { padding-block: 3.25rem; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: 1.5rem; }
.section-head .more { font-size: .95rem; white-space: nowrap; }
.eyebrow {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: .6rem;
}
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 38rem; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.fine { font-size: .85rem; color: var(--text-3); }

/* ---------- Hero ---------- */
.hero { padding-block: 2rem 3rem; }
.hero-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 2.25rem; align-items: center;
}
.avatar {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-lift);
  outline: 4px solid var(--bg); outline-offset: -1px;
  border: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.03em; margin-bottom: .35rem; }
.hero .role { font-size: 1.2rem; color: var(--text-2); margin-bottom: 1rem; }
.hero .role strong { color: var(--text); font-weight: 600; }
.hero .bio { max-width: 40rem; }
.hero .bio p { color: var(--text-2); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.socials a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-2); background: var(--bg-elev);
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.socials a:hover { text-decoration: none; color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.socials svg { width: 1.05rem; height: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.chip {
  font-size: .82rem; font-weight: 500; padding: .28rem .7rem; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-2); border: 1px solid var(--border);
}
.chip.is-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .avatar { width: 128px; height: 128px; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--border-strong), var(--border) 80%, transparent);
}
.tl-item { position: relative; padding-left: 2.25rem; padding-bottom: 2.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--border-strong);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.tl-item.is-current::before { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .35rem; }
.tl-head h3 { font-size: 1.1rem; }
.tl-org { color: var(--text-2); }
.tl-org a { color: inherit; }
.tl-when { font-size: .85rem; color: var(--text-3); font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.tl-item p { color: var(--text-2); margin-bottom: .5rem; }
.tl-item ul { color: var(--text-2); padding-left: 1.1em; }
.tl-item li { margin-bottom: .25rem; }
.tl-item li::marker { color: var(--text-3); }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.tag {
  font-size: .75rem; font-family: var(--mono); padding: .15rem .5rem; border-radius: 6px;
  background: var(--bg-muted); color: var(--text-2); border: 1px solid var(--border);
}
@media (max-width: 560px) { .tl-when { margin-left: 0; width: 100%; } }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.card h3 { font-size: 1.08rem; }
.card h3 a { color: var(--text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--text-2); font-size: .97rem; }
.card .card-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-3); }
.card .card-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: .25rem;
}
.card .card-icon svg { width: 1.25rem; height: 1.25rem; }
.card .tag-row { margin-top: auto; padding-top: .4rem; }
.card .card-link { position: relative; z-index: 1; font-size: .9rem; }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pub {
  display: grid; grid-template-columns: 1fr; gap: .35rem;
  padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pub:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.pub-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.pub-title a { color: var(--text); }
.pub-authors { color: var(--text-2); font-size: .95rem; }
.pub-authors .me { font-weight: 600; color: var(--text); }
.pub-venue { color: var(--text-3); font-size: .88rem; }
.pub-venue .kind {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); margin-right: .5rem; vertical-align: middle;
}
.pub-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.btn-sm, .btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-2);
  border-radius: 999px; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-sm { font-size: .82rem; padding: .3rem .7rem; }
.btn { font-size: .95rem; padding: .6rem 1.1rem; }
.btn-sm:hover, .btn:hover { background: var(--bg-muted); color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.btn.is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.is-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
:root[data-theme="dark"] .btn.is-primary, :root[data-theme="dark"] .btn.is-primary:hover { color: #0b1a1f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.is-primary, :root:not([data-theme="light"]) .btn.is-primary:hover { color: #0b1a1f; }
}
.btn-sm svg, .btn svg { width: .95em; height: .95em; }

/* Full publications page */
.pub-full { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem; }
.pub-full .thumb {
  border-radius: 6px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pub-full:hover .thumb { transform: translateY(-3px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.pub-full .pub-title { font-size: 1.15rem; }
.pub-full details { margin-top: .5rem; }
.pub-full summary {
  cursor: pointer; color: var(--accent-text); font-size: .9rem; font-weight: 500; list-style: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.pub-full summary::-webkit-details-marker { display: none; }
.pub-full summary::before { content: "+"; font-family: var(--mono); width: 1em; display: inline-block; }
.pub-full details[open] summary::before { content: "\2212"; }
.pub-full details > *:not(summary) { margin-top: .6rem; color: var(--text-2); font-size: .95rem; }
.pub-full pre {
  margin: .6rem 0 0; padding: .9rem 1rem; border-radius: var(--radius-sm); overflow: auto;
  background: var(--bg-muted); border: 1px solid var(--border); font-family: var(--mono); font-size: .8rem; line-height: 1.5; color: var(--text);
}
@media (max-width: 600px) {
  .pub-full { grid-template-columns: 1fr; }
  .pub-full .thumb { width: 120px; }
}
.year-head { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 2rem 0 .75rem; }
.year-head:first-child { margin-top: 0; }

/* Jury */
.jury { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; }
.jury li { font-size: .92rem; color: var(--text-2); line-height: 1.4; }
.jury li strong { color: var(--text); font-weight: 600; }
.jury li .role { display: block; font-size: .8rem; color: var(--text-3); }
@media (max-width: 560px) { .jury { grid-template-columns: 1fr; } }

/* ---------- Media ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-muted); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat; display: grid; place-items: center;
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.video-facade:hover img { opacity: 1; transform: scale(1.02); }
.video-facade .play {
  position: relative; width: 4.25rem; height: 4.25rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #111; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.video-facade:hover .play { transform: scale(1.06); }
.video-facade .play svg { width: 1.6rem; height: 1.6rem; margin-left: .2rem; }
.chapters { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .4rem; }
.chapters a {
  display: flex; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); font-size: .9rem;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chapters a:hover { text-decoration: none; color: var(--text); border-color: var(--border-strong); background: var(--bg-muted); }
.chapters time { font-family: var(--mono); font-size: .8rem; color: var(--text-3); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 1.5rem 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.03em; margin-bottom: .6rem; }

/* ---------- CV ---------- */
.cv { --gap: 2.5rem; }
.cv-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2.5rem; }
.cv-top h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); letter-spacing: -.03em; }
.cv-top .role { color: var(--text-2); font-size: 1.1rem; margin-top: .2rem; }
.cv-contact { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .92rem; color: var(--text-2); }
.cv-contact li { display: inline-flex; align-items: center; gap: .4rem; }
.cv-contact svg { width: .95rem; height: .95rem; color: var(--text-3); }
.cv-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cv h2 {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.cv section + section h2 { margin-top: var(--gap); }
.cv-entry { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.25rem; padding: .9rem 0; }
.cv-entry + .cv-entry { border-top: 1px dashed var(--border); }
.cv-when { color: var(--text-3); font-size: .88rem; font-variant-numeric: tabular-nums; line-height: 1.5; padding-top: .15rem; }
.cv-when small { display: block; color: var(--text-3); }
.cv-entry h3 { font-size: 1.02rem; font-weight: 600; }
.cv-entry .org { color: var(--text-2); font-size: .95rem; margin-bottom: .35rem; }
.cv-entry .org a { color: inherit; }
.cv-entry p, .cv-entry li { color: var(--text-2); font-size: .95rem; }
.cv-entry ul { padding-left: 1.1em; margin-top: .3rem; }
.cv-entry li { margin-bottom: .2rem; }
.cv-entry li::marker { color: var(--text-3); }
.cv-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.cv-skill-group { padding: .5rem 0; }
.cv-skill-group h3 { font-size: .9rem; color: var(--text-2); font-weight: 600; margin-bottom: .4rem; }
.cv-pubs { padding-left: 1.1em; }
.cv-pubs li { color: var(--text-2); font-size: .92rem; margin-bottom: .5rem; }
.cv-pubs li em { color: var(--text-3); }
.cv-note { font-size: .85rem; color: var(--text-3); margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 600px) {
  .cv-entry { grid-template-columns: 1fr; gap: .25rem; }
  .cv-cols { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; color: var(--text-3); font-size: .88rem; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.site-footer a { color: var(--text-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .pub:hover, .socials a:hover, .pub-full:hover .thumb { transform: none; }
}

/* ---------- Print (CV page) ---------- */
@media print {
  :root { --bg: #fff; --bg-elev: #fff; --bg-muted: #f3f3f3; --text: #111; --text-2: #333; --text-3: #666; --border: #ddd; --accent-text: #0a5a70; color-scheme: light; }
  @page { margin: 14mm 16mm; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; }
  .site-header, .site-footer, .cv-actions, .cv-note, .skip-link { display: none !important; }
  main { padding: 0; }
  .wrap { width: 100%; }
  .cv { --gap: 1.3rem; }
  .cv-top { margin-bottom: 1.2rem; }
  .cv section + section h2 { margin-top: 1.3rem; }
  .cv-entry { padding: .45rem 0; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .cv-contact a::after { content: ""; }
}
