/* juanfraire.space
   Palette and type come from the intro slide (presentation-slide/intro-slide.md).
   The landing page has two layouts from one HTML:
   - default: the slide itself (four topic panels side by side, institution bars);
   - html.scene: a sticky three.js stage with the four topics as scroll stops.
   html.scene is set before first paint by an inline script, only when the device
   can run the scene and the visitor has not asked for reduced motion. */

@font-face { font-family: "Inria Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inria-sans-latin-400-normal.woff2) format("woff2");
  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: "Inria Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inria-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Inria Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inria-sans-latin-400-italic.woff2) format("woff2");
  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: "Inria Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inria-sans-latin-700-normal.woff2) format("woff2");
  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: "Inria Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inria-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }

:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-raised: #0c1324;
  --ink: #e9edf5;
  --ink-strong: #ffffff;
  --muted: #8d97ab;
  --bar: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --link: #a9cdf7;
  --inria: #e53516;
  --conicet: #0096d5;
  --saarland: #5b9bd5;
  /* one accent per topic, echoing what each scene draws */
  --t1: #e8a541;   /* deep-space links */
  --t2: #a9dc63;   /* sensors and passes */
  --t3: #82e0d4;   /* the laser mesh */
  --t4: #f2b84b;   /* heat and carbon */
  --accent: var(--link);
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1240px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inria Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(169, 205, 247, 0.4); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(24px, 2.4vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
strong { color: var(--ink-strong); font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 6px; }
.skip:focus { top: 12px; }
.kicker { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 5; padding: 22px 0 6px; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 4px; }
.brand { margin: 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: 0.2px; line-height: 1.2; }
.brand a { color: var(--ink-strong); text-decoration: none; }
.tagline { margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
/* the three institutions, in the same white as the footer row */
.head-logos { margin-left: auto; align-self: center; display: flex; align-items: center; gap: 26px; }
.head-logos img { width: auto; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.2s ease; }
.head-logos a:hover img { opacity: 1; }
.head-logos img[src$="inria.svg"] { height: 22px; }
.head-logos img[src$="conicet.svg"] { height: 28px; }
.head-logos img[src$="saarland.svg"] { height: 30px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink-strong); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

@media (max-width: 760px) {
  .head-logos { margin-left: 0; margin-top: 10px; gap: 22px; }
  .head-logos img[src$="inria.svg"] { height: 18px; }
  .head-logos img[src$="conicet.svg"] { height: 23px; }
  .head-logos img[src$="saarland.svg"] { height: 25px; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; padding-bottom: 2px; }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* ---------- landing: topics (default layout = the slide) ---------- */
.journey { position: relative; padding-top: 18px; }
.stage, .rail, .scroll-hint { display: none; }
.stops {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; row-gap: 32px;
}
.stop { --accent: var(--link); display: flex; }
.stop[data-stop="0"] { --accent: var(--t1); }
.stop[data-stop="1"] { --accent: var(--t2); }
.stop[data-stop="2"] { --accent: var(--t3); }
.stop[data-stop="3"] { --accent: var(--t4); }
.card { display: flex; flex-direction: column; width: 100%; }
.pin { display: contents; }
.card .num { margin: 0; font-size: 13px; letter-spacing: 1.5px; color: var(--muted); }
.card h2 { font-size: 21px; margin: 2px 0 10px; }
.card h2 a { color: var(--ink-strong); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.panel {
  position: relative; margin: 0 0 14px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 600 / 920; background: #000;
}
.panel picture, .panel img { width: 100%; height: 100%; object-fit: cover; }
.panel .tags {
  position: absolute; left: 10px; bottom: 10px; margin: 0;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(7, 11, 22, 0.66); border: 1px solid var(--line);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 13px; letter-spacing: 0.4px; color: #dfe5f0;
}
.panel .tags a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.35); }
.lede { font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.live { font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.live b { font-weight: 700; color: var(--ink-strong); }
.more { margin-top: auto; font-size: 15px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

@media (max-width: 1020px) {
  .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .stops { grid-template-columns: 1fr; row-gap: 36px; }
  .panel { aspect-ratio: 16 / 10; }
}

/* ---------- landing: scene layout ---------- */
html.scene { scroll-behavior: smooth; }
.scene .site-head {
  position: absolute; top: 0; left: 0; right: 0;
  padding-bottom: 40px;
  background: linear-gradient(rgba(7, 11, 22, 0.88), rgba(7, 11, 22, 0.55) 60%, rgba(7, 11, 22, 0));
}
/* The stage and the stops share one grid cell, so the sticky stage is released
   exactly where the last stop ends and never covers the sections below. */
.scene .journey { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.scene .stage {
  display: block; position: sticky; top: 0; z-index: 0;
  grid-area: 1 / 1; align-self: start;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #0d1630 0%, var(--bg) 60%);
}
.scene .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.scene-ready .stage canvas { opacity: 1; }
.scene .stage .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: 0.35; filter: blur(2px); transition: opacity 1.2s ease;
}
.scene-ready .stage .poster { opacity: 0; }
.scene .stops { display: block; grid-area: 1 / 1; position: relative; z-index: 1; max-width: none; width: 100%; padding: 0; pointer-events: none; }
.scene .stop { min-height: 100vh; min-height: 100svh; align-items: center; padding: 120px var(--gutter) 60px; max-width: var(--maxw); margin: 0 auto; }
.scene .card {
  pointer-events: auto; max-width: 410px; padding: 22px 24px 20px;
  background: rgba(7, 11, 22, 0.66); border: 1px solid var(--line-soft); border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0.35; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.scene .stop.is-active .card { opacity: 1; transform: none; }
.scene .card h2 { font-size: clamp(24px, 2.4vw, 30px); }
.scene .card .num { color: var(--accent); }
.scene .panel { aspect-ratio: auto; border: 0; border-radius: 0; background: none; overflow: visible; order: 5; margin: 4px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scene .panel picture { display: none; }
.scene .panel .tags { position: static; }
.scene .more { order: 6; }

/* The last stop runs longer than the screen: its card stays pinned while the camera pulls back. */
.scene .stop.tall { display: block; max-width: none; padding: 0; height: 210vh; height: 210svh; }
.scene .stop.tall .pin {
  position: sticky; top: 0; display: flex; align-items: center;
  height: 100vh; height: 100svh; max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gutter) 60px;
}

/* Callouts pinned to things in the scene, and a caption for the last view. */
.callouts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.callouts .leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke-width: 1; }
.leaders .dtn { stroke: var(--t1); fill: var(--t1); }
.leaders .iot { stroke: var(--t2); fill: var(--t2); }
.leaders .mega { stroke: var(--t3); fill: var(--t3); }
.leaders .odc { stroke: var(--t4); fill: var(--t4); }
.callout {
  position: absolute; left: 0; top: 0; width: max-content; max-width: 266px;
  padding: 8px 11px 9px; border-radius: 8px;
  background: rgba(7, 11, 22, 0.8); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; line-height: 1.38; color: var(--ink);
  will-change: transform, opacity;
}
.callout p { margin: 0; }
.callout .c-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink-strong); }
.callout .c-sub { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.callout b { color: var(--ink-strong); }
/* one colour per topic: the border, the icon and the live figures */
.callout.dtn { --c: var(--t1); border-color: rgba(232, 165, 65, 0.45); }
.callout.iot { --c: var(--t2); border-color: rgba(169, 220, 99, 0.45); }
.callout.mega { --c: var(--t3); border-color: rgba(130, 224, 212, 0.45); }
.callout.odc { --c: var(--t4); border-color: rgba(242, 184, 75, 0.45); }
.callout .c-next b { color: var(--c); }
.callout .ico { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.callout .ico circle { fill: var(--c); stroke: none; }
.batt { width: 22px; height: 12px; flex: none; }
.batt rect { fill: var(--t2); }
.batt rect:first-child { fill: none; stroke: var(--t2); stroke-width: 1.5; }
.stage-caption {
  position: absolute; left: 60%; bottom: 24px; transform: translateX(-50%); width: min(560px, 44vw); margin: 0;
  font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center;
}

.scene .rail {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 4;
  margin: 0; padding: 0; list-style: none;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.scene .journey.in-view .rail { opacity: 1; pointer-events: auto; }
.rail a {
  display: flex; align-items: baseline; gap: 10px; justify-content: flex-end;
  padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 15px;
  transition: color 0.3s ease;
}
.rail a span { font-size: 12px; letter-spacing: 1.4px; }
.rail a::after { content: ""; width: 18px; height: 2px; background: currentColor; opacity: 0.5; align-self: center; transition: width 0.3s ease, opacity 0.3s ease; }
.rail a:hover, .rail a[aria-current="step"] { color: var(--ink-strong); }
.rail a[aria-current="step"]::after { width: 34px; opacity: 1; background: var(--accent); }
.rail li:nth-child(1) a { --accent: var(--t1); }
.rail li:nth-child(2) a { --accent: var(--t2); }
.rail li:nth-child(3) a { --accent: var(--t3); }
.rail li:nth-child(4) a { --accent: var(--t4); }

.scene .scroll-hint {
  display: block; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
  transition: opacity 0.6s ease;
}
.scene .scroll-hint.is-gone { opacity: 0; }

@media (max-width: 760px) {
  .scene .site-head { padding-bottom: 24px; }
  .scene .rail {
    flex-direction: row; justify-content: space-between; gap: 6px;
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    padding: 10px var(--gutter) 12px;
    background: linear-gradient(rgba(7, 11, 22, 0), rgba(7, 11, 22, 0.9) 45%);
  }
  .rail a { flex-direction: column; align-items: center; gap: 2px; font-size: 12px; padding: 4px 0; text-align: center; }
  .rail a::after { display: none; }
  .rail a .long { display: none; }
  .rail a[aria-current="step"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .scene .scroll-hint { display: none; }
  .scene .stop { align-items: flex-end; padding: 0 var(--gutter) 70px; }
  .scene .card { max-width: none; padding: 14px 16px; }
  .scene .card h2 { font-size: 23px; margin-bottom: 6px; }
  .scene .card .lede { font-size: 15px; line-height: 1.5; margin-bottom: 6px; }
  .scene .card .live { font-size: 14px; margin-bottom: 6px; }
  .scene .panel { display: none; }   /* the project links repeat on the topic pages */
  .scene .stop.tall .pin { align-items: flex-end; padding: 0 var(--gutter) 70px; }
  .callout { max-width: 196px; font-size: 12px; padding: 6px 9px 7px; }
  .callout .c-sub { font-size: 11px; margin-bottom: 3px; }
  .stage-caption { display: none; }
}
@media (min-width: 761px) { .rail .short { display: none; } }

/* ---------- landing: about, news, press ---------- */
.section { padding-top: 64px; }
.hello { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.hello p { max-width: 68ch; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
/* Photos stacked in one cell; assets/js/photos.js fades the next one in over the last. */
.photos { position: relative; width: max-content; }
.photos ul { display: grid; margin: 0; padding: 0; list-style: none; }
.photos li { grid-area: 1 / 1; }
.photos.ready li { opacity: 0; transition: opacity 0.9s ease; }
.photos.ready li.on { opacity: 1; z-index: 1; }
.photos.ready li.was { opacity: 1; transition: none; }
.photos img { display: block; width: 240px; height: 300px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-soft); }
.photo-nav { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(7, 11, 22, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.photo-nav button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; }
.photo-nav button:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 620px) {
  .hello { grid-template-columns: 1fr; gap: 20px; }
  .photos img { width: 200px; height: 250px; }
}

/* News posts, as on LinkedIn: date, text, then images, video or a link card running edge to edge. */
.posts { list-style: none; margin: 0; padding: 0; }
/* The landing page's cards sit in one row that scrolls sideways; the next card peeks in at the edge. */
.posts.cards {
  --gap: 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.2);
  gap: var(--gap); align-items: start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.posts.cards > li { scroll-snap-align: start; }
@media (max-width: 1020px) { .posts.cards { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.2); } }
@media (max-width: 680px) { .posts.cards { grid-auto-columns: 86%; } }
.post-end { align-self: stretch; }
.post-end a { display: grid; place-content: center; gap: 4px; height: 100%; min-height: 220px; padding: 20px; text-align: center;
  border-radius: var(--radius); border: 1px dashed var(--line); font-size: 18px; text-decoration: none; }
.post-end a:hover { background: var(--bar); }
.post-end small { font-size: 14px; color: var(--muted); }
.row-nav { display: flex; gap: 8px; margin-left: auto; align-self: center; }
.row-nav button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bar); color: var(--ink-strong); cursor: pointer; }
.row-nav button:hover { border-color: var(--link); }
.row-nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; border-color: var(--line); }
.row-nav[hidden] { display: none; }
@media (hover: none) { .row-nav { display: none; } }   /* touch screens swipe */
.posts.feed { display: grid; gap: 22px; max-width: 680px; }
.post { --pad: 18px; --pad-y: 14px; padding: var(--pad-y) var(--pad); border-radius: var(--radius); background: var(--bar); border: 1px solid var(--line-soft); overflow: hidden; }
.posts.feed .post { --pad: 22px; --pad-y: 18px; }
.post-date { margin: 0 0 6px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.post-date a { color: inherit; text-decoration: none; }
.post-date a:hover { color: var(--ink-strong); }
.post-text { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.post-text p { margin: 0 0 0.75em; }
.post-text p:last-child { margin-bottom: 0; }
.post-text .hashtag { color: var(--muted); }
.post-text.clamped { max-height: calc(1.55em * 7); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.post-toggle { margin: 2px 0 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--link); cursor: pointer; }
.post-media, .post-preview, .post-video { margin: 12px calc(-1 * var(--pad)) 0; }
.post > :is(.post-media, .post-preview, .post-video):last-child { margin-bottom: calc(-1 * var(--pad-y)); border-bottom: 0; }
.post-media { display: grid; gap: 3px; }
.post-media a { position: relative; display: block; background: #000; }
.post-media picture { display: contents; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media.n1 img { height: auto; max-height: var(--one-max, 640px); object-position: 50% 20%; }
.posts.cards .post-media.n1 { --one-max: 380px; }
.post-media.n2, .post-media.n3, .post-media.many { grid-template-columns: 1fr 1fr; }
.post-media.n4 { grid-template-columns: repeat(3, 1fr); }
.post-media:is(.n2, .n3, .n4, .many) a { aspect-ratio: 1; }
.post-media:is(.n3, .n4, .many) a:first-child,
.post-media.many a:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.post-media .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 11, 22, 0.6); color: var(--ink-strong); font-size: 24px; font-weight: 700; }
.post-video { display: block; width: calc(100% + 2 * var(--pad)); max-height: 520px; background: #000; }
.post-preview { display: block; background: var(--bg-raised); color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.post-preview img { width: 100%; height: auto; aspect-ratio: 1200 / 628; object-fit: cover; }
.post-preview span { display: block; padding: 10px var(--pad); }
.post-preview b { display: block; font-size: 15px; line-height: 1.35; color: var(--ink-strong); }
.post-preview small { font-size: 13px; color: var(--muted); }
.post-preview:hover b { text-decoration: underline; }
.post-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font-size: 14px; }

.press-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 22px 24px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(91, 155, 213, 0.1), rgba(255, 255, 255, 0.03)); }
.press-strip h2 { font-size: 22px; margin: 0 0 4px; }
.press-strip p { margin: 0; color: var(--muted); max-width: 60ch; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07); color: var(--ink-strong); text-decoration: none; font-size: 15px;
}
.button:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- footer ---------- */
.site-foot { margin-top: 80px; padding: 28px 0 40px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.site-foot p { margin: 0 0 6px; }
.inst-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; margin-bottom: 26px; }
.inst-logos img { width: auto; filter: brightness(0) invert(1); opacity: 0.78; transition: opacity 0.2s ease; }
.inst-logos a:hover img { opacity: 1; }
.inst-logos img[src$="inria.svg"] { height: 28px; }
.inst-logos img[src$="conicet.svg"] { height: 36px; }
.inst-logos img[src$="saarland.svg"] { height: 38px; }
.site-foot a { color: var(--muted); }
.site-foot .communities { margin: -10px 0 22px; color: var(--ink); }
.site-foot .communities a { color: var(--ink); }

/* ---------- topic pages ---------- */
.topic-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); min-height: min(76vh, 640px); display: flex; align-items: center; }
.topic-hero > .wrap { width: 100%; }
.topic-hero picture, .topic-hero > img { position: absolute; inset: 0; }
.topic-hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.topic-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 22, 0.94) 0%, rgba(7, 11, 22, 0.75) 42%, rgba(7, 11, 22, 0.05) 75%); }
.topic-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.topic-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 14px; }
.topic-hero .num { color: var(--accent); font-size: 14px; letter-spacing: 1.6px; margin: 0 0 6px; }
.topic-hero .lead { max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); }
@media (max-width: 760px) {
  .topic-hero::after { background: linear-gradient(180deg, rgba(7, 11, 22, 0.55) 0%, rgba(7, 11, 22, 0.92) 55%); }
  .topic-hero .wrap { padding-top: 140px; padding-bottom: 40px; }
}
.prose { max-width: 70ch; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .cols3 { grid-template-columns: 1fr; } }
.box.lined { box-shadow: inset 0 2px 0 var(--accent); }
.box h3 .num { margin-right: 8px; font-size: 14px; letter-spacing: 1.6px; color: var(--accent); }
.cols3 .cite, .results .cite { white-space: normal; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.results li { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bar); box-shadow: inset 0 2px 0 var(--accent); }
.results strong { display: block; margin-bottom: 4px; }
.results.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .results.two { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .results { grid-template-columns: 1fr; } }
.live-line { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bar); border-radius: 0 10px 10px 0; max-width: 70ch; }
.live-line b { color: var(--ink-strong); }
@media (max-width: 620px) { .cite { white-space: normal; } }
.box { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bar); }
.box h3 { margin-bottom: 10px; }
.box ul { margin: 0; padding-left: 1.1em; }
.box li { margin-bottom: 8px; }
.cite { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cite a { color: var(--muted); }

.tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-list li { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bar); }
.tool-list h3 { font-size: 18px; margin-bottom: 6px; }
.tool-list p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .tool-list { grid-template-columns: 1fr; } }

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; }
.partners img { height: 30px; width: auto; opacity: 0.85; }
.partners .label { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }

/* ---------- publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub { position: relative; padding: 12px 0 12px 0; border-bottom: 1px solid var(--line-soft); }
.pub-title { display: block; color: var(--ink-strong); font-weight: 700; }
.pub-title a { color: var(--ink-strong); text-decoration-color: rgba(255, 255, 255, 0.25); }
.pub-authors { display: block; font-size: 15px; color: var(--muted); }
.pub-authors strong { color: var(--ink); }
.pub-venue { display: block; font-size: 15px; color: var(--ink); font-style: italic; }

/* ---------- node sizer (orbital computing) ---------- */
.sizer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-raised); }
@media (max-width: 860px) { .sizer { grid-template-columns: 1fr; padding: 18px; } }
.sizer svg { width: 100%; height: auto; }
.sizer fieldset, .sizer .field { border: 0; margin: 0 0 18px; padding: 0; }
.sizer .field-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 4px; }
.sizer .field-row output { color: var(--ink-strong); font-weight: 700; }
.sizer input[type="range"] { width: 100%; accent-color: var(--t4); }
.readout { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.readout li { padding: 10px 12px; border-radius: 10px; background: var(--bar); border: 1px solid var(--line-soft); }
.readout .k { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.readout .v { display: block; font-size: 22px; font-weight: 700; color: var(--ink-strong); line-height: 1.25; }
.readout .v small { font-size: 14px; font-weight: 400; color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f2b84b, #ff8a72); border-radius: inherit; transition: width 0.35s ease; }
.note { font-size: 14px; color: var(--muted); }

.sizer-figure { margin: 0; }
.sizer .svg-label { fill: var(--ink); font: 700 14px "Inria Sans", sans-serif; }
.sizer .svg-label.dim { fill: var(--muted); font-weight: 400; }
.sizer .chip { fill: #2a3346; stroke: #8d97ab; stroke-width: 1; }
.sizer .chip.on { fill: #ffc070; stroke: #ffe1b0; }
.heat-glow { animation: heat 3.2s ease-in-out infinite alternate; }
@keyframes heat { from { opacity: 0.35; } to { opacity: 0.7; } }
.launcher { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.launcher legend { float: left; margin: 0 8px 0 0; }
.sizer label.radio { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 15px; }
.sizer input[type="radio"] { accent-color: var(--t4); }
.readout li.wide { grid-column: 1 / -1; }
.meter { position: relative; height: 12px; overflow: visible; }
.meter i { border-radius: 999px; }
.meter .mark { position: absolute; top: -4px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink); opacity: 0.8; }
.meter-labels { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.meter-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.verdict { margin: 14px 0 0; font-size: 16px; min-height: 3em; }
.numbers { margin-top: 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bar); }
.numbers summary { cursor: pointer; color: var(--ink-strong); font-weight: 700; }
.numbers .note { margin-top: 12px; }
.table-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow-x: auto; }
@media (max-width: 620px) { .table-pair { grid-template-columns: 1fr; } }
.table-pair table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.table-pair caption { text-align: left; font-weight: 700; color: var(--ink-strong); padding-bottom: 6px; }
.table-pair th, .table-pair td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.table-pair thead th { color: var(--muted); font-weight: 400; }
.table-pair tbody th { color: var(--muted); font-weight: 400; }
.people { margin: 0 0 22px; padding-left: 1.1em; max-width: 75ch; }
.people li { margin-bottom: 6px; }

/* ---------- inner pages: shared ---------- */
.page-head { padding-top: 48px; }
.page-head .kicker { color: var(--accent); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 14px; }
.page-head .lead { max-width: 62ch; font-size: clamp(17px, 1.5vw, 19px); }
.head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.t1 { --accent: var(--t1); } .t2 { --accent: var(--t2); } .t3 { --accent: var(--t3); } .t4 { --accent: var(--t4); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.group-head h2 { margin: 0; }
.group-head .num { margin: 0; font-size: 14px; letter-spacing: 1.6px; color: var(--accent); }
.group-head a { font-size: 15px; }
.tool-list .meta { margin: 0 0 6px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.tool-list .duty { display: inline-block; margin-top: 10px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bar); font-size: 13px; color: var(--ink); }
.group .tool-list li { box-shadow: inset 0 2px 0 var(--accent); }
.compact { list-style: none; margin: 0; padding: 0; columns: 2 360px; column-gap: 36px; }
.compact li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.compact strong { color: var(--ink-strong); }
.cv-list { list-style: none; margin: 0; padding: 0; max-width: 80ch; }
.cv-list li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cv-list .when { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.cv-list p { margin: 0; }
.cv-list .sub { font-size: 15px; color: var(--muted); }
@media (max-width: 620px) { .cv-list li { grid-template-columns: 1fr; gap: 0; } }
.hello h1 { font-size: clamp(30px, 3.6vw, 42px); }

/* ---------- publications: filters ---------- */
.pub-filters { margin: 4px 0 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bar); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.32); }
.chip[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); color: var(--ink-strong); }
.chip[data-topic]:not([data-topic=""])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip .n { font-size: 13px; color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.filter-row label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.filter-row select, .filter-row input {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}
.filter-row input { width: min(300px, 62vw); }
.filter-row .count { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
@media (max-width: 620px) { .filter-row .count { margin-left: 0; } }
.pub-year { margin: 34px 0 2px; font-size: 22px; color: var(--muted); }
.all-pubs .pub { padding-left: 16px; }
.all-pubs .pub::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px; border-radius: 2px; background: var(--line); }
.all-pubs .pub[data-topics~="orbital"]::before { background: var(--t4); }
.all-pubs .pub[data-topics~="mega"]::before { background: var(--t3); }
.all-pubs .pub[data-topics~="iot"]::before { background: var(--t2); }
.all-pubs .pub[data-topics~="dtn"]::before { background: var(--t1); }

/* ---------- press ---------- */
.lang-switch { display: flex; gap: 6px; margin: 4px 0 0; font-size: 14px; }
.lang-switch a { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink-strong); }
.lang-switch a[aria-current="true"] { color: var(--ink-strong); border-color: var(--line); background: var(--bar); }
.press-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.press-grid figure { margin: 0; }
.press-grid figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; max-width: 640px; }
.facts .k { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) {
  .press-grid { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr; }
}
.bio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.bio-head h3 { margin: 0 0 10px; }
.copy { font: inherit; font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.08); }
.box p:last-child { margin-bottom: 0; }
.box ul + h3 { margin-top: 20px; }

/* ---------- 404 ---------- */
.lost { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 60px 0; }
.lost img { width: 220px; height: 220px; border-radius: 50%; }
@media (max-width: 620px) { .lost { grid-template-columns: 1fr; } .lost img { width: 160px; height: 160px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
