/* The postcard that opens the home page (config "intro_live", owner 22.11.2026, answer 1Б; the study and its numbers:
   reports/zespolo-launch-2026-11-20/18-intro-popup/). static/intro-pick.js decides in <head> and marks
   html[data-intro="pending"]: the cork veil covers the page from the first frame, the page is drawn whole under it.
   static/intro.js then sets data-intro="run", opens the card over the veil, flies its front card (the sticker) into
   its own place, fades the veil and removes the mark; "leave" is the way out without the card. Without the mark
   nothing here shows and the wrapper .hero__card is only a box around the sticker. Colours are the site's tokens,
   times static/motion.css. */

/* The veil: the hero's own board, over everything but the card; its cork starts where the hero's does. */
.intro-veil { display: none; }
html[data-intro] .intro-veil { display: block; position: fixed; inset: 0; z-index: 40; background: var(--cork) url("img/cork.webp?v=4523226085") repeat; background-size: 420px 420px; background-position: 0 var(--top-h, 0px); }
/* A script that never came (blocked, broken): the veil goes by itself after 2.6 s, as a fade. */
html[data-intro="pending"] .intro-veil { animation: intro-failsafe var(--duration-slow) var(--ease-in-out) 2.6s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
/* While it plays a pull on a phone does not reload the page under it. */
html[data-intro] { overscroll-behavior: none; }

/* The card: the sticker's box (the sticker is its front card) and a layer of paper pieces over that box. On a phone
   the box takes the sticker's place in the hero's order (site.css gives the sticker order 2). */
.hero__card { position: relative; }
@media (max-width: 699px) { .hero__card { order: 2; } }
.pc { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.pc > div { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html[data-intro] .hero__card { z-index: 41; }
html[data-intro="pending"] .hero__card { visibility: hidden; }
html[data-intro="leave"] .hero__card { z-index: auto; }
html[data-intro="leave"] .pc { display: none; }
html[data-intro="run"] .pc > div { will-change: transform, opacity; }
/* the sticker over the rows, the cover over the sticker while it lies closed on it */
html[data-intro="run"] .hero__sticker { position: relative; z-index: 2; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
html[data-intro="run"] .pc__cover { z-index: 3; }
/* What is pinned on the sticker (the clock, the note, "Zobacz film") stays over it on the veil too, and arrives as the
   card lands (static/intro.js): under the veil they would jump in front of the sticker the moment the card has gone. */
html[data-intro="run"] .hero__stage .clock, html[data-intro="run"] .hero__note, html[data-intro="run"] .hero-film { z-index: 42; }
/* While it plays nothing on it takes a click (an arrow, the film): a click anywhere only hurries the card. */
html[data-intro] .hero__card, html[data-intro] .hero__stage .clock, html[data-intro] .hero__note, html[data-intro] .hero-film { pointer-events: none; }

/* The inside of both pages: the films' end-card mint, a crease along the fold, the print templates' dashed fold line. */
.pc__page { container-type: inline-size; background: var(--mint); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(var(--mint-shadow-rgb), .10); overflow: hidden; }
.pc__crease { position: absolute; left: 0; right: 0; height: 22%; pointer-events: none; }
.pc__page--near .pc__crease { top: 0; background: linear-gradient(rgba(var(--mint-shadow-rgb), .20), rgba(var(--mint-shadow-rgb), 0)); }
.pc__page--far .pc__crease { bottom: 0; background: linear-gradient(rgba(var(--mint-shadow-rgb), 0), rgba(var(--mint-shadow-rgb), .22)); }
.pc__page::before { content: ""; position: absolute; left: 6%; right: 6%; height: 0; border-top: 2px dashed rgba(var(--mint-shadow-rgb), .28); }
.pc__page--near::before { top: 3px; }
.pc__page--far::before { bottom: 3px; }
/* The lid's inside is drawn even while it faces away (the cover lies exactly over it then): hidden, the browser first
   drew it the moment it turned to the camera, and the card dropped 1-2 frames there, 0.28 s in (23.11.2026). */
.pc > .pc__page--far { backface-visibility: visible; -webkit-backface-visibility: visible; }
.pc__print { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 800 clamp(12px, 2.4cqw, 22px)/1 var(--display); color: var(--teal-btn); letter-spacing: -0.01em; }
/* The lid darkens while it stands: the light is from above. */
.pc__shade { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: 0; pointer-events: none; }

/* The paper tabs the rows stand on: teal strips folded down the middle, the back row a shade deeper. */
.pc__tab { background: linear-gradient(90deg, var(--teal-btn) 0 50%, var(--deep) 50% 100%); border-radius: 2px 2px 1px 1px; }
.pc__tab--2 { background: linear-gradient(90deg, var(--deep) 0 50%, var(--deep-2) 50% 100%); }
/* The rows' cards: white-rimmed stickers like the hero's, each the still of one of the next loops. */
.pc__card { background: var(--white); padding: 4px; border-radius: 10px; box-shadow: 0 1px 0 rgba(var(--black-rgb), .05), 0 10px 16px -10px rgba(var(--cork-shadow-rgb), .55); }
.pc__card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
/* A soft contact shadow under each row on the far page. */
.pc__shadow { background: radial-gradient(50% 50% at 50% 60%, rgba(var(--mint-shadow-rgb), .55), rgba(var(--mint-shadow-rgb), 0) 70%); }

/* The cover, as the printed card: cream paper, a teal rim, the name in the films' lettering. */
.pc__cover { container-type: inline-size; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 3px var(--teal-btn), 0 18px 26px -18px rgba(var(--cork-shadow-rgb), .7); }
.pc__cover-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4cqw; text-align: center; }
.pc__brand { font: 800 15cqw/1 var(--display); letter-spacing: -0.02em; color: var(--teal-btn); }
.pc__hello { font: 700 5.6cqw/1.1 var(--text); color: var(--ink); }
.pc__slow { font: 500 3.6cqw/1 var(--text); color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .intro-veil, .pc { display: none !important; }
  html[data-intro] .hero__card { visibility: visible; }
}
