/* ---------- fonts: self-hosted copies (SIL Open Font License), no requests to Google ---------- */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin.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: 'Jost'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/jost-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/jost-latin.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: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin.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: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin.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; }

/* Palette from the COMEDI logo: ocean blue ring, dark navy lettering and the
   four objective colours. Display face Jost is close to the logo lettering. */
:root {
  --bg: #edf2f5;
  --surface: #ffffff;
  --hero: #f8fbfc;
  --ink: #14222c;
  --muted: #566874;
  --line: #d6e0e6;
  --deep: #175f83;
  --deep-ink: #ffffff;
  --logo-ink: #0d3044;
  --link: #175f83;
  --o1: #9adcf8;
  --o2: #e79fdc;
  --o3: #90d977;
  --o4: #f1aa85;
  --o-ink: #10181d;
  --oc: transparent;
  --navy: #0d3044;
  --seabed: #0b2738;
  --nav-h: 60px;
  --display: "Century Gothic", "Jost", "Futura", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c161d;
    --surface: #12212b;
    --hero: #0f1c25;
    --ink: #dce7ed;
    --muted: #94a7b3;
    --line: #23363f;
    --deep: #1d6a91;
    --logo-ink: #e3edf2;
    --link: #74bde2;
    --navy: #0a2232;
    --seabed: #173b52;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c161d;
  --surface: #12212b;
  --hero: #0f1c25;
  --ink: #dce7ed;
  --muted: #94a7b3;
  --line: #23363f;
  --deep: #1d6a91;
  --logo-ink: #e3edf2;
  --link: #74bde2;
  --navy: #0a2232;
  --seabed: #173b52;
}

* { box-sizing: border-box; }
html { font-size: 118.75%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], #contact, .detail { scroll-margin-top: calc(var(--nav-h) + 30px); }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.15; margin: 0; }
h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.1em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Icons (class "ms", inline SVG): Material Symbols by Google, Apache License 2.0, https://fonts.google.com/icons */
.ms { width: 1.35em; height: 1.35em; fill: currentColor; flex: 0 0 auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding-inline: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: 8px 56px;
  text-align: center;
}
.back { font-size: 0.9rem; }
.logo { display: block; width: min(520px, 100%); height: auto; margin: 42px auto 0; overflow: visible; }
.logo .t { fill: var(--logo-ink); }
.logo-wheel { transform-box: fill-box; transform-origin: center; transition: transform 0.2s ease; }
.logo-wheel:hover, .logo-wheel:focus-visible { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .logo-wheel { transition: none; } }
.expansion {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin-top: 10px;
  margin-inline: auto;
  max-width: 42ch;
  color: var(--muted);
}
.expansion b { color: var(--ink); font-weight: 700; }
.lede { margin-top: 18px; margin-inline: auto; max-width: 64ch; font-size: 1.08rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.facts div { background: var(--surface); padding: 12px 14px; text-align: center; }
.facts dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- at a glance (above the waterline) ---------- */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.gl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.gl-obj { list-style: none; padding: 0; display: grid; gap: 6px; }
.gl-obj a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; line-height: 1.25; border-radius: 8px; padding: 2px 4px 2px 0; }
.gl-obj a:hover { color: var(--link); }
.gl-obj .num { width: 1.6rem; height: 1.6rem; font-size: 0.85rem; }
.gl-big { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gl-big small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.gl-time { height: 8px; border-radius: 999px; overflow: hidden; position: relative;
  background: linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--surface) 0 25%, transparent 0 calc(50% - 1px), var(--surface) 0 50%, transparent 0 calc(75% - 1px), var(--surface) 0 75%, transparent 0), var(--line); }
.gl-time span { position: absolute; inset: 0 auto 0 0; width: var(--p, 2%); background: var(--deep); border-radius: 999px; }
.gl-years { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -6px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.gl-line { font-size: 0.93rem; color: var(--muted); line-height: 1.4; }
.gl-line:empty { display: none; }
.gl-line b { color: var(--ink); font-weight: 600; }
.gl-news-card { grid-column: 1 / -1; }
.timeline.gl-news { --pic: 220px; }
/* home cards: one size for labels, titles and text */
.timeline.gl-news time { font-size: 0.78rem; }
.timeline.gl-news h3 { font-size: 1rem; }
.timeline.gl-news p { font-size: 0.93rem; line-height: 1.4; }
.gl-more { margin-top: auto; font-weight: 600; font-size: 0.92rem; }
.gl-more::after { content: " \2192"; }
@media (max-width: 860px) { .glance { grid-template-columns: minmax(0, 1fr); } }


/* ---------- below the waterline ---------- */
.deep { flex: 1; padding-bottom: 56px; }
.deep section + section { margin-top: 28px; border-top: 1px solid color-mix(in srgb, var(--deep) 20%, transparent); }
.deep section > .section-head:first-child h2 { font-size: 2rem; }

/* ---------- sections ---------- */
main section { padding-block: 80px 0; }
.deep .section-head + .section-head, .deep .chain + .section-head, .deep .gantt + .section-head, .deep .jdts + .section-head, .deep .plogos + .section-head { margin-top: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head p.note { color: var(--muted); }
.section-head p.note strong { color: var(--ink); }
.section-head h3 { font-size: 1.35rem; }

/* ---------- objectives wheel ---------- */
.obj-stage {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.wheel-col { position: sticky; top: calc(var(--nav-h) + 30px); }
@media (max-width: 800px) {
  .obj-stage { grid-template-columns: minmax(0, 1fr); }
  .wheel-col { position: static; }
  .wheel { max-width: 380px; margin-inline: auto; }
}
.wheel { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--display); }
.wheel .mfc-node circle, .wheel .ring, .wheel .hub { fill: #175f83; }
.wheel .mfc-node text { fill: #fff; font-size: 19px; font-weight: 600; text-anchor: middle; }
.wheel .mfc-node text.small { font-size: 14px; font-weight: 500; opacity: 0.85; }
.wheel .hub-text { fill: #fff; font-size: 17px; font-weight: 600; text-anchor: middle; }
.seg { cursor: pointer; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease; outline: none; }
.seg-fill { stroke: #fff; stroke-width: 6; stroke-linejoin: round; transition: stroke 0.2s ease; }
.seg[data-obj="1"] .seg-fill { fill: var(--o1); }
.seg[data-obj="2"] .seg-fill { fill: var(--o2); }
.seg[data-obj="3"] .seg-fill { fill: var(--o3); }
.seg[data-obj="4"] .seg-fill { fill: var(--o4); }
.seg-label { fill: var(--o-ink); font-size: 17px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.seg:hover, .seg:focus-visible { transform: translate(calc(var(--dx) * 7px), calc(var(--dy) * 7px)); }
.seg:focus-visible .seg-fill { stroke: #10181d; stroke-width: 3; }
.seg.active { transform: translate(calc(var(--dx) * 16px), calc(var(--dy) * 16px)); }
.wheel.has-active .seg:not(.active) { opacity: 0.45; }
.wheel.has-active .seg:not(.active):hover { opacity: 0.8; }
.wheel-hint { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

.details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
#objective-1 { --oc: var(--o1); } #objective-2 { --oc: var(--o2); }
#objective-3 { --oc: var(--o3); } #objective-4 { --oc: var(--o4); }
.detail {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--oc) 60%, var(--surface));
  background: color-mix(in srgb, var(--oc) 12%, var(--surface));
  padding: 22px 24px 24px;
}

.num {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  font-family: var(--display); font-weight: 700; color: var(--o-ink);
}
.num.n1 { background: var(--o1); } .num.n2 { background: var(--o2); }
.num.n3 { background: var(--o3); } .num.n4 { background: var(--o4); }

.detail-head { display: flex; align-items: center; gap: 12px; }
.detail-head h3 { font-size: 1.4rem; }
.detail-head .so { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); display: block; }
.ill { display: block; width: 100%; max-width: 560px; height: auto; margin: 14px auto 12px; }
.detail p.lead { font-size: 1.03rem; }
.detail h4 {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 8px; font-weight: 500;
}
.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.4; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 7px 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.compare thead th { border-top: 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 0; }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:first-of-type { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.kpis li + li { margin-top: 3px; }
.kpis b { font-variant-numeric: tabular-nums; }
.wps { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-chip {
  font-size: 0.85rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px;
}
.wp-chip b { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; margin-right: 4px; }

/* illustration marks, all theme-aware */
.ill .i-axis { stroke: var(--muted); stroke-width: 1.2; }
.ill .i-fill { fill: var(--oc); opacity: 0.85; }
.ill .i-fill.solid { opacity: 1; }
.ill .i-line { fill: none; stroke: var(--deep); stroke-width: 2.4; stroke-linejoin: round; }
.ill .i-dash { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 4; }
.ill .i-link { stroke: var(--deep); stroke-width: 1.6; }
.ill .i-dot { fill: var(--ink); }
.ill .i-node { fill: #175f83; stroke: var(--surface); stroke-width: 2; }
.ill .i-code { fill: #fff; font-family: var(--mono); font-size: 9.5px; text-anchor: middle; }
.ill .i-txt { fill: var(--muted); font-family: var(--body); font-size: 11.5px; }
.ill .i-txt.strong { fill: var(--ink); font-weight: 600; }
.ill .i-sea { fill: #175f83; opacity: 0.22; }
.ill .i-ice { fill: var(--surface); stroke: var(--deep); stroke-width: 1.4; }
.ill .i-dish { fill: var(--surface); stroke: var(--deep); stroke-width: 1.8; }
.ill .i-mesh { fill: none; stroke: var(--deep); stroke-width: 0.7; opacity: 0.55; }
.ill .i-ant { fill: none; stroke: var(--deep); stroke-width: 1.4; }
.ill .i-body { fill: #175f83; }
.ill .i-panel { fill: var(--oc); stroke: #175f83; stroke-width: 1.4; }
.ill .i-use { stroke: var(--muted); stroke-width: 0.9; opacity: 0.6; }
.ill .i-box { fill: var(--surface); stroke: var(--deep); stroke-width: 1.2; }
.ill .i-sw { fill: var(--ink); font-family: var(--mono); font-size: 6.9px; text-anchor: middle; }
.ill .i-iface { fill: none; stroke: #e8cf3f; stroke-width: 2.8; stroke-linecap: round; }
.ill .i-plug { fill: none; stroke: var(--deep); stroke-width: 1.1; stroke-dasharray: 3 3; }
.ill .i-chip { fill: var(--oc); stroke: color-mix(in srgb, var(--oc) 40%, var(--ink)); stroke-width: 1; }
.ill .i-chiptxt { fill: var(--o-ink); font-family: var(--mono); font-size: 8.4px; font-weight: 500; text-anchor: middle; }
.ill .i-band { fill: var(--oc); opacity: 0.35; }
.ill .i-link2 { fill: none; stroke: var(--deep); stroke-width: 1.3; opacity: 0.7; }
.ill .i-user { fill: var(--oc); stroke: color-mix(in srgb, var(--oc) 40%, var(--ink)); stroke-width: 1; }
.ill .i-uicon { fill: var(--o-ink); }
.demo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.demo-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.93rem; line-height: 1.4; }
.demo-list .code { justify-self: start; margin-top: 1px; }
.demo-where, .demo-what { display: block; }
.demo-use { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); margin-top: 2px; }
.demo-use .ms { width: 1.15em; height: 1.15em; color: var(--deep); margin-top: 1px; }
.ill .i-swath { fill: var(--oc); opacity: 0.45; }

/* ---------- value chain ---------- */
.chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: 14px;
}
.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 18px;
}
.stage:not(:last-child)::after {
  content: "";
  position: absolute; top: 34px; right: -12px; z-index: 1;
  width: 10px; height: 10px;
  border-top: 2px solid var(--deep); border-right: 2px solid var(--deep);
  transform: rotate(45deg);
}
.stage .icons { display: flex; gap: 8px; color: var(--deep); font-size: 1.4rem; margin-bottom: 10px; }
.stage.comedi { border: 2px solid var(--deep); }
.badge {
  display: inline-block; margin-left: 6px; vertical-align: 2px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; font-weight: 500;
  background: var(--deep); color: var(--deep-ink); border-radius: 999px; padding: 1px 8px;
}
.stage p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; line-height: 1.5; }
.users { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.users li { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; line-height: 1.25; }
.users .ms { color: var(--deep); }
.stat { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 880px) {
  .chain { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 28px; transform: rotate(135deg); }
}
.code {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--deep-ink); background: var(--deep);
  border-radius: 999px; padding: 1px 9px; white-space: nowrap;
}

/* ---------- work plan ---------- */
.gantt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; overflow: hidden; }
.g-row { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 6px; }
.g-row + .g-row { border-top: 1px solid var(--line); }
.g-label { line-height: 1.25; font-size: 0.93rem; position: relative; z-index: 1; }   /* in front of the today line on phones */
.g-label b { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; margin-right: 6px; }
.g-label small { color: var(--muted); display: block; margin-top: 2px; }
.g-track {
  position: relative; height: 22px; border-radius: 6px;
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%);
}
.g-bar {
  position: absolute; top: 3px; bottom: 3px; z-index: 1;
  left: calc((var(--s) - 1) / 48 * 100%);
  width: calc((var(--e) - var(--s) + 1) / 48 * 100%);
  border-radius: 999px; background: var(--c, #175f83);
  font-family: var(--mono); font-size: 0.78rem; line-height: 16px; color: var(--o-ink);
  padding-inline: 8px; white-space: nowrap; overflow: hidden;
}
.g-bar.navy { color: #fff; }
.g-track::after {
  content: "";
  position: absolute;
  top: -100px; bottom: -100px;
  left: calc((var(--today, 1) - 1) / 48 * 100%);
  width: calc(100% / 48);
  background: color-mix(in srgb, var(--o1) 45%, var(--surface));
  pointer-events: none;
  z-index: 0;
}
.g-head .g-track { background: none; height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-head .g-track span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; position: relative; z-index: 1; }
@media (max-width: 640px) {
  .g-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .g-head .g-label { display: none; }
}

/* ---------- consortium ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.partners li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.plogos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.plogos a { display: grid; place-items: center; aspect-ratio: 1; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: hidden; }
.plogos img { max-height: var(--h, 70px); max-width: 100%; width: auto; object-fit: contain; }
.partners strong { font-family: var(--display); font-weight: 600; }
.partners small { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.jdts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jdts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.jdts small { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.jdts p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; line-height: 1.45; }
@media (max-width: 720px) { .jdts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- timeline: news and outputs (entries.js) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); --pic: 300px; }
.timeline li { position: relative; padding: 0 0 28px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--deep);
}
.timeline li.has-pics { display: grid; grid-template-columns: minmax(0, 1fr) var(--pic); gap: 24px; align-items: start; }
.timeline time { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { margin-top: 2px; }
.timeline p { color: var(--muted); margin-top: 6px; }
.timeline h3 a { color: inherit; text-decoration: none; }
.timeline h3 a:hover { text-decoration: underline; }
.read-more { display: inline-block; margin-top: 8px; font-size: 0.92rem; }
/* picture grid right of the text: 1 wide, 2 side by side, 3 = one wide over two, 4 = 2x2, more = "+N" on the last */
.entry-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.entry-pics img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.entry-pics.n1 { grid-template-columns: 1fr; }
.entry-pics.n1 img, .entry-pics.n3 > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.entry-pics .more { position: relative; }
.entry-pics .more span {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.2rem;
}
@media (max-width: 560px) { .timeline li.has-pics { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.timeline li.empty { color: var(--muted); }
.timeline li.empty::before { display: none; }
.article { padding-top: 56px; max-width: 760px; }
.article time { display: block; margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.article h2 { margin: 4px 0 18px; }
.article p + p, .article p + img, .article img + p { margin-top: 14px; }
.article h3 { margin: 32px 0 8px; font-size: 1.2rem; }
.article img { display: block; max-width: 100%; height: auto; border-radius: 10px; }

footer {
  position: relative; background: var(--seabed);
  padding-block: 30px 40px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72);
}
/* wavy waterline: a navy strip cut by a wave mask, along the footer top and (flipped) the nav bottom */
footer::before, .site-nav::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--seabed);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q100 0 200 7 T400 7 V14 H0Z'/%3E%3C/svg%3E") 0 0 / 400px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q100 0 200 7 T400 7 V14 H0Z'/%3E%3C/svg%3E") 0 0 / 400px 14px repeat-x;
}
footer::before { bottom: 100%; margin-bottom: -1px; }
.site-nav::after { top: 100%; margin-top: -1px; transform: scaleY(-1); }
footer a { color: #9adcf8; }
footer strong, .f-head { color: #fff; }
.f-head { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
footer .cols { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 28px 48px; }
.f-org { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.f-org img { flex: 0 0 auto; background: #fff; padding: 4px; border-radius: 4px; }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-icon { vertical-align: -3px; margin-right: 6px; }
.f-links li + li { margin-top: 12px; }
footer p + p { margin-top: 8px; }
.eu-flag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.eu-flag svg { flex: 0 0 auto; border-radius: 2px; }
@media (max-width: 900px) { footer .cols { grid-template-columns: auto minmax(0, 1fr); } .f-eu { grid-column: 1 / -1; } }
@media (max-width: 560px) { footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- navigation ----------
   Same navy band as the footer; both meet the page with a wavy waterline. */
.skip { position: absolute; left: 12px; top: -48px; z-index: 60; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--seabed);   /* same as the footer */
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding-inline: 20px; height: var(--nav-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--logo-ink); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; }
.brand img { display: block; width: 106px; height: 30px; }
.nav-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; }
.nav-links a {
  position: relative; display: block; padding: 7px 10px; border-radius: 8px;
  font-weight: 600; font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: #9adcf8; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 1;
    flex-direction: column; gap: 0; padding: 8px 12px 14px;
    background: var(--seabed); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 10px; font-size: 1rem; }
  .nav-links a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}

/* ---------- progress ---------- */
.p-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.p-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.p-sum .p-bar { margin-top: auto; }
@media (max-width: 560px) {
  .p-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.p-sum .demo-line { margin-bottom: 8px; }
.p-sum .lbl { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.p-sum .val { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.p-sum .val small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.p-sum .demo-line { font-size: 0.85rem; color: var(--muted); }
.p-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; display: flex; margin-top: 6px; }
.p-bar .b-done { background: #2e7d32; }
.p-bar .b-progress { background: #e0a800; }
.p-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; align-items: center; }
.p-legend span { display: inline-flex; align-items: center; gap: 6px; }
.p-legend .gap { margin-left: 8px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.c-D { --cc: #4f9a45; } .c-L { --cc: #9fd186; } .c-Y { --cc: #e8cf3f; } .c-B { --cc: #7cc3e8; }
.sw { background: var(--cc); }
.sw.st-progress { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 2px var(--ink); }
.sw.st-done { background: var(--ink); }
.p-table td.avail { background: var(--cc); }
.p-table td.st-progress { background: repeating-linear-gradient(45deg, var(--cc) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 2px var(--cc); }
.p-table td.st-done { background: var(--cc); }
.xk { font-family: var(--body); font-size: 17px; font-weight: 700; line-height: 1; color: var(--ink); }
.p-legend .xk { font-size: 15px; }
.p-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.p-table { border-collapse: separate; border-spacing: 2px; font-size: 0.85rem; margin: 6px; }
.p-table th { font-weight: 600; text-align: left; white-space: nowrap; padding: 2px 8px 2px 4px; }
.p-table thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--muted); text-align: center; padding: 2px; vertical-align: bottom; }
.p-table thead th.vert { writing-mode: vertical-rl; transform: rotate(180deg); height: 84px; }
.p-table thead tr.grp th { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--line); }
.p-table th.path { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 10px; }
.p-table tbody th.row { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 500; }
.p-table td { width: 30px; min-width: 30px; height: 26px; padding: 0; border-radius: 4px; text-align: center; }
.p-table td.split { border-left: 0; }
.p-table td.sep, .p-table th.sep { width: 6px; min-width: 6px; background: none; }
.p-table td.e { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.p-table td button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.p-table td button {
  width: 100%; height: 26px; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 4px; color: #10181d;
}
.p-table td button { color: var(--ink); }
.p-table td button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.p-table td.sel button { outline: 2px solid var(--ink); outline-offset: 1px; }
.p-table td.src button { outline: 2px dashed var(--ink); outline-offset: 1px; }
.p-table td button { position: relative; }
.p-detail { margin-top: 10px; font-size: 0.95rem; min-height: 1.6em; }
.p-updated { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

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