@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: block;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: block;
}

:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --panel: rgba(16, 20, 28, 0.78);
  --panel-line: rgba(238, 241, 246, 0.12);
  --text: #eef1f6;
  --muted: #a3acba;
  --dim: #6f7784;
  --yellow: #f4b834;
  --yellow-soft: rgba(244, 184, 52, 0.16);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Courier New", ui-monospace, monospace;
  --lockup-h: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: var(--text);
  font-family: var(--font);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

p,
h2,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

#fit {
  position: relative;
  flex: 0 0 auto;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  background: var(--bg);
  overflow: hidden;
  transform-origin: top left;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}

.slide.is-on {
  display: block;
}

/* ---------- tło ---------- */

.wallpaper {
  position: absolute;
  inset: 0;
  background: var(--bg) url("assets/bg-16x9.webp") right bottom / cover no-repeat;
}

.wallpaper.is-dim {
  inset: -40px;
  filter: blur(10px) brightness(0.3) saturate(0.75);
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 20, 0.86) 0%, rgba(12, 15, 20, 0.62) 55%, rgba(12, 15, 20, 0.4) 100%),
    linear-gradient(180deg, rgba(12, 15, 20, 0.35) 0%, transparent 30%, rgba(12, 15, 20, 0.5) 100%);
}

.crt {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0, rgba(0, 0, 0, 0.16) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}

#stage[data-view="film-play"] .crt,
#stage[data-view="steps"] .crt {
  display: none;
}

/* ---------- nakładka VHS ---------- */

.osd {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 52px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f4f6fa;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35), 2px 0 0 rgba(255, 60, 60, 0.35), -2px 0 0 rgba(60, 200, 255, 0.3);
}

.osd[hidden] {
  display: none;
}

.osd-play {
  animation: osd-blink 2.4s steps(1) infinite;
}

@keyframes osd-blink {
  0%,
  86% {
    opacity: 1;
  }
  87%,
  100% {
    opacity: 0.25;
  }
}

/* ---------- splash ---------- */

.slide-splash {
  cursor: pointer;
}

.splash-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 38% at 50% 54%, rgba(8, 10, 14, 0.74), rgba(8, 10, 14, 0.38) 62%, transparent 100%);
}

.boot-pour {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.boot-lockup-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: calc(var(--lockup-h) * 0.11);
  width: 920px;
  min-height: 300px;
  overflow: visible;
}

.boot-intro-mark,
.boot-intro-word {
  height: var(--lockup-h);
  width: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.boot-intro-mark.is-cold {
  filter: grayscale(1) brightness(2.4) contrast(1.12);
}

.splash-kicker,
.splash-hint,
.splash-start {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.splash-kicker {
  top: calc(50% + 196px);
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.splash-start {
  top: calc(50% + 200px);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  animation: pulse 2s ease-in-out infinite;
}

.splash-hint {
  bottom: 56px;
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 0.04em;
  animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.splash-kicker[hidden],
.splash-hint[hidden],
.splash-start[hidden] {
  display: none;
}

/* ---------- wybór języka (slajd przed splashem) ---------- */

.lang-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lang-kicker {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

.lang-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lang-choices {
  display: flex;
  gap: 56px;
}

.lang-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 380px;
  height: 240px;
  padding: 0;
  border: 2px solid var(--panel-line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-choice.is-focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 8px rgba(244, 184, 52, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.lang-code {
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  line-height: 1;
}

.lang-name {
  font-size: 36px;
  font-weight: 700;
}

.lang-hint {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- laser (kopia klas panelu; warstwa poza skalowaną sceną) ---------- */

.laser-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.boot-laser-fx,
.boot-laser-marks,
.boot-laser-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.boot-laser-fx {
  z-index: 6;
}

.boot-laser-glow {
  mix-blend-mode: screen;
}

.boot-laser-mark-layer {
  position: absolute;
  margin: 0;
  object-fit: contain;
  opacity: 0;
  will-change: opacity;
}

.boot-laser-beam,
.boot-laser-head,
.boot-laser-bloom {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
}

.boot-laser-beam {
  height: 16px;
  margin-top: -8px;
  transform-origin: 0 50%;
  border-radius: 8px;
  background:
    linear-gradient(to bottom, transparent 7.3px, rgba(255, 255, 255, 0.95) 7.3px, rgba(255, 255, 255, 0.95) 8.7px, transparent 8.7px),
    linear-gradient(to bottom, transparent 6.3px, rgba(255, 236, 90, 0.95) 6.3px, rgba(255, 236, 90, 0.95) 9.7px, transparent 9.7px),
    linear-gradient(to bottom, transparent 4.75px, rgba(255, 220, 50, 0.55) 4.75px, rgba(255, 220, 50, 0.55) 11.25px, transparent 11.25px),
    rgba(255, 210, 40, 0.18);
}

.boot-laser-head {
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 240, 0.95), rgba(255, 214, 32, 0.7) 35%, rgba(255, 200, 40, 0));
}

.boot-laser-bloom {
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 230, 0.62), rgba(255, 210, 40, 0.3) 35%, rgba(255, 200, 40, 0));
}

/* ---------- typografia wspólna ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
}

.kicker::before {
  content: "";
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: var(--yellow);
}

.title {
  margin-top: 22px;
  max-width: 1500px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.card-name,
.film-line,
.tl-what,
.card-text,
.hero-cap {
  text-wrap: balance;
}

.lede {
  margin-top: 24px;
  max-width: 1300px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.source {
  position: absolute;
  left: 140px;
  right: 200px;
  bottom: 60px;
  z-index: 3;
  font-size: 21px;
  line-height: 1.4;
  color: var(--dim);
}

.stamp {
  position: absolute;
  right: 64px;
  bottom: 52px;
  z-index: 3;
  width: 80px;
  height: 80px;
}

.banner {
  align-self: flex-start;
  padding: 22px 36px;
  border-left: 6px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: var(--yellow-soft);
  font-size: 34px;
  font-weight: 600;
}

.banner strong {
  font-weight: 800;
  color: var(--yellow);
}

/* ---------- slajd treści ---------- */

.content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  padding: 150px 140px 140px;
}

.content.is-dense {
  gap: 44px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 44px 48px;
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.card-tag {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.card-num {
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.card-no {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 700;
  color: var(--yellow);
}

.card-name {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
}

.card-text {
  font-size: 29px;
  line-height: 1.42;
  color: var(--muted);
}

.card.is-muted {
  background: rgba(16, 20, 28, 0.55);
}

.cards {
  display: grid;
  gap: 32px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* pipeline */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 30px 32px;
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  background: var(--panel);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 64px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-top: 5px solid var(--yellow);
  border-right: 5px solid var(--yellow);
  transform: rotate(45deg);
}

.step-no {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--yellow);
}

.step-name {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.step-engine {
  align-self: flex-start;
  padding: 6px 16px;
  border: 1px solid rgba(244, 184, 52, 0.6);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
}

.step-text {
  flex: 1;
  font-size: 25px;
  line-height: 1.4;
  color: var(--muted);
}

.step-time {
  padding-top: 14px;
  border-top: 1px solid var(--panel-line);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
}

.step.is-queued .step-time {
  color: var(--yellow);
}

.step-load {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yellow);
}

.pipeline-foot {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 60px;
}

.pipeline-foot .banner {
  flex: none;
}

.pipeline-note {
  flex: 1;
  font-size: 25px;
  line-height: 1.45;
  color: var(--muted);
}

/* czas */

.bars {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.bar-row {
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: 40px;
}

.bar-label {
  font-size: 32px;
  font-weight: 600;
}

.track {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 84px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  border-radius: 12px;
  background: var(--yellow);
}

.bar.is-full {
  flex: 1;
  padding-right: 32px;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
}

.bar.is-grey {
  background: linear-gradient(90deg, rgba(160, 170, 186, 0.28), rgba(160, 170, 186, 0.5));
  color: var(--text);
}

.bar.is-tiny {
  width: 18px;
  flex: 0 0 auto;
  box-shadow: 0 0 24px rgba(244, 184, 52, 0.6);
}

.bar.is-thin {
  width: 8px;
}

.bar-val {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
}

.bar-val.is-hot {
  font-size: 52px;
  color: var(--yellow);
}

.slide.is-on .bar.is-full {
  transform-origin: left center;
  animation: grow 1.2s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* koszt */

.cost {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 80px;
  align-items: center;
}

.hero-num {
  font-size: 156px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--yellow);
}

.hero-cap {
  margin-top: 22px;
  font-size: 31px;
  line-height: 1.35;
}

.cost-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 44px;
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  background: var(--panel);
}

.cost-row {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--panel-line);
}

.cost-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cost-name {
  font-size: 29px;
  font-weight: 700;
}

.cost-name span {
  margin-left: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--dim);
}

.cost-amount {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
}

.cost-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: var(--yellow);
}

.cost-head {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.cost-row.is-ref .cost-amount {
  color: var(--dim);
}

.cost-row.is-ref .cost-bar {
  background: rgba(160, 170, 186, 0.5);
}

.cost-row.is-hot .cost-name,
.cost-row.is-hot .cost-amount {
  color: var(--yellow);
}

.cost-row.is-hot .cost-amount {
  font-size: 40px;
}

.cost-row.is-hot .cost-bar {
  box-shadow: 0 0 18px rgba(244, 184, 52, 0.6);
}

.cost-bar.is-w100 {
  width: 100%;
}

.cost-bar.is-w34 {
  width: 34%;
}

.cost-bar.is-w22 {
  width: 22%;
}

.cost-bar.is-w12 {
  width: 12%;
}

/* skala */

.fan {
  display: grid;
  grid-template-columns: 420px 200px 1fr;
  align-items: center;
  gap: 28px;
}

.fan-source {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 44px;
  border: 1px solid rgba(244, 184, 52, 0.6);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(244, 184, 52, 0.2), var(--panel) 65%);
}

.fan-num {
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fan-arrow {
  position: relative;
  padding-right: 40px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--yellow);
}

.fan-arrow::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-top: 5px solid var(--yellow);
  border-right: 5px solid var(--yellow);
  transform: rotate(45deg);
}

.fan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.fan-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* plan */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 46px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 13px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow), rgba(244, 184, 52, 0.25));
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -46px;
  width: 30px;
  height: 30px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  background: var(--bg);
}

.timeline li.is-now::before {
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(244, 184, 52, 0.8);
}

.tl-when {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.tl-what {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.slide[data-slide="plan"] .content {
  gap: 52px;
}

.slide[data-slide="plan"] .card {
  padding: 32px 40px;
  gap: 12px;
}

/* ---------- filmy ---------- */

.slide-film {
  background: #000;
}

.film-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.film-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 80px;
  text-align: center;
}

.film-line {
  max-width: 1500px;
  font-size: 96px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.film-sub {
  font-size: 36px;
  color: var(--muted);
}

.film-credit {
  margin-top: 18px;
  padding: 14px 30px;
  border: 1px solid rgba(244, 184, 52, 0.55);
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.film-credit strong {
  font-weight: 800;
  color: var(--yellow);
}

.film-missing {
  margin-top: 24px;
  padding: 14px 26px;
  border: 1px dashed rgba(238, 241, 246, 0.35);
  border-radius: 12px;
  color: var(--muted);
  font-size: 26px;
}

.film-missing[hidden] {
  display: none;
}

.film-missing code {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95em;
}

.slide-film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* filmy krok po kroku: każda strzałka uruchamia kolejny [data-step] */

.steps {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  padding: 140px 90px 90px;
}

.steps .title {
  font-size: 72px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  transition: opacity 0.5s ease;
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.tile-name {
  font-size: 44px;
  font-weight: 800;
}

.tile.is-ours .tile-name {
  color: var(--yellow);
}

.tile-note {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tile-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--panel-line);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tile-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-frame .film-missing {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tile-cue {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 22px;
  border: 1px solid rgba(244, 184, 52, 0.6);
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.72);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile[data-state="waiting"] {
  opacity: 0.55;
}

.tile[data-next="yes"] .tile-cue {
  opacity: 1;
}

.tile[data-state="paused"] .tile-frame {
  border-color: rgba(244, 184, 52, 0.45);
}

.tile[data-state="playing"] .tile-frame {
  border-color: var(--yellow);
  box-shadow: 0 0 0 6px rgba(244, 184, 52, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tile[data-state="done"] {
  opacity: 0.8;
}

/* pasek przewijania filmu (js/videoScrub.js): widoczny tylko pod ruszającym się kursorem, bez przejść */

.scrub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 22px;
  padding: 56px 56px 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.has-scrub:hover[data-pointer="active"] > video[data-ready="yes"]:not([hidden]) + .scrub,
.scrub[data-drag="yes"] {
  display: flex;
}

.scrub-time {
  min-width: 4.6ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.scrub-track {
  position: relative;
  flex: 1;
  height: 40px;
  cursor: pointer;
  touch-action: none;
}

.scrub-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(238, 241, 246, 0.28);
}

.scrub-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
}

.scrub-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(244, 184, 52, 0.25);
}

.scrub-track:hover .scrub-rail,
.scrub[data-drag="yes"] .scrub-rail {
  height: 12px;
  margin-top: -6px;
}

.tile-frame > .scrub {
  gap: 14px;
  padding: 36px 24px 14px;
  font-size: 20px;
}

.tile-frame > .scrub .scrub-track {
  height: 32px;
}

.has-scrub:hover[data-pointer="active"] > .tile-cue {
  opacity: 0;
  transition: none;
}

/* napisy (js/subtitles.js): warstwa strony nad filmem; podnoszą się, gdy widać pasek przewijania */

.subs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0 160px;
  pointer-events: none;
}

.subs[hidden] {
  display: none;
}

.subs-text {
  display: inline-block;
  max-width: 1400px;
  padding: 10px 26px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.has-scrub:hover[data-pointer="active"] > .subs {
  bottom: 136px;
}

.tile-frame > .subs {
  bottom: 18px;
  padding: 0 24px;
}

.tile-frame > .subs .subs-text {
  padding: 5px 14px 6px;
  border-radius: 8px;
  font-size: 24px;
}

.tile-frame.has-scrub:hover[data-pointer="active"] > .subs {
  bottom: 86px;
}

.subs-toast {
  position: absolute;
  right: 72px;
  bottom: 52px;
  z-index: 26;
  padding: 8px 18px;
  border: 1px solid rgba(244, 184, 52, 0.6);
  border-radius: 10px;
  background: rgba(12, 15, 20, 0.8);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  pointer-events: none;
}

.subs-toast[hidden] {
  display: none;
}

/* ---------- zakończenie ---------- */

.end-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 20, 0.95) 0%, rgba(12, 15, 20, 0.85) 42%, rgba(12, 15, 20, 0.2) 70%, transparent 100%);
}

.end-copy {
  position: absolute;
  left: 140px;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 980px;
}

.end-lockup {
  display: flex;
  align-items: center;
  gap: calc(120px * 0.11);
  margin-bottom: 64px;
}

.end-lockup img {
  height: 120px;
  width: auto;
}

.end-copy .title {
  font-size: 110px;
}

.end-thanks {
  margin-top: 64px;
  font-size: 40px;
  font-weight: 700;
}

.end-credit {
  position: absolute;
  left: 140px;
  bottom: 60px;
  z-index: 3;
  font-size: 24px;
  line-height: 1.4;
  color: var(--muted);
}

.end-credit strong {
  font-weight: 700;
  color: var(--text);
}

/* ---------- wejście treści ---------- */

.slide.is-on .reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.slide.is-on .reveal:nth-child(2) {
  animation-delay: 0.14s;
}

.slide.is-on .reveal:nth-child(3) {
  animation-delay: 0.28s;
}

.slide.is-on .reveal:nth-child(4) {
  animation-delay: 0.42s;
}

.slide.is-on .cards > *,
.slide.is-on .pipeline > *,
.slide.is-on .timeline > *,
.slide.is-on .fan-grid > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.slide.is-on .cards > :nth-child(2),
.slide.is-on .pipeline > :nth-child(2),
.slide.is-on .timeline > :nth-child(2),
.slide.is-on .fan-grid > :nth-child(2) {
  animation-delay: 0.22s;
}

.slide.is-on .cards > :nth-child(3),
.slide.is-on .pipeline > :nth-child(3),
.slide.is-on .timeline > :nth-child(3),
.slide.is-on .fan-grid > :nth-child(3) {
  animation-delay: 0.3s;
}

.slide.is-on .cards > :nth-child(4),
.slide.is-on .pipeline > :nth-child(4),
.slide.is-on .timeline > :nth-child(4),
.slide.is-on .fan-grid > :nth-child(4) {
  animation-delay: 0.38s;
}

.slide.is-on .cards > :nth-child(5),
.slide.is-on .pipeline > :nth-child(5),
.slide.is-on .fan-grid > :nth-child(5) {
  animation-delay: 0.46s;
}

.slide.is-on .fan-grid > :nth-child(n + 6) {
  animation-delay: 0.54s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

#boot-laser-sfx {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
