/* Refinements from Jordan's notes, 28 Nov. Loaded last. */

/* The opening sits on its own panel, rounded at the top and the bottom. */
.opening-reel{margin:0;border-radius:clamp(1.8rem,3.6vw,3.6rem);border:0;border-top:1px solid #e7d9c6;border-bottom:1px solid #e1cfb8;background:linear-gradient(#faf5ed,#f7eee2 55%,#f2e5d3);box-shadow:0 1.4rem 2.6rem -2rem #6b4a2c55}
/* No rings or dot grid behind the reel; the soft shadow under it stays for depth. */
.opening-reel .hero-sky:before{display:none}
.loop-floor{opacity:.75}
/* Films fade into the panel at both sides as they come in and go out.
   The reel gets room above and below so the fade never cuts the shadows off. */
.loop-reel{--pt:2rem;--pb:4rem;padding:var(--pt) 0 var(--pb);margin-top:calc(clamp(.9rem,2vw,1.6rem) - var(--pt));margin-bottom:calc(0rem - var(--pb));box-sizing:content-box}
.loop-card{top:calc(var(--pt) + (100% - var(--pt) - var(--pb)) * .46)}
.loop-floor{bottom:calc(var(--pb) + 2%)}
.loop-reel{-webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 5%,#000 21%,#000 79%,transparent 95%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,transparent 5%,#000 21%,#000 79%,transparent 95%,transparent 100%)}

/* Content scrolling under the top bar fades out towards the very top of the screen. */
.mast{background:transparent}
body:before{content:"";position:fixed;left:0;right:0;top:0;height:calc(var(--mast,5.3rem) + 2.6rem);z-index:11;pointer-events:none;
  background:linear-gradient(#fbf8f2 0%,#fbf8f2 30%,#fbf8f2f2 40%,#fbf8f2d1 50%,#fbf8f2a3 60%,#fbf8f26e 70%,#fbf8f23d 80%,#fbf8f217 90%,#fbf8f200 100%)}

/* The name reads like the headline: plain word, then the copper italic. */
.brand span em{font:italic 400 1.254em/1 var(--serif);letter-spacing:-.01em;color:var(--copper)}

/* The client line changes with each film. */
.quote-hook{display:inline-flex;align-items:center;gap:.7rem;text-align:left;max-width:27rem;transition:opacity .35s}
.quote-hook.swap{opacity:0}
.quote-face{width:2.6rem;height:2.6rem;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff8ed;box-shadow:0 .3rem .8rem -.4rem #2b1b0f88}
.quote-hook b{display:block;font:500 1.02rem/1.35 Figtree,system-ui,sans-serif;letter-spacing:-.005em;color:#2d241c}
.quote-hook small{display:block;margin-top:.15rem;font-size:.8rem;color:var(--muted)}
.quote-hook .quote-hear{margin-left:.45rem;font-weight:700;color:var(--copper);text-decoration:underline;text-underline-offset:.2em}

/* Figures: no toggles, no extra pluses. The number in the heavy face, the words in the copper italic. */
.figures{width:min(calc(100% - 2.3rem),58rem);margin:clamp(1.4rem,2.6vw,2.5rem) auto 0;padding:clamp(1.1rem,1.8vw,1.7rem) 0 clamp(1.5rem,2.2vw,2.2rem);border-top:1px solid #bd9e7a55;text-align:center}
.figures-label{font-size:.88rem;color:#6d5642}
.figures-list{list-style:none;margin:.7rem 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,3vw,3rem)}
.figures-list strong{display:block;font-size:clamp(2.4rem,3.6vw,3.4rem);line-height:1;font-weight:800;letter-spacing:-.065em;color:var(--ink)}
.figures-list em{display:block;margin-top:.3rem;font:italic 400 clamp(1.344rem,1.848vw,1.736rem)/1.1 var(--serif);letter-spacing:-.01em;color:var(--copper)}

/* Credits: the whole name is the emphasis. */
.credit h3 em,.nine-row h3 em{font:italic 400 1.12em/1.02 var(--serif);letter-spacing:-.01em;color:var(--copper)}
.credit h3{font-size:clamp(1.9rem,2.9vw,2.75rem)}
/* A straight cut between stills, never a double exposure. */
.roll-screen figure>img+img{transition:none}
.credit{opacity:.3}
.credit.on{opacity:1}
.credit .face{transition:border-color .35s}
.credit.on .face{border-color:var(--copper)}

@media (max-width:700px){
  .opening-reel{margin:0;border-radius:1.6rem}
  .loop-reel{margin-top:calc(1rem - var(--pt))}
  .loop-reel{-webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 2%,#000 11%,#000 89%,transparent 98%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,transparent 2%,#000 11%,#000 89%,transparent 98%,transparent 100%)}
  .hero-proof{flex-direction:column;gap:.85rem}
  .hero-proof .proof-seam{display:none}
  .quote-hook{max-width:calc(100% - 2.4rem)}
  .quote-hook b{font-size:1rem}
  .figures{width:calc(100% - 2.2rem);margin-top:1.1rem}
  .figures-list{gap:.6rem}
  .figures-list strong{font-size:2.15rem}
  .figures-list em{font-size:1.05rem}
}
@media (max-width:820px){
  .credit{opacity:.24}
}

/* No small spaced-out capital labels above headings. */
.opening-reel .hero-intro .eyebrow,#services .eyebrow,.contact .eyebrow{display:none}
/* The second contact button is filled, not outlined. */
.pill.line{background:#efe1cd;border-color:transparent;color:var(--ink)}
.pill.line:hover{background:#e6d3b9}
/* Quotes break evenly. */
.quote-hook b{text-wrap:balance}
/* Less dead space at the end of the credits. */
.roll-list{padding-bottom:12vh}
/* Jack's still: crop the letterbox bars. */
.roll-screen figure[data-key="jack"]>img{transform:scale(1.24)}
@media (max-width:820px){
  .roll-list{padding-bottom:6vh}
  /* The pinned screen keeps its shadow inside its own band, so nothing cuts the text below. */
  .roll-screen{box-shadow:0 .5rem 1rem -.75rem #2b1b0f66}
  .roll-stick:after{height:1.6rem}
}
@media (max-width:700px){
  .mast nav{gap:.6rem}
}

/* Green emphasis (Jordan, 28 Nov): the italic words, the names, the links and "Send a brief".
   Three shades to choose from in previews: ?green=a (forest), b (bottle), c (fresh). */
:root{--green:#2d6a4f;--green-hover:#245a42}
html[data-green="b"]{--green:#1f4d3d;--green-hover:#173c2f}
html[data-green="c"]{--green:#3b8a5f;--green-hover:#31744f}
:root{--copper:var(--green)}
.mast .nav-brief{background:var(--green);color:#fbf8f2}
.mast .nav-brief:hover{background:var(--green-hover)}

/* "What are you making?" sits on its own panel like the opening: edge to edge, curved top and bottom. */
.contact{margin:0 0 clamp(1.2rem,2.4vw,2rem);border-radius:clamp(1.8rem,3.6vw,3.6rem);border-top:1px solid #e7d9c6;border-bottom:1px solid #e1cfb8;box-shadow:0 1.4rem 2.6rem -2rem #6b4a2c55;padding-bottom:clamp(3.2rem,6vw,6rem)}
@media (max-width:700px){.contact{border-radius:1.6rem}}
.contact .pill.dark{background:var(--green)}
.contact .pill.dark:hover{background:var(--green-hover)}

.opening-reel .hero-sky{display:none}
.contact{position:relative;isolation:isolate;overflow:hidden}
.contact .contact-inner{position:relative}
/* Row thumbnails show the whole YouTube thumbnail. */
.work-item summary img{width:5.6rem!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;border-radius:.55rem}
/* No small spaced-out capital labels anywhere. */
.eyebrow{display:none!important}

/* Phone credits: text fades out before it goes under the pinned film, never sliced. */
@media (max-width:820px){
  .roll-stick:after{height:3.2rem;background:linear-gradient(#fbf8f2 0%,#fbf8f2e6 30%,#fbf8f299 62%,#fbf8f200 100%)}
  .roll-list{padding-bottom:1vh}
  .services{padding-top:2.6rem!important}
}
/* Option A's list: no +/- circles; the filter pills are filled, the chosen one green. */
.work-item .expand-sign{display:none!important}
.work-filters button{border-color:transparent!important;background:#efe1cd!important;color:var(--ink)!important}
.work-filters button[aria-pressed=true]{background:var(--green)!important;color:#fbf8f2!important}

/* the fade under the bar only shows once the page has scrolled */
body:before{opacity:0;transition:opacity .35s ease}
html.scrolled body:before{opacity:1}
