/* Blaze — the shared layer of the subpages (projekty, proc-blaze, kariera, kontakt).
   Tokens, type, header, buttons and footer taken from index.html so the pages read as one site; the home keeps its
   own copy because its header is owned by the intro animation. Everything page-specific lives in the page itself. */

:root { color-scheme: dark; --bg: #000; --fg: #F8F8F8; --muted: rgba(248, 248, 248, .68); --faint: rgba(248, 248, 248, .45);
        --line: rgba(248, 248, 248, .14); --heat: #FF6633; --panel: #121214;
        --gutter: clamp(16px, 3vw, 48px); --sec-space: clamp(120px, 20vh, 220px);
        --bf: "Hanken Grotesk"; --warm: #160b09;   /* text font; the warm black that takes turns with the black (was #120e0b, a brown on a screen without the eye-protection mode, so now the reddish #160b09) */
        --hf: "Figtree"; --hw: 500; --hls: -.045em; --hs: 1.16;   /* Figtree only; more weight = Figtree 700, as on Kariéra */
        --bar-top: clamp(20px, 4vh, 40px); --logo-w: clamp(112px, 9vw, 150px); --logo-h: calc(var(--logo-w) * 246 / 853); }
html, body { margin: 0; background: var(--bg); }
html { scroll-behavior: smooth; }
body { color: var(--fg); font-family: var(--bf, "Inter"), system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6;
       overflow-x: hidden; }
html.menu-open, html.menu-open body { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--heat); color: #000; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- type */
.h { margin: 0; font: var(--hw) calc(1em * var(--hs)) / 1.05 var(--hf), sans-serif; letter-spacing: var(--hls); text-wrap: balance; }
.h1 { font-size: clamp(34px, 5.2vw, 84px); line-height: 1.02; max-width: 16ch; }
.h2 { font-size: clamp(28px, 3.6vw, 56px); max-width: 20ch; }
.h3 { font-size: clamp(22px, 2.4vw, 34px); }
.h4 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
/* the last words of the headlines: heavier Figtree (the Instrument Serif italic is gone, AI-made pages overuse it) */
.accent { font: inherit; font-weight: 800; }
.dot { color: var(--heat); }
.eyebrow { margin: 0 0 18px; font: 500 13px/1 var(--bf, "Inter"), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--heat); }
.lead { margin: 20px 0 0; max-width: 56ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14px; color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }

/* ---- layout */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.page-head { padding: calc(var(--bar-top) + var(--logo-h) + clamp(64px, 12vh, 140px)) 0 clamp(48px, 8vh, 96px); }
.page-head .lead { max-width: 60ch; }
/* the project pages' head on a wide screen (the right half was empty black): text left, the proof right.
   Here and not in case.css because Prodator and NOSKY don't load it; the selectors outweigh their inline copies of .figs */
@media (min-width: 1100px) {
  .page-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(32px, 4vw, 72px); }
  .page-head > * { grid-column: 1; }
  .page-head > .figs { grid-column: 2; grid-row: 2 / span 3; align-self: stretch; margin-top: 0; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; border-top: 0; }
  .page-head > .split { grid-column: 1 / -1; grid-row: 5; }   /* Prodator's 80 / 20 bar keeps the full width */
  .page-head .figs .fig { padding: 22px 0 22px clamp(16px, 2vw, 28px); border-top: 1px solid var(--line); border-right: 0; }
  .page-head .figs .fig:nth-child(odd) { padding-left: 0; padding-right: clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); }
  .page-head .figs .fig:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .page-head .figs .fig b:not(.word) { font-size: clamp(28px, 3vw, 46px); }   /* „300 000+" fits a cell of the narrower column */
}
.sec { padding: var(--sec-space) 0 0; }
.sec--tight { padding-top: clamp(64px, 10vh, 120px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sec-head { max-width: 760px; }
.sec-head .lead { margin-top: 20px; }
.cols { display: grid; gap: 32px clamp(24px, 4vw, 64px); }
.cols--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols--2, .cols--3 { grid-template-columns: 1fr; } }

/* ---- header: the home's bar with the logo inside it. At the top a normal full-width header on the logo's line; a little
   way down it shrinks into the floating see-through bar */
.bar { position: fixed; z-index: 40; top: var(--bar-top); left: 0; right: 0; height: var(--logo-h);
       display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter);
       border: 1px solid transparent; border-radius: 0; background: rgba(14, 14, 16, 0);
       transition: top .55s cubic-bezier(.65, 0, .35, 1), left .55s cubic-bezier(.65, 0, .35, 1), right .55s cubic-bezier(.65, 0, .35, 1),
                   height .55s cubic-bezier(.65, 0, .35, 1), padding .55s cubic-bezier(.65, 0, .35, 1), border-radius .55s ease,
                   background-color .4s ease, border-color .4s ease, transform .6s cubic-bezier(.65, 0, .35, 1); }
/* reading down, the floating bar slides away up (the hanging agent with it); the first move up brings it back.
   assets/bar-hide.js sets the class */
html.is-float.bar-away .bar { transform: translateY(calc(-100% - 100px)); }
.bar__logo { display: flex; align-items: center; height: 100%; flex: none; }   /* centred in the bar, also once it floats and the logo shrinks */
.bar__logo img { height: var(--logo-h); width: auto; transition: height .55s cubic-bezier(.65, 0, .35, 1); }
.bar__logo:focus-visible { outline-offset: 6px; border-radius: 4px; }
/* „Člen skupiny K2": at the top beside the logo behind a thin line; in the floating bar under it, the
   two centred together; on phones always under it (at the top it hangs below the logo, so the logo keeps its place).
   Changing place it fades out and in, it never slides across (two names, so the fade restarts each way) */
@keyframes k2-top { from { opacity: 0; } }
@keyframes k2-bar { from { opacity: 0; } }
.bar__logo { position: relative; gap: 16px; text-decoration: none; }
.bar__k2 { padding-left: 14px; border-left: 1px solid rgba(248, 248, 248, .22); white-space: nowrap;
           font: 500 13px/16px var(--bf, "Inter"), sans-serif; color: var(--muted); animation: k2-top .45s ease .3s backwards; }
html.is-float .bar__logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
html.is-float .bar__k2 { padding-left: 0; border-left: 0; font-size: 10px; line-height: 12px; animation-name: k2-bar; }
/* at the top beside the logo the label and its divider share one middle (the label used to sit lower than
   the line). That middle is taken from the word „Blaze“ (from the word, not the whole
   logo with the taller flame): the middle of its lowercase letters, 151.5/246 of the logo height, i.e. 11.59 % below the
   logo's middle. It lies between the word's cap middle (the label read too high there) and the label on the word's
   baseline (the line then read too low). The label's 16 px box is centred on that middle, the 16 px line on the box */
@media (min-width: 761px) {
  html:not(.is-float) .bar__k2 { position: relative; transform: translateY(calc(var(--logo-h) * .1159)); border-left: 0; }
  html:not(.is-float) .bar__k2::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px;
                                        background: rgba(248, 248, 248, .22); }
}
@media (max-width: 760px) {
  .bar__k2 { padding-left: 0; border-left: 0; }
  /* phones: the K2 line stays under the logo in both
     states, so it no longer fades out and in, and the logo no longer jumps 7.5 px up the moment the bar floats (the line
     used to join the flex column at once). The link box is the logo's own height, the line hangs under it, and in the
     floating bar the pair is centred by one smooth move of the link, the same curve as the bar */
  .bar__logo { height: auto; align-self: center; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
  /* under the word „Blaze“, not under the flame, 9 px, close to the word (it looked cramped):
     the word starts at 324/853 of the logo's width, a share of the link box, so it follows the logo as it shrinks */
  html .bar__k2, html.is-float .bar__k2 { position: absolute; left: 37.98%; top: calc(100% + 2px); font-size: 9px; line-height: 11px; animation: none;
                                         transform-origin: 0 0; transition: scale .55s cubic-bezier(.65, 0, .35, 1), top .55s cubic-bezier(.65, 0, .35, 1); }
  /* in the floating bar the line shrinks with the logo, in exactly its ratio: the phone logo is 112 px wide
     (--logo-w's floor), 32.3 px tall, 24 px in the bar = .743; the gap shrinks with it */
  html.is-float .bar__k2 { scale: .743; top: calc(100% + 1.5px); }
  html.is-float .bar__logo { transform: translateY(-4.8px); }   /* (1.5 px gap + 11 px × .743 line) / 2 */
}
@media (prefers-reduced-motion: reduce) { .bar__k2 { animation: none; } }
/* the links touch and carry the old gap as padding, so the words stay where they were and the pill never drops between two links */
.bar__nav { --pad: clamp(9px, 1vw, 15px); display: flex; margin: 0 calc(var(--pad) * -1); padding: 0; list-style: none; }
/* as on the home: the nav sits on the right next to the button, at the top and in the floating bar alike (it
   used to move over to the logo once the bar floated). The auto margin goes on the bar's flex child (the <nav>), not on the list */
.bar > nav { position: relative; isolation: isolate; margin-left: auto; }
.bar__nav a { position: relative; z-index: 1; display: inline-block; padding: 9px var(--pad); color: var(--muted); font: 500 15px/1 var(--bf, "Inter"), sans-serif;
              text-decoration: none; transition: color .25s ease; }
.bar__nav a:hover, .bar__nav a.is-lit { color: var(--fg); }
/* the pill behind the words: one grey block only. It rests on the page you are on, travels to the link
   under the pointer and comes back when the pointer leaves; on the home it slides in from the left the first time, after
   that from wherever it was last. assets/nav-pill.js */
.bar__pill { position: absolute; left: 0; top: 0; border-radius: 999px; background: rgba(248, 248, 248, .12); opacity: 0; pointer-events: none;
             transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1), opacity .25s ease; }
.bar__pill.is-on { opacity: 1; }
.bar__pill.is-snap { transition: opacity .25s ease; }
.bar__nav a:focus-visible, .bar__cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }
.bar__nav a:focus-visible { outline-offset: 2px; border-radius: 999px; }
.bar__cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 6px; flex: none;
            background: var(--heat); color: #000; font: 600 14px/1 var(--bf, "Inter"), sans-serif; text-decoration: none; gap: 8px; }
html.is-float .bar { --side: max(var(--gutter), calc((100vw - 880px) / 2));
                     top: 14px; left: var(--side); right: var(--side); height: 58px; padding: 0 8px 0 20px; border-radius: 12px;
                     background: rgba(18, 18, 21, .55); border-color: rgba(248, 248, 248, .09);
                     -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
html.is-float .bar__logo img { height: 24px; }
/* the menu button: phones only. The bar's nav hides, and the four pages open as one full screen */
.bar__menu { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px; border: 0;
             background: none; color: var(--fg); font: 500 15px/1 var(--bf, "Inter"), sans-serif; cursor: pointer; }
.bar__menu i { position: relative; display: block; width: 20px; height: 12px; }
.bar__menu i::before, .bar__menu i::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
                                            transition: transform .3s ease, top .3s ease; }
.bar__menu i::before { top: 0; } .bar__menu i::after { top: 10px; }
html.menu-open .bar__menu i::before { top: 5px; transform: rotate(45deg); }
html.menu-open .bar__menu i::after { top: 5px; transform: rotate(-45deg); }
/* its way in, calm: the ground fades in, then the items rise one after another, the contact lines
   last; closing fades it all out together, quicker. Only up and down, never sideways. index.html keeps the same rules */
.menu { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end;
        padding: 0 var(--gutter) clamp(32px, 8vh, 72px); background: var(--bg);
        visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s ease .08s, visibility 0s linear .38s; }
html.menu-open .menu { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }
.menu__list li, .menu__foot { opacity: 0; transform: translateY(18px); transition: opacity .18s ease, transform .18s ease; }
html.menu-open .menu__list li, html.menu-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1) calc(.08s + var(--i, 0) * 45ms),
              transform .6s cubic-bezier(.22, 1, .36, 1) calc(.08s + var(--i, 0) * 45ms); }
.menu__list li:nth-child(2) { --i: 1; } .menu__list li:nth-child(3) { --i: 2; } .menu__list li:nth-child(4) { --i: 3; }
.menu__list li:nth-child(5) { --i: 4; } .menu__list li:nth-child(n+6) { --i: 5; } .menu__foot { --i: 7; }
@media (prefers-reduced-motion: reduce) {
  .menu, html.menu-open .menu, .menu__list li, .menu__foot, html.menu-open .menu__list li, html.menu-open .menu__foot { transition: none; }
  .menu__list li, .menu__foot { transform: none; }
}
.menu__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; justify-items: end; text-align: right; }   /* right: under the thumb */
.menu__list a { display: inline-block; padding: 6px 0; color: var(--fg); text-decoration: none;
                font: var(--hw) clamp(32px, 9vw, 48px)/1.1 var(--hf), sans-serif; letter-spacing: var(--hls); }
.menu__list a[aria-current="page"] { color: var(--heat); }
/* Blaze Academy (the training link in the header): a separate site, so a small arrow says it opens elsewhere */
.bar__nav .ext, .menu__list .ext, .foot .ext { display: inline-block; margin-left: .18em; font-size: .72em; opacity: .55; transform: translateY(-.12em); }
/* in the phone menu the arrow stands before the word, and the menu keeps off the right edge */
.menu__list a:has(.ext) { display: inline-flex; align-items: baseline; }
.menu__list .ext { order: -1; margin: 0 .22em 0 0; }
.menu__list, .menu__foot { padding-right: 18px; }
.menu__foot { margin-top: 32px; display: grid; gap: 8px; justify-items: end; text-align: right; font-size: 15px; color: var(--muted); }
.menu__foot a { color: var(--fg); text-decoration: none; }
@media (max-width: 760px) {
  .bar__nav, .bar > nav { display: none; }
  .bar__menu { display: inline-flex; }
  html.is-float .bar { --side: var(--gutter); }
}
@media (max-width: 480px) { .bar__cta { display: none; } }   /* the menu carries the consultation link */

/* ---- buttons: the home's, with the rolling label and the arrow (site.js builds them) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
       border-radius: 6px; border: 1px solid transparent; font: 600 16px/1 var(--bf, "Inter"), sans-serif; text-decoration: none; cursor: pointer;
       overflow: hidden; isolation: isolate; background: none; color: var(--fg);
       transition: background-color .2s ease, border-color .2s ease, color .25s ease, scale .15s ease; }
.btn[hidden] { display: none; }   /* .btn sets display, which would otherwise beat the hidden attribute */
.btn--primary { background: var(--heat); color: #000; }
.btn--primary:hover { background: var(--heat); }
.btn--ghost { border-color: rgba(248, 248, 248, .35); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--ghost::before { content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%);
  width: var(--md, 400px); height: var(--md, 400px); margin: calc(var(--md, 400px) / -2) 0 0 calc(var(--md, 400px) / -2);
  border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform .55s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.btn--ghost.is-hot::before { transform: scale(1); }
.btn--ghost.is-hot { color: #000; border-color: var(--fg); }
.btn:active, .bar__cta:active { scale: .97; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.mi-label { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3; }
/* Hanken Grotesk carries its letters high in the line: on the 16 px buttons the capitals sat 1.4 px above the middle, beside an
   arrow that is centred („Odeslat brief"). Measured; the small buttons and the header's are centred already */
.btn:not(.btn--small) .mi-label { translate: 0 .09em; }
.mi-ch { display: inline-block; white-space: pre; text-shadow: 0 1.3em currentColor;
         transition: transform .5s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i) * 16ms); }
.is-hot .mi-ch { transform: translateY(-1.3em); }
.mi-icon { display: inline-flex; flex: none; width: 18px; height: 18px; transition: transform .6s cubic-bezier(.34, 1.9, .5, 1); }
.bar__cta .mi-icon, .btn--small .mi-icon { width: 16px; height: 16px; }
.is-hot .mi-icon { transform: rotate(var(--rot, -45deg)); }
.mi-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }
/* a plain text link with the arrow */
.link { display: inline-flex; align-items: center; gap: .35em; color: var(--fg); text-decoration: none; font-weight: 500;
        border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s ease; }
.link:hover { border-color: var(--heat); }
.link .mi-icon { width: .9em; height: .9em; }
.link:hover .mi-icon { transform: rotate(-45deg); }

/* ---- the spark canvas (site.js): buttons throw embers on press (the fall onto the heading's full stop is gone) */
#spark { position: fixed; inset: 0; z-index: 35; width: 100vw; height: 100vh; pointer-events: none; }

/* ---- the footer: the home's end state (the outline of the wordmark), without the animation.
   One grid holds the three link groups and the legal line. Below 1024 px they are three columns with the legal line under them */
.foot { position: relative; overflow: hidden; padding: clamp(22px, 3.5vh, 36px) 0 0; }
.foot__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(24px, 4vw, 64px); }
.foot__h { margin: 0 0 10px; font: 500 11px/1 var(--bf, "Inter"), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.foot__list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; transition: color .25s ease; }   /* as the header: grey, white on hover, never orange */
.foot a:hover, .foot a:focus-visible { color: var(--fg); }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--line);
               font-size: 12px; color: var(--faint); }
.foot__legal a { color: inherit; }
/* the big wordmark: the word between the gutters in the logo's own font (Lexend 570), charcoal letters, still (site.js
   draws it on a canvas; the outline and its animation are the home's only) */
.foot__word { position: relative; z-index: 0; user-select: none; }   /* width, left and top: site.js */
.foot__word canvas { display: block; width: 100%; max-width: none; }
@media (min-width: 1024px) {
  /* a smaller footer with the navigation and contact next to the wordmark. The tall
     columns are gone: the footer is one line under a hairline, the legal line on the left and the three groups small on the right,
     their headings on the legal line's baseline. The links hang into the space above the wordmark's low letters („aze"), where
     site.js lifts the word to. The tagline is gone on every screen (the phones had dropped it before) */
  .foot__grid { grid-template-columns: minmax(0, 1fr) repeat(3, auto); align-items: baseline; gap: 0 clamp(32px, 3.4vw, 56px);
                padding-top: 14px; border-top: 1px solid var(--line); }
  .foot__legal { grid-area: 1 / 1; padding-top: 0; border-top: 0; line-height: 16px; }
  .foot__list { grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; gap: 4px 20px;
                font-size: 13px; line-height: 20px; }
  .foot__grid > nav .foot__list { grid-template-rows: repeat(3, auto); }
  .foot__list .ext { line-height: 1; }   /* the arrow's own line made its row a pixel taller than the rows beside it */
}
/* the legal line does not fit beside the groups in one row here: two rows of two */
@media (min-width: 1024px) and (max-width: 1439px) {
  .foot__legal { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 24px; }
}
@media (max-width: 767px) {
  /* the footer was too tall on phones. Navigace runs down the left, Academy sits above Kontakt on the right,
     and the legal line wraps as a row instead of one item per line */
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .foot__grid > nav { grid-row: span 2; }
  .foot__legal { gap: 6px 16px; }
}


/* ---- details / accordion (FAQ, roles) */
.acc { border-top: 1px solid var(--line); }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer;
                 font: 500 clamp(17px, 1.4vw, 20px)/1.35 var(--bf, "Inter"), sans-serif; color: var(--fg); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }
/* the plus, as on Kariéra's roles (no orange text on hover, ever; the old „+" only tilted): the title never changes
   colour; only the round plus reacts. Hover: it fills white and turns a quarter. Open: it fills orange and the plus becomes a minus. */
.acc__x { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid rgba(248, 248, 248, .2); border-radius: 50%;
          transition: background-color .35s ease, border-color .35s ease, rotate .45s cubic-bezier(.65, 0, .35, 1); }
.acc__x::before, .acc__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin: -.75px 0 0 -6.5px; background: var(--fg);
          transition: transform .45s cubic-bezier(.65, 0, .35, 1), background-color .35s ease; }
.acc__x::after { transform: rotate(90deg); }
.acc[open]:not([data-closing]) > summary .acc__x { border-color: var(--heat); background-color: var(--heat); }
.acc[open]:not([data-closing]) > summary .acc__x::after { transform: rotate(0deg); }   /* shutting (projekt.js): the plus comes back at once */
@media (hover: hover) {
  .acc > summary:hover .acc__x, .acc[open] > summary:hover .acc__x { background-color: var(--fg); border-color: var(--fg); rotate: 90deg; }
  .acc > summary:hover .acc__x::before, .acc > summary:hover .acc__x::after { background-color: #000; }
  .acc[open]:not([data-closing]) > summary:hover .acc__x { rotate: 0deg; }
}
.acc__body { padding: 0 0 26px; max-width: 64ch; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); }
.acc__body p { margin: 0 0 12px; }
.acc__body p:last-child { margin: 0; }

/* ---- reveal on scroll (site.js adds .is-in); nothing moves for reduced motion */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .mi-ch, .mi-icon, .btn::before, .bar__pill, .bar, .bar__logo img { transition: none; }
}
@media (forced-colors: active) { .is-hot .mi-ch { transform: none; } }   /* forced colors (Windows high contrast) drop the text-shadow copy: the letters stay put, the label never goes blank */

/* ---------------------------------------------------------------- shared elements, born on Proč Blaze (2026-10-26) */
/* the switching words (one sentence with highlighted words that keep switching, an element for the whole site).
   Markup: <span class="swap" data-swap="a|b|c">a</span>; site.js rolls the words up one after another while the
   sentence is on screen, and the slot's width follows the word, so the sentence reflows smoothly */
.swap { display: inline-block; position: relative; vertical-align: top; height: 1lh; overflow: hidden; white-space: nowrap; color: var(--fg);
        transition: width .6s cubic-bezier(.65, 0, .35, 1); }
.swap__w { position: absolute; left: 0; top: 0; padding-right: .03em; white-space: nowrap; opacity: 0; transform: translateY(100%);
           transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .45s ease; }
.swap__w.is-on { opacity: 1; transform: none; }
.swap__w.is-out { opacity: 0; transform: translateY(-100%); }
.swap { font-family: var(--hf), sans-serif; font-weight: 800; letter-spacing: var(--hls); }

/* a section on its own surface, with the home's dome as its edges: the profile y ∝ |u|^2.5 across the full width (flat in
   the middle, bending gently, never vertical), 110 px deep on a desktop and 3 % of the width on phones, as on the home.
   Markup: <section class="deep"><svg class="edge">…</svg><div class="deep__body">…</div><svg class="edge edge--bot">…</svg></section> */
.deep { --edge: clamp(32px, 7.6vw, 110px); --deep-bg: #18181b; margin-top: var(--sec-space); }
@media (max-width: 767px) { .deep { --edge: max(12px, 3vw); } }
.deep .edge { display: block; width: 100%; height: var(--edge); margin: 0 0 -1px; }
.deep .edge--bot { margin: -1px 0 0; }
.deep .edge path { fill: var(--deep-bg); }
.deep__body { background: var(--deep-bg); padding: clamp(64px, 10vh, 120px) 0; }

/* the hanging bot on the header's „Konzultace", as on the home: the canvas starts 6 px up inside the button and sits behind it,
   so the fist is hidden behind the edge and only the arm and the body come out below (site.js draws it) */
.mi-hangwrap { position: relative; display: inline-flex; flex: none; }
.mi-hangwrap > .bar__cta { z-index: 1; }
.mi-hang { position: absolute; z-index: 0; top: calc(100% - 6px); right: 0; width: 84px; height: 76px; pointer-events: none; }
@media (max-width: 480px) { .mi-hangwrap { display: none; } }
/* the peeking bot on „Domluvit konzultaci", as on the home: its canvas sits behind the button's top right corner (z 0 < 1),
   so the button hides it until it rises (site.js draws it) */
.mi-peekwrap { position: relative; display: inline-flex; }
.mi-peekwrap > .btn { z-index: 1; }
.mi-peek { position: absolute; z-index: 0; right: 12px; bottom: calc(100% - 48px); width: 56px; height: 90px; pointer-events: none; }
@media (max-width: 480px) { .mi-peekwrap { flex: 1 1 100%; } .mi-peekwrap > .btn { width: 100%; } }

/* the sentence that writes itself once in view (the home's numbers moment, shared; site.js writes it). No pin since 2026-11-04 */
.writ { position: relative; height: 100vh; }
.writ__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.writ__s { position: relative; z-index: 2; max-width: 1100px; margin: 0; text-align: center;
  font: 500 clamp(24px, 3.1vw, 48px)/1.35 var(--bf, "Inter"), sans-serif; letter-spacing: -.02em; color: var(--muted); text-wrap: balance; }
.writ__ch { opacity: var(--o, 1); }
.writ__cnt { display: inline-grid; font: var(--hw) 1.12em/1 var(--hf), sans-serif; letter-spacing: var(--hls); white-space: nowrap;
             vertical-align: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.writ__cnt > span { grid-area: 1 / 1; }
.writ__ghost { visibility: hidden; }
.writ__live { justify-self: end; }
@media (prefers-reduced-motion: reduce) { .writ { height: auto; padding: var(--sec-space) 0; } .writ__stage { position: static; height: auto; } }

/* ---------------------------------------------------------------- the opener: one skeleton for every subpage (after Kariéra's
   headline, more designed than the classic centred one; every headline a little different, so it is not just a copy).
   The orange label top left, the headline across the width, its second line on the right with the serif word
   and the orange full stop; one quiet thing at the bottom of the first screen. Each page adds its own twist (below) */
.opener { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
          padding-top: calc(var(--bar-top) + var(--logo-h) + clamp(32px, 6.5vh, 96px)); padding-bottom: clamp(28px, 5vh, 52px); }
.opener > .eyebrow { margin: 0; }
.opener__h { margin-top: clamp(20px, 4vh, 44px); max-width: none; font-size: calc(clamp(46px, 9.4vw, 156px) * var(--hs)); line-height: .98; }
.opener__h > span { display: block; }
.opener__h > span:last-child { text-align: right; margin-top: -.06em; }
.opener__h.is-fit > span:last-child { text-align: left; }   /* site.js sets its indent: under the last word above, a little right */
.opener__foot { margin-top: auto; padding-top: clamp(32px, 6vh, 88px); }
.opener--fit { min-height: 0; }                                  /* the page's own content follows right under it */
.opener--small .opener__h { font-size: calc(clamp(34px, 5vw, 84px) * var(--hs)); }
@media (max-width: 900px) { .opener { min-height: 70vh; } .opener--fit { min-height: 0; } }

/* twist „škrt" (Proč Blaze): the promise is struck through by the pen stroke the page's rules use, once the headline is in.
   Starts at 0.5 s (was 1.5 s, timed to the spark's fall, which is gone; it waited too long) */
.opener .strike { position: relative; display: inline-block; }
.opener .strike::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 52%; height: max(3px, .045em); background: var(--heat);
                         transform: scaleX(0); transform-origin: 0 50%; animation: opener-strike .7s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
@keyframes opener-strike { to { transform: scaleX(1); } }

/* twist „stavba" (Projekty): the letters of the serif word drop into place one after another.
   First letter at 0.15 s (was 0.9 s, which felt like waiting before the animation starts) */
.opener .build > span { display: inline-block; opacity: 0; transform: translateY(-.45em);
                        animation: opener-drop .7s cubic-bezier(.22, 1.4, .36, 1) forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
@keyframes opener-drop { to { opacity: 1; transform: none; } }

/* twist „výměna" (Kontakt): the switching words in a headline: the slot may not clip the descenders */
.opener__h .swap { height: 1.12em; vertical-align: -.2em; padding-bottom: .1em; }
/* …and its way in (as on the projects' page): the first line rises
   into place, the first switching word rolls up into its slot the way every switch after it will (site.js, .is-arriving),
   the full stop lands last, then the rest of the opener fades up */
.opener--swap .swap:not([aria-hidden]) { color: transparent; }   /* the plain word, before site.js has built the slot */
.opener--swap .opener__h > span:first-child { animation: opener-rise .9s cubic-bezier(.22, 1, .36, 1) .1s both; }
.opener--swap .opener__h .dot { animation: opener-fade .4s ease 1.05s both; }
.opener--swap .opener__h ~ * { animation: opener-up 1s cubic-bezier(.22, 1, .36, 1) 1.15s both; }
@keyframes opener-rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes opener-fade { from { opacity: 0; } }
@keyframes opener-up { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .opener .strike::after { animation: none; transform: scaleX(1); }
  .opener .build > span { animation: none; opacity: 1; transform: none; }
  .opener--swap .opener__h > span:first-child, .opener--swap .opener__h .dot, .opener--swap .opener__h ~ * { animation: none; }
}

/* ---------------------------------------------------------------- the page index „Na této stránce", shared (born on Proč Blaze,
   used across the site). site.js builds it from the sections marked data-ix="label". Fixed at the left edge, centred on the
   screen's height, on wide screens; only the section names, no heading;
   it waits until the opener has gone, and it steps aside over anything marked data-ix-hide (full-width pictures, a section with
   its own side menu), the next-page line and the footer.
   Only the bars stay: one bar per section, the one being read
   lit; the names appear when the pointer comes onto the strip around the bars (or a link gets keyboard focus), over a dark scrim
   so they read over whatever runs underneath, and go again when it leaves */
.pindex { position: fixed; z-index: 20; left: calc(var(--gutter) - 14px); top: 50%; transform: translateY(-50%);
          width: 44px; padding: 14px 0 14px 14px; transition: opacity .3s ease, visibility .3s, width 0s .35s; }
.pindex:hover, .pindex:focus-within { width: 250px; transition: opacity .3s ease, visibility .3s, width 0s; }
.pindex::before { content: ""; position: absolute; z-index: -1; top: -60px; bottom: -60px; left: calc(14px - var(--gutter)); right: -120px;
                  background: transparent;   /* was a black scrim; on the warm black it showed as a black block */
                  opacity: 0; pointer-events: none; transition: opacity .35s ease; }
/* once open, the whole dark scrim holds the menu open (it used to shut when the pointer moved onto its faded part) */
.pindex:hover::before, .pindex:focus-within::before { opacity: 1; pointer-events: auto; }
.pindex.is-off { opacity: 0; visibility: hidden; }
.pindex ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pindex a { position: relative; display: block; padding: 6px 0 6px 16px; color: var(--faint); font-size: 14px; text-decoration: none; white-space: nowrap; }
.pindex a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(248, 248, 248, .22);
                    transition: background-color .2s ease; }
.pindex a span { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), color .2s ease; }
.pindex:hover a span, .pindex:focus-within a span { opacity: 1; transform: none; }
.pindex li:nth-child(2) a span { transition-delay: 30ms; } .pindex li:nth-child(3) a span { transition-delay: 60ms; }
.pindex li:nth-child(4) a span { transition-delay: 90ms; } .pindex li:nth-child(5) a span { transition-delay: 120ms; }
.pindex li:nth-child(n+6) a span { transition-delay: 150ms; }
.pindex a:hover span, .pindex a:focus-visible span, .pindex a.is-on span { color: var(--fg); }
.pindex a:hover::before { background: rgba(248, 248, 248, .6); }
.pindex a.is-on::before { background: var(--heat); }
@media (prefers-reduced-motion: reduce) { .pindex a span { transform: none; transition: opacity .2s ease; } }
@media (max-width: 1359px) { .pindex { display: none; } }
[data-ix] { scroll-margin-top: 80px; }
/* room for the index: how far left-aligned content has to step in so it never touches the bars (0 on very wide screens).
   Only the bars' strip now; the names lie over the content on their scrim when shown */
:root { --ix-room: 0px; }
@media (min-width: 1360px) { .has-ix { --ix-room: max(0px, calc(var(--gutter) + 40px - max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))))); } }

/* ---------------------------------------------------------------- the contact section, the home's own (born
   on Proč Blaze, with the dot that follows the hover). The same rules as the home's .cta without its
   lifting sheet (a subpage's footer simply follows). The paint spot left it on 2026-11-07 and the home on 2026-11-16 */
.cta { position: relative; min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: flex; flex-direction: column;
       align-items: center; justify-content: center; text-align: center; background: #000; padding: clamp(96px, 14vh, 140px) var(--gutter); }
.cta__label { margin: 0 0 clamp(20px, 3vh, 28px); font: 500 13px/1 var(--bf, "Inter"), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cta__title { margin: 0; max-width: 16ch; text-wrap: balance; font: var(--hw) calc(clamp(30px, 4.4vw, 72px) * var(--hs))/1.02 var(--hf), sans-serif;
              letter-spacing: -.03em; }
.cta__lead { margin: clamp(20px, 3vh, 32px) auto 0; max-width: 56ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }
.cta__note { margin: 18px 0 0; font-size: 14px; color: rgba(248, 248, 248, .5); }
@media (max-width: 480px) { .cta__actions { align-self: stretch; } .cta__actions .btn { flex: 1 1 100%; } }
/* the hairline that parts it from the section above (the home's line between Služby and Náš proces): the usual section
   space above it, the line at the section's top edge, over the ink */
.cta--line { margin-top: var(--sec-space); }
.cta--line::before { content: ""; position: absolute; z-index: 2; top: 0; left: 50%; width: min(1100px, calc(100% - 2 * var(--gutter)));
                     height: 1px; transform: translateX(-50%); background: rgba(248, 248, 248, .16); }
/* the text sits above the paint spot's layers (z 0 and 1) */
.cta__label, .cta__title, .cta__lead, .cta__actions, .cta__note { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- the warm black (a flat black alone did not look good;
   the page starts on black and sections take turns between the black and a warm black, warmer than the grey-looking #0f0e0d, less
   orange than #0d0b0a). A section marked data-tone="warm" gets its warm surface from assets/tone.js: it sweeps in from one side as the
   section comes up the screen (a light sweep from the left or right, not a crossfade), its front edge curved like the home's dome;
   above and below it ends in a wavy edge (see below). Without the script: the surface simply lies there */
[data-tone="warm"] { position: relative; isolation: isolate; }
[data-tone="warm"]:not(.has-tone)::before, .tone { content: ""; position: absolute; z-index: -1; top: 0; bottom: calc(var(--sec-space) * -1);
  left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; }
/* a gradient between the two blacks looked AI-made: the soft fade is gone; the surface now ends in a liquid, wavy
   edge, hard-edged, above and below (two SVG waves as the mask's caps, a solid block between them) */
[data-tone="warm"]:not(.has-tone)::before { background: var(--warm);
  --cap: clamp(84px, 13vh, 130px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201600%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2060%20C150%2015%20330%2025%20480%2062%20S800%20105%20960%2062%20S1300%2012%201440%2048%20S1560%2070%201600%2058%20L1600%20120%20L0%20120Z%27/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201600%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%200%20L1600%200%20L1600%2066%20C1450%20100%201280%2092%201120%2056%20S780%208%20620%2052%20S300%20108%20160%2070%20S40%2050%200%2062Z%27/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201600%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%2060%20C150%2015%20330%2025%20480%2062%20S800%20105%20960%2062%20S1300%2012%201440%2048%20S1560%2070%201600%2058%20L1600%20120%20L0%20120Z%27/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%201600%20120%27%20preserveAspectRatio=%27none%27%3E%3Cpath%20d=%27M0%200%20L1600%200%20L1600%2066%20C1450%20100%201280%2092%201120%2056%20S780%208%20620%2052%20S300%20108%20160%2070%20S40%2050%200%2062Z%27/%3E%3C/svg%3E");
  -webkit-mask-size: 100% var(--cap), 100% calc(100% - var(--cap) * 2 + 2px), 100% var(--cap);
          mask-size: 100% var(--cap), 100% calc(100% - var(--cap) * 2 + 2px), 100% var(--cap);
  -webkit-mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%;
          mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.tone { overflow: hidden;
  --cap: clamp(90px, 14vh, 140px); --tp: 46s;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201600%20140'%20preserveAspectRatio='none'%3E%3Cpath%20fill-opacity=%221%22%20d=%22M-1%2080%20Q400%2030%20800%2080%20T1601%2080%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2074%20Q400%2024%20800%2074%20T1601%2074%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2068%20Q400%2018%20800%2068%20T1601%2068%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2062%20Q400%2012%20800%2062%20T1601%2062%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2056%20Q400%206%20800%2056%20T1601%2056%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2050%20Q400%200%20800%2050%20T1601%2050%20L1601%20141%20L-1%20141Z%22/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201600%20140'%20preserveAspectRatio='none'%3E%3Cg%20transform=%22translate%280%20140%29%20scale%281%20-1%29%22%3E%3Cpath%20fill-opacity=%221%22%20d=%22M-1%2080%20Q400%2030%20800%2080%20T1601%2080%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2074%20Q400%2024%20800%2074%20T1601%2074%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2068%20Q400%2018%20800%2068%20T1601%2068%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2062%20Q400%2012%20800%2062%20T1601%2062%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2056%20Q400%206%20800%2056%20T1601%2056%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2050%20Q400%200%20800%2050%20T1601%2050%20L1601%20141%20L-1%20141Z%22/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201600%20140'%20preserveAspectRatio='none'%3E%3Cpath%20fill-opacity=%221%22%20d=%22M-1%2080%20Q400%2030%20800%2080%20T1601%2080%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2074%20Q400%2024%20800%2074%20T1601%2074%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2068%20Q400%2018%20800%2068%20T1601%2068%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2062%20Q400%2012%20800%2062%20T1601%2062%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2056%20Q400%206%20800%2056%20T1601%2056%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2050%20Q400%200%20800%2050%20T1601%2050%20L1601%20141%20L-1%20141Z%22/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201600%20140'%20preserveAspectRatio='none'%3E%3Cg%20transform=%22translate%280%20140%29%20scale%281%20-1%29%22%3E%3Cpath%20fill-opacity=%221%22%20d=%22M-1%2080%20Q400%2030%20800%2080%20T1601%2080%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2074%20Q400%2024%20800%2074%20T1601%2074%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2068%20Q400%2018%20800%2068%20T1601%2068%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2062%20Q400%2012%20800%2062%20T1601%2062%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2056%20Q400%206%20800%2056%20T1601%2056%20L1601%20141%20L-1%20141Z%22/%3E%3Cpath%20fill-opacity=%220.22%22%20d=%22M-1%2050%20Q400%200%20800%2050%20T1601%2050%20L1601%20141%20L-1%20141Z%22/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 100vw var(--cap), 100% calc(100% - var(--cap) * 2 + 2px), 100vw var(--cap);
          mask-size: 100vw var(--cap), 100% calc(100% - var(--cap) * 2 + 2px), 100vw var(--cap);
  -webkit-mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%;
          mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%;
  -webkit-mask-repeat: repeat-x, no-repeat, repeat-x; mask-repeat: repeat-x, no-repeat, repeat-x;
  animation: tone-flow var(--tp) linear infinite; animation-play-state: paused; }
.tone.is-live { animation-play-state: running; }
/* the edge (not a hard wave, the old gradient only lightly, and the transition itself moves): a soft wavy edge made of
   stacked, fading copies of the wave (a gradient about 30 units deep), the two edges drifting sideways in opposite directions, endlessly */
@keyframes tone-flow {
  from { -webkit-mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%;              mask-position: 0 0, 0 calc(var(--cap) - 1px), 0 100%; }
  to   { -webkit-mask-position: 100vw 0, 0 calc(var(--cap) - 1px), -100vw 100%;     mask-position: 100vw 0, 0 calc(var(--cap) - 1px), -100vw 100%; }
}
@media (prefers-reduced-motion: reduce) { .tone { animation: none; } }
/* the surface (no sliding in from the side on scroll, it just changes from black to the red-brown): it simply lies there, the drifting soft
   edges above and below do the changing */
.tone > i { position: absolute; inset: 0; background: var(--warm); }
html[data-pozadi="cerna"] [data-tone="warm"]::before, html[data-pozadi="cerna"] .tone { display: none; }
/* ---------------------------------------------------------------- the light: the home's streak (hero-film.css .fm__streak, same numbers),
   shared by the subpages (the streaks yes, a spot of light never). Three soft layers, strongest at the end anchored
   beyond the page's edge; it breathes slowly. Its box needs --u (a size unit) and a place: left/right, top, width, --rot */
.sc-streak { --ml: 0; --mr: auto; --o: 0%; --dir: to right; position: absolute; width: 54%; top: -14%; height: calc(var(--u) * 16); margin-top: calc(var(--u) * -8);
  transform: rotate(var(--rot)); transform-origin: var(--o) 50%; animation: sc-drift 11s ease-in-out infinite alternate; }
.sc-streak--l { left: -14%; --rot: 17deg; }
.sc-streak--r { right: -14%; --rot: -17deg; --ml: auto; --mr: 0; --o: 100%; --dir: to left; animation-duration: 13s; animation-delay: -6s; }
.sc-streak i { position: absolute; left: 0; right: 0; top: 50%; display: block; margin-left: var(--ml); margin-right: var(--mr); border-radius: 50%; transform-origin: var(--o) 50%;
  animation: sc-breathe 8s ease-in-out infinite alternate; }
.sc-streak .core { width: 74%; height: calc(var(--u) * .8); margin-top: calc(var(--u) * -.4); filter: blur(calc(var(--u) * .8));
  background: linear-gradient(var(--dir), rgba(255, 196, 150, .68), rgba(255, 102, 51, .38) 28%, transparent 60%); }
.sc-streak .band { width: 100%; height: calc(var(--u) * 3.4); margin-top: calc(var(--u) * -1.7); filter: blur(calc(var(--u) * 1.8)); animation-delay: -3s;
  background: linear-gradient(var(--dir), rgba(255, 118, 62, .84), rgba(255, 102, 51, .3) 34%, transparent 64%); }
.sc-streak .haze { width: 66%; height: calc(var(--u) * 13); margin-top: calc(var(--u) * -6.5); filter: blur(calc(var(--u) * 4.6)); animation-delay: -5.5s;
  background: radial-gradient(farthest-side at var(--o) 50%, rgba(255, 102, 51, .46), rgba(255, 102, 51, .14) 55%, transparent); }
@keyframes sc-breathe { from { opacity: .62; transform: scaleX(.88); } to { opacity: 1; transform: scaleX(1.03); } }
@keyframes sc-drift { from { transform: rotate(calc(var(--rot) * .8)) translateY(calc(var(--u) * -.6)); } to { transform: rotate(calc(var(--rot) * 1.15)) translateY(calc(var(--u) * .6)); } }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .sc-streak { width: 56%; height: 100px; margin-top: -50px; }
  .sc-streak--l { left: -8%; --rot: 9deg; }
  .sc-streak--r { right: -8%; --rot: -9deg; }
}
@media (prefers-reduced-motion: reduce) { .sc-streak, .sc-streak i { animation: none; } }
