/* ========================================================================
   KLUB ŚRODOWYCH SPACERÓW — Landing
   Editorial noir + book-edition dignity + premium culture-brand precision
   ======================================================================== */

:root {
  --primary: #142820;
  --secondary: #2A4437;
  --tertiary: #B69359;
  --tertiary-hover: #D0B273;
  --wine: #5A2433;
  --paper: #F3EFE6;
  --paper-muted: #DDD6C7;
  --ink: #171B18;
  --ink-muted: #5E665F;
  --night: #0C1511;
  --line: #AFA796;
  --gold-intensity: 1;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(90px + env(safe-area-inset-top, 0px));
  /* Global 125% scaling — cała strona używa rem/em, więc wszystko rośnie proporcjonalnie */
  font-size: 125%;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--tertiary); color: var(--night); }

/* Focus states — accessibility AA */
:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 3px;
}

/* ---------- Typography scale ---------- */

.display, .h1, .h2, .h3, .serif {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display {
  font-size: clamp(4.5rem, 11vw, 8.75rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); line-height: 0.94; }
.h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98; letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }

.label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.body-lg { font-size: 1.25rem; line-height: 1.55; }
.body-md { font-size: 1.0625rem; line-height: 1.65; }
.body-sm { font-size: 0.9375rem; line-height: 1.55; }

.italic { font-style: italic; }
.center { text-align: center; }

/* Gold accent modifier */
.gold { color: var(--tertiary); }
.wine-color { color: var(--wine); }

/* ---------- Grid & container ---------- */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}

.container-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

section { position: relative; }

/* ---------- Progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--tertiary);
  z-index: 200;
  transition: width 0.1s linear;
  opacity: calc(0.4 + 0.6 * var(--gold-intensity));
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* wysokość: 72px treści + safe-area (notch/Dynamic Island) */
  height: calc(72px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(20, 40, 32, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(175, 167, 150, 0.14);
  z-index: 150;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: background 0.4s ease;
}

.nav-inner {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.nav-mark,
.nav-mark-desktop {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-mark-sigil {
  width: 28px; height: 28px;
  border: 1px solid var(--tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
}

.nav-anchors {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex: 1;
}

.nav-anchors a {
  color: rgba(243, 239, 230, 0.72);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 2px;
}

.nav-anchors a:hover, .nav-anchors a.active {
  color: var(--paper);
}
.nav-anchors a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 2px; right: 2px;
  height: 1px;
  background: var(--tertiary);
}

.nav-cta,
.nav-cta-desktop {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* ---------- Mobile / tablet hamburger + overlay menu ---------- */

.nav-burger {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 210;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background 0.25s ease;
}
.nav-burger.is-open span { background: var(--paper); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  position: fixed;
  /* Zaczyna się dokładnie pod belką nav, rozciąga do dołu ekranu */
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  background: linear-gradient(165deg, rgba(12, 21, 17, 0.98) 0%, rgba(20, 40, 32, 0.98) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  padding: clamp(32px, 6vh, 56px) 32px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.nav-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 30px);
  text-align: center;
}
.nav-mobile-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 600;
  color: rgba(243, 239, 230, 0.82);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.25s ease, opacity 0.4s ease, transform 0.4s ease;
}
.nav-mobile-menu.is-open .nav-mobile-links a {
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--tertiary); }
.nav-mobile-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 28px;
  height: 1px;
  background: var(--tertiary);
  transform: translateX(-50%);
}

.nav-mobile-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.nav-mobile-menu.is-open .nav-mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  /* burger pokazywany w głównym bloku responsywnym poniżej */
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border: 0;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--tertiary);
  color: var(--night);
}
.btn-primary:hover {
  background: var(--tertiary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  padding: 16px 4px;
  border-bottom: 1px solid rgba(243, 239, 230, 0.4);
  border-radius: 0;
}
.btn-secondary:hover {
  border-bottom-color: var(--tertiary);
  color: var(--tertiary);
}

.btn-secondary-dark {
  background: transparent;
  color: var(--primary);
  padding: 16px 4px;
  border-bottom: 1px solid rgba(23, 27, 24, 0.35);
  border-radius: 0;
}
.btn-secondary-dark:hover {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.btn-arrow::after {
  content: '→';
  font-size: 1.05rem;
  transform: translateY(-1px);
}

/* ---------- Section chrome ---------- */

.section-night { background: var(--night); color: var(--paper); }
.section-primary { background: var(--primary); color: var(--paper); }
.section-secondary { background: var(--secondary); color: var(--paper); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-wine {
  background: linear-gradient(180deg, var(--wine) 0%, #401A26 55%, var(--night) 100%);
  color: var(--paper);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tertiary);
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--tertiary);
}

.divider-line {
  height: 1px;
  background: var(--line);
  opacity: 0.35;
  border: 0;
}

/* ========================================================================
   SECTION 01 — HERO
   ======================================================================== */

.hero {
  min-height: 92vh;
  background: var(--night);
  color: var(--paper);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 15% 75%, rgba(12, 21, 17, 0.55) 0%, transparent 55%),
    linear-gradient(90deg, rgba(12, 21, 17, 0.92) 0%, rgba(12, 21, 17, 0.55) 42%, rgba(12, 21, 17, 0.15) 78%, rgba(12, 21, 17, 0.4) 100%),
    linear-gradient(180deg, rgba(12, 21, 17, 0.25) 0%, transparent 30%, rgba(12, 21, 17, 0.6) 100%);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  filter: saturate(0.92) brightness(0.85);
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 75% 40%, rgba(182, 147, 89, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* SVG silhouette of villa + walkers, drawn in CSS */
.hero-villa {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  height: 78%;
  opacity: 0.55;
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.94  0 0 0 0 0.9  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.hero-eyebrow {
  color: var(--tertiary);
  margin-bottom: 40px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin-bottom: 44px;
  color: var(--paper);
}

.hero-title-line {
  display: block;
}
.hero-title-line-2 { padding-left: 0.2em; }
.hero-title-line-3 { padding-left: 0.05em; font-style: italic; color: rgba(243, 239, 230, 0.92); }

.hero-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  color: rgba(243, 239, 230, 0.86);
  max-width: 640px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 8px 40px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-microcopy {
  font-size: 0.85rem;
  color: rgba(243, 239, 230, 0.55);
  max-width: 460px;
  letter-spacing: 0.02em;
}

.hero-scroll-hint {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: 36px;
  z-index: 5;
  color: rgba(243, 239, 230, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--tertiary));
  transform: rotate(180deg);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: rotate(180deg) scaleY(0.7); }
  50% { opacity: 1; transform: rotate(180deg) scaleY(1); }
}

.hero-corner {
  position: absolute;
  top: 100px;
  right: clamp(24px, 4vw, 56px);
  z-index: 5;
  text-align: right;
  color: rgba(243, 239, 230, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  line-height: 1.8;
}

/* ========================================================================
   SECTION 02 — MANIFEST
   ======================================================================== */

.manifest {
  background: var(--paper);
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
}

.manifest-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.manifest-lhs {
  position: sticky;
  top: 120px;
}

.manifest-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-weight: 600;
}

.manifest-h2 em {
  font-style: italic;
  color: var(--wine);
}

.manifest-rhs > p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(175, 167, 150, 0.35);
  max-width: 620px;
}
.manifest-rhs > p:last-of-type { border-bottom: 0; }

.manifest-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--primary);
  margin-top: 56px;
  padding-left: 32px;
  border-left: 2px solid var(--tertiary);
  max-width: 620px;
}

/* ========================================================================
   SECTION 03 — DOM POD LIPAMI
   ======================================================================== */

.dom {
  background: var(--night);
  color: var(--paper);
  padding: clamp(96px, 14vw, 160px) 0 0;
}

.dom-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.dom-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-weight: 600;
}
.dom-h2 em { font-style: italic; color: var(--tertiary); font-weight: 400; }

.dom-copy p {
  color: rgba(243, 239, 230, 0.78);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 520px;
}

.dom-image {
  width: 100%;
  height: clamp(420px, 62vh, 720px);
  background: linear-gradient(180deg, #0C1511 0%, #142820 35%, #0C1511 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px clamp(24px, 5vw, 56px);
}
.dom-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.9) brightness(0.88);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 6s ease-out;
  z-index: 0;
}
.dom-image-photo.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.dom-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,21,17,0.75) 100%);
  pointer-events: none;
  z-index: 2;
}
.dom-image-caption {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 3;
  padding: 24px clamp(24px, 5vw, 56px);
  display: flex;
  gap: 24px;
  align-items: baseline;
  color: var(--paper);
}
.dom-image-caption-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.dom-image-caption-label {
  font-family: 'Manrope', sans-serif;
  color: rgba(243, 239, 230, 0.85);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dom-image .placeholder-label {
  color: rgba(243, 239, 230, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dom-image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dom-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(175, 167, 150, 0.15);
  margin-top: 0;
}
.dom-points-4 { grid-template-columns: repeat(4, 1fr); }

.dom-point {
  padding: 32px 28px;
  min-width: 0;
  border-right: 1px solid rgba(175, 167, 150, 0.15);
  border-top: 2px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.dom-point:last-child { border-right: 0; }
.dom-point:hover { background: rgba(182, 147, 89, 0.05); }
.dom-point.active {
  background: rgba(182, 147, 89, 0.07);
  border-top-color: var(--tertiary);
}

.dom-point-label {
  color: var(--tertiary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dom-point-label::before {
  content: attr(data-idx);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tertiary);
}

.dom-point-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(243, 239, 230, 0.85);
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.35s ease, margin-top 0.4s ease;
}
.dom-point.active .dom-point-text {
  max-height: 100px;
  opacity: 1;
  margin-top: 8px;
}

.dom-point-preview {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(243, 239, 230, 0.5);
  line-height: 1.35;
}
.dom-point.active .dom-point-preview { display: none; }

/* ========================================================================
   SECTION 04 — BOHATEROWIE
   ======================================================================== */

.bohaterowie {
  background: var(--primary);
  color: var(--paper);
  padding: clamp(96px, 14vw, 160px) 0;
  overflow: hidden;
}

.boh-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.boh-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.boh-h2 em { font-style: italic; color: var(--tertiary); font-weight: 400; }

.boh-intro {
  font-size: 1.15rem;
  color: rgba(243, 239, 230, 0.78);
  max-width: 460px;
  line-height: 1.55;
}

/* Horizontal rail */
.boh-rail-wrap {
  position: relative;
}

.boh-rail {
  display: grid;
  grid-template-columns: 55fr repeat(5, 22fr);
  gap: 20px;
  min-height: 620px;
}

.boh-portrait {
  position: relative;
  overflow: hidden;
  background: var(--night);
  cursor: pointer;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.boh-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s ease, opacity 0.4s ease;
}
.boh-portrait:hover img { transform: scale(1.03); }

.boh-portrait.dimmed {
  filter: brightness(0.35) saturate(0.6);
}

.boh-portrait-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}
.boh-portrait-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.boh-portrait-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 6px;
}
.boh-portrait-role {
  font-size: 0.68rem;
  color: rgba(243, 239, 230, 0.7);
  letter-spacing: 0.16em;
  font-weight: 600;
}

.boh-portrait-corner {
  position: absolute;
  top: 16px; left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--tertiary);
  z-index: 2;
  letter-spacing: 0.05em;
}

/* Detail panel underneath */
.boh-detail {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(175, 167, 150, 0.2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  min-height: 220px;
}

.boh-detail-left .boh-detail-tag {
  color: var(--tertiary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.boh-detail-left .boh-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.02;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.boh-detail-left .boh-detail-role {
  color: rgba(243, 239, 230, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-top: 14px;
}

.boh-detail-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(243, 239, 230, 0.82);
  max-width: 640px;
}

.boh-detail-key {
  position: absolute;
  right: 0;
  top: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem;
  line-height: 0.8;
  color: rgba(182, 147, 89, 0.1);
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}

/* Variant: grid */
.boh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.boh-grid .boh-portrait {
  aspect-ratio: 4/5;
  min-height: unset;
}

/* ========================================================================
   SECTION 05 — TOMY
   ======================================================================== */

.tomy {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 14vw, 160px) 0;
}

.tomy-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 96px;
  align-items: end;
}

.tomy-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--primary);
  font-weight: 600;
}
.tomy-h2 em { font-style: italic; color: var(--wine); font-weight: 400; }

.tomy-intro { font-size: 1.15rem; line-height: 1.6; color: var(--ink); max-width: 480px; }

/* Sticky number layout */
.tomy-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.tomy-num-sticky {
  position: sticky;
  top: 120px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.05em;
  transition: color 0.4s ease;
}

.tomy-num-sticky-num {
  font-size: 10rem;
  display: block;
  transition: opacity 0.5s ease;
}
.tomy-num-sticky-arc {
  display: block;
  margin-top: 28px;
  color: var(--ink-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tomy-list {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 120px);
}

.tomy-item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.tomy-cover {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 2/3;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    -1px 0 0 rgba(0,0,0,0.4) inset,
    0 2px 0 rgba(0,0,0,0.35) inset,
    12px 18px 40px rgba(20, 24, 20, 0.35),
    24px 28px 80px rgba(20, 24, 20, 0.28);
  transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1), box-shadow 0.5s ease;
  background: var(--night);
}
.tomy-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tomy-item:hover .tomy-cover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    -1px 0 0 rgba(0,0,0,0.4) inset,
    0 2px 0 rgba(0,0,0,0.4) inset,
    16px 26px 54px rgba(20, 24, 20, 0.42),
    28px 36px 100px rgba(20, 24, 20, 0.32);
}

/* Legacy cover overlay classes removed — replaced by CoverArt system below */

/* ========================================================================
   COVER ART — editorial-grade book cover typography system
   Used identically on landing (Tomy section) and tom-XX.html hero.
   ======================================================================== */

.cover-art {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #0C1511;
  color: #F3EFE6;
  isolation: isolate;
  font-family: 'Cormorant Garamond', serif;
  --gold: #C9A567;
  --gold-soft: rgba(201, 165, 103, 0.7);
  --ink-title: #F5F0E3;
  --edge: rgba(201, 165, 103, 0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    -1px 0 0 rgba(0,0,0,0.4) inset,
    0 2px 0 rgba(0,0,0,0.35) inset,
    12px 18px 40px rgba(20, 24, 20, 0.35),
    24px 28px 80px rgba(20, 24, 20, 0.28);
  transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1), box-shadow 0.5s ease;
}

.cover-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.85) brightness(0.7) contrast(1.05);
}

.cover-art-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(12, 21, 17, 0.85) 0%,
      rgba(12, 21, 17, 0.55) 14%,
      rgba(12, 21, 17, 0.15) 34%,
      rgba(12, 21, 17, 0.15) 55%,
      rgba(12, 21, 17, 0.55) 74%,
      rgba(12, 21, 17, 0.95) 100%
    );
}

/* Spine — vertical golden band on the left */
.cover-art-spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6%;
  min-width: 22px;
  max-width: 34px;
  z-index: 3;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.75) 0%,
      rgba(0,0,0,0.35) 65%,
      rgba(0,0,0,0.05) 100%
    );
  border-right: 1px solid rgba(201, 165, 103, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6% 0;
  pointer-events: none;
}
.cover-art-spine-mark,
.cover-art-spine-num {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.52em;
}
.cover-art-spine-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  font-size: 0.72em;
}

/* Top block */
.cover-art-top {
  position: absolute;
  top: 8.5%;
  left: 12%;
  right: 8%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65em;
}
.cover-art-publisher {
  color: var(--gold-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  line-height: 1;
}
.cover-art-author {
  color: var(--ink-title);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Divider between top and title */
.cover-art-rule {
  position: absolute;
  top: 22%;
  left: 22%;
  right: 12%;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--edge) 30%,
    var(--edge) 70%,
    transparent 100%
  );
}
.cover-art-rule::before,
.cover-art-rule::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 0;
}
.cover-art-rule::before { left: 30%; }
.cover-art-rule::after { left: 70%; }

/* Title block — the star */
.cover-art-title-block {
  position: absolute;
  top: 32%;
  left: 12%;
  right: 8%;
  z-index: 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9em;
}
.cover-art-title {
  color: var(--ink-title);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.15em;
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
  font-feature-settings: "liga" 1, "dlig" 1, "swsh" 0;
}
.cover-art-motto {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 82%;
  text-wrap: balance;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  opacity: 0.92;
}

/* Bottom block */
.cover-art-bottom {
  position: absolute;
  bottom: 6.5%;
  left: 12%;
  right: 8%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85em;
}
.cover-art-series-line {
  display: flex;
  gap: 0.7em;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}
.cover-art-series-dot { opacity: 0.6; letter-spacing: 0; }
.cover-art-series-tom { color: var(--ink-title); font-weight: 700; }
.cover-art-sigil {
  width: 3em;
  height: 1.5em;
  color: var(--gold);
  opacity: 0.9;
}

/* SIZE VARIANTS — font-size drives all em-based scaling */
.cover-size-sm { font-size: 12px; }   /* small nav thumbnails */
.cover-size-md { font-size: 18px; }   /* landing default */
.cover-size-lg { font-size: 22px; }   /* landing hover / larger */
.cover-size-xl { font-size: 30px; }   /* tom hero */

/* Tilted variant — for tom-XX hero */
.cover-art.cover-tilted {
  transform: rotate(-1.8deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    -1px 0 0 rgba(0,0,0,0.4) inset,
    0 4px 0 rgba(0,0,0,0.4) inset,
    24px 32px 60px rgba(0,0,0,0.55),
    -8px 20px 80px rgba(0,0,0,0.35);
}

.tomy-item:hover .cover-art {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    -1px 0 0 rgba(0,0,0,0.4) inset,
    0 2px 0 rgba(0,0,0,0.4) inset,
    16px 26px 54px rgba(20, 24, 20, 0.42),
    28px 36px 100px rgba(20, 24, 20, 0.32);
}
.tomy-item:hover .cover-art .cover-art-title {
  color: #FFFDF7;
}

/* Reset .tomy-cover to just a positioning wrapper for CoverArt */
.tomy-cover-wrap {
  position: relative;
  display: block;
}



.tomy-text .tomy-tomnum {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.tomy-text .tomy-tomnum::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--tertiary);
  vertical-align: middle;
  margin-left: 14px;
}

.tomy-text .tomy-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  text-wrap: balance;
}

.tomy-text .tomy-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--wine);
  margin-bottom: 24px;
  line-height: 1.3;
}

.tomy-text .tomy-copy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Volume 4/5 divider — the arc break */
.tomy-arc-divider {
  grid-column: 1 / -1;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: center;
}
.tomy-arc-divider .arc-label {
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.tomy-arc-divider hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, var(--wine), transparent 80%);
}

.tomy-cta-wrap {
  margin-top: clamp(64px, 10vw, 120px);
  text-align: center;
}

.tomy-cta-wrap .tomy-cta-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--wine);
  margin-bottom: 32px;
}

/* Boxset showcase */
.boxset {
  margin-top: clamp(96px, 12vw, 140px);
  padding-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid rgba(175, 167, 150, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.boxset-image {
  background: transparent;
  min-height: clamp(360px, 42vw, 560px);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boxset-image img,
.boxset-image-photo {
  width: 100%;
  height: auto;
  max-height: clamp(360px, 42vw, 560px);
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(20, 24, 20, 0.32));
}

.boxset-content .label { color: var(--wine); margin-bottom: 20px; display: inline-block; }
.boxset-content .boxset-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.boxset-content p {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ========================================================================
   SECTION 06 — MAPA / ARC
   ======================================================================== */

.mapa {
  background: var(--night);
  color: var(--paper);
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
}

.mapa-header {
  text-align: center;
  margin-bottom: 96px;
}
.mapa-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
  font-weight: 600;
}
.mapa-h2 em { font-style: italic; color: var(--tertiary); font-weight: 400; }

.mapa-viz {
  position: relative;
  padding: 40px 0 80px;
}

.mapa-svg {
  width: 100%;
  height: 240px;
  display: block;
}

.mapa-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  margin-top: -60px;
}

.mapa-node {
  text-align: center;
  color: rgba(243, 239, 230, 0.72);
}

.mapa-node-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--tertiary);
  background: var(--night);
  border-radius: 50%;
  margin: 0 auto 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.mapa-node.arc-2 .mapa-node-dot { border-color: var(--tertiary); }
.mapa-node:hover .mapa-node-dot { background: var(--tertiary); transform: scale(1.4); }

.mapa-node-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 1rem;
  margin-bottom: 6px;
}
.mapa-node-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.2;
  color: rgba(243, 239, 230, 0.85);
  text-wrap: balance;
}

.mapa-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid rgba(175, 167, 150, 0.15);
}

.mapa-phase-label {
  color: var(--tertiary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.mapa-phase h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mapa-phase p {
  color: rgba(243, 239, 230, 0.75);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
}

.mapa-footer {
  text-align: center;
  margin-top: 96px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: rgba(243, 239, 230, 0.75);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   SECTION 07 — POZNAŃ
   ======================================================================== */

.poznan {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 14vw, 160px) 0;
  position: relative;
}

.poznan-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.poznan-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-weight: 600;
}

.poznan-copy p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 480px;
}

/* Asymmetric image collage */
.poznan-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 20px;
}

.poznan-img {
  background: var(--secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: rgba(243, 239, 230, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.poznan-img.img-1 {
  grid-column: 1 / span 7;
  grid-row: 1 / span 5;
  background: linear-gradient(135deg, #1a3129 0%, #0C1511 100%);
}
.poznan-img.img-2 {
  grid-column: 8 / span 5;
  grid-row: 1 / span 8;
  background: linear-gradient(160deg, #2A4437 0%, #142820 100%);
}
.poznan-img.img-3 {
  grid-column: 1 / span 7;
  grid-row: 6 / span 4;
  background: linear-gradient(120deg, #35291f 0%, #1a1410 100%);
}

.poznan-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 1.2s ease;
}
.poznan-img:hover img { transform: scale(1.04); }
.poznan-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,21,17,0.7) 100%);
  pointer-events: none;
}

.poznan-motifs {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(175, 167, 150, 0.4);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.poznan-motif {
  padding: 12px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.poznan-motif + .poznan-motif::before {
  content: '·';
  color: var(--tertiary);
  margin-right: 24px;
  font-size: 1.2rem;
}

/* ========================================================================
   SECTION 08 — AUTOR
   ======================================================================== */

.autor {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 14vw, 180px) 0;
  border-top: 1px solid rgba(175, 167, 150, 0.35);
}

.autor-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 96px;
  align-items: start;
}

.autor-portrait-wrap {
  position: relative;
}

.autor-portrait {
  aspect-ratio: 4/5;
  width: 100%;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 24px 80px rgba(20, 24, 20, 0.18);
}
.autor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.autor-portrait-caption {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.autor-content {
  padding-top: 16px;
}

.autor-eyebrow {
  color: var(--tertiary);
  margin-bottom: 20px;
}

.autor-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 40px;
}

.autor-content p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 640px;
}

.autor-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  color: var(--primary);
  margin: 48px 0 32px;
  padding-left: 32px;
  border-left: 2px solid var(--tertiary);
  max-width: 620px;
}

.autor-meta {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(175, 167, 150, 0.4);
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.autor-meta a { color: var(--primary); text-decoration: none; }
.autor-meta a:hover { color: var(--wine); }

/* ========================================================================
   SECTION 09 — NEWSLETTER
   ======================================================================== */

.newsletter {
  background: linear-gradient(180deg, var(--wine) 0%, #401A26 55%, var(--night) 100%);
  color: var(--paper);
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(182, 147, 89, 0.15), transparent 55%);
  pointer-events: none;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-eyebrow { color: var(--tertiary); margin-bottom: 32px; }

.newsletter-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.newsletter-h2 em { font-style: italic; color: var(--tertiary); font-weight: 400; }

.newsletter-copy {
  font-size: 1.1rem;
  color: rgba(243, 239, 230, 0.82);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.4);
  padding-bottom: 12px;
  max-width: 460px;
  transition: border-color 0.3s ease;
}
.newsletter-form:focus-within { border-color: var(--tertiary); }

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  padding: 14px 0;
}
.newsletter-form input::placeholder {
  color: rgba(243, 239, 230, 0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.newsletter-form button {
  background: transparent;
  border: 0;
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}
.newsletter-form button:hover { color: var(--tertiary-hover); }

.newsletter-consent {
  margin-top: 20px;
  color: rgba(243, 239, 230, 0.45);
  font-size: 0.8rem;
  max-width: 460px;
}

.newsletter-success {
  display: none;
  padding: 20px 24px;
  border-left: 2px solid var(--tertiary);
  background: rgba(182, 147, 89, 0.08);
  color: var(--paper);
  max-width: 460px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 24px;
}
.newsletter-success.visible { display: block; }

.newsletter-right {
  position: relative;
  height: 480px;
  background: linear-gradient(180deg, rgba(12,21,17,0.4) 0%, rgba(12,21,17,0.9) 100%);
  overflow: hidden;
  border: 1px solid rgba(182, 147, 89, 0.2);
}
.newsletter-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
}
.newsletter-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(90,36,51,0.35) 0%, transparent 50%), linear-gradient(180deg, transparent 60%, rgba(12,21,17,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.newsletter-right-inner { z-index: 2; }

.newsletter-right-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(243, 239, 230, 0.35);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.4;
  padding: 40px;
}

/* ========================================================================
   SECTION 10 — FINAŁ
   ======================================================================== */

.final {
  min-height: 100vh;
  background: var(--night);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(182, 147, 89, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0C1511 0%, #142820 45%, #0C1511 100%);
  z-index: 0;
}

.final-silhouettes {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 800px;
  height: 200px;
  opacity: 0.65;
  z-index: 1;
}

.final-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.final-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.final-close {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--tertiary);
  line-height: 1.25;
  margin-bottom: 56px;
  font-weight: 400;
}

.final-cta {
  margin-bottom: 88px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px 24px 40px;
  background: var(--night);
  border-top: 1px solid rgba(175, 167, 150, 0.15);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(243, 239, 230, 0.5);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.footer-mark strong { color: var(--paper); font-weight: 600; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(243, 239, 230, 0.55);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--tertiary); }

/* ========================================================================
   Animations — subtle, respectful of reduced motion
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================================================================
   Responsive
   ======================================================================== */

/* ========================================================================
   NAV — Mobile brand block (KŚS sigil + title + subline + burger)
   ======================================================================== */

/* Mobile brand block — hidden on desktop */
.nav-mark-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.nav-mark-mobile-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.nav-mark-mobile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.82rem, 3.5vw, 1.05rem);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.nav-mark-mobile-sub {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(0.56rem, 2.2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Hide desktop CTA on mobile (handled in @media block below) */

/* ========================================================================
   BOH — Mobile carousel show/hide utilities
   ======================================================================== */
.boh-mobile-only { display: none; }
.boh-desktop-only { display: block; }

/* ========================================================================
   BOH — Mobile carousel component
   ======================================================================== */
.boh-mobile-carousel {
  margin-top: 32px;
  width: 100%;
}

/* Horizontal scrollable track */
.boh-mobile-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px 0 20px;
  /* centre first/last cards */
  scroll-padding: 0 20px;
}
.boh-mobile-track::-webkit-scrollbar { display: none; }

/* Individual portrait card */
.boh-mobile-card {
  flex: 0 0 calc(85vw - 32px);
  max-width: 340px;
  scroll-snap-align: center;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.boh-mobile-card-inner {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--primary);
}
.boh-mobile-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, opacity 0.35s ease;
  opacity: 0.72;
}
.boh-mobile-card.is-active .boh-mobile-card-img {
  opacity: 1;
  transform: scale(1.03);
}
.boh-mobile-card.is-active {
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
}

/* corner overlay */
.boh-mobile-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(0deg, rgba(12,21,17,0.92) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.boh-mobile-card-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.boh-mobile-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* dot indicators */
.boh-mobile-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
.boh-mobile-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(175,167,150,0.35);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.boh-mobile-dot.active {
  background: var(--tertiary);
  width: 20px;
  border-radius: 3px;
}

/* description panel below the track */
.boh-mobile-desc {
  margin: 28px 20px 0;
  padding: 24px 20px;
  background: var(--primary);
  border-left: 2px solid var(--tertiary);
}
.boh-mobile-desc-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 6px;
}
.boh-mobile-desc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 4px;
}
.boh-mobile-desc-role {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(243,239,230,0.6);
  margin-bottom: 14px;
}
.boh-mobile-desc-copy {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(243,239,230,0.82);
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 1024px) {
  /* Nav: ukryj desktop, pokaż mobile + ukryj desktop CTA */
  .nav-mark-desktop { display: none; }
  .nav-mark-mobile  { display: flex; flex: 1; min-width: 0; }
  .nav-cta-desktop  { display: none; }
  .nav-anchors      { display: none; }
  /* Nav-inner: flexbox, logo po lewej, burger po prawej */
  .nav-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 clamp(16px, 5vw, 28px);
  }
  /* Burger: zawsze po prawej */
  .nav-burger {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }
  .manifest-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifest-lhs { position: static; }
  .dom-header, .boh-header, .tomy-header, .poznan-header, .autor-grid, .newsletter-grid, .boxset {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .boh-rail { grid-template-columns: 1fr; min-height: unset; }
  .boh-rail .boh-portrait { aspect-ratio: 4/5; }
  .boh-detail { grid-template-columns: 1fr; gap: 32px; }
  .boh-detail-key { font-size: 6rem; }
  .tomy-grid { grid-template-columns: 1fr; gap: 40px; }
  .tomy-num-sticky { position: static; text-align: center; }
  .tomy-num-sticky-num { font-size: 6rem; }
  .tomy-item { grid-template-columns: 1fr; gap: 40px; }
  .tomy-cover { max-width: 340px; margin: 0 auto; }
  .poznan-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .poznan-img.img-1, .poznan-img.img-2, .poznan-img.img-3 { grid-column: 1; grid-row: auto; }
  .mapa-nodes { grid-template-columns: repeat(4, 1fr); gap: 32px 16px; margin-top: 32px; }
  .mapa-svg { display: none; }
  .mapa-phases { grid-template-columns: 1fr; gap: 40px; }
  .hero-scroll-hint, .hero-corner { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- Tablet tuning (641px–1024px): keep 2-column rhythm instead
   of collapsing everything straight to 1fr like on phones. Covers both
   portrait tablets (~768px) and landscape tablets (~1024px, e.g. iPad). ---------- */
@media (max-width: 1024px) and (min-width: 641px) {
  .dom-points-4 { grid-template-columns: repeat(2, 1fr); }
  .dom-point { border-right: 1px solid rgba(175, 167, 150, 0.15); }
  .dom-point:nth-child(2n) { border-right: 0; }
  .dom-points:not(.dom-points-4) { grid-template-columns: repeat(3, 1fr); }

  .boh-rail { grid-template-columns: repeat(3, 1fr); min-height: unset; }
  .boh-rail .boh-portrait { aspect-ratio: 3/4; }
  .boh-grid { grid-template-columns: repeat(3, 1fr); }

  .tomy-item { grid-template-columns: 260px 1fr; gap: 48px; }
  .tomy-cover { max-width: none; margin: 0; }

  .autor-grid { grid-template-columns: 5fr 7fr; gap: 56px; }

  .newsletter-grid { grid-template-columns: 1fr; gap: 48px; }

  .boxset { grid-template-columns: 1fr; gap: 48px; }
  .boxset-image { min-height: clamp(280px, 60vw, 420px); }
  .boxset-image img, .boxset-image-photo { max-height: clamp(280px, 60vw, 420px); }

  .mapa-nodes { grid-template-columns: repeat(4, 1fr); }

  .poznan-gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; }
  .poznan-img.img-1, .poznan-img.img-2, .poznan-img.img-3 { grid-column: auto; grid-row: auto; }
}

@media (max-width: 640px) {
  .container, .container-wide { padding: 0 20px; }
  /* Hero: top-padding uwzględnia nawigację + safe-area (notch/Dynamic Island) */
  .hero {
    padding: calc(100px + env(safe-area-inset-top, 0px)) 0 48px;
    min-height: 88vh;
  }
  .hero-lead { font-size: 1.1rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dom-points { grid-template-columns: 1fr; }
  .dom-point { border-right: 0; border-bottom: 1px solid rgba(175, 167, 150, 0.15); padding: 24px 20px; }
  .boh-grid { grid-template-columns: 1fr; }
  .mapa-nodes { grid-template-columns: repeat(2, 1fr); }
  .autor-meta { flex-direction: column; gap: 16px; align-items: flex-start; }
  /* Boxset mobile — pełna szerokość ze zdjęciem */
  .boxset { grid-template-columns: 1fr; gap: 32px; }
  .boxset-image { min-height: clamp(260px, 86vw, 400px); }
  .boxset-image img, .boxset-image-photo {
    max-height: clamp(260px, 86vw, 400px);
    object-fit: contain;
    width: 100%;
  }
  .boxset-content { padding: 0 4px; }
  .boxset-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  /* Carousel active on mobile */
  .boh-mobile-only { display: block; }
  .boh-desktop-only { display: none; }
  /* Bohaterowie sekcja: extra padding-bottom dla opisu */
  .bohaterowie { padding-bottom: clamp(48px, 10vw, 72px); }
}


/* ========================================================================
   RICH FOOTER
   ======================================================================== */
.rich-footer {
  background: linear-gradient(180deg, #0C1511 0%, #050908 100%);
  color: var(--paper);
  padding: clamp(72px, 10vw, 120px) 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(182, 147, 89, 0.15);
}
.rich-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--tertiary) 50%, transparent 100%);
  opacity: 0.5;
}

.rich-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}

.rf-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(175, 167, 150, 0.15);
}

/* --- Brand column --- */
.rf-brand { max-width: 380px; }
.rf-logo {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--tertiary);
}
.kks-logo-svg { flex-shrink: 0; }
.rf-logo-name {
  font-family: 'Cormorant Garamond', serif;
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rf-logo-tagline {
  margin-top: 6px;
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.rf-about {
  color: rgba(243, 239, 230, 0.65);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.rf-sigil {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.rf-sigil-line {
  flex: 1;
  height: 1px;
  background: rgba(182, 147, 89, 0.3);
}

/* --- Common column style --- */
.rf-col {
  display: flex;
  flex-direction: column;
}
.rf-col-title {
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(182, 147, 89, 0.2);
}

.rf-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rf-list li a {
  color: rgba(243, 239, 230, 0.78);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.rf-list li a:hover { color: var(--tertiary); transform: translateX(3px); }

.rf-tom-num {
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 22px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.rf-tom-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  color: rgba(243, 239, 230, 0.9);
  line-height: 1.15;
}

.rf-list-chars li a {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.rf-char-name {
  font-family: 'Cormorant Garamond', serif;
  color: rgba(243, 239, 230, 0.9);
  font-size: 1rem;
  line-height: 1.1;
}
.rf-char-role {
  color: rgba(243, 239, 230, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.rf-col-cta {
  color: var(--tertiary);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid rgba(182, 147, 89, 0.15);
  transition: color 0.2s ease, gap 0.2s ease;
  align-self: flex-start;
}
.rf-col-cta:hover { color: var(--tertiary-hover); }

/* --- Contact column --- */
.rf-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.rf-contact-name {
  font-family: 'Cormorant Garamond', serif;
  color: var(--paper);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.rf-contact-loc {
  color: rgba(243, 239, 230, 0.55);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.rf-contact-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(175, 167, 150, 0.1);
}
.rf-contact-label {
  color: var(--tertiary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rf-contact-value {
  color: rgba(243, 239, 230, 0.88);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
a.rf-contact-value:hover { color: var(--tertiary); }

.rf-social {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(175, 167, 150, 0.15);
}
.rf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(182, 147, 89, 0.25);
  color: rgba(243, 239, 230, 0.7);
  transition: all 0.25s ease;
  text-decoration: none;
}
.rf-social a:hover {
  color: var(--night);
  background: var(--tertiary);
  border-color: var(--tertiary);
}

/* --- Newsletter strip in footer --- */
.rf-newsletter-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  margin: 0;
  border-bottom: 1px solid rgba(175, 167, 150, 0.15);
}
.rf-newsletter-strip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-newsletter-strip-eyebrow {
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.rf-newsletter-strip-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--paper);
  line-height: 1.15;
}

/* --- Legal row --- */
.rf-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 28px;
}
.rf-legal-copy {
  color: rgba(243, 239, 230, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.rf-legal-copy strong { color: rgba(243, 239, 230, 0.7); font-weight: 500; }
.rf-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.rf-legal-links a {
  color: rgba(243, 239, 230, 0.5);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}
.rf-legal-links a:hover { color: var(--tertiary); }
.rf-legal-links .sep {
  color: rgba(182, 147, 89, 0.4);
  font-size: 0.7rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .rf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .rf-brand { grid-column: 1 / -1; max-width: none; }
  .rf-newsletter-strip { grid-template-columns: 1fr; gap: 20px; }
  .rf-legal { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .rf-legal-links { justify-content: center; }
}
@media (max-width: 640px) {
  .rf-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ========================================================================
   POZNAŃ — restructured with panorama + editorial diptych
   ======================================================================== */
.poznan-panorama {
  position: relative;
  width: 100%;
  height: clamp(340px, 55vh, 640px);
  overflow: hidden;
  background: var(--night);
  margin-bottom: clamp(64px, 10vw, 120px);
}
.poznan-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}
.poznan-panorama::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,21,17,0.35) 0%, transparent 25%, rgba(243,239,230,0.05) 75%, var(--paper) 100%),
    linear-gradient(90deg, rgba(12,21,17,0.35) 0%, transparent 40%, transparent 60%, rgba(12,21,17,0.35) 100%);
  pointer-events: none;
}
.poznan-panorama-caption {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}
.poznan-panorama-coords { color: var(--tertiary); font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: none; font-style: italic; }
.poznan-panorama-sep { color: rgba(243,239,230,0.4); }

.poznan-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 96px;
  align-items: end;
}

.poznan-copy .poznan-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(175, 167, 150, 0.4);
  max-width: 520px;
}

/* Diptych */
.poznan-diptych {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.poznan-scene {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.poznan-scene-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--night);
  position: relative;
}
.poznan-scene-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.2, 0.65, 0.3, 1);
  filter: saturate(0.9);
}
.poznan-scene:hover .poznan-scene-img img { transform: scale(1.03); }

.poznan-scene-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 4px;
}
.poznan-scene-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 4px;
  min-width: 40px;
  border-right: 1px solid rgba(175, 167, 150, 0.4);
  padding-right: 20px;
}
.poznan-scene-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.poznan-scene-line {
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.poznan-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.poznan-detail {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.poznan-detail-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--night);
}
.poznan-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.2, 0.65, 0.3, 1);
  filter: saturate(0.9);
}
.poznan-detail:hover .poznan-detail-img img { transform: scale(1.03); }

.poznan-motifs-panel {
  padding: 32px 0;
  border-top: 1px solid rgba(175, 167, 150, 0.4);
}
.poznan-motifs-eyebrow {
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.poznan-motifs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.poznan-motifs-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(175, 167, 150, 0.18);
}
.poznan-motifs-list li:last-child { border-bottom: 0; }
.poznan-motif-label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.poznan-motif-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .poznan-header { grid-template-columns: 1fr; gap: 32px; }
  .poznan-diptych { grid-template-columns: 1fr; gap: 48px; }
  .poznan-motifs-list li { grid-template-columns: 100px 1fr; }
}
@media (max-width: 640px) {
  .poznan-motifs-list li { grid-template-columns: 1fr; gap: 4px; }
  .poznan-scene-cap { grid-template-columns: 1fr; gap: 12px; }
  .poznan-scene-num { border-right: 0; padding-right: 0; padding-bottom: 8px; border-bottom: 1px solid rgba(175,167,150,0.4); }
}

/* Deactivate old poznan-gallery classes (no-op guard) */
.poznan-gallery { display: none; }


/* ========================================================================
   MAPA — dynamic narrative arc (rebuild)
   ======================================================================== */
.mapa { position: relative; overflow: hidden; }

.mapa-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(243, 239, 230, 0.65);
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 620px;
  margin: 24px auto 0;
  text-align: center;
}

.mapa-roman-bg {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(20rem, 40vw, 42rem);
  line-height: 0.8;
  color: rgba(182, 147, 89, 0.05);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  text-align: center;
  transition: opacity 0.6s ease;
}

.mapa .container { position: relative; z-index: 1; }

/* Phases split labels — top of viz */
.mapa-phase-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin: 88px 0 32px;
  padding: 0 24px;
}
.mapa-phase-tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mapa-phase-tag-1 { text-align: right; color: var(--tertiary); }
.mapa-phase-tag-2 { text-align: left; color: #6B2E3D; }
.mapa-phase-tag-arc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}
.mapa-phase-tag-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mapa-phase-tag-toms {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  opacity: 0.75;
}
.mapa-phase-divider {
  width: 1px;
  height: 88px;
  background: linear-gradient(to bottom, transparent, rgba(182, 147, 89, 0.6), transparent);
  position: relative;
}
.mapa-phase-divider::before {
  content: '·';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 0;
  background: var(--night);
  padding: 0 8px;
}

/* Timeline */
.mapa-timeline {
  position: relative;
  padding: 40px 0 20px;
  margin-bottom: 48px;
}
.mapa-timeline-svg {
  position: absolute;
  top: 68%;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 0;
  pointer-events: none;
}

.mapa-medallions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.mapa-medallion {
  background: transparent;
  border: 0;
  padding: 20px 8px 16px;
  cursor: pointer;
  color: rgba(243, 239, 230, 0.6);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}
.mapa-medallion:hover, .mapa-medallion:focus-visible {
  color: var(--paper);
  transform: translateY(-4px);
  outline: none;
}
.mapa-medallion.active {
  color: var(--paper);
  transform: translateY(-6px);
}
.mapa-medallion::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 1px solid var(--tertiary);
  background: var(--night);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.mapa-medallion.active::after {
  background: var(--tertiary);
  transform: translateX(-50%) scale(1.4);
  box-shadow: 0 0 0 4px rgba(182, 147, 89, 0.15);
}
.mapa-medallion.arc-2::after {
  border-color: #6B2E3D;
}
.mapa-medallion.arc-2.active::after {
  background: #6B2E3D;
  box-shadow: 0 0 0 4px rgba(107, 46, 61, 0.3);
}

.mapa-medallion-icon {
  width: 44px;
  height: 44px;
  color: var(--tertiary);
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.mapa-medallion.arc-2 .mapa-medallion-icon {
  color: #6B2E3D;
}
.mapa-medallion.active .mapa-medallion-icon,
.mapa-medallion:hover .mapa-medallion-icon {
  opacity: 1;
  transform: scale(1.1);
}
.mapa-medallion-icon svg { width: 100%; height: 100%; }

.mapa-medallion-num {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  opacity: 0.85;
}
.mapa-medallion.arc-2 .mapa-medallion-num { color: #6B2E3D; }

.mapa-medallion-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.15;
  text-align: center;
  color: inherit;
  min-height: 2.6em;
  padding: 0 4px;
  text-wrap: balance;
}

/* Detail panel */
.mapa-detail {
  margin: 40px auto 0;
  max-width: 900px;
  border: 1px solid rgba(182, 147, 89, 0.22);
  background: rgba(182, 147, 89, 0.04);
  padding: 40px 48px;
  position: relative;
  z-index: 1;
}
.mapa-detail::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tertiary), transparent);
}
.mapa-detail-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}
.mapa-detail-num {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 40px;
  border-right: 1px solid rgba(182, 147, 89, 0.25);
}
.mapa-detail-roman {
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 5rem;
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.mapa-detail-arc {
  color: rgba(243, 239, 230, 0.5);
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.mapa-detail-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--paper);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.mapa-detail-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--tertiary);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.mapa-detail-copy {
  color: rgba(243, 239, 230, 0.78);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 560px;
}

@media (max-width: 900px) {
  .mapa-phase-labels { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .mapa-phase-tag-1, .mapa-phase-tag-2 { text-align: center; }
  .mapa-phase-divider { display: none; }
  .mapa-medallions { grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
  .mapa-timeline-svg { display: none; }
  .mapa-medallion-title { display: none; }
  .mapa-detail-inner { grid-template-columns: 1fr; gap: 24px; }
  .mapa-detail-num { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(182, 147, 89, 0.25); padding-bottom: 20px; flex-direction: row; align-items: baseline; gap: 24px; }
  .mapa-detail { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .mapa-medallions { grid-template-columns: repeat(3, 1fr); }
}

/* Hide the OLD mapa-nodes if any leftover */
.mapa-nodes, .mapa-phases, .mapa-viz > .mapa-svg { display: none !important; }


/* ========================================================================
   POZNAŃ — third row triptych (theatre + villa hall)
   ======================================================================== */
.poznan-triptych {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(175, 167, 150, 0.35);
}

.poznan-scene-wide .poznan-scene-img {
  aspect-ratio: 16/9;
}

.poznan-triptych .poznan-scene:not(.poznan-scene-wide) .poznan-scene-img {
  aspect-ratio: 4/5;
  height: 100%;
}

.poznan-triptych .poznan-scene {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .poznan-triptych { grid-template-columns: 1fr; gap: 48px; }
}


/* ========================================================================
   POZNAŃ — quote block replacing motifs list
   ======================================================================== */
.poznan-quote {
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(175, 167, 150, 0.4);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.poznan-quote-eyebrow {
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.poznan-quote-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--tertiary);
}
.poznan-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--primary);
  margin: 0;
  padding: 0;
  text-wrap: balance;
}
.poznan-quote-text::before {
  content: '„';
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.25em;
  color: var(--tertiary);
  margin-right: 4px;
  font-style: normal;
}
.poznan-quote-text::after {
  content: '"';
  color: var(--tertiary);
  font-style: normal;
  margin-left: 2px;
}
.poznan-quote-text em {
  color: var(--wine);
  font-style: italic;
  font-weight: 500;
}
.poznan-quote-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid rgba(175, 167, 150, 0.25);
  color: var(--ink-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.poznan-quote-tags .dot {
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0;
  opacity: 0.7;
}
.poznan-quote-tags span:not(.dot) {
  transition: color 0.2s ease;
}
.poznan-quote-tags span:not(.dot):hover {
  color: var(--primary);
}
.poznan-motifs-panel, .poznan-motifs-list { display: none !important; }
/* Hide the old side-quote if any remains */
.poznan-quote { display: none !important; }

/* ========================================================================
   POZNAŃ — full-width editorial quote (monumentalny akcent)
   ======================================================================== */
.poznan-editorial-quote {
  max-width: 1080px;
  margin: clamp(72px, 10vw, 128px) auto clamp(48px, 6vw, 96px);
  text-align: center;
  padding: 0 clamp(24px, 5vw, 72px);
  position: relative;
}

.peq-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--tertiary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.peq-eyebrow-line {
  width: clamp(48px, 12vw, 120px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--tertiary), var(--tertiary));
}
.peq-eyebrow-line:last-child {
  background: linear-gradient(to right, var(--tertiary), var(--tertiary), transparent);
}

.peq-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.25;
  color: var(--primary);
  margin: 0;
  padding: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  position: relative;
}
.peq-text::before {
  content: '„';
  position: absolute;
  top: -0.4em;
  left: -0.05em;
  font-size: 5em;
  color: var(--tertiary);
  opacity: 0.22;
  font-style: normal;
  line-height: 0.8;
  font-family: 'Cormorant Garamond', serif;
  pointer-events: none;
}
.peq-text em {
  color: var(--wine);
  font-style: italic;
  font-weight: 500;
}

.peq-tags {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(175, 167, 150, 0.4);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  align-items: baseline;
  color: var(--ink-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.peq-tags .dot {
  color: var(--tertiary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0;
  opacity: 0.8;
}
.peq-tags span:not(.dot) {
  transition: color 0.25s ease;
  cursor: default;
}
.peq-tags span:not(.dot):hover {
  color: var(--primary);
}

/* ========================================================================
   POZNAŃ GALLERY — filmowy slider z auto-play + thumbnails
   ======================================================================== */
.pg-wrap {
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid rgba(175, 167, 150, 0.35);
}

.pg-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.pg-header .section-eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
}
.pg-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.pg-title em {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
}
.pg-copy {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* Stage */
.pg-stage {
  position: relative;
  aspect-ratio: 21/9;
  width: 100%;
  overflow: hidden;
  background: var(--night);
  box-shadow:
    0 4px 0 rgba(0,0,0,0.05),
    24px 40px 80px rgba(20, 24, 20, 0.15);
}

.pg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
  z-index: 0;
}
.pg-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.pg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.92);
}

.pg-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 21, 17, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Nav arrows */
.pg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  background: rgba(12, 21, 17, 0.55);
  border: 1px solid rgba(182, 147, 89, 0.35);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pg-nav:hover, .pg-nav:focus-visible {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: var(--night);
  transform: translateY(-50%) scale(1.06);
  outline: none;
}
.pg-nav-prev { left: 24px; }
.pg-nav-next { right: 24px; }

/* Caption */
.pg-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  padding: 32px clamp(24px, 4vw, 48px);
  display: flex;
  align-items: flex-end;
  gap: 32px;
  color: var(--paper);
  max-width: 720px;
}
.pg-caption-num {
  display: flex;
  gap: 4px;
  align-items: baseline;
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  line-height: 1;
  min-width: 90px;
  padding-right: 24px;
  border-right: 1px solid rgba(182, 147, 89, 0.4);
}
.pg-caption-num-current {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.pg-caption-num-sep {
  font-size: 1.8rem;
  opacity: 0.5;
}
.pg-caption-num-total {
  font-size: 1.2rem;
  opacity: 0.7;
}
.pg-caption-text { min-width: 0; }
.pg-caption-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.pg-caption-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  color: rgba(243, 239, 230, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Thumbnails */
.pg-thumbs {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
}
.pg-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--night);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  filter: saturate(0.75);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.pg-thumb:hover, .pg-thumb:focus-visible {
  opacity: 0.85;
  filter: saturate(0.9);
  outline: none;
}
.pg-thumb.is-active {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-2px);
}
.pg-thumb.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--tertiary);
  pointer-events: none;
}
.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-thumb-num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--tertiary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* Progress bar */
.pg-progress {
  margin-top: 20px;
}
.pg-progress-track {
  width: 100%;
  height: 1px;
  background: rgba(175, 167, 150, 0.25);
  position: relative;
  overflow: hidden;
}
.pg-progress-fill {
  height: 100%;
  background: var(--tertiary);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 900px) {
  .pg-stage { aspect-ratio: 4/3; }
  .pg-thumbs { grid-template-columns: repeat(5, 1fr); }
  .pg-nav { width: 44px; height: 44px; }
  .pg-nav-prev { left: 12px; }
  .pg-nav-next { right: 12px; }
  .pg-caption { flex-direction: column; gap: 16px; padding: 20px; }
  .pg-caption-num { border-right: 0; padding-right: 0; min-width: 0; }
  .pg-caption-num-current { font-size: 2.2rem; }
  .peq-text::before { top: -0.2em; font-size: 4em; }
}
@media (max-width: 560px) {
  .pg-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

/* ---------- Floating Music toggle (bottom-right, mobile + tablet + desktop) ---------- */
.music-toggle {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(182, 147, 89, 0.4);
  border-radius: 999px;
  background: rgba(12, 21, 17, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.music-toggle:hover { transform: translateY(-2px); border-color: var(--tertiary); }
.music-toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary);
  background: rgba(182, 147, 89, 0.14);
  flex-shrink: 0;
}
.music-toggle.is-playing .music-toggle-icon {
  animation: music-pulse 1.6s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 147, 89, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(182, 147, 89, 0.12); }
}
@media (max-width: 640px) {
  .music-toggle { height: 44px; padding: 0 14px 0 12px; gap: 8px; font-size: 0.7rem; }
  .music-toggle-icon { width: 26px; height: 26px; }
}

/* cache-bust 1785196685 */
