@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #edf0f2; --card: #fff; --ink: #1c2329; --muted: #4e5964; --line: #d9dee3;
  --aside: 24rem;
  --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 72rem; --gutter: max(1.5rem, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html, .site-header nav { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: .75rem; z-index: 3; background: var(--card); padding: .5rem 1rem; border-radius: 999px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 2; background: rgb(237 240 242 / .92); backdrop-filter: blur(8px); }
.site-header .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: 4rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { font-weight: 600; text-decoration: none; margin-right: auto; white-space: nowrap; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
.lang { font: 500 .8125rem var(--mono); color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; }
.lang:hover { color: var(--ink); border-color: var(--muted); }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 5rem; }
main > section + section { margin-top: 5.5rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; margin: 0 0 1.75rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding-top: 3rem; }
h1 { font-size: clamp(3rem, 7vw, 5.25rem); font-weight: 650; letter-spacing: -.035em; line-height: .95; margin: 0 0 1.5rem; }
.lede { font-size: 1.375rem; line-height: 1.45; max-width: 38ch; margin: 0 0 1rem; }
.hero-sub { color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.pill { display: inline-block; padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.portrait { position: relative; margin: 0; max-width: 22rem; justify-self: end; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #e9ebed; }
.portrait figcaption { position: absolute; left: 1rem; bottom: 1rem; background: var(--card); border-radius: 999px; padding: .35rem .9rem; font-size: .875rem; }

/* Work cards */
/* Horizontal strips (Work cards, photo series): swipe, trackpad, or the buttons added by the script */
.strip { display: grid; grid-auto-flow: column; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .75rem; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
.strip-nav { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.strip-nav[hidden] { display: none; }
.strip-nav button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.strip-nav button:hover { border-color: var(--ink); }
.strip-nav button:disabled { opacity: .35; cursor: default; }
.cards { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid transparent; border-radius: 14px; overflow: hidden; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.1rem 1.35rem 1.35rem; }
.card-title { display: grid; gap: .1rem; }
.card h3 { font-size: 1.1875rem; margin: 0; }
.year { font: .875rem var(--mono); color: var(--muted); white-space: nowrap; }
.card p { color: var(--muted); font-size: .9688rem; line-height: 1.5; margin: .35rem 0 .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips > * { background: var(--bg); color: var(--muted); border-radius: 999px; padding: .2rem .7rem; font-size: .8125rem; }

/* Career path */
.path { background: var(--card); border-radius: 18px; padding: 2.25rem 2.5rem; }
.path h2 { margin-bottom: 1.25rem; }
.path-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.path h3 { font-size: 1rem; font-weight: 600; color: var(--muted); margin: 0 0 .75rem; }
.path ul { list-style: none; margin: 0; padding: 0; }
.path a { display: grid; grid-template-columns: 5.25rem 1fr; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.path a:hover span { text-decoration: underline; }
.path time { font: .875rem/1.75 var(--mono); color: var(--muted); }
.path .now span { font-weight: 600; }
.path .now time::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: var(--ink); vertical-align: .1em; }

/* Detail entries: organisation logo and date in a left column, like the career path */
main > section > article { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1.5rem; align-items: start; padding: 2.25rem 0; }
main > section > article + article { border-top: 1px solid var(--line); }
.meta { display: grid; gap: .6rem; justify-items: start; }
.org-logo { max-width: 100%; height: auto; }
.date { margin: 0; font: .875rem/1.8 var(--mono); color: var(--muted); text-wrap: balance; }
.entry-head { display: grid; gap: .15rem; margin-bottom: 1rem; }
.entry-head h3 { font-size: 1.375rem; margin: 0; }
.entry-head .org { margin: 0; color: var(--muted); }
article p, article li { max-width: 70ch; }
article ul { padding-left: 1.2rem; }
article h4 { font-size: 1.125rem; margin: 2rem 0 .75rem; }
figure { margin: 1.5rem 0; }

/* Galleries: clicking a thumbnail opens the full-size image */
.gallery-strip { grid-auto-columns: 17rem; margin-top: 1.5rem; }
.gallery-strip figure { margin: 0; }
.gallery-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-strip img.cad { object-fit: contain; background: var(--card); }
.season-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: 2.5rem; align-items: start; }
.feature { margin: 0; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.video-pair figure { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); column-gap: 2.5rem; align-items: start; }
.split > header { grid-column: 1 / -1; }
.split > figure { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
.split > figure img { border-radius: 10px; }

video { width: 100%; border-radius: 12px; background: #000; }

/* Accordions */
details { background: var(--card); border-radius: 12px; margin: .5rem 0; }
summary { position: relative; padding: 1rem 3rem 1rem 1.25rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 1.35rem; top: 1.3rem; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details[open] > summary::after { top: 1.55rem; transform: rotate(-135deg); }
summary > h4 { display: inline; font-size: 1.0625rem; margin: 0; }
summary > span { display: block; color: var(--muted); font-size: .9688rem; margin-top: .2rem; }
summary > .chips { margin-top: .6rem; }
details > :not(summary) { margin: 0 1.25rem 1.25rem; }

/* Results tables */
.table-wrap { overflow-x: auto; }
.table-wrap + .table-wrap { margin-top: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; max-width: 52rem; margin: 0 auto; font-size: .9375rem; }
caption { text-align: left; font-weight: 600; font-size: 1rem; padding: .5rem 0 .6rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { text-align: center; font: .875rem var(--mono); }
tbody th { text-align: left; font-weight: 500; }
tbody tr:nth-child(even) { background: var(--bg); }
thead th { font-size: .8125rem; font-weight: 600; text-align: center; }
thead th[scope="colgroup"] { border-bottom: 2px solid var(--ink); }
thead th[rowspan] { text-align: left; vertical-align: bottom; }
td:nth-of-type(2), td:nth-of-type(7), thead tr:last-child th:nth-of-type(1), thead tr:last-child th:nth-of-type(6) { border-left: 1px solid var(--line); }
td.podium { font-weight: 700; }
abbr { text-decoration: none; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; max-width: 52rem; margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.legend-title { font-weight: 600; margin: 0 0 .4rem; }
.legend dl { display: grid; grid-template-columns: 3.5rem 1fr; gap: .2rem .75rem; margin: 0; }
.legend dt { font: 600 .875rem/1.6 var(--mono); }
.legend dd { margin: 0; color: var(--muted); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 3rem; }
.skills-grid h3 { font-size: 1rem; font-weight: 600; color: var(--muted); margin: 1rem 0 .6rem; }
.skills-grid .chips li { background: var(--card); color: var(--ink); font-size: .9375rem; padding: .35rem .85rem; }

/* Contact */
#contact ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 2; }
#contact li a { white-space: nowrap; }

footer { max-width: var(--wrap); margin: 0 auto; padding: 2rem var(--gutter) 3rem; color: var(--muted); font-size: .875rem; }

/* Photo viewer: a clicked photo opens large; arrows move through its gallery */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; touch-action: none; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgb(0 0 0 / .88); }
.viewer img { max-width: 92vw; max-height: 86dvh; width: auto; height: auto; border-radius: 8px; }
.viewer button { position: fixed; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.viewer-prev { left: 1rem; top: calc(50% - 1.375rem); }
.viewer-next { right: 1rem; top: calc(50% - 1.375rem); }
.viewer-close { right: 1rem; top: 1rem; }
.viewer.single .viewer-prev, .viewer.single .viewer-next { display: none; }
body:has(.viewer[open]) { overflow: hidden; }

@media (max-width: 64rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet width: the French links are longer, so the one-row header needs a little less space. */
@media (48rem < width <= 56rem) {
  .site-header .inner { gap: 1rem; }
  .site-header nav { gap: 1rem; font-size: .9375rem; }
}

@media (max-width: 48rem) {
  html { scroll-padding-top: 6.5rem; }
  .site-header .inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .6rem; }
  /* One row of links that scrolls sideways, edge to edge; the fade on the right shows there is more. */
  .site-header nav { order: 3; position: relative; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: 0 2.5rem 0 var(--gutter); gap: 1.25rem; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex: none; padding-block: .55rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .portrait { order: -1; max-width: 14rem; justify-self: start; }
  .portrait figcaption { left: .6rem; bottom: .6rem; padding: .3rem .7rem; font-size: .75rem; white-space: nowrap; }
  .lede { font-size: 1.1875rem; }
  .path-cols, .skills-grid, .video-pair, .legend { grid-template-columns: 1fr; }
  .legend { margin-inline: 1.25rem; }
  .cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; }
  .gallery-strip { grid-auto-columns: 75%; }
  .split { display: block; }
  .season-body { grid-template-columns: 1fr; gap: 1rem; }
  .path { padding: 1.5rem; }
  main > section > article { display: block; }
  .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem; }
  main > section + section { margin-top: 4rem; }
}

/* 404 page */
.not-found { padding-top: 6rem; }
