/* kriskraanen.nl — base styles. Clean, modern, neutral.
   Fonts: Inter Tight (headings) + Inter (text) via Bunny Fonts (EU, no tracking). */

:root {
  --head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Colour themes. With JS the whole page shifts theme as sections scroll in
   (body[data-theme]); without JS each section carries its own theme. */
/* Brand: black is the base, white and red are the accents.
   The three themes are three black tones the page moves between:
   "light" = base black, "stone" = lifted graphite, "dark" = deepest black. */
body, body[data-theme="light"], html:not(.js) [data-theme="light"] {
  --bg: #0b0b0b; --ink: #f5f5f5; --muted: #9b9b9b; --line: rgba(255, 255, 255, .1);
  --accent: #ff2e3b; --accent-tint: rgba(255, 46, 59, .14);
  --accent-ink: #ffffff; --soft: #151515;
}
body[data-theme="stone"], html:not(.js) [data-theme="stone"] {
  --bg: #161616; --ink: #f5f5f5; --muted: #a0a0a0; --line: rgba(255, 255, 255, .1);
  --accent: #ff2e3b; --accent-tint: rgba(255, 46, 59, .14);
  --accent-ink: #ffffff; --soft: #1f1f1f;
}
body[data-theme="dark"], html:not(.js) [data-theme="dark"] {
  --bg: #030303; --ink: #f5f5f5; --muted: #929292; --line: rgba(255, 255, 255, .1);
  --accent: #ff2e3b; --accent-tint: rgba(255, 46, 59, .14);
  --accent-ink: #ffffff; --soft: #111111;
}
html { background: #0b0b0b; color-scheme: dark; }
html:not(.js) [data-theme] { background: var(--bg); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}

a { color: inherit; text-decoration: none; }
p a, li a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
p a:hover, li a:hover { background-size: 0 1px; background-position: 100% 100%; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-family: var(--head); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); transition: color .8s var(--ease); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: background-color .8s var(--ease); }

section { padding: clamp(88px, 12vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 76px); max-width: 820px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transition: background-color .8s var(--ease); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--muted); transition: color .3s ease; }
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav .lang { font-size: 13px; font-weight: 500; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s ease, background-color .8s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
@media (max-width: 820px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--ink); color: var(--bg);
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); backdrop-filter: blur(8px); }
.btn.small { padding: 9px 17px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 80px; overflow: hidden; }
.hero .wrap { width: 100%; }
.hero h1 { max-width: 12ch; margin: 0 0 30px; }
.hero .lead { margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { padding: 22px 20px 0 0; }
.fact b { display: block; font-family: var(--head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- services: stacked panels ---------- */
.panels { display: grid; gap: 24px; }
.panel {
  border-radius: var(--radius); padding: clamp(30px, 4.5vw, 56px);
  display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: clamp(28px, 5vw, 72px);
  background: var(--tint); color: #f5f5f5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 -20px 50px -30px rgba(0, 0, 0, .9);
}
.panel:nth-child(1) { --tint: #141414; }
.panel:nth-child(2) { --tint: #1a1a1a; }
.panel:nth-child(3) { --tint: #202020; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
.panel-head .num { font-size: 13px; font-weight: 500; color: var(--accent); }
.panel-head h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 10px 0 12px; }
.panel-head p { margin: 0; color: #a3a3a3; max-width: 32ch; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-content: start; }
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }
.items li { border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0 20px; }
.items h4 { margin: 0 0 6px; font-family: var(--head); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.items p { margin: 0; color: #a3a3a3; font-size: 15px; line-height: 1.55; }

/* ---------- printers ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px; border-radius: var(--radius); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .8s var(--ease); }
.step .n { font-size: 13px; font-weight: 500; color: var(--accent); }
.step h3 { font-size: 1.7rem; letter-spacing: -0.03em; margin: 8px 0 8px; }
.step > p { margin: 0 0 16px; color: var(--muted); }
.step ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.step li { padding: 9px 0; border-top: 1px solid var(--line); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ---------- projects ---------- */
.project {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }
.project-visual { position: relative; min-height: 400px; display: grid; place-items: center; overflow: hidden; background: #000000; padding: 40px; }
.project-body { padding: clamp(30px, 4.5vw, 56px); display: grid; gap: 14px; align-content: center; }
.project-body h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; }
.project-body p { margin: 0; color: var(--muted); }
.project-body .btn { justify-self: start; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 12px; border-radius: 999px; }
.more { margin: 24px 0 0; color: var(--muted); font-size: 15px; }

/* browser mock-up */
.browser { width: min(100%, 460px); border-radius: 12px; overflow: hidden; background: #ffffff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #ececec; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcfcf; }
.browser .bar span { margin-left: 10px; flex: 1; font-size: 11.5px; color: #666666; background: #ffffff; border-radius: 6px; padding: 3px 10px; }
.browser .page { padding: 22px 22px 26px; display: grid; gap: 10px; }
.browser .page b { display: block; height: 10px; border-radius: 5px; background: #dedede; }
.browser .page .h { height: 18px; width: 72%; background: #0a0a0a; }
.browser .page .h2 { height: 18px; width: 48%; background: #e41423; }
.browser .page .p1 { width: 90%; margin-top: 6px; }
.browser .page .p2 { width: 66%; }
.browser .page .cta { width: 34%; height: 26px; border-radius: 99px; background: #0a0a0a; margin-top: 8px; }
.browser .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.browser .grid i { aspect-ratio: 4 / 3; border-radius: 8px; background: #efefef; }

/* ---------- experience timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 32px; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 0 0 34px; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); transition: background-color .8s var(--ease);
}
.timeline .when { font-size: 14px; color: var(--muted); line-height: 1.9; font-variant-numeric: tabular-nums; }
.timeline .role { font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.25; }
.timeline .org { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.process > div { padding: 28px 28px 10px 0; }
.process .n { font-family: var(--head); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; color: var(--accent); display: block; margin-bottom: 16px; }
.process h3 { margin-bottom: 8px; }
.process p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #1d1d1d, #2a2a2a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  display: grid; place-items: end start; padding: 24px; color: #f5f5f5;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: relative; font-size: 14px; font-weight: 500; color: #8a8a8a; }
.about h2 { margin-bottom: 28px; }
.about p { margin: 0 0 18px; }
.toolbox { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toolbox span { font-size: 13.5px; padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact aside p { color: var(--muted); }
.contact aside ul { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.contact aside li b { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }

form.inquiry { display: grid; gap: 24px; background: var(--soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .8s var(--ease); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
form.inquiry label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
form.inquiry label small { font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: transparent;
  border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: box-shadow .25s ease, color .8s var(--ease);
}
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { color: #0a0a0a; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips label { display: inline-flex !important; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { font-size: 14px; font-weight: 400; color: var(--ink); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.chips label:hover span { box-shadow: inset 0 0 0 1px var(--muted); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; display: none; }
.notice.ok { display: block; background: rgba(60, 190, 110, .16); }
.notice.err { display: block; background: var(--accent-tint); }

/* ---------- footer ---------- */
footer { padding: 0 0 44px; font-size: 14px; color: var(--muted); }
footer .big { font-family: var(--head); font-weight: 600; font-size: clamp(3rem, 11vw, 9rem); line-height: .95; color: var(--ink); letter-spacing: -0.05em; padding: 40px 0 32px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
footer .big em { font-style: normal; color: var(--accent); }
footer .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a:hover { color: var(--ink); }
