/* Blaze — the reference pages of the projects without a published case study (Echo, RozpočetPro, Izzy, CF Hero,
   SC Fajne; 2026-10-26). Prodator's and NOSKY's report layout (head, key figures, chapter index, chapters), shared here
   instead of copied five times; those two pages keep their own copy. One addition: the project's film under the head,
   opening from the text's width to the screen's edges as it scrolls in, square-cornered (Vít: „nech ho hranatý") */

.page-head .lead--big { max-width: 30ch; font: 500 clamp(20px, 2vw, 28px)/1.35 "Inter", sans-serif; letter-spacing: -.01em; color: var(--fg); }
.page-head .h1 { max-width: 15ch; }
.page-head { padding-bottom: clamp(40px, 7vh, 80px); }

/* the film: the project's own clip, from the text column's width to the full screen width, scrubbed by the scroll */
.film { position: relative; margin: 0; }
.film__box { position: relative; width: 100%; height: min(56.25vw, 86svh); overflow: hidden; background: #111113;
             --fi: max(8vw, var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); clip-path: inset(0 var(--fi)); will-change: clip-path; }
.film__box img, .film__box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.film__box video { opacity: 0; transition: opacity .4s ease; }
.film__box video.is-ready { opacity: 1; }
.film__cap { display: flex; max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.film__cap { margin-top: 14px; }
.film__cap span:last-child { color: var(--faint); text-align: right; }
@media (max-width: 700px) { .film__box { height: 75vw; } .film__cap { flex-direction: column; gap: 2px; } .film__cap span:last-child { text-align: left; } }

/* the key figures */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig { padding: 24px clamp(16px, 2vw, 32px) 24px 0; border-right: 1px solid var(--line); }
.fig:nth-child(n+2) { padding-left: clamp(16px, 2vw, 32px); }
.fig:last-child { border-right: 0; }
.fig b { display: block; font: var(--hw) clamp(30px, 3.4vw, 54px)/1 var(--hf), sans-serif; letter-spacing: var(--hls); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fig b.word { white-space: normal; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; }
.fig span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.fig small { display: block; margin-top: 6px; font-size: 13px; color: var(--faint); }
@media (max-width: 900px) {
  .figs, .figs--3 { grid-template-columns: 1fr 1fr; }
  .fig { border-right: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fig:nth-child(-n+2) { border-top: 0; }
  .fig:nth-child(odd) { border-right: 1px solid var(--line); }
  .fig:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); }
  .figs--3 .fig:last-child { grid-column: 1 / -1; border-right: 0; }
}

/* the report: index on the left, chapters on the right */
.report { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); margin-top: var(--sec-space); }
.index { position: sticky; top: 96px; align-self: start; }
.index ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.index a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); color: var(--faint); font-size: 14px; text-decoration: none;
           transition: color .2s ease, border-color .2s ease; }
.index a:hover { color: var(--fg); }
.index a.is-on { color: var(--fg); border-color: var(--heat); }
.index__h { margin: 0 0 14px; font: 500 12px/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 1000px) { .report { grid-template-columns: 1fr; } .index { display: none; } }
.ch { padding: clamp(56px, 9vh, 110px) 0 0; max-width: 760px; scroll-margin-top: 96px; }
.ch:first-child { padding-top: 0; }
.ch > h2 { margin: 0 0 22px; }
.ch p { margin: 0 0 18px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--muted); }
.ch p.strong { color: var(--fg); }
.ch p:last-child { margin-bottom: 0; }
.ch h3.sub { margin: 32px 0 14px; font: 600 clamp(17px, 1.4vw, 20px)/1.35 "Inter", sans-serif; color: var(--fg); }
.ch h3.sub:first-of-type { margin-top: 0; }
.ch > h2 + h3.sub { margin-top: 0; }
.quote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--heat); }
.quote p { margin: 0; font: 400 clamp(19px, 1.7vw, 24px)/1.4 "Inter", sans-serif; letter-spacing: -.01em; color: var(--fg); }
.ch .quote p { color: var(--fg); }
.quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--faint); }
.facts { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--faint); padding-top: 2px; }
.facts dd { margin: 0; font-size: 16px; color: var(--fg); }
.facts > * { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 4px; } .facts dt { padding-top: 12px; border: 0; padding-bottom: 0; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps > li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 0 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li::before { counter-increment: s; content: "0" counter(s); font: var(--hw) clamp(18px, 1.5vw, 22px)/1.4 var(--hf), sans-serif; letter-spacing: var(--hls); color: var(--heat); }
.steps h3 { margin: 0 0 6px; font: 600 clamp(17px, 1.4vw, 20px)/1.35 "Inter", sans-serif; color: var(--fg); }
.ch .steps p { margin: 0; font-size: clamp(15px, 1.1vw, 17px); }
.ch .steps p + p { margin-top: 10px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 22px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--heat); }
.list b { color: var(--fg); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--muted); }

/* the timeline: a fuse down the left, lit as far as the visitor has scrolled */
.tl { position: relative; margin: 8px 0 0; padding: 0 0 0 36px; list-style: none; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl__fuse { position: absolute; left: 6px; top: 8px; width: 3px; height: 0; border-radius: 2px; background: linear-gradient(to bottom, var(--heat), var(--gold)); }
.tl__fuse::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, 50%);
                   background: #FFF3D6; box-shadow: 0 0 8px 3px var(--gold), 0 0 18px 6px rgba(255, 102, 51, .55); }
.tl li { position: relative; padding: 0 0 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -33px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #2a2a2e; transition: background-color .3s ease; }
.tl li.is-lit::before { background: var(--heat); }
.tl h3 { margin: 0 0 6px; font: var(--hw) clamp(16px, 1.3vw, 19px)/1.3 var(--hf), sans-serif; letter-spacing: var(--hls); }
.ch .tl p { margin: 0; font-size: clamp(15px, 1.1vw, 17px); }

/* before / after, one row per routine */
.ba { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ba li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ba h3 { margin: 0; font: 500 16px/1.45 "Inter", sans-serif; color: var(--fg); }
.ch .ba p { margin: 0; font-size: 15px; line-height: 1.5; }
.ch .ba p:last-child { color: var(--fg); }
.ba small { display: block; margin-bottom: 4px; font: 500 11px/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 720px) { .ba li { grid-template-columns: 1fr 1fr; } .ba h3 { grid-column: 1 / -1; } }

/* a boxed chapter (one per page at most) */
.box { margin: 8px 0 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 10px; background: #0a0a0b; }
.box__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.box__figs li { padding-top: 14px; border-top: 1px solid var(--line); }
.box__figs b { display: block; font: var(--hw) clamp(24px, 2.4vw, 38px)/1 var(--hf), sans-serif; letter-spacing: var(--hls); color: var(--heat); white-space: nowrap; }
.box__figs span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 560px) { .box__figs { grid-template-columns: 1fr; } }

/* press: one row per article, the outlet and date quiet on the right */
.press { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.press li { border-bottom: 1px solid var(--line); }
.press a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.press b { font-weight: 500; color: var(--fg); transition: color .2s ease; }
.press span { font-size: 14px; color: var(--faint); white-space: nowrap; }
.press a:hover b { color: var(--heat); }
@media (max-width: 640px) { .press a { grid-template-columns: 1fr; } }

.pointa { padding: clamp(56px, 9vh, 110px) 0 0; }
.pointa .h2 { max-width: 22ch; }

@media (prefers-reduced-motion: reduce) { .film__box { clip-path: none; } .film__box video { transition: none; } }
