/* POLISH (2026-11-19, whole-site round; Fable 5.2 + Astra 6.2 agreed notes, Opus author's pass). Loaded last on every page.
   Landing: the promise stands on the film from frame zero (desktop), the Usługi cards show each area's own film still
   as rendered, Dla kogo spans the grid, one calmer step between sections, the legal form in its own case, the phone's
   area tabs without a second numbering. Subpages: the phone title sits at one place under the film on every chapter,
   and the closing panel is the landing's contact block (serif address, one heading, numbered rows) beside the page's
   own film still instead of an old dark plate. */

/* ---- Landing ---- */
.l3-promise{display:none}
@media (min-width:801px){
  html.land3.sched-on:not(.world-still) .l3-promise{
    display:block;position:absolute;z-index:3;left:4.4%;top:calc(var(--film-top,105px) + 24px * var(--kd,1));
    box-sizing:border-box;width:calc(340px * var(--kd,1));margin:0;padding:calc(20px * var(--kd,1)) calc(20px * var(--kd,1)) calc(18px * var(--kd,1));
    background:#0a1c17;border:1px solid #dec38c2e;border-left-color:var(--gold);
    font-family:"Instrument Serif","Instrument Serif fallback",serif;font-weight:400;font-size:calc(40px * var(--kd,1));line-height:1.04;letter-spacing:-.01em;color:var(--paper,#f3efe6);
    pointer-events:none;transition:opacity var(--m-dissolve,.6s) var(--m-ease-out,ease-out),visibility 0s
  }
  html.land3 .l3-promise em{font-style:normal;color:var(--gold,#dec38c)}
  /* The finale plate carries the same words at the night wide shot. */
  html.land3.world-ended .l3-promise{opacity:0;visibility:hidden;transition:opacity var(--m-dissolve,.6s) var(--m-ease-out,ease-out),visibility 0s var(--m-dissolve,.6s)}
}

/* Usługi: the area's own film still (chapter 04, daylight), whole plinth, no night grade, no edge fade. */
.ec-still{background:#102a24}
.ec-still img{filter:none;-webkit-mask-image:none;mask-image:none;object-fit:cover;object-position:50% 52%}

/* Dla kogo: three equal columns across the full grid. */
@media (min-width:1101px){
  .ec-audience-list > li{grid-column:span 4}
}
/* One calmer step between the sections (was ~170 px above each eyebrow at 1440). */
.ec{padding-top:calc(var(--ec-hdr) * var(--k,1) + clamp(16px,1.6vw,40px))}
.ec-contact{padding-bottom:clamp(80px,6vw,120px)}

/* Footer: the legal form keeps its own case. */
.ec-foot-brand{text-transform:none;letter-spacing:.08em}

/* Phone: the area tabs under the schedule are named, not numbered (the stage row above carries 01-05). */
@media (max-width:800px){
  html.sched-on .sched .world-steps .step-number{display:none}
}

/* ---- Subpages ---- */
/* Phone: every chapter's title at one place, 28 px under the film (the film box is 16 % to 73 % of the section). */
@media (max-width:700px){
  html body main[data-evo] .chapter[data-composition] .scene-copy{top:calc(73% + 28px);bottom:auto;left:24px;right:64px}
  /* The bottom shade stays under the title (below the film): it had reached up over the film's lower third and dimmed
     the labels there ("Teren pod drogę", "Rozdzielnica SN" read as disabled, both judges) and the plinth with them. */
  html body main[data-evo] .chapter .scene-shade{background:linear-gradient(0deg,#071c16f2,#071c16f2 20%,transparent 27%)}
  /* PURE FILM (2026-11-21): there is no closing panel any more; at the end the control stays and offers a replay. */
}

/* Closing panel = the landing's contact block. */
body:has(.chapter) .contact .email{
  font-family:"Instrument Serif","Instrument Serif fallback",serif;font-weight:400;letter-spacing:-.01em;line-height:1.1
}
body:has(.chapter) .contact .email span{font-family:Manrope,"Manrope fallback",sans-serif;font-size:.62em;color:var(--gold)}
body:has(.chapter) .contact .prepare > summary{display:none}
body:has(.chapter) .contact .prepare h3{margin:18px 0 0;font-size:11px;line-height:15px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
body:has(.chapter) .contact .prepare ul{list-style:none;margin:16px 0 0;padding:0;border-top:1px solid #ced6c82b;counter-reset:prep;font-size:15px;line-height:1.5;color:#f0eee4c4}
body:has(.chapter) .contact .prepare li{position:relative;padding:10px 0 10px 48px;border-bottom:1px solid #ced6c82b;counter-increment:prep}
body:has(.chapter) .contact .prepare li::before{content:counter(prep,decimal-leading-zero);position:absolute;left:0;top:10px;font-size:11px;line-height:22px;letter-spacing:.14em;color:var(--gold);opacity:.75;font-variant-numeric:tabular-nums}
body:has(.chapter) .contact .prepare{border-bottom:0;padding-bottom:0}
@media (min-width:801px){
  body:has(.chapter) .contact .email{font-size:clamp(30px,2.6vw,42px)}
  /* The still stands whole on the right half, on the page green; the copy column keeps a flat panel, no wash over the picture. */
  body:has(.chapter) .contact{background:#102a24}
  body:has(.chapter) .contact::before{background:linear-gradient(90deg,#102a24 0%,#102a24 47%,#102a2400 60%)}
  body:has(.chapter) .contact .contact-photo{left:44%;right:0;width:auto;background:#102a24}
  body:has(.chapter) .contact .contact-photo img{filter:none;object-fit:contain;object-position:50% 50%;transform:none}
}
@media (max-width:800px){
  body:has(.chapter) .contact .contact-photo{display:none}
  body:has(.chapter) .contact .prepare ul{font-size:16px}
}

/* Subpages, desktop: the header band in the brand green, lighter, instead of a near-black falloff over the film (both judges). */
@media (min-width:801px){
  body:has(.chapter) .masthead::after{height:120px;background:linear-gradient(180deg,rgba(16,41,34,.86),rgba(16,41,34,.55) 55%,rgba(16,41,34,0))}
}

/* PHONE FILM (Stan 2026-11-19): a chapter's film on a phone held upright is the whole portrait cut, edge to edge from the
   masthead down to the title band (living-engine.js phoneWindow reads --phone-foot and writes --phone-film-top/bottom);
   the title, its stage number and the play control share that band under the film, nothing sits on the picture's middle. */
@media (max-width:700px) and (orientation:portrait){
  :root{--phone-foot:calc(124px + env(safe-area-inset-bottom,0px))}
  html body main[data-evo] .chapter[data-composition] .scene-copy{top:calc(var(--phone-film-bottom,73%) + 6px);bottom:auto;left:calc(22px + env(safe-area-inset-left,0px));right:80px}
  html body main[data-evo] .chapter .scene-shade{background:linear-gradient(0deg,#071c16f2 0,#071c16f2 calc(var(--phone-foot) - 10px),#071c1600 calc(var(--phone-foot) + 26px))}
  .living-stage .film-plate.film-plate-whole{-webkit-mask-image:linear-gradient(#0000,#000 10%,#000 90%,#0000);mask-image:linear-gradient(#0000,#000 10%,#000 90%,#0000)}
  html body main[data-evo] ~ * .phone-scene-nav,html body main[data-evo] .chapter .phone-scene-nav{top:calc(var(--phone-film-top,98px) + 12px)}
  /* the play control belongs to the film: it leaves with it when the closing panel comes up (it sat on the legal lines) */
  html.chapter-auto body.at-contact > .chapter-toggle{opacity:0;visibility:hidden;pointer-events:none}
}

/* PHONE CARDS (Stan 2026-11-19): on a phone the four services are not boxed desktop cards. Each is its chapter's film,
   edge to edge, feathered into the page green at top and bottom, with its number, name and scope under it on the page's
   own gutter; the film and the name both open the chapter. Held sideways: the same, two to a row. */
@media (max-width:800px),(pointer:coarse) and (max-height:500px) and (orientation:landscape){
  .ec-service-grid{row-gap:52px}
  .ec-service{background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;border-radius:0;overflow:visible;padding-bottom:0}
  .ec-service > :not(.ec-still){margin-inline:0}
  .ec-still{background:#102922;-webkit-mask-image:linear-gradient(#0000,#000 14%,#000 86%,#0000);mask-image:linear-gradient(#0000,#000 14%,#000 86%,#0000)}
  .ec-still::after{display:none}
  .ec-service .ec-num{margin-top:10px}
  .ec .ec-service h3{margin-top:6px;font-size:32px}
  .ec .ec-service .ec-promise{margin-top:8px}
  .ec-service:has(h3 a:hover) .ec-still img,.ec-still:hover img{transform:none}
  .ec h3 a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
}
@media (max-width:800px){
  .ec-still{margin-inline:calc(-1 * var(--ec-x,20px))}
  /* one calmer step between the sections (120 px above each eyebrow read as a dead screen between Usługi and Proces) */
  .ec{padding-top:92px}
  .ec .ec-tag{color:#f0eee4b8}
  /* type floor (MOBILE 2: nothing under 12 px): the film's caption kicker and the closing line under the headline */
  .hero-cap small{font-size:12px}
  .hero-end-line{font-size:15px}
}
@media (max-width:700px){
  body:has(.chapter) .contact .prepare h3{font-size:12px;line-height:16px}
}
/* The closer's other scopes: the three chapters on one row, Strona główna on its own (one pattern on every page). */
@media (max-width:700px),(pointer:coarse) and (max-height:500px) and (orientation:landscape){
  body:has(.chapter) .contact .other-chapters{display:grid;grid-template-columns:repeat(3,max-content);justify-content:start;column-gap:22px}
  body:has(.chapter) .contact .other-chapters a{min-height:44px;display:inline-flex;align-items:center}
  body:has(.chapter) .contact .other-chapters a[href="../"]{grid-column:1 / -1;justify-self:start}
}

/* PHONE HELD SIDEWAYS (pointer coarse, under 500 px tall): the desktop composition with its furniture sized for 390 px of
   height. One 64 px masthead row without the tagline; the title sits low left on a soft shade, no plate (the plate covered
   the fermenters and the plinth's corner); the stage rail lies along the bottom edge at 44 px a stop (stood upright it ran
   off the screen); the extra arrow goes (the rail steps the stages); safe areas kept; every control 44 px. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  .masthead .header-note{display:none}
  body .masthead{padding-top:calc(6px + env(safe-area-inset-top,0px));padding-bottom:6px}
  /* one slim row: 105 px of a 390 px screen was a quarter of the picture */
  html body .masthead{height:auto;min-height:0;gap:clamp(12px,2.4vw,28px);padding-left:calc(24px + env(safe-area-inset-left,0px));padding-right:calc(24px + env(safe-area-inset-right,0px))}
  html body .masthead .brand{width:72px;gap:3px;min-height:44px;align-content:center}
  html body .masthead .brand img{width:72px}
  html body .masthead .brand span{font-size:6px}
  html body .masthead nav{gap:clamp(8px,2vw,22px)}
  html body .masthead nav a{font-size:13px;padding-block:0}
  html body .masthead .inquiry{border:0;padding:0 0 0 8px;font-size:13px;gap:10px}
  :root{--film-top:56px}
  .ec{--ec-hdr:56px}
  body:has(.chapter) .chapter[data-composition] .scene-copy{top:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:calc(24px + env(safe-area-inset-left,0px));max-width:min(360px,42vw)}
  body:has(.chapter) .chapter[data-composition] .scene-copy :is(h1,h2){font-size:26px;line-height:1.05}
  body:has(.chapter) .chapter[data-composition] .scene-copy .eyebrow{margin-bottom:6px}
  body:has(.chapter) .chapter[data-composition] .scene-copy::before{left:calc(-24px - env(safe-area-inset-left,0px));right:-90px;top:-56px;bottom:calc(-16px - env(safe-area-inset-bottom,0px));background:radial-gradient(farthest-side at 0% 100%,#0e251ef2,#0e251ecc 45%,#0e251e00);border:0}
  body:has(.chapter) > .scene-nav{display:flex;flex-direction:row;align-items:center;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));right:calc(16px + env(safe-area-inset-right,0px));height:auto;padding:2px 6px;gap:0}
  body:has(.chapter) > .scene-nav a,html.chapter-auto body:has(.chapter) > .scene-nav .chapter-toggle{width:44px;height:44px;margin:0}
  html.chapter-auto body:has(.chapter) .scene-nav a::after{left:8px;right:8px;top:auto;bottom:-1px;width:auto;height:2px;transform:scaleX(var(--step-progress,0));transform-origin:left}
  body:has(.chapter) .chapter .next{display:none}
  .masthead nav a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  .masthead .inquiry{min-height:44px;display:inline-flex;align-items:center}
  body:has(.chapter) .contact a{min-height:44px}
  html.world-auto .world-pin .timeline-toggle{width:44px;height:44px}
  /* the closing panel's words scroll under the masthead: there its band is solid */
  body.at-contact:has(.chapter) .masthead::after{height:72px;background:#0e251e}
}
/* chapters/contact-film.js: the closing picture's hold loop, framed as the picture. */
.contact-photo .contact-film{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:50% 50%;opacity:0;transition:opacity .25s linear;pointer-events:none}
.contact-photo .contact-film.is-on{opacity:1}

/* ROUND 2 (Fable 7.5 FIX list, 2026-11-19). */
/* Phone held upright: the closing panel ends on its deed's hold loop (chapters/contact-film.js), a feathered 16:9 band
   edge to edge between the other scopes and the legal lines; the still only for the instant before the first frame.
   Reduced motion: no picture at all (it would be a still that stays up). */
@media (max-width:700px) and (orientation:portrait){
  body:has(.chapter) .contact .contact-photo{display:block;position:relative;inset:auto;z-index:0;order:1;width:calc(100% + 2 * var(--gutter,24px));height:auto;aspect-ratio:16/9;margin:36px calc(-1 * var(--gutter,24px)) 4px;background:none;
    -webkit-mask-image:linear-gradient(#0000,#000 16%,#000 84%,#0000);mask-image:linear-gradient(#0000,#000 16%,#000 84%,#0000)}
  body:has(.chapter) .contact .contact-photo img{filter:none;object-fit:contain;transform:none}
  /* no film (blocked autoplay, no IntersectionObserver): no picture rather than a still that stays up */
  body:has(.chapter) .contact .contact-photo:not(.has-film){display:none}
  body:has(.chapter) .contact footer{order:2}
}
@media (max-width:700px) and (orientation:portrait) and (prefers-reduced-motion:reduce){
  body:has(.chapter) .contact .contact-photo{display:none}
}
/* Phone held sideways: the picture is the right column beside the heading and scrolls away whole with it (it was pinned
   to the panel's middle, sat on the list's rules and left a scrap under the masthead); the copy keeps the left column. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  body:has(.chapter) .contact .contact-photo{top:calc(var(--closing-top,120px) - 40px);bottom:auto;height:min(300px,calc(100svh - 80px));left:50%;-webkit-mask-image:linear-gradient(90deg,#0000,#000 12%);mask-image:linear-gradient(90deg,#0000,#000 12%)}
  body:has(.chapter) .contact > :not(.contact-photo):not(footer):not(.other-chapters){max-width:calc(50% - var(--gutter,24px))}
  body:has(.chapter) .contact::before{display:none}
  /* home cards: the films sit on the page itself, feathered on all four sides, no tile behind them */
  .ec-still{background:none;-webkit-mask-image:linear-gradient(#0000,#000 14%,#000 86%,#0000),linear-gradient(90deg,#0000,#000 7%,#000 93%,#0000);-webkit-mask-composite:source-in;mask-image:linear-gradient(#0000,#000 14%,#000 86%,#0000),linear-gradient(90deg,#0000,#000 7%,#000 93%,#0000);mask-composite:intersect}
  .ec .ec-service h3{font-size:30px;white-space:nowrap}
  .ec-service-grid{align-items:start}
}
@media (max-width:800px){
  .ec-still{background:none}
  /* the footer's brand line in the same colour as its legal lines (it read as a dimmer, disabled row) */
  .ec-foot-brand{color:var(--muted)}
}

/* ROUND 3 (Fable 8.0 FIX list, 2026-11-19). */
@media (max-width:800px) and (orientation:portrait){
  /* landing hero: the portrait cut a little larger so the empty band above it is no longer a dead first screen, its foot
     melted into the page green (the plinth's dark wedge read as a black band); the play control goes to the bottom right
     as on the subpages, not alone in the empty band under the menu */
  .land3-plane{width:max(100cqw,min(126cqw,calc(100cqh * 912 / 1080)));-webkit-mask-image:linear-gradient(#0000,#000 12%,#000 93%,#0000);mask-image:linear-gradient(#0000,#000 12%,#000 93%,#0000)}
  .world-pin{--plane-h:max(calc(100vw * 1080 / 912),min(calc(126vw * 1080 / 912),calc(100svh - var(--film-top,98px))))}
  html.land3.world-auto .world-pin .timeline-toggle{top:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));right:calc(16px + env(safe-area-inset-right,0px))}
}
@media (max-width:700px) and (orientation:portrait){
  /* closing film band: longer feather (its edges read as a lighter rectangle) and air before the legal rule */
  body:has(.chapter) .contact .contact-photo{margin-bottom:28px;-webkit-mask-image:linear-gradient(#0000,#000 26%,#000 74%,#0000);mask-image:linear-gradient(#0000,#000 26%,#000 74%,#0000)}
}
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  /* landing hero: a soft dark ground from the left under the caption (it ran over the pale tanks and road) */
  html.land3 .hero-story::before,html.land3 .hero-end::before{content:"";position:absolute;z-index:-1;pointer-events:none;left:calc(-1 * var(--hero-x,40px));top:-40px;width:min(560px,70vw);height:calc(100% + 80px);background:radial-gradient(farthest-side at 0% 50%,#0b201ae0,#0b201a99 55%,#0b201a00)}
  html.land3 .hero-story,html.land3 .hero-end{isolation:isolate}
  /* subpages: only the play control stays on the film (the five stops covered the plinth's corner and a car; the
     chapter plays itself, as upright) */
  body:has(.chapter) > .scene-nav a{display:none}
  body:has(.chapter) > .scene-nav{background:none;border:0}
  /* closing panel: the other scopes are plain links as upright, the legal lines one row */
  body:has(.chapter) .contact .other-chapters a{border:0;border-bottom:1px solid #dec38c60;background:none;padding:0;border-radius:0}
  body:has(.chapter) .contact footer{display:flex;flex-wrap:wrap;column-gap:24px;row-gap:4px}
  body:has(.chapter) .contact footer span{white-space:nowrap}
}

/* ROUND 4 (Fable 8.0 FIX list). */
@media (max-width:800px) and (orientation:portrait){
  /* hero caption: the same soft dark ground the sideways caption has (on short phones it lay on the pale tank dome) */
  html.land3 .hero-story::before,html.land3 .hero-end::before{content:"";position:absolute;z-index:-1;pointer-events:none;left:calc(-1 * var(--hero-x,18px));top:-36px;width:100vw;height:calc(100% + 72px);background:radial-gradient(farthest-side at 0% 50%,#0b201ad0,#0b201a8c 60%,#0b201a00)}
  html.land3 .hero-story,html.land3 .hero-end{isolation:isolate}
  /* hero foot: melt into the page green over a longer run (the film's own dark ground read as a black band) */
  .land3-plane{-webkit-mask-image:linear-gradient(#0000,#000 12%,#000 82%,#0000);mask-image:linear-gradient(#0000,#000 12%,#000 82%,#0000)}
  html.land3.world-auto .world-pin{background:#102922}
  .land3-stage{background:#102922}
}
@media (max-width:700px){
  /* one legal treatment on every page: the home's muted grey */
  body:has(.chapter) .contact footer{color:var(--muted)}
}
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  .ec-still{-webkit-mask-image:linear-gradient(#0000,#000 22%,#000 78%,#0000),linear-gradient(90deg,#0000,#000 14%,#000 86%,#0000);mask-image:linear-gradient(#0000,#000 22%,#000 78%,#0000),linear-gradient(90deg,#0000,#000 14%,#000 86%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}
  body:has(.chapter) .contact footer{color:var(--muted)}
}
@media (max-width:800px) and (orientation:portrait){
  /* hero caption right under the menu, not low in the band above the film (the band under the menu read as empty) */
  .hero-story{top:calc(var(--film-top,98px) + 22px)}
}
/* chapters/home-end-film.js: the home's contact screen closes on the night loop, upright phones only. */
@media (max-width:700px) and (orientation:portrait){
  .ec-contact{grid-template-columns:1fr}
  .ec-end-film{grid-column:1 / -1;width:calc(100% + 2 * var(--ec-x,20px));margin:20px calc(-1 * var(--ec-x,20px)) 0;aspect-ratio:912/1080;max-height:70svh;overflow:hidden;opacity:0;transition:opacity .4s linear;
    -webkit-mask-image:linear-gradient(#0000,#000 18%,#000 80%,#0000);mask-image:linear-gradient(#0000,#000 18%,#000 80%,#0000)}
  .ec-end-film.is-on{opacity:1}
  .ec-end-film video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
}
/* chapters/home-end-film.js, sideways phones: the contact text on the left, the wide night loop held on the right. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  /* the section's bottom padding becomes a third grid row the film may stick through, so on the last screen it stays
     clear of the masthead instead of sliding up under it (same spacing above the footer, +16 px) */
  .ec-contact:has(.ec-end-film){grid-template-columns:minmax(0,1fr) minmax(0,.86fr);grid-template-rows:auto auto 40px;column-gap:28px;padding-bottom:0}
  .ec-contact:has(.ec-end-film) .ec-contact-main,.ec-contact:has(.ec-end-film) .ec-contact-side{grid-column:1}
  .ec-end-film{grid-column:2;grid-row:1 / span 3;align-self:start;position:sticky;top:calc(50svh - 16.7vw + 24px);width:calc(100% + var(--ec-x,20px));margin-right:calc(-1 * var(--ec-x,20px));aspect-ratio:4/3;overflow:hidden;opacity:0;transition:opacity .4s linear;
    -webkit-mask-image:linear-gradient(#0000,#000 16%,#000 84%,#0000),linear-gradient(90deg,#0000,#000 16%);mask-image:linear-gradient(#0000,#000 16%,#000 84%,#0000),linear-gradient(90deg,#0000,#000 16%);-webkit-mask-composite:source-in;mask-composite:intersect}
  .ec-end-film.is-on{opacity:1}
  .ec-end-film video{display:block;width:100%;height:100%;object-fit:cover}
}

/* TITLE ON FILM (round 2, 2026-11-20; ART-DIRECTION.md section 7, Fable audit 8): on the evolving-film subpages one type
   block sits over the full-bleed film, top-left, where the shot table keeps the frame on ground or shade: x max(40px,
   4.4vw), its top at the masthead's bottom plus clamp(36px, 5.5vh, 72px), so the first line's baseline is the same on
   every chapter. No box, pill or panel. Eyebrow „DROGA · 02 / 05” in Manrope 600, 0.15 em, gold, 12/13 px; title in
   Instrument Serif 40/48 px (1440/1920), never more than two lines (tests/titles.check.mjs: no title wider than its box,
   none over two lines, at 1440, 1920 and 390, and the corner under it dark and quiet). One line on desktop: a two-line
   block reaches down into the model (measured worse, round 3). The measure is the title's own width up to 15 em, so a nowrap phrase can
   never be cut by the clip that carries the title's entrance (round 1 cut „kontenerów magazynu” at 14 ch). */
@media (min-width:801px){
  html body main[data-evo] .chapter[data-composition] .scene-copy{left:max(40px,4.4vw);right:auto;bottom:auto;
    top:calc(var(--evo-masthead,105px) + clamp(36px,5.5vh,72px));width:auto;max-width:none;text-align:left;
    text-shadow:0 1px 2px #081914cc}
  html body main[data-evo] .chapter[data-composition] .scene-copy::before,
  html body main[data-evo] .chapter[data-composition] .scene-copy::after{display:none}
  html body main[data-evo] .chapter[data-composition] .scene-copy :is(h1,h2){
    font-size:clamp(40px,calc(40px + (100vw - 1440px) / 60),48px);line-height:1.08;letter-spacing:-.01em;
    width:max-content;max-width:min(15em,calc(100vw - 260px));text-wrap:balance}
  html body main[data-evo] .chapter[data-composition] .scene-copy .eyebrow{font-family:Manrope,"Manrope fallback",sans-serif;
    font-weight:600;letter-spacing:.15em;font-size:clamp(12px,calc(12px + (100vw - 1440px) / 480),13px);line-height:1.3;
    margin:0 0 14px;color:var(--gold,#dec38c)}
  /* No corner grade and no glow (section 2: no vignette, no darkening grade over the film): the corner the shot table keeps
     quiet carries the type with a 1-2 px shadow. tests/titles.check.mjs reads that corner with the grade gone. */
  body:has(main[data-evo]) .living-stage .living-shade{background:none}
}
/* The masthead's bottom, the block's reference (one place to change when the masthead moves to section 7's 64/72 px). */
body:has(main[data-evo]){--evo-masthead:105px}
/* Phone: the same type system under the film (title 30 px, eyebrow 11 px); the eyebrow carries „SIEĆ · 05 / 05”, so the
   bordered counter pill on the film goes (section 7: no pill on the film). */
@media (max-width:700px){html body main[data-evo] .chapter .phone-scene-nav{display:none!important}}
@media (max-width:700px){
  html body main[data-evo] .chapter[data-composition] .scene-copy :is(h1,h2){font-size:30px;line-height:1.1;letter-spacing:-.01em}
  html body main[data-evo] .chapter[data-composition] .scene-copy .eyebrow{font-family:Manrope,"Manrope fallback",sans-serif;font-weight:600;letter-spacing:.15em;font-size:11px;margin:0 0 12px}
}
/* BUFFERING (Fable audit 2): while the film waits for bytes the chapter control carries a slow gold arc; nothing else on
   the page changes (the picture holds its last frame or the chapter's still). */
.scene-nav .chapter-toggle{position:relative}
html.evo-buffering .chapter-toggle::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid transparent;
  border-top-color:var(--gold,#dec38c);border-right-color:#dec38c55;animation:evo-wait 1.4s linear infinite;pointer-events:none}
@keyframes evo-wait{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){html.evo-buffering .chapter-toggle::after{animation:none}}
/* Labels belong to the film's clock (Fable audit 18): a section's own static labels never show over the poster while the
   depth stage loads (on the phone they drew empty chips at first paint). They stay for the static page (no WebGL, tier C). */
.js-motion:not(.living-static) main[data-evo] .chapter>.engineering .trace{opacity:0!important}
/* WAIT FROM FIRST PAINT (round 2, Fable audit 2): until the film shows its first frame, the same gold arc turns where the
   chapter control will be (desktop: under the chapter dots; phone: bottom right), before the control itself exists. */
@media (min-width:701px){
  html:not(.evo-presented):not(.living-static):not(.chapter-auto) body:has(main[data-evo]) .scene-nav::after{content:"";display:block;
    justify-self:center;width:36px;height:36px;margin:10px 0 0;border-radius:50%;border:1px solid transparent;
    border-top-color:var(--gold,#dec38c);border-right-color:#dec38c55;animation:evo-wait 1.4s linear infinite;box-sizing:border-box}
}
@media (max-width:700px){
  html:not(.evo-presented):not(.living-static):not(.chapter-auto) body:has(main[data-evo])::after{content:"";position:fixed;z-index:12;
    right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));width:44px;height:44px;
    border-radius:50%;border:1px solid transparent;border-top-color:var(--gold,#dec38c);border-right-color:#dec38c55;
    animation:evo-wait 1.4s linear infinite;box-sizing:border-box;pointer-events:none}
}
html:not(.evo-presented) body:has(main[data-evo]) .chapter-toggle::after{content:"";position:absolute;inset:-5px;border-radius:50%;
  border:1px solid transparent;border-top-color:var(--gold,#dec38c);border-right-color:#dec38c55;animation:evo-wait 1.4s linear infinite;pointer-events:none}
@media (prefers-reduced-motion:reduce){html body:has(main[data-evo]) :is(.scene-nav,.chapter-toggle)::after,html body:has(main[data-evo])::after{animation:none}}
/* The section's stand-in plates after the first are never shown on a film page with the depth stage on its way (the film
   draws every chapter): hidden, their lazy photographs no longer share the first seconds' line with the first still. */
html.living-layout:not(.living-static) body:not(.living-ready) main[data-evo] > .chapter:not(:first-of-type):not(:target):not(.entered) .plate{display:none}
/* GROUND (round 2, Fable audit 2: on the phone the first picture sat in black bands that turned teal a second later): the
   depth stage's canvas is never drawn on a film page (living-engine.js EVO SYNC) but its cleared surface painted black
   around the phone's film box. Hidden there: the page's own green (the films' ground, #102a24) shows round the film from
   first paint to the end. */
body:has(main[data-evo]) .living-stage > canvas{visibility:hidden}
/* Phone: the section's stand-in still (first paint, before the film) stands exactly where the film will: the film box,
   16 % to 73 % of the screen, covered, centred (chapters/evo-film.js show()); it filled the screen before and the picture
   jumped to the box when the film took over. */
@media (max-width:700px){
  html body main[data-evo] .chapter .plate{top:16%;height:57%;left:0;width:100%;background:#102a24}
  html body main[data-evo] .chapter .plate img{object-position:50% 50%;transform:none}
}
/* MERGE (eve-all, 2026-11-20): with the phone films (www-v3-eve-phone) the upright film is the whole 9:16 portrait cut,
   full width, centred on the label band between the masthead and the title foot (living-engine.js phoneWindow, which
   writes the exact box as --phone-film-x/y/w/h). The stand-in still takes that box, so nothing moves at the hand-over;
   before the engine has measured, the same box from the masthead and foot heights (zoom 1, no shift). */
@media (max-width:700px) and (orientation:portrait){
  html body main[data-evo] .chapter .plate{left:var(--phone-film-x,0px);width:var(--phone-film-w,100%);
    height:var(--phone-film-h,calc(100vw * 16 / 9));
    top:var(--phone-film-y,calc((var(--film-top,98px) + 100svh - var(--phone-foot,132px)) / 2 - 100vw * 8 / 9));
    background:none;-webkit-mask-image:linear-gradient(#0000,#000 10%,#000 90%,#0000);mask-image:linear-gradient(#0000,#000 10%,#000 90%,#0000)}
  html body main[data-evo] .chapter .plate img{object-fit:cover}
}
/* The stand-in still is shown whole or not at all (round 3, Fable: at 2 Mbit/s the phone showed the top half of it with a
   hard edge for 0.6 s): chapter-open.js marks it once loaded; without JavaScript nothing is hidden. */
html.evo-still-wait body main[data-evo] .chapter .plate img{transition:opacity .12s ease-out}
html.evo-still-wait body main[data-evo] .chapter .plate img:not(.evo-loaded){opacity:0}
/* TAP TO PLAY (IPHONE, 2026-11-20): a film waiting for a tap is not loading: no waiting ring on the chapter control. */
html.evo-blocked body .chapter-toggle::after{display:none!important}

/* SIDEWAYS FILM (mobile bugs N3, 2026-11-21): held sideways the film is the whole cut under the masthead, set right
   (living-engine.js framing writes its left edge as --side-film-x); the title stands top left under the masthead, on the
   page green and the film's own bare ground (its column stays min(360px,42vw): the titles are set to that width). The title's shade lay under the film box and only
   darkened the strip beside it (a hard edge at the box), so it goes. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  html.film-only body:has(main[data-evo]) .chapter[data-composition] .scene-copy{top:calc(var(--film-top,56px) + 14px);bottom:auto}
  html.film-only body:has(main[data-evo]) .chapter[data-composition] .scene-copy::before{display:none}
  /* Fable re-test 5 F2: long titles ran on one line across Sieć's pylon on SE and Pro Max; the column ends where the film
     starts (its left strip is feathered bare ground), never narrower than 240 px */
  html.film-only body:has(main[data-evo]) .chapter[data-composition] .scene-copy{max-width:clamp(240px,var(--side-film-x,360px),min(360px,42vw))}
  /* 801 px+ sideways (SE, Pro Max) takes the desktop title (max-content, one line): here it wraps in that column */
  html.film-only body:has(main[data-evo]) .chapter[data-composition] .scene-copy :is(h1,h2){width:auto;max-width:100%;text-wrap:balance}
  /* round the box: the films' own ground (#0b2c28, sampled from the cuts' edges), not the stage's darker desktop green;
     the desktop's left-hand shade (for a title over the picture) would only dim the film here */
  html.film-only body:has(main[data-evo]) .living-stage{background:#0b2c28}
  html.film-only body:has(main[data-evo]) .living-stage .living-shade{display:none}
  /* Chromium decodes the cut's ground a shade off the CSS green: the box's left edge feathers so no seam shows */
  html.film-only body:has(main[data-evo]) .living-stage .film-plate{-webkit-mask-image:linear-gradient(90deg,#0000,#000 28px),linear-gradient(#0000,#000 14px);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,#0000,#000 28px),linear-gradient(#0000,#000 14px);mask-composite:intersect}
}
/* PURE FILM (Stan, 2026-11-21): a chapter page is one screen; the reader cannot scroll it (chapters/film-lock.js). Pinch
   zoom stays. The tour alone positions the page, programmatically, on the film's chapter. */
html.film-only,html.film-only body{overflow:hidden;overscroll-behavior:none}
html.film-only body{touch-action:pinch-zoom}
html.film-only .chapter .next{display:none}
html.film-only .masthead .inquiry.back > span{transform:none;margin-inline-end:.4em}
html.film-only .masthead .inquiry.back:is(:hover,:focus-visible) > span{transform:translateX(-3px)}
/* At the end the control restarts the film: a replay ring, not a play triangle (it would read as "resume"). */
html.film-only .timeline-toggle[data-state="ended"] .timeline-icon{width:13px;height:13px}
html.film-only .timeline-toggle[data-state="ended"] .timeline-icon::before{left:0;top:0;bottom:auto;width:13px;height:13px;box-sizing:border-box;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;background:none;clip-path:none}
html.film-only .timeline-toggle[data-state="ended"] .timeline-icon::after{display:block;left:auto;right:-2px;top:-2px;bottom:auto;width:0;height:0;border-left:6px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;background:none;border-radius:0;transform:rotate(20deg)}
