/* paidadvertising.eu LOUD, the final page: V1's film (nav, hero, turn, trap, finale) with V2's tabloid floods
   (the comparison, the poster wall, the torn lime seams, the back page) and V3's steps, on one system.
   Extends ../shared/loud.css (tokens + fonts). */

@property --p { syntax: "<percentage>"; inherits: false; initial-value: 112%; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 400deg; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-size: 19px; line-height: 1.6; color: var(--fog); overflow-x: clip; font-optical-sizing: auto; }
h1, h2, h3, p, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.band--lime :focus-visible { outline-color: var(--void); }

:root {
  --pad: max(var(--gutter), calc((100% - var(--measure)) / 2));
  --t-in: 140ms;
  --t-out: 320ms;
  --t-move: 420ms;
  --t-press: 90ms;
  --seam-h: clamp(56px, 12.5vw, 180px);
  --band-pad: clamp(64px, 8vw, 128px);
  /* film grain: a fine noise texture, laid on the stills only, under every line of type */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.25 -.32'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  /* paper tooth, for the posters on the wall */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  /* the long feather that dissolves a still into the void, top and bottom */
  --feather-y: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.03) 3%, rgba(0,0,0,.09) 6%, rgba(0,0,0,.19) 10%, rgba(0,0,0,.33) 14%, rgba(0,0,0,.5) 18%, rgba(0,0,0,.67) 22%, rgba(0,0,0,.81) 26%, rgba(0,0,0,.92) 29%, #000 32%, #000 64%, rgba(0,0,0,.92) 67%, rgba(0,0,0,.81) 71%, rgba(0,0,0,.67) 75%, rgba(0,0,0,.5) 80%, rgba(0,0,0,.33) 85%, rgba(0,0,0,.19) 89%, rgba(0,0,0,.09) 93%, rgba(0,0,0,.03) 97%, transparent 100%);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--lime); color: var(--on-lime); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- display type: the ad's voice, and the tabloid's condensed cut of it ---------- */

.d {
  font-family: var(--display);
  font-weight: 800;
  font-optical-sizing: auto;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -0.012em;
  color: var(--bone);
}
.d > span { display: block; }
.d2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -0.006em;
  font-size: clamp(56px, 10.4vw, 172px);
  line-height: .88;
  color: var(--bone);
  text-wrap: balance;
}
.band--lime .d2 { color: var(--void); }

.prose p + p { margin-top: 1.05em; }
.prose { max-width: 34em; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.62; }
.punch { font-family: var(--display); font-weight: 700; font-size: 1.5em; line-height: 1.1; letter-spacing: -0.015em; color: var(--bone); }
.prose .punch { margin-top: .9em; margin-bottom: .1em; }

/* ---------- the one action: the ad's lime block (ink on the lime floods, a slab at full width) ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: var(--on-lime);
  font: 800 19px/1 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-out) var(--ease), color var(--t-out) var(--ease), transform var(--t-press) ease-out;
}
@media (hover: hover) {
  .cta:hover { background: var(--bone); transition-duration: var(--t-in), var(--t-in), var(--t-press); }
  .cta--ink:hover { background: #1b1c15; }
}
/* a light passes over every action, top left to bottom right, then rests */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 38%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, .26) 46%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .26) 54%, rgba(255, 255, 255, .08) 58%, transparent 62%) 0 0 / 250% 250% no-repeat;
  animation: sheen 4.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
.cta--ink::before { background-image: linear-gradient(135deg, transparent 38%, rgba(212, 228, 92, .05) 42%, rgba(212, 228, 92, .18) 46%, rgba(212, 228, 92, .34) 50%, rgba(212, 228, 92, .18) 54%, rgba(212, 228, 92, .05) 58%, transparent 62%); }
@keyframes sheen {
  0% { background-position: 100% 100%; }
  40%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .cta::before { animation: none; } }
.cta:active { background: var(--lime-deep); transform: scale(.97); }
.cta:focus-visible { outline-offset: 5px; }
.cta--big { min-height: 68px; padding: 0 42px; font-size: clamp(19px, 1.5vw, 22px); }
.cta--nav { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 6px; }
.cta--ink { min-height: 68px; padding: 0 30px; background: var(--void); color: var(--lime); font-size: clamp(19px, 1.6vw, 24px); }
.cta--ink:active { background: #1b1c15; }
.cta--giant {
  width: 100%;
  min-height: clamp(96px, 11vw, 176px);
  padding: .12em .5em 0;
  gap: .5em;
  border-radius: 14px;
  font-size: clamp(38px, 7vw, 120px);
  font-stretch: 75%;
  letter-spacing: 0;
}
.cta--giant::after {
  content: "";
  flex: none;
  width: .62em;
  height: .62em;
  margin-top: -.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M8.5 6H18v9.5' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M8.5 6H18v9.5' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-out) var(--ease);
}
.cta--giant:hover::after { transform: translate(.08em, -.08em); }

/* ---------- brush marks, the film's: authored dry-brush SVG, drawn in by a pen that follows the stroke ---------- */

.mk { position: absolute; overflow: visible; pointer-events: none; }
.mk use { fill: var(--lime); }
.pen { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 0; }
.pen--under { stroke-width: 62; }
.pen--ring { stroke-width: 34; }
.pen--arrow { stroke-width: 30; }
.mk-host { position: relative; display: inline-block; }

/* marks on text that can wrap: a lime fill laid behind each line, grown from the left */
.hl, .ul {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-repeat: no-repeat;
  transition: background-size 640ms var(--ease) var(--d, 0ms), color 260ms var(--ease) calc(var(--d, 0ms) + 220ms);
}
.hl { background-image: var(--brush-hl-solid); background-size: 100% 100%; background-position: 0 50%; padding: .04em .42em .06em .42em; margin: 0 -.3em; color: var(--on-lime); }
.ul { background-image: var(--brush-under); background-size: 100% .3em; background-position: 0 100%; padding-bottom: .16em; }

@media (prefers-reduced-motion: no-preference) {
  .js .mk:not(.is-in) .pen { stroke-dashoffset: 1.05; }
  .js .mk.is-in .pen { transition: stroke-dashoffset 680ms var(--ease) var(--d, 0ms); }
  .js .hl:not(.is-in) { background-size: 0% 100%; color: var(--fog); }
  .js .hl.hl--display:not(.is-in) { color: var(--bone); }
  .js .ul:not(.is-in) { background-size: 0% .3em; }
}

/* margin notes, in the marker's hand */
.note {
  display: flex;
  align-items: flex-end;
  gap: .3em;
  font: 700 clamp(19px, 1.6vw, 24px)/1 var(--display);
  letter-spacing: 0;
  color: var(--lime);
  transform: rotate(-4deg);
  pointer-events: none;
}
.note > span { white-space: nowrap; }
.note__arrow { position: relative; flex: none; width: 3.4em; height: auto; aspect-ratio: 3 / 2; }

/* ---------- brush marks, the tabloid's: filled marks from one sprite, swept in by a mask; complete by default ---------- */

.bmw { position: relative; display: inline-block; isolation: isolate; }
.bm { position: absolute; display: block; overflow: visible; pointer-events: none; color: var(--lime); }
.band--lime .bm { color: var(--void); }
.bm[data-draw="line"] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 10%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 10%), transparent var(--p));
  transition: --p 680ms var(--ease) var(--d, 0ms);
}
.bm[data-draw="loop"] {
  -webkit-mask-image: conic-gradient(from 290deg, #000 calc(var(--a) - 24deg), transparent var(--a));
  mask-image: conic-gradient(from 290deg, #000 calc(var(--a) - 24deg), transparent var(--a));
  transition: --a 760ms var(--ease) var(--d, 0ms);
}
.bm.is-pending { --p: -14%; --a: 0deg; }

/* the struck-out claims: the words in grey, a lime brush through each line */
.x {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-repeat: no-repeat;
  transition: background-size 640ms var(--ease) var(--d, 0ms);
  color: transparent;
  background-image: url("../img/strike-lime.svg"), linear-gradient(var(--x-ink, #a3a49c), var(--x-ink, #a3a49c));
  background-position: 0 var(--x-y, 55%), 0 0;
  background-size: 100% .62em, 100% 100%;
  -webkit-background-clip: border-box, text;
  background-clip: border-box, text;
}
.x.is-pending { background-size: 0% .62em, 100% 100%; }

/* ---------- stills: feathered into the void, grain under the type, drifting with the scroll ---------- */

.still { position: relative; overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--drift, 0px), 0) scale(var(--zoom, 1.1)); will-change: transform; }
.still--band {
  width: 100%;
  height: clamp(340px, 62vh, 700px);
  -webkit-mask-image: var(--feather-y);
  mask-image: var(--feather-y);
}
.grain {
  position: absolute;
  inset: -40px;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 900ms steps(1) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-13px, 9px); }
  33% { transform: translate(11px, -17px); }
  50% { transform: translate(-7px, 21px); }
  67% { transform: translate(19px, 5px); }
  83% { transform: translate(-21px, -11px); }
}

/* ---------- nav: the brand, the chapters, the action ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
  transition: transform 520ms var(--ease);
}
.nav.is-away { transform: translateY(-110%); }
/* without JS nothing turns the bar solid or hides it, so it stays with the first screen instead of floating over the copy */
html:not(.js) .nav { position: absolute; }
.nav__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: calc(var(--measure) + 24px);
  height: 64px;
  margin: 0 auto;
  padding: 0 10px 0 16px;
  border-radius: 12px;
  pointer-events: auto;
  transition: background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}
.nav.is-solid .nav__bar {
  background: rgba(8, 8, 7, .82);
  box-shadow: inset 0 0 0 1px rgba(40, 40, 36, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--bone);
  text-decoration: none;
  font: 600 18px/1 var(--body);
  letter-spacing: -.025em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.nav__mark { flex: none; width: 24px; height: 24px; }
.nav__word span { color: var(--ash); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #b9bab3;
  font: 500 15px/1 var(--body);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
  transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease);
}
.nav__links a:hover { color: var(--bone); background: rgba(255, 255, 255, .06); transition-duration: var(--t-in); }
.nav__links a.is-on { color: var(--bone); font-weight: 650; }
.cta--nav { margin-left: 6px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .cta--nav { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav { padding-top: 8px; }
  .nav__bar { height: 56px; padding: 0 6px 0 12px; }
  .nav__brand { font-size: 16px; gap: 8px; }
  .nav__mark { width: 21px; height: 21px; }
  .cta--nav { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid .nav__bar { background: var(--void-up); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- 1 · hero: the ad as the first frame of a film ---------- */

.hero {
  --fit: 7.8; /* the widest line in em, plus the mark's reach; hero.js measures it */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter) clamp(44px, 9vh, 104px);
  overflow: clip;
}
.hero__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,.9) 83%, rgba(0,0,0,.74) 86%, rgba(0,0,0,.54) 89%, rgba(0,0,0,.34) 92%, rgba(0,0,0,.17) 95%, rgba(0,0,0,.05) 98%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0,0,0,.9) 83%, rgba(0,0,0,.74) 86%, rgba(0,0,0,.54) 89%, rgba(0,0,0,.34) 92%, rgba(0,0,0,.17) 95%, rgba(0,0,0,.05) 98%, transparent 100%);
  will-change: transform;
}
.hero__frame picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 50%; }
.hero__frame .grain { opacity: .12; }

.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-optical-sizing: auto;
  font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit)), 12.4vh, 150px);
  line-height: .9;
  padding-bottom: .14em;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .38);
}
.hero__title > span { display: block; white-space: nowrap; }
.hero__l2 { margin-top: .02em; }
.mk--under { left: -2%; bottom: -.2em; width: 104%; height: .22em; transform: rotate(-1.4deg); }
.hero .mk { --d: 260ms; }
/* an underline on a line with another under it keeps clear of that line's caps */
.hero__title > :has(.mk-host--under) + * { margin-top: .3em; }
.hero__sub {
  max-width: 30em;
  margin-top: clamp(26px, 4.2vh, 44px);
  font: 500 clamp(18px, 1.45vw, 22px)/1.4 var(--body);
  color: var(--bone);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .6);
  text-wrap: balance;
}
.hero .cta--big { margin-top: clamp(16px, 2.4vh, 24px); }

@media (max-width: 700px) {
  .hero { padding-bottom: 28px; }
  /* the tall frame's lower car sits where the headline stands: lift it clear */
  .hero__frame { inset: -11% 0 11%; }
  .hero__title { font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit)), 60px); }
  .hero__sub { max-width: 19em; font-size: 18px; }
  .hero .cta--big { width: 100%; max-width: 420px; min-height: 62px; }
}

/* ---------- the hand-drawn ring round a word ---------- */

.mk-host--ring { isolation: isolate; padding: 0 .1em; }
.mk--ring { z-index: -1; left: -15%; top: -32%; width: 131%; height: 172%; --d: 120ms; }

/* ---------- 2b · the discount trap ---------- */

.trap { position: relative; padding-bottom: clamp(48px, 9vh, 110px); }
.trap__still img { object-position: 50% 80%; filter: brightness(1.5) contrast(1.08); }
.trap__title {
  --fit: 8.3; /* "ZĽAVY PREDÁVAJÚ." is 8.04em, measured */
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(40px, 7vh, 90px));
  padding: 0 var(--pad);
  /* fitted to the measure too, so the first line stays one line on wide screens */
  font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit)), calc(var(--measure) / var(--fit)), 180px);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .4);
}
.trap__title > span { width: fit-content; }
.trap__title > span + span { margin-top: .08em; }
.hl--display { padding: .12em .2em .02em .12em; margin: 0 -.06em; text-shadow: none; }

.trap__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  grid-template-areas: "text stage" ". cap";
  column-gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(40px, 7vh, 80px);
  padding: 0 var(--pad);
}
.trap__text { position: relative; z-index: 1; grid-area: text; align-self: start; }
/* the figure and its note: the note is pinned by its arrow's tip to a point of the figure, --tx and --ty as fractions
   of the stage's width (here the still's empty tops of the orders after the discounts; burn.js sets the live point) */
.trap__stage { position: relative; grid-area: stage; --tx: .5602; --ty: .3531; }
.note--trap {
  --tip-x: .405em; /* the arrow's head, mirrored, in the note's own box */
  --tip-y: 1.557em;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  align-items: flex-start;
  margin: calc(var(--ty) * 100% - var(--tip-y)) 0 0 calc(var(--tx) * 100% - var(--tip-x));
  transform-origin: var(--tip-x) var(--tip-y);
}
.note--trap > span { max-width: 4em; white-space: normal; }
.note--trap .note__arrow { width: 3.2em; transform: scaleX(-1); }
.trap__caption { position: relative; z-index: 1; grid-area: cap; margin-top: 18px; text-align: center; font-size: 16px; color: #a9aaa2; }

/* the burn: the orders as columns of points, costs below, the margin on top */
.burn { position: relative; width: 100%; }
.burn__still, .burn__live { display: block; width: 100%; aspect-ratio: 640 / 540; }
.burn__live { position: relative; display: none; }
.js .burn.is-live .burn__live { display: block; }
.js .burn.is-live .burn__still { display: none; }
.burn__still .bs__m { fill: url(#bs-m); }
.burn__still .bs__c { fill: url(#bs-c); }
.bs__tag { font: 800 30px/1 var(--display); fill: var(--bone); text-transform: uppercase; }
.bs__key { font: 700 21px/1 var(--display); }
.bs__key--m { fill: var(--lime); }
.bs__key--c { fill: var(--ash); }
.bs__end { font: 800 34px/1 var(--display); fill: var(--bone); text-transform: uppercase; }
.burn__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.burn__tag {
  position: absolute;
  left: var(--tag-x, 0);
  top: 2%;
  font: 800 clamp(30px, 3.4vw, 54px)/1 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}
.burn__tag.is-cut { color: var(--lime); }
.burn__tag.is-end { left: 0; right: calc((1 - var(--tx)) * 100% + 12px); font-size: clamp(22px, 2.5vw, 38px); top: 4%; white-space: normal; text-wrap: balance; }
.burn__key { position: absolute; left: 0; font: 700 clamp(15px, 1.25vw, 19px)/1 var(--display); white-space: nowrap; transform: translate(calc(-100% - 12px), -50%); transition: color var(--t-out) var(--ease); }
.burn__key--m { color: var(--lime); }
.burn__key--c { color: var(--ash); }
.burn__key--m.is-gone { color: #5d5e57; text-decoration: line-through; text-decoration-thickness: .12em; text-decoration-color: var(--lime); }
.burn__legend { margin-top: 10px; text-align: center; font-size: 15px; color: #a9aaa2; }

@media (max-width: 899px) {
  .trap__title { margin-top: calc(-1 * clamp(36px, 10vw, 80px)); }
  .trap__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "stage" "cap"; }
  .trap__stage { margin-top: 36px; }
}

/* ---------- 3 · the comparison ---------- */

.compare { position: relative; isolation: isolate; padding: clamp(72px, 9vw, 150px) var(--gutter) clamp(80px, 9vw, 140px); }
.compare__press {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(420px, 52vw, 820px);
  transform: translate3d(0, var(--py, 0px), 0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.04) 6%, rgba(0,0,0,.16) 12%, rgba(0,0,0,.36) 18%, rgba(0,0,0,.6) 24%, rgba(0,0,0,.82) 30%, #000 36%, #000 56%, rgba(0,0,0,.8) 64%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.3) 80%, rgba(0,0,0,.12) 88%, rgba(0,0,0,.03) 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.04) 6%, rgba(0,0,0,.16) 12%, rgba(0,0,0,.36) 18%, rgba(0,0,0,.6) 24%, rgba(0,0,0,.82) 30%, #000 36%, #000 56%, rgba(0,0,0,.8) 64%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.3) 80%, rgba(0,0,0,.12) 88%, rgba(0,0,0,.03) 95%, transparent 100%);
}
.compare__press img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: brightness(.62) saturate(.85); }
/* the list runs over the lower half of the photo: darken it inside the photo's own mask, so the first rows read and no band shows */
.compare__press::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,4,4,0) 0%, rgba(4,4,4,0) 30%, rgba(4,4,4,.12) 35%, rgba(4,4,4,.3) 40%, rgba(4,4,4,.5) 45%, rgba(4,4,4,.66) 50%, rgba(4,4,4,.78) 55%, rgba(4,4,4,.86) 60%, rgba(4,4,4,.9) 66%, rgba(4,4,4,.92) 100%);
}
.compare__title { text-align: center; text-shadow: 0 2px 24px rgba(4, 4, 4, .7); }
.bmw--ring { padding: 0 .04em; margin: 0 .14em 0 .1em; }
.bm--ring { left: -42%; top: -10%; width: 184%; height: 118%; }

.versus, .compare__foot, .slab, .wall > :not(.seam) { max-width: var(--measure); margin-inline: auto; }
.versus { margin-top: clamp(48px, 7vw, 110px); }
.versus__row {
  display: grid;
  grid-template-columns: clamp(44px, 5vw, 84px) minmax(0, 1fr) minmax(0, 1.18fr);
  column-gap: clamp(18px, 3.4vw, 56px);
  align-items: baseline;
  padding-block: clamp(18px, 2.2vw, 30px);
}
.versus__row:nth-child(odd):not(.versus__row--head) { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .028) 12%, rgba(255, 255, 255, .028) 88%, transparent); }
.versus__row--head { align-items: end; padding-bottom: clamp(10px, 1.4vw, 20px); }
.versus__row--head .versus__them, .versus__row--head .versus__us {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(30px, 3.6vw, 60px);
  line-height: .9;
  letter-spacing: .005em;
}
/* the ash head sits on the press photo: a void halo lifts it off the flashes */
.versus__row--head .versus__them { color: var(--ash); text-shadow: 0 0 .12em rgba(4, 4, 4, .95), 0 0 .4em rgba(4, 4, 4, .9), 0 0 1em rgba(4, 4, 4, .75); }
.versus__row--head .versus__us { color: var(--lime); }
.versus__n {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(34px, 3.6vw, 60px);
  line-height: .9;
  color: var(--bone);
}
.versus__them { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2vw, 30px); line-height: 1.24; color: #a3a49c; }
.versus__us { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.48; color: var(--bone); }
.compare__foot { margin-top: clamp(28px, 3vw, 44px); font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; color: var(--bone); text-align: center; }
.slab { padding-top: clamp(40px, 5vw, 72px); }

/* ---------- the lime floods and their torn brush seams ---------- */

.band--lime {
  position: relative;
  z-index: 1;
  margin-block: calc(var(--seam-h) - 2px);
  padding: var(--band-pad) var(--gutter);
  background: var(--lime);
  color: var(--void);
}
.band--lime ::selection { background: var(--void); color: var(--lime); }
.seam { position: absolute; left: 0; display: block; width: 100%; height: var(--seam-h); color: var(--lime); pointer-events: none; }
.seam--top { bottom: calc(100% - 2px); }
.seam--bottom { top: calc(100% - 2px); transform: scaleY(-1); }
.seam--top.seam--flip { transform: scaleX(-1); }
.seam--bottom.seam--flip { transform: scale(-1, -1); }

/* ---------- 4 · the poster wall ---------- */

.wall { overflow-x: clip; padding-bottom: clamp(36px, 4vw, 64px); }
.wall__title { margin-bottom: clamp(40px, 6vw, 96px); }
.bm--under { left: -3%; bottom: -.24em; width: 106%; height: .3em; }
.posters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px) clamp(20px, 2.4vw, 40px);
  align-items: start;
}
.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.2vw, 34px) clamp(22px, 2.2vw, 32px);
  transform: rotate(var(--r));
  box-shadow: 1px 2px 0 rgba(48, 51, 24, .12), 3px 9px 14px -8px rgba(48, 51, 24, .6);
}
.poster:nth-child(1) { grid-column: 1 / span 4; }
.poster:nth-child(2) { grid-column: 5 / span 3; margin-top: 70px; }
.poster:nth-child(3) { grid-column: 8 / span 5; margin-top: 14px; }
.poster:nth-child(4) { grid-column: 2 / span 5; margin-top: -10px; }
.poster:nth-child(5) { grid-column: 7 / span 6; margin-top: 40px; }
.poster--paper { background: #fbfbf7 var(--noise); color: var(--void); }
.poster--ink { background: var(--void) var(--noise); color: var(--bone); }
.poster__name { font-family: var(--body); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.poster--paper .poster__name { color: #4b4d44; }
.poster--ink .poster__name { color: var(--lime); }
.poster__slogan { margin-top: .3em; font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.006em; font-size: clamp(42px, 4.3vw, 76px); line-height: .88; text-wrap: balance; }
.poster__scene { position: relative; width: 100%; aspect-ratio: 520 / 400; margin: clamp(14px, 1.6vw, 24px) 0 clamp(10px, 1.2vw, 18px); }
.poster__scene svg { display: block; width: 100%; height: 100%; }
.poster--ink .poster__scene { aspect-ratio: 520 / 330; margin-block: clamp(8px, 1vw, 14px) clamp(6px, .8vw, 12px); }
.poster--ink .pa-scene { --pa-dim: rgba(218, 218, 218, .8) !important; --pa-ktrace: rgba(212, 228, 92, .42) !important; --pa-dottrace: rgba(212, 228, 92, .5) !important; }
html:not(.js) .poster__scene { display: none; }
.poster__fact { font-size: 17px; line-height: 1.45; }
.poster--paper .poster__fact { color: #2b2c27; }
.poster--ink .poster__fact { color: var(--fog); }
.hlw { position: relative; display: inline-block; isolation: isolate; margin-left: .1em; color: var(--void); transition: color 240ms var(--ease) 200ms; }
.hlw:has(.is-pending) { color: inherit; }
/* the swatch's solid body runs from about 4% to 90% of its box: it starts .12em before the V and ends .15em past the period */
.bm--hl { left: -.17em; top: .02em; width: calc(100% + .64em); height: .92em; z-index: -1; color: var(--lime) !important; }

.pin { position: absolute; z-index: 2; }
.pin--tape { width: clamp(84px, 8vw, 118px); height: auto; fill: rgba(246, 247, 236, .62); }
.poster--paper .pin--tape { fill: rgba(222, 226, 200, .7); }
.pin--tl { left: -18px; top: -14px; transform: rotate(-24deg); }
.pin--tr { right: -18px; top: -14px; transform: rotate(22deg); }
.pin--br { right: -20px; bottom: -12px; transform: rotate(-20deg); }
.pin--staple { width: 46px; left: calc(50% - 23px); top: 9px; fill: #6d6f63; }
.poster--ink .pin--staple { fill: #b6b8ac; }

.wall__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
  margin-top: clamp(48px, 6vw, 96px);
  text-align: center;
}
.wall__foot p { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }

/* ---------- 5 · after you write: four steps, set by hand on the void, the last one points down into the form ---------- */

.after { position: relative; padding: clamp(40px, 6vw, 96px) var(--pad) clamp(48px, 7vw, 120px); }
.after__title { --fit: 6.1; /* "VO VECI." and "POSTUP" at most 5.6em, measured */ font-size: min(calc((100vw - 2 * var(--gutter)) / var(--fit)), 176px); text-align: center; }
.after__title > span + span { margin-top: .04em; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 56px);
  margin-top: clamp(56px, 7vw, 110px);
}
.steps__one { position: relative; transform: rotate(-1.6deg); }
.steps__one:nth-child(even) { transform: rotate(1.2deg) translateY(clamp(12px, 2vw, 36px)); }
.steps__no { display: block; font: 800 clamp(84px, 9vw, 152px)/.84 var(--display); letter-spacing: -.02em; color: var(--bone); }
.steps__one p { max-width: 24ch; margin-top: 22px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 500; line-height: 1.5; color: var(--fog); }
.mk-host--cely { margin-left: .2em; padding: 0 .18em; font-family: var(--display); font-weight: 800; color: var(--bone); }
.mk-host--cely .mk--ring { left: -18%; top: -38%; width: 136%; height: 176%; }
/* the last step hands down into the form: the film's underline under its number, then its arrow, big enough to read */
.steps__no--you { position: relative; width: fit-content; }
.steps__no--you .mk--under { left: -4%; bottom: -.1em; width: 112%; height: .22em; transform: rotate(-1.4deg); --d: 120ms; }
.steps__down { left: -6%; top: calc(100% + 10px); width: clamp(130px, 11vw, 190px); height: auto; aspect-ratio: 3 / 2; transform: scaleX(-1) rotate(30deg); --d: 420ms; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  .steps__down { width: 120px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps__one { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .steps__one:nth-child(even) { transform: rotate(1.2deg); }
  .steps__no { font-size: 76px; }
  .steps__one p { margin-top: 4px; }
  /* in one column the form is below and to the right of the 04, so the arrow turns that way */
  .steps__down { transform: rotate(30deg); }
}

/* ---------- 6 · the finale: the tall still beside the main column ---------- */

.finale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
  padding: 0 var(--pad) clamp(28px, 4vh, 56px);
  scroll-margin-top: 0;
}
.finale__still {
  grid-column: 1 / span 5;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-left: calc(-1 * var(--pad));
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0,0,0,.88) 64%, rgba(0,0,0,.7) 70%, rgba(0,0,0,.48) 76%, rgba(0,0,0,.28) 82%, rgba(0,0,0,.13) 88%, rgba(0,0,0,.04) 94%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 6%, rgba(0,0,0,.7) 12%, #000 18%, #000 80%, rgba(0,0,0,.7) 88%, rgba(0,0,0,.3) 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0,0,0,.88) 64%, rgba(0,0,0,.7) 70%, rgba(0,0,0,.48) 76%, rgba(0,0,0,.28) 82%, rgba(0,0,0,.13) 88%, rgba(0,0,0,.04) 94%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 6%, rgba(0,0,0,.7) 12%, #000 18%, #000 80%, rgba(0,0,0,.7) 88%, rgba(0,0,0,.3) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.finale__still img { object-position: 46% 50%; transform: none; }
.finale__main { position: relative; z-index: 1; grid-column: 5 / -1; grid-row: 1; padding-top: clamp(100px, 18vh, 200px); container-type: inline-size; }
.finale__title { font-size: min(calc(100cqi / 7.1), 140px); text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
.ul--display { padding-bottom: .02em; background-size: 100% .2em; }
@media (prefers-reduced-motion: no-preference) { .js .ul--display:not(.is-in) { background-size: 0% .2em; } }
.finale__sub { max-width: 30em; margin-top: clamp(24px, 4vh, 40px); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--fog); }

@media (max-width: 999px) {
  .finale { display: block; }
  .finale__still { position: relative; height: min(132vw, 760px); margin: 0 calc(-1 * var(--pad)); -webkit-mask-image: var(--feather-y); mask-image: var(--feather-y); }
  .finale__still img { object-position: 48% 52%; }
  .finale__main { margin-top: calc(-1 * min(40vw, 300px)); padding-top: 0; }
}

/* ---------- footer: the back page, the name flush to the floor ---------- */

.foot { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(56px, 6vw, 110px); }
.foot__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 20px clamp(24px, 4vw, 64px);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(28px, 3vw, 44px);
  box-sizing: content-box;
}
.foot__line { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; color: var(--bone); text-wrap: balance; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 16px; font-weight: 500; color: var(--fog); text-decoration: none; transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease); }
.foot__links a:hover { color: var(--bone); background: rgba(255, 255, 255, .07); transition-duration: var(--t-in); }
.foot__legal { justify-self: end; font-size: 16px; color: var(--fog); }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); text-decoration-color: var(--lime); text-underline-offset: 4px; }
.foot__name { padding: 0 var(--gutter); color: var(--bone); line-height: 0; }
.logo { display: block; }
.logo__eu { color: var(--ash); }
.foot .logo--big { width: 100%; height: auto; margin: 0 auto; max-width: 1840px; }

@media (max-width: 900px) {
  .posters { grid-template-columns: 1fr; gap: 40px; padding-inline: 12px; }
  .poster:nth-child(n) { grid-column: 1; margin-top: 0; }
  .foot__row { grid-template-columns: 1fr; justify-items: start; }
  .foot__legal { justify-self: start; }
}
/* five links on a phone: three and two, with the first word flush to the line above */
@media (max-width: 560px) {
  .foot__links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-left: -10px; }
}

/* ---------- phones: Bricolage's optical size sets small type about 8% wider, so every fitted line gets its own measure ---------- */

@media (max-width: 700px) {
  .trap__title { --fit: 8.95; }
  .after__title { --fit: 6.5; }
  .finale__title { font-size: min(calc(100cqi / 7.6), 140px); }
  /* the form step owns the screen on a phone: the footer stays below it */
  .finale { padding-bottom: 32svh; }
  .cta--ink, .cta--giant { white-space: normal; text-align: center; text-wrap: balance; }
  .cta--giant { font-size: clamp(30px, 8.6vw, 44px); padding: .14em .4em 0; gap: .3em; }
  .versus__row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .versus__us { grid-column: 2; }
  .versus__row--head { display: none; }
  .versus__them::before { content: "Bežná agentúra"; display: block; margin-bottom: 2px; font: 600 14px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
  .versus__us::before { content: "My"; display: block; margin-bottom: 2px; font: 700 14px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
}

/* the narrowest phones: a long action breaks onto two lines instead of leaving the page */
@media (max-width: 420px) {
  .cta:not(.cta--nav) { max-width: 100%; padding: 14px 22px; white-space: normal; text-align: center; line-height: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  .compare__press { transform: none; }
  .cta:active { transform: none; }
}
@media (prefers-contrast: more) {
  .versus__them { color: var(--fog); }
}
