﻿    :root {
      --black-950: #030406;
      --text-main: #f7f4ee;
      --text-soft: #d6d1c8;
      --text-muted: #9f9a91;
      --text-faint: #6f6b65;
      --gold-main: #b8973a;
      --gold-light: #b8973a;
      --gold-dark: #b8973a;
      --purple-light: #b26cff;
      --font-sans: 'Inter', system-ui, sans-serif;
      --font-serif: 'Cormorant Garamond', serif;
      /* Jedna szerokość treści dla całej witryny (porównywalna z podstronami). */
      --site-content-max: 1320px;
      --site-content-wide: 1440px;
      --site-content-narrow: 1040px;
      --site-content-text: 760px;
      --site-content-pad-x: clamp(20px, 3.6vw, 48px);

      /*
        Spacing sekcji — bazowy rytm dla kolejnego etapu porządkowania podstron.
        Same tokeny i klasy pomocnicze nie zmieniają obecnego wyglądu, dopóki
        konkretna sekcja nie zostanie na nie przepięta.
      */
      --section-pad-y-compact: clamp(40px, 5.5vh, 72px);
      --section-pad-y: clamp(48px, 7vh, 96px);
      --section-pad-y-large: clamp(56px, 9vh, 112px);
      --section-pad-y-hero: clamp(48px, 8vh, 104px);
      --section-pad-y-cta: clamp(64px, 10vh, 120px);
      --section-gap: clamp(32px, 5vh, 64px);
      --section-gap-tight: clamp(20px, 3vh, 36px);
      --section-gap-wide: clamp(44px, 6vh, 80px);
      --section-header-gap: clamp(14px, 2vh, 24px);
      --section-block-gap: clamp(28px, 4vh, 52px);
      --section-header-max: 780px;
      --section-scroll-margin: 96px;
      /* H1 w pierwszej sekcji (hero) — jedna skala na całej witrynie */
      --hero-h1-font-family: var(--font-serif);
      --hero-h1-font-weight: 500;
      --hero-h1-font-size: clamp(36px, 4vw, 56px);
      --hero-h1-line-height: 1.08;
      --hero-h1-letter-spacing: -0.02em;
      /* H2–H5, tekst podstawowy — jedna skala (Cormorant / Inter) */
      --type-h2-font-family: var(--font-serif);
      --type-h2-font-size: clamp(28px, 3.2vw, 40px);
      --type-h2-font-weight: 600;
      --type-h2-line-height: 1.12;
      --type-h2-letter-spacing: -0.02em;
      --type-h3-font-family: var(--font-serif);
      --type-h3-font-size: clamp(20px, 2vw, 28px);
      --type-h3-font-weight: 600;
      --type-h3-line-height: 1.15;
      --type-h3-letter-spacing: -0.015em;
      --type-h4-font-family: var(--font-serif);
      --type-h4-font-size: clamp(17px, 1.65vw, 22px);
      --type-h4-font-weight: 600;
      --type-h4-line-height: 1.2;
      --type-h4-letter-spacing: -0.01em;
      --type-h5-font-family: var(--font-sans);
      --type-h5-font-size: 11px;
      --type-h5-font-weight: 700;
      --type-h5-line-height: 1.35;
      --type-h5-letter-spacing: 0.12em;
      --type-h5-text-transform: uppercase;
      --type-body-font-family: var(--font-sans);
      --type-body-font-size: 15px;
      --type-body-line-height: 1.65;
      --type-body-font-weight: 400;
      --type-body-sm-font-size: 13px;
      --type-body-sm-line-height: 1.55;
      --type-caption-font-size: 12px;
      --type-caption-line-height: 1.45;
      /* Mały nagłówek nad sekcją (np. „Enter the Map” jako h2) — zostaje h2 dla a11y */
      --type-kicker-font-family: var(--font-serif);
      --type-kicker-font-size: 13px;
      --type-kicker-font-weight: 700;
      --type-kicker-line-height: 1.35;
      --type-kicker-letter-spacing: 0.14em;
      --type-kicker-text-transform: uppercase;

      /* Motion — jedno miejsce na czas i easing (wartości jak w dotychczasowych transition) */
      --motion-ease: ease;
      --motion-carousel: 450ms cubic-bezier(0.25, 0.1, 0.22, 1);
      --motion-150: 150ms;
      --motion-160: 160ms;
      --motion-180: 180ms;
      --motion-200: 200ms;
      --motion-220: 220ms;
      --motion-260: 260ms;
      --motion-280: 280ms;

      /* Surfaces — cienie powtarzane 1:1 w kilku arkuszach */
      --shadow-ambient-soft: 0 8px 28px rgba(20, 14, 6, 0.06);
      --shadow-ambient-md: 0 10px 28px rgba(20, 14, 6, 0.08);
      --shadow-dark-lift: 0 8px 28px rgba(0, 0, 0, 0.35);
      --shadow-nav-ledger: 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px rgba(20, 14, 6, 0.08);

      /* Promienie — skala z istniejących pikseli (bez zmiany wyglądu) */
      --radius-2: 2px;
      --radius-4: 4px;
      --radius-6: 6px;
      --radius-8: 8px;
      --radius-10: 10px;
      --radius-12: 12px;
      --radius-14: 14px;
      --radius-16: 16px;
      --radius-18: 18px;
      --radius-20: 20px;
      --radius-22: 22px;
      --radius-pill: 999px;

      /* Złote kreski akcentu (np. adv-s2__rule) — jedna szerokość bloku, grubość 1px, wspólny kolor */
      --ui-gold-hairline-h: 1px;
      --ui-gold-hairline-w: 2rem;
      --ui-gold-hairline-bg: var(--gold-main);
      --ui-gold-hairline-soft: rgba(184, 151, 58, 0.5);
      --ui-gold-hairline-vertical: rgba(184, 151, 58, 0.5);

      /*
        Naprzemienne tła sekcji — wyłącznie odcienie już obecne w witrynie
        (homepage sections.css, about / founding / documentary / gallery itd.).
      */
      --surface-cream-a: #f9f6f0;
      --surface-cream-b: #f9f7f2;
      --surface-cream-c: #f9f4e8;
      --surface-cream-d: #f8f5ee;
      --surface-cream-e: #fdfcf7;
      --surface-cream-f: #f5f1e9;
      --surface-cream-g: #f9f5eb;
      --surface-cream-h: #faf8f3;
      --surface-taupe: #e8e3d9;
      --surface-taupe-2: #e8e4dc;
      --surface-panel-soft: #f3efe7;
      --surface-stone: #ebe6dd;
      --surface-dark-a: #0d0d0d;
      --surface-dark-b: #0a0a0a;
      --surface-dark-c: #0e0c08;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html {
      background: #ede3d2;
      overscroll-behavior-y: none;
    }

    body {
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      background: #ede3d2;
      color: var(--text-main);
      overscroll-behavior-y: none;
    }

    body.modal-open {
      overflow: hidden;
    }

    /* Skip link — pierwszy focus na klawiaturze; widoczny dopiero po :focus-visible */
    .skip-link {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .skip-link:focus {
      position: fixed;
      left: 12px;
      top: 12px;
      z-index: 10001;
      width: auto;
      height: auto;
      margin: 0;
      padding: 12px 18px;
      overflow: visible;
      clip: auto;
      white-space: normal;
      border-radius: var(--radius-10);
      border: 1px solid rgba(69, 54, 27, 0.35);
      background: #f9f6f0;
      color: #2f2717;
      font-family: var(--type-body-font-family);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: var(--shadow-ambient-md);
    }

    .skip-link:focus-visible {
      outline: 2px solid var(--gold-main);
      outline-offset: 2px;
    }

    #main-content {
      scroll-margin-top: var(--section-scroll-margin);
    }

    .page-shell {
      min-height: 100vh;
      height: auto;
      /* clip zamiast hidden: nie przerywa position:sticky dla navbara przy przewijaniu okna */
      overflow-x: clip;
      overflow-y: visible;
      background:
        radial-gradient(circle at 30% 40%, rgba(119, 84, 30, 0.08), transparent 28%),
        radial-gradient(circle at 84% 60%, rgba(104, 50, 170, 0.10), transparent 32%),
        var(--black-950);
    }

    /*
      Wspólne helpery layoutu sekcji.
      Na tym etapie są pasywne: istniejące sekcje zachowują swoje obecne klasy,
      a te helpery są gotowe do stopniowego przepinania podstron bez dużej regresji.
    */
    .page-section {
      --page-section-pad-top: var(--section-pad-y);
      --page-section-pad-bottom: var(--section-pad-y);
      position: relative;
      padding-block: var(--page-section-pad-top) var(--page-section-pad-bottom);
      scroll-margin-top: var(--section-scroll-margin);
    }

    .page-section--compact {
      --page-section-pad-top: var(--section-pad-y-compact);
      --page-section-pad-bottom: var(--section-pad-y-compact);
    }

    .page-section--large {
      --page-section-pad-top: var(--section-pad-y-large);
      --page-section-pad-bottom: var(--section-pad-y-large);
    }

    .page-section--hero {
      --page-section-pad-top: var(--section-pad-y-hero);
      --page-section-pad-bottom: var(--section-pad-y-hero);
    }

    .page-section--cta {
      --page-section-pad-top: var(--section-pad-y-cta);
      --page-section-pad-bottom: var(--section-pad-y-cta);
    }

    .page-section--flush-top {
      --page-section-pad-top: 0px;
    }

    .page-section--flush-bottom {
      --page-section-pad-bottom: 0px;
    }

    .page-inner {
      width: 100%;
      max-width: calc(var(--site-content-max) + var(--site-content-pad-x) + var(--site-content-pad-x));
      margin-inline: auto;
      padding-inline: var(--site-content-pad-x);
    }

    .page-inner--wide {
      max-width: calc(var(--site-content-wide) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    .page-inner--narrow {
      max-width: calc(var(--site-content-narrow) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    .page-inner--text {
      max-width: calc(var(--site-content-text) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    .section-header {
      display: grid;
      gap: var(--section-header-gap);
      max-width: var(--section-header-max);
    }

    .section-header--center {
      margin-inline: auto;
      text-align: center;
      justify-items: center;
    }

    .section-header--split {
      max-width: none;
      grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
      align-items: end;
      column-gap: var(--section-gap-wide);
    }

    .section-header > * {
      min-width: 0;
    }

    .section-header + * {
      margin-top: var(--section-block-gap);
    }

    .section-stack {
      display: grid;
      gap: var(--section-block-gap);
    }

    .section-stack--tight {
      gap: var(--section-gap-tight);
    }

    .section-stack--wide {
      gap: var(--section-gap-wide);
    }

    /* Domyślna typografia w treści — specyficzność :where() = 0; klasy sectionowe nadpisują tylko kolor/margin.
       Zgodne rozmiary ustawiają tokeny --type-* w :root. */
    :where(main.page-shell) h2 {
      font-family: var(--type-h2-font-family);
      font-size: var(--type-h2-font-size);
      font-weight: var(--type-h2-font-weight);
      line-height: var(--type-h2-line-height);
      letter-spacing: var(--type-h2-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h3 {
      font-family: var(--type-h3-font-family);
      font-size: var(--type-h3-font-size);
      font-weight: var(--type-h3-font-weight);
      line-height: var(--type-h3-line-height);
      letter-spacing: var(--type-h3-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h4 {
      font-family: var(--type-h4-font-family);
      font-size: var(--type-h4-font-size);
      font-weight: var(--type-h4-font-weight);
      line-height: var(--type-h4-line-height);
      letter-spacing: var(--type-h4-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h5 {
      font-family: var(--type-h5-font-family);
      font-size: var(--type-h5-font-size);
      font-weight: var(--type-h5-font-weight);
      line-height: var(--type-h5-line-height);
      letter-spacing: var(--type-h5-letter-spacing);
      text-transform: var(--type-h5-text-transform);
      color: inherit;
    }

    :where(main.page-shell) p {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
      font-weight: var(--type-body-font-weight);
      color: inherit;
    }

    :where(main.page-shell) li {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
    }

    :where(main.page-shell) blockquote {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
    }

    :where(main.page-shell) figcaption {
      font-family: var(--type-body-font-family);
      font-size: var(--type-caption-font-size);
      line-height: var(--type-caption-line-height);
    }

    /* Cienka złota kreska pod nagłówkami sekcji H2 — wyrównanie modyfikatorami. */
    .page-h2-rule {
      display: block;
      width: var(--ui-gold-hairline-w);
      height: var(--ui-gold-hairline-h);
      background: var(--ui-gold-hairline-bg);
      border: 0;
      padding: 0;
      flex-shrink: 0;
      box-sizing: border-box;
      margin: clamp(8px, 1.2vh, 14px) 0 clamp(12px, 1.8vh, 20px);
    }

    .page-h2-rule--align-start {
      margin-left: 0;
      margin-right: auto;
    }

    .page-h2-rule--align-center {
      margin-left: auto;
      margin-right: auto;
    }

    .page-h2-rule--align-end {
      margin-left: auto;
      margin-right: 0;
    }

    /* Dłuższa miękka kreska pod H1 (jak .gal-rule w galerii: max 12rem). */
    .page-h1-rule {
      display: block;
      height: var(--ui-gold-hairline-h);
      margin: clamp(12px, 1.8vh, 18px) 0 clamp(14px, 2vh, 22px);
      padding: 0;
      width: 100%;
      max-width: 12rem;
      background: var(--ui-gold-hairline-soft);
      border: none;
      box-sizing: border-box;
      flex-shrink: 0;
    }

    .page-h1-rule--align-start {
      margin-left: 0;
      margin-right: auto;
    }

    .page-h1-rule--align-center {
      margin-left: auto;
      margin-right: auto;
    }

    .page-h1-rule--align-end {
      margin-left: auto;
      margin-right: 0;
    }

    /* Custom cursor — globalnie (hero.css tylko na index); bez position:fixed podstrony rozpychały transform z app.js. */
    .cursor-dot,
    .cursor-ring {
      position: fixed;
      left: 0;
      top: 0;
      pointer-events: none;
      z-index: 1000;
      transform: translate(-50%, -50%);
    }

    .cursor-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(184, 151, 58, 0.95);
    }

    .cursor-ring {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid rgba(184, 151, 58, 0.62);
      transition: width var(--motion-160) var(--motion-ease), height var(--motion-160) var(--motion-ease), border-color var(--motion-160) var(--motion-ease);
    }

    body.cursor-hover .cursor-ring {
      width: 44px;
      height: 44px;
      border-color: rgba(184, 151, 58, 0.92);
    }

    .welcome-modal {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(16px, 3vw, 28px);
    }

    .welcome-modal[aria-hidden='true'] {
      display: none;
    }

    .welcome-modal__backdrop {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 30%, rgba(126, 83, 28, 0.24), transparent 32%),
        rgba(7, 6, 4, 0.72);
      backdrop-filter: blur(8px);
    }

    .welcome-modal__dialog {
      position: relative;
      width: min(100%, 560px);
      padding: clamp(28px, 4vw, 42px);
      border-radius: var(--radius-18);
      border: 1px solid rgba(184, 151, 58, 0.34);
      background: linear-gradient(180deg, rgba(26, 20, 13, 0.96), rgba(16, 12, 8, 0.98));
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
      text-align: center;
    }

    .welcome-modal__close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(184, 151, 58, 0.34);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.04);
      color: #f7f4ee;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .welcome-modal__eyebrow {
      margin: 0 0 12px;
      font-size: var(--type-caption-font-size);
      line-height: var(--type-caption-line-height);
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(184, 151, 58, 0.9);
    }

    .welcome-modal__title {
      margin: 0;
      font-family: var(--type-h2-font-family);
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: #f7f4ee;
    }

    .welcome-modal__body {
      margin: 18px auto 0;
      max-width: 34ch;
      color: rgba(247, 244, 238, 0.8);
    }

    .welcome-modal__action {
      margin-top: 24px;
      min-width: 220px;
      min-height: 48px;
      padding: 0 24px;
      border: none;
      border-radius: var(--radius-pill);
      background: var(--gold-main);
      color: #ffffff;
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-sm-font-size);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
    }

    @media (max-width: 640px) {
      .welcome-modal__dialog {
        padding: 24px 18px 22px;
      }

      .welcome-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
      }

      .welcome-modal__action {
        width: 100%;
        min-width: 0;
      }
    }

/* Full-viewport image lightbox (delegated from #main-content) */
body.bpm-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.bpm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top, 0px) + 8px)
    max(16px, env(safe-area-inset-right, 0px) + 8px)
    max(16px, env(safe-area-inset-bottom, 0px) + 8px)
    max(16px, env(safe-area-inset-left, 0px) + 8px);
  margin: 0;
  border: 0;
  background: rgba(8, 6, 4, 0.92);
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}

.bpm-lightbox[hidden] {
  display: none !important;
}

.bpm-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.bpm-lightbox__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 227, 210, 0.95);
  color: #2a2118;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.bpm-lightbox__close:hover {
  background: #f5efe3;
}

.bpm-lightbox__close:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

#main-content img[src]:not([src^="data:"]) {
  cursor: zoom-in;
}

#main-content .navbar img,
#main-content .site-footer img {
  cursor: default;
}

/*
  Section scroll reveal (see window.BPM.initSectionReveal in app.js).
  Wyłączenie na pojedynczej stronie — jeden atrybut:
    <html data-section-reveal="off">
  lub na <body> / <main id="main-content">.
  Alternatywa (przed app.js): window.BPM_SECTION_REVEAL = false;
*/
html.bpm-reveal-enabled [data-bpm-section-reveal]:not(.is-bpm-revealed) {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
}

html.bpm-reveal-enabled [data-bpm-section-reveal] {
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

html.bpm-reveal-enabled [data-bpm-section-reveal].is-bpm-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html[data-section-reveal="off"] [data-bpm-section-reveal],
body[data-section-reveal="off"] [data-bpm-section-reveal],
#main-content[data-section-reveal="off"] [data-bpm-section-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.bpm-reveal-enabled [data-bpm-section-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
