/* SE.T Brand Cinema — shared chapter system for the editorial pages.
   Palette is the site's own: night #0a0908, umber #0f0d0b, brown #1e1611 / #140f0a,
   oxblood #3a1a1e (press + cleveland chapters), ivory #f2ece1 / #f6f2ea, bronze #7a5c22,
   champagne #b5aa8e, golds #c9a96e / #f0d69f.
   Fail-open: nothing here hides content or pins anything until brand-cinema.js adds .bc-js. */

:root{
  --bc-night:#0a0908; --bc-umber:#18120d; --bc-brown:#2a1e15; --bc-brown-deep:#140f0a;
  --bc-oxblood:#3a1a1e; --bc-ivory:#f2ece1; --bc-ivory-hi:#f6f2ea;
  --bc-bronze:#7a5c22; --bc-champagne:#b5aa8e;
}

/* ---------- chapter colour bands (vars cascade into the existing template) ---------- */
html body [data-band]{isolation:isolate;border-top:0!important}
html body [data-band]:not([data-card]){position:relative}
html body section.q[data-band]{position:relative}
html body [data-band="brown"]{background:radial-gradient(90% 60% at 85% 0,rgba(201,169,110,.16),transparent 60%),radial-gradient(70% 50% at 0 100%,rgba(58,26,30,.35),transparent 65%),var(--bc-brown);
  --mid:#e7dfd2; --dim:#b9ad99; --rule:rgba(240,214,159,.16); --glass:rgba(255,240,215,.05)}
html body [data-band="umber"]{background:radial-gradient(80% 55% at 10% 0,rgba(184,151,90,.12),transparent 60%),var(--bc-umber);
  --rule:rgba(240,214,159,.13)}
html body [data-band="oxblood"]{background:radial-gradient(120% 70% at 50% 0,rgba(184,151,90,.16),transparent 62%),var(--bc-oxblood);
  --mid:#eadbd3; --dim:#cdb8ad; --rule:rgba(240,214,159,.2); --glass:rgba(255,240,215,.06)}
html body [data-band="ivory"]{background:radial-gradient(70% 50% at 90% 0,rgba(184,151,90,.12),transparent 62%),
  linear-gradient(180deg,var(--bc-ivory-hi),var(--bc-ivory));
  color:#1c1814;
  --ink:#1c1814; --mid:#3b342c; --dim:#6a6050; --gold:#7a5c22; --gold-hi:#5e4517;
  --rule:rgba(28,24,20,.16); --glass:rgba(28,24,20,.03)}
[data-band="ivory"] .pts li{border-bottom-color:rgba(28,24,20,.12)}
[data-band="ivory"] a:not(.hb){color:#6a4e1b}
[data-band="ivory"] .ev a{color:#1c1814}
[data-band="ivory"] .ev a:hover{color:#7a5c22}
[data-band="ivory"] .hb{color:#1c1814;border-color:#7a5c22}
[data-band="ivory"] .hb:hover{color:#7a5c22}
[data-band="ivory"] ::selection{background:rgba(122,92,34,.25)}

/* ---------- chapter cards: full-bleed, sliding over the one before ---------- */
[data-card]{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
  padding-left:calc(50vw - 50% + 0px)!important;padding-right:calc(50vw - 50%)!important;
  padding-top:clamp(64px,12svh,130px)!important;padding-bottom:clamp(64px,12svh,130px)!important;
  border-radius:30px 30px 0 0;box-shadow:0 -36px 80px rgba(0,0,0,.5);margin-top:-30px}
[data-card][data-band="ivory"]{box-shadow:0 -30px 70px rgba(0,0,0,.42)}
/* scene number, top of each card, in the text column */
[data-card]::before{content:"Scene " attr(data-scene);display:block;margin-bottom:clamp(18px,3svh,30px);
  font-family:'DM Mono',monospace;font-size:10.5px;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);opacity:.9}
/* a full-bleed band on an element that keeps its own centred width */
[data-band].bc-bleed{box-shadow:0 0 0 100vmax var(--bc-fill);clip-path:inset(0 -100vmax)}
[data-band="ivory"].bc-bleed{--bc-fill:#f3eee4}[data-band="brown"].bc-bleed{--bc-fill:#2a1e15}
[data-band="umber"].bc-bleed{--bc-fill:#18120d}[data-band="oxblood"].bc-bleed{--bc-fill:#3a1a1e}
@media (min-width:761px) and (prefers-reduced-motion:no-preference){
  .bc-js [data-card]{position:sticky;top:var(--pin,0px)}
}
@media (max-width:760px){[data-card]{border-radius:22px 22px 0 0;margin-top:-22px}}

/* ---------- the opening: letterbox bars pull away, film grain, progress ---------- */
.bc-bars::before,.bc-bars::after{content:"";position:fixed;left:0;right:0;height:11svh;background:#000;z-index:9990;pointer-events:none}
.bc-bars::before{top:0}.bc-bars::after{bottom:0}
@media (prefers-reduced-motion:no-preference){
  .bc-bars::before{animation:bcBarT 1.5s .25s cubic-bezier(.7,0,.2,1) forwards}
  .bc-bars::after{animation:bcBarB 1.5s .25s cubic-bezier(.7,0,.2,1) forwards}
  @keyframes bcBarT{to{transform:translateY(-101%)}}
  @keyframes bcBarB{to{transform:translateY(101%)}}
}
@media (prefers-reduced-motion:reduce){.bc-bars::before,.bc-bars::after{display:none}}
.bc-grain{position:fixed;inset:-50%;z-index:9980;pointer-events:none;opacity:.06;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:no-preference){.bc-grain{animation:bcGrain 1s steps(6) infinite}
  @keyframes bcGrain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-1%)}100%{transform:translate(0,0)}}}
.bc-prog{position:fixed;top:0;left:0;right:0;height:2px;z-index:9995;transform-origin:0 50%;transform:scaleX(0);
  background:linear-gradient(90deg,#7a5c22,#c9a96e,#f0d69f);pointer-events:none}
@supports (animation-timeline:scroll()){@media (prefers-reduced-motion:no-preference){
  .bc-prog{animation:bcProg linear both;animation-timeline:scroll(root)}
  @keyframes bcProg{to{transform:scaleX(1)}}
}}

/* ---------- the hero: warm key light on the opening frame ---------- */
.bc-hero{position:relative}
.bc-hero::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;pointer-events:none;
  background:radial-gradient(60% 55% at 80% 10%,rgba(201,169,110,.14),transparent 62%),radial-gradient(50% 45% at 5% 95%,rgba(58,26,30,.35),transparent 65%)}

/* ---------- motion: every scene arrives ---------- */
@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){
  [data-card] h2{animation:bcTitle linear both;animation-timeline:view();animation-range:entry 5% entry 70%}
  @keyframes bcTitle{from{clip-path:inset(0 0 100% 0);transform:translateY(26px);letter-spacing:.04em}to{clip-path:inset(0 0 -10% 0)}}
  [data-card] h2~*{animation:bcRise linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
  @keyframes bcRise{from{opacity:0;transform:translateY(44px);filter:blur(4px)}}
  [data-card]::before{animation:bcLabel linear both;animation-timeline:view();animation-range:entry 0% entry 60%}
  @keyframes bcLabel{from{opacity:0;letter-spacing:.8em}}
  [data-card] img{animation:bcKen linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  @keyframes bcKen{from{transform:scale(1.06)}to{transform:scale(1)}}
}}
/* browsers without scroll timelines: a one-time reveal instead */
.bc-io [data-card] h2,.bc-io [data-card] h2~*{opacity:0;transform:translateY(30px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.8,.2,1)}
.bc-io [data-card].bc-in h2,.bc-io [data-card].bc-in h2~*{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.bc-io [data-card] h2,.bc-io [data-card] h2~*{opacity:1;transform:none}}

/* colour-only mode: pages that already stack their own cards keep their motion, gain the palette */
html body [data-band].bc-bleed{box-shadow:0 0 0 100vmax var(--bc-fill);clip-path:inset(0 -100vmax)}
@media (prefers-reduced-motion:no-preference){html.bc-own body section.q[data-band]{position:sticky;top:0}}
/* stacked pages: one continuous warm brown, no near-black rows, no seam at the column edge */
html.bc-own body section.q[data-band]{background:var(--bc-fill)!important}
html body [data-band="cocoa"]{--bc-fill:#35261b;background:#35261b;--mid:#ebe3d6;--dim:#c2b5a1;--rule:rgba(240,214,159,.18)}

/* let colour bands reach full width on pages whose main column clips sideways overflow */
html body main[data-bc="own"]{overflow-x:visible}
html:has(main[data-bc="own"]),html:has(main[data-bc="own"]) body{overflow-x:clip}

/* single-scene pages (the reels, Cashing Out): a warm brown room instead of flat black */
html body.bc-room{background:radial-gradient(70% 55% at 80% 0,rgba(201,169,110,.14),transparent 62%),radial-gradient(60% 50% at 0 100%,rgba(58,26,30,.45),transparent 65%),linear-gradient(180deg,#1a130e,#120d09)!important;background-attachment:fixed!important}
/* services: the ivory chapter's own components */
html body .duo[data-band="ivory"] h2{color:#1c1814}
html body .duo[data-band="ivory"] .note{color:#6a6050}
html body .close[data-band="oxblood"]::before{opacity:.0}

html:has(main.cine),html:has(main.cine) body{overflow-x:clip}

/* pages with an opening sequence force every body child to opacity:1 afterwards; keep the grain at its own strength */
html body>.bc-grain{opacity:.06!important}
