/* ============================================================
   Ultribea · 34-calm-dot
   The dot-journey protagonist (one fixed cyan dot travelling
   between per-scene waypoints, single rAF loop) re-toned into
   the golden-hour world: warm cream + ink, one cool brand accent
   (cyan) that warms to gold at the win. Editorial serif (Fraunces)
   headlines, calmer cadence. Scenes are pinned (sticky) and expose
   --p (0..1) so CSS scrubs discrete steps ([data-at] -> .is-on)
   and continuous motion (calc on --p). Transforms + opacity only.
   ============================================================ */

/* ------------------------------ tokens ------------------------------ */

:root {
  --sand: #f3e8d6;
  --cream: #faf3e6;
  --cream-soft: #f6ecda;
  --card: #fdf8ee;
  --dusk: #14161f;
  --ink: #28231c;
  --ink-soft: #6d6354;
  --ink-faint: #a59883;
  --ink-cream: #fbf4e8;
  --ink-cream-soft: #e8d8be;
  --cyan: #1796ad;
  --cyan-bright: #2bb6cf;
  --gold: #c98a3c;
  --gold-bright: #e0a856;
  --green: #5a8a4a;
  --green-deep: #4a7a3c;
  --amber: #c5882d;
  --amber-deep: #a06f1f;
  --red: #c0563f;
  --hairline: rgba(40, 35, 28, 0.1);
  --hairline-cream: rgba(251, 244, 232, 0.16);
  --glass-bg: rgba(250, 243, 230, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.55);
  --shadow-panel:
    0 1px 2px rgba(60, 44, 22, 0.05),
    0 12px 30px rgba(60, 44, 22, 0.12),
    0 44px 90px rgba(40, 28, 12, 0.13);
  --shadow-card: 0 1px 2px rgba(60, 44, 22, 0.05), 0 8px 22px rgba(60, 44, 22, 0.1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --r-panel: 18px;
  --r-card: 13px;
  --content-w: 72rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --p: 0;
}

/* ------------------------------ reset ------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(43, 182, 207, 0.26);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------ skip link ------------------------------ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--ink-cream);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------ the protagonist ------------------------------ */

.dot-layer {
  display: none;
}

html.js .dot-layer {
  display: block;
}

.dot,
.dot-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
}

.dot {
  --dc: #2bb6cf;
  will-change: transform, opacity;
}

.dot__core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--dc) 45%, #ffffff) 0%, var(--dc) 60%);
  box-shadow:
    0 0 11px color-mix(in srgb, var(--dc) 60%, transparent),
    0 0 36px color-mix(in srgb, var(--dc) 30%, transparent);
}

.dot-ghost {
  border-radius: 50%;
  background: var(--cyan-bright);
  z-index: 89;
  will-change: transform, opacity;
}

/* sockets: landing pads the dot docks into; filled when JS is off
   or motion is reduced, so the story stays readable statically */

.socket {
  --sc: var(--cyan);
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--sc) 42%, transparent);
  background: transparent;
}

html:not(.js) .socket,
html.reduced .socket {
  background: var(--sc);
  border-color: var(--sc);
}

.anchor {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  visibility: hidden;
}

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 44px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* --mx/--my fed by the magnetic pointer module (max 6px) */
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--ink);
  color: var(--ink-cream);
  box-shadow: 0 6px 22px rgba(40, 28, 12, 0.26);
}

.btn--primary:hover {
  background: #3a332a;
  box-shadow: 0 10px 30px rgba(40, 28, 12, 0.36);
}

.btn--ghost {
  background: rgba(40, 35, 28, 0.06);
  color: var(--ink);
  border: 1px solid rgba(40, 35, 28, 0.12);
}

.btn--ghost:hover {
  background: rgba(40, 35, 28, 0.1);
}

.btn--small {
  min-height: 0;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
  background: var(--ink);
  color: var(--ink-cream);
}

.btn--small:hover {
  background: #3a332a;
}

.btn--big {
  padding: 1.1rem 2.4rem;
  font-size: 1.2rem;
}

/* ------------------------------ header ------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(243, 232, 214, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}

.site-header__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.brand__signet {
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--ink);
}

/* mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  margin-left: 0.25rem;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}

/* ------------------------------ read progress ------------------------------ */

.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
  background: rgba(40, 35, 28, 0.07);
}

.read-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ------------------------------ scene scaffolding ------------------------------ */

.scene {
  position: relative;
}

.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene--hero { height: 140vh; }
.scene--pulpit { height: 430vh; }
.scene--matrix { height: 500vh; }
.scene--radar { height: 430vh; }
.scene--verdict { height: 380vh; }
.scene--team { height: 440vh; }
.scene--finale { height: 280vh; }

[data-at] {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

[data-at].is-on {
  opacity: 1;
}

.stage-head {
  width: 100%;
}

.stage-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* chapter slug, the calm-film motif borrowed from golden-hour */

.scene-slug {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transform: translateY(14px);
}

.scene-slug::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 9px rgba(43, 182, 207, 0.6);
}

.scene-slug.is-on {
  transform: translateY(0);
}

.scene-slug--center {
  justify-content: center;
}

.scene-slug--light {
  color: var(--ink-cream-soft);
}

.scene-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.1vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.07;
  margin-top: 1rem;
  transform: translateY(24px);
}

.scene-title.is-on {
  transform: translateY(0);
}

.scene-title--light {
  color: var(--ink-cream);
  text-shadow: 0 2px 24px rgba(10, 12, 20, 0.55);
}

.scene-title--center {
  text-align: center;
}

.scene-sub {
  margin-top: 1.3rem;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 450;
  transform: translateY(20px);
  transition-delay: 0.08s;
}

.scene-sub.is-on {
  transform: translateY(0);
}

.scene-sub--light {
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 14px rgba(10, 12, 20, 0.6);
}

.scene-sub--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ------------------------------ warm frosted glass cards ------------------------------ */

.glass {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: var(--shadow-panel);
}

/* one-shot specular sweep when the card materializes */

.glass::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 34%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-16deg);
  pointer-events: none;
  z-index: 3;
}

.glass.is-on::after {
  transform: translateX(420%) skewX(-16deg);
  transition: transform 1.8s ease 0.5s;
}

/* ------------------------------ photographic plates ------------------------------ */
/* full-bleed warm photos behind each scene; the dot (fixed, z90) floats
   over them, glass cards frost the photo, scrims keep copy AA-readable */

.scene-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.scene-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* gentle fade-from-sand as each scene starts playing */

.scene-veil {
  position: absolute;
  inset: 0;
  background: var(--sand);
  opacity: calc(0.72 - var(--p) * 3.2);
  pointer-events: none;
}

/* scrims: gradients (not boxes) that hold copy legible over warm photos */

.scene-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-scrim--hero {
  background:
    radial-gradient(58rem 40rem at 50% 54%, rgba(24, 17, 8, 0.46) 0%, rgba(24, 17, 8, 0) 64%),
    linear-gradient(180deg, rgba(24, 17, 8, 0.4) 0%, rgba(24, 17, 8, 0) 26%, rgba(24, 17, 8, 0) 56%, rgba(24, 17, 8, 0.56) 100%);
}

.scene-scrim--soft {
  background:
    radial-gradient(62rem 42rem at 50% 48%, rgba(24, 17, 8, 0.52) 0%, rgba(24, 17, 8, 0.12) 60%, rgba(24, 17, 8, 0) 100%),
    linear-gradient(180deg, rgba(24, 17, 8, 0.5) 0%, rgba(24, 17, 8, 0.1) 24%, rgba(24, 17, 8, 0.1) 72%, rgba(24, 17, 8, 0.5) 100%);
}

.scene-scrim--top {
  background:
    radial-gradient(64rem 44rem at 50% 40%, rgba(24, 17, 8, 0.52) 0%, rgba(24, 17, 8, 0.18) 56%, rgba(24, 17, 8, 0) 100%),
    linear-gradient(180deg, rgba(24, 17, 8, 0.66) 0%, rgba(24, 17, 8, 0.12) 30%, rgba(24, 17, 8, 0) 56%, rgba(24, 17, 8, 0.5) 100%);
}

.scene-scrim--center {
  background:
    radial-gradient(56rem 40rem at 50% 50%, rgba(12, 14, 22, 0.66) 0%, rgba(12, 14, 22, 0.24) 58%, rgba(12, 14, 22, 0) 100%),
    linear-gradient(180deg, rgba(12, 14, 22, 0.5) 0%, rgba(12, 14, 22, 0) 30%, rgba(12, 14, 22, 0) 64%, rgba(12, 14, 22, 0.56) 100%);
}

.scene-scrim--dusk {
  background:
    radial-gradient(70rem 46rem at 50% 46%, rgba(20, 14, 6, 0.42) 0%, rgba(20, 14, 6, 0) 72%),
    linear-gradient(180deg, rgba(20, 14, 6, 0.36) 0%, rgba(20, 14, 6, 0) 26%, rgba(20, 14, 6, 0) 54%, rgba(18, 18, 30, 0.66) 100%);
}

/* soft warm bloom / light-leak overlays (opacity only) */

.bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bloom--hero {
  background:
    radial-gradient(34rem 24rem at 80% 30%, rgba(255, 196, 120, 0.3) 0%, rgba(255, 196, 120, 0) 64%),
    radial-gradient(48rem 30rem at 88% 42%, rgba(232, 150, 80, 0.16) 0%, rgba(232, 150, 80, 0) 70%);
  animation: bloom-breathe 9s ease-in-out infinite alternate;
}

.bloom--dusk {
  background: radial-gradient(34rem 22rem at 86% 56%, rgba(255, 184, 110, 0.32) 0%, rgba(255, 184, 110, 0) 64%);
  animation: bloom-breathe 10s ease-in-out infinite alternate;
}

@keyframes bloom-breathe {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

/* ============================================================
   SCENE 1 · HERO + warm dot field
   ============================================================ */

.scene--hero .scene__sticky {
  background: var(--sand);
  flex-direction: column;
  padding-bottom: 2.2rem;
}

/* scroll-scrubbed Ken Burns: starts pushed in, settles wide */

.hero-img {
  object-position: 50% 46%;
  transform: scale(calc(1.12 - var(--p) * 0.1));
}

.dot-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* the BZP noise reads as warm dust motes drifting in the golden light */

.fdot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 240, 214, 0.92);
  box-shadow: 0 0 6px rgba(255, 222, 165, 0.55);
  transform: translate3d(calc(var(--p) * var(--sx)), calc(var(--p) * var(--sy)), 0);
  opacity: calc(var(--o) * (1 - var(--p) * 1.7));
}

.socket--hero {
  --sc: var(--cyan-bright);
  position: absolute;
  left: 84%;
  top: 58%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  z-index: 1;
  opacity: calc(1 - var(--p) * 2.4);
}

.socket--hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(43, 182, 207, 0.55);
  animation: hero-pulse 2.9s var(--ease-out) infinite;
}

@keyframes hero-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.anchor--hero-mid {
  position: absolute;
  left: 50%;
  top: 62%;
  margin: -8px 0 0 -8px;
}

.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 64rem;
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(calc(var(--p) * -44px));
  opacity: calc(1 - var(--p) * 1.5);
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-cream);
  text-shadow: 0 1px 12px rgba(16, 12, 6, 0.7);
  transform: translateY(18px);
  transition-duration: 0.9s;
}

.hero__eyebrow.is-on {
  transform: translateY(0);
}

.hero__title {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink-cream);
  text-shadow: 0 4px 38px rgba(16, 12, 6, 0.5);
  transform: translateY(28px) scale(0.99);
  transition-duration: 1s;
}

.hero__title.is-on {
  transform: translateY(0) scale(1);
}

.hero__sub {
  margin: 1.6rem auto 0;
  max-width: 39rem;
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 16px rgba(16, 12, 6, 0.78);
  transform: translateY(24px);
  transition-duration: 1s;
  transition-delay: 0.12s;
}

.hero__sub.is-on {
  transform: translateY(0);
}

.hero__actions {
  margin-top: 2.3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  transform: translateY(20px);
  transition-duration: 1s;
  transition-delay: 0.22s;
}

.hero__actions.is-on {
  transform: translateY(0);
}

.hero__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  opacity: calc(1 - var(--p) * 6);
}

@media (max-height: 800px) {
  .hero__hint { display: none; }
  .scene--hero .scene__sticky { padding-bottom: 0; }
}

.hero__hint {
  position: relative;
  z-index: 2;
}

.hero__hint-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 10px rgba(16, 12, 6, 0.9);
}

.hero__hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(251, 244, 232, 0.6), transparent);
  overflow: hidden;
  position: relative;
}

.hero__hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan-bright);
  transform: translateY(-100%);
  animation: hint-drip 2.8s var(--ease-out) infinite;
}

@keyframes hint-drip {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   SCENE 2 · PULPIT
   ============================================================ */

.scene--pulpit .scene__sticky {
  background: var(--cream);
  flex-direction: column;
  padding: 5.5rem 1.5rem 2.5rem;
}

.desk-img {
  object-position: 60% 50%;
  transform: scale(calc(1.05 + var(--p) * 0.08));
}

.pulpit-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.pulpit-stage .stage-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* copy sits on the warm photo: light ink + scrim-friendly shadows */
.pulpit-stage .scene-slug { color: var(--ink-cream-soft); }

.pulpit-stage .scene-title {
  color: var(--ink-cream);
  text-shadow: 0 2px 22px rgba(16, 12, 6, 0.6);
}

.pulpit-stage .scene-sub {
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 14px rgba(16, 12, 6, 0.75);
}

.pulpit-stats {
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 14px rgba(16, 12, 6, 0.8);
}

.pulpit-stage .pulpit-stats__num {
  color: var(--ink-cream);
}

.pulpit-stage .pulpit-stats__num--cyan {
  color: var(--cyan-bright);
}

.panel {
  width: 100%;
  overflow: hidden;
  transition: opacity 0.9s var(--ease-out);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.32);
}

.panel__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.panel__date {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  transition: opacity 0.6s var(--ease-out);
}

.row + .row {
  border-top: 1px solid var(--hairline);
}

.row__hl {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background: rgba(43, 182, 207, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(23, 150, 173, 0.38);
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.socket--row {
  position: relative;
  z-index: 1;
}

.row__pad {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(40, 35, 28, 0.09);
}

.row__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.row__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.row__title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__tag {
  flex: none;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
  transform: scale(0.7);
}

.row__tag.is-on {
  transform: scale(1);
}

.row__meta {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.row__fit {
  position: relative;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.row__fit--high { color: var(--green); }
.row__fit--mid { color: var(--amber); }
.row__fit--low { color: var(--ink-faint); }

.row--hero .row__fit--high { color: var(--cyan); font-size: 1.3rem; }

.pulpit-stats {
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--ink-soft);
  font-weight: 500;
  transform: translateY(16px);
}

.pulpit-stats.is-on {
  transform: translateY(0);
}

.pulpit-stats__num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pulpit-stats__num--cyan {
  color: var(--cyan);
}

/* ============================================================
   SCENE 3 · FIT-MATRIX
   ============================================================ */

.scene--matrix {
  /* reveal progress: order spreads across the frame between 10% and 64% */
  --pw: clamp(0, calc((var(--p) - 0.1) / 0.54), 1);
}

.scene--matrix .scene__sticky {
  background: var(--cream);
  flex-direction: column;
  padding: 5.5rem 1.5rem 3rem;
}

.papers__img {
  object-position: 50% 50%;
  transform: scale(calc(1.07 - var(--p) * 0.05));
}

.papers__img--chaos {
  filter: grayscale(0.8) brightness(0.6) contrast(1.02);
}

/* the warm, organized version sweeps in from the right (= the system tidying up) */

.papers__img--order {
  clip-path: inset(0 0 0 calc((1 - var(--pw)) * 100%));
  will-change: clip-path;
}

.papers__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(43, 182, 207, 0), rgba(43, 182, 207, 0.9) 30%, rgba(43, 182, 207, 0.9) 70%, rgba(43, 182, 207, 0));
  box-shadow: 0 0 24px 6px rgba(43, 182, 207, 0.45);
  transform: translateX(calc(var(--pw) * 100vw));
  opacity: clamp(0, calc(var(--pw) * 140 * (1 - var(--pw))), 1);
  will-change: transform, opacity;
}

.matrix-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
}

.matrix-stage .stage-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* header copy rides on the photo */
.matrix-stage .scene-slug { color: var(--ink-cream-soft); }

.matrix-stage .scene-title {
  color: var(--ink-cream);
  text-shadow: 0 2px 22px rgba(16, 12, 6, 0.62);
}

.matrix-stage .scene-sub {
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 14px rgba(16, 12, 6, 0.75);
}

.matrix-stage .matrix-sum__label {
  color: var(--ink-cream);
  text-shadow: 0 1px 14px rgba(16, 12, 6, 0.7);
}

.matrix {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem;
}

.m-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.m-row__scan {
  position: absolute;
  inset: -5px -7px;
  border-radius: 12px;
  background: rgba(43, 182, 207, 0.07);
  box-shadow: inset 0 0 0 1.5px rgba(23, 150, 173, 0.3);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.m-corner,
.m-col {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.45rem 0.4rem;
  text-align: center;
  transform: translateY(-10px);
}

.m-col {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  align-self: center;
}

.m-corner {
  text-align: left;
}

.m-corner.is-on,
.m-col.is-on {
  transform: translateY(0);
}

.m-req {
  display: flex;
  align-items: center;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 550;
  padding: 0.5rem 0.4rem;
  color: var(--ink);
  transform: translateX(-14px);
}

.m-req.is-on {
  transform: translateX(0);
}

.m-cell {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transform: scale(0.5);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-spring);
}

.m-cell.is-on {
  transform: scale(1);
}

.m-cell--ok { background: rgba(90, 138, 74, 0.16); border-color: rgba(90, 138, 74, 0.3); color: var(--green-deep); }
.m-cell--warn { background: rgba(197, 136, 45, 0.16); border-color: rgba(197, 136, 45, 0.32); color: var(--amber-deep); }
.m-cell--miss { background: rgba(192, 86, 63, 0.14); border-color: rgba(192, 86, 63, 0.32); color: var(--red); }

.m-mark {
  font-size: 1.05rem;
  font-weight: 750;
}

.matrix-sum {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  transform: translateY(24px);
  transition-duration: 0.8s;
}

.matrix-sum.is-on {
  transform: translateY(0);
}

.anchor--sum {
  align-self: center;
}

.matrix-sum__badge {
  align-self: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(23, 150, 173, 0.14);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.matrix-sum__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.matrix-sum__label {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

/* ============================================================
   SCENE 4 · RADAR (calm dusk)
   ============================================================ */

.scene--radar .scene__sticky {
  background:
    radial-gradient(72rem 46rem at 50% 118%, rgba(43, 182, 207, 0.12) 0%, rgba(43, 182, 207, 0) 60%),
    var(--dusk);
  flex-direction: column;
  padding: 5.5rem 1.5rem 3rem;
}

.radar-stage {
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.radar-stage .scene-sub {
  max-width: 44rem;
}

.radar-accent {
  color: var(--cyan-bright);
}

.radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 54rem;
}

.radar {
  position: relative;
  width: min(20rem, 44vh, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
}

.radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hairline-cream);
}

.radar__ring--1 { inset: 0; border-color: rgba(251, 244, 232, 0.18); }
.radar__ring--2 { inset: 17%; }
.radar__ring--3 { inset: 34%; }

.radar__cross {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(251, 244, 232, 0.1) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(251, 244, 232, 0.1) 50%, transparent calc(50% + 0.5px));
}

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(43, 182, 207, 0.24), transparent 80deg);
  transform: rotate(calc(var(--p) * 360deg));
  will-change: transform;
}

.radar__ripple {
  position: absolute;
  left: 62%;
  top: 40%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 2px solid var(--cyan-bright);
  pointer-events: none;
}

.radar__ripple--1 {
  transform: scale(calc(0.4 + clamp(0, (var(--p) - 0.28) / 0.26, 1) * 11));
  opacity: calc((1 - clamp(0, (var(--p) - 0.28) / 0.26, 1)) * clamp(0, (var(--p) - 0.28) / 0.04, 1) * 0.9);
}

.radar__ripple--2 {
  transform: scale(calc(0.4 + clamp(0, (var(--p) - 0.44) / 0.26, 1) * 11));
  opacity: calc((1 - clamp(0, (var(--p) - 0.44) / 0.26, 1)) * clamp(0, (var(--p) - 0.44) / 0.04, 1) * 0.7);
}

.socket--radar {
  --sc: var(--cyan-bright);
  position: absolute;
  left: 62%;
  top: 40%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-color: rgba(43, 182, 207, 0.55);
}

.radar__chip {
  position: absolute;
  left: 58%;
  top: 40%;
  margin-top: -68px;
  padding: 0.5rem 0.85rem;
  border-radius: 11px;
  background: rgba(251, 244, 232, 0.1);
  border: 1px solid var(--hairline-cream);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-cream);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
}

.radar__chip.is-on {
  transform: translateY(0) scale(1);
}

.radar__chip strong {
  color: var(--cyan-bright);
  font-variant-numeric: tabular-nums;
}

.radar-events {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radar-event {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 13px;
  text-align: left;
  transform: translateX(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.65s var(--ease-out);
}

/* override .glass for the dark monitoring scene: frosted-dark, not cream */
.radar-event.glass {
  background: rgba(251, 244, 232, 0.07);
  border: 1px solid var(--hairline-cream);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.radar-event.is-on {
  transform: translateX(0);
}

.radar-event__time {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  font-variant-numeric: tabular-nums;
}

.radar-event__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-cream);
  line-height: 1.35;
}

.radar-foot {
  font-size: 0.95rem;
  color: var(--ink-cream-soft);
  text-align: center;
  transform: translateY(14px);
}

.radar-foot.is-on {
  transform: translateY(0);
}

/* ============================================================
   SCENE 5 · WERDYKT
   ============================================================ */

.scene--verdict .scene__sticky {
  background: #161821;
  flex-direction: column;
  padding: 5.5rem 1.5rem 3rem;
}

.window-img {
  object-position: 50% 44%;
  transform: scale(calc(1.1 - var(--p) * 0.07));
}

.verdict-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.verdict-stage .scene-slug { color: var(--ink-cream-soft); }

.verdict-stage .scene-title {
  color: var(--ink-cream);
  text-shadow: 0 2px 24px rgba(10, 12, 20, 0.7);
}

.verdict-stage .scene-sub {
  color: var(--ink-cream-soft);
  text-shadow: 0 1px 14px rgba(10, 12, 20, 0.8);
}

.verdict-min {
  color: var(--cyan-bright);
  font-variant-numeric: tabular-nums;
}

.verdict-card {
  width: 100%;
  padding: 1.6rem 1.8rem 1.5rem;
  text-align: left;
  transition: opacity 0.85s var(--ease-out);
}

.verdict-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}

.verdict-card__name {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.verdict-card__ref {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.v-checks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 0;
}

.v-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transform: translateX(-18px);
  transition-duration: 0.55s;
}

.v-check.is-on {
  transform: translateX(0);
}

.v-check__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 750;
}

.v-check--ok .v-check__mark {
  background: rgba(90, 138, 74, 0.18);
  color: var(--green-deep);
}

.v-check--warn .v-check__mark {
  background: rgba(197, 136, 45, 0.2);
  color: var(--amber-deep);
}

.v-check__src {
  margin-left: auto;
  flex: none;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--cyan);
  background: rgba(23, 150, 173, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.verdict-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  min-height: 4.2rem;
}

.verdict-card__dotline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.socket--verdict {
  --sc: var(--green);
  width: 16px;
  height: 16px;
}

.verdict-card__dotlabel {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* the stamp settles in gently (calmer than dot-journey's slam) */

.v-stamp {
  transform: scale(1.9) rotate(7deg);
  opacity: 0;
  transition: opacity 0.4s ease-in, transform 0.6s var(--ease-spring);
  will-change: transform;
}

.v-stamp.is-on {
  transform: scale(1) rotate(-6deg);
  opacity: 1;
}

.v-stamp__inner {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border: 3px solid var(--green-deep);
  border-radius: 9px;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   SCENE 6 · ZESPÓŁ
   ============================================================ */

.scene--team .scene__sticky {
  background: var(--cream);
  flex-direction: column;
  padding: 5.5rem 1.5rem 3rem;
}

.team-stage {
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.team-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.t-node {
  flex: none;
  width: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  transition: opacity 0.7s var(--ease-out);
}

.t-avatar {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.t-avatar--1 { background: linear-gradient(135deg, #d8a24a, #b97d2c); }
.t-avatar--2 { background: linear-gradient(135deg, #cf7d52, #b05a33); }
.t-avatar--3 { background: linear-gradient(135deg, #7ba35e, #5a8243); }
.t-avatar--4 { background: linear-gradient(135deg, #3fb3c9, #1d8ba0); }

.t-name {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.t-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.socket--team {
  --sc: var(--green);
  margin-top: 0.5rem;
}

.t-chip {
  margin-top: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 11px;
  background: rgba(23, 150, 173, 0.12);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
}

.t-chip.is-on {
  transform: translateY(0) scale(1);
}

.t-chip--done {
  background: rgba(90, 138, 74, 0.16);
  color: var(--green-deep);
}

.t-connector {
  flex: 1 1 auto;
  max-width: 6.5rem;
  height: 2px;
  margin-top: 2.1rem;
  background: rgba(23, 150, 173, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.t-connector::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(clamp(0, (var(--p) - var(--a, 0)) / var(--d, 0.1), 1));
  transform-origin: left center;
}

.team-foot {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  transform: translateY(14px);
}

.team-foot.is-on {
  transform: translateY(0);
}

/* ============================================================
   SECURITY STRIP (non-pinned)
   ============================================================ */

.strip {
  background:
    radial-gradient(60rem 40rem at 50% 0%, rgba(201, 138, 60, 0.07) 0%, rgba(201, 138, 60, 0) 60%),
    var(--sand);
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
}

.strip__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strip__inner .scene-slug { margin-bottom: 1rem; }

.strip-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
}

.strip-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-card);
}

.strip-item__icon {
  margin-bottom: 0.3rem;
}

.strip-item__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.strip-item__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.strip-item[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.strip-item[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   PROBLEM STRIP
   ============================================================ */

.problems-strip {
  background: var(--sand);
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
}

.problems-strip__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problems-stat {
  text-align: center;
  margin-bottom: 1.5rem;
}

.problems-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.problems-stat__plus { color: var(--ink); }

.problems-stat__label {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 32rem;
  line-height: 1.6;
}

.problems-strip__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  max-width: 40rem;
  line-height: 1.25;
}

.problems-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 40rem;
  line-height: 1.65;
  margin: 0 0 3.5rem;
}

.problems-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  width: 100%;
}

.problems-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.22s ease;
}

.problems-item:hover {
  box-shadow: 0 2px 8px rgba(60,44,22,0.07), 0 16px 40px rgba(60,44,22,0.14);
  transform: translateY(-4px);
}

.problems-item__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.22s ease;
}

.problems-item__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  transition: color 0.22s ease;
}

.problems-item[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.problems-item[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

.problems-lead mark {
  background: rgba(201,138,60,0.22);
  color: inherit;
  border-radius: 2px;
  padding: 2px 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* wariant z pięcioma kartami w jednym rzędzie */
.problems-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.problems-grid--five .problems-item { padding: 1.5rem 1.2rem 1.7rem; gap: 0.7rem; }
.problems-item__num { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; color: var(--cyan); }
[data-theme="emi"] .problems-item__num { color: #0071e3; }
.problems-grid--five .problems-item__title { font-size: 1.05rem; }
.problems-grid--five .problems-item__text { font-size: 0.88rem; }
.problems-item[data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.problems-item[data-reveal]:nth-child(5) { transition-delay: 0.4s; }

@media (max-width: 1120px) {
  .problems-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problems-grid--five .problems-item:nth-child(5) { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .problems-grid--five { grid-template-columns: 1fr; }
  .problems-grid--five .problems-item:nth-child(5) { grid-column: auto; }
}

/* ============================================================
   PILOT
   ============================================================ */

.pilot {
  background: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
}

.pilot__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pilot__eyebrow,
.how-strip__eyebrow,
.dlakogo-strip__eyebrow,
.problems-strip__eyebrow,
.faq-strip__eyebrow,
.subpage-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.pilot__eyebrow::before,
.how-strip__eyebrow::before,
.dlakogo-strip__eyebrow::before,
.problems-strip__eyebrow::before,
.faq-strip__eyebrow::before,
.subpage-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px rgba(43, 182, 207, 0.7);
}

.pilot-steps {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
}

.pilot-step {
  padding: 2.2rem 1.8rem;
  background: var(--cream-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pilot-step[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.pilot-step[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

.pilot-step__num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.pilot-step__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pilot-step__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pilot__note {
  margin-top: 2.6rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   SCENE 7 · FINALE
   ============================================================ */

.scene--finale .scene__sticky {
  background: #1a1c26;
}

.dusk-img {
  object-position: 50% 50%;
  transform: scale(calc(1.04 + var(--p) * 0.08));
}

.finale {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
}

.finale__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #fff4e0 28%, #ffd9a1 74%, #f0a85a 106%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(14, 10, 4, 0.55));
  transform: translateY(34px) scale(0.98);
  transition-duration: 1s;
}

.finale__title.is-on {
  transform: translateY(0) scale(1);
}

.socket--final {
  --sc: var(--gold-bright);
  width: 0.155em;
  height: 0.155em;
  margin-left: 0.06em;
  border-width: 0.028em;
  border-color: rgba(224, 168, 86, 0.55);
}

.finale__sub {
  margin: 1.8rem auto 0;
  max-width: 35rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #fdf3e3;
  text-shadow: 0 1px 16px rgba(14, 10, 4, 0.7);
  line-height: 1.6;
  transform: translateY(26px);
  transition-duration: 0.9s;
}

.finale__sub.is-on {
  transform: translateY(0);
}

.finale__actions {
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transform: translateY(22px);
  transition-duration: 0.9s;
}

.finale__actions.is-on {
  transform: translateY(0);
}

.finale__actions .btn--primary {
  background: linear-gradient(180deg, #ffe0ad 0%, #e7a44f 100%);
  color: #3a2104;
  box-shadow: 0 8px 30px rgba(224, 168, 86, 0.42);
}

.finale__actions .btn--primary:hover {
  background: linear-gradient(180deg, #ffe9c2 0%, #f3b461 100%);
  box-shadow: 0 12px 40px rgba(224, 168, 86, 0.54);
}

.finale__mail {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 0.5rem;
  transition: opacity 0.25s var(--ease-out);
}

.finale__mail:hover {
  opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--cream-soft);
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 1.5rem 3rem;
}

.site-footer__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.brand--footer .brand__name {
  font-size: 1.05rem;
}

.site-footer__tagline {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 0.4rem;
}

.site-footer__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.1rem;
  transition: color 0.25s var(--ease-out);
}

.site-footer__link:hover {
  color: var(--ink);
}

.site-footer__legal {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  margin-top: -0.4rem;
}
.site-footer__legal-links .site-footer__link { padding: 0.2rem 0.1rem; font-size: 0.8rem; }

.site-footer__company {
  font-style: normal;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 44rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 920px) {
  .scene--hero { height: 120vh; }
  .scene--pulpit { height: 380vh; }
  .scene--matrix { height: 440vh; }
  .scene--radar { height: 380vh; }
  .scene--verdict { height: 340vh; }
  .scene--team { height: 400vh; }
  .scene--finale { height: 230vh; }

  .strip-grid,
  .pilot-steps {
    grid-template-columns: 1fr;
  }

  .radar-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .radar {
    width: min(21rem, 78vw);
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .site-header__inner { gap: 0.75rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 0.25rem 1.5rem 0.85rem;
    background: var(--cream);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.10);
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav__link {
    padding: 0.9rem 0.1rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--hairline);
  }
  .site-header.is-nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .site-header.is-nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .problems-grid { grid-template-columns: 1fr; }

  .scene__sticky { padding-left: 1rem; padding-right: 1rem; }

  .scene--pulpit .scene__sticky,
  .scene--matrix .scene__sticky,
  .scene--radar .scene__sticky,
  .scene--verdict .scene__sticky,
  .scene--team .scene__sticky {
    padding-top: 4.4rem;
    padding-bottom: 1.6rem;
  }

  .scene-title { font-size: 1.85rem; }
  .scene-sub { font-size: 0.98rem; margin-top: 0.9rem; }

  .pulpit-stage { gap: 1.3rem; }

  .panel__bar { padding: 0.65rem 0.9rem; }
  .row { gap: 0.7rem; padding: 0.8rem 0.8rem; }
  .row__title { white-space: normal; font-size: 0.85rem; line-height: 1.3; }
  .row__top { flex-wrap: wrap; gap: 0.35rem; }
  .row__meta { font-size: 0.7rem; }
  .row__fit { font-size: 1rem; }
  .row--hero .row__fit--high { font-size: 1.1rem; }

  .matrix-stage { gap: 1.6rem; }
  .matrix { gap: 0.3rem; padding: 1rem 0.9rem; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .m-row { gap: 0.3rem; }
  .m-cell { min-height: 2.4rem; border-radius: 8px; }
  .m-req { font-size: 0.72rem; padding: 0.3rem 0.15rem; line-height: 1.25; }
  .m-col, .m-corner { font-size: 0.56rem; padding: 0.32rem 0.15rem; letter-spacing: 0.02em; }
  .m-row__scan { inset: -3px -4px; border-radius: 10px; }

  .radar-stage { gap: 1.1rem; }
  .radar { width: min(16rem, 62vw); }
  .radar-grid { gap: 1.1rem; }
  .radar-event { padding: 0.55rem 0.8rem; }
  .radar-event__label { font-size: 0.8rem; }
  .radar-foot { font-size: 0.82rem; }
  .radar__chip { left: auto; right: 2%; margin-top: -56px; font-size: 0.7rem; }

  .verdict-card { padding: 1.2rem 1rem 1.1rem; }
  .v-check { font-size: 0.85rem; align-items: flex-start; }
  .v-check__mark { margin-top: 0.1rem; }
  .v-check__src { display: none; }
  .v-stamp__inner { font-size: 0.95rem; padding: 0.4rem 0.85rem; }
  .verdict-card__dotlabel { display: none; }

  .team-stage { gap: 1.4rem; }
  .team-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 0.6rem;
    justify-items: center;
  }
  .t-connector { display: none; }
  .t-node { width: 100%; }
  .t-avatar { width: 3.4rem; height: 3.4rem; font-size: 0.95rem; }
  .t-name { margin-top: 0.15rem; font-size: 0.9rem; }
  .socket--team { margin-top: 0.3rem; }
  .t-chip { font-size: 0.74rem; margin-top: 0.25rem; }
  .team-foot { font-size: 0.82rem; }

  .hero__actions .btn { width: 100%; max-width: 20rem; }

  .socket--hero { left: 82%; top: 62%; }

  .pulpit-stats { font-size: 0.88rem; }

  /* art-direction per plate: keep the subject in a 390px frame */
  .hero-img { object-position: 36% 48%; }
  .desk-img { object-position: 70% 50%; }
  .papers__img { object-position: 50% 50%; }
  .window-img { object-position: 50% 44%; }
  .dusk-img { object-position: 76% 50%; }

  /* phones get heavier scrims: plates sit right behind the copy */
  .scene-scrim--hero {
    background:
      radial-gradient(24rem 30rem at 50% 50%, rgba(24, 17, 8, 0.66) 0%, rgba(24, 17, 8, 0.22) 58%, rgba(24, 17, 8, 0) 78%),
      linear-gradient(180deg, rgba(24, 17, 8, 0.46) 0%, rgba(24, 17, 8, 0.06) 24%, rgba(24, 17, 8, 0) 56%, rgba(24, 17, 8, 0.6) 100%);
  }

  .scene-scrim--soft {
    background: linear-gradient(180deg, rgba(24, 17, 8, 0.74) 0%, rgba(24, 17, 8, 0.4) 30%, rgba(24, 17, 8, 0.36) 64%, rgba(24, 17, 8, 0.6) 100%);
  }

  .scene-scrim--center {
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.78) 0%, rgba(12, 14, 22, 0.46) 32%, rgba(12, 14, 22, 0.4) 60%, rgba(12, 14, 22, 0.68) 100%);
  }
}

/* ============================================================
   REDUCED MOTION + NO-JS: unpin, show final states
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .dot-layer { display: none !important; }
  .fdot { display: none; }
  .socket--hero { opacity: 1; }
  .socket--hero::after { animation: none; display: none; }
  .hero__hint { display: none; }
  .hero__hint-line::after { animation: none; }

  [data-at],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scene { height: auto !important; }

  .scene__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero,
  .finale__title {
    transform: none !important;
    opacity: 1 !important;
  }

  /* photos become static plates behind each scene; no Ken Burns / reveal / bloom */
  .scene-media__img { transform: none !important; }
  .papers__img--order { clip-path: none !important; }
  .papers__img--chaos,
  .papers__sweep,
  .bloom,
  .scene-veil { display: none !important; }

  .glass::after { display: none; }
  .v-stamp { opacity: 1; }
  .read-progress { display: none; }

  .radar__sweep { transform: rotate(150deg); }
  .radar__ripple { display: none; }
  .t-connector::after { transform: scaleX(1); }

  .btn,
  .site-header { transition: none; }
}

html:not(.js) .dot-layer { display: none; }
html:not(.js) .socket--hero::after { display: none; }
html:not(.js) .t-connector::after { transform: scaleX(1); }
html:not(.js) .v-stamp { opacity: 1; }
html:not(.js) .glass::after { display: none; }

/* ============================================================
   Visual-theme toggle control (internal: golden <-> blue).
   Hidden without JS; only meaningful when the engine runs.
   ============================================================ */
.theme-toggle { display: none; }
.js .theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 22, 31, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  color: #f5f1e8;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.js .theme-toggle:hover { transform: translateY(-1px); background: rgba(20, 22, 31, 0.92); }
.js .theme-toggle:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
.theme-toggle__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(43, 182, 207, 0.22);
}
@media (max-width: 560px) {
  .js .theme-toggle { font-size: 0.78rem; padding: 0.45rem 0.7rem; right: 0.6rem; bottom: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .theme-toggle { transition: none; }
}

/* ============================================================
   THEME: emi (blue layout + hero photo, blue accent).
   Same palette as blue; hero section keeps the office photo.
   ============================================================ */
[data-theme="emi"] {
  --sand: #f5f5f7;
  --cream: #ffffff;
  --cream-soft: #f5f5f7;
  --card: #ffffff;
  --dusk: #0c0c10;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #aeaeb2;
  --ink-cream: #f5f5f7;
  --ink-cream-soft: #9d9da3;
  --cyan: #0071e3;
  --cyan-bright: #40a9ff;
  --gold: #0071e3;
  --gold-bright: #40a9ff;
  --green: #30d158;
  --green-deep: #1f9d47;
  --amber: #ff9f0a;
  --amber-deep: #c47600;
  --red: #ff453a;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-cream: rgba(255, 255, 255, 0.12);
  --glass-bg: #ffffff;
  --glass-edge: rgba(0, 0, 0, 0.08);
  --shadow-panel:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.09),
    0 52px 100px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --font-display: var(--font-body);
}

[data-theme="emi"] .theme-toggle__dot { background: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22); }

[data-theme="emi"] .hero__title { font-weight: 700; letter-spacing: -0.035em; font-size: clamp(2rem, 4.2vw, 3.4rem); }
[data-theme="emi"] .scene-title { font-weight: 700; letter-spacing: -0.035em; }
[data-theme="emi"] .finale__title { font-weight: 800; letter-spacing: -0.05em; }

/* hide photo layers everywhere */
[data-theme="emi"] .scene-media,
[data-theme="emi"] .scene-media__img,
[data-theme="emi"] .scene-veil,
[data-theme="emi"] .scene-scrim,
[data-theme="emi"] .bloom,
[data-theme="emi"] .papers__sweep { display: none !important; }

/* un-hide hero photo and its scrim only */
[data-theme="emi"] .scene--hero .scene-media { display: block !important; }
[data-theme="emi"] .scene--hero .scene-media__img { display: block !important; }
[data-theme="emi"] .scene--hero .scene-scrim { display: block !important; }
[data-theme="emi"] .scene--hero .scene-scrim--hero {
  background:
    radial-gradient(58rem 40rem at 50% 48%, rgba(8, 5, 2, 0.82) 0%, rgba(8, 5, 2, 0.32) 60%, rgba(8, 5, 2, 0) 100%),
    linear-gradient(180deg, rgba(8, 5, 2, 0.70) 0%, rgba(8, 5, 2, 0.28) 30%, rgba(8, 5, 2, 0.28) 56%, rgba(8, 5, 2, 0.80) 100%);
}
[data-theme="emi"] .hero__title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 4px 48px rgba(0, 0, 0, 0.6);
}
[data-theme="emi"] .hero__eyebrow {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}
[data-theme="emi"] .hero__sub {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.88);
}

/* frosted glass -> solid white cards */
[data-theme="emi"] .glass {
  background: #ffffff;
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-panel);
}
[data-theme="emi"] .glass::after { display: none; }
[data-theme="emi"] .radar-event.glass { background: rgba(255, 255, 255, 0.06); }

/* non-hero scenes: dark ink on light bg */
[data-theme="emi"] .pulpit-stage .scene-title,
[data-theme="emi"] .matrix-stage .scene-title,
[data-theme="emi"] .verdict-stage .scene-title { color: var(--ink); text-shadow: none; }

[data-theme="emi"] .pulpit-stage .scene-sub,
[data-theme="emi"] .matrix-stage .scene-sub,
[data-theme="emi"] .verdict-stage .scene-sub,
[data-theme="emi"] .pulpit-stats { color: var(--ink-soft); text-shadow: none; }

[data-theme="emi"] .pulpit-stage .scene-slug,
[data-theme="emi"] .matrix-stage .scene-slug,
[data-theme="emi"] .verdict-stage .scene-slug { color: var(--ink-soft); text-shadow: none; }

[data-theme="emi"] .pulpit-stage .pulpit-stats__num { color: var(--ink); }
[data-theme="emi"] .matrix-sum__label { color: var(--ink-soft); text-shadow: none; }

/* hero: transparent so the photo shows through */
[data-theme="emi"] .scene--hero .scene__sticky { background: transparent; padding-top: 5.5rem; }
[data-theme="emi"] .hero__actions { flex-direction: column; align-items: center; }
[data-theme="emi"] .fdot { background: rgba(255, 255, 255, 0.35); box-shadow: none; }

[data-theme="emi"] .scene--verdict .scene__sticky { background: var(--cream); }
[data-theme="emi"] .strip { background: var(--sand); }
[data-theme="emi"] .problems-strip { background: #f5f5f7; }
[data-theme="emi"] .problems-strip__heading { color: #1d1d1f; }
[data-theme="emi"] .problems-stat__plus { color: #1d1d1f; }
[data-theme="emi"] .problems-item { background: #ffffff; }
[data-theme="emi"] .problems-item:hover {
  background: #0071e3;
  border-color: #0071e3;
  box-shadow: 0 8px 28px rgba(0,113,227,0.35);
}
[data-theme="emi"] .problems-item:hover .problems-item__title,
[data-theme="emi"] .problems-item:hover .problems-item__text { color: #ffffff; }

[data-theme="emi"] .problems-lead mark {
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 0 0 2px 0;
  text-decoration: underline;
  text-decoration-color: rgba(0,113,227,0);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: text-decoration-color 0.8s ease 0.4s;
}
[data-theme="emi"] .problems-lead.is-visible mark { text-decoration-color: rgba(0,113,227,0.9); }

[data-theme="emi"] .scene--radar .scene__sticky {
  background:
    radial-gradient(72rem 46rem at 50% 118%, rgba(0, 113, 227, 0.18) 0%, rgba(0, 113, 227, 0) 60%),
    var(--dusk);
}

[data-theme="emi"] .t-avatar--1 { background: linear-gradient(135deg, #0071e3, #0050a8); }
[data-theme="emi"] .t-avatar--2 { background: linear-gradient(135deg, #40a9ff, #0071e3); }
[data-theme="emi"] .t-avatar--3 { background: linear-gradient(135deg, #60b3ff, #0060cc); }
[data-theme="emi"] .t-avatar--4 { background: linear-gradient(135deg, #1a80e0, #003e90); }

[data-theme="emi"] .finale__title {
  background-image: linear-gradient(180deg, #ffffff 30%, #cce4ff 80%, #0071e3 112%);
}
[data-theme="emi"] .finale__sub { color: #cce4ff; }
[data-theme="emi"] .finale__actions .btn--primary {
  background: #0071e3;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.42);
}
[data-theme="emi"] .finale__actions .btn--primary:hover {
  background: #40a9ff;
  box-shadow: 0 12px 40px rgba(0, 113, 227, 0.54);
}

[data-theme="emi"] .socket--radar { border-color: rgba(0, 113, 227, 0.55); }
[data-theme="emi"] .socket--final { border-color: rgba(0, 113, 227, 0.4); }
[data-theme="emi"] .site-header { background: #ffffff; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
[data-theme="emi"] .site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }
[data-theme="emi"] .site-nav__link { color: #1d1d1f; }
[data-theme="emi"] .site-nav__link:hover { color: #0071e3; }
[data-theme="emi"] .brand__name { color: #1d1d1f; }
[data-theme="emi"] .btn--primary:hover { background: #40a9ff; }
[data-theme="emi"] .btn--small:hover { background: #313135; }

/* ---- JAK DZIAŁA STRIP ---- */
.how-strip {
  background: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  border-top: 1px solid var(--hairline);
}
.how-strip__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.how-strip__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
  max-width: 32rem;
  line-height: 1.25;
}
.how-flow {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 62rem;
}
.how-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.how-node__circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring), border-color 0.3s ease, color 0.3s ease;
}
.how-node__circle.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--ink-soft);
  color: var(--ink);
}
.how-node__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
  white-space: nowrap;
}
.how-node__label.is-active { opacity: 1; }
.how-node:hover .how-node__circle.is-active,
.how-node:focus-visible .how-node__circle.is-active { transform: scale(1.08); border-color: var(--cyan); }
.how-node:hover .how-node__label.is-active { color: var(--ink); }
.how-arrow {
  flex: 1;
  height: 1.5px;
  background: var(--hairline);
  position: relative;
  min-width: 10px;
  margin-bottom: 2rem;
  overflow: visible;
}
.how-arrow::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--hairline);
  transition: border-left-color 0.15s ease;
}
.how-arrow.is-filled::after { border-left-color: var(--cyan); }
.how-arrow__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--cyan);
  transition: width 0.38s ease;
}
.how-arrow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  position: absolute;
  top: -4.5px;
  left: -5px;
  opacity: 0;
  pointer-events: none;
}


[data-theme="emi"] .how-strip { background: #fff; border-top: 1px solid rgba(0,0,0,0.08); }
[data-theme="emi"] .how-node__circle { width: 72px; height: 72px; border-radius: 18px; background: #1c1c1e; border-color: rgba(255,255,255,0.06); color: #5ac8fa; }
[data-theme="emi"] .how-node__circle.is-active { border-color: rgba(90,200,250,0.3); color: #5ac8fa; }
[data-theme="emi"] .how-node:hover .how-node__circle.is-active,
[data-theme="emi"] .how-node:focus-visible .how-node__circle.is-active { border-color: rgba(90,200,250,0.75); }
[data-theme="emi"] .how-node__label { color: #1d1d1f; }
[data-theme="emi"] .how-strip__heading { color: #1d1d1f; }
[data-theme="emi"] .how-arrow { background: rgba(90,200,250,0.12); height: 2px; }
[data-theme="emi"] .how-arrow::after { border-left-color: rgba(90,200,250,0.12); }
[data-theme="emi"] .how-arrow.is-filled::after { border-left-color: #5ac8fa; filter: drop-shadow(0 0 5px rgba(90,200,250,0.7)); }
[data-theme="emi"] .how-arrow__fill { background: #5ac8fa; box-shadow: 0 0 8px 2px rgba(90,200,250,0.6), 0 0 20px 4px rgba(90,200,250,0.25); }
[data-theme="emi"] .how-arrow__dot { background: #fff; box-shadow: 0 0 8px 3px rgba(90,200,250,0.9), 0 0 22px 6px rgba(90,200,250,0.5); }

@keyframes how-scan {
  0%, 10%  { transform: translateY(0); }
  37%, 52% { transform: translateY(4.5px); }
  72%, 88% { transform: translateY(9px); }
  98%, 100% { transform: translateY(0); }
}

/* ---- DLA KOGO STRIP ---- */
.dlakogo-strip { background: var(--cream); padding: clamp(4rem, 10vw, 7rem) 1.5rem; border-top: 1px solid var(--hairline); }
.dlakogo-strip__inner { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.dlakogo-strip__heading { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--ink); text-align: center; margin-bottom: 0.8rem; letter-spacing: -0.02em; max-width: 32rem; line-height: 1.25; }
.dlakogo-strip__sub { font-size: 0.95rem; color: var(--ink-soft); text-align: center; max-width: 34rem; line-height: 1.5; margin-bottom: 3rem; }
.dlakogo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; width: 100%; max-width: 62rem; }
.dlakogo-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.dlakogo-card--featured { border: 2px solid var(--cyan); }
.dlakogo-card__badge { display: inline-block; font-size: 0.7rem; font-weight: 500; color: var(--cyan); background: rgba(0,0,0,0.04); padding: 0.2rem 0.75rem; border-radius: 1rem; margin-bottom: 0.5rem; }
.dlakogo-card__viz { margin-bottom: 1rem; }
.dlakogo-card__viz svg { color: var(--ink-faint); }
.dlakogo-card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }
.dlakogo-card__pain { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.75rem; }
.dlakogo-card__gain { font-size: 0.85rem; color: var(--ink); line-height: 1.5; font-weight: 500; }
.dlakogo-cta { margin-top: 2.5rem; }
@keyframes dlakogo-sweep { to { transform: rotate(360deg); } }


[data-theme="emi"] .dlakogo-strip { background: #f5f5f7; border-top: 1px solid rgba(0,0,0,0.08); }
[data-theme="emi"] .dlakogo-card { background: #fff; border: 1px solid rgba(0,113,227,0.2); border-radius: 18px; box-shadow: 0 0 10px 1px rgba(0,113,227,0.06); }
[data-theme="emi"] .dlakogo-card--featured { border-color: rgba(0,113,227,0.2); box-shadow: 0 0 10px 1px rgba(0,113,227,0.06); }
[data-theme="emi"] .dlakogo-card__badge { color: #0071e3; background: rgba(0,113,227,0.06); }
[data-theme="emi"] .dlakogo-card__viz svg { color: #0071e3; }
[data-theme="emi"] .dlakogo-card__title { color: #1d1d1f; }
[data-theme="emi"] .dlakogo-card__pain { color: #86868b; }
[data-theme="emi"] .dlakogo-card__gain { color: #1d1d1f; }
[data-theme="emi"] .dlakogo-strip__heading { color: #1d1d1f; }
[data-theme="emi"] .dlakogo-strip__sub { color: #86868b; }

@media (max-width: 700px) {
  .dlakogo-grid { grid-template-columns: 1fr; max-width: 24rem; }
}

/* ---- FAQ (strona główna) ---- */
.faq-strip { background: var(--sand); padding: clamp(4rem, 10vw, 7rem) 1.5rem; border-top: 1px solid var(--hairline); }
.faq-strip__inner { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.faq-strip__heading { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--ink); text-align: center; margin-bottom: 2.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.faq-list { width: 100%; max-width: 44rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-card); }
.faq-item__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--cyan); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { padding: 0 1.3rem 1.2rem; font-size: 0.93rem; line-height: 1.65; color: var(--ink-soft); }

[data-theme="emi"] .faq-strip { background: #f5f5f7; border-top: 1px solid rgba(0,0,0,0.08); }
[data-theme="emi"] .faq-item { background: #fff; border: 1px solid rgba(0,113,227,0.2); box-shadow: 0 0 10px 1px rgba(0,113,227,0.06); }
[data-theme="emi"] .faq-item__q { color: #1d1d1f; }
[data-theme="emi"] .faq-item__q::after { color: #0071e3; }
[data-theme="emi"] .faq-item__a { color: #515154; }
.faq-strip__more { display: inline-block; margin-top: 1.8rem; font-weight: 500; font-size: 0.95rem; color: var(--cyan); transition: opacity 0.2s ease; }
.faq-strip__more:hover { opacity: 0.65; }
[data-theme="emi"] .faq-strip__more { color: #0071e3; }

/* ---- SUBPAGE HERO ---- */
.subpage-hero { padding: clamp(6rem, 14vw, 10rem) 1.5rem clamp(3rem, 6vw, 5rem); }
.subpage-hero--compact { padding: clamp(4rem, 9vw, 6rem) 1.5rem clamp(1rem, 2.5vw, 2rem); }
.subpage-hero--compact .subpage-hero__eyebrow { margin-bottom: 0; }
.subpage-hero__inner { max-width: var(--content-w); margin: 0 auto; text-align: center; }
.subpage-hero__heading { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.subpage-hero__sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 30rem; margin: 0 auto; line-height: 1.5; }

[data-theme="emi"] .subpage-hero__heading { color: #1d1d1f; }
[data-theme="emi"] .subpage-hero__sub { color: #86868b; }

/* ---- SZEŚĆ KROKÓW (podstrona Jak działa) ---- */
.steps6 { padding: clamp(1rem, 3vw, 2rem) 1.5rem clamp(3rem, 7vw, 5rem); }
.steps6__inner { max-width: 62rem; margin: 0 auto; position: relative; padding-left: 52px; }
.steps6__rail { position: absolute; left: 17px; top: 0; width: 2px; height: 0; background: rgba(0,113,227,0.16); border-radius: 2px; }
.steps6__railfill { position: absolute; left: 17px; top: 0; width: 2px; height: 0; background: #0071e3; border-radius: 2px; }
.steps6__dot { position: absolute; left: 11px; top: 0; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #0071e3; box-shadow: 0 0 0 5px rgba(0,113,227,0.15), 0 0 16px 4px rgba(0,113,227,0.5); opacity: 0; transition: opacity 0.3s ease, left 0.95s cubic-bezier(0.25, 0.9, 0.3, 1); z-index: 3; }
.steps6.is-railing .steps6__dot,
.steps6.is-landed .steps6__dot { opacity: 1; }
.steps6.is-landed .steps6__dot { animation: dot-hit 0.55s ease-out 0.85s forwards; }
@keyframes dot-hit {
  0%   { transform: scale(1);   opacity: 1; }
  35%  { transform: scale(1.7); opacity: 0.9; }
  100% { transform: scale(2.5); opacity: 0; }
}
.steps6__list { list-style: none; display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 6rem); padding: 0; margin: 0; }
.steps6-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.steps6-step__node { position: absolute; left: -42px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,113,227,0.3); z-index: 2; transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease; }
.steps6-step.is-active .steps6-step__node { background: #0071e3; border-color: #0071e3; transform: translateY(-50%) scale(1.18); box-shadow: 0 0 0 5px rgba(0,113,227,0.14); }
.steps6-step__visual { grid-column: 1; grid-row: 1; }
.steps6-step__body { grid-column: 2; grid-row: 1; }
.steps6-step:nth-child(even) .steps6-step__visual { grid-column: 2; }
.steps6-step:nth-child(even) .steps6-step__body { grid-column: 1; }
.steps6-step__mock {
  width: 100%; aspect-ratio: 300 / 200; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 16px 44px rgba(20,40,80,0.10);
  transform: translateY(6px); opacity: 0.7;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.4s ease;
}
.steps6-step.is-active .steps6-step__mock { opacity: 1; transform: translateY(0); box-shadow: 0 20px 52px rgba(0,113,227,0.16); }
.steps6-step__mock svg { display: block; width: 100%; height: 100%; }
.steps6-step__num { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #0071e3; margin-bottom: 0.7rem; }
.steps6-step__title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.85rem; }
.steps6-step__lead { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 1.1rem; }
.steps6-step__points { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; margin: 0; }
.steps6-step__points li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; color: var(--ink); }
.steps6-step__points li::before { content: "✓"; color: #0071e3; font-weight: 700; flex-shrink: 0; }
.steps6-step__gain { margin-top: 1.1rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); background: rgba(0,113,227,0.06); border-left: 3px solid #0071e3; padding: 0.75rem 1rem; border-radius: 0 10px 10px 0; }
.steps6-step__gain b { color: var(--ink); font-weight: 600; }

.steps6-cta { text-align: center; padding-top: clamp(6rem, 13vw, 10rem); }
.steps6-cta__title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; margin: 0 auto 1.1rem; max-width: 34rem; }
.steps6-cta__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 36rem; margin: 0 auto 2rem; }
.steps6-cta__btn { display: inline-block; background: #0071e3; color: #fff; font-weight: 500; font-size: 1rem; padding: 0.85rem 2.1rem; border-radius: 980px; transition: box-shadow 0.4s ease 0.9s, transform 0.4s var(--ease-spring) 0.9s, background 0.3s ease; }
.steps6-cta__btn:hover { background: #0061c8; }
.steps6.is-landed .steps6-cta__btn { box-shadow: 0 0 0 7px rgba(0,113,227,0.18), 0 0 34px 9px rgba(0,113,227,0.55); transform: scale(1.05); }
[data-theme="emi"] .steps6-cta__title { color: #1d1d1f; }
[data-theme="emi"] .steps6-cta__text { color: #515154; }

[data-theme="emi"] .steps6-step__title { color: #1d1d1f; }
[data-theme="emi"] .steps6-step__lead { color: #515154; }
[data-theme="emi"] .steps6-step__points li { color: #1d1d1f; }
[data-theme="emi"] .steps6-step__gain { color: #515154; }
[data-theme="emi"] .steps6-step__gain b { color: #1d1d1f; }

@media (max-width: 760px) {
  .steps6__inner { padding-left: 0; }
  .steps6__rail, .steps6__railfill, .steps6__dot, .steps6-step__node { display: none; }
  .steps6-step,
  .steps6-step:nth-child(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps6-step__visual,
  .steps6-step:nth-child(even) .steps6-step__visual { grid-column: 1; grid-row: 1; }
  .steps6-step__body,
  .steps6-step:nth-child(even) .steps6-step__body { grid-column: 1; grid-row: 2; }
}

.subpage-cta { padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(4rem, 10vw, 6rem); text-align: center; }
.subpage-cta__inner { max-width: var(--content-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.subpage-cta__back { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .how-flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .how-node {
    flex-direction: row;
    gap: 1rem;
  }
  .how-arrow {
    width: 1.5px;
    height: 2rem;
    min-width: 0;
    flex: none;
    margin-bottom: 0;
    margin-left: 1.6875rem;
  }
  .how-arrow::after {
    right: auto;
    left: -4px;
    top: auto;
    bottom: -6px;
    border: 5px solid transparent;
    border-top: 7px solid var(--hairline);
    border-left: none;
  }
  .how-arrow.is-filled::after { border-top-color: var(--cyan); border-left-color: transparent; }
  .how-arrow__fill { width: 100%; height: 0%; transition: height 0.38s ease; }
  .how-arrow.is-filled .how-arrow__fill { height: 100%; }
  [data-theme="emi"] .how-arrow.is-filled::after { border-top-color: #0071e3; }
}

/* ---- BRANŻE (podstrona Dla kogo) ---- */
.branze { padding: clamp(0.5rem, 2vw, 1.5rem) 1.5rem clamp(2rem, 5vw, 3.5rem); }
.branze__inner { max-width: 60rem; margin: 0 auto; }
.branze-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.branze-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.branze-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #fdfdfc; }
.branze-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1rem 1.2rem 0.4rem; line-height: 1.25; }
.branze-card__desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; margin: 0 1.2rem 1.3rem; }
.branze-note { max-width: 36rem; margin: 2.5rem auto 0; text-align: center; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.branze-note b { color: var(--ink); font-weight: 600; }
.branze-cta { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(3rem, 8vw, 5rem); }
.branze-cta__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.branze-cta__btn { display: inline-block; background: #0071e3; color: #fff; font-weight: 500; font-size: 1rem; padding: 0.85rem 2.1rem; border-radius: 980px; transition: background 0.3s ease; }
.branze-cta__btn:hover { background: #0061c8; }

[data-theme="emi"] .branze-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="emi"] .branze-card__ic { background: rgba(0,113,227,0.08); color: #0071e3; }
[data-theme="emi"] .branze-card__name { color: #1d1d1f; }
[data-theme="emi"] .branze-card__desc { color: #515154; }
[data-theme="emi"] .branze-note { color: #515154; }
[data-theme="emi"] .branze-note b { color: #1d1d1f; }
[data-theme="emi"] .branze-cta__title { color: #1d1d1f; }

@media (max-width: 720px) { .branze-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .branze-grid { grid-template-columns: 1fr; } }

/* ---- O NAS (podstrona) ---- */
.about-block { padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.about-block--tint { background: #f5f5f7; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.about-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.about-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.7rem; }
.about-h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.about-p { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.about-p + .about-p { margin-top: 1rem; }
.about-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 1.8rem); color: var(--ink); margin: 0 auto 1.3rem; max-width: 32rem; line-height: 1.3; }
.about-quote b { font-style: normal; color: var(--cyan); }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 48rem; margin: 1.9rem auto 0; text-align: left; }
.about-value { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 1.2rem 1.3rem; }
.about-value__t { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.about-value__d { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.about-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 46rem; margin: 2.4rem auto 0; }
.about-member__avatar { width: 76px; height: 76px; border-radius: 50%; background: rgba(0,113,227,0.1); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 0 auto 0.7rem; }
.about-member__avatar--photo { width: 128px; height: 128px; object-fit: cover; padding: 0; background: #fff; box-shadow: 0 12px 26px rgba(20,40,80,0.16), 0 3px 8px rgba(20,40,80,0.10); }
.about-member { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.about-member__name { font-weight: 600; color: var(--ink); font-size: 0.98rem; margin-top: auto; }
.about-member__role { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.15rem; }
.about-member__bio { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); margin: 0.55rem auto 0; max-width: 13rem; }

[data-theme="emi"] .about-block--tint { background: #f5f5f7; }
[data-theme="emi"] .about-label { color: #0071e3; }
[data-theme="emi"] .about-h2, [data-theme="emi"] .about-quote { color: #1d1d1f; }
[data-theme="emi"] .about-quote b { color: #0071e3; }
[data-theme="emi"] .about-p, [data-theme="emi"] .about-value__d, [data-theme="emi"] .about-member__role { color: #515154; }
[data-theme="emi"] .about-value { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="emi"] .about-value__t, [data-theme="emi"] .about-member__name { color: #1d1d1f; }
[data-theme="emi"] .about-member__avatar { background: rgba(0,113,227,0.1); color: #0071e3; }

@media (max-width: 640px) { .about-values { grid-template-columns: 1fr; } .about-team { grid-template-columns: 1fr 1fr; } }

/* ---- BRANŻE: układ albumowy (jeden pod drugim) ---- */
.branze-album { max-width: 60rem; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.branze-row { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.branze-row:nth-child(even) { grid-template-columns: 1fr 320px; }
.branze-row:nth-child(even) .branze-row__img { order: 2; }
.branze-row__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 22px 50px rgba(20,40,80,0.26), 0 8px 18px rgba(20,40,80,0.16); }
.branze-row__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem; }
.branze-row__name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.7rem; }
.branze-row__desc { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
[data-theme="emi"] .branze-row__eyebrow { color: #0071e3; }
[data-theme="emi"] .branze-row__name { color: #1d1d1f; }
[data-theme="emi"] .branze-row__desc { color: #515154; }
@media (max-width: 760px) {
  .branze-row, .branze-row:nth-child(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .branze-row:nth-child(even) .branze-row__img, .branze-row__img { order: 0; }
  .branze-row__img { max-width: 360px; margin: 0 auto; }
}

/* ---- DLA-KOGO: wijący się szlak z kropką ---- */
.branze__inner { position: relative; }
.branze-wrap { position: relative; }
.branze-rail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.branze-rail__track { stroke: rgba(0,113,227,0.15); stroke-width: 2; fill: none; }
.branze-rail__fill { stroke: #0071e3; stroke-width: 2; stroke-linecap: round; fill: none; }
.branze-rail__dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #0071e3; box-shadow: 0 0 0 5px rgba(0,113,227,0.15), 0 0 18px 5px rgba(0,113,227,0.55); pointer-events: none; z-index: 4; opacity: 0; transition: opacity 0.4s ease; }
.branze-wrap.is-railing .branze-rail__dot { opacity: 1; }
.branze-wrap.is-landed .branze-rail__dot { animation: dot-hit 0.55s ease-out forwards; }
.branze-cta__btn { transition: box-shadow 0.4s ease, transform 0.4s var(--ease-spring), background 0.3s ease; }
.branze-cta__btn.is-hit { box-shadow: 0 0 0 7px rgba(0,113,227,0.18), 0 0 34px 9px rgba(0,113,227,0.55); transform: scale(1.05); }
@media (max-width: 760px) { .branze-rail, .branze-rail__dot { display: none; } }

/* ---- linia znika razem z kropką przy lądowaniu ---- */
.branze-rail__track, .branze-rail__fill { transition: opacity 0.55s ease; }
.branze-wrap.is-landed .branze-rail__track,
.branze-wrap.is-landed .branze-rail__fill { opacity: 0; }
.steps6__rail, .steps6__railfill { transition: opacity 0.55s ease 0.85s; }
.steps6.is-landed .steps6__rail,
.steps6.is-landed .steps6__railfill { opacity: 0; }

/* ---- O NAS: latająca kropka-towarzysz (osobna od silnika głównej) ---- */
.onas-dot-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.onas-dot, .onas-dot__ghost { position: fixed; top: 0; left: 0; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%; background: #0071e3; opacity: 0; }
.onas-dot { box-shadow: 0 0 0 5px rgba(0,113,227,0.16), 0 0 22px 6px rgba(0,113,227,0.55);
  transition: opacity 0.45s ease; }
.onas-dot__ghost { transition: opacity 0.45s ease; }
[data-theme="golden"] .onas-dot, [data-theme="golden"] .onas-dot__ghost { background: #2bb6cf; }
[data-theme="golden"] .onas-dot { box-shadow: 0 0 0 5px rgba(43,182,207,0.16), 0 0 22px 6px rgba(43,182,207,0.55); }
@media (max-width: 760px) { .onas-dot-layer { display: none; } }

/* ------------------------------ demo form (umów demo) ------------------------------ */
.demo-form-section { padding: clamp(0.5rem, 2vw, 1.5rem) 1.5rem clamp(4rem, 9vw, 6rem); }
.demo-form { max-width: 34rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.demo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field__opt { font-weight: 400; color: var(--ink-faint); }
.form-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 20%, transparent);
}
.form-field input:user-invalid { border-color: var(--red); }

.form-consents { border: none; padding: 0; margin: 0.3rem 0 0; min-inline-size: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.form-consents__legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; padding: 0; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; text-align: left; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { margin: 0.15rem 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--cyan); cursor: pointer; }
.consent__req { color: var(--ink-faint); }

.form-note { font-size: 0.75rem; line-height: 1.55; color: var(--ink-faint); text-align: left; margin: 0; }
.demo-form__submit { align-self: flex-start; margin-top: 0.4rem; }
.form-status {
  font-size: 0.9rem; line-height: 1.55; color: var(--green-deep);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-radius: 12px; padding: 0.85rem 1rem; text-align: left; margin: 0;
}

@media (max-width: 560px) {
  .demo-form__row { grid-template-columns: 1fr; }
  .demo-form__submit { align-self: stretch; }
}

/* ---- PODSTRONY PRAWNE (regulamin, polityka prywatności) ---- */
.legal-section { padding: 0 1.5rem clamp(1rem, 3vw, 2rem); }
.legal { max-width: 52rem; margin: 0 auto; }
.legal-h2 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; line-height: 1.3; margin: 2.6rem 0 1.1rem; padding-top: 1.6rem; border-top: 1px solid rgba(0,0,0,0.08); }
.legal-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-h2__no { color: #1d1d1f; margin-right: 0.35rem; }
.legal-para { color: #424245; line-height: 1.72; margin: 0 0 1rem; }
.legal-list, .legal-sublist { list-style: none; margin: 0 0 1rem; padding: 0; }
.legal-sublist { margin-left: 1.7rem; margin-top: -0.4rem; }
.legal-item { display: flex; gap: 0.6rem; color: #424245; line-height: 1.72; margin: 0 0 0.55rem; }
.legal-item__num { flex: none; min-width: 1.7rem; color: #1d1d1f; font-weight: 500; font-variant-numeric: tabular-nums; }
.legal-item--sub .legal-item__num { min-width: 1.9rem; color: #6e6e73; font-weight: 400; }
.legal-item__txt { flex: 1; }
.legal-todo { color: #9a5b00; background: rgba(255,190,60,0.18); padding: 0.05em 0.35em; border-radius: 5px; font-style: italic; }
@media (max-width: 560px) {
  .legal-item__num { min-width: 1.5rem; }
  .legal-item--sub .legal-item__num { min-width: 1.7rem; }
  .legal-sublist { margin-left: 1rem; }
}

/* ---- KROPKA JAKO ZNAK MARKI (wedrujaca kropka usunieta) ---- */
/* Kropka nie wedruje juz przez strone; zostaje jako interpunkcja marki:
   swieci na koncu naglowka hero oraz na koncu finalowego "Wygrana." */
.dot-layer { display: none !important; }
.socket--hero { display: none !important; }
.hero__title .brand-period {
  color: #40a9ff;
  text-shadow: 0 0 12px rgba(64,169,255,0.85), 0 0 34px rgba(64,169,255,0.5);
}
.socket--final {
  background: #40a9ff !important;
  border-color: #40a9ff !important;
  box-shadow: 0 0 10px rgba(64,169,255,0.8), 0 0 26px rgba(64,169,255,0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title .brand-period { animation: brand-period-pulse 3.4s ease-in-out infinite; }
  .socket--final { animation: brand-socket-pulse 3.4s ease-in-out infinite; }
}
@keyframes brand-period-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(64,169,255,0.8), 0 0 26px rgba(64,169,255,0.45); }
  50% { text-shadow: 0 0 16px rgba(64,169,255,1), 0 0 44px rgba(64,169,255,0.65); }
}
@keyframes brand-socket-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(64,169,255,0.8), 0 0 26px rgba(64,169,255,0.45); }
  50% { box-shadow: 0 0 16px rgba(64,169,255,1), 0 0 44px rgba(64,169,255,0.65); }
}
