/* gwsw-dataconversie.nl: related to infralytics.org (Plex, mono labels) but its own look: deep-water blue bands, dot grid, round shapes. Plain CSS, no build step. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(../assets/fonts/space-grotesk.woff2) format("woff2"); }

:root {
  --ink: #1c2b36;
  --text: #44586a;
  --muted-text: #5f727e;
  --nav: #4b606e;
  --line: #c9d6de;
  --grid: #d3dee6;
  --bg: #f8fafb;
  --blue: #29abe2;       /* the blue of the original conversion diagram */
  --blue-text: #11709d;  /* same hue, dark enough for small text on --bg (AA) */
  --blue-light: #7fd0f2;
  --blue-wash: #d9f0fb;
  --orange: #f59a23;
  --night: #0a2a43;
  --night-2: #0f3554;
  --night-line: #24557a;
  --night-grid: #17405f;
  --night-head: #f1f4f7;
  --night-text: #d3e2ee;
  --night-muted: #9dbbd0;

  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cell: 28px;
  --display: "Space Grotesk", var(--sans);
  --r: 14px;
  --gridline: var(--grid);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 700; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-text); }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--blue-light); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: #fff; padding: 8px 12px; }

.w { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* a dot grid, on light and dark surfaces */
.grid {
  background-image: radial-gradient(var(--gridline) 1.2px, transparent 1.3px);
  background-size: var(--cell) var(--cell);
  background-position: 50% 0;
}
.night { --gridline: var(--night-grid); background-color: var(--night); color: var(--night-text); }
.night h2, .night h3 { color: var(--night-head); }
.night a:hover { color: var(--blue-light); }

.lab { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); }
.night .lab { color: var(--blue-light); }

.btn { display: inline-block; background: var(--blue-text); color: #fff; border: 1px solid var(--blue-text); border-radius: 999px; padding: 11px 22px; font: 500 15px/1.4 var(--sans); }
.btn:hover { color: #fff; background: #0d5c82; border-color: #0d5c82; }
.btn-ghost { background: transparent; color: var(--blue-text); }
.night .btn-ghost { color: #fff; border-color: var(--night-muted); }
.night .btn-ghost:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { color: var(--blue-text); background: var(--blue-wash); }
.btn-light { background: var(--blue-light); border-color: var(--blue-light); color: var(--night); font-weight: 600; }
.btn-light:hover, .night .btn-light:hover { background: #a5ddf6; color: var(--night); }

/* header: nav + hero on the grid */
header h1 { color: #fff; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: #fff; font-family: var(--display); }
.wordmark:hover, .night .wordmark:hover { color: #fff; }
.wordmark svg { width: 34px; height: 34px; }
.wordmark span { font: 500 14px var(--mono); letter-spacing: .04em; color: var(--blue-light); }
.links { display: flex; align-items: center; gap: 30px; font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-text); }
.links .btn { font: inherit; padding: 10px 16px; }
.links a:not(.btn) { padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.links a:not(.btn):hover, .links a:not(.btn):focus-visible { color: #fff; border-color: var(--blue-light); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero h1 { margin-top: 16px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.lead { margin-top: 20px; font-size: 18px; color: var(--night-text); max-width: 50ch; }
.hero-art { background: linear-gradient(160deg, #123f63, #0d3252); border: 1px solid var(--night-line); border-radius: var(--r); padding: 28px 26px 20px; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55); }
.btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art text { font: 500 10.5px var(--mono); letter-spacing: .1em; fill: var(--night-muted); }
.hero-art .tag text { font-size: 12px; letter-spacing: .02em; fill: #fff; }
.flow { stroke-dasharray: 4 6; }
@media (prefers-reduced-motion: no-preference) { .flow { animation: flow 1.6s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* sections */
.section { padding: 96px 0; }
.head h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.head p:not(.lab) { margin-top: 16px; font-size: 17px; color: var(--text); max-width: 60ch; }
.night .head p:not(.lab) { color: var(--night-text); }

/* steps: a drawn line with a node per step */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { position: relative; padding-top: 28px; counter-increment: step; }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 2px solid var(--blue); box-shadow: 0 0 0 4px var(--bg); }
.steps li:last-child::before { background: var(--bg); }
.steps .num::before { content: "0" counter(step); }
.num { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--blue-text); }
.num i { font-style: normal; color: var(--muted-text); margin-left: 8px; }
.steps h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.3; }
.steps p { font-size: 15px; color: var(--text); }
.steps a, .card a, .refs-note a { color: var(--blue-text); text-decoration: underline; text-decoration-color: var(--blue-light); text-underline-offset: 3px; }
.steps code, .card code { font: .9em var(--mono); color: var(--ink); }
.branch { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--blue-wash); border-radius: var(--r); padding: 20px 26px; }
.branch svg { width: 52px; height: 52px; }
.branch p { font-size: 15.5px; color: var(--text); max-width: 78ch; }
.branch strong { color: var(--ink); font-weight: 600; }

/* numbered cards */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px 30px; }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-wash); letter-spacing: 0; font-size: 13px; }
.card h3 { margin: 20px 0 10px; font-size: 19px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--text); }

/* dataviewer, on the dark band */
.shots { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots figure { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); padding: 10px 10px 0; }
.shots img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.shots figcaption { padding: 14px 8px 16px; font: 12.5px/1.5 var(--mono); color: var(--night-muted); }

/* references */
.refs { margin-top: 40px; columns: 4 150px; column-gap: 28px; font: 13.5px/2.1 var(--mono); color: var(--text); border-top: 1px solid var(--line); padding-top: 24px; }
.refs li { break-inside: avoid; }
.refs li::before { content: "· "; color: var(--blue); }
.refs-note { margin-top: 24px; font-size: 15px; color: var(--muted-text); }

/* pointer to Fluvius-Connect */
.next { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 38px; }
.next h2 { margin-top: 10px; font-size: 26px; letter-spacing: -.01em; }
.next p { margin-top: 10px; font-size: 16px; color: var(--text); max-width: 62ch; }

/* footer: contact on the second dark band */
footer.night { padding: 88px 0 40px; }
.people { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people li { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); padding: 26px 30px; }
.people h3 { font-size: 20px; }
.people .org { margin-top: 2px; font-size: 15px; color: var(--night-muted); }
.people .org a { text-decoration: underline; text-decoration-color: var(--night-line); text-underline-offset: 3px; }
.people .reach { margin-top: 18px; display: grid; gap: 4px; font: 14px/1.6 var(--mono); color: var(--blue-light); overflow-wrap: anywhere; }
.people .reach a:hover { color: #fff; }
.bottom { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 8px 40px; font: 12.5px/1.6 var(--mono); color: var(--night-muted); }
.bottom span { margin-right: auto; }

/* quiet rise on scroll, only where the browser can tie it to the viewport */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); gap: 32px; }
  .steps li { padding: 0 0 0 26px; }
  .steps li::before { top: 0; left: -6px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .w { padding: 0 20px; }
  .links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
  .section { padding: 64px 0; }
  .cards, .shots, .people, .next { grid-template-columns: 1fr; }
  .next { padding: 26px 24px; }
  .wordmark span { display: none; }
}
