/* Character pitch: light "model sheet" skin over the GN pitch template.
   Paper grey like the turnaround boards, orange accent, frameless media. */
:root{--paper:#ECEBE7;--ink-line:#151515;--display:"Bricolage Grotesque",Inter,system-ui,sans-serif;--r:6px}

h1,h2,.wtitle h2,.fmeta h1,.rhead h1{font-family:var(--display);font-weight:800;letter-spacing:-.03em;line-height:.9}
.kicker,.rhead .kicker{color:var(--accent);font-weight:600;letter-spacing:.12em}

/* paper behind every light slide */
.slide.light{background:var(--paper)}
.slide.light .fmeta .blurb,.slide.light .blurb{color:var(--muted)}
.slide.light .fmeta .credit{color:var(--muted)}
.slide.light .film-play{border-color:#fff;background:rgba(21,21,21,.35)}

/* cover: video bleeds right, paper fades in from the left */
.slide.coverv.light .cshade{background:linear-gradient(90deg,var(--paper) 14%,rgba(236,235,231,.82) 38%,rgba(236,235,231,0) 66%),linear-gradient(0deg,rgba(236,235,231,.9),transparent 30%)}
.slide.coverv.light .cvid{opacity:1}
.slide.coverv.light h1{color:var(--ink-line)}
.slide.coverv.light .sub{color:#3d3b37}
.slide.coverv.light .cc{color:#3d3b37;text-shadow:none}

/* media: no frames, no black mattes, just a soft corner */
.slide.light .wcell,.slide.light .rcell,.slide.light .fview video,.slide.light .fthumb img{border:0;border-radius:var(--r);background:#dcdad4;box-shadow:none}
.slide.light .fview video{background:transparent}
.slide.light .rcell video,.slide.light .rcell img{background:transparent}
.slide.light .rcell img{object-fit:cover}

/* grid walls on paper */
.slide.light .gwall{inset:84px var(--pad) 104px;gap:12px;background:transparent;counter-reset:mv}
.slide.light .wcell{overflow:hidden}
.slide.light .wcell::after{display:none}
.slide.light .wtitle{background:var(--paper);padding:0 clamp(8px,1.4vw,24px) 0 0}
.slide.light .wtitle h2{color:var(--ink-line);font-size:clamp(28px,3.2vw,54px)}
.slide.light .wtitle p{color:var(--muted)}
.slide.light .wtitle .tg{color:var(--accent);font-weight:600}
.wcell .wposter{z-index:0}

/* move labels on grid walls, numbered */
.slide.light .wcell.has-role{counter-increment:mv}
.slide.light .wcell.has-role::before{display:none}
.slide.light .wcell .role{position:absolute;left:8px;bottom:8px;z-index:2;max-width:none;display:inline-flex;align-items:center;gap:7px;padding:5px 9px 5px 6px;background:var(--paper);color:var(--ink-line);border-radius:4px;font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1;pointer-events:none}
.slide.light .wcell .role::before{content:counter(mv,decimal-leading-zero)}
.slide.light .wcell .role::before{background:var(--accent);color:#fff;border-radius:2px;padding:2px 4px;font-size:10px}

/* reference walls on paper */
.slide.ratiowall.light,.slide.ratiowall.light .rwall{background:var(--paper)}

/* reserve the player box before the video metadata arrives */
.slide.light .fstill.landscape .fview video{aspect-ratio:16/9;height:calc(100vh - 340px);width:auto}

/* dark contact slide: put the template's light-on-dark ink back */
body:not(.light-slide){--ink:#f4f6fb;--muted:#97a0b4}

@media (max-width:900px){
  .slide.light .gwall{inset:auto;position:relative;gap:8px;margin:0;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .slide.light .fstill.landscape .fview video{height:auto;width:100%}
}

/* portrait films: stills as a grid at the film's height, sized in app.js gridThumbs */
.fstill.portrait .fstage:has(+ .fgrid){justify-content:flex-end}
.fstill.portrait .fthumbs.fgrid{display:grid;gap:10px;align-content:center;max-height:none}
.fstill.portrait .fthumbs.fgrid .fthumb img{width:100%;height:auto;max-height:none;object-fit:cover}

/* still images in a moves wall (Teo model sheet): show whole, on the sheet's own paper grey */
.slide.light .wcell.openable:not(:has(video)){background:#d9d8d6}
.slide.light .wcell.openable:not(:has(video)) img{object-fit:contain}

@media (max-width:900px){
  /* nine-move walls: three columns so the whole wall fits above the dock */
  .slide.light .gwall:has(> .wcell:nth-child(10)){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .slide.light .gwall:has(> .wcell:nth-child(10)) .wtitle{grid-column:1/-1!important}
  /* model sheet takes a full row at its own ratio so the 2x2 loops below stay even */
  .slide.light.gridwall .gwall .wcell.openable:not(:has(video)){grid-column:1/-1!important;aspect-ratio:2200/1228}
  /* films: text, film and stills stacked as one block, no dead space between them */
  .fstill.landscape{justify-content:center}
  .fstill.landscape .fstage{flex:0 1 auto}
  /* contact title wraps instead of running off screen */
  .slide.cta.gn-da.title-caps h1,
  body.serif .slide.cta.gn-da.title-caps h1{white-space:normal;width:auto;max-width:100%;font-size:clamp(28px,9vw,40px)}
}
/* short phones (SE and the like): flatter cells, sheet back to one cell, so walls still clear the dock */
@media (max-width:900px) and (max-height:740px){
  .slide.light.gridwall .gwall .wcell:not(.wtitle){aspect-ratio:16/10}
  .slide.light.gridwall .gwall .wcell.openable:not(:has(video)){grid-column:span 1!important;aspect-ratio:16/10}
  .slide.light.gridwall .gwall:has(> .wcell > img:not(.wposter)) .wcell:not(.wtitle){aspect-ratio:16/9}
}
