/* =========================================================
   Little Bird Studio's: donker thema, wit op zwart
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --bg-3: #141414;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f2;
  --text-2: #a9a9a6;
  --text-3: #6d6d6a;
  --white: #ffffff;

  --font-sans: "Inter", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtiele korrel over de hele pagina */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--white); color: var(--bg); padding: 10px 14px; text-decoration: none; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 { color: var(--white); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7.6vw, 6.4rem); letter-spacing: -0.05em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--text-2); max-width: 38em; line-height: 1.6; }
.muted { color: var(--text-3); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

.gradient-text {
  background: linear-gradient(180deg, #fff 0%, #fff 40%, #7a7a78 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline-text { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }

/* ---------- Knoppen ---------- */

.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; min-height: 52px;
  font: 600 .95rem/1 var(--font-sans); letter-spacing: -.01em;
  text-decoration: none; border-radius: 100px; border: 1px solid var(--line-strong);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), border-color .3s, color .3s, background .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--white); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bg); border-color: var(--white); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn-primary::before { background: #d9d9d6; }

.btn-small { min-height: 42px; padding: 10px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn .meta { font: 400 .74rem/1 var(--font-mono); opacity: .6; letter-spacing: 0; }

.text-link { font-weight: 600; text-decoration: none; position: relative; padding-bottom: 3px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .4s var(--ease); }
.text-link:hover::after { transform: scaleX(0); }

kbd {
  font-family: var(--font-mono); font-size: .72rem; line-height: 1;
  padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  color: var(--text-2); background: var(--bg-3);
}

/* ---------- Scrollvoortgang ---------- */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  height: var(--header-h);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transition: opacity .4s;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .site-header { border-bottom-color: transparent; }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.brand img { height: 68px; width: auto; transition: opacity .3s; }
.brand:hover img { opacity: .8; }

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }

.header-links { display: flex; gap: 4px; margin-right: 10px; }
.header-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 8px 12px; border-radius: 100px; transition: color .25s, background .25s;
}
.header-links a:hover, .header-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.07); }
.menu-open .header-links { opacity: 0; pointer-events: none; }

.cmd-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px 0 14px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  color: var(--text-2); cursor: pointer; font-size: .85rem;
  transition: border-color .25s, color .25s, background .25s;
}
.cmd-btn:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.cmd-btn svg { width: 15px; height: 15px; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 8px 0 18px; border-radius: 100px;
  background: var(--white); color: var(--bg); border: 0; cursor: pointer;
  font-weight: 600; font-size: .9rem;
}
.menu-btn .label { position: relative; overflow: hidden; height: 1.2em; display: inline-block; }
.menu-btn .label span { display: block; transition: transform .5s var(--ease); line-height: 1.2; }
.menu-btn .label span + span { position: absolute; top: 100%; left: 0; }
.menu-open .menu-btn .label span { transform: translateY(-100%); }
.menu-btn .icon {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; position: relative;
}
.menu-btn .icon i {
  position: absolute; width: 12px; height: 1.5px; background: var(--white); border-radius: 2px;
  transition: transform .5s var(--ease);
}
.menu-btn .icon i:first-child { transform: translateY(-3px); }
.menu-btn .icon i:last-child { transform: translateY(3px); }
.menu-open .menu-btn .icon i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn .icon i:last-child { transform: rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */

.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--bg);
  clip-path: circle(0px at var(--mx, calc(100% - 60px)) var(--my, 40px));
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
  visibility: hidden;
  overflow-y: auto;
}
.menu-open .menu { clip-path: circle(150% at var(--mx, calc(100% - 60px)) var(--my, 40px)); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s 0s; }

.menu-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
}

.menu-inner {
  position: relative; min-height: 100%;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw;
  padding: calc(var(--header-h) + 4vh) var(--pad) 40px;
  max-width: 1480px; margin: 0 auto;
}

.menu-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu-nav li:first-child { border-top: 1px solid var(--line); }
.menu-nav a {
  display: flex; align-items: baseline; gap: 22px;
  padding: clamp(8px, 1.4vh, 16px) 0;
  text-decoration: none; color: var(--text-3);
  font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.1;
  transform: translateY(105%); transition: transform .9s var(--ease), color .3s;
}
.menu-open .menu-nav a { transform: none; }
.menu-open .menu-nav li:nth-child(1) a { transition-delay: .25s, 0s; }
.menu-open .menu-nav li:nth-child(2) a { transition-delay: .3s, 0s; }
.menu-open .menu-nav li:nth-child(3) a { transition-delay: .35s, 0s; }
.menu-open .menu-nav li:nth-child(4) a { transition-delay: .4s, 0s; }
.menu-open .menu-nav li:nth-child(5) a { transition-delay: .45s, 0s; }
.menu-open .menu-nav li:nth-child(6) a { transition-delay: .5s, 0s; }
.menu-nav a .idx { font: 400 .8rem/1 var(--font-mono); letter-spacing: .05em; color: var(--text-3); min-width: 28px; transform: translateY(-1.2em); }
.menu-nav a .tag { margin-left: auto; font: 400 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); align-self: center; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); }
.menu-nav a:hover, .menu-nav a:focus-visible, .menu-nav a[aria-current="page"] { color: var(--white); }
.menu-nav a:hover .tag, .menu-nav a:focus-visible .tag { opacity: 1; transform: none; }
.menu-nav a[aria-current="page"] .idx::after { content: " ●"; color: var(--white); }

.menu-side { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; opacity: 0; transform: translateY(20px); transition: opacity .6s .45s, transform .8s .45s var(--ease); }
.menu-open .menu-side { opacity: 1; transform: none; }
.menu-closing .menu-side, .menu-closing .menu-nav a { transition-delay: 0s !important; }

.menu-preview {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.menu-preview figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .5s, transform .9s var(--ease); }
.menu-preview figure.active { opacity: 1; transform: none; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }
.menu-preview figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: .92rem; color: var(--text);
}
.menu-preview figcaption b { display: block; font: 400 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 2px; }
.menu-preview .preview-blank { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1c1c1c, var(--bg-2)); }
.menu-preview .preview-blank img { width: 60%; height: auto; object-fit: contain; opacity: .9; }

.menu-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; font-size: .92rem; }
.menu-meta h4 { font: 400 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.menu-meta a { color: var(--text); text-decoration: none; }
.menu-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-meta p { margin: 0; color: var(--text-2); }
.clock { font-family: var(--font-mono); color: var(--white); font-size: 1.05rem; }
.menu-hint { font-size: .85rem; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Command palette ---------- */

.cmdk {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 12vh 16px 16px;
}
.cmdk.open { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.cmdk-box {
  max-width: 620px; margin: 0 auto;
  background: rgba(18,18,18,.96); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden; animation: pop .25s var(--ease);
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-input-row svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk-input { flex: 1; height: 60px; border: 0; outline: 0; background: transparent; color: var(--white); font: 400 1.05rem var(--font-sans); }
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 55vh); overflow-y: auto; }
.cmdk-group { font: 400 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 12px 12px 8px; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px;
  cursor: pointer; color: var(--text-2);
}
.cmdk-item .ico { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-family: var(--font-mono); font-size: .8rem; color: var(--text-2); }
.cmdk-item .t { color: var(--text); }
.cmdk-item .d { font-size: .82rem; color: var(--text-3); margin-left: auto; text-align: right; }
.cmdk-item[aria-selected="true"] { background: rgba(255,255,255,.08); }
.cmdk-item[aria-selected="true"] .ico { border-color: var(--line-strong); color: var(--white); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--text-3); }
.cmdk-foot { display: flex; gap: 16px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-3); }
.cmdk-foot span { display: inline-flex; gap: 6px; align-items: center; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--white); color: var(--bg); padding: 12px 18px; border-radius: 100px;
  font-weight: 600; font-size: .9rem; transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cursor (alleen met muis) ---------- */

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(255,255,255,.5); transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: transparent; border-color: rgba(255,255,255,.7); }

/* ---------- Secties ---------- */

main { position: relative; }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 8px; }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 1;
}
.hero-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 400 .76rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line-strong); border-radius: 100px;
  font: 400 .78rem/1 var(--font-mono); color: var(--text-2); background: rgba(255,255,255,.03); margin-bottom: 28px;
}
.status-pill .live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* Typende regel */
.typer { font-family: var(--font-mono); color: var(--text-2); font-size: clamp(.85rem, 1.2vw, 1rem); margin-top: 26px; min-height: 1.6em; }
.typer .prompt { color: var(--text-3); }
.typer .caret { display: inline-block; width: .55em; height: 1.1em; background: var(--white); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 400 .9rem/1 var(--font-mono); letter-spacing: .04em; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--text-3); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Diensten ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,.09), transparent 45%);
}
.service:hover { border-color: var(--line-strong); }
.service:hover::before { opacity: 1; }
.service .num { font: 400 .78rem/1 var(--font-mono); color: var(--text-3); display: flex; justify-content: space-between; margin-bottom: 64px; }
.service .num svg { width: 22px; height: 22px; color: var(--text-2); }
.service p { color: var(--text-2); margin: 0; }

/* ---------- Werk / projectkaarten ---------- */

.work { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.work-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg-2);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), border-color .4s;
  will-change: transform;
}
.work-card:hover { border-color: var(--line-strong); }
.work-card.span-4 { grid-column: span 4; }
.work-card.span-2 { grid-column: span 2; }
.work-card.span-3 { grid-column: span 3; }
.work-card.span-6 { grid-column: span 6; }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.work-card.span-2 .work-media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.045); }
.work-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px 26px 26px; }
.work-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0 0 6px; }
.work-body p { color: var(--text-2); margin: 0; font-size: .96rem; max-width: 34em; }
.work-go {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background .3s, color .3s, transform .5s var(--ease);
}
.work-card:hover .work-go { background: var(--white); color: var(--bg); transform: rotate(-45deg); }
.work-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font: 400 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 7px 11px; color: var(--white);
}

.covers-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; height: 100%; align-items: center; background: radial-gradient(circle at 50% 0%, #1b1b1b, #070707); }
.covers-strip img { width: 100%; height: auto; aspect-ratio: 900 / 1278; object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8); transform: translateY(10px); filter: brightness(.78); transition: transform .6s var(--ease), filter .4s, box-shadow .6s; }
.covers-strip img:hover { transform: translateY(-12px) scale(1.04); filter: none; box-shadow: 0 28px 40px -14px rgba(0,0,0,.9); }
.covers-strip.grid6 { grid-template-columns: repeat(3, auto); grid-template-rows: 1fr 1fr; justify-content: center; align-items: center; gap: 14px 16px; padding: 22px 18px 30px; height: 100%; }
.covers-strip.grid6 img { height: 100%; width: auto; min-height: 0; }

.work-media.brand-card {
  display: grid; place-items: center; aspect-ratio: 21 / 8;
  background:
    radial-gradient(ellipse at 20% 120%, rgba(255,140,30,.22), transparent 55%),
    radial-gradient(ellipse at 90% -20%, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(180deg, #0d0d0d, #060606);
}
.brand-card .route-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.brand-card .route-bg path { stroke-dasharray: 6 8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.brand-card img { position: relative; width: min(56%, 520px); height: auto; object-fit: contain; transition: transform 1s var(--ease); }
.work-card:hover .brand-card img { transform: scale(1.035); }
.work-card.span-3 .work-media.brand-card { aspect-ratio: 16 / 10; }
.values.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- Statistieken ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 26px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; font-size: .9rem; color: var(--text-2); }

/* ---------- Projectpagina ---------- */

.project-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.project-hero .crumbs { font: 400 .78rem/1 var(--font-mono); color: var(--text-3); letter-spacing: .06em; margin-bottom: 28px; display: flex; gap: 10px; }
.project-hero .crumbs a { color: var(--text-2); text-decoration: none; }
.project-hero .crumbs a:hover { color: var(--white); }
.project-hero h1 { font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: .95; margin-bottom: 28px; }
.project-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

.meta-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.meta-list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.meta-list div:nth-child(odd) { padding-right: 16px; }
.meta-list dt { font: 400 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.meta-list dd { margin: 0; color: var(--text); font-size: .96rem; }

.showcase { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.showcase img { width: 100%; height: auto; }

.browser-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #1a1a1a; box-shadow: 0 60px 120px -40px rgba(0,0,0,.9); }
.browser-frame .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #161616; border-bottom: 1px solid var(--line); }
.browser-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.browser-frame .bar span { margin-left: 12px; font: 400 .74rem/1 var(--font-mono); color: var(--text-3); background: #0d0d0d; padding: 6px 12px; border-radius: 6px; flex: 1; max-width: 360px; }
.browser-frame img { width: 100%; height: auto; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.split.center { align-items: center; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }

.feature-list { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feature-list li { counter-increment: f; display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before { content: counter(f, decimal-leading-zero); font: 400 .8rem/1.9 var(--font-mono); color: var(--text-3); grid-row: span 2; }
.feature-list h3 { margin: 0; font-size: 1.15rem; }
.feature-list p { margin: 0; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .88rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-2); background: var(--bg-2); transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--line-strong); color: var(--white); }
.chips.mono li { font-family: var(--font-mono); font-size: .78rem; }

/* Galerij (horizontaal scrollen) */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 760px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 18px; margin: 0 calc(-1 * var(--pad)); scrollbar-width: thin; scrollbar-color: #333 transparent; cursor: grab; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); user-select: none; -webkit-user-drag: none; }
.gallery figcaption { margin-top: 12px; font-size: .9rem; color: var(--text-2); }
.gallery figcaption b { font: 400 .72rem/1 var(--font-mono); color: var(--text-3); margin-right: 8px; }

/* Covers (Mapesu) */
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); perspective: 1400px; }
.covers.six { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px) clamp(12px, 2.4vw, 32px); max-width: 1000px; margin: 0 auto; }
.cover {
  --rx: 0deg; --ry: 0deg; --lift: 28px;
  margin: 0; position: relative; cursor: zoom-in;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--ease);
}
.cover img { filter: brightness(.72) saturate(.9); transition: filter .5s, box-shadow .7s var(--ease); }
.cover:hover, .cover:focus-visible { --lift: -14px; z-index: 1; }
.cover:hover img, .cover:focus-visible img { filter: none; box-shadow: 0 50px 80px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1); }
.cover figcaption { transition: color .4s, transform .7s var(--ease); }
.cover:hover figcaption { color: var(--white); }
.cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, transparent 35%); opacity: 0; transition: opacity .4s; }
.cover:hover::after { opacity: 1; }
.cover figcaption { margin-top: 14px; font: 400 .74rem/1.4 var(--font-mono); letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }

/* Downloadkaarten */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.downloads.two { grid-template-columns: repeat(2, 1fr); }
.dl {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; overflow: hidden; transition: border-color .3s, transform .5s var(--ease);
}
.dl:hover { border-color: var(--white); transform: translateY(-4px); }
.dl .os { display: flex; justify-content: space-between; align-items: center; font: 400 .74rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dl .os svg { width: 26px; height: 26px; color: var(--white); }
.dl h3 { margin: 18px 0 0; font-size: 1.5rem; }
.dl p { margin: 0; color: var(--text-2); font-size: .94rem; }
.dl .file { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 400 .78rem/1.4 var(--font-mono); color: var(--text-3); }
.dl .file b { color: var(--white); font-weight: 400; }
.dl.featured { background: var(--white); color: var(--bg); border-color: var(--white); }
.dl.featured h3 { color: var(--bg); }
.dl.featured p, .dl.featured .os, .dl.featured .file { color: #555; }
.dl.featured .os svg, .dl.featured .file b { color: var(--bg); }
.dl.featured .file { border-color: rgba(0,0,0,.12); }

.note { padding: 22px 24px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: .94rem; }
.note strong { color: var(--white); }

/* Workflow-stappen (LineWise) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 0; position: relative; counter-reset: s; }
.steps::after { content: ""; position: absolute; top: calc(50% + 0px); left: 20px; right: 20px; height: 0; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; display: none; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step { position: relative; padding-right: 16px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font: 400 .82rem/1 var(--font-mono); color: var(--white); margin-bottom: 18px; position: relative; transition: background .3s, color .3s; }
.step:hover::before { background: var(--white); color: var(--bg); }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--text-2); margin: 0; }

/* Tijdlijn */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 44px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--white); background: var(--bg); }
.timeline li.now::before { background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.1); }
.timeline .year { font: 400 .82rem/1 var(--font-mono); color: var(--text-3); display: block; margin-bottom: 10px; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--text-2); margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.value .num { font: 400 .78rem/1 var(--font-mono); color: var(--text-3); display: block; margin-bottom: 44px; }
.value p { color: var(--text-2); margin: 0; }

/* Pagina-kop */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 130px)) 0 clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 7rem); max-width: 12em; }

/* Contact */
.contact-mail {
  display: inline-block; font-size: clamp(1.8rem, 6.4vw, 5.6rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1.05;
  text-decoration: none; color: var(--white); word-break: break-word; position: relative;
}
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: var(--white); transform-origin: left; transition: transform .6s var(--ease); }
.contact-mail:hover::after { transform: scaleX(.3); }
.copy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* CTA */
.cta { position: relative; padding: clamp(100px, 14vw, 190px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.6rem, 8vw, 7rem); max-width: 11em; margin: 0 auto .4em; line-height: .98; }
.cta p { color: var(--text-2); max-width: 34em; margin: 0 auto; }
.cta .btn-row { justify-content: center; }
.cta-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%); pointer-events: none; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; font-size: .93rem; color: var(--text-2); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 92px; width: auto; margin-bottom: 18px; }
.site-footer h4 { font: 400 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 8px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-word {
  margin-top: 64px; font-size: clamp(3rem, 15vw, 15rem); font-weight: 700; letter-spacing: -0.06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 .78rem/1.4 var(--font-mono); color: var(--text-3); }
.footer-bottom button { background: none; border: 0; color: var(--text-3); font: inherit; cursor: pointer; padding: 0; }
.footer-bottom button:hover { color: var(--white); }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 250; display: none; place-items: center; background: rgba(0,0,0,.92); padding: 4vh 4vw; cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade .25s ease; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.8); animation: pop .35s var(--ease); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0,0,0,.5); color: var(--white); font-size: 1.3rem; cursor: pointer; }

/* ---------- Animaties bij scrollen ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .02em .22em; margin: -.02em -.02em -.22em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.split-words.visible .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .brand-card .route-bg path { animation: none; }
  html { scroll-behavior: auto; }
  .reveal, .split-words .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .scroll-cue i::after, .typer .caret, .status-pill .live { animation: none !important; }
  .menu, .menu-nav a, .menu-side { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .services, .values, .values.four, .downloads, .downloads.two { grid-template-columns: 1fr; }
  .work-media.brand-card { aspect-ratio: 16 / 10; }
  .brand-card img { width: 70%; }
  .work { grid-template-columns: 1fr; }
  .work-card.span-4, .work-card.span-2, .work-card.span-3, .work-card.span-6 { grid-column: auto; }
  .work-card.span-2 .work-media { min-height: 0; aspect-ratio: 16 / 10; }
  .split, .project-hero-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .menu-inner { grid-template-columns: 1fr; gap: 36px; }
  .menu-preview { display: none; }
  .covers, .covers.six { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 76px; }
  body { font-size: 16px; }
  .brand img { height: 52px; }
  .cmd-btn .cmd-label, .cmd-btn kbd { display: none; }
  .cmd-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-btn { padding-left: 14px; }
  .hero-bottom .container > :last-child { display: none; }
  .meta-list { grid-template-columns: 1fr; }
  .meta-list div:nth-child(odd) { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-meta { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 86vw; }

}


/* ---------- Demopagina (app in de website) ---------- */

body.app-mode { height: 100vh; height: 100dvh; overflow: hidden; }
body.app-mode::after { display: none; }
body.app-mode .site-header::before { opacity: 1; }
body.app-mode .site-header { border-bottom-color: var(--line); }
body.app-mode .cursor-dot, body.app-mode .cursor-ring { display: none; }

.app-page { height: 100%; display: flex; flex-direction: column; padding: calc(var(--header-h) + 16px) var(--pad) 20px; gap: 16px; }

/* Balk boven het venster */
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-bar-title { display: flex; align-items: center; gap: 14px; flex: none; }
.app-wordmark { height: 30px; width: auto; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255,140,30,.35); background: rgba(255,140,30,.08); border-radius: 100px;
  font: 500 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb36b;
}
.live-badge .live { width: 7px; height: 7px; border-radius: 50%; background: #ff8c1e; box-shadow: 0 0 0 0 rgba(255,140,30,.6); animation: pulse-o 2s infinite; }
@keyframes pulse-o { 70% { box-shadow: 0 0 0 7px rgba(255,140,30,0); } 100% { box-shadow: 0 0 0 0 rgba(255,140,30,0); } }
.app-chips { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.app-chips li { font-size: .8rem; color: var(--text-2); padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); background: var(--bg-2); display: inline-flex; align-items: center; gap: 7px; }
.app-chips li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23050505' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.app-bar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text-2); text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
.icon-btn:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.07); }
.icon-btn svg { width: 16px; height: 16px; }

/* Het venster */
.app-stage { position: relative; flex: 1; min-height: 0; display: flex; }
.app-glow {
  position: absolute; inset: 8% 6% -4%; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(ellipse at 30% 100%, rgba(255,140,30,.45), transparent 60%), radial-gradient(ellipse at 80% 0%, rgba(120,150,255,.18), transparent 55%);
}
.app-window {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden; background: #0f1115;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.app-window:fullscreen { border-radius: 0; border: 0; }
.app-window-bar {
  flex: none; height: 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px;
  background: linear-gradient(#1b1d22, #15171b); border-bottom: 1px solid rgba(255,255,255,.07);
}
.app-window-bar .dots { display: flex; gap: 7px; }
.app-window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d44; }
.app-window-bar .dots i:nth-child(1) { background: #ff5f57; } .app-window-bar .dots i:nth-child(2) { background: #febc2e; } .app-window-bar .dots i:nth-child(3) { background: #28c840; }
.app-url {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 8px;
  background: #0c0d10; border: 1px solid rgba(255,255,255,.06);
  font: 400 .76rem/1 var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw;
}
.app-url svg { width: 13px; height: 13px; color: #3ddc84; flex: none; }
.app-window-hint { justify-self: end; font-size: .76rem; color: var(--text-3); }
.app-window-bar code, .demo-steps code { font-family: var(--font-mono); color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 1px 6px; border-radius: 5px; }
.app-window-body { position: relative; flex: 1; min-height: 0; background: #f4f5f7; }
.app-window-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Startscherm */
.demo-start { position: absolute; inset: 0; z-index: 2; overflow: auto; display: grid; place-items: center; padding: 32px 24px; background: #0b0c0f; transition: opacity .5s, transform .6s var(--ease); }
.demo-start.leaving { opacity: 0; transform: scale(.985); pointer-events: none; }
.demo-start-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,12,15,.82) 0%, rgba(11,12,15,.94) 55%, #0b0c0f 100%),
    url("../img/linewise/editor-route.jpg") center 30% / cover no-repeat;
  filter: saturate(.7);
}
.demo-start-inner { position: relative; max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.demo-start-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 20px 50px -14px rgba(255,140,30,.6); margin-bottom: 26px; }
.demo-start h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.045em; margin-bottom: 14px; }
.demo-start .lead { font-size: 1.05rem; margin: 0 auto 26px; }
.demo-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; text-align: left; }
.demo-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.demo-steps b { font: 500 .72rem/1.9 var(--font-mono); color: #ff9d42; flex: none; }
.demo-go { min-height: 56px; padding: 16px 30px; font-size: 1rem; background: #ff8c1e; border-color: #ff8c1e; color: #111; }
.demo-go::before { background: #ffb062; }
.demo-go:hover { color: #111; border-color: #ffb062; }
.demo-meta { margin: 16px 0 0; font-size: .8rem; color: var(--text-3); }

/* Laadscherm */
.demo-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px; background: #0b0c0f; color: var(--text-2); font-size: .9rem; transition: opacity .5s; }
.demo-loading[hidden] { display: none; }
.demo-loading.done { opacity: 0; pointer-events: none; }
.demo-loading img { width: 56px; height: 56px; border-radius: 14px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 40px -6px rgba(255,140,30,.7); } }
.demo-bar { width: 200px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.demo-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: #ff8c1e; animation: load 1.2s var(--ease-in-out) infinite; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.demo-loading p { margin: 0; }

@media (max-width: 1080px) { .app-chips { display: none; } }
@media (max-width: 760px) {
  .app-page { padding: calc(var(--header-h) + 10px) 10px 10px; gap: 10px; }
  .app-wordmark { height: 22px; }
  .app-bar .btn { display: none; }
  .app-window-hint { display: none; }
  .app-window-bar { grid-template-columns: auto 1fr; gap: 10px; }
  .app-url { max-width: 100%; justify-self: start; }
  .demo-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .demo-loading img, .demo-bar span, .live-badge .live { animation: none; } }
