/* ==========================================================================
   DIABETES PPG — site styles
   Light theme only (EU / RRP logos need a light surface). No build step.
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #131c33;
  --ink-2: #45506a;
  --muted: #6e7893;
  --line: #dde3ee;
  --blue: #0039a6;
  --blue-600: #002d85;
  --blue-100: #d6e0f5;
  --blue-50: #eaf0fb;
  --coral: #e2673f;
  --coral-100: #fbe4da;
  --navy: #0b1a3d;
  --radius: 18px;
  --radius-s: 10px;
  --maxw: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(19, 28, 51, 0.04), 0 8px 24px rgba(19, 28, 51, 0.06);
}

/* ---------- language switching ---------- */
html:not([data-lang="sk"]) [lang="sk"] { display: none !important; }
html[data-lang="sk"] [lang="en"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

.label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 .6rem; }
.label-light { color: var(--blue-100); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 68ch; color: var(--ink-2); margin-bottom: 2rem; }
.note-line { margin-top: 1.5rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: var(--blue-600); }
.btn-light:hover { background: var(--blue-50); }
.btn .ico { width: 14px; height: 14px; }
.btn-note { font-size: .9rem; color: var(--blue-100); align-self: center; }
.btn-note em { font-style: italic; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 251, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; color: var(--ink); font-size: 1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--blue); flex: none; }
.brand-light { color: #fff; }
.brand-light .brand-mark { color: #fff; }
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links > a { padding: .45rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.nav-links > a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-links > a.active { color: var(--blue); }
.lang-switch { margin-left: .5rem; display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch button { border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.ppg-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; pointer-events: none; opacity: .9; }
.ppg-base { fill: none; stroke: var(--blue-100); stroke-width: 2; }
.ppg-glow { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 260 2000; animation: ppg-run 9s linear infinite; }
@keyframes ppg-run { from { stroke-dashoffset: 2260; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ppg-glow { animation: none; stroke-dasharray: none; opacity: .5; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.hero-title-full { font-size: .82rem; color: var(--muted); max-width: 60ch; }
.hero-figure { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.hero-figure img { width: 100%; border-radius: 10px; }
.hero-figure figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .5rem; }

/* ---------- facts ---------- */
.glance { background: var(--navy); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.fact { padding: 1.4rem 1.2rem; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: .15rem; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fact-v { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.fact-s { font-size: .82rem; color: rgba(255,255,255,.7); }

/* ---------- two column ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col-media { grid-template-columns: .9fr 1.1fr; align-items: center; }
.two-col-reverse { grid-template-columns: 1.1fr .9fr; }
.media { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.media img { border-radius: 10px; }

/* ---------- stats ---------- */
.stat-stack { display: grid; gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; }
.stat-v { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-l { color: var(--ink-2); font-size: .95rem; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.section-alt .card { box-shadow: none; background: var(--bg); }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; }
.card .card-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .2rem; }
.card .card-big { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: .6rem; color: var(--ink); }
.card .card-foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.card-num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--coral); letter-spacing: .1em; display: block; margin-bottom: .6rem; }

/* ---------- pipeline ---------- */
.pipeline { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; counter-reset: step; }
.pipeline::before { content: ""; position: absolute; left: 22px; width: calc(80% - 0.8rem); top: 22px; height: 2px; background: var(--line); }
.step { position: relative; display: flex; flex-direction: column; gap: .4rem; color: inherit; padding-top: 0; }
.step:hover { text-decoration: none; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 6px var(--bg); position: relative; z-index: 1; margin-bottom: .5rem; transition: transform .15s; }
.step:hover .step-n { transform: scale(1.06); }
.step-t { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); }
.step-d { font-size: .9rem; color: var(--ink-2); }

/* ---------- chips ---------- */
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .82rem; font-weight: 500; padding: .35rem .7rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }

/* ---------- protocol stepper ---------- */
.protocol { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.protocol-title { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; counter-reset: s; }
.stepper li { counter-increment: s; position: relative; font-size: .9rem; font-weight: 500; padding: .5rem .85rem .5rem 2.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.stepper li::before { content: counter(s); position: absolute; left: .45rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.stepper li::after { content: "→"; position: absolute; right: -.85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.stepper li:last-child::after { content: none; }
.stepper .stepper-end { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); padding-left: .85rem; font-weight: 600; }
.stepper .stepper-end::before { content: none; }

/* ---------- dataset highlight ---------- */
.dataset { margin-top: 2.5rem; background: linear-gradient(135deg, var(--blue-600), var(--blue) 60%, #1b4fbd); color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.dataset h3 { font-size: 1.5rem; color: #fff; }
.dataset p { color: rgba(255,255,255,.9); }
.dataset .hero-cta { margin-bottom: 0; }
.dataset-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dataset-facts li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .8rem 1rem; display: flex; flex-direction: column; font-size: .82rem; color: rgba(255,255,255,.85); }
.dataset-facts b { font-family: var(--font-head); font-size: 1.35rem; color: #fff; }

/* ---------- results ---------- */
.result-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.result-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.result-text p { color: var(--ink-2); }
.tiles { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.tile { flex: 1 1 120px; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); }
.tile-v { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.tile-l { font-size: .8rem; color: var(--ink-2); margin-top: .2rem; }
.tile-bp .tile-v { color: var(--blue); }
.tile-bgl .tile-v { color: var(--coral); }
.callout { margin-top: 2.5rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); border-radius: var(--radius-s); padding: 1.2rem 1.5rem; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* chart component (rendered by main.js) */
.chart { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem .9rem; }
.chart-title { font-size: .92rem; font-weight: 600; color: var(--ink); margin: 0 0 .6rem; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis-y text { fill: var(--muted); font-size: 11px; }
.chart .axis-x text { fill: var(--ink-2); font-size: 12px; font-weight: 500; }
.chart .baseline { stroke: #c3c9c6; stroke-width: 1; }
.chart .bar { transition: opacity .15s; }
.chart .bar-hit { fill: transparent; cursor: pointer; }
.chart .bar.dim { opacity: .45; }
.chart .vlabel { fill: var(--ink-2); font-size: 11px; font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .6rem 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ink-2); }
.chart-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .78rem; padding: .35rem .6rem; border-radius: 6px; transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .1s; z-index: 2; }
.chart-tip.show { opacity: 1; }
.chart details { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.chart details summary { cursor: pointer; }
.chart table { border-collapse: collapse; margin-top: .4rem; font-size: .8rem; color: var(--ink-2); }
.chart th, .chart td { text-align: right; padding: .2rem .6rem; border-bottom: 1px solid var(--line); }
.chart th:first-child, .chart td:first-child { text-align: left; }

/* ---------- clinic ---------- */
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.feature-list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: .97rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.feature-list b { display: block; color: var(--ink); font-weight: 600; }
.shots { display: grid; gap: 1rem; }
.shot { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.shot img { border-radius: 8px; width: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.08); border: 1px solid var(--line); }

/* ---------- zoomable images + lightbox ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zoom { display: block; position: relative; cursor: zoom-in; border-radius: 10px; color: inherit; }
.zoom:hover { text-decoration: none; }
.zoom::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(19,28,51,.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20M8 10.5h5M10.5 8v5'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1700px); max-height: 96vh; margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 12, 30, .88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox figcaption { color: rgba(255,255,255,.85); font-size: .9rem; text-align: center; max-width: 80ch; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s; }
.lightbox-close:hover { background: rgba(255,255,255,.28); }
body.lb-open { overflow: hidden; }
.shot figcaption { font-size: .78rem; color: var(--muted); margin-top: .5rem; text-align: center; }

/* ---------- gantt ---------- */
.gantt { --months: 30; margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.2rem; }
.gantt-axis { position: relative; height: 40px; margin-left: 200px; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.gantt-axis span { position: absolute; left: calc((var(--m) - 1) / (var(--months) - 1) * 100%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.gantt-axis span:first-child { transform: none; align-items: flex-start; }
.gantt-axis span:last-child { transform: translateX(-100%); align-items: flex-end; }
.gantt-axis b { color: var(--ink-2); font-weight: 600; }
.gantt-axis i { font-style: normal; }
.gantt-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 0; min-height: 40px; }
.gantt-label { font-size: .9rem; color: var(--ink-2); padding-right: 1rem; white-space: nowrap; }
.gantt-label b { color: var(--ink); font-family: var(--font-head); margin-right: .3rem; }
.gantt-track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--months) - 1px), var(--line) calc(100% / var(--months) - 1px), var(--line) calc(100% / var(--months))); border-radius: 6px; }
.gantt-bar { position: absolute; top: 3px; bottom: 3px; left: calc((var(--s) - 1) / var(--months) * 100%); width: calc((var(--e) - var(--s) + 1) / var(--months) * 100%); background: linear-gradient(90deg, var(--blue), #2f63c9); border-radius: 6px; }
.ms { position: absolute; top: 50%; left: calc(var(--m) / var(--months) * 100%); width: 12px; height: 12px; background: var(--coral); border: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 1px var(--coral); }
.wp-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; font-size: .92rem; color: var(--ink-2); }
.wp-list b { color: var(--ink); font-family: var(--font-head); margin-right: .3rem; }

/* ---------- outputs ---------- */
.outputs-single { max-width: 820px; margin-top: 1.5rem; }
.outputs-single h3 { margin-top: 1.4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.outputs-single h3:first-child { margin-top: 0; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: .93rem; color: var(--ink-2); }
.pub-list li { padding-left: 1rem; border-left: 2px solid var(--blue-100); }
.pub-list em { color: var(--ink); font-style: italic; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--coral-100); color: #9a3f1f; vertical-align: middle; margin-left: .3rem; }

/* ---------- partners ---------- */
.partner-logo { height: 72px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 1rem; border-radius: 12px; }
.partner-logo-dark { background: var(--navy); padding: 0 1.2rem; justify-content: center; }
.partner-logo-dark img { height: 52px; width: auto; }
.partner-logo-img img { height: 52px; width: auto; }
.partner-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--blue-600); gap: .4rem; align-items: baseline; }
.partner-logo-text small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.card .partner-sub { font-size: .85rem; color: var(--muted); margin-top: -.3rem; }
.partner-link { font-size: .85rem; font-weight: 600; }

/* ---------- funding & footer ---------- */
.funding { background: #fff; border-top: 1px solid var(--line); padding: 2.2rem 0; }
.funding-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.funding-logos { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.funding-logos img { height: 64px; width: auto; }
.funding p { font-size: .88rem; color: var(--ink-2); max-width: 46ch; margin: 0; }
.footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 2rem; }
.footer-h { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .6rem; }
.footer-line { font-size: .9rem; margin-bottom: .6rem; }
.footer-muted { color: rgba(255,255,255,.55); }
.footer a { color: #fff; }
.footer-logos { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logos img { height: 44px; width: auto; }
.footer-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { border-left: 0; padding-left: 0; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1rem; gap: .2rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .lang-switch { margin: .6rem 0 0; align-self: flex-start; }
  .hero-grid, .two-col, .two-col-media, .two-col-reverse, .result-block, .dataset { grid-template-columns: 1fr; }
  .two-col-reverse > :first-child { order: 0; }
  .two-col-media .media { order: 1; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: repeat(3, 1fr); }
  .gantt-axis { margin-left: 0; }
  .gantt-row { grid-template-columns: 1fr; gap: .2rem; margin-bottom: .6rem; }
  .wp-list { grid-template-columns: 1fr; }
  .stepper li::after { content: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .step { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
  .step-n { margin-bottom: 0; width: 36px; height: 36px; }
  .step-d { flex-basis: 100%; }
  .stat-stack { grid-template-columns: 1fr; }
  .dataset-facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .funding-logos img { height: 52px; }
  .gantt-axis i { display: none; }
  .gantt-axis { height: 26px; }
}
