/* The document remains the scroll container. Long chapters grow with their content. */
html.studio-chapters { --nav-h:72px; scroll-padding-top:var(--nav-h); }
.edition .top-bar { position:fixed;inset:0 0 auto;z-index:60; }
@media screen {
 .edition .top-bar .top { background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none; }
 .edition .top-bar.is-scrolled {
   background:rgba(255,255,255,.76);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
 }
 .edition .top-bar.is-away { transform:translateY(-100%); }
 .edition .top-bar:has(:focus-visible) { transform:none;transition:none; }
}
@media screen and (prefers-reduced-motion:no-preference) {
 .edition .top-bar { transition:transform .2s ease-out; }
 .chapter-leaving:not(.idea) > :is(.wrap,.format-stage,footer),
 .idea.chapter-leaving :is(h1,.idea-pitch,.hero-nav) {
   animation:chapter-exit-blur .4s ease-out;
 }
 @keyframes chapter-exit-blur {
   0%,100% {filter:none}
   25% {filter:blur(3px)}
 }
}
.edition .skip:focus { z-index:65; }
.studio-chapters :is(a,button,input,textarea,summary) { scroll-margin-block-start:8px; }
.edition #main{padding-top:var(--nav-h)}
.edition #main > section{
  margin:0;scroll-margin:0;min-height:0;display:flex;flex-direction:column;justify-content:center;
  padding-block:clamp(24px,4vw,60px);
}
.hero-scene{display:grid;align-items:center;gap:clamp(21px,4vh,48px)}
.hero-scene .idea-grid { padding-block:0; }
.hero-scroll,.next-chapter { display:inline-flex;width:fit-content;align-items:center;gap:12px;color:var(--muted);text-decoration:none;font:500 13px/1.4 var(--font-sans); }
.hero-scroll { padding-top:12px;justify-content:space-between;width:100%; }
.hero-scroll:is(:hover,:focus-visible),.next-chapter:is(:hover,:focus-visible){ color:var(--text); }
.next-chapter { margin-top:18px;border-bottom:1px solid var(--rule-strong);padding-bottom:2px; }
.recording-line { position:relative; }
.recording-line::after {
  content:"";position:absolute;inset:-4px auto -4px 0;width:2px;background:#ef5347;
  left:clamp(0px,var(--scan,0%),calc(100% - 2px));opacity:0;
}
@media(min-width:901px){
 .format-stage .format-heading { margin-bottom:clamp(18px,3.8vh,48px); }
 .format-stage .plate-frame { max-height:35svh; }
 .format-stage .plate-frame img { object-fit:contain; }
 .format-stage .format-plate { justify-items:start; }
 .format-stage .plate-frame { max-width:100%; }
 .format-stage .plate-caption { width:100%; }
}
@media(min-width:901px) and (max-height:850px){
 .format-stage .format-heading { margin-bottom:18px; }
 .edition #kit .sec-head.stack { margin-bottom:20px; }
 .edition #kit .sec-head.stack h2 { font-size:clamp(56px,9svh,82px); }
 .edition #kit .day-print { height:clamp(105px,21svh,175px); }
}
@media(max-width:650px){
 html.studio-chapters { --nav-h:56px; }
 .hero-scene { gap:clamp(21px,4vh,42px); }
 .hero-scroll { padding-top:10px; }
}
@media(prefers-reduced-motion:no-preference){
 .idea h1 { animation:lift-type .72s cubic-bezier(.2,.75,.2,1) both; }
 .idea-pitch { animation:lift-type .65s .13s cubic-bezier(.2,.75,.2,1) backwards; }
 .can-swipe .recording-line::after { opacity:1;left:clamp(0px,var(--swipe-scan,0%),calc(100% - 2px)); }
 @keyframes lift-type { from{opacity:.28;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
}
@media print{
 .edition .top-bar { position:static; }
 .edition #main > section,.format-stage,.hero-scene { min-height:0;height:auto;display:block;padding-block:22px; }
 .hero-scroll,.next-chapter { display:none; }
}

.edition #main > section {border-block:0}
.format-controls {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.format-controls > span {font:550 16px/1.3 var(--font-sans)}
.format-controls .format-browse {margin:0}
.format-stage .format-lineup {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 clamp(12px,1.9vw,34px);align-items:stretch}
.format-stage .format-plate {display:grid;grid-template-rows:subgrid;grid-row:span 4;align-items:start;justify-items:start;align-content:start;padding:0 0 19px}
.format-stage .format-plate[hidden] {display:none}
.format-stage .plate-caption {padding-bottom:9px;font-size:clamp(15px,1.35vw,22px)}
.format-stage .plate-frame {align-self:end;height:clamp(130px,21svh,225px);max-width:100%;width:auto;max-height:none}
.format-stage .landscape .plate-frame {height:auto;width:100%;max-width:350px}
.format-stage .format-plate small {margin:8px 0 0}
.plate-story {display:block;max-width:37ch;padding:7px 0 10px}
.plate-story strong {display:block;font:600 clamp(15px,1.15vw,19px)/1.13 var(--font-sans);letter-spacing:-.025em;margin-bottom:5px}
.plate-story>span {display:block;font:400 clamp(13px,1.02vw,16px)/1.42 var(--font-sans);color:var(--muted)}
.format-stage .format-plate::after {bottom:0;height:11px}
@media(min-width:901px) and (max-height:850px){
 .format-controls {margin-bottom:10px}
 .format-stage .format-heading {margin-bottom:10px}
 .format-stage .next-chapter {margin-top:10px}
}
@media(max-width:900px){
 .format-stage .format-lineup {display:grid;grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(4,auto);grid-auto-columns:clamp(194px,59vw,255px);column-gap:22px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 0}
 .format-stage .format-plate {width:auto;min-width:0;scroll-snap-align:start;padding-bottom:12px}
 .format-stage .format-plate::after {display:none}
 .format-stage .plate-frame {height:clamp(150px,26svh,210px)}
 .format-stage .landscape .plate-frame {height:auto}
 .format-controls {margin-bottom:10px}
 .format-stage .format-browse button {width:32px;height:34px}
}

/* The first example shares the same portrait crop as the clip viewer. */
.hero-example {
  position:relative;display:block;padding:0;border:0;background:var(--ground);
  width:min(100%,clamp(200px,29svh,355px));aspect-ratio:9/16;overflow:hidden;
}
.hero-example[hidden]{display:none}
.hero-example video{display:block;width:100%;height:100%;object-fit:cover}
.hero-play{position:absolute;bottom:12px;right:12px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#161616;color:white;font:16px/1 Arial}
.hero-example.is-playing .hero-play{visibility:hidden}
.idea-grid {grid-template-areas:"title sample" "pitch sample";align-items:center;row-gap:24px}
.idea-grid h1{grid-area:title;align-self:end}
.idea-pitch{grid-area:pitch;align-self:start;max-width:41em}
.hero-example{grid-area:sample;justify-self:end}
.audio-week{display:flex;gap:24px;align-items:center;margin:0 0 22px}
.audio-frames{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;flex:1}
.audio-frames span{display:grid;place-items:center;border:1px dashed var(--rule-strong);height:52px;font:500 12px/1.2 var(--font-sans);color:var(--muted);text-align:center}
.audio-week p{width:min(36%,34em);font:400 14px/1.4 var(--font-sans);color:var(--muted)}
#styles .other-looks{grid-column:1/-1;gap:16px}
#styles .other-looks .clip{width:100%;max-width:230px;min-width:0}
#styles .other-looks figcaption{margin-top:8px;font:540 16px/1.2 var(--font-sans)}
.recording-line::after {background:var(--text)}
@media(min-width:901px){
 .format-stage{min-height:0;padding-block:0}

 .format-stage .format-plate{scroll-snap-align:start}
 .format-stage .plate-frame{width:clamp(200px,16vw,250px);height:auto;min-width:200px;max-height:none}
 .format-stage .landscape .plate-frame{width:100%}
 #styles .fit-grid{row-gap:32px}
}
@media(max-width:850px){
 .idea-grid{grid-template-areas:"title" "pitch" "sample";row-gap:22px}
 .hero-scene{align-content:start;grid-template-rows:auto auto}
 .hero-example{justify-self:start;width:clamp(145px,53vw,235px)}
}
@media(max-width:700px){
 .audio-week{flex-direction:column-reverse;align-items:stretch;gap:9px;margin-bottom:15px}
 .audio-week p{width:100%}
 .audio-frames{gap:3px}
 .audio-frames span{height:34px;font-size:10px}
 #styles .other-looks{display:grid;grid-template-columns:repeat(4,minmax(112px,1fr));gap:12px;overflow-x:auto;padding:3px 2px 8px}
 #styles .other-looks figcaption{font-size:14px}
}

/* Each desktop chapter owns its header space so the previous chapter never peeks through.
   Using a minimum lets expanded forms and larger text stay in normal flow. */
.edition #main > #contact{padding-bottom:0}
.studio-footer{margin-top:clamp(22px,4vh,50px)}
.edition :is(.source-caption>small,.week-end p,.delivery-mode,.rate-list .billing-note){font-size:max(14px,.875rem)}
@media screen and (min-width:901px) and (orientation:landscape) and (min-height:500px),
       screen and (min-width:1200px) and (pointer:fine){
 html.studio-chapters{scroll-snap-type:y proximity;scroll-padding-top:0}
 .edition #main{padding-top:0}
 .studio-chapters #main :is(a,button,input,textarea,summary){scroll-margin-block-start:calc(var(--nav-h) + 8px)}
 .edition #main > section{
   min-height:100svh;
   padding-block:calc(var(--nav-h) + clamp(12px,2vh,28px)) clamp(12px,2vh,28px);
 }
 .edition #main > section.snap-fits {scroll-snap-align:start}
 .edition #main > #contact{padding-bottom:0}
 #contact .enquiry-grid{margin-block:auto;padding-block:1rem}
 #contact .studio-footer{margin-top:0}
 .hero-scene{gap:clamp(18px,4vh,48px)}
 .idea h1{font-size:clamp(3.2rem,min(8.5vw,13svh),9rem)}
 .format-stage .format-heading h2,.edition #kit .sec-head.stack h2,.fit-copy h2,.editorial-heading{font-size:clamp(2.6rem,min(5.3vw,7.8svh),5.2rem)}
 .format-stage .format-heading,.edition #kit .sec-head.stack{margin-bottom:clamp(10px,2vh,24px)}
 .format-stage .plate-frame{height:clamp(138px,30svh,395px);width:auto;min-width:0;max-width:100%}
 .format-stage .landscape .plate-frame{height:auto;width:100%}
 .format-stage .plate-frame img{object-fit:contain}
 .format-stage .format-plate{padding-bottom:10px}
 .audio-week{margin-bottom:clamp(8px,1.6vh,20px)}
 .audio-frames span{height:clamp(32px,6vh,52px)}
 .edition #kit .day-print{height:clamp(75px,17vh,215px)}
 .day-number{font-size:clamp(2.2rem,7svh,5rem)}
 #styles .fit-grid{row-gap:clamp(10px,2vh,26px)}
 #styles .looks{width:min(100%,calc(39svh * 1.125 + 12px))}
 #styles .other-looks .clip{width:min(100%,16svh);max-width:230px}
}

.idea h1 > :is(span, em){display:block;text-wrap:balance}

.edition #main > #questions {
  justify-content:flex-start;
  padding-block:calc(var(--nav-h) + clamp(48px,8vh,96px)) clamp(48px,8vh,96px);
}
.question-spread {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(36px,6vh,76px) clamp(36px,6vw,104px);
  align-items:start;
}
.question-heading {
  grid-column:1/-1;
  display:flex;align-items:baseline;justify-content:space-between;gap:20px;
}
.question-heading .text-action {white-space:nowrap}
.question-group > h3 {
  margin:0 0 10px;
  color:var(--muted);
  font:italic 400 clamp(27px,2.4vw,40px)/1.15 var(--serif);
  letter-spacing:-.035em;
}
.host-questions {list-style:none;margin:0;padding:0}
.host-questions li {border-bottom:1px solid var(--rule)}
.host-questions h4 {margin:0}
.host-questions button {
  width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:clamp(14px,1.8vh,22px) 0;border:0;background:transparent;color:var(--text);
  text-align:left;font:550 clamp(18px,1.55vw,26px)/1.23 var(--font-sans);letter-spacing:-.035em;
}
.host-questions button::after {
  content:"";flex:none;width:26px;height:26px;border:1px solid var(--rule-strong);border-radius:50%;
  background:linear-gradient(currentColor,currentColor) center / 10px 1.5px no-repeat,
             linear-gradient(currentColor,currentColor) center / 1.5px 10px no-repeat;
}
.host-questions button[aria-expanded="true"]::after {
  color:var(--ground);background-color:var(--text);border-color:var(--text);background-size:10px 1.5px,0 0;
}
.host-questions button:focus-visible {outline:2px solid currentColor;outline-offset:4px}
@media (hover:hover) {
  .host-questions button:hover::after {border-color:var(--text)}
}
.question-answer {display:grid;grid-template-rows:1fr;opacity:1}
.question-answer[inert] {grid-template-rows:0fr;opacity:0}
.question-answer > div {min-height:0;overflow:hidden}
.host-questions p {
  max-width:54ch;margin:0;padding:0 42px 20px 0;color:var(--muted);
  font:400 clamp(16px,1.12vw,19px)/1.5 var(--font-sans);
}
@media (prefers-reduced-motion:no-preference) {
  .host-questions button::after {transition:background-color .16s,color .16s,border-color .16s}
  .question-answer {transition:grid-template-rows .28s cubic-bezier(.22,.68,.16,1),opacity .22s ease}
}
@media (max-width:760px) {
  .edition #main > #questions {padding-block:clamp(42px,8vw,64px)}
  .question-spread {grid-template-columns:1fr;gap:32px}
  .question-heading {flex-wrap:wrap;gap:10px 20px}
  .question-group > h3 {margin-bottom:4px}
}
