/* OVERLAY (2026-11-20; eve-v4/DESIGN-LANGUAGE.md). Loaded last on all five pages. Stan: "everything else on the website
   needs the same bar as the animations, and is an organic part of them." One ground (the films' own), one masthead, one
   label (dot, fine leader, name; no pill), one title block, one button, one curve. Every rule here implements a line of
   DESIGN-LANGUAGE.md; change that file first. Specificity: the older layers use :root:root body and html body chains,
   so every rule here starts with html:root:root body (P). */

:root{
  --ground:#0b2c28;            /* the films' decoded void (measured on the night frame and every subpage film) */
  --ground-deep:#082420;       /* one step down, for the masthead's lower edge on pale picture */
  --ink:#f0eee4;               /* type cream */
  --ink-2:#f0eee4b8;           /* body copy */
  --ink-3:#f0eee47a;           /* quiet numerals, legal */
  --gold:#dec38c;              /* interaction and eyebrows only */
  --rule:#f0eee424;            /* hairline */
  --ov-ease:cubic-bezier(.2,.7,.3,1);     /* arrivals: the films' camera settle */
  --ov-ease-io:cubic-bezier(.37,0,.63,1); /* travel on the film clock */
  --ov-quick:180ms; --ov-fade:360ms; --ov-draw:600ms; --ov-title:450ms;
  --ov-halo:0 0 1px #0b2c28,0 1px 2px #0b2c28d9,0 0 8px #0b2c288c;
}

/* ---------- 1. Ground: the page is the films' void ---------- */
:root{--green:#0b2c28}
html:root:root body .ec::before{display:none}
html:root:root,html:root:root body{background:var(--ground)}
html:root:root body :is(.ec,.ec-footer){background:var(--ground)}
html:root:root body .land3-stage,html:root:root body.has-ground .world-pin{background:var(--ground)}
@media (max-width:800px){html:root:root body .land3-stage,html.land3.world-auto:root body .world-pin{background:var(--ground)}}
html:root:root body:has(.chapter) .contact,html:root:root body:has(.chapter) .contact .contact-photo{background:var(--ground)}
@media (min-width:801px){html:root:root body:has(.chapter) .contact::before{background:linear-gradient(90deg,var(--ground) 0%,var(--ground) 47%,#0b2c2800 60%)}}
html:root:root body .ec-still{background:var(--ground)}

/* ---------- 2. Masthead: one on every page ---------- */
/* Desktop: 64 px (72 at 1700+), the films' own ground as a solid band with no rule, so over the void it is not there at
   all and over a bright frame it is a clean edge, never a dark grade. Mark, the line, four services, Kontakt in gold. */
@media (min-width:801px){
  :root{--mast-h:64px}
  html:root:root body .masthead{position:fixed;top:0;left:0;right:0;margin:0;height:var(--mast-h);min-height:0;box-sizing:border-box;
    padding:0 max(40px,4.4vw);display:flex;align-items:center;gap:0;background:var(--ground);border:0;z-index:10}
  html:root:root body .masthead::before,html:root:root body .masthead::after{display:none}
  html:root:root body .masthead .brand{width:auto;display:grid;gap:4px;justify-items:center}
  html:root:root body .masthead .brand img{width:92px;height:auto}
  html:root:root body .masthead .brand span{font:600 7.5px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.42em;margin-right:-.42em;color:var(--ink-2)}
  html:root:root body .masthead .header-note{display:block;margin:0 0 0 28px;padding-left:28px;border-left:1px solid var(--rule);font:500 12px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.04em;color:var(--ink-3)}
  html:root:root body .masthead .scope-toggle{display:none}
  html:root:root body .masthead nav{display:flex;gap:clamp(24px,2.3vw,40px);margin:0 0 0 auto}
  html:root:root body .masthead nav a{position:relative;padding:8px 0;border:0;font:500 14px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.01em;color:var(--ink);text-decoration:none;
    transition:color var(--ov-quick) var(--ov-ease)}
  html:root:root body .masthead nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform var(--ov-fade) var(--ov-ease)}
  html:root:root body .masthead nav a[aria-current]{color:var(--gold)}
  html:root:root body .masthead nav a[aria-current]::after,html:root:root body .masthead nav a:hover::after{transform:scaleX(1)}
  html:root:root body .masthead .inquiry{margin:0 0 0 clamp(32px,3vw,56px);padding:8px 0;border:0;border-bottom:0;background:none;display:inline-flex;align-items:center;gap:0;
    font:600 14px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.01em;color:var(--gold);position:relative;transition:color var(--ov-quick) var(--ov-ease)}
  html:root:root body .masthead .inquiry::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;opacity:.55;transform-origin:left;transition:opacity var(--ov-quick) var(--ov-ease)}
  html:root:root body .masthead .inquiry:hover{color:var(--ink)}
  html:root:root body .masthead .inquiry:hover::after{opacity:1}
  html:root:root body .masthead :is(nav a,.inquiry):hover{color:var(--gold)}
  html:root:root body .masthead nav a:hover:not([aria-current]){color:var(--ink)}
}
@media (min-width:1700px){
  :root{--mast-h:72px}
  html:root:root body .masthead :is(nav a,.inquiry){font-size:15px}
  html:root:root body .masthead .brand img{width:104px}
  html:root:root body .masthead .header-note{font-size:13px}
}
@media (min-width:801px) and (max-width:1100px){html:root:root body .masthead .header-note{display:none}}
/* Subpage title block and labels read the new masthead height. */
html:root:root body:has(main[data-evo]){--evo-masthead:var(--mast-h,64px)}

/* Phone: one 56 px row: mark, „Zakres prac” (opens the four services), „Kontakt”. */
@media (max-width:800px){
  :root{--mast-h:56px}
  html:root:root body .masthead{position:fixed;top:0;left:0;right:0;margin:0;z-index:20;display:flex;align-items:center;gap:0;height:calc(56px + env(safe-area-inset-top,0px));min-height:0;
    box-sizing:border-box;padding:env(safe-area-inset-top,0px) calc(20px + env(safe-area-inset-right,0px)) 0 calc(20px + env(safe-area-inset-left,0px));background:var(--ground);border:0;grid-template-columns:none;grid-template-rows:none}
  html:root:root body .masthead::before,html:root:root body .masthead::after{display:none}
  html:root:root body .masthead .brand{display:grid;gap:3px;justify-items:center;min-height:44px;align-content:center;width:auto}
  html:root:root body .masthead .brand img{width:66px}
  html:root:root body .masthead .brand span{font:600 6.5px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.38em;margin-right:-.38em;color:var(--ink-2)}
  html:root:root body .masthead .header-note{display:none}
  html:root:root body .masthead .scope-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 0 auto;padding:0 4px;border:0;background:none;color:var(--ink);
    font:500 14px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.01em;cursor:pointer;-webkit-tap-highlight-color:transparent}
  html:root:root body .masthead .scope-toggle::after{content:"";width:6px;height:6px;border-right:1.25px solid var(--gold);border-bottom:1.25px solid var(--gold);rotate:45deg;translate:0 -2px;transition:rotate var(--ov-fade) var(--ov-ease),translate var(--ov-fade) var(--ov-ease)}
  html.scope-open:root body .masthead .scope-toggle::after{rotate:225deg;translate:0 2px}
  html:root:root body .masthead .inquiry{display:inline-flex;align-items:center;min-height:44px;margin:0 0 0 22px;padding:0;border:0;background:none;font:600 14px/1 Manrope,"Manrope fallback",sans-serif;color:var(--gold);letter-spacing:.01em;gap:0}
  html:root:root body .masthead nav{position:fixed;left:0;right:0;top:calc(56px + env(safe-area-inset-top,0px));display:flex;flex-direction:column;gap:0;margin:0;
    padding:4px calc(20px + env(safe-area-inset-right,0px)) 20px calc(20px + env(safe-area-inset-left,0px));background:var(--ground);border-bottom:1px solid var(--rule);
    opacity:0;visibility:hidden;translate:0 -8px;transition:opacity var(--ov-fade) var(--ov-ease),translate var(--ov-fade) var(--ov-ease),visibility 0s var(--ov-fade)}
  html.scope-open:root body .masthead nav{opacity:1;visibility:visible;translate:0 0;transition:opacity var(--ov-fade) var(--ov-ease),translate var(--ov-fade) var(--ov-ease)}
  html:root:root body .masthead nav a{display:flex;align-items:center;min-height:52px;padding:0;border:0;border-top:1px solid var(--rule);font:400 26px/1 "Instrument Serif","Instrument Serif fallback",serif;letter-spacing:-.005em;color:var(--ink)}
  html:root:root body .masthead nav a:first-child{border-top:0}
  html:root:root body .masthead nav a[aria-current]{color:var(--gold)}
  html:root:root body .masthead nav a::after{display:none}
  /* MOBILE BUGS (2026-11-21): diorama.css's gold hover sweep (an ::before panel) stayed on after a tap (touch keeps :hover
     and :focus), under the gold word: „Kontakt” read as an empty gold box. The phone link is a plain gold word. */
  html:root:root body .masthead .inquiry::before{display:none}
  html:root:root body .masthead .inquiry:is(:hover,:focus,:focus-visible,:active){background:none;color:var(--gold)}
}

/* ---------- 3. Labels on the films: one component (subpage labels, landing hotspots) ---------- */
/* A gold dot with a hairline ring on the object, one 1 px cream leader (knee, then the rule the name stands on), the name
   in Manrope 600, cream, with a ground-green halo that disappears on the void and holds it on the porcelain plinth. No
   pill, no box. Draw-in on the film clock: dot 0-30 %, leader 15-70 %, name 45-100 % of 600 ms (living-engine.js writes
   --lv, 0-1, per label). */
html:root:root body .living-stage .engineering .callout-pill{display:none}
html:root:root body .living-stage .engineering .trace{opacity:1}
html:root:root body .living-stage .engineering .annotation{font-family:Manrope,"Manrope fallback",sans-serif;font-weight:600;font-size:14px;letter-spacing:.01em;fill:var(--ink);
  paint-order:stroke;stroke:#0b2c28;stroke-opacity:.82;stroke-width:3.5px;stroke-linejoin:round;filter:none;
  opacity:clamp(0,calc((var(--lv,1) - .45) * 1.82),1);translate:calc((1 - clamp(0,calc((var(--lv,1) - .45) * 1.82),1)) * -6px) 0}
@media (min-width:1700px){html:root:root body .living-stage .engineering .annotation{font-size:16px}}
html:root:root body .living-stage .engineering .leader{stroke:var(--ink);stroke-opacity:.85;stroke-width:1px;fill:none;vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 1px #0b2c28e6);stroke-dasharray:1 1;stroke-dashoffset:clamp(0,calc(1 - (var(--lv,1) - .15) * 1.82),1)}
html:root:root body .living-stage .engineering .callout-ring{fill:none;stroke:var(--gold);stroke-width:1px;vector-effect:non-scaling-stroke;opacity:clamp(0,calc(var(--lv,1) * 3.3),.9);
  transform-box:fill-box;transform-origin:center;scale:calc(1.9 - clamp(0,calc(var(--lv,1) * 3.3),1) * .9)}
html:root:root body .living-stage .engineering .endpoint.start{fill:var(--gold);stroke:#0b2c28;stroke-width:1px;vector-effect:non-scaling-stroke;paint-order:stroke;opacity:clamp(0,calc(var(--lv,1) * 3.3),1)}
@media (max-width:700px){html:root:root body .living-stage .engineering .annotation{font-size:14px;stroke-width:3.5px}}

/* Landing hotspots: the same dot and name; the names stay on at night (ART-DIRECTION 7). */
html:root:root body .land3-spot{color:var(--ink);font:600 14px/1.15 Manrope,"Manrope fallback",sans-serif;letter-spacing:.01em}
@media (min-width:1700px){html:root:root body .land3-spot{font-size:16px}}
html:root:root body .land3-spot::before{width:6px;height:6px;background:var(--gold);box-shadow:0 0 0 1px #0b2c28,0 0 0 4px #0b2c2800}
html:root:root body .land3-spot::after{width:13px;height:13px;border:1px solid var(--gold);opacity:.9;animation:none}
html:root:root body .land3-stage[data-state="idle"] .land3-spot::after{animation:ov-ring 4s var(--ov-ease) infinite;animation-delay:calc(var(--n,0) * 1s)}
@keyframes ov-ring{0%{opacity:.9;scale:1}30%{opacity:0;scale:2.2}31%{opacity:0;scale:1}60%,100%{opacity:.9;scale:1}}
html:root:root body .land3-spot span{text-shadow:var(--ov-halo);left:calc(50% + 14px)}
/* MOBILE BUGS (2026-11-21): on a phone the night plot is small and „Magazyn energii” stands on the white containers: cream
   on white, unreadable on iPhone 15 and gone on iPhone SE. Each marker's name sits on a small piece of the page green. */
@media (max-width:800px){html:root:root body .land3-spot span{padding:3px 7px 4px;border-radius:3px;background:rgba(11,44,40,.78);text-shadow:none}}
html:root:root body .land3-stage[data-state="idle"] .land3-spot span{opacity:1;translate:0 -50%;transition:opacity var(--ov-draw) var(--ov-ease),translate var(--ov-draw) var(--ov-ease)}
html:root:root body .land3-stage[data-state="idle"] .land3-spot:nth-child(2) span{transition-delay:120ms}
html:root:root body .land3-stage[data-state="idle"] .land3-spot:nth-child(3) span{transition-delay:240ms}
html:root:root body .land3-stage[data-state="idle"] .land3-spot:nth-child(4) span{transition-delay:360ms}
html:root:root body .land3-spot:is(:hover,[aria-pressed="true"]) span{color:var(--gold)}
html:root:root body .land3-spot:is(:hover,[aria-pressed="true"])::before{scale:1.35}
@media (max-width:800px){html:root:root body .land3-spot[data-area="droga"] span{left:auto;right:calc(50% + 14px)}}

/* ---------- 4. Title block over film ---------- */
/* Subpages (already the system): eyebrow gold Manrope 600 .15em, title Instrument Serif 40/48/30, top-left at the
   masthead + clamp(36px,5.5vh,72px), no box. The halo is the label's, one step softer. */
@media (min-width:801px){
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy{text-shadow:0 0 1px #0b2c28b3,0 1px 2px #0b2c28cc,0 0 18px #0b2c2873}
}
html:root:root body main[data-evo] .chapter[data-composition] .scene-copy .scene-line{margin:12px 0 0;max-width:24em;font:400 clamp(16px,1.25vw,20px)/1.45 Manrope,"Manrope fallback",sans-serif;
  letter-spacing:0;color:var(--ink);text-wrap:pretty}
@media (max-width:800px){html:root:root body main[data-evo] .chapter[data-composition] .scene-copy .scene-line{display:none}}
/* Landing: the headline is the block's title from the first frame (ART-DIRECTION 7), at title size during the film and
   at rest size on the night model; the eyebrow and the beat's sentence change under it with the camera. */
html.land3:root body .world-pin{--ov-h1-rest:clamp(56px,5vw,88px);--ov-h1-film:clamp(34px,2.78vw,48px);--ov-h1-k:calc(var(--ov-h1-film) / var(--ov-h1-rest))}
html.land3:root body .hero-end{opacity:1;translate:none;transition:none;max-width:min(38rem,48vw)}
html.land3:root body .hero-end::before,html.land3:root body .hero-cap::before{display:none}
html.land3:root body .hero-end h1{font-size:var(--ov-h1-rest);line-height:1.02;transform-origin:0 0;scale:var(--ov-h1-k);transition:scale 1.2s var(--ov-ease-io);
  text-shadow:0 0 1px #0b2c28b3,0 1px 2px #0b2c28cc,0 0 22px #0b2c2880}
html.land3.hero-final:root body .hero-end h1{scale:1}
html.land3:root body .hero-end :is(.hero-end-line,.hero-end-cta){opacity:0;translate:0 10px;transition:opacity var(--ov-draw) var(--ov-ease),translate var(--ov-draw) var(--ov-ease),visibility 0s var(--ov-draw);visibility:hidden}
html.land3.hero-final:root body .hero-end .hero-end-line{opacity:1;translate:none;visibility:visible;transition:opacity var(--ov-draw) var(--ov-ease) .5s,translate var(--ov-draw) var(--ov-ease) .5s}
html.land3.hero-final:root body .hero-end .hero-end-cta{opacity:1;translate:none;visibility:visible;transition:opacity var(--ov-draw) var(--ov-ease) .65s,translate var(--ov-draw) var(--ov-ease) .65s}
html.land3:root body .hero-end-line{font-size:clamp(16px,1.25vw,20px);line-height:1.5;max-width:26em;color:var(--ink);text-shadow:var(--ov-halo)}
html.land3:root body .hero-end-cta{font-size:15px;color:var(--gold);border-bottom-color:#dec38c8c;text-shadow:var(--ov-halo)}
/* the beat block sits under the headline at film size: headline's two lines at --ov-h1-film plus one gap */
html.land3:root body .hero-story{top:calc(var(--film-top,64px) + var(--hero-y) + var(--ov-h1-film) * 2.04 + 22px);width:min(30rem,40vw);transition:opacity var(--ov-fade) var(--ov-ease)}
html.land3:root body .hero-cap{font:500 clamp(16px,1.25vw,20px)/1.45 Manrope,"Manrope fallback",sans-serif;letter-spacing:0;color:var(--ink);text-shadow:var(--ov-halo);text-wrap:pretty;
  translate:0 6px;transition:opacity var(--ov-quick) linear,translate var(--ov-quick) linear}
/* one caption at a time, never two mid-crossfade (Fable merge note: two overlapped at 20 s on the phone): the outgoing
   one leaves in 180 ms, the next arrives after it has gone */
html.land3:root body .hero-cap.is-on{translate:none;transition:opacity var(--ov-fade) var(--ov-ease) .2s,translate var(--ov-fade) var(--ov-ease) .2s}
html.land3:root body .hero-cap small{font:600 clamp(12px,.86vw,13px)/1.3 Manrope,"Manrope fallback",sans-serif;letter-spacing:.15em;color:var(--gold);margin:0 0 8px}
html.land3:root body .hero-cap[data-pos="low"]{top:0}
html.land3.land3-diving:root body .hero-end{opacity:0!important;transition:opacity .3s ease-out}
@media (max-width:800px){
  html.land3:root body .world-pin{--ov-h1-rest:42px;--ov-h1-film:30px}
  html.land3:root body .hero-end{max-width:calc(100vw - 40px)}
  html.land3:root body .hero-end-line{font-size:16px}
  html.land3:root body .hero-cap{font-size:16px}
  html.land3:root body .hero-cap small{font-size:11px}
  html.land3:root body .hero-story{width:calc(100vw - 40px);top:calc(var(--film-top,56px) + 20px + 30px * 2.04 + 16px)}
  html.land3:root body .hero-end{top:calc(var(--film-top,56px) + 20px)}
  html.land3:root body .hero-story::before,html.land3:root body .hero-end::before{display:none}
}

/* ---------- 5. Buttons: one round icon button, one text call ---------- */
/* Icon button: 40 px circle (44 on touch), 1 px cream hairline at 30 %, the ground at 55 % behind it, cream icon; hover
   and focus: gold hairline and icon. Text call: Manrope 600 15 px, gold, a 1 px rule under it that fills on hover. */
html:root:root body :is(.timeline-toggle,.chapter .next){box-sizing:border-box;width:40px;height:40px;border-radius:50%;border:1px solid #f0eee44d;background:#0b2c28e6;
  -webkit-backdrop-filter:none;backdrop-filter:none;color:var(--ink);transition:border-color var(--ov-quick) var(--ov-ease),color var(--ov-quick) var(--ov-ease),background-color var(--ov-quick) var(--ov-ease)}
html:root:root body :is(.timeline-toggle,.chapter .next):hover{border-color:var(--gold);color:var(--gold);background:#0b2c28b3;transform:none}
html:root:root body .chapter .next{font-size:18px;line-height:1}
@media (pointer:coarse){html:root:root body :is(.timeline-toggle,.chapter .next){width:44px;height:44px}}

/* The side dial (Astra): no column, no ring. Numerals in Manrope 600 12 px on the film with the halo, cream at 70 %; the
   current one gold, its progress a 16 x 1 px gold rule under it filled from the film clock; the pause button sits on the
   same axis below. */
@media (min-width:701px){
  html:root:root body > .scene-nav{background:none;border:0;padding:0;-webkit-backdrop-filter:none;backdrop-filter:none;gap:0;right:max(28px,2.2vw);justify-items:center}
  html:root:root body > .scene-nav a{width:40px;height:32px;border:0;border-radius:0;background:none;color:#f0eee4b3;font:600 12px/1 Manrope,"Manrope fallback",sans-serif;letter-spacing:.06em;
    font-variant-numeric:tabular-nums;text-shadow:var(--ov-halo);box-shadow:none;transition:color var(--ov-quick) var(--ov-ease)}
  html:root:root body > .scene-nav a[aria-current]{color:var(--gold);border:0;box-shadow:none}
  html:root:root body > .scene-nav a:hover{color:var(--ink)}
  html:root:root body > .scene-nav a[aria-current]:hover{color:var(--gold)}
  html:root:root body > .scene-nav a > span{transform:none!important}
  html.chapter-auto:root body > .scene-nav a::after{left:50%;right:auto;top:auto;bottom:3px;width:16px;height:1px;margin-left:-8px;background:var(--gold);
    transform:scaleX(var(--step-progress,0));transform-origin:left;box-shadow:0 0 0 .5px #0b2c2866}
  html.chapter-auto:root body > .scene-nav a[aria-current]{border-right:0}
  html.chapter-auto:root body > .scene-nav .chapter-toggle{margin-top:14px}
  html:root:root body > .scene-nav a:focus-visible{outline:1px solid var(--gold);outline-offset:2px;box-shadow:none}
}

/* ---------- 6. Below the fold: the plinth world on the page ---------- */
/* Cards: no box. The still sits on the ground, a 1 px rule under it, number, serif title, one line; hover: the title
   turns gold and the still settles 2 % closer over 600 ms (the films' curve). */
html:root:root body .ec-service{background:none;border:0;border-radius:0;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;overflow:visible}
html:root:root body .ec-service::before,html:root:root body .ec-service::after{display:none}
html:root:root body .ec-still{border:0;border-bottom:1px solid var(--rule);margin-inline:0}
html:root:root body .ec-still::after{display:none}
html:root:root body .ec-service > :not(.ec-still){margin-inline:0}
html:root:root body .ec-still img{transition:scale var(--ov-draw) var(--ov-ease);transform:none}
html:root:root body .ec-service:has(a:hover) .ec-still img{scale:1.02}
html:root:root body .ec-service h3 a{transition:color var(--ov-quick) var(--ov-ease)}
html:root:root body .ec-service:has(a:hover) h3 a{color:var(--gold)}
@media (max-width:800px){html:root:root body .ec-still{margin-inline:calc(-1 * var(--ec-x,20px));border-bottom:0}}
/* Grey tag lines under the audience columns said nothing (audit 21): gone. */
html:root:root body .ec .ec-tag{display:none}
/* Reveals: 12 px and 600 ms on the arrival curve, 120 ms apart. */
html:root:root body .ec-reveal{transition-duration:var(--ov-draw)!important;transition-timing-function:var(--ov-ease)!important}

/* Closing panel on subpages: the other scopes as text calls on one row, no boxes. */
html:root:root body:has(.chapter) .contact .other-chapters{display:flex;flex-wrap:wrap;gap:12px 32px;align-items:center}
html:root:root body:has(.chapter) .contact .other-chapters a{border:0;border-radius:0;background:none;padding:6px 0;min-height:0;width:auto;font:600 15px/1.2 Manrope,"Manrope fallback",sans-serif;color:var(--ink);
  position:relative;display:inline-flex;gap:8px;align-items:center;transition:color var(--ov-quick) var(--ov-ease)}
html:root:root body:has(.chapter) .contact .other-chapters a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--gold);opacity:.45;transform-origin:left;transition:opacity var(--ov-quick) var(--ov-ease)}
html:root:root body:has(.chapter) .contact .other-chapters a:hover{color:var(--gold)}
html:root:root body:has(.chapter) .contact .other-chapters a:hover::after{opacity:1}
html:root:root body:has(.chapter) .contact .other-chapters a span{color:var(--gold);font-size:.9em}
@media (pointer:coarse){html:root:root body:has(.chapter) .contact .other-chapters a{min-height:44px}}

@media (prefers-reduced-motion:reduce){
  html:root:root body .land3-stage[data-state="idle"] .land3-spot::after{animation:none}
  html.land3:root body .hero-end h1{transition:none}
}

/* ---------- 7. Round-1 fixes from the after-shots ---------- */
/* The four stills at the renders' own 16:9, so every plinth is whole (Sieć was cut on three sides in the 2:1 band). */
@media (min-width:801px){html:root:root body .ec-still{aspect-ratio:16/9}}
/* Small gold type on pale picture (the eyebrows over the landing's concrete) holds with one tighter halo step. */
html.land3:root body .hero-cap small,html:root:root body main[data-evo] .chapter[data-composition] .scene-copy .eyebrow{text-shadow:0 0 1px #0b2c28,0 0 3px #0b2c28e6,0 1px 8px #0b2c28b3}
/* Phone: one left margin for the legal lines and the content (phone note 10), and the night loop closer to the list
   above it (phone note 2: ~150 px of air read as an empty screen). */
@media (max-width:800px){
  html:root:root body .ec-footer{padding-left:calc(var(--ec-x,20px) + env(safe-area-inset-left,0px));padding-right:calc(var(--ec-x,20px) + env(safe-area-inset-right,0px))}
}
@media (max-width:700px) and (orientation:portrait){
  html:root:root body .ec-end-film{margin-top:-12px}
}
/* Phone held sideways (390 px tall): the type block at the phone's sizes, beside the film rather than over it. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape){
  html.land3:root body .world-pin{--ov-h1-rest:34px;--ov-h1-film:24px}
  html.land3:root body .hero-end{max-width:min(46vw,360px)}
  html.land3:root body .hero-end-line{font-size:14px;max-width:none}
  html.land3:root body .hero-cap{font-size:14px}
  html.land3:root body .hero-cap small{font-size:11px}
  html.land3:root body .hero-story{width:min(46vw,360px);top:calc(var(--film-top,64px) + var(--hero-y) + 24px * 2.04 + 14px)}
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy .scene-line{display:none}
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy :is(h1,h2){font-size:26px}
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy .eyebrow{font-size:11px;margin-bottom:8px}
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy{top:calc(var(--mast-h,64px) + 18px)}
}

/* ---------- 8. Astra after round 1 ---------- */
/* The headline keeps its two lines at every width (at 1920 „jeden harmonogram.” wrapped and the eyebrow printed over it). */
html.land3:root body .hero-end{max-width:none}
html.land3:root body .hero-end h1{white-space:nowrap}
html.land3:root body .hero-end :is(.hero-end-line,.hero-end-cta){max-width:min(30rem,44vw)}
@media (max-width:800px){html.land3:root body .hero-end :is(.hero-end-line,.hero-end-cta){max-width:calc(100vw - 40px)}}
/* One emphasis in the masthead: the current page carries the underline, Kontakt is gold text only until hovered. */
@media (min-width:801px){html:root:root body .masthead .inquiry::after{opacity:0}html:root:root body .masthead .inquiry:hover::after{opacity:.8}}
/* Night markers settle: the ring breathes twice on arrival, then the four names and dots stand still. */
html:root:root body .land3-stage[data-state="idle"] .land3-spot::after{animation-iteration-count:2}
/* Cards keep their geometry on hover (only the title changes); each group below the film arrives together. */
html:root:root body .ec-service:has(a:hover) .ec-still img{scale:none}
html:root:root body .ec-reveal{transition-delay:0s!important}
/* Dial numerals hold over the plinth's pale right edge; the next arrow stands on the dial's axis. */
@media (min-width:701px){
  html:root:root body > .scene-nav a{text-shadow:0 0 1px #0b2c28,0 0 3px #0b2c28e6,0 1px 8px #0b2c28b3;color:#f0eee4cc}
  html:root:root body main[data-evo] .chapter .next{right:max(28px,2.2vw)}
}
/* Shorter measure where the shot puts wires or the dome beside the block (Sieć, Biogaz 03). */
@media (min-width:801px){
  html:root:root body main[data-evo="evo-s"] .chapter[data-composition] .scene-copy .scene-line,
  html:root:root body main[data-evo="evo-b"] .chapter[data-scene="2"] .scene-copy .scene-line{max-width:17em}
}
/* Return to the landing (land3.js RETURN): the night still stands over the film until the live night loop takes over. */
html.land3:root body .land3-return-still{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;transition:opacity .36s linear;z-index:0}
html.land3:root body .land3-hotspots{z-index:1}
/* Gold is for actions and eyebrows: the fifth process step no longer glows as if selected (ART-DIRECTION 10 #20), and the
   three audiences read as peers, without ordinals. */
html:root:root body .ec-steps > li:last-child::before{background:#0f2a22;box-shadow:inset 0 0 0 1px var(--gold)}
html:root:root body .ec-audience-list .ec-num{display:none}

/* MOBILE BUGS (2026-11-21): a phone film's last chapter showed no label at all (living-engine.css hid the „result”
   composition's labels on a phone, from the scrolling page where its title stood centred on the picture); the film page
   rests on that chapter, so its labels show like every other chapter's (their phone anchors measured on the phone cut). */
@media (max-width:700px){html:root body .engineering[data-composition=result] .trace{display:block}}

/* MOBILE BUGS (2026-11-21, Galaxy S9+ 320 x 658): a three-line title („Posadowienie kontenerów magazynu”) ran off the
   bottom of the screen: the title band hangs from the film's foot. On narrow phones the title stands on the screen's foot
   instead (it grows upward over the film's feathered edge) and is set a size smaller. */
@media (max-width:360px) and (orientation:portrait){
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy{top:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  html:root:root body main[data-evo] .chapter[data-composition] .scene-copy :is(h1,h2){font-size:25px;line-height:1.08}
}

/* MOBILE BUGS (2026-11-21, iPhone 15 held sideways): the headline's line ran across the film (its phone max-width is the
   screen's) and „Sieć” stood above its dot, on top of „Biogaz”. Sideways the type keeps to the ground left of the film,
   and Sieć's name stands right of its dot like the others (there is room before the screen edge). */
@media (max-width:800px) and (min-aspect-ratio:5/4){
  html.land3:root body .hero-end :is(.hero-end-line,.hero-end-cta){max-width:calc(100vw - var(--plane-w,46vw) - 72px)}
  html:root:root body .land3-spot[data-area="siec"] span{left:calc(50% + 14px);top:50%;bottom:auto;translate:0 -50%}
  html:root:root body .land3-spot[data-area="magazyn"] span{top:calc(50% + 17px)}
}
/* Narrow phones upright (iPhone SE, 320-375 px): „Magazyn energii” right of its dot ran into „Sieć”, and „Sieć” ran off
   the screen's right edge; both stand left of their dots. */
@media (max-width:380px) and (orientation:portrait){
  html:root:root body .land3-spot:is([data-area="magazyn"],[data-area="siec"]) span{left:auto;right:calc(50% + 12px)}
}
/* Fable re-test N6: on a 320 px phone „jeden harmonogram.” ended 3 px from the edge (18 px margin on the left). */
@media (max-width:340px) and (orientation:portrait){html.land3:root body .world-pin{--ov-h1-rest:39px}}

/* MOBILE BUGS P2 (Fable re-test 2, 2026-11-21): a phone held sideways lays the landing out 844 px wide (the inline viewport
   script) and the plate filled that width, so the hero copy sat on the farmhouse and the plinth's top ran under the header.
   Short sideways screens: the plate sized by the height under the header, set right, its edges fading into the ground;
   the copy keeps to the dark ground on the left. */
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape) and (min-width:801px){
    html.land3.world-auto:root body .world-pin{height:100vh;height:100dvh}
    html:root:root body .land3-plane{--pw:min(84vw,calc((100vh - var(--film-top,64px)) * 16 / 9));width:var(--pw);left:auto;top:auto;bottom:0;right:calc(var(--pw) * -.05);translate:none;-webkit-mask-image:linear-gradient(90deg,#0000,#000 9%),linear-gradient(180deg,#0000,#000 7%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,#0000,#000 9%),linear-gradient(180deg,#0000,#000 7%);mask-composite:intersect}
    html.land3:root body .hero-end{max-width:min(40vw,330px)}
    html.land3:root body .hero-end :is(.hero-end-line,.hero-end-cta){max-width:min(40vw,330px)}
}
