/* The film lives between the process and the first real project. Both neighbours
   slide over the same stage so neither hand-off leaves an empty screen. */
.studio-reel-bridge {
  position:relative;
  z-index:4;
  isolation:isolate;
  margin-top:-12svh;
  background:#211829;
  color:#f7f3e8;
}
.studio-process-link {
  display:grid;
  grid-template-columns:1fr auto;
  width:100%;
  min-height:44px;
  align-items:center;
  column-gap:18px;
}
.studio-process {
  row-gap:clamp(26px,4vw,62px);padding-bottom:clamp(26px,4vw,58px);
  background:linear-gradient(180deg,#1c1521,#211829 clamp(140px,24svh,260px));
}
.studio-process .studio-master-frame { grid-column:1/-1; }
.studio-process .studio-master-media { aspect-ratio:2.06; }
.studio-process-pane {
  position:absolute;top:0;left:0;width:0;height:0;transform-origin:0 0;visibility:hidden;
  background:#152638 center / cover no-repeat;
}
/* Request the laptop frame when the desk image starts loading. */
:where([data-studio-image][src]) ~ .studio-process-pane {
  background-image:url('assets/reel/hand-hd-eerste-beeld.jpg');
}
.studio-desk-play {
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;width:clamp(25px,3.2vw,46px);aspect-ratio:1;
  border:1px solid #ffead6a8;border-radius:50%;background:#241820e6;color:#fff0dc;
  box-shadow:0 2px 8px #100a14a0;
}
.studio-desk-play::before {
  content:"";width:0;height:0;margin-left:2px;
  border-block:5px solid transparent;border-left:8px solid currentColor;
}
.studio-process-pane:hover .studio-desk-play,.studio-process-pane:focus-visible .studio-desk-play {
  color:#211829;background:#ffecd6;
}
.studio-process-pane.is-film-playing .studio-desk-play { visibility:hidden; }
@media(prefers-reduced-motion:reduce) { .studio-desk-play { display:none; } }
.studio-process-note {
  max-width:28ch;
  margin:clamp(20px,3vw,44px) 0 0;
  color:#e9dcd9;
  font-size:clamp(16px,2vw,23px);
  line-height:1.45;
}
.studio-process-pane.is-film-complete { background-image:url('assets/reel/hand-hd-laatste-beeld.jpg'); }
.studio-reel-flyout {
  position:fixed;
  top:0;
  left:0;
  z-index:18;
  pointer-events:none;
  overflow:hidden;
  background:#17141d;
  visibility:hidden;
  transform-origin:0 0;
  will-change:transform;
}
.studio-reel-flyout video { display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#17141d; }
.studio-reel-sticky { position:relative;aspect-ratio:16/9;overflow:hidden; }
.studio-reel-aperture { position:absolute;inset:0; }
.studio-reel-film { display:block;width:100%;height:100%;object-fit:cover; }
.studio-reel-bridge.is-enhanced { height:0;margin:0; }
.studio-reel-bridge.is-enhanced .studio-reel-sticky { display:none; }
#studio-work {
  padding-top:clamp(26px,3.5vw,55px);
  position:relative;
  z-index:14;
  margin-top:0;
  border-radius:clamp(20px,3vw,42px) clamp(20px,3vw,42px) 0 0;
  box-shadow:0 -28px 80px #17141d66;
}
.studio-process-work {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  gap:.55em;
  color:#fae7d5;
  text-underline-offset:.25em;
}
html[lang="nl"] :is(.studio-process-work,.studio-reel-controls,.studio-own-case) [lang="en"][hidden] { display:none; }
html[lang="en"] :is(.studio-process-work,.studio-reel-controls,.studio-own-case) [lang="nl"] { display:none; }
html[lang="en"] :is(.studio-process-work,.studio-reel-controls,.studio-own-case) [lang="en"][hidden] { display:inline; }
.studio-reel-panel {
  position:fixed; z-index:19; bottom:max(16px,env(safe-area-inset-bottom)); right:clamp(14px,4vw,58px);
  display:flex; align-items:center; max-width:calc(100vw - 28px);
}
.studio-reel-panel:has(.studio-reel-controls:not([hidden])) {
  padding:3px 12px; border:1px solid #cfae9655; border-radius:6px;
  background:#211829ed; color:#fff4e8;
}
.studio-reel-status { margin:0; font-size:14px; }
.studio-reel-status:not(:empty) { margin-inline-end:14px; }
.studio-reel-controls:not([hidden]) { display:flex; align-items:center; gap:14px; }
.studio-reel-controls progress { width:clamp(42px,12vw,125px); height:6px; accent-color:#f0ab80; }
.studio-reel-controls a { display:inline-flex; flex-shrink:0; align-items:center; gap:.4em; min-height:44px; color:inherit; }
.studio-reel-controls a:focus-visible,.studio-case-project:focus-visible { outline:2px solid #d2f662; outline-offset:3px; }
.studio-own-case {
  width:min(100%,1120px);margin:clamp(22px,2.5vw,34px) auto;
  padding:clamp(19px,3vw,36px) 0;
  border-block:1px solid #b38b7259;color:#f3e3d7;text-align:center;
}
.studio-own-case h3 { margin:0 0 24px; font-size:clamp(29px,4.7vw,65px); letter-spacing:-.05em; }
.studio-own-case dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(17px,4vw,50px); margin:0; text-align:left; }
.studio-own-case dt { color:#efac82; font-weight:700; }
.studio-own-case dd { max-width:33ch; margin:.45em 0 0; line-height:1.56; }
.studio-case-project {
  display:inline-flex; align-items:center; gap:.3em; min-height:44px; margin-top:18px; padding:0; border:0; background:transparent;
  color:#d2f662; font:inherit; text-decoration:underline; text-underline-offset:.22em; cursor:pointer;
}
@media(max-width:650px){.studio-own-case dl {grid-template-columns:1fr;}}
@media(max-width:750px) {
  .studio-process .studio-master-media { aspect-ratio:16/10; }
  :where([data-studio-image][src]) ~ .studio-process-pane { background-image:url('assets/reel/hand-hd-eerste-beeld-mobiel.jpg'); }
  .studio-process-pane.is-film-complete { background-image:url('assets/reel/hand-hd-laatste-beeld-mobiel.jpg'); }
}
@media(prefers-reduced-motion:reduce) {
  .studio-reel-flyout,.studio-process-link { display:none; }
  .studio-process-pane { pointer-events:none; }
  #studio-work { border-radius:0;box-shadow:none; }
}
.studio-case-irene {
  display:grid;
  grid-template-columns:minmax(0,1fr);grid-template-areas:none;
  width:min(100%,1120px);margin-inline:auto;
  gap:clamp(8px,1.15vw,14px);
  padding:clamp(12px,1.45vw,20px);
  background:linear-gradient(140deg,#302228,#21191e 80%);
}
.studio-case-irene h3 {
  margin:0;color:#f9ece3;
  font-size:clamp(23px,2.2vw,32px);font-weight:500;letter-spacing:-.045em;
}
.studio-irene-intro {
  display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 18px;
}
.studio-irene-intro p { margin:0;color:#edcebc;font-size:.875rem; }
.studio-irene-still-hint { display:none; }
@media(prefers-reduced-motion:reduce) {
  .studio-irene-motion-hint,.studio-irene-play { display:none!important; }
  .studio-irene-still-hint { display:inline; }
}
.studio-irene-doors { display:flex;gap:clamp(5px,.8vw,12px); }
.studio-irene-composition {
  --door-gap:clamp(16px,2.3vw,34px);
  --door-heading-inset:clamp(10px,1.2vw,17px);
  display:grid;grid-template-columns:minmax(0,1fr);row-gap:var(--door-gap);
}
.studio-irene-composition .studio-showcase-intro {
  width:min(100%,1120px);margin:0 auto;padding-bottom:var(--door-heading-inset);
}
.studio-irene-composition .studio-own-case {
  margin-top:0;padding-top:var(--door-heading-inset);
}
@media(prefers-reduced-motion:no-preference) {
  #studio-work { overflow-x:clip;overflow-anchor:none; }
  .studio-irene-stage[data-scroll-stage] {
    min-height:calc(var(--irene-copy-height,0px) + var(--irene-travel,0px));
    overflow-y:clip;
  }
  .studio-irene-stage[data-scroll-stage] .studio-irene-composition {
    --irene-full-lane:var(--irene-lane-height);
    position:sticky;top:var(--irene-composition-pin);row-gap:0;
    height:var(--irene-copy-height);
    grid-template-rows:max-content calc(var(--irene-full-lane) * var(--irene-lane-factor,1)) max-content;
  }
  .studio-irene-stage[data-scroll-stage] .studio-irene-composition:has(.studio-case-irene:is(:focus-visible,:has(:focus-visible))) {
    --irene-lane-factor:1;
    --irene-rule-strength:100%;
    height:auto;
  }
  .studio-irene-stage[data-scroll-stage] .studio-own-case {
    border-top-color:color-mix(in srgb,#b38b7259 var(--irene-rule-strength,100%),transparent);
  }
  .studio-irene-stage[data-scroll-stage] .studio-case-irene {
    position:relative;align-self:start;margin-top:var(--door-gap);z-index:1;
    transform:translateX(var(--irene-shift,0px));
    --irene-mask-bottom:max(0px,calc(var(--irene-card-size) + var(--door-gap) - var(--irene-full-lane) * var(--irene-lane-factor,1)));
    mask-image:linear-gradient(to bottom,#000 calc(100% - var(--irene-mask-bottom) - min(12px,var(--irene-mask-bottom))),transparent calc(100% - var(--irene-mask-bottom)));
  }
  .studio-irene-stage[data-scroll-stage] .studio-case-irene:is(:focus-visible,:has(:focus-visible)) {
    transform:none;mask-image:none;
  }
  .studio-irene-stage[data-scroll-stage] .studio-case-irene::after {
    content:"";position:absolute;inset:0 auto auto 0;
    width:min(28%,180px);height:1px;border-radius:inherit;
    background:linear-gradient(90deg,#f49276,#ed735b58 75%,transparent);
    box-shadow:0 0 10px #ed735b76;pointer-events:none;
    opacity:0;transition:opacity .24s ease;
  }
  .studio-irene-stage[data-stage-ready] .studio-case-irene::after { opacity:.9; }
}
#studio-work .studio-cases { margin-top:clamp(14px,2vw,28px); }
#studio-work .studio-seam-edibles { height:clamp(41px,5vw,68px); }
.studio-irene-door {
  position:relative;isolation:isolate;overflow:hidden;
  flex:1 1 0;min-width:0;height:clamp(130px,18vw,213px);
  border:1px solid #e8bda44d;border-radius:5px;
  background:#352526;color:#fff3e8;
  text-align:left;padding:0;
}
.studio-irene-door[aria-pressed="true"] { flex-grow:1.85;border-color:#efbc94; }
.studio-irene-door video,.studio-irene-door::after { position:absolute;inset:0;width:100%;height:100%; }
.studio-irene-door video { object-fit:cover; }
.studio-irene-door video[data-mobile-poster]:not([src]) { object-position:46% center; }
@media(max-width:750px) {
  .studio-irene-door video[data-mobile-poster]:not([src]) { object-position:center 69%; }
}
.studio-irene-door::after {
  content:"";z-index:1;pointer-events:none;
  background:linear-gradient(0deg,#160f14eb,transparent 48%);
}
.studio-irene-door-label {
  position:absolute;z-index:2;bottom:0;left:0;
  padding:clamp(7px,1.1vw,16px);
  font-size:clamp(.78rem,1.3vw,1.08rem);font-weight:620;
}
.studio-irene-play {
  position:absolute;z-index:2;right:7px;top:7px;display:grid;place-items:center;
  width:26px;height:26px;border-radius:50%;background:#25191dce;border:1px solid #ebd2c389;
}
.studio-irene-play::before {
  content:"";width:0;height:0;
  border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid currentColor;
}
.studio-irene-door[data-playing] .studio-irene-play::before { height:8px;border:0;border-left:2px solid;border-right:2px solid;width:5px; }
.studio-irene-door:focus-visible { outline:2px solid #d2f662;outline-offset:2px;z-index:3; }
.studio-irene-choice {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 24px;
}
.studio-irene-question {
  margin:0;color:#f9ece3;font-size:.875rem;line-height:1.45;
}
.studio-irene-destination {
  justify-self:end;display:inline-flex;align-items:center;gap:10px;min-height:44px;color:#edbb9e;
  text-decoration:underline;text-underline-offset:4px;
}
html[lang="en"] .studio-case-irene [lang="nl"] { display:none; }
html[lang="en"] .studio-case-irene [lang="en"] { display:inline; }
@media(min-width:651px) and (prefers-reduced-motion:no-preference) {
  .studio-irene-door { transition:flex-grow .48s cubic-bezier(.22,.75,.25,1),border-color .3s; }
}
@media(max-width:650px) {
  .studio-irene-doors { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-irene-door { height:clamp(85px,25vw,146px); }
  .studio-irene-choice { grid-template-columns:minmax(0,1fr); }
  .studio-irene-question { min-height:1.45em; }
  .studio-irene-destination { font-size:.9rem; }
}
@media(max-width:360px) {
  .studio-irene-question { min-height:2lh; }
}
