/* Sample Studio — one page, only sliders */
:root{
  --gap: 8px;
  --row-h: max(130px, calc((100vh - 4.5 * var(--gap)) / 4.5)); /* 4.5 sliders in view */
  --card: #efeeea;
  --ink: #111;
  --muted: #6b6b66;
  --line: #dcdbd6;
  --red: #FD4738;
  --ease: cubic-bezier(.33,1,.68,1);
  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-anchor:none}
body{margin:0;font-family:var(--font);color:var(--ink);background:#fff;font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{display:block}
.skip{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:8px 12px;z-index:99}
.skip:focus{left:8px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* NL / EN, floating top right, in Sample red */
.lang-float{position:fixed;top:12px;right:12px;z-index:40;background:rgba(255,255,255,.94);border-radius:16px;padding:5px 8px;box-shadow:0 1px 8px rgba(0,0,0,.08)}
.lang a{font-size:13px;text-decoration:none;color:var(--red);padding:0 4px;opacity:.6}
.lang a[aria-current]{font-weight:600;opacity:1}
.lang a:hover{opacity:1}

/* ---------- rows ---------- */
main{padding:var(--gap) 0 40px}
.row{--rg:var(--gap);--rv:var(--gap);position:relative;margin:calc(var(--rv) - var(--gap)) 0 var(--rv)}
.track{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0;outline:none}
.track::-webkit-scrollbar{display:none}
.reel{display:flex;flex:none;gap:var(--rg,var(--gap));padding:0 var(--gap);will-change:transform}
.track:focus-visible{box-shadow:inset 0 0 0 2px var(--ink)}
.slide,.card{flex:none;height:var(--row-h);margin:0;background:var(--card);position:relative;
  transition:height .65s var(--ease),width .65s var(--ease),opacity .4s ease}

/* photos: a light grey surface until the photo has arrived, then it fades in */
.slide{overflow:hidden}
.slide a{display:block;height:100%}
.slide a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.slide img,.slide video{display:block;height:100%;width:auto;max-width:none;object-fit:cover;-webkit-user-drag:none;user-select:none;transition:opacity .5s ease}
html.js .slide img:not(.ld),html.js .slide video:not(.ld){opacity:0}
/* caption on hover: no shade, white or black per photo (chosen in site.js) */
.slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:0 12px 10px;font-size:12px;color:#fff;opacity:0;transition:opacity .2s}
.slide figcaption.cap-black{color:#111}
.slide.ok{background:transparent}
/* a cut-out chosen in the admin: the tile has the cut-out's proportions, the photo is placed inside it */
.slide.crop a{position:relative;overflow:hidden}
.slide.crop>a>img,.slide.crop>a>video{position:absolute;width:auto;max-width:none}
.slide:hover figcaption,.slide:focus-within figcaption,.row.big .slide figcaption{opacity:1}

/* the Sample tile: white logo over the opening photo */
.hero{background:#b9b6af;transition:height .65s var(--ease),width .65s var(--ease),opacity .4s ease,background-color .5s ease}
.hero>a{transition:opacity .5s ease}
.hero .logo-over{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.hero .logo-over img{width:min(72%,78vw);height:auto;max-width:620px}
html.js .slide .logo-over img{opacity:1}
.hero:not(.logo-in)>a img{opacity:0;animation:safety-show 0s 6s forwards} /* the photo waits for the logo */

/* ---------- text tiles ----------
   One layout for small and big: the text keeps its size and stays top-left; an opened tile only grows in height. */
.card{width:min(340px,82vw);padding:12px 14px;display:flex;flex-direction:column}
.card .idx{font-size:12px;color:var(--muted);margin:0;display:flex;justify-content:space-between;gap:10px}
.card h2{font-size:clamp(15px,1.35vw,20px);line-height:1.12;font-weight:500;margin:6px 0;letter-spacing:-.01em;text-wrap:balance}
.card .meta{font-size:12px;margin:0;color:var(--muted)}
.card .meta strong{color:var(--ink);font-weight:600}
.card .big{font-size:clamp(18px,1.8vw,26px);font-weight:600;letter-spacing:-.02em;margin:0}
/* the running text: one line ending in "…" when small; it rolls out with the tile (max-height driven from site.js) */
.card .body{display:block;flex:0 1 auto;min-height:0;overflow:hidden;margin-top:8px;padding-right:6px;font-size:13px;line-height:1.45}
.card .body p{margin:0 0 .8em}
.row:not(.full) .card:not(.info) .body>:first-child{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.row:not(.full) .card:not(.info) .body>:not(:first-child){display:none}
.row.full:not(.rolling) .card .body{flex:1 1 auto;overflow-y:auto}
/* houding: the bold statement, then the running text */
.card.about{width:min(520px,88vw)}
.card.about>h2{font-size:clamp(14px,1.2vw,17px);margin:6px 0 0}
/* team and contact */
.card.info ul{list-style:none;padding:0;margin:4px 0 0;font-size:13px}
.card.info li{padding:1px 0;border-bottom:1px solid var(--line)}
.card.info address{font-style:normal;font-size:13px;margin-top:4px}
/* team: names; when the slider opens, a short text unfolds under every name */
.card.team .body{flex:1 1 auto;margin-top:0}
.card.team .nm{display:block}
.card.team .bio{display:grid;grid-template-rows:0fr;transition:grid-template-rows .65s var(--ease)}
.card.team .bio>div{overflow:hidden;min-height:0}
.row.full .card.team .bio{grid-template-rows:1fr}
.card.team .bio p{margin:3px 0 8px;font-size:13px;line-height:1.45;color:var(--muted)}
.card.team .bio p+p{margin-top:0}

/* ---------- clicking: the whole tile enlarges its slider; click again (or Esc) to close ---------- */
.card .card-open{position:absolute;inset:0;width:100%;height:100%;background:none;border:0;padding:0;z-index:2;cursor:zoom-in}
.card .card-open:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.row:not(.big) .card,.row:not(.big) .slide{-webkit-user-select:none;user-select:none}
.row:not(.big) .card,.row:not(.big) .slide,.row:not(.big) .slide *{cursor:zoom-in}
.row.big .card,.row.big .slide,.row.big .slide *{cursor:zoom-out}
.row.big .card .body,.row.big .slide figcaption{-webkit-user-select:text;user-select:text;cursor:auto}
.row.big{--row-h:min(80vh,900px);--rg:72px;--rv:54px;z-index:3} /* wide white margins: 72 px between the tiles, 54 px above and below */
/* focus: while one slider is open, the rows around it fade to light, colourless strips */
.row{transition:opacity .65s var(--ease),filter .65s var(--ease)}
/* only white and light greys: the darkest parts end up as a light grey, never black */
html.focus .row:not(.big){opacity:.3;filter:grayscale(1) contrast(.25) brightness(1.7)}
html.focus .row:not(.big):hover{opacity:.45}
.row.sizing .slide,.row.sizing .card{transition:opacity .4s ease} /* height driven frame by frame from site.js */
.row.big .card{overflow:hidden}
.row.big .card .card-open{display:none}

/* slider arrows: a plain arrow in Sample red */
.nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:transparent;color:var(--red);display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .3s;z-index:4}
.nav svg{width:24px;height:24px}
.nav svg path{stroke-width:2.2}
.nav.prev{left:6px}.nav.next{right:6px}
.row:hover .nav:not([disabled]),.nav:focus-visible{opacity:.9}
.nav[disabled]{opacity:0!important;pointer-events:none}
@media (hover:none){.nav{display:none}}

/* ---------- opening ----------
   1. the Sample logo, alone on a light grey, already where it belongs on the Sample tile (2 s)
   2. the Sample tile with its photo; then houding, team and contact
   3. the rows as grey tiles, one after another; each fills up when its text or photo is there
   The order is run by site.js; the animations below are only safety nets in case the script never runs. */
.splash{position:fixed;inset:0;z-index:100;background:#e4e2dc;pointer-events:none;animation:safety-hide .4s 7s forwards;
  --rh:max(130px, calc((100vh - 4.5 * 8px) / 4.5)); --hw:calc(var(--rh) * var(--hr, 1.39)); --lw:min(calc(var(--hw) * .72), 78vw, 620px)}
.splash img{position:absolute;display:block;height:auto;width:var(--lw);left:calc((var(--hw) - var(--lw)) / 2);top:calc(8px + (var(--rh) - var(--lw) * .2391) / 2);transform-origin:0 0}
html.js .splash{animation:none}
.splash.fade{opacity:0;transition:opacity .5s ease}
.splash.gone{display:none}
html.js:not(.landed) .row .hero{background:transparent}
html.js:not(.landed) .row .hero>a,html.js:not(.landed) .row .hero .logo-over{opacity:0}
@media (prefers-reduced-motion:no-preference){
  html:not(.booted) .row .track>:not(.reel),html:not(.booted) .row .reel>*{opacity:0;animation:safety-show 0s 6s forwards}
  html:not(.booted) .row .reel>.in,html:not(.booted) .row .track>.hero,html:not(.booted) .row .reel>.hero{opacity:1;animation:none}
  html:not(.booted) .row .reel>.card:not(.filled)>*{opacity:0}
  html:not(.booted) .row .reel>.card>*{transition:opacity .4s ease}
  html:not(.booted) .row .nav{opacity:0}
}
@keyframes safety-show{to{opacity:1}}
@keyframes safety-hide{to{opacity:0;visibility:hidden}}
/* refresh: back to the starting picture straight away, so every opening reads the same */
html.leaving .splash{display:block!important;opacity:1!important;transition:none!important;animation:none!important}
html.leaving .row .reel>*,html.leaving .row .nav,html.leaving .dev-replay{opacity:0!important;transition:none!important}
/* while building: replay the opening */
.dev-replay{position:fixed;left:14px;bottom:14px;z-index:50;font:inherit;font-size:13px;padding:7px 14px;border:0;border-radius:20px;background:#fff;color:var(--red);box-shadow:0 1px 6px rgba(0,0,0,.15);cursor:pointer}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
  .splash{display:none}
}

/* 404 */
.notfound{max-width:640px;margin:0 auto;padding:18vh 20px}
.notfound h1{font-size:clamp(24px,3vw,36px);font-weight:500;letter-spacing:-.02em;margin:0 0 14px}
.slide figcaption .cr{display:block;margin-top:2px;opacity:.8}
