/* Hallmark · shape: four calm pages on a dark workspace; the edit suite appears twice: the program monitor and the two-track timeline · genre: atmospheric · theme: brand · redesign: full · job: hire · draw: fb4e92
 * paper: oklch(16% 0.015 228) · accent: oklch(72.5% 0.121 218) · display: Archivo 700 · body: Barlow · hero: Poster (the program monitor, full width) · nav: edge-aligned workspace tabs · footer: mast · signature: timecode on the reel, clips on V1 and V2 under a scroll-driven playhead, a card that morphs into a frameless player
 * axes: dark/grotesk-sans/chromatic-cyan · posture: Restrained · contrast: pass · fold: pass · imagery: user footage, YouTube stills of the user films, the user portrait · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: R, the full app layout read as clutter to the owner; cut the bin, the inspector and the panel tabs, kept two editor moments */
/* Hallmark · dropped .mob-port, navVid, navImg, heroVid · the phone copy of the portfolio is now the one responsive grid, and the logo animation file returns 404 on the live server */
/* Hallmark · dropped mmdi, mmp, mmgA, mmgB, mmgC, mmgD, mmgE, mmgF, mmgG, mmgH, mmgI, mmgJ, mmgK, mmgL, mmgM, lbInfoIcon · gradient defs and an icon id the old play triangles used; the new icons are plain currentColor */
/* Hallmark · dropped the eyebrows "Video Editing", "Portfolio", "Diensten", "Over mij", "Let's work together" · 54 names them */
/* Hallmark · reworded "© 2026 Matser Media — Alle rechten voorbehouden" to "© 2026 Matser Media" · 19 names the dash and the stock line */
/* Hallmark · reworded "#portfolio" to "werk.html", "#over" to "over.html", "#diensten" to "over.html", "#contact" to "contact.html" · the owner asked for separate pages */
/* Hallmark · dropped docuThumb · the player reads the card, so the docu still needs no id */
/* Hallmark · dismissed 49 · the long labels are whole portfolio cards whose button text is the project name and kind; they are meant to wrap */
/* Hallmark · dismissed 41 · .lb-panel-rule is a 1px divider and carries no text */
/* Hallmark · dismissed 23 · .t-bar i is a 4px progress line under the monitor, not a fill */
/* Hallmark · answered F4 · the filter tabs mark the pressed one with a 2px underline, not a fill; one filled button recipe */
/* Hallmark · answered F15 · an app grid: panels sit 8px apart, content inside panels keeps its own rhythm */
/* Hallmark · answered F7 · every pill is a control: menu and close buttons, filter tabs, the play chips inside cards */

/* ── Tokens: an edit suite in the Matser teal ── */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.5rem, 5vw, 5.25rem);
  --text-section: clamp(2rem, 2.2vw + 1rem, 3.25rem); --text-title: clamp(1.125rem, 0.4vw + 1rem, 1.25rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1600px; --gutter: 16px; --gap-columns: 8px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  /* the workspace */
  --color-paper: oklch(15.5% 0.016 228);
  --color-paper-2: oklch(19.5% 0.02 226);
  --color-paper-3: oklch(23.5% 0.024 225);
  --color-well: oklch(12% 0.012 230);
  --color-ink: oklch(94.5% 0.01 215);
  --color-ink-2: oklch(81% 0.018 218);
  --color-muted: oklch(67% 0.022 220);
  --color-rule: oklch(30% 0.026 225);
  --color-accent: oklch(72.5% 0.121 218);
  --color-accent-2: oklch(79% 0.11 218);
  --color-accent-ink: oklch(17% 0.03 230);
  --color-focus: oklch(84% 0.13 205);
  --color-clip-1: oklch(55% 0.095 218);
  --color-clip-2: oklch(45% 0.08 222);
  /* names the player and the shared parts read */
  --color-panel: var(--color-paper-2);
  --color-panel-ink: var(--color-ink);
  --color-panel-ink-2: var(--color-ink-2);
  --color-panel-rule: var(--color-rule);
  --color-bright: var(--color-accent);
  --color-deep: var(--color-well);
  --color-frame: oklch(97% 0.006 215);
  --color-scrim: oklch(12% 0.012 230 / 0.86);
  --color-scrim-soft: oklch(12% 0.012 230 / 0.4);
  --color-chip: oklch(12% 0.012 230 / 0.82);

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 700;
  --radius-panel: 10px; --radius-card: 6px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.025em;
  --nav-h: 56px;
  --bar-h: 40px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-lg); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-bright) 35%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.04; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 14ch; font-size: var(--text-display); line-height: 0.98; } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: 52ch; color: var(--color-ink-2); }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
@media (max-width: 60rem) { :root { --gutter: 20px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; --nav-h: 68px; --radius-panel: 16px; --radius-card: 12px; } }
@media (max-width: 40rem) { :root { --gutter: 12px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* one reveal, visible without script */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── Controls ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.pill:hover { background: var(--color-ink); color: var(--color-paper); }
.pill:active { transform: translateY(1px); }
.pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ── Statement: the words light up as you read down ── */
.scrub .w { transition: opacity var(--dur-short) linear; }
.js .scrub .w { opacity: 0.18; }
.js .scrub .w.lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .scrub .w { opacity: 1; } }
.intro .pill { justify-self: start; margin-top: var(--space-xs); }

/* ── Cards: scrub the stills like a bin in Premiere ── */
.js .pc-frame .scrub-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.pc-frame .scrub-frame.on { opacity: 1; }
.js .pc-head { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2px; background: var(--color-bright); opacity: 0; transform: translateX(var(--x, 0px)); pointer-events: none; }
.js .pc-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: var(--color-scrim-soft); opacity: 0; pointer-events: none; }
.pc-bar::after { content: ""; position: absolute; inset: 0; background: var(--color-bright); transform: scaleX(var(--f, 0)); transform-origin: left; }
.pc-open.is-scrubbing .pc-head, .pc-open.is-scrubbing .pc-bar { opacity: 1; }
.pc-open.is-scrubbing .pc-frame img { opacity: 1; }

/* ── The cinema: our own player around the YouTube stream ── */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: none; grid-template-rows: auto minmax(0, 1fr); background: var(--color-deep); color: var(--color-panel-ink); }
.lightbox.open { display: grid; }
.lightbox ::selection { color: var(--color-panel-ink); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--gutter); }
.lb-now { min-width: 0; overflow: hidden; color: var(--color-panel-ink-2); font-size: var(--text-md); white-space: nowrap; text-overflow: ellipsis; }
.lb-actions { display: flex; gap: var(--space-xs); flex-shrink: 0; }
.lb-btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-panel-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-panel-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.lb-btn:hover { border-color: var(--color-bright); }
.lb-btn:active { transform: translateY(1px); }
.lb-btn:focus-visible { outline: 2px solid var(--color-bright); outline-offset: 2px; }
.lb-btn[aria-pressed="true"] { border-color: var(--color-bright); box-shadow: inset 0 0 0 1px var(--color-bright); }
.lb-btn svg { width: 16px; height: 16px; }

.lb-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0 var(--gutter) var(--space-xl); }
.lb-body.panel-open { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--space-xl); }
.lb-video-side { display: grid; place-items: center; min-height: 0; min-width: 0; }

.lb-stage { --crop: 84px; position: relative; width: min(100%, calc((100dvh - 9rem) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-card); background: var(--color-deep); }
.lb-vertical .lb-stage { width: min(100%, calc((100dvh - 9rem) * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.lb-yt { position: absolute; inset: calc(-1 * var(--crop)) 0; }
.lb-yt iframe, .lb-yt > div { width: 100%; height: 100%; border: 0; }
.lb-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.lb-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: var(--color-deep); transition: opacity var(--dur-long) var(--ease-out); }
.lb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.lb-stage.is-playing .lb-cover { opacity: 0; pointer-events: none; }
.lb-bigplay { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 56px; padding: 0 var(--space-lg) 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-frame); color: var(--color-accent-ink); font-size: var(--text-md); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lb-bigplay:hover { background: var(--color-paper-2); }
.lb-bigplay:active { transform: translateY(1px); }
.lb-bigplay:focus-visible { outline: 2px solid var(--color-bright); outline-offset: 3px; }
.lb-bigplay svg { width: 22px; height: 22px; color: var(--color-accent-ink); }
.lb-spinner { position: relative; width: 40px; height: 40px; border: 3px solid var(--color-panel-rule); border-top-color: var(--color-bright); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-cover[data-state="loading"] .lb-bigplay, .lb-cover:not([data-state="loading"]) .lb-spinner { display: none; }

.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xl) var(--space-md) var(--space-sm); background: linear-gradient(to top, var(--color-scrim), transparent); opacity: 1; transition: opacity var(--dur-short) var(--ease-out); }
.lb-stage.is-playing.is-idle .lb-bar { opacity: 0; }
.lb-stage.is-playing.is-idle { cursor: none; }
.lb-ctl { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-panel-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.lb-ctl:hover { background: color-mix(in oklab, var(--color-panel-ink) 14%, transparent); }
.lb-ctl:active { transform: scale(0.96); }
.lb-ctl:focus-visible { outline: 2px solid var(--color-bright); outline-offset: 0; }
.lb-ctl svg { width: 20px; height: 20px; }
.lb-time { flex-shrink: 0; color: var(--color-panel-ink-2); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.lb-track { position: relative; flex: 1; min-width: 0; height: 44px; }
.lb-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: calc(-1 * var(--space-3xs)); border-radius: 2px; background: var(--color-panel-rule); }
.lb-fill { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: calc(-1 * var(--space-3xs)); border-radius: 2px; background: var(--color-bright); transform: scaleX(var(--p, 0)); transform-origin: left; }
.lb-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.lb-seek::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.lb-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: calc(-1 * var(--space-2xs)); border-radius: 50%; background: var(--color-panel-ink); }
.lb-seek::-moz-range-track { height: 4px; background: transparent; }
.lb-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--color-panel-ink); }
.lb-seek:focus-visible { outline: 2px solid var(--color-bright); outline-offset: 0; }
.lb-seek:disabled { opacity: 0.55; cursor: not-allowed; }
.lb-icon-alt { display: none; }
.is-playing [data-act="play"] .lb-icon, .is-muted [data-act="mute"] .lb-icon, .is-full [data-act="fs"] .lb-icon { display: none; }
.is-playing [data-act="play"] .lb-icon-alt, .is-muted [data-act="mute"] .lb-icon-alt, .is-full [data-act="fs"] .lb-icon-alt { display: block; }

.lb-panel { display: none; min-height: 0; overflow-y: auto; padding-right: var(--space-xs); }
.lb-panel.open { display: block; }
.lb-panel-inner { display: grid; gap: var(--space-md); }
.lb-panel-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.lb-panel-logos img { width: auto; height: 32px; max-width: 120px; object-fit: contain; filter: brightness(0) invert(1); }
.lb-panel-tag { color: var(--color-panel-ink-2); font-size: var(--text-sm); }
.lb-panel-title { font-size: var(--text-xl); color: var(--color-panel-ink); }
.lb-panel-rule { height: 1px; background: var(--color-panel-rule); }
.lb-panel-desc { color: var(--color-panel-ink-2); line-height: 1.65; }
@media (max-width: 60rem) {
  .lb-body.panel-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--space-lg); }
  .lb-stage { --crop: 64px; }
  .lb-btn .lb-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; } }

/* ── Page changes cut like an edit: a wipe ── */
@view-transition { navigation: auto; types: page; }
@media (prefers-reduced-motion: no-preference) {
  html:active-view-transition-type(page)::view-transition-old(root) { animation: 480ms var(--ease-in-out) both vt-dim; }
  html:active-view-transition-type(page)::view-transition-new(root) { animation: 620ms var(--ease-out) both vt-wipe; }
  ::view-transition-group(cinema) { animation-duration: 520ms; animation-timing-function: var(--ease-out); }
}
@keyframes vt-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-dim { to { opacity: 0.4; transform: translateX(-4%); } }

/* ── The workspace bar ── */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--nav-h); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 100%; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.nav-logo img { width: auto; height: 30px; }
.nav-logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav-links { display: flex; align-items: stretch; gap: var(--space-2xs); height: var(--nav-h); }
.nav-links a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 var(--space-md); color: var(--color-muted); font-size: var(--text-md); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: var(--space-md); right: var(--space-md); bottom: -1px; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform var(--dur-short) var(--ease-out); }
.nav-links a:hover { color: var(--color-ink); }
.nav-links a:active { color: var(--color-accent); }
.nav-links a[aria-current="page"] { color: var(--color-ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.nav .hamburger { display: none; justify-self: end; }
@media (max-width: 60rem) { .nav nav { display: none; } .nav .hamburger { display: inline-flex; } .nav-logo img { height: 26px; } }

.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.pill:hover { border-color: var(--color-ink-2); background: var(--color-paper-3); }
.pill:active { transform: translateY(1px); }
.pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.mob-menu { position: fixed; inset: 0; z-index: var(--z-modal); display: none; flex-direction: column; justify-content: center; gap: var(--space-xs); padding: var(--space-2xl) var(--space-lg); background: var(--color-paper-2); color: var(--color-ink); }
.mob-menu.open { display: flex; }
.mob-menu a { display: block; padding: var(--space-xs) 0; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; font-size: var(--text-3xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.mob-menu a:hover { color: var(--color-accent); }
.mob-menu a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.mob-close { position: absolute; top: var(--space-xs); right: var(--space-md); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; }
.mob-close:hover { border-color: var(--color-accent); }
.mob-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ── Panels ── */
.app { display: grid; gap: var(--gap-columns); max-width: var(--container); margin-inline: auto; padding: var(--gap-columns) var(--gutter) var(--gutter); }
.pnl { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.pnl-bar { display: flex; align-items: stretch; justify-content: space-between; gap: var(--space-md); min-height: var(--bar-h); padding: 0 var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); flex-shrink: 0; }
.pnl-tab { position: relative; display: inline-flex; align-items: center; max-width: none; margin: 0; font-family: var(--font-body); font-stretch: 100%; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; line-height: 1; color: var(--color-ink); white-space: nowrap; }
.pnl-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-accent); }
.pnl-tab span { color: var(--color-muted); font-weight: 400; margin-right: var(--space-2xs); }
.pnl-meta { display: inline-flex; align-items: center; gap: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.pnl-body { position: relative; flex: 1; min-height: 0; padding: var(--space-xl); }
.pnl-body.flush { padding: 0; }
@media (max-width: 40rem) { .pnl-body { padding: var(--space-lg); } .pnl-meta .hide-s { display: none; } }

/* ── Home: the bin beside the program monitor ── */


.monitor { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--color-well); isolation: isolate; }
.monitor video, .monitor .cue { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, var(--color-scrim) 0%, var(--color-scrim-soft) 40%, transparent 70%); pointer-events: none; }
.monitor-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: var(--space-lg); padding: var(--space-2xl) var(--space-xl) var(--space-xl); }
.monitor-text .lead { max-width: 36ch; color: var(--color-ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; transition: color var(--dur-short) var(--ease-out); }
.hero-link:hover { color: var(--color-accent); }
.hero-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hero h1 .w { display: inline-block; }
@media (max-width: 60rem) { .monitor { aspect-ratio: 4 / 5; flex: none; } .monitor-text { padding: var(--space-xl) var(--space-lg) var(--space-lg); } }

/* transport under the monitor */
.transport { display: flex; align-items: center; gap: var(--space-md); min-height: 52px; padding: 0 var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); flex-shrink: 0; }
.transport .tc { color: var(--color-accent); font-size: var(--text-sm); }
.transport .tc-dur { color: var(--color-muted); }
.t-btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: 6px; background: transparent; color: var(--color-ink); font-size: var(--text-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.t-btn:hover { border-color: var(--color-accent); }
.t-btn:active { transform: translateY(1px); }
.t-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.t-btn svg { width: 16px; height: 16px; }
.t-btn .i-play { display: none; }
.t-btn[aria-pressed="true"] .i-pause { display: none; }
.t-btn[aria-pressed="true"] .i-play { display: block; }
.t-bar { position: relative; flex: 1; min-width: 40px; height: 4px; border-radius: 2px; background: var(--color-rule); overflow: hidden; }
.t-bar i { position: absolute; inset: 0; background: var(--color-accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
html:not(.js) .transport { display: none; }
@media (max-width: 40rem) { .transport .tc-dur { display: none; } }

/* ── Statement between the panels ── */
.intro { padding-block: var(--space-4xl) var(--space-3xl); }
.intro-body { display: grid; gap: var(--space-lg); max-width: 56rem; margin-inline: auto; padding-inline: var(--gutter); }
.intro h2 { max-width: 24ch; font-size: clamp(2rem, 2.6vw + 1rem, 3.5rem); line-height: 1.08; }
.intro p { max-width: 50ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.55; }
.intro .pill { justify-self: start; margin-top: var(--space-xs); }

/* ── The timeline: one track, the clip under the playhead plays ── */
.timeline { position: relative; padding-bottom: var(--section-gap-s); }
.tl-sticky { position: relative; display: grid; gap: var(--space-lg); }
.tl-now { display: flex; align-items: baseline; gap: var(--space-lg); min-height: 1.2em; margin: 0; padding-inline: var(--space-xs); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--tracking-display); font-size: var(--text-2xl); line-height: 1.1; color: var(--color-ink); }
.tl-now .tc { font-family: var(--font-mono); font-weight: 500; font-stretch: 100%; letter-spacing: 0; font-size: var(--text-md); color: var(--color-accent); }
.tl-now-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-frame { overflow: hidden; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-well); }
.tl-view { position: relative; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tl-view:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.tl-strip { position: relative; width: max-content; min-width: 100%; padding: 0 var(--space-md); }
.tl-ruler { position: relative; height: 36px; margin-inline: calc(-1 * var(--space-md)); background-image: repeating-linear-gradient(to right, var(--color-rule) 0 1px, transparent 1px 24px); background-size: 100% 6px; background-repeat: repeat-x; background-position: bottom left; border-bottom: var(--rule-hair) solid var(--color-rule); }
.tl-ruler span { position: absolute; bottom: 8px; padding-left: var(--space-2xs); color: var(--color-muted); font-size: var(--text-xs); line-height: 1; }
.tl-track { display: flex; gap: var(--space-sm); padding-block: var(--space-lg); }
.tl-track > li { flex: none; scroll-snap-align: center; }
.clip { width: calc(var(--clip-h) * 16 / 9); transition: opacity var(--dur-long) var(--ease-out); }
.clip .pc-open { display: block; height: var(--clip-h); border-radius: var(--radius-card); overflow: hidden; }
.clip .pc-frame { height: 100%; border-radius: var(--radius-card); }
.clip .pc-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--color-scrim) 0%, transparent 45%); pointer-events: none; }
.clip .pc-text { position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: 2; pointer-events: none; }
.clip .pc-name { font-size: var(--text-md); color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip .pc-meta { font-size: var(--text-xs); }
.clip .pc-play { left: auto; right: var(--space-md); bottom: auto; top: var(--space-md); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.clip .pc-open:hover .pc-play, .clip .pc-open:focus-visible .pc-play, .clip.is-live .pc-play { opacity: 1; }
.clip.is-live .pc-open { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.timeline { --clip-h: clamp(14rem, 21vw, 22rem); }
.tl-playhead { display: none; }

/* desktop with motion allowed: scroll walks the playhead through the films */
.timeline.is-scrub .tl-sticky { position: sticky; top: 88px; }
.timeline.is-scrub .tl-view { overflow: hidden; scroll-snap-type: none; }
.timeline.is-scrub .tl-strip { transform: translateX(var(--tx, 0px)); }
.timeline.is-scrub .clip:not(.is-live) { opacity: 0.45; }
.timeline.is-scrub .clip:not(.is-live):hover { opacity: 0.85; }
.timeline.is-scrub .tl-playhead { position: absolute; top: 0; bottom: 0; left: var(--ph, 40%); z-index: 3; display: block; width: 2px; margin-left: -1px; background: var(--color-accent); pointer-events: none; }
.timeline.is-scrub .tl-playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 14px; border-radius: 2px 2px 7px 7px; background: var(--color-accent); }
@media (max-width: 40rem) { .timeline { --clip-h: 11rem; } .tl-now { font-size: var(--text-xl); flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); } }

/* ── Werk: page title, then the bins in icon view ── */
.page-title { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-lg); padding: var(--space-xl) var(--space-xs) var(--space-lg); }
.page-title h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1; max-width: 12ch; }
.page-title .lead { justify-self: end; max-width: 34ch; }
@media (max-width: 60rem) { .page-title { grid-template-columns: minmax(0, 1fr); padding-inline: 0; } .page-title .lead { justify-self: start; } }
.filters { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.filter-btn { position: relative; min-height: var(--bar-h); padding: 0 var(--space-md); border: 0; background: transparent; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.filter-btn::after { content: ""; position: absolute; left: var(--space-md); right: var(--space-md); bottom: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform var(--dur-short) var(--ease-out); }
.filter-btn:hover { color: var(--color-ink); }
.filter-btn:active { color: var(--color-accent); }
.filter-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.filter-btn[aria-pressed="true"] { color: var(--color-ink); }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
.icons .pc.feature { grid-column: 1 / -1; }
.icons .pc-frame { aspect-ratio: 16 / 9; }
.icons.reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icons.reels .pc-frame { aspect-ratio: 9 / 16; }
.feature .pc-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--tracking-display); font-size: var(--text-2xl); line-height: 1.1; }
@media (max-width: 60rem) { .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .icons.reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .icons { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* cards (shared) */
.pc-open { position: relative; display: grid; gap: var(--space-sm); width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.pc-open:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.pc-frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--color-well); }
.pc-frame > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-short) var(--ease-out); }
.pc-play { position: absolute; left: var(--space-sm); bottom: var(--space-sm); z-index: 2; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 34px; padding: 0 var(--space-md) 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-chip); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.pc-play svg { width: 14px; height: 14px; color: var(--color-accent); }
.pc-open:hover .pc-play { background: var(--color-accent); color: var(--color-accent-ink); }
.pc-open:hover .pc-play svg { color: var(--color-accent-ink); }
.pc-name { display: block; font-size: var(--text-title); font-weight: 500; line-height: 1.25; color: var(--color-ink); }
.pc-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-3xs); color: var(--color-muted); font-size: var(--text-sm); }

/* ── Calm layout: one idea per screen, the edit suite only where it earns it ── */
.app { gap: 0; grid-template-columns: minmax(0, 1fr); }
.app > * { min-width: 0; }
.nav { height: 72px; --nav-h: 72px; }
.nav-links a { font-size: var(--text-md); }
.nav-logo img { height: 34px; }
.hero { height: calc(100svh - 72px - 2 * var(--gap-columns)); height: calc(100dvh - 72px - 2 * var(--gap-columns)); min-height: 560px; max-height: 1040px; }
.hero .monitor { flex: 1; }
.monitor-text { padding: var(--space-3xl) var(--space-2xl) var(--space-2xl); }
@media (max-width: 60rem) { .hero { height: auto; max-height: none; min-height: 0; } .hero .monitor { flex: none; aspect-ratio: 4 / 5; } .monitor-text { padding: var(--space-xl) var(--space-lg) var(--space-lg); } }

.intro { display: grid; justify-items: start; gap: var(--space-lg); max-width: 60rem; margin-inline: auto; padding: var(--section-gap) var(--gutter) var(--section-gap-s); }
.intro h2 { max-width: 24ch; font-size: clamp(2rem, 2.8vw + 1rem, 3.75rem); line-height: 1.08; }
.intro .lead { max-width: 50ch; }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl); padding-inline: var(--space-xs); }
.sec-head .lead { max-width: 40ch; }

.close { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; padding: var(--section-gap-s) var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.close h2 { font-size: var(--text-display-s); max-width: 14ch; }
.close .lead { margin-top: var(--space-md); max-width: 44ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }
@media (max-width: 60rem) { .close { grid-template-columns: minmax(0, 1fr); } .close-actions { justify-content: flex-start; } }

.work { padding-bottom: var(--section-gap-s); }
.work .filters { margin: 0 0 var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.work .filter-btn { min-height: 48px; font-size: var(--text-md); }
.work .filter-btn:first-child { padding-left: var(--space-xs); }
.group-title { margin: 0 0 var(--space-lg); padding-inline: var(--space-xs); font-size: var(--text-xl); }
#reels { margin-top: var(--space-3xl); }
.icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); align-items: start; }
.icons .pc.feature { grid-column: span 2; grid-row: span 2; }
.icons .pc-name { font-size: var(--text-md); }
.icons .pc-meta { font-size: var(--text-xs); }
.icons .pc.feature .pc-name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--tracking-display); font-size: var(--text-xl); line-height: 1.15; }
.icons .pc-play { min-height: 30px; font-size: var(--text-xs); }
.icons.reels { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-md); }
.icons.reels .pc-play { display: none; }
.icons.reels .pc-name { font-size: var(--text-sm); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-lg); padding-inline: var(--space-xs); }
.group-head .group-title { margin: 0; padding: 0; }
.group-head p { color: var(--color-muted); font-size: var(--text-sm); }
@media (max-width: 60rem) { .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .icons .pc.feature { grid-row: auto; } .icons.reels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .icons.reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; padding: var(--space-2xl) var(--space-xs) var(--section-gap-s); }
.about-photo { margin: 0; overflow: hidden; border-radius: var(--radius-panel); aspect-ratio: 4 / 5; background: var(--color-well); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.about-text { display: grid; gap: var(--space-lg); }
.about-text h1 { font-size: var(--text-display-s); max-width: 12ch; margin-bottom: var(--space-xs); }
.about-text p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.6; max-width: 56ch; }
.about-text strong { color: var(--color-ink); font-weight: 500; }
.about-text .about-open { color: var(--color-accent); }
.tools { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tools li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); }
@media (max-width: 60rem) { .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .about-photo { max-width: 28rem; } }

.services { padding: var(--section-gap-s) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-xl); align-items: start; }
.svc-main h3 { font-size: var(--text-3xl); }
.svc-main p { font-size: var(--text-lg); }
.svc-side { background: transparent; border: var(--rule-hair) solid var(--color-rule); }
.svc-side h3 { font-size: var(--text-xl); }
.svc-side p, .svc-side li { font-size: var(--text-sm); }
.svc-side li { min-height: 40px; }
.svc { display: grid; align-content: start; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-panel); background: var(--color-paper-2); }
.svc h3 { font-size: var(--text-2xl); }
.svc p { color: var(--color-ink-2); max-width: 48ch; }
.svc ul { display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.svc li { display: flex; align-items: center; gap: var(--space-sm); min-height: 48px; border-bottom: var(--rule-hair) solid var(--color-rule); }
.svc li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent); }
@media (max-width: 60rem) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc { padding: var(--space-lg); } }

.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); padding: var(--space-3xl) var(--space-xs) var(--section-gap-s); }
.contact h1 { font-size: clamp(2.75rem, 5.5vw, 6rem); line-height: 0.98; max-width: 12ch; }
.contact .lead { margin-top: var(--space-lg); max-width: 40ch; }
.mail-big { display: inline-block; margin-top: var(--space-xl); max-width: 100%; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: 112%; letter-spacing: var(--tracking-display); font-size: clamp(1.375rem, 2.6vw, 2.75rem); line-height: 1.1; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; overflow-wrap: break-word; transition: color var(--dur-short) var(--ease-out); }
.mail-big:hover { color: var(--color-accent); }
.mail-big:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.settings { display: grid; align-content: start; border-top: var(--rule-hair) solid var(--color-rule); }
.settings li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--space-md); min-height: 64px; border-bottom: var(--rule-hair) solid var(--color-rule); }
.settings .k { color: var(--color-muted); font-size: var(--text-sm); }
.settings a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.settings a:hover { color: var(--color-accent); }
.settings a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.settings span:not(.k) { font-size: var(--text-lg); }
@media (max-width: 60rem) { .contact { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }

.footer { border-top: var(--rule-hair) solid var(--color-rule); }
.footer-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-2xl); align-items: start; max-width: var(--container); margin-inline: auto; padding: var(--space-3xl) calc(var(--gutter) + var(--space-xs)) var(--space-2xl); }
.footer-logo { width: min(100%, 260px); height: auto; }
.footer-col { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.footer-col h2 { margin-bottom: var(--space-xs); color: var(--color-ink); font-family: var(--font-body); font-stretch: 100%; font-weight: 500; font-size: var(--text-md); letter-spacing: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.footer-col a:hover { color: var(--color-accent); }
.footer-col a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 60rem) { .footer-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
