/* ==========================================================================
   Thomas Leweke - personal page
   Palette: Marseille. Deep sea, limestone, terracotta roofs, ochre light.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --sand: #faf6ee;         /* limestone white */
  --sand-2: #f2ebde;       /* warmer band */
  --line: #e1d7c5;
  --ink: #14252e;
  --ink-2: #4d5d66;
  --ink-3: #7b878d;
  --sea: #0e4a68;          /* Mediterranean blue */
  --sea-deep: #0a2c3e;     /* deep water */
  --sea-night: #071e2b;
  --azure: #2a84ab;
  --foam: #a6d4e2;
  --terracotta: #bd4f2a;   /* roof tiles */
  --terracotta-soft: #e58a63;
  --ochre: #d6a03a;        /* late light */

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 246, 238, .92); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand:hover { color: var(--sea); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--ink); }
.lang { background: none; border: 1px solid currentColor; border-radius: 3px; color: inherit; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; cursor: pointer; display: inline-flex; gap: 6px; }
.lang span { opacity: .5; font-weight: 500; }
.lang span.on { opacity: 1; font-weight: 700; }
.lang span + span::before { content: "/"; opacity: .45; margin-right: 6px; }
.lang:hover { opacity: 1; border-color: var(--terracotta); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* header over the dark hero (home, gallery) */
.on-dark .site-header { background: rgba(10, 44, 62, .0); border-bottom-color: transparent; backdrop-filter: none; }
.on-dark .site-header .brand, .on-dark .site-header .nav a, .on-dark .site-header .nav-toggle, .on-dark .site-header .lang { color: #fff; }
.on-dark .site-header.scrolled { background: rgba(10, 44, 62, .94); border-bottom-color: rgba(255,255,255,.1); backdrop-filter: blur(10px); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .lang { align-self: flex-start; margin-top: 12px; }
  .nav a::after { display: none; }
  .on-dark .site-header .nav { background: var(--sea-deep); border-bottom-color: rgba(255,255,255,.12); }
  .on-dark .site-header .nav a { border-bottom-color: rgba(255,255,255,.12); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; background: var(--sea-deep); color: #fff; overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.hero::before { /* depth: lighter water towards the top right */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, rgba(42, 132, 171, .38) 0%, rgba(10, 44, 62, 0) 60%);
  pointer-events: none;
}
.hero-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(170px, 21vw, 290px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 6vw, 90px); align-items: end; padding-top: clamp(44px, 6.5vw, 92px); padding-bottom: clamp(190px, 21vw, 290px); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--terracotta); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.hero .eyebrow { color: var(--ochre); }
.hero h1 { font-size: clamp(2.64rem, 7.3vw, 5.6rem); font-weight: 650; letter-spacing: -0.035em; line-height: .95; margin: 0 0 26px; }
.hero h1 span { display: block; }
.hero .role { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; color: var(--foam); margin: 0 0 34px; letter-spacing: -0.01em; }
.hero .lede { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: rgba(255,255,255,.82); max-width: 34em; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 3px;
  font-weight: 600; font-size: .96rem; text-decoration: none; border: 1.5px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--terracotta); color: #fff; }
.btn-solid:hover { background: #a84422; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--sand); }
.portrait { position: relative; justify-self: end; width: min(100%, 380px); margin: 0; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--ochre); border-radius: 2px; }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .portrait { justify-self: start; width: min(74%, 320px); order: -1; margin-bottom: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section.alt { background: var(--sand-2); }
.section-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(30px, 4.5vw, 56px); align-items: end; }
.section-head h2 { font-size: clamp(1.55rem, 4.2vw + 0.6rem, 3.2rem); white-space: nowrap; }
.section-head > p { color: var(--ink-2); font-size: 1.08rem; margin: 0; max-width: 36em; justify-self: end; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.split h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.split > div:first-child { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.prose p { font-size: 1.1rem; line-height: 1.7; max-width: 38em; }
.prose p:first-child, .prose p:nth-child(2) { font-size: 1.28rem; line-height: 1.55; color: var(--ink); font-weight: 450; }  /* the opening paragraph, English and French */
@media (max-width: 860px) {
  .section-head, .split { grid-template-columns: 1fr; gap: 16px; }
  .section-head h2 { white-space: normal; }
  .section-head > p { justify-self: start; }
  .split > div:first-child { position: static; }
}

/* facts list (about) */
.facts { margin-top: 34px; border-top: 1px solid var(--line); max-width: 42em; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts dt { color: var(--ink-3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* research themes */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); counter-reset: theme; }
.theme { border-top: 1px solid var(--ink); padding: 26px 0 40px; position: relative; counter-increment: theme; }
.theme::before { content: "0" counter(theme); font-family: var(--display); font-size: .86rem; font-weight: 600; color: var(--terracotta); letter-spacing: .06em; display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.theme h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.theme p { color: var(--ink-2); margin-bottom: 14px; }
.theme .refs { font-size: .9rem; color: var(--ink-3); }
.theme .refs a { color: var(--ink-2); }
.theme .refs a:hover { color: var(--terracotta); }
.theme.wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .themes { grid-template-columns: 1fr; } }

/* publication lists */
.pubs { border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pub-n { color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; padding-top: 5px; font-weight: 500; }
.pub-title { font-weight: 600; font-size: 1.05rem; line-height: 1.38; margin: 0 0 4px; color: var(--ink); }
.pub-authors { margin: 0 0 3px; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-ref { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.pub-ref strong { font-weight: 600; color: var(--ink); }
.pub-links { display: inline-flex; gap: 8px; margin-left: 6px; vertical-align: baseline; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 2px 7px 1px; border: 1px solid currentColor; border-radius: 2px; text-decoration: none; color: var(--sea); line-height: 1.5;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.tag:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.tag.note { color: var(--terracotta); }
.more { margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--terracotta); padding-bottom: 2px; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { color: var(--terracotta); }
.link-arrow:hover svg { transform: translateX(4px); }

/* gallery teaser (dark band) */
.band-dark { background: var(--sea-night); color: #fff; }
.band-dark .section-head > p { color: rgba(255,255,255,.7); }
.band-dark .eyebrow { color: var(--ochre); }
.band-dark .link-arrow { color: #fff; border-bottom-color: var(--ochre); }
.band-dark .link-arrow:hover { color: var(--ochre); }
.pair { display: flex; gap: 16px; align-items: stretch; }
.pair a { --ratio: 1.5; flex: var(--ratio) 1 0; aspect-ratio: var(--ratio); position: relative; display: block; overflow: hidden; background: #000; border-radius: 2px; text-decoration: none; color: #fff; min-width: 0; }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pair a:hover img { transform: scale(1.035); }
.pair .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); font-size: .9rem; font-weight: 500; }
@media (max-width: 760px) { .pair { flex-direction: column; } .pair a { flex: none; } }

/* two column lists (projects / collaborations) */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.cols h3 { font-size: 1.35rem; margin-bottom: 18px; }
.rows { border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 6.6em 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows .when { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .93rem; padding-top: 1px; }
.rows .what strong { font-weight: 600; }
.rows .what > span { display: block; color: var(--ink-2); font-size: .94rem; }
.rows.plain li { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
.plain li .sub { color: var(--ink-2); font-size: .94rem; display: block; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.contact h3 { font-family: var(--body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.contact p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.contact .big { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 550; letter-spacing: -0.01em; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--sea-deep); color: rgba(255,255,255,.72); padding: 44px 0 36px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: baseline; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ochre); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer p { margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 7vw, 92px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.page-head p:not(.eyebrow) { font-size: 1.14rem; color: var(--ink-2); max-width: 42em; margin: 0; }
.page-head .cta { margin-top: 26px; }
.on-dark .page-head { background: var(--sea-night); color: #fff; border-bottom-color: rgba(255,255,255,.1); margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px)); }
.on-dark .page-head p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.on-dark .page-head .eyebrow { color: var(--ochre); }

/* ---------- Publications page ---------- */
.page-head p.profiles { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-weight: 600; font-size: 1.02rem; }
.profiles a { text-decoration: none; border-bottom: 1.5px solid var(--terracotta); padding-bottom: 1px; color: var(--ink); }
.profiles a:hover { color: var(--terracotta); }
.tag.pdf { color: var(--terracotta); }
.pub-tools { position: sticky; top: var(--header-h); z-index: 20; background: rgba(250, 246, 238, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pub-tools .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tabs a { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .92rem; padding: 7px 12px; border-radius: 3px; white-space: nowrap; }
.tabs a small { color: var(--ink-3); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tabs a:hover { background: var(--sand-2); color: var(--ink); }
.tabs a.active { background: var(--sea); color: #fff; }
.tabs a.active small { color: rgba(255,255,255,.7); }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; font: inherit; font-size: .95rem; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); }
.search input:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: var(--sea); }
.search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.pub-section { padding: clamp(40px, 6vw, 72px) 0 0; }
.pub-section:last-of-type { padding-bottom: clamp(56px, 8vw, 100px); }
.pub-section > .wrap > h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 6px; }
.pub-section .sub { color: var(--ink-2); margin: 0 0 26px; max-width: 46em; }
.year-group { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0 clamp(12px, 3vw, 40px); border-top: 1px solid var(--ink); }
.year-group + .year-group { margin-top: 0; }
.year-group > h3 { font-size: 1.5rem; color: var(--sea); padding-top: 16px; position: sticky; top: calc(var(--header-h) + 74px); align-self: start; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.year-group .pubs { border-top: 0; }
.year-group .pub:last-child { border-bottom: 0; }
.year-group .pub { grid-template-columns: minmax(0, 1fr); }
.year-group .pub-n { display: none; }
.empty { display: none; padding: 30px 0; color: var(--ink-2); }
.patent { border-top: 1px solid var(--ink); padding: 22px 0 30px; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0 clamp(12px, 3vw, 40px); }
.patent h3 { font-size: 1.5rem; color: var(--sea); font-variant-numeric: tabular-nums; }
.patent h4 { font-family: var(--body); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: 6px; }
.patent p { margin: 0 0 6px; color: var(--ink-2); font-size: .97rem; }
.patent .nums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 640px) {
  .year-group, .patent { grid-template-columns: 1fr; }
  .year-group > h3 { position: static; padding-bottom: 2px; }
  .pub-tools { position: static; }
}
.is-hidden { display: none !important; }

/* ---------- Open positions page ---------- */
.page-head p.apply-note { margin-top: 18px; font-size: 1rem; color: var(--ink-2); max-width: 46em; }
.pos-section { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); }
.pos-group { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 clamp(12px, 3vw, 40px); border-top: 1px solid var(--ink); }
.pos-group > h3 { font-size: 1.35rem; color: var(--sea); padding-top: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.positions { list-style: none; margin: 0; padding: 0; }
.pos { padding: 20px 0 26px; border-bottom: 1px solid var(--line); }
.pos:last-child { border-bottom: 0; }
.pos-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink); }
.pos-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 12px; }
.pos-facts div { display: flex; gap: 8px; align-items: baseline; }
.pos-facts dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); }
.pos-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .98rem; }
.pos-text { color: var(--ink-2); margin: 0 0 10px; max-width: 46em; line-height: 1.6; }
.pos-rel { color: var(--ink-3); font-size: .9rem; margin: 0 0 14px; }
.pos-rel b { color: var(--ink-2); font-weight: 600; }
.pos-rel a { color: var(--ink-2); }
.pos-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-small { display: inline-block; padding: 8px 14px; font-size: .9rem; line-height: 1.4; text-align: left; }
.btn-small span { font-weight: 500; opacity: .75; }
.pos-none { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; padding: 24px 0; border-top: 1px solid var(--ink); }
.contact-more { margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 640px) {
  .pos-group { grid-template-columns: 1fr; }
  .pos-group > h3 { padding-bottom: 2px; }
}

/* ---------- Gallery page ---------- */
body.gallery-page { background: var(--sea-night); color: #fff; }
.gallery-page .site-footer { background: #05151f; }
.gallery { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 110px); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px); }
.shot { grid-column: span 6; margin: 0; }
.shot.full { grid-column: 1 / -1; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; background: #071e2b; border-radius: 2px; overflow: hidden; position: relative; }
.shot button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }
.shot img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.shot button:hover img { transform: scale(1.025); }
.shot figcaption { padding-top: 16px; display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 4px 14px; }
.shot.full figcaption { max-width: 60em; }
.shot .yr { font-family: var(--display); color: var(--ochre); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; }
.shot h2 { font-size: 1.28rem; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; }
.shot .desc { color: rgba(255,255,255,.76); font-size: .97rem; line-height: 1.6; margin: 0 0 10px; }
.shot .meta { color: rgba(255,255,255,.55); font-size: .86rem; line-height: 1.55; margin: 0; }
.shot .meta a { color: var(--foam); }
.shot .meta a:hover { color: var(--ochre); }
.shot .meta b { color: rgba(255,255,255,.8); font-weight: 600; }
.shot .body { grid-column: 2; }
@media (max-width: 860px) { .shot { grid-column: 1 / -1; } }
@media (max-width: 520px) { .shot figcaption { grid-template-columns: 1fr; } .shot .body { grid-column: 1; } }

.gtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.gtabs a { text-decoration: none; color: rgba(255,255,255,.75); font-weight: 600; padding: 8px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.gtabs a:hover { color: #fff; border-color: #fff; }
.gtabs a[aria-current="page"] { background: var(--sand); color: var(--sea-night); border-color: var(--sand); }
.on-dark .page-head p.notice { margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.6); max-width: 60em; }
.page-head p.notice a { color: var(--foam); }
.on-dark .page-head p.intro { margin-top: 22px; }
.shot.video .vstack { display: grid; gap: 10px; }
.shot.video video { display: block; width: 100%; height: auto; background: #000; border-radius: 2px; }
.shot .yr { line-height: 1.3; }
.covers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); align-items: start; }
.shot.cover { grid-column: auto; }
.shot.cover button { background: none; }
.shot.cover img { border-radius: 2px; }
.shot.cover figcaption { display: block; padding-top: 12px; }
.shot.cover figcaption p { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; color: rgba(255,255,255,.85); }
.shot.cover .tag { color: var(--foam); }
@media (max-width: 960px) { .covers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .covers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 12, 18, .96); display: none; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox.open { display: grid; }
.lightbox .stage { display: flex; align-items: center; justify-content: center; padding: 56px clamp(12px, 5vw, 72px) 12px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .cap { padding: 10px clamp(16px, 5vw, 72px) 26px; color: rgba(255,255,255,.82); font-size: .95rem; max-width: 70em; margin: 0 auto; text-align: center; }
.lightbox .cap strong { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-right: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox .close { top: 12px; right: 14px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- CV page ---------- */
.cv { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 110px); }
.cv-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(16px, 4vw, 64px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--ink); }
.cv-block:first-child { border-top: 0; padding-top: 0; }
.cv-block > h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cv-block .rows { border-top: 0; }
.cv-block .rows li:first-child { padding-top: 2px; }
.cv-block .rows li:last-child { border-bottom: 0; }
.cv-block .rows li { grid-template-columns: 7.6em 1fr; }
.cv-block .rows .what em { color: var(--ink-2); font-size: .94rem; display: block; font-style: normal; }
.cv-block p { max-width: 44em; }
.cv-id { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 26px; align-items: center; }
.cv-id img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.cv-id h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cv-id p { margin: 0; color: var(--ink-2); }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dl { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); background: #fff; border-radius: 3px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.dl:hover { border-color: var(--terracotta); color: var(--ink); transform: translateY(-1px); }
.dl svg { width: 22px; height: 22px; color: var(--terracotta); flex: none; }
.dl b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.25; }
.dl small { color: var(--ink-3); font-size: .82rem; }
button.dl { font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 760px) {
  .cv-block { grid-template-columns: 1fr; gap: 12px; }
  .cv-id { grid-template-columns: 88px 1fr; gap: 16px; } .cv-id img { width: 88px; height: 88px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Print (CV) ---------- */
@media print {
  .site-header, .site-footer, .downloads, .pub-tools, .skip, .page-head .cta { display: none !important; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .page-head { padding: 0 0 10pt; }
  .page-head h1 { font-size: 26pt; }
  .cv { padding: 10pt 0 0; }
  .cv-block { padding: 10pt 0; grid-template-columns: 26% 1fr; gap: 14pt; break-inside: avoid-page; }
  .cv-block > h2 { font-size: 12pt; }
  .rows li { padding: 4pt 0; }
  a { color: inherit; text-decoration: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Language ---------- */
html[data-lang="en"] [lang="fr"], html[data-lang="fr"] [lang="en"] { display: none !important; }
