/* UE-hydro website. Palette from the UE-hydro logo (teal river, navy aqueduct, blue water); type: Barlow (self-hosted).
   Light and dark follow the visitor's system unless they pick one (the theme button, remembered per browser). */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #efece5; --fg: #17252e; --muted: #56646c; --faint: #8a969c;
  --line: rgba(23, 37, 46, 0.12); --line-strong: rgba(23, 37, 46, 0.24);
  --teal: #2a9db0; --teal-ink: #1d7b8b; --blue: #1d5a8c; --accent: #e4572e;
  --shadow: 0 1px 2px rgba(23, 37, 46, 0.06), 0 8px 24px rgba(23, 37, 46, 0.06);
  --r: 10px; --wrap: 1160px; --head: 76px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e171d; --surface: #15222a; --surface-2: #1b2a33; --fg: #eee9e0; --muted: #a7b2b8; --faint: #77848b;
    --line: rgba(238, 233, 224, 0.12); --line-strong: rgba(238, 233, 224, 0.24); --teal-ink: #5cc3d3; --blue: #4e8fc4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e171d; --surface: #15222a; --surface-2: #1b2a33; --fg: #eee9e0; --muted: #a7b2b8; --faint: #77848b;
  --line: rgba(238, 233, 224, 0.12); --line-strong: rgba(238, 233, 224, 0.24); --teal-ink: #5cc3d3; --blue: #4e8fc4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; height: var(--head); background: color-mix(in srgb, var(--bg) 88%, transparent);
             backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
@media (max-width: 620px) { .brand img { height: 36px; } }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
         padding: 10px 11px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); background: var(--surface-2); }
.icon-btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px;
            background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav { position: absolute; top: var(--head); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px 20px 16px;
         background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; font-size: 16px; }
}

/* hero */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
.kicker { font: 600 13px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-ink); margin: 0 0 12px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); text-transform: uppercase; letter-spacing: 0.005em; }
.hero h1 span { color: var(--teal-ink); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; text-decoration: none;
       font: 600 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--fg); color: var(--fg); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 8px; }
.now h2 { font-size: 15px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.now ul { list-style: none; margin: 0; padding: 0; }
.now li { border-top: 1px solid var(--line); }
.now li:first-child { border-top: 0; }
.now a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 13px 0; text-decoration: none; color: var(--fg); }
.now a:hover .t { color: var(--teal-ink); }
.now .tag { grid-row: 1 / 3; align-self: start; font: 600 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; color: #fff;
            background: var(--teal); border-radius: 999px; padding: 5px 8px; margin-top: 2px; }
.now .tag.new { background: var(--accent); }
.now .t { font-weight: 600; line-height: 1.3; }
.now .d { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 40px; } }

/* sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--surface-2); }
.sec-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.pillar h3 { font-size: 20px; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
        overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.card:has(a.stretch:hover) { transform: translateY(-2px); border-color: var(--teal); }
.card .media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.logo { display: block; padding: 14px 18px; background: #fff; }
.card .media.logo img { width: 100%; height: 100%; object-fit: contain; }      /* the whole logo, never cropped */
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card .meta { font-size: 13.5px; color: var(--faint); margin-top: auto; padding-top: 6px; }
.card .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 8px; position: relative; z-index: 2; }
.card .links a { font: 600 13.5px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.card .links a::after { content: " →"; }
a.stretch { color: inherit; text-decoration: none; }
a.stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font: 600 11.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em;
         color: #fff; background: var(--accent); padding: 6px 9px; border-radius: 999px; }
.model-art { display: grid; place-items: center; }
.model-art svg { width: 64%; height: auto; }

.linkrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
        color: var(--fg); font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; background: var(--surface); }
.chip:hover { border-color: var(--teal); color: var(--teal-ink); }
.chip svg { width: 16px; height: 16px; fill: currentColor; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); max-width: 190px; margin: 0 auto 12px; }
.person h3 { font-size: 20px; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* join */
.join { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r); padding: 28px 30px; box-shadow: var(--shadow); }
.join img { width: 120px; height: 120px; image-rendering: pixelated; background: #fff; border-radius: 8px; padding: 6px; }
@media (max-width: 620px) { .join { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font: 600 20px/1.3 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 26px/1 var(--font); color: var(--teal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.contact .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact dt { font: 600 13px/1.6 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact dd { margin: 0; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot img { height: 26px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--fg); }

/* inner pages (papers, privacy, legal notice) */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 900px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; margin-bottom: 8px; }
.page .sub { font-size: 20px; color: var(--muted); margin: 0 0 6px; }
.page .journal { font: 600 14px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-ink); }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.back { display: inline-block; margin-bottom: 24px; font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; }
.tool-link { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line);
             border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); margin-top: 12px; }
.tool-link img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.tool-link b { display: block; font: 600 20px/1.2 var(--font-head); text-transform: uppercase; }
.tool-link span { color: var(--muted); font-size: 15px; }
.tool-link:hover { border-color: var(--teal); }

/* apps still under development: amber badge and a lock line */
.badge.dev { background: #f2b134; color: #2b1d00; left: auto; right: 12px; }
.now .tag.dev { background: #f2b134; color: #2b1d00; }
.card .status { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; font: 600 13px/1.2 var(--font-head);
                text-transform: uppercase; letter-spacing: 0.08em; color: #b7791f; }
.card .status svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
:root[data-theme="dark"] .card .status { color: #f2b134; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .status { color: #f2b134; } }
.card .media.mark { display: grid; place-items: center; background: #17252e; }
.card .media.mark img { width: 46%; height: auto; }

/* affiliations: official white/light logos on the navy band, in both themes */
.affil { background: #17252e; color: #eee9e0; padding: 26px 0; }
.affil .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; }
.affil-h { font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; color: #a7b2b8; margin-right: 8px; }
.affil a { display: block; opacity: 0.92; }
.affil a:hover { opacity: 1; }
.affil img { width: auto; display: block; }

/* hero without a side panel: the text takes the width */
.hero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.hero.solo .lede { max-width: 68ch; }

/* news: LinkedIn posts (loaded after consent) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.posts iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
/* with consent: one sideways strip, newest first, ending in a "more on LinkedIn" card */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.strip-nav { display: flex; gap: 8px; margin-bottom: 32px; }
.strip-nav button:disabled { opacity: 0.35; cursor: default; }
.posts.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
               padding: 2px 2px 12px; scrollbar-width: thin; }
.posts.strip > * { flex: 0 0 clamp(280px, 30%, 380px); scroll-snap-align: start; }
.posts.strip .more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; min-height: 560px;
                     padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--r); text-decoration: none; color: var(--fg); }
.posts.strip .more span { color: var(--muted); font-size: 15px; }
.posts.strip .more b { font: 600 22px/1.15 var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-ink); }
.posts.strip .more:hover { border-color: var(--teal); }
/* no posts yet: the News block is just one softly pulsing button */
section.block.news.compact { padding: 22px 0; }
.news.compact .news-head, .news.compact .posts-foot { display: none; }
.news.compact .posts { display: flex; justify-content: center; }
.news-pill { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px; border-radius: 999px; text-decoration: none;
             color: var(--fg); background: var(--surface); border: 1px solid var(--teal); max-width: 100%;
             animation: news-glow 2.8s ease-in-out infinite; transition: background 0.2s ease, color 0.2s ease; }
.news-pill b { font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-ink); }
.news-pill span:not(.dot) { font-size: 15px; color: var(--muted); }
.news-pill svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-pill .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: news-dot 1.6s ease-in-out infinite; }
.news-pill:hover { background: var(--teal); }
.news-pill:hover b, .news-pill:hover span:not(.dot) { color: #fff; }
.news-pill:hover svg { stroke: #fff; }
.news-pill:hover .dot { background: #fff; }
@keyframes news-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 157, 176, 0.38); } 50% { box-shadow: 0 0 0 9px rgba(42, 157, 176, 0); } }
@keyframes news-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .news-pill, .news-pill .dot { animation: none; } }
@media (max-width: 620px) { .news-pill { border-radius: 18px; padding: 12px 16px; } .news-pill span:not(.dot) { font-size: 14px; } }
@media (max-width: 620px) { .posts.strip > * { flex-basis: 86%; } .strip-nav { display: none; } }
.posts .ask { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 26px 28px;
              display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.posts .ask p { margin: 0; color: var(--muted); flex: 1 1 320px; }
.posts-foot { margin: 18px 0 0; }
.posts-foot a { font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }

/* consent bar */
.consent { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap;
           align-items: center; gap: 12px 20px; background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong);
           border-radius: var(--r); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); padding: 16px 18px; }
.consent p { margin: 0; flex: 1 1 360px; font-size: 15.5px; }
.consent-btns { display: flex; gap: 8px; }

/* home hero = the stage of the soil cross-section from "The soil in between", dark in both themes like the talk's
   cover. Wide screens: the animation fills the hero and the soil begins right of the text. Narrow screens: the text,
   then a band of soil as the ground under it. soil-profile.js sizes the canvas to whichever box it gets. */
.hero.stage { --fg: #eee9e0; --bg: #0f1719; --muted: #b3bfbb; --teal-ink: #5cc3d3; color: var(--fg); color-scheme: dark;
              background: radial-gradient(120% 90% at 85% 10%, #18282c 0%, #0f1719 55%, #0c1113 100%);
              display: flex; flex-direction: column; justify-content: center; padding: 38px 0 40px;
              min-height: 480px; min-height: clamp(440px, calc(100svh - var(--head) - 220px), 600px); }
.hero.stage .wrap { display: block; position: relative; z-index: 2; }
.hero-copy { max-width: 540px; }
.soil-anim { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.soil-anim canvas { display: block; width: 100%; height: 100%; }
.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; max-width: 480px;
              margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(238, 233, 224, 0.16); }
.hero-logos a { display: block; opacity: 0.88; }
.hero-logos a:hover { opacity: 1; }
.hero-logos img { display: block; width: auto; }
.soil-key { position: absolute; z-index: 2; top: 14px; right: 24px; margin: 0; display: flex; align-items: baseline; gap: 4px 18px;
            font-size: 13.5px; line-height: 1.35; color: #b3bfbb; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.soil-key b { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #eee9e0; margin-right: 5px; }
.soil-key .dots { white-space: nowrap; font-size: 12.5px; }
.soil-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 9px; }
.soil-key i.nh4 { background: #dba54f; margin-left: 0; }
.soil-key i.no3 { background: #7cc9d2; }
@media (max-width: 900px) {
  .hero.stage { min-height: 0; justify-content: flex-start; padding: 36px 0 0; }
  .hero-copy { max-width: none; }
  .soil-anim { position: relative; inset: auto; order: 2; margin-top: 30px;
               height: clamp(240px, 66vw, 430px); height: clamp(220px, min(72vw, 76svh), 440px); }
  .soil-key { position: static; order: 3; justify-content: space-between; flex-wrap: wrap; padding: 10px 20px 16px; }
}
@media (max-width: 620px) {
  .hero-logos { flex-wrap: nowrap; justify-content: space-between; gap: 12px; max-width: none; }
  .hero-logos img[src*="uevora"] { height: 26px; }
  .hero-logos img[src*="med"] { height: 19px; }
  .hero-logos img[src*="create"] { height: 22px; }
  #soil-phase { display: block; width: 100%; min-height: 2.7em; }
}

/* model cards: a picture from the talk's animations with the model's logo in the corner; the whole card opens the
   model's page (the title link is stretched over the card; the Code/Paper links sit above it) */
.card.model { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.card.model:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow); }
.card.model:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.card.model .media.mlogo-panel { display: grid; place-items: center; background: #fbfaf7; border-bottom: 1px solid var(--line); }
.card .media.mlogo-panel img { width: auto; height: 64%; max-height: 170px; object-fit: contain; transition: transform 0.2s ease; }
.card.model:hover .media.mlogo-panel img { transform: scale(1.04); }
.card .media img.mlogo { position: absolute; top: 10px; left: 10px; width: 52px; height: 52px; padding: 5px; object-fit: contain;
                         background: #fbfaf7; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.card h3 a.stretch { color: inherit; text-decoration: none; }
.card h3 a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card.model h3 a.stretch:focus-visible { outline: none; }
.card.model h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card.model h3::after { content: "→"; color: var(--teal-ink); font-size: 0.9em; transition: transform 0.15s ease; }
.card.model:hover h3::after { transform: translateX(3px); }

/* model pages: dark header (as the home hero) with the model's animation from the talk, then the details */
.model-hero { --fg: #eee9e0; --bg: #0f1719; --muted: #b3bfbb; --teal-ink: #5cc3d3; color: var(--fg); color-scheme: dark;
              background: radial-gradient(120% 90% at 85% 10%, #18282c 0%, #0f1719 55%, #0c1113 100%); padding: 36px 0 44px; }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.model-hero .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font: 600 13px/1 var(--font-head);
                    text-transform: uppercase; letter-spacing: 0.1em; }
.model-hero .back:hover { color: var(--teal-ink); }
.mh-title { display: flex; align-items: center; gap: 18px; }
.mh-logo { width: 76px; height: 76px; padding: 8px; background: #fbfaf7; border-radius: 16px; flex: none; }
.mh-title .kicker { margin-bottom: 4px; }
.mh-title h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 0; letter-spacing: 0.01em; }
.model-hero .lede { margin-top: 16px; }
.mh-anim { margin: 0; }
.anim-stage { position: relative; aspect-ratio: var(--ar, 1.1); overflow: hidden; width: 100%; max-width: 470px; margin-left: auto;
              /* no box: the animation's edges fade into the header, which has the same dark background */
              -webkit-mask-image: radial-gradient(ellipse 72% 70% at 52% 48%, #000 58%, transparent 100%);
              mask-image: radial-gradient(ellipse 72% 70% at 52% 48%, #000 58%, transparent 100%); }
.anim-stage canvas { position: absolute; right: 0; top: var(--ct, 0%); display: block; width: var(--cw, 100%); height: auto; }
.mh-anim figcaption { margin: 6px 0 0 auto; max-width: 470px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .mh-grid { grid-template-columns: 1fr; gap: 26px; }
  .anim-stage, .mh-anim figcaption { margin-left: auto; margin-right: auto; }
}
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .mb-grid { grid-template-columns: 1fr; } }
.mb-main h2 { font-size: 26px; margin: 34px 0 12px; }
.mb-main h2:first-child { margin-top: 0; }
.mb-sum { font-size: 18px; color: var(--fg); max-width: 70ch; }
.feat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.feat li { position: relative; padding-left: 20px; color: var(--muted); }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@media (max-width: 620px) { .feat { grid-template-columns: 1fr; } }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .figs { grid-template-columns: 1fr; } }
.fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fig img { display: block; width: 100%; height: auto; background: #fff; }
.fig figcaption { padding: 10px 14px 12px; font-size: 14px; color: var(--muted); }
.mpubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mpubs li { padding-left: 14px; border-left: 3px solid var(--line); }
.mpubs li.core { border-left-color: var(--teal); }
.ptag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
        font: 600 11px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; vertical-align: 1px; }
.mpubs li.core .ptag { background: var(--teal); color: #fff; }
.mpubs li { color: var(--muted); line-height: 1.5; }
.mpubs li.core { color: var(--fg); }
.mpubs a, .cite a { word-break: break-all; }
.note { color: var(--faint); font-size: 14px; margin-top: 12px; }
.mb-side { display: grid; gap: 16px; position: sticky; top: calc(var(--head) + 16px); }
@media (max-width: 980px) { .mb-side { position: static; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.side-box h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.res { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.res a { font-weight: 600; }
.res span { display: block; font-size: 13.5px; color: var(--faint); }
.cite { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.rel { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--fg); border-top: 1px solid var(--line); }
.rel:first-of-type { border-top: 0; }
.rel img { width: 40px; height: 40px; padding: 4px; background: #fbfaf7; border-radius: 9px; border: 1px solid var(--line); flex: none; }
.rel span { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.rel b { display: block; color: var(--fg); font-size: 15px; }
.rel:hover b { color: var(--teal-ink); }

/* tool cards: a picture of the topic, with the project's and model's logos in the top corner */
.card .media { position: relative; }
.card .media .corner { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 8px; align-items: flex-start; }
.card .media .corner img { display: block; width: auto; height: 50px; padding: 5px; object-fit: contain; background: #fbfaf7; border-radius: 10px;
                           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.card .media .corner img.wide { height: 58px; padding: 5px 8px; background: #fff; }
.card .media .corner img.navy { background: #17252e; }
.card .media .credit { position: absolute; right: 6px; bottom: 5px; z-index: 1; max-width: 90%; font-size: 10px; line-height: 1.2; color: rgba(255, 255, 255, 0.78);
                       text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); text-align: right; }

/* news: a softly pulsing box in the hero, linking to LinkedIn */
.hero.stage .news-pill { margin: 24px 0 0; background: rgba(15, 23, 25, 0.55); border-color: rgba(92, 195, 211, 0.85);
                        animation: news-blink 2s ease-in-out infinite; }
.hero.stage .news-pill .dot { background: #5cc3d3; animation-duration: 1s; }
@keyframes news-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 195, 211, 0.7); background-color: rgba(15, 23, 25, 0.55); border-color: rgba(92, 195, 211, 0.85); }
  50% { box-shadow: 0 0 0 12px rgba(92, 195, 211, 0); background-color: rgba(42, 157, 176, 0.26); border-color: #9fe3ec; }
}
@media (prefers-reduced-motion: reduce) { .hero.stage .news-pill, .hero.stage .news-pill .dot { animation: none; } }
/* a link that must catch the eye ("blink": true in tools/models.json), e.g. FLUXOS "Video Demonstration" */
.btn.blink { border-color: rgba(92, 195, 211, 0.85); animation: news-blink 2.4s ease-in-out infinite; }
.btn.blink:hover { animation: none; }
a.blink-text { font-weight: 600; animation: blink-text 1.6s ease-in-out infinite; }
@keyframes blink-text { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .btn.blink, a.blink-text { animation: none; } }
.hero.stage .news-pill span:not(.dot) { font-size: 14px; }

/* every model logo is drawn on the same navy tile: frames around it stay navy, except on the light panels and corners */
img[src^="/assets/img/models/"][src$="-icon.svg"] { background-color: #17252e !important; }
.card .media.mlogo-panel img[src$="-icon.svg"] { background-color: transparent !important; border-radius: 22px; }
.card .media .corner img[src^="/assets/img/models/"][src$="-icon.svg"] { background-color: #fbfaf7 !important; padding: 4px; }

/* News in the header: a softly blinking box first in the menu (and next to the menu button on small screens) */
.nav a.nav-news, .head-news { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--teal);
  border-radius: 999px; color: var(--teal-ink); text-decoration: none; animation: nav-news-blink 1.8s ease-in-out infinite; }
.nav a.nav-news .dot, .head-news .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: news-dot 1s ease-in-out infinite; }
.head-news { font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 auto; }
.head-news + .nav { margin-left: 0; }          /* News sits centred between the logo and the menu */
@keyframes nav-news-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 157, 176, 0.55); background-color: transparent; }
  50% { box-shadow: 0 0 0 7px rgba(42, 157, 176, 0); background-color: rgba(42, 157, 176, 0.18); } }
@media (max-width: 980px) {
  .head-news { margin: 0 0 0 auto; }
  .site-head .head-news ~ .menu-btn { margin-left: 10px; }
  .nav.open a.nav-news { align-self: flex-start; margin: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { .nav a.nav-news, .head-news, .nav a.nav-news .dot, .head-news .dot { animation: none; } }
/* Recent activity: 6 posts, then See all */
.news .posts-foot { text-align: center; margin-top: 26px; }
.news .posts .ask { justify-content: space-between; }
@media (max-width: 620px) {
  .site-head .wrap { gap: 10px; }
  .head-news { padding: 6px 10px; font-size: 12px; gap: 6px; }
  .site-head .head-news ~ .menu-btn { margin-left: 0; }
}
/* News section: a blinking "live" dot by the heading */
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; vertical-align: 1px; border-radius: 50%; background: var(--teal);
            animation: live-dot 1.4s ease-in-out infinite; }
@keyframes live-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(42, 157, 176, 0.6); } 50% { opacity: 0.35; box-shadow: 0 0 0 6px rgba(42, 157, 176, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* News: preview cards (no LinkedIn content loaded; each card opens the post on LinkedIn) */
.posts.cards { align-items: stretch; }
.li-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
           overflow: hidden; text-decoration: none; color: var(--fg); transition: transform 0.15s ease, border-color 0.15s ease; }
.li-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.li-pic { display: block; aspect-ratio: 16 / 9; background: #17252e; overflow: hidden; }
.li-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.li-blank { display: grid; place-items: center; width: 100%; height: 100%; background: #fbfaf7; }
.li-blank img { width: 34%; height: auto; object-fit: contain; }
.li-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.li-meta { display: flex; align-items: center; gap: 7px; font: 600 12.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.li-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.li-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.li-more { margin-top: auto; font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-ink); }
/* model pages: "How to use it" box under the buttons, softly pulsing */
.howto { margin-top: 24px; max-width: 560px; border: 1px solid rgba(92, 195, 211, 0.85); border-radius: 14px; padding: 14px 16px 12px;
         background: rgba(15, 23, 25, 0.55); animation: news-blink 2.4s ease-in-out infinite; }
.howto-h { display: flex; align-items: center; margin: 0; font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-ink); }
.howto-sub { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.howto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid rgba(238, 233, 224, 0.12); }
.howto li b { font: 600 17px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.howto li p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.vtag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #2a9db0; color: #fff; font: 600 11px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; vertical-align: 2px; }
.vtag.dev { background: #f2b134; color: #2b1d00; }
.vlinks { display: flex; gap: 8px; flex: none; }
.vlinks .btn { padding: 8px 12px; font-size: 13px; }
@media (max-width: 620px) { .howto li { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .howto { animation: none; } }
/* guides viewer (/guides/): guides read live from the model repositories */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 30px; }
.gm-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line);
           border-radius: 16px; color: var(--fg); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.gm-card:hover, .gd-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 14px 32px rgba(10, 20, 26, 0.14); }
.gm-logo { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; overflow: hidden; background: #17252e; }
.gm-logo img { width: 100%; height: 100%; object-fit: contain; }
.gm-logo.big { width: 104px; height: 104px; border-radius: 22px; }
.gm-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gm-name { font: 600 30px/1 var(--font-head); letter-spacing: 0.01em; }
.gm-ver { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.gm-ver .vtag, .gv-switch .vtag { margin-left: 0; }
.gm-note { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.gm-src { font-size: 12.5px; color: var(--faint); }
.gm-card .gd-go { margin-top: 6px; }
.gv-head { display: flex; gap: 28px; align-items: flex-start; }
.gv-head h1 { margin: 0 0 14px; text-transform: none; }
.gv-head .lede { margin: 0 0 6px; }
.gv-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.gv-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 14px/1 var(--font-head);
               text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); text-decoration: none; }
.gv-switch a:hover { color: var(--fg); }
.gv-switch a.on { background: var(--fg); color: var(--bg); }
.gv-count { margin: 0; font-size: 13.5px; color: var(--faint); }
.gv-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.gv-links .btn { padding: 9px 14px; font-size: 13px; }
.gd-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.gd-grid li { display: flex; }
.gd-card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
           color: var(--fg); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.gd-top { display: flex; align-items: center; justify-content: space-between; min-height: 104px; padding: 16px 20px;
          background: radial-gradient(circle at 82% 30%, rgba(92, 195, 211, 0.28), transparent 58%), linear-gradient(135deg, #17252e 0%, #1e3c49 100%); }
.gd-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gd-num { font: 700 46px/0.9 var(--font-head); letter-spacing: 0.02em; color: rgba(238, 233, 224, 0.28); }
.gd-start { padding: 3px 9px; border-radius: 999px; background: #f2b134; color: #2b1d00; font: 600 11px/1.4 var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; }
.gd-top svg { width: 50px; height: 50px; fill: none; stroke: #5cc3d3; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.gd-card:hover .gd-top svg { transform: scale(1.1) rotate(-4deg); }
.gd-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 16px; }
.gd-title { font: 600 22px/1.12 var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; }
.gd-desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chips i { font-style: normal; font-size: 12px; line-height: 1.3; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.gd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.gd-go { font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.09em; color: var(--teal-ink); }
.gd-sk { display: block; height: 11px; border-radius: 6px; background: var(--surface-2); animation: gd-pulse 1.2s ease-in-out infinite; }
.gd-sk.short { width: 60%; }
@keyframes gd-pulse { 50% { opacity: 0.4; } }
@media (max-width: 640px) {
  .gv-head { flex-direction: column; gap: 16px; }
  .gm-logo.big { width: 72px; height: 72px; border-radius: 16px; }
  .gv-switch { border-radius: 16px; }
  .gv-switch a { border-radius: 12px; }
  .gm-grid, .gd-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .gm-card, .gd-card, .gd-top svg, .gd-sk { transition: none; animation: none; } }
.g-wait, .g-note { color: var(--muted); }
.g-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
body.g-reading .site-foot { display: none; }
body.g-reading .page { padding: 0; }
body.g-reading #guides { width: 100%; max-width: none; }
.g-bar { display: flex; align-items: center; gap: 18px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.g-bar .g-title { flex: 1; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-pn { display: inline-flex; gap: 6px; flex: none; }
.g-pn a { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; text-decoration: none; cursor: pointer; }
.g-pn a:hover { border-color: var(--teal); }
.g-pn a[aria-disabled] { opacity: 0.35; pointer-events: none; }
@media (max-width: 640px) { .g-bar { gap: 10px; padding: 8px 12px; } .g-bar .gh, .g-pn .lbl { display: none; } }
.g-frame { display: block; width: 100%; height: calc(100vh - var(--head) - 46px); border: 0; background: #fff; }

/* project cards that open a paper: say so */
.card .paper-link { margin: 8px 0 0; font: 600 13px/1.35 var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-ink); }
