/* Blaze — the project pages, one order for all seven, with photos and films.
   1 the opening G: the project's film with two cut-outs in its silhouette (top left the name, bottom right the sentence), nothing over
   the picture; 2 the figures and Blaze's role; 3 the starting point on the warm black; 4 what we built: the device on the stone, the
   text rows beside it, the screen crossfading to the row in view; 5 a strip of real material; 6 the result on the warm black; then
   „Celý příběh" (every original chapter, folded) and the close. Loaded after case.css (or a page's own inline copy). */

.pg { --cut: var(--bg, #000); --r: 18px; }
.pg .wrap { max-width: 1400px; }
.pg-sec { padding-top: clamp(96px, 16vh, 180px); }

/* ---- 1 the opening */
.pg-open { padding-top: calc(var(--bar-top) + var(--logo-h) + clamp(28px, 5vh, 56px)); }
.pg-film { position: relative; margin: 0; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--bar-top) - var(--logo-h) - 60px); width: 100%;
  border-radius: 0 var(--r) 0 var(--r); overflow: hidden; background: #0c0c0e; }   /* the two corners under the cut-outs stay square, so no light edge shows past them */
.pg-film video, .pg-film > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-film video { opacity: 0; transition: opacity .6s ease; }
.pg-film video.is-ready { opacity: 1; }
.pg-tab { position: absolute; z-index: 2; background: var(--cut); }
.pg-tab::before, .pg-tab::after { content: ""; position: absolute; width: var(--r); height: var(--r); pointer-events: none; }
.pg-tab--name { left: 0; top: 0; display: grid; gap: clamp(8px, 1vw, 14px); padding: 0 clamp(22px, 2.8vw, 40px) clamp(16px, 2vw, 28px) 0; border-bottom-right-radius: var(--r); }
.pg-tab--name::before { left: 100%; top: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--cut) var(--r)); }
.pg-tab--name::after { left: 0; top: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--cut) var(--r)); }
.pg-tab--claim { right: 0; bottom: 0; width: min(440px, 46%); padding: clamp(16px, 1.8vw, 22px) 0 0 clamp(20px, 2.4vw, 30px); border-top-left-radius: var(--r); }
.pg-tab--claim::before { right: 100%; bottom: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--cut) var(--r)); }
.pg-tab--claim::after { right: 0; bottom: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--cut) var(--r)); }
/* the name at the size of the Kariéra film hero's headline (at a smaller size it was hard to see) */
.pg-name { margin: 0; font: 600 clamp(44px, 6.6vw, 104px)/.92 var(--hf), sans-serif; letter-spacing: -.045em; }
.pg-meta { margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.35; color: var(--muted); }
.pg-meta a { color: inherit; text-decoration: none; }
.pg-meta a:hover { color: var(--fg); }
.pg-claim { margin: 0; font: 500 clamp(18px, 1.5vw, 22px)/1.28 var(--hf), sans-serif; letter-spacing: -.012em; text-wrap: balance; }

/* ---- the calm case page (trial on NOSKY). Less is more: every chapter is a label,
   a heading, one short paragraph and at most one big picture; the colour lives only behind the rendered device (--brand, set on
   main.pc), everything else stays in the site's black and greys. The long story stays folded below in „Celý příběh". */
.pc { --pc-gap: clamp(80px, 12vh, 128px); }
.pc-open { padding-top: calc(var(--bar-top) + var(--logo-h) + clamp(32px, 6vh, 64px)); }
/* back to all clients: a small round arrow in place of the grey „Klienti · NOSKY · …" line (less text);
   on hover the circle fills white and only the arrow steps left, the page text stays still */
.pc-back { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 0 20px; border: 1px solid var(--line);
  border-radius: 50%; color: var(--fg); transition: background-color .25s, border-color .25s, color .25s; }
.pc-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.34, 1.9, .5, 1); }
.pc-back:hover, .pc-back:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pc-back:hover svg { transform: translateX(-3px); }
.pc-title { margin: 0; max-width: 18ch; font: 500 clamp(36px, 4.4vw, 64px)/1.06 var(--hf), sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.pc-lede { margin: 24px 0 0; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pc-shot { margin: clamp(40px, 6vh, 64px) 0 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand); }
.pc-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pc-shot--hero { max-height: calc(100vh - 120px); width: 100%; }
.pc-shot--hero img, .pc-shot--hero .pc-loop { object-position: 50% 80%; }   /* the loop lies exactly over the still; phones move both (below) */
.pc-shot--paper { position: relative; background: var(--paper); }
.pc-shot { position: relative; }
.pc-shot figcaption { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(10, 10, 10, .6); font-size: 13px; color: #fff; }
.pc-shot--paper figcaption { left: 20px; bottom: 16px; padding: 0; background: none; color: rgba(10, 10, 10, .7); }
.pc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: var(--pc-gap); }
.pc-fig b { display: block; font: 500 clamp(44px, 4.8vw, 72px)/1 var(--hf), sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pc-fig span { display: block; margin-top: 12px; font-size: 16px; color: var(--muted); }
.pc-sec { padding-top: var(--pc-gap); }
.pc-text { max-width: 640px; }
.pc-label { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.pc-h { margin: 0; font: 500 clamp(28px, 2.8vw, 44px)/1.1 var(--hf), sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.pc-text p:not(.pc-label) { margin: 20px 0 0; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.pc-h--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc .pg-story { padding-top: var(--pc-gap); }
.pc-next { padding-top: var(--pc-gap); }
@media (max-width: 900px) {
  .pc-shot { aspect-ratio: 4 / 3; }
  .pc-shot--hero { aspect-ratio: 4 / 3; max-height: none; }
  .pc-shot--hero img, .pc-shot--hero .pc-loop { object-position: 50% 70%; transform: scale(1.18); transform-origin: 50% 70%; }
  .pc-figs { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- variety, not just text, picture, text, picture: something moves in one picture, another is an animation.
   Chapters alternate: split with an animation, a wide picture with a card running over it, a split the other way round, a big figure.
   Every animation runs only while its block is on screen ([data-play] gets .is-play from projekt.js) and stops for reduced motion. */
.pc-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: inherit; opacity: 0; transition: opacity .8s ease; }
.pc-loop.is-ready { opacity: 1; }
.pc-shot--hero { position: relative; }
.pc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pc-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pc-split--flip > .pc-text { order: 2; }
.pc-split .pc-shot, .pc-split .pc-panel { margin: 0; }
.pc-shot--tall { aspect-ratio: 7 / 5; }
.pc-panel { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 7 / 5; background: var(--panel, #121214); }

/* 1 eight apps fold into one task (7 s loop) */
.pc-merge__tiles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center; gap: 12px; padding: 0 clamp(20px, 3vw, 40px); }
.pc-merge__tiles li { display: grid; place-items: center; padding: 18px 12px; border-radius: 12px; background: #1d1d20; font-size: 15px; line-height: 1.25; text-align: center; color: var(--fg); text-wrap: balance; }
.pc-task { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px; background: var(--fg); color: #0A0A0A;
  transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; }
.pc-task i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #0A0A0A; flex: none; }
.pc-task b { display: block; font: 600 17px/1.25 var(--hf), sans-serif; }
.pc-task .pc-sm { display: block; font-size: 13px; color: rgba(10, 10, 10, .6); }
.pc-merge.is-play li { animation: pc-tile 7s cubic-bezier(.65, 0, .3, 1) infinite; }
.pc-merge.is-play .pc-task { animation: pc-task 7s cubic-bezier(.3, .6, .2, 1) infinite; }
.pc-merge.is-play .pc-task i { animation: pc-tick 7s ease infinite; }
@keyframes pc-tile { 0%, 30% { transform: none; opacity: 1; } 48% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.55); opacity: 0; }
  92% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.55); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pc-task { 0%, 44% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } 54%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  94%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
@keyframes pc-tick { 0%, 66% { background: transparent; box-shadow: none; } 70%, 100% { background: #0A0A0A; box-shadow: inset 0 0 0 4px var(--fg); } }

/* 2 the Monday report runs over the product photo (8 s loop) */
.pc-report img { object-position: 8% 50%; }
.pc-card-ui { position: absolute; right: clamp(16px, 5%, 64px); top: 50%; width: min(340px, 38%); padding: 20px 22px; border-radius: 14px; background: #fff; color: #0A0A0A;
  box-shadow: 0 18px 40px rgba(60, 40, 20, .14); transform: translateY(-50%); }
.pc-card-ui__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.pc-card-ui__head b { font: 600 17px/1.25 var(--hf), sans-serif; }
.pc-card-ui__head .pc-sm { font-size: 13px; color: rgba(10, 10, 10, .55); white-space: nowrap; }
.pc-card-ui ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-card-ui li { display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.35; }
.pc-card-ui li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #0A0A0A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23F4F749' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pc-card-ui__done { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(10, 10, 10, .1); font-size: 14px; font-weight: 600; }
.pc-report.is-play .pc-card-ui { animation: pc-card 8s cubic-bezier(.3, .6, .2, 1) infinite; }
.pc-report.is-play .pc-card-ui li { animation: pc-row 8s ease infinite; }
/* each row on the card's own 8 s cycle: a delay on an infinite loop shifts every later cycle, and the rows came back out of order */
.pc-report.is-play .pc-card-ui li:nth-child(2) { animation-name: pc-row2; }
.pc-report.is-play .pc-card-ui li:nth-child(3) { animation-name: pc-row3; }
/* the card waits hidden for its first frame (it starts from nothing), instead of showing and then blinking off as it plays */
.pc-anim .pc-report:not(.is-play) .pc-card-ui { opacity: 0; }
.pc-report.is-play .pc-card-ui__done { animation: pc-done 8s ease infinite; }
@keyframes pc-card { 0% { opacity: 0; transform: translateY(-44%); } 8%, 88% { opacity: 1; transform: translateY(-50%); } 96%, 100% { opacity: 0; transform: translateY(-50%); } }
@keyframes pc-row { 0%, 12% { opacity: 0; transform: translateY(6px); } 20%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pc-row2 { 0%, 21% { opacity: 0; transform: translateY(6px); } 29%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pc-row3 { 0%, 30% { opacity: 0; transform: translateY(6px); } 38%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pc-done { 0%, 48% { opacity: 0; } 56%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }

@media (max-width: 900px) {
  .pc-split, .pc-split--flip { grid-template-columns: 1fr; }
  .pc-split--flip > .pc-text { order: 0; }
  .pc-panel { aspect-ratio: 4 / 5; }
  .pc-merge__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-shot.pc-report { aspect-ratio: 4 / 5; }
  .pc-report img { object-position: 50% 12%; }
  .pc-card-ui { left: 16px; right: 16px; width: auto; top: auto; bottom: 48px; transform: none; }
  @keyframes pc-card { 0% { opacity: 0; transform: translateY(6%); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .pc-merge li, .pc-merge .pc-task, .pc-merge .pc-task i, .pc-report .pc-card-ui, .pc-report .pc-card-ui li, .pc-report .pc-card-ui__done { animation: none !important; }
  .pc-merge li { opacity: 0; }
  .pc-merge .pc-task { opacity: 1; }
  .pc-loop { display: none; }
}

/* ---- second pass on the lower half (no more text left + list right; a bottom that holds together instead of left-aligned
   blocks with black holes; next projects with the name inside a greyed picture; the CTA big, because it is the most important thing) */
.pc-photo { position: relative; }
.pc-photo img { object-fit: cover; object-position: 26% 50%; }
.pc-photo figcaption { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(10, 10, 10, .6); font-size: 13px; color: #fff; }
.pc-split--phone .pc-shot { order: 2; }

/* reliability and safety: two equal panels side by side instead of a big figure, text and a separate card */
.pc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pc-pair__item { padding: clamp(28px, 3.6vw, 52px); border-radius: 20px; background: var(--panel, #121214); }
.pc-pair__item .pc-text { max-width: none; }
@media (max-width: 900px) { .pc-pair { grid-template-columns: 1fr; gap: 16px; } }

/* the conveyor: the marketing tasks run past like parcels on a belt, under the text, the full width of the column */
.pc-belt { margin-top: clamp(40px, 6vh, 64px); padding: 32px 0; border-radius: 20px; background: var(--brand); overflow: hidden; }
.pc-belt__track { display: flex; width: max-content; }
.pc-belt ul { display: flex; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.pc-belt li { padding: 22px 26px; border-radius: 14px; background: #fff; color: #0A0A0A; font: 500 18px/1.2 var(--hf), sans-serif; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(60, 50, 0, .12); }
.pc-belt li:nth-child(3n + 2) { background: #0A0A0A; color: #fff; }
.pc-belt.is-play .pc-belt__track { animation: pc-belt 28s linear infinite; }
/* under the mouse it slows down smoothly instead of stopping: assets/projekt.js */
@keyframes pc-belt { to { transform: translateX(-50%); } }

/* results: centred, the three figures across the whole width */
.pc-results { text-align: center; }
.pc-results .pc-text { margin: 0 auto; max-width: 720px; }
.pc-results .pc-figs { gap: 0; margin-top: clamp(40px, 6vh, 64px); padding-top: 0; }
.pc-results .pc-fig { padding: 40px 16px; background: linear-gradient(var(--line), var(--line)) 0 50% / 1px 60% no-repeat; }
.pc-results .pc-fig:first-child { background: none; }
.pc-results .pc-fig b { font-size: clamp(64px, 8vw, 128px); letter-spacing: -.05em; }

/* reference: the film next to the words, no empty half */
.pc-ref { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pc-ref video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; border-radius: 20px; background: #0d0d0f; object-fit: cover; }
.pc-ref .quote { margin: 0; padding: 0; border: 0; }
.pc-ref .quote p { font: 500 clamp(24px, 2.4vw, 36px)/1.3 var(--hf), sans-serif; letter-spacing: -.02em; }
.pc-ref .quote cite { display: block; margin-top: 20px; font-size: 15px; font-style: normal; color: var(--muted); }

/* next projects: greyed picture, the name large inside it */
.pc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.pc-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #0c0c0e; color: #fff; text-decoration: none; }
.pc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: transform .6s cubic-bezier(.3,.6,.2,1); }
.pc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, .78)); }
.pc-card:hover img { transform: scale(1.03); }
.pc-card__txt { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); z-index: 1; }
/* a soft dark field behind the name and the line, sized by the text itself, so the white words read on every colour and card size
   (the gradient over the picture alone left „NOSKY“ under 3:1 on its yellow on phones; with this the weakest title measures 4.4:1) */
.pc-card__txt::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * clamp(20px, 3vw, 40px)); right: calc(-1 * clamp(20px, 3vw, 40px));
  top: -64px; bottom: calc(-1 * clamp(20px, 3vw, 36px)); background: linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, .4) 64px, rgba(10, 10, 10, .5));
  pointer-events: none; }
.pc-card__txt b { display: block; font: 500 clamp(36px, 4.4vw, 64px)/1 var(--hf), sans-serif; letter-spacing: -.035em; }
.pc-card__txt span { display: block; margin-top: 12px; max-width: 34ch; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .78); }

@media (max-width: 900px) {
  .pc-ref { grid-template-columns: 1fr; }
  .pc-ref video { max-width: 360px; }
  .pc-results .pc-figs { grid-template-columns: 1fr; }
  .pc-results .pc-fig { padding: 28px 0; background: linear-gradient(var(--line), var(--line)) 50% 0 / 40% 1px no-repeat; }
  .pc-cards { grid-template-columns: 1fr; }
  .pc-split--phone .pc-shot { order: 0; }
  .pc-belt li { padding: 16px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pc-belt .pc-belt__track { animation: none !important; } .pc-card img { transition: none; } .pc-card:hover img { transform: none; } }

/* ---- the same page for every project, in about the same style. Each page sets
   --brand (the client's colour) on <main>; the pieces below are the ones NOSKY did not need. */
/* a screenshot inside a coloured frame: a phone screen, a web page, or a picture that already has its own background */
/* placed absolutely: a percentage height inside a grid cell of unknown height is ignored, and the screenshot then shows at full size */
.pc-shot--phone img { position: absolute; left: 50%; top: 8%; width: auto; height: 84%; transform: translateX(-50%); border-radius: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.pc-shot--page img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; border-radius: 10px; object-fit: cover; object-position: 0 0; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }   /* the logo and menu sit top left */
.pc-shot--fit img { object-fit: contain; }
.pc-shot--cover img { object-fit: cover; }
.pc-shot--page.pc-photo figcaption, .pc-shot--phone.pc-photo figcaption, .pc-shot--render figcaption { background: rgba(10, 10, 10, .45); }   /* these sit on the colour, not on the picture */

/* the moving screen recording: the client's site scrolling, framed on its colour */
.pc-shot--film { aspect-ratio: auto; padding: clamp(18px, 4.5vw, 64px); }
.pc-film__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.pc-film__screen img, .pc-film__screen .pc-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pc-shot--film figcaption { position: static; display: inline-block; margin-top: 14px; }

/* the report card over a plain panel in the client's colour, when there is no picture to run it over */
.pc-report { position: relative; }
/* without a picture the card sits in a colour band only as tall as it needs (an empty 16:9 field around a small card looked lost) */
.pc-shot.pc-report--plain { aspect-ratio: auto; display: grid; place-items: center; padding: clamp(48px, 7vw, 104px) 16px; }
.pc-report--plain .pc-card-ui { position: relative; inset: auto; width: min(440px, 100%); margin: 0; transform: none; }
.pc-report--plain.is-play .pc-card-ui { animation-name: pc-card-flat; }
@keyframes pc-card-flat { 0% { opacity: 0; transform: translateY(12px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.pc-report--cover img { object-fit: cover; object-position: 30% 50%; }
.pc-report__shot { position: absolute; top: 8%; bottom: 8%; left: 12%; display: block; }
.pc-report__shot img { width: auto; height: 100%; border-radius: 20px; box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.pc-report__shot--page { top: 50%; bottom: auto; left: 6%; width: 52%; transform: translateY(-50%); }   /* centred on the card (SC Fajne, 17. 11.); phones keep the rule below */
.pc-report__shot--page img { width: 100%; height: auto; border-radius: 10px; }
.pc-report__shot--render { top: 4%; bottom: 4%; left: 2%; width: 56%; }   /* a Blender mock-up whole on the colour (16. 11.), the card on the right */
.pc-report__shot--render img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; }

/* three phones side by side, standing still (Echo; phones going round on a belt looked odd): the middle one
   a little higher; on arrival they rise once, one after another (projekt.js [data-once] → .is-in), then stay. Phones: a row to swipe */
.pc-trio { margin: clamp(40px, 6vh, 64px) 0 0; padding: clamp(40px, 6vw, 88px) 16px clamp(32px, 4vw, 56px); border-radius: 20px; background: var(--brand); }
.pc-trio ul { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.pc-trio li { flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pc-trio li:nth-child(2) { margin-top: calc(-1 * clamp(16px, 2.4vw, 36px)); }
.pc-trio img { display: block; height: clamp(300px, 32vw, 480px); width: auto; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .24)); }
.pc-trio span { font-size: 15px; color: rgba(255, 255, 255, .82); }
.pc-anim .pc-trio li { opacity: 0; transform: translateY(48px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 140ms); }
.pc-anim .pc-trio.is-in li { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .pc-trio { padding-left: 0; padding-right: 0; }
  .pc-trio ul { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 8px; scrollbar-width: none; }
  .pc-trio ul::-webkit-scrollbar { display: none; }
  .pc-trio li { scroll-snap-align: center; }
  .pc-trio li:nth-child(2) { margin-top: 0; }
  .pc-trio img { height: 400px; }
}
@media (prefers-reduced-motion: reduce) { .pc-trio li { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* results with two or three figures stay centred across the column; long figures („300 000+“) a size smaller so three fit */
.pc-results .pc-figs--long .pc-fig b { font-size: clamp(48px, 5.4vw, 88px); }
.pc-results .pc-figs { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
/* the merge panel takes its column count from the page (3 tiles in a row, 4 in two rows of two…) */
.pc-merge__tiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }

/* a client quote on its own, without a film: centred, the largest words in the lower half */
.pc-quote .quote { margin: 0 auto; padding: 0; border: 0; text-align: center; }
.pc-quote .quote p { margin: 0 auto; max-width: 26ch; font: 500 clamp(26px, 3vw, 44px)/1.28 var(--hf), sans-serif; letter-spacing: -.025em; color: var(--fg); text-wrap: balance; }
.pc-quote .quote cite { display: block; margin-top: 24px; font-size: 15px; font-style: normal; color: var(--muted); }

@media (max-width: 900px) {
  .pc-shot--film { padding: 14px; }
  .pc-merge__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-results .pc-figs { grid-template-columns: 1fr; }
  .pc-report__shot { left: 50%; top: 6%; bottom: auto; height: 54%; transform: translateX(-50%); }
  .pc-report__shot--page { width: 80%; height: auto; }
  .pc-report__shot--render { width: 94%; top: 2%; height: 58%; }
  .pc-shot--phone img { top: 7%; height: 86%; }
}

/* ---- 2 one paragraph and three figures, nothing else; the rest is in „Ve zkratce" */
.pg-intro { max-width: 1040px; }
.pg-intro .lead { margin: 0; max-width: 40ch; font: 500 clamp(22px, 2.1vw, 30px)/1.34 var(--hf), sans-serif; letter-spacing: -.015em; color: var(--fg); text-wrap: pretty; }
.pg-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(48px, 8vh, 88px); }
.pg-fig { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pg-fig b { display: block; font: 600 clamp(40px, 4.4vw, 68px)/1 var(--hf), sans-serif; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-fig b.word { white-space: normal; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; }
.pg-fig span { display: block; margin-top: 12px; max-width: 28ch; font-size: 16px; line-height: 1.45; color: var(--muted); }
.pg-more { margin-top: clamp(28px, 4vh, 44px); }
.pg-more .lead { margin: 0 0 16px; max-width: 60ch; font-size: 16px; color: var(--muted); }
.pg-photo { margin: 0; padding: 0 0 24px; font-size: 13px; color: var(--faint); }

/* ---- 3 the starting point */
.pg-state { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-state--text { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.pg-say { margin: 0; font: 500 clamp(26px, 3vw, 42px)/1.16 var(--hf), sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.pg-who { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.pg-pic { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #0c0c0e; }
.pg-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pg-pic figcaption { display: none; }

/* ---- 4 what we built */
.pg-built { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pg-head { margin: 0 0 clamp(20px, 3vh, 32px); font: 700 clamp(28px, 2.8vw, 40px)/1.08 var(--hf), sans-serif; letter-spacing: -.035em; }
.pg-stage { position: sticky; top: calc(50vh - 22vw); }
.pg-dev { position: relative; width: 100%; aspect-ratio: var(--ar, 1.53); }
.pg-dev--phone { max-width: 470px; margin: 0 auto; }
.pg-dev > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.pg-dev .pg-spill { opacity: .5; }
.pg-scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; }
.pg-scr > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s ease; }
.pg-scr > .is-on { opacity: 1; }
.pg-scr::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 34%, transparent 46%); }
.pg-rows { list-style: none; margin: 0; padding: 0; }
.pg-row { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 6px 14px; padding: clamp(22px, 4vh, 40px) 0; border-top: 1px solid var(--line); }
.pg-row:last-child { border-bottom: 1px solid var(--line); }
.pg-row h3 { margin: 0; font: 600 clamp(21px, 1.9vw, 27px)/1.15 var(--hf), sans-serif; letter-spacing: -.02em; }
.pg-row p { grid-column: 1; margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.pg-row i { grid-column: 2; grid-row: 1; font-style: normal; font-size: 22px; line-height: 1.1; text-align: right; transition: transform .45s ease; }
.pg-row.is-on i { transform: rotate(-45deg); }

/* ---- 5 the strip */
.pg-strip { overflow: hidden; margin-top: clamp(96px, 16vh, 180px); }
.pg-track { display: flex; gap: 16px; width: max-content; animation: pg-drift 60s linear infinite; }
.pg-track figure { flex: none; margin: 0; height: clamp(200px, 24vw, 320px); border-radius: 12px; overflow: hidden; background: #0c0c0e; }
.pg-track img { height: 100%; width: auto; display: block; }
.pg-strip:hover .pg-track { animation-play-state: paused; }
@keyframes pg-drift { to { transform: translateX(calc(-50% - 8px)); } }

/* ---- 6 the result: the moved chapter(s), set wider than in the report */
.pg-result .chapters, .pg-story .chapters { max-width: 860px; }
.pg .report { display: block; margin-top: 0; }
.pg .report .ch:first-child { padding-top: 0; }
.pg-result .ch { padding-top: clamp(40px, 6vh, 64px); }
.pg-result .ch:first-child { padding-top: 0; }

/* ---- the whole story, folded */
/* a warm section's surface runs a section-space below its box (site.css), so whatever follows starts below that */
.pg [data-tone="warm"] + * { padding-top: calc(var(--sec-space) + clamp(24px, 4vh, 48px)); }
.pg-story { padding-top: clamp(80px, 12vh, 140px); }
.pg-story > details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* only the „Celý příběh“ summary itself: the questions inside the story (details.acc) keep their own layout (site.css) */
.pg-story > details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 26px 0; }
.pg-story > details > summary::-webkit-details-marker { display: none; }
.pg-story > details > summary b { font: 700 clamp(22px, 2vw, 28px)/1.1 var(--hf), sans-serif; letter-spacing: -.025em; }
.pg-story > details > summary span { grid-column: 1; font-size: 15px; color: var(--muted); }
.pg-story > details > summary i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 26px; line-height: 1; transition: transform .35s ease; }
.pg-story > details[open] > summary i { transform: rotate(45deg); }
.pg-story details > .report { padding: 8px 0 clamp(48px, 8vh, 80px); }
.pg-close { padding-top: clamp(64px, 10vh, 120px); }
.pg-close .chapters > .ch { margin-top: 0; }
.pg-close .ch.pointa { padding-top: 0; }

@media (max-width: 900px) {
  .pg-film { aspect-ratio: 4 / 5; max-height: none; }
  .pg-tab--claim { width: 84%; }
  .pg-name { font-size: clamp(40px, 12.5vw, 64px); }
  .pg-state, .pg-built { grid-template-columns: 1fr; }
  .pg-figs { grid-template-columns: 1fr; gap: 28px; }
  .pg-stage { position: relative; top: 0; }
  .pg-dev--phone { max-width: 300px; }
}
@media (max-width: 900px) {
  .pg .pg-more .figs .fig:nth-child(odd) { padding-left: 0; }   /* case.css's n+2 rule otherwise indents the third figure in the two-column grid */
}
@media (prefers-reduced-motion: reduce) {
  .pg-track { animation: none; }
  .pg-scr > *, .pg-row i, .pg-film video { transition: none; }
}
.pg-more .figs .fig b { font-size: clamp(26px, 2.4vw, 36px); }

/* ---- the result as parallel items: cards, a screen on top where one exists */
.pg-result .chapters { max-width: none; }
.pg-result .ch:not(.pg-res) { max-width: 860px; }
.pg .pg-res { max-width: none; }
.pg-res-head { max-width: 760px; }
.pg-res-head .h { margin: 0; }
.pg .pg-res .pg-res-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.pg-res-items { list-style: none; margin: clamp(36px, 6vh, 56px) 0 0; padding: 0; display: grid; gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: none; }
.pg-res-items--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-res-items--5 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pg-res-item { min-width: 0; margin: 0; padding: 0; }
.pg-res-item::before { content: none; }
.pg-res-body h3 { margin: 0; font: 600 clamp(20px, 1.7vw, 25px)/1.18 var(--hf), sans-serif; letter-spacing: -.02em; }
.pg .pg-res .pg-res-body p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.pg-res-body small { display: block; font-size: 13px; color: var(--faint); }
.pg-res-pic { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255, 255, 255, .045); }
.pg-res-pic img { position: absolute; display: block; }
.pg-res-pic--web img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-res-pic--phone img { left: 50%; top: 9%; width: 58%; height: 112%; transform: translateX(-50%); object-fit: cover; border-radius: 16px; }
.pg-res-after { max-width: 760px; }
.pg .pg-res .pg-res-after > * { margin: clamp(28px, 4vh, 40px) 0 0; }
.pg .pg-res .pg-res-after p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* the cards (the :not() selectors keep their weight from the trial; nothing sets data-res any more) */
html:not([data-res="a"]):not([data-res="b"]) .pg-res-item { border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
html:not([data-res="a"]):not([data-res="b"]) .pg-res-body { padding: clamp(18px, 1.8vw, 26px); }

@media (max-width: 900px) {
  .pg-res-items, .pg-res-items--4, .pg-res-items--5 { grid-template-columns: 1fr; }
  .pg-res-pic { aspect-ratio: 16 / 10; }
  .pg-res-pic--phone img { width: 44%; }
}

/* ---- „Písmo: nové": four sizes only, text white not grey, no dividing lines,
   more air inside the blocks, lines at most 60 characters. html[data-type="new"] is written into each project page's <html> tag. */
html[data-type="new"] .pg {
  --t1: clamp(32px, 3.4vw, 48px);    /* a section's heading, the big sentence, the figures */
  --t2: clamp(21px, 1.8vw, 26px);    /* an item's title, the opening paragraph, the claim */
  --t3: clamp(17px, 1.25vw, 18px);   /* text */
  --ink: rgba(248, 248, 248, .88);
}
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) :where(p, li, dd, blockquote) { font-size: var(--t3); line-height: 1.6; color: var(--ink); }
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) p { max-width: 60ch; }
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) p + p { margin-top: 20px; }
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) h2 { margin: 0 0 24px; font: 600 var(--t1)/1.08 var(--hf), sans-serif; letter-spacing: -.035em; max-width: 22ch; }
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) h3 { font: 600 var(--t2)/1.2 var(--hf), sans-serif; letter-spacing: -.02em; color: var(--fg); }
html[data-type="new"] .pg :where(.pg-sec, .pg-story, .pg-close) :where(.strong, .lead) { font: 500 var(--t2)/1.38 var(--hf), sans-serif; color: var(--fg); }
html[data-type="new"] .pg :is(small, dt, cite, .eyebrow, .pg-who, .pg-photo, .pg-res-body small) { font-size: 15px; color: var(--muted); letter-spacing: 0; text-transform: none; }
/* no dividing lines: the space does the dividing; buttons and the timeline keep theirs */
html[data-type="new"] .pg :is(.pg-sec, .pg-story, .pg-close) *:not(.btn):not(.tl):not(.tl *) { border-color: transparent; }
html[data-type="new"] .pg .pg-res-tags li, html[data-type="new"] .pg .tags li { background: rgba(255, 255, 255, .06); }

/* the opening and the figures */
html[data-type="new"] .pg .pg-claim { font-size: var(--t2); }
html[data-type="new"] .pg .pg-intro .lead { font-size: var(--t2); line-height: 1.4; max-width: 44ch; color: var(--fg); }
html[data-type="new"] .pg .pg-figs { margin-top: clamp(56px, 9vh, 96px); gap: 40px clamp(32px, 5vw, 80px); }
html[data-type="new"] .pg .pg-fig { padding-top: 0; }
html[data-type="new"] .pg .pg-fig b, html[data-type="new"] .pg .fig b { font-size: var(--t1); }
html[data-type="new"] .pg .pg-fig span, html[data-type="new"] .pg .fig span { margin-top: 14px; font-size: var(--t3); color: var(--ink); }
html[data-type="new"] .pg .fig { padding-left: 0; }
/* the starting point */
html[data-type="new"] .pg .pg-say { font-size: var(--t1); line-height: 1.12; }
/* what we built */
html[data-type="new"] .pg .pg-head { font-size: var(--t1); margin-bottom: clamp(16px, 3vh, 32px); }
html[data-type="new"] .pg .pg-row { padding: clamp(28px, 5vh, 52px) 0; }
html[data-type="new"] .pg .pg-row p { margin-top: 12px; }
/* the result */
html[data-type="new"] .pg .pg-res-items { gap: clamp(28px, 3.4vw, 48px); margin-top: clamp(44px, 7vh, 72px); }
html[data-type="new"] .pg .pg-res-body p { margin-top: 12px; }
html[data-type="new"] .pg .pg-res-body p + p { margin-top: 16px; }
html[data-type="new"]:not([data-res="a"]):not([data-res="b"]) .pg .pg-res-body { padding: clamp(22px, 2.2vw, 32px); }
/* the whole story: a quiet panel instead of two rules */
html[data-type="new"] .pg .pg-story > details { border-radius: 18px; background: rgba(255, 255, 255, .04); padding: 0 clamp(20px, 2.6vw, 36px); }
html[data-type="new"] .pg .pg-story > details > summary { padding: clamp(24px, 3.4vh, 34px) 0; }
html[data-type="new"] .pg .pg-story > details > summary b { font-size: var(--t2); }
html[data-type="new"] .pg .pg-story > details > summary span { font-size: 15px; color: var(--muted); }
html[data-type="new"] .pg .facts dt { padding-top: 18px; }
html[data-type="new"] .pg .facts dd { padding-top: 16px; }

/* never orange text: the step numbers, the 20 % and the error figures inherited from the case pages go white or grey */
.pg .steps > li::before { color: var(--muted); }
.pg .split__legend p:last-child b, .pg .err__figs b, .pg .box__figs b, .pg .press a:hover b { color: var(--fg); }
