/* robertriteco.nl
   Idee: de kruising van data en AI. Twee cirkels, waar ze overlappen ontstaan tools.
   Die lens is het merkteken. Eén vlak in kobalt (het uitgelichte project), verder rustig. */
:root {
  --bg: #F5F6F9;
  --surface: #FFFFFF;
  --ink: #10131C;
  --muted: #535A6B;
  --line: #D3D8E1;
  --accent: #2B3DE0;
  --on-accent: #FFFFFF;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D14; --surface: #141824; --ink: #EDEFF6; --muted: #9EA5B8; --line: #272D3D;
    --accent: #3547F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D14; --surface: #141824; --ink: #EDEFF6; --muted: #9EA5B8; --line: #272D3D;
  --accent: #3547F0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  padding-inline: var(--gutter);
}
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* kop */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.25rem var(--f-display); font-stretch: 118%; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 2.1rem; height: auto; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
nav a { text-decoration: none; font-weight: 600; padding-block: 6px; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--accent); }
nav a.lang { font-family: var(--f-mono); font-size: .8125rem; border: 1.5px solid var(--line); padding: 4px 9px; border-radius: 3px; }
nav a.lang:hover { border-color: var(--ink); }

main { padding-block: clamp(36px, 7vw, 80px) clamp(40px, 8vw, 96px); display: grid; gap: clamp(48px, 8vw, 96px); }

/* hero met het merkteken groot erbij */
.hero { display: grid; gap: 32px 48px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.hero-text { display: grid; gap: 22px; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.2rem; max-width: 50ch; line-height: 1.5; margin: 0; }
.venn { width: 100%; height: auto; color: var(--ink); }
.venn .ring { fill: none; stroke: currentColor; stroke-width: 2; }
.venn .lens { fill: var(--accent); }
.venn text { font: 700 17px var(--f-display); font-stretch: 112%; fill: currentColor; }
.venn text.mono { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--on-accent); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .venn { max-width: 22rem; } }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 3px; }
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn.fill { background: var(--ink); color: var(--bg); }
.btn.fill:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.sechead a { font-weight: 600; }

/* uitgelicht project: het kobaltvlak */
.feature { background: var(--accent); color: var(--on-accent); padding: clamp(22px, 4vw, 44px); border-radius: 4px; display: grid; gap: 32px; }
.feature a { color: var(--on-accent); }
.feature-top { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.feature h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.feature .tag { margin-bottom: 14px; display: block; }
.feature .btn { border-color: var(--on-accent); }
.feature .btn:hover { background: var(--on-accent); color: var(--accent); }
.feature .shot { border: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.stats { display: grid; gap: 14px 28px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stats li { border-top: 2px solid var(--on-accent); padding-top: 8px; }
.stats b { display: block; font: 700 1.6rem/1.1 var(--f-display); font-stretch: 112%; }
.stats span { font-size: .9375rem; }
@media (max-width: 800px) { .feature-top { grid-template-columns: minmax(0, 1fr); } }

/* schermafbeeldingen */
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface); }

/* projectkaarten */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px; padding: 14px 14px 22px; display: grid; gap: 10px; align-content: start; }
.card .shot { margin-bottom: 8px; border-width: 1px; }
.card > :not(.shot) { margin-inline: 8px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover { border-color: var(--ink); }
.card p { margin: 0; color: var(--muted); }
.card .more { font-weight: 600; color: var(--ink); }

/* status: vorm, geen kleur. vol = live, open = prototype, streep = experiment */
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: .85em; height: .85em; border: 2px solid currentColor; flex: none; }
.status.live::before { background: currentColor; }
.status.proto::before { background: transparent; }
.status.exp::before { border-style: dashed; }

.two { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.prose h2 { margin-bottom: 16px; }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 14px; max-width: 65ch; }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9em; height: .9em; border-radius: 50%; background: var(--accent); }

/* projectpagina */
.phead { display: grid; gap: 18px; }
.phead .tagline { font-size: 1.3rem; max-width: 46ch; line-height: 1.45; margin: 0; }
.pbody { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
@media (max-width: 860px) { .pbody { grid-template-columns: minmax(0, 1fr); } }
.psec { padding-block: 22px; border-top: 1.5px solid var(--line); }
.psec:first-child { border-top: 0; padding-top: 0; }
.psec h2 { font-size: 1.35rem; margin-bottom: 10px; }
.psec p:last-child { margin-bottom: 0; }
.facts { background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px; padding: 20px; position: sticky; top: 20px; }
@media (max-width: 860px) { .facts { position: static; order: -1; } }
.facts dl { margin: 0 0 16px; display: grid; gap: 12px; }
.facts dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts .btn { display: block; text-align: center; margin-top: 8px; padding: 10px 14px; }
.note { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); max-width: 65ch; }
.crumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 8px; }

.contact { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px; padding: 24px; display: grid; gap: 8px; max-width: 40rem; }
.contact p { margin: 0; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; color: var(--muted); font-size: .9375rem; }
footer a { color: var(--muted); }
footer p { margin: 0; max-width: none; }

/* artikel */
.article { max-width: 44rem; }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.article .body { margin-top: 28px; }
.article .body h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.article .body p, .article .body .ticks { font-size: 1.125rem; line-height: 1.7; }

/* cursussen en formulier */
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.course { background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px; padding: 20px; }
.course b { font: 700 1.2rem var(--f-display); font-stretch: 112%; }
.course p { margin: 8px 0 0; color: var(--muted); }
.form { display: grid; gap: 18px; max-width: 34rem; }
.form .field { display: grid; gap: 6px; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.form input[type=text], .form input[type=email], .form textarea {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--muted); border-radius: 3px; padding: 11px 12px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.consent { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; cursor: pointer; font-size: 1rem; }
.form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: var(--ink); border-left: 4px solid var(--accent); padding-left: 12px; }
.form-status.fout { color: #B3261E; }
:root[data-theme="dark"] .form-status.fout { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.fout { color: #FF8A80; } }
