:root {
  --paper: #f2ead9;
  --paper-light: #fbf6ec;
  --paper-deep: #d9c7a8;
  --ink: #2b2117;
  --soft-ink: #4b3a2b;
  --muted: #756650;
  --gold: #b88735;
  --gold-soft: #d7b56c;
  --green: #183b2b;
  --green-deep: #0e241a;
  --wine: #6b2634;
  --line: rgba(133, 91, 43, 0.28);
  --line-strong: rgba(180, 130, 55, 0.54);
  --shadow: 0 32px 90px rgba(48, 33, 19, 0.18);
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(44, 83, 61, 0.05), transparent 18%, transparent 82%, rgba(107, 38, 52, 0.05)),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.is-loading .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
}

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

a {
  color: inherit;
}

section {
  scroll-margin-top: 92px;
}

.page-texture,
.site-vignette,
.ambient-motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
  box-shadow: 0 0 18px rgba(184, 135, 53, 0.42);
}

.page-texture {
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 14% 16%, rgba(184, 135, 53, 0.11), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(24, 59, 43, 0.1), transparent 24%);
  background-size: 74px 74px, 74px 74px, auto, auto;
  opacity: 0.64;
}

.site-vignette {
  z-index: -2;
  background:
    radial-gradient(circle at 52% 8%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(90deg, rgba(93, 61, 25, 0.12), transparent 8%, transparent 92%, rgba(93, 61, 25, 0.12));
}

.ambient-motes {
  z-index: 18;
  overflow: hidden;
  max-width: 100vw;
}

.ambient-motes i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(184, 135, 53, 0.34);
  box-shadow: 0 0 14px rgba(184, 135, 53, 0.34);
  animation: moteFloat var(--duration, 16s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(184, 135, 53, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 24;
  opacity: 0;
  transition: opacity 220ms ease;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr 120px;
  align-items: center;
  min-height: 92px;
  padding: 0 6vw;
  transition: background 320ms ease, box-shadow 320ms ease, min-height 320ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(247, 241, 229, 0.9);
  box-shadow: 0 16px 50px rgba(41, 29, 16, 0.1);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: max-content;
  min-width: 0;
  min-height: 74px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark svg {
  width: 54px;
  height: 66px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(97, 67, 24, 0.12));
}

.brand-word {
  display: grid;
  gap: 2px;
  color: #251b12;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-word small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: #251b12;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--gold);
}

.nav-ornament {
  justify-self: end;
  width: 118px;
  height: 20px;
  background:
    linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent) center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 41%, var(--gold) 42% 58%, transparent 59%) center / 16px 16px no-repeat;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 135, 53, 0.48);
  background: rgba(248, 243, 233, 0.82);
  border-radius: 50%;
  justify-self: end;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 86svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 116px 7vw 58px;
  background:
    linear-gradient(90deg, rgba(251, 246, 236, 0.99) 0%, rgba(251, 246, 236, 0.97) 32%, rgba(251, 246, 236, 0.66) 55%, rgba(251, 246, 236, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(201, 172, 118, 0.08));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(184, 135, 53, 0.045) 43px 44px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(72, 45, 22, 0.08));
}

.hero::after {
  content: "";
  position: absolute;
  left: 7vw;
  right: 7vw;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.72;
}

.hero-frame {
  position: absolute;
  inset: 28px 32px;
  border: 1px solid rgba(184, 135, 53, 0.24);
  pointer-events: none;
  z-index: 2;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  border-color: rgba(184, 135, 53, 0.58);
  border-style: solid;
}

.hero-frame::before {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.hero-frame::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.hero-foliage {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 178px;
  height: 520px;
  z-index: -1;
  background: url("assets/foliage.png") left bottom / contain no-repeat;
  opacity: 0.52;
  filter: sepia(0.18) saturate(0.9);
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 66vw;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%, black 100%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 9%;
  transform: scale(1.035);
  filter: saturate(0.98) contrast(1.05);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 246, 236, 0.98), rgba(251, 246, 236, 0.26) 38%, transparent 68%),
    linear-gradient(180deg, rgba(251, 246, 236, 0.02), rgba(54, 37, 21, 0.2));
}

.hero-archer {
  position: absolute;
  left: 5.8vw;
  bottom: 86px;
  width: 286px;
  z-index: 2;
  opacity: 0.94;
  transform: translate3d(0, 0, 0);
  filter: sepia(0.04) saturate(0.98) contrast(1.18) drop-shadow(0 22px 36px rgba(49, 35, 20, 0.2));
  mask-image:
    linear-gradient(180deg, transparent 0%, black 7%, black 88%, transparent 100%),
    linear-gradient(90deg, black 0%, black 76%, transparent 100%);
  mask-composite: intersect;
}

.hero-archer img {
  width: 100%;
}

.spark-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  max-width: 100vw;
}

.spark-field i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(184, 135, 53, 0.76);
  box-shadow: 0 0 16px rgba(184, 135, 53, 0.72);
  animation: ember var(--duration, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(520px, 100%);
  text-align: center;
  color: var(--ink);
}

.hero-copy > * {
  transition: opacity 720ms ease, transform 720ms ease;
}

.hero-copy .eyebrow {
  transition-delay: 110ms;
}

.hero-copy h1 {
  transition-delay: 220ms;
}

.hero-copy .ornament {
  transition-delay: 330ms;
}

.hero-copy .hero-lead {
  transition-delay: 440ms;
}

.hero-copy blockquote {
  transition-delay: 540ms;
}

.hero-copy .button-primary {
  transition-delay: 640ms;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2,
.story-title h2,
.world-copy h2,
.author-copy h2,
.final-quote h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
}

.hero h1 {
  font-size: 4.75rem;
  text-transform: uppercase;
  color: #251b12;
  text-shadow: 0 16px 36px rgba(51, 35, 18, 0.08);
}

.ornament {
  width: 210px;
  height: 30px;
  margin: 28px auto 30px;
  position: relative;
  background:
    linear-gradient(45deg, transparent 41%, var(--gold) 42% 58%, transparent 59%) center / 18px 18px no-repeat;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::before {
  left: 0;
}

.ornament::after {
  right: 0;
  transform: scaleX(-1);
}

.hero-lead {
  position: relative;
  margin: 0 auto;
  max-width: 492px;
  font-family: var(--serif);
  font-size: 1.36rem;
  font-weight: 500;
  line-height: 1.42;
  color: #2f251c;
  text-shadow: 0 1px 0 rgba(251, 246, 236, 0.8);
}

.hero blockquote {
  position: relative;
  margin: 24px auto 0;
  max-width: 430px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.32;
  color: #493728;
  text-shadow: 0 1px 0 rgba(251, 246, 236, 0.82);
}

.hero-lead::before,
.hero blockquote::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 72px);
  height: calc(100% + 30px);
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(251, 246, 236, 0.88), rgba(251, 246, 236, 0.48) 52%, rgba(251, 246, 236, 0));
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 30px;
  border: 1px solid var(--gold);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  background: rgba(251, 246, 236, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  transition: transform 240ms ease, background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.button-primary::after {
  content: "->";
  font-size: 0.95rem;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-3px);
  background: var(--gold);
  color: #fff9ea;
  box-shadow: 0 18px 42px rgba(101, 70, 26, 0.22);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 22px;
  height: 36px;
  transform: translateX(-50%);
  border: 1px solid rgba(184, 135, 53, 0.7);
  border-radius: 20px;
  z-index: 4;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.signal-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr repeat(4, auto) 1fr;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  color: var(--gold);
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
}

.signal-band p {
  margin: 0;
  opacity: 1;
  filter: none;
}

.signal-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.62;
}

.intro-strip {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-card {
  min-height: 242px;
  padding: 28px 36px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.32), rgba(255, 249, 237, 0.08));
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
  transition: transform 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

.intro-card:last-child {
  border-right: 0;
}

.intro-card:hover {
  --lift: -5px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 24px 60px rgba(80, 55, 30, 0.09);
}

.intro-card h2,
.character-card h3,
.beast h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.1;
}

.intro-card p {
  margin: 0 auto 18px;
  max-width: 260px;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-card a {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.line-icon {
  display: block;
  width: 62px;
  height: 50px;
  margin: 0 auto;
  color: var(--gold);
  opacity: 0.92;
}

.book-icon {
  background:
    linear-gradient(currentColor, currentColor) 7px 33px / 46px 2px no-repeat,
    linear-gradient(135deg, transparent 48%, currentColor 49% 52%, transparent 53%) 11px 8px / 20px 32px no-repeat,
    linear-gradient(45deg, transparent 48%, currentColor 49% 52%, transparent 53%) 31px 8px / 20px 32px no-repeat;
}

.shield-icon {
  background:
    linear-gradient(currentColor, currentColor) 29px 11px / 4px 28px no-repeat,
    radial-gradient(circle at 50% 20%, transparent 0 14px, currentColor 15px 16px, transparent 17px),
    linear-gradient(135deg, transparent 25px, currentColor 26px 27px, transparent 28px) 8px 10px / 46px 36px no-repeat,
    linear-gradient(45deg, transparent 25px, currentColor 26px 27px, transparent 28px) 8px 10px / 46px 36px no-repeat;
}

.compass-icon {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18px, currentColor 19px 20px, transparent 21px),
    linear-gradient(currentColor, currentColor) 30px 3px / 2px 44px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) 9px 24px / 44px 2px no-repeat,
    linear-gradient(45deg, transparent 44%, currentColor 45% 55%, transparent 56%) center / 40px 40px no-repeat,
    linear-gradient(135deg, transparent 44%, currentColor 45% 55%, transparent 56%) center / 40px 40px no-repeat;
}

.section-panel {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 84px;
  padding: 82px;
  background:
    linear-gradient(rgba(251, 246, 236, 0.95), rgba(251, 246, 236, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(184, 135, 53, 0.05) 29px 30px);
  border: 1px solid rgba(184, 135, 53, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(86, 61, 35, 0.28);
  pointer-events: none;
}

.panel-corners::before,
.panel-corners::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  z-index: 1;
  pointer-events: none;
}

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

.panel-corners::before {
  top: 18px;
  right: 18px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.panel-corners::after {
  left: 18px;
  bottom: 18px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.story-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.story-title h2,
.world-copy h2,
.author-copy h2,
.final-quote h2 {
  font-size: 3rem;
}

.story-title p,
.world-copy p,
.author-copy p {
  color: var(--muted);
}

.story-copy p {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: #3d3024;
}

.characters-section,
.bestiary-section {
  position: relative;
  padding: 98px 6vw;
  background:
    linear-gradient(135deg, rgba(14, 36, 26, 0.96), rgba(24, 59, 43, 0.94) 55%, rgba(72, 32, 32, 0.92)),
    var(--green-deep);
  color: #f7efdf;
  overflow: hidden;
}

.characters-section::before,
.bestiary-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 181, 108, 0.14), transparent 32%),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(215, 181, 108, 0.04) 49px 50px);
  pointer-events: none;
}

.section-sheen {
  position: absolute;
  inset: -25% auto -25% -18%;
  width: 34%;
  transform: rotate(15deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: slowSheen 11s ease-in-out infinite;
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: 3.2rem;
}

.characters-section .section-kicker,
.bestiary-section .section-kicker {
  color: var(--gold-soft);
}

.character-grid {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.character-card {
  grid-column: span 2;
  position: relative;
  min-height: 350px;
  padding: 30px;
  border: 1px solid rgba(215, 181, 108, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 249, 234, 0.1), rgba(255, 249, 234, 0.04)),
    rgba(2, 9, 6, 0.14);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.character-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(215, 181, 108, 0.14);
  pointer-events: none;
}

.character-card::after {
  content: "";
  position: absolute;
  inset: -60% -24% auto;
  height: 145px;
  background: linear-gradient(90deg, transparent, rgba(215, 181, 108, 0.26), transparent);
  transform: rotate(-18deg) translateY(-80px);
  transition: transform 560ms ease;
}

.character-card:hover {
  --lift: -9px;
  border-color: rgba(215, 181, 108, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 249, 234, 0.14), rgba(255, 249, 234, 0.055)),
    rgba(2, 9, 6, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.character-card:hover::after {
  transform: rotate(-18deg) translateY(470px);
}

.character-card span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 2rem;
}

.character-card h3 {
  color: #fff8e8;
}

.character-card p {
  margin: 0;
  color: rgba(247, 239, 223, 0.78);
  font-size: 0.96rem;
}

.feature-card {
  grid-column: 2 / span 4;
  min-height: 250px;
}

.world-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
  margin-top: 88px;
}

.world-copy,
.map-frame,
.author-copy,
.author-portrait {
  position: relative;
  z-index: 2;
}

.map-frame {
  margin: 0;
  padding: 12px;
  background: rgba(62, 45, 28, 0.09);
  border: 1px solid rgba(184, 135, 53, 0.48);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(45, 31, 18, 0.2);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(0.35deg) translateY(var(--lift, 0));
  transition: transform 320ms ease, box-shadow 320ms ease;
  overflow: hidden;
}

.map-frame:hover {
  --lift: -5px;
  box-shadow: 0 34px 86px rgba(45, 31, 18, 0.24);
}

.map-frame img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(80, 55, 30, 0.32);
  filter: sepia(0.08) contrast(1.02);
}

.map-route {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: multiply;
}

.map-route path {
  fill: none;
  stroke: rgba(117, 73, 24, 0.62);
  stroke-width: 0.42;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  animation: routeMarch 5.6s linear infinite;
}

.map-route circle {
  fill: var(--gold);
  filter: drop-shadow(0 0 5px rgba(184, 135, 53, 0.5));
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2.8s ease-in-out infinite;
}

.bestiary-list {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.beast {
  position: relative;
  padding: 32px 34px;
  border-top: 1px solid rgba(215, 181, 108, 0.44);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 249, 234, 0.08), transparent);
  transition: transform 260ms ease, background 260ms ease;
}

.beast:hover {
  transform: translateX(6px);
  background: linear-gradient(90deg, rgba(255, 249, 234, 0.12), transparent);
}

.beast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold-soft);
}

.beast h3 {
  color: #fff8e8;
}

.beast p {
  margin: 0;
  color: rgba(247, 239, 223, 0.78);
}

.author-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 58px;
  align-items: start;
  margin-top: 88px;
}

.author-portrait {
  margin: 0;
  align-self: stretch;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(184, 135, 53, 0.48);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(42, 29, 17, 0.2);
}

.author-copy p {
  font-family: var(--serif);
  font-size: 1.04rem;
}

.final-quote {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 94px 24px;
  color: #f8f0e1;
  background:
    linear-gradient(rgba(14, 36, 26, 0.76), rgba(14, 36, 26, 0.88)),
    url("assets/hero-art.png") center 30% / cover no-repeat;
  overflow: hidden;
}

.final-quote::before,
.final-quote::after {
  content: "";
  position: absolute;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.final-quote::before {
  top: 54px;
}

.final-quote::after {
  bottom: 54px;
}

.final-quote p {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 34px 6vw;
  color: rgba(248, 239, 225, 0.78);
  font-size: 0.82rem;
  background:
    linear-gradient(90deg, rgba(14, 36, 26, 0.98), rgba(31, 39, 27, 0.96) 55%, rgba(73, 33, 38, 0.95)),
    var(--green-deep);
  border-top: 1px solid rgba(215, 181, 108, 0.28);
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.footer-title {
  color: #fff8e8;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.str24-credit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 0 8px 22px;
  color: #fff8e8;
  text-decoration: none;
  border-left: 1px solid rgba(215, 181, 108, 0.35);
}

.str24-credit > span {
  color: rgba(248, 239, 225, 0.62);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.str24-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #fff8e8;
  font-family: var(--sans);
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.str24-logo span {
  font-weight: 800;
}

.str24-logo b {
  color: var(--gold-soft);
  font-size: 1.48rem;
}

.str24-logo em {
  color: rgba(248, 239, 225, 0.7);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(2px);
  transition: opacity 680ms ease, transform 680ms ease, filter 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes ember {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.6);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 34px), -120px, 0) scale(1.2);
  }
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate(-50%, 12px);
    opacity: 1;
  }
}

@keyframes slowSheen {
  0%,
  100% {
    transform: translateX(0) rotate(15deg);
    opacity: 0.2;
  }
  50% {
    transform: translateX(280%) rotate(15deg);
    opacity: 0.9;
  }
}

@keyframes moteFloat {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.6);
  }
  22%,
  72% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift-x, 28px), -34px, 0) scale(1);
  }
}

@keyframes routeMarch {
  to {
    stroke-dashoffset: -32;
  }
}

@keyframes mapPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 96px 1fr 90px;
  }

  .brand-word {
    display: none;
  }

  .site-nav {
    gap: 24px;
    font-size: 0.74rem;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .hero-archer {
    left: 3vw;
    bottom: 88px;
    width: 252px;
  }

  .section-panel {
    padding: 60px 44px;
  }

  .story-grid,
  .world-section,
  .author-section {
    grid-template-columns: 1fr;
  }

  .map-frame img {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 70px 1fr 70px;
    min-height: 76px;
    padding: 0 22px;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
  }

  .nav-ornament {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(248, 243, 233, 0.97);
    border: 1px solid rgba(184, 135, 53, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(184, 135, 53, 0.2);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .brand-mark {
    width: 48px;
    height: 58px;
  }

  .brand-mark svg {
    width: 46px;
    height: 56px;
  }

  .hero {
    min-height: 79svh;
    padding: 106px 24px 66px;
    align-items: start;
  }

  .hero-frame {
    inset: 18px 16px;
  }

  .hero-foliage {
    width: 130px;
    height: 420px;
    opacity: 0.28;
  }

  .hero-art {
    width: 100%;
    height: 62%;
    top: auto;
    bottom: 0;
    opacity: 0.84;
    mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 100%);
  }

  .hero-art img {
    object-position: 63% 9%;
    transform: scale(1.17);
  }

  .hero-art::after {
    background:
      linear-gradient(180deg, rgba(251, 246, 236, 0.99), rgba(251, 246, 236, 0.5) 36%, rgba(251, 246, 236, 0.18)),
      linear-gradient(90deg, rgba(251, 246, 236, 0.68), transparent);
  }

  .hero-archer {
    display: none;
  }

  .section-sheen {
    display: none;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .signal-band {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: auto;
    padding: 26px 0;
    text-align: center;
  }

  .signal-line {
    display: none;
  }

  .intro-strip {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .intro-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-card:last-child {
    border-bottom: 0;
  }

  .section-panel {
    width: min(100% - 28px, 1160px);
    padding: 48px 24px;
  }

  .section-panel::before {
    inset: 12px;
  }

  .story-title h2,
  .world-copy h2,
  .author-copy h2,
  .final-quote h2,
  .section-heading h2 {
    font-size: 2.2rem;
  }

  .characters-section,
  .bestiary-section {
    padding: 70px 18px;
  }

  .character-grid,
  .bestiary-list {
    grid-template-columns: 1fr;
  }

  .character-card,
  .feature-card {
    grid-column: auto;
    min-height: auto;
  }

  .author-portrait img {
    min-height: 380px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    justify-items: center;
  }

  .str24-credit {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(215, 181, 108, 0.35);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.24rem;
  }

  .ornament {
    margin: 18px auto;
  }

  .button-primary {
    width: 100%;
    justify-content: center;
  }

  .story-copy p,
  .author-copy p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow,
  .spark-field,
  .section-sheen {
    display: none;
  }
}

/* === V3 ADDITIONS — character portraits, refined brand, premium polish === */

.character-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 0 30px 0;
  overflow: hidden;
}
.character-card::before { inset: 0; border-radius: 8px; }
.character-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  margin: 0 0 20px 0;
  overflow: hidden;
  flex: 0 0 auto;
}
.character-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(2,9,6,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.character-portrait::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(215, 181, 108, 0.42);
  pointer-events: none;
  z-index: 2;
}
.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: sepia(0.12) saturate(0.94) contrast(1.06);
  transition: transform 760ms cubic-bezier(0.2,0.8,0.2,1), filter 560ms ease;
}
.character-card:hover .character-portrait img {
  transform: scale(1.05);
  filter: sepia(0.04) saturate(1) contrast(1.1);
}
.character-card span,
.character-card h3,
.character-card p {
  padding-left: 30px;
  padding-right: 30px;
}
.character-card span {
  display: block;
  margin-bottom: 4px;
}

/* Hero art — slightly more elegant masking */
.hero-art img {
  object-position: center 14%;
}

/* Brand mark refresh — more elegant filigree */
.brand-mark svg path {
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .character-card { padding: 0 0 24px 0; }
  .character-portrait { aspect-ratio: 3/4; }
  .character-card span,
  .character-card h3,
  .character-card p { padding-left: 22px; padding-right: 22px; }
}

/* === V3.5 — VISIBLE FX: mist drift, magical seal, dividers, brighter sparks === */

/* Hero — full visualization */
.hero-art-full {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: -2;
  overflow: hidden;
  mask-image: none !important;
}
.hero-art-full img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}
.hero-art-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 246, 236, 0.0) 0%, rgba(251, 246, 236, 0.18) 60%, rgba(251, 246, 236, 0.55) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(251, 246, 236, 0.4), transparent 60%);
  pointer-events: none;
}

/* Hero copy — better readability over full image */
.hero-copy {
  background: rgba(251, 246, 236, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 36px 32px;
  border-radius: 4px;
  border: 1px solid rgba(184, 135, 53, 0.35);
  box-shadow: 0 30px 70px rgba(40, 24, 8, 0.18);
}

/* Mist drift overlay */
.hero-mist {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 200px at 20% 78%, rgba(251, 246, 236, 0.55), transparent 60%),
    radial-gradient(ellipse 800px 240px at 80% 88%, rgba(231, 220, 197, 0.42), transparent 65%);
  mix-blend-mode: screen;
  animation: mistDrift 26s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes mistDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(40px, -10px, 0); }
}

/* Magical seal — slowly rotating in hero corner */
.hero-seal {
  position: absolute;
  top: 14%;
  left: 5%;
  width: 130px;
  height: 130px;
  z-index: 2;
  color: #9a7733;
  opacity: 0.55;
  pointer-events: none;
  animation: sealRotate 80s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(154, 119, 51, 0.25));
}
.hero-seal svg { width: 100%; height: 100%; }
@keyframes sealRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 720px) {
  .hero-seal { width: 84px; height: 84px; top: 8%; left: 4%; opacity: 0.4; }
}

/* Brighter, larger sparks for visibility */
.spark-field i {
  width: 3px !important;
  height: 3px !important;
  background: rgba(214, 165, 83, 0.92) !important;
  box-shadow: 0 0 22px rgba(214, 165, 83, 0.85), 0 0 6px rgba(255, 230, 180, 0.7) !important;
}

/* Section gold dividers */
section + section::before,
.section-divider {
  content: '';
  display: block;
  width: 220px;
  height: 14px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-soft), transparent 70%),
    linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: 0.6;
  position: relative;
  z-index: 1;
  margin-top: -10px;
  pointer-events: none;
}
.story-section + .characters-section::before,
.characters-section + .world-section::before,
.world-section + .bestiary-section::before,
.bestiary-section + .author-section::before {
  width: 280px;
  height: 18px;
}

/* Quote watermark in characters section */
.characters-section::after {
  content: '"Kto naprawdę stoi po jej stronie?"';
  position: absolute;
  bottom: 8%;
  right: 4vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 22px);
  color: rgba(215, 181, 108, 0.16);
  pointer-events: none;
  letter-spacing: 1px;
  z-index: 0;
  text-align: right;
  max-width: 320px;
  line-height: 1.4;
}

/* Quote watermark in bestiariusz */
.bestiary-section::after {
  content: '"Smoki — żywe lub stworzone przez magię."';
  position: absolute;
  bottom: 6%;
  left: 4vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 22px);
  color: rgba(215, 181, 108, 0.16);
  pointer-events: none;
  letter-spacing: 1px;
  z-index: 0;
  max-width: 320px;
  line-height: 1.4;
}

/* Brighter cursor glow */
.cursor-glow {
  background: radial-gradient(circle, rgba(214, 165, 83, 0.18), transparent 70%) !important;
  width: 280px !important;
  height: 280px !important;
}

/* Stronger ambient motes */
.ambient-motes i {
  background: rgba(184, 135, 53, 0.55) !important;
  box-shadow: 0 0 6px rgba(184, 135, 53, 0.35) !important;
}

/* === V3.6 — mobile: show Ervan side === */
@media (max-width: 720px) {
  .hero-art-full img {
    object-position: 30% 40% !important;
    transform: scale(1.08) !important;
  }
  .hero-copy {
    background: rgba(251, 246, 236, 0.55) !important;
    backdrop-filter: blur(8px);
    margin: 0 16px;
    padding: 24px 22px !important;
  }
}

/* Force hide hero-seal if it leaks back somehow */
.hero-seal { display: none !important; }

/* === V3.7 — mobile vertical hero composition === */
@media (max-width: 720px) {
  .hero-art-full picture,
  .hero-art-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    transform: none !important;
  }
  .hero {
    min-height: 92vh;
  }
  .hero-art-full::after {
    background:
      linear-gradient(180deg, rgba(251, 246, 236, 0.0) 0%, rgba(251, 246, 236, 0.1) 70%, rgba(251, 246, 236, 0.7) 100%) !important;
  }
}

/* === V3.8 — letter reveal, sticky hero, visible mist, map pulse, reading thread === */

/* Letter-by-letter reveal */
.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--letter-delay, 0ms);
}
@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Stronger mist — visible on cream */
.hero-mist {
  background:
    radial-gradient(ellipse 700px 220px at 18% 75%, rgba(220, 200, 165, 0.62), transparent 65%) !important,
    radial-gradient(ellipse 900px 280px at 82% 90%, rgba(200, 180, 140, 0.5), transparent 70%) !important,
    radial-gradient(ellipse 500px 180px at 50% 50%, rgba(248, 240, 220, 0.35), transparent 60%) !important;
  mix-blend-mode: multiply !important;
  opacity: 0.92 !important;
  z-index: 1 !important;
}

/* Sticky/pinned hero — hero stays visible while content scrolls */
.hero {
  min-height: 100vh;
  position: relative;
}
.hero-art-full {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  inset: auto 0 0 0 !important;
}
@supports not (position: sticky) {
  .hero-art-full { position: absolute !important; }
}
.hero-content-wrap {
  position: relative;
  z-index: 4;
  min-height: 100vh;
}

/* Map markers — visible pulse */
.map-route circle {
  fill: var(--gold-soft);
  filter: drop-shadow(0 0 6px rgba(214, 165, 83, 0.7));
  animation: mapPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--marker-delay, 0) * 0.4s);
}
.map-route circle:nth-child(2) { animation-delay: 0.6s; }
.map-route circle:nth-child(3) { animation-delay: 1.2s; }
.map-route circle:nth-child(4) { animation-delay: 1.8s; }

/* Reading progress thread on top edge — gold */
.scroll-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold)) !important;
  width: calc(var(--scroll-progress, 0) * 100%) !important;
  z-index: 999 !important;
  box-shadow: 0 0 8px rgba(214, 165, 83, 0.6) !important;
  transition: width 80ms linear !important;
}

/* Enhanced 3D tilt with gold rim light */
.character-card {
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}
.character-card:hover {
  --lift: -10px;
  border-color: rgba(215, 181, 108, 0.85) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 22px rgba(215, 181, 108, 0.22),
    0 0 40px rgba(215, 181, 108, 0.15) !important;
}

/* Stronger spark visibility */
.spark-field i {
  width: 4px !important;
  height: 4px !important;
  background: rgba(220, 175, 95, 0.95) !important;
  box-shadow:
    0 0 24px rgba(220, 175, 95, 0.9),
    0 0 8px rgba(255, 235, 195, 0.85) !important;
  animation: ember var(--duration, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-art-full { position: absolute !important; }
}

/* === V4.0 — LAYERED HERO COMPOSITION + cinematic reveal + premium icons === */

.hero-stage {
  position: sticky !important;
  top: 0;
  inset: 0 0 0 0;
  width: 100% !important;
  height: 100vh !important;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Castle background — full bleed, lowest z, slowest parallax */
.hero-castle {
  inset: 0;
  z-index: 1;
}
.hero-castle img { object-position: center 30%; }
.hero-castle::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 246, 236, 0.0) 0%, rgba(251, 246, 236, 0.18) 70%, rgba(251, 246, 236, 0.7) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(251, 246, 236, 0.5), transparent 65%);
  pointer-events: none;
}

/* Róża + smok — main subject, center-right */
.hero-roza {
  z-index: 3;
  bottom: 0;
  right: 8%;
  width: 36%;
  max-width: 520px;
  height: 92%;
}
.hero-roza img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 50px rgba(40, 30, 16, 0.35));
}

/* Ervan archer — left foreground */
.hero-ervan {
  z-index: 4;
  bottom: 0;
  left: 6%;
  width: 28%;
  max-width: 380px;
  height: 80%;
}
.hero-ervan img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 38px rgba(40, 30, 16, 0.4));
}

/* Foliage left frame */
.hero-fern-l {
  z-index: 5;
  bottom: -2%;
  left: 0;
  width: 22%;
  max-width: 280px;
  height: 88%;
  opacity: 0.9;
}
.hero-fern-l img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom left;
}

/* Foliage right frame */
.hero-fern-r {
  z-index: 5;
  bottom: -2%;
  right: 0;
  width: 22%;
  max-width: 280px;
  height: 88%;
  opacity: 0.85;
}
.hero-fern-r img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

/* Cinematic reveal — staggered entry */
body.is-loading .hero-layer { opacity: 0 !important; transform: translate3d(0, 30px, 0) scale(0.99) !important; }
body:not(.is-loading) .hero-layer[data-reveal="1"] { opacity: 1; transition-delay: 0.1s; transform: translate3d(0,0,0) scale(1); }
body:not(.is-loading) .hero-layer[data-reveal="2"] { opacity: 1; transition-delay: 0.5s; transform: translate3d(0,0,0) scale(1); }
body:not(.is-loading) .hero-layer[data-reveal="3"] { opacity: 1; transition-delay: 0.9s; transform: translate3d(0,0,0) scale(1); }
body:not(.is-loading) .hero-layer[data-reveal="4"] { opacity: 0.9; transition-delay: 1.2s; transform: translate3d(0,0,0) scale(1); }

/* Idle micro-animations */
.hero-fern-l { animation: fernSwayL 9s ease-in-out infinite alternate; transform-origin: bottom left; }
.hero-fern-r { animation: fernSwayR 11s ease-in-out infinite alternate; transform-origin: bottom right; }
@keyframes fernSwayL { 0% { transform: rotate(-0.6deg) translateZ(0); } 100% { transform: rotate(0.5deg) translateZ(0); } }
@keyframes fernSwayR { 0% { transform: rotate(0.5deg) translateZ(0); } 100% { transform: rotate(-0.6deg) translateZ(0); } }

.hero-roza { animation: rozaBreath 6s ease-in-out infinite alternate; }
@keyframes rozaBreath { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-3px) scale(1.005); } }

/* Mobile composition — vertical stacking */
@media (max-width: 720px) {
  .hero-stage { height: 100vh !important; }
  .hero-castle img { object-position: center 25%; }
  .hero-castle::after {
    background:
      linear-gradient(180deg, rgba(251, 246, 236, 0.0) 0%, rgba(251, 246, 236, 0.25) 75%, rgba(251, 246, 236, 0.85) 100%);
  }
  .hero-roza {
    width: 78%;
    max-width: 360px;
    right: 2%;
    height: 65%;
  }
  .hero-ervan {
    width: 50%;
    max-width: 220px;
    left: 0;
    bottom: 0;
    height: 50%;
    z-index: 4;
  }
  .hero-fern-l { width: 30%; opacity: 0.6; }
  .hero-fern-r { width: 28%; opacity: 0.55; }
}

/* Intro strip — premium PNG icons (replacing SVG line-icons) */
.intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
}
.intro-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(184, 135, 53, 0.18));
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1), filter 460ms ease;
}
.intro-card:hover .intro-icon img {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 12px 22px rgba(184, 135, 53, 0.32));
}
@media (max-width: 720px) {
  .intro-icon { width: 72px; height: 72px; }
}

/* Hide old line-icon SVG-based styles (no longer used) */
.line-icon { display: none !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-layer { transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-fern-l, .hero-fern-r, .hero-roza { animation: none !important; }
}

/* =====================================================================
   V5.0 — HERO REFAKTOR: composition fix + composable parallax
   Diagnoza problemów które naprawia ten blok:
   1) `.hero` miało `display: grid` — przez to dzieci hero (frame, foliage,
      stage, mist, copy, scroll-cue) lądowały jako kolejne wiersze grid.
      Z far gone `.hero-stage` miał `position: sticky` + `z-index: -2`
      w `isolation: isolate` co dodatkowo go chowało.
      → Wymuszamy `display: block`, `.hero-stage` jako `position: absolute`
        z `inset: 0` i normalnym z-index. Layery (już absolute) komponują
        się jako jedna scena.
   2) Parallax JS nadpisywał `transform` na .hero-layer, blokując
      animacje CSS (idle sway, breath, reveal scale).
      → Parallax wpisuje wartości w CSS vars `--parallax-x/-y`,
        a sama transformacja idzie przez właściwość `translate`
        (osobną od `transform` w nowoczesnym CSS, więc się komponują).
   3) Cinematic reveal nadpisywał `transform: translate3d(0,0,0) scale(1)`,
      gasząc idle animations.
      → Reveal używa wyłącznie `opacity`. Idle używają osobnych właściwości
        `rotate` (ferny) i `scale`+`translate-y` (Róża) — bez konfliktu.
   ===================================================================== */

/* Hero — block layout, hero-stage rozciąga się w tle */
.hero {
  display: block !important;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 !important;
  isolation: isolate;
}

/* Stage — absolutny, kotwiczy do GÓRY hero i wypełnia jeden viewport.
   Dzięki `height: 100vh` (nie 100%) sceneria nie rozciąga się gdy
   .hero-copy z padding-bottom rozszerza .hero ponad viewport. */
.hero-stage {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

/* Layer — `translate` (CSS prop) dla parallax,
   `transform`/`rotate`/`scale` zostają wolne dla animacji */
.hero-layer {
  position: absolute;
  pointer-events: none;
  will-change: translate, opacity, transform;
  opacity: 0;
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: none;
}
.hero-layer img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Cinematic reveal — odpalany czystym CSS (animation), bez zależności od JS removing body.is-loading.
   Layer ma initial opacity:0 z bazy `.hero-layer`; animation podnosi do 1
   z animation-fill-mode: forwards żeby zostało po skończeniu. */
@keyframes heroLayerInV5 {
  from { opacity: 0; }
  to   { opacity: var(--reveal-target, 1); }
}
.hero-layer[data-reveal="1"] { animation: heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.10s forwards; }
.hero-layer[data-reveal="2"] { animation: heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards; }
.hero-layer[data-reveal="3"] { animation: heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.00s forwards; }
.hero-layer[data-reveal="4"] {
  --reveal-target: 0.85;
  animation: heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.40s forwards;
}

/* Override starych reguł V4.0 które wiązały opacity z body.is-loading */
body.is-loading .hero-layer { opacity: 0; }
body:not(.is-loading) .hero-layer[data-reveal] { /* no-op, animation rządzi */ }

/* --- DESKTOP composition --- */

.hero-castle {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-castle img {
  object-fit: cover;
  object-position: center 28%;
}
.hero-castle::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(251, 246, 236, 0.18) 65%, rgba(251, 246, 236, 0.78) 100%),
    radial-gradient(ellipse at 50% 92%, rgba(251, 246, 236, 0.45), transparent 60%);
  pointer-events: none;
}

.hero-roza {
  z-index: 3;
  right: 5%;
  bottom: 0;
  width: clamp(280px, 38vw, 540px);
  height: 92%;
}
.hero-roza img {
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 24px 50px rgba(40, 30, 16, 0.35));
}

.hero-ervan {
  z-index: 4;
  left: 4%;
  bottom: 0;
  width: clamp(200px, 26vw, 380px);
  height: 78%;
}
.hero-ervan img {
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 18px 38px rgba(40, 30, 16, 0.4));
}

.hero-layer.hero-fern-l {
  z-index: 5;
  left: 0;
  bottom: -2%;
  width: clamp(160px, 20vw, 280px);
  height: 88%;
  opacity: 0;
  transform-origin: bottom left;
  --reveal-target: 0.82;
  animation:
    heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.40s forwards,
    fernSwayLv5 9s ease-in-out 2.6s infinite alternate;
}
.hero-fern-l img {
  object-fit: contain;
  object-position: bottom left;
}

.hero-layer.hero-fern-r {
  z-index: 5;
  right: 0;
  bottom: -2%;
  width: clamp(160px, 20vw, 280px);
  height: 88%;
  opacity: 0;
  transform-origin: bottom right;
  --reveal-target: 0.74;
  animation:
    heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.40s forwards,
    fernSwayRv5 11s ease-in-out 2.8s infinite alternate;
}
.hero-fern-r img {
  object-fit: contain;
  object-position: bottom right;
}

/* Idle animations on `rotate` / `scale` (osobne CSS properties)
   — nie kollidują z `transform` ani `translate` */
@keyframes fernSwayLv5 {
  0%   { rotate: -0.7deg; }
  100% { rotate:  0.6deg; }
}
@keyframes fernSwayRv5 {
  0%   { rotate:  0.6deg; }
  100% { rotate: -0.7deg; }
}

.hero-layer.hero-roza {
  animation:
    heroLayerInV5 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards,
    rozaBreathV5 6.5s ease-in-out 2s infinite alternate;
}
@keyframes rozaBreathV5 {
  0%   { scale: 1;       }
  100% { scale: 1.006;   }
}

/* Hero copy — desktop: lewy aligned obok sceny, BEZ ciężkiego boxa (Róża widoczna).
   Mobile: absolute u góry hero, żeby nie rozciągało hero w dół i scena nie spadała niżej. */
.hero-copy {
  position: relative;
  z-index: 10;
  width: min(460px, calc(100% - 32px));
  margin: 0;
  margin-left: clamp(24px, 7vw, 96px);
  padding: 168px 0 92px;
  text-align: left;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-copy h1 {
  text-shadow:
    0 2px 0 rgba(251, 246, 236, 0.96),
    0 4px 18px rgba(251, 246, 236, 0.7),
    0 18px 36px rgba(40, 24, 8, 0.12);
}
.hero-copy .eyebrow,
.hero-copy .hero-lead,
.hero-copy blockquote {
  text-shadow: 0 1px 0 rgba(251, 246, 236, 0.92), 0 2px 6px rgba(251, 246, 236, 0.5);
}
.hero-copy .ornament { margin-left: 0; margin-right: auto; }
.hero-copy .hero-lead { max-width: 460px; margin-left: 0; }
.hero-copy blockquote { margin-left: 0; }
.hero-copy .hero-lead::before,
.hero-copy blockquote::before {
  display: none;
}

/* Mobile: copy absolute u góry hero, scena pełna pod nim */
@media (max-width: 720px) {
  .hero {
    /* Daj hero stałą wysokość — copy nie rozciąga go */
    min-height: 100svh;
  }
  .hero-copy {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: auto;
    padding: 100px 22px 16px;
    text-align: center;
    /* Mała półprzezroczysta poduszka POD tekstem żeby był czytelny,
       ale BEZ blur i tylko w górnej części */
    background: linear-gradient(180deg, rgba(251, 246, 236, 0.78) 0%, rgba(251, 246, 236, 0.55) 70%, rgba(251, 246, 236, 0) 100%);
  }
  .hero-copy .ornament { margin: 12px auto; }
  .hero-copy .hero-lead { max-width: 100%; margin: 0 auto; font-size: 1rem; }
  .hero-copy blockquote { margin: 14px auto 0; max-width: 100%; }
  .hero-copy .button-primary { display: none; } /* za dużo na mobile w górnej poduszce */
}

/* Hero overlays — żeby ramka, mist, sparks były NAD sceneria */
.hero-frame { z-index: 6; }
.hero-mist  { z-index: 2 !important; }   /* pomiędzy zamkiem a postaciami */
.spark-field { z-index: 7 !important; }
.scroll-cue { z-index: 11; }

/* --- MOBILE composition (≤720px) — czytelna scena --- */
@media (max-width: 720px) {
  .hero {
    min-height: 100vh;
  }

  .hero-castle img {
    object-position: center 22%;
  }
  .hero-castle::after {
    background:
      linear-gradient(180deg, transparent 0%, rgba(251, 246, 236, 0.28) 70%, rgba(251, 246, 236, 0.88) 100%);
  }

  /* Mobile: Róża ~62% szer., centralnie-prawa, zajmuje dolną połowę */
  .hero-roza {
    right: -2%;
    bottom: 0;
    width: 64%;
    max-width: none;
    height: 62%;
  }

  /* Ervan: lewy dolny narożnik, pomniejszony, częściowo poza ekranem */
  .hero-ervan {
    left: -4%;
    bottom: 0;
    width: 44%;
    max-width: none;
    height: 44%;
    z-index: 4;
  }

  /* Ferny: malutkie ramki narożne, bardzo subtelne */
  .hero-fern-l {
    width: 32%;
    height: 50%;
    opacity: 0.45;
    bottom: 36%;       /* lewy górny róg */
    top: auto;
    left: 0;
  }
  .hero-fern-r {
    width: 30%;
    height: 48%;
    opacity: 0.4;
    top: 12%;          /* prawy górny */
    right: 0;
    bottom: auto;
  }

  /* Hero copy: bardziej zwarty, wyższe tło bo na całym ekranie */
  .hero-copy {
    margin: 0 14px;
    padding: 108px 20px 60px;
    background: rgba(251, 246, 236, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Reduce-motion: bez idle, bez transition */
@media (prefers-reduced-motion: reduce) {
  .hero-layer {
    opacity: 1 !important;
    translate: 0 !important;
    animation: none !important;
    transition: none !important;
  }
}
/* === V5.0 END === */

/* =====================================================================
   V6.0 — MOBILE COMPOSITE STRATEGY
   Na mobile (≤720px) używamy JEDNEGO obrazka composite (zamek+postaci+ferny)
   przez <picture><source media>. Pozostałe hero-layery (.hero-roza,
   .hero-ervan, .hero-fern-l, .hero-fern-r) są ukryte — composite zawiera
   ich wersje. Zalety: 1 obrazek 130KB zamiast 5 PNG 2.4MB sumarycznie,
   żadnego flickering animacji reveal w trakcie ładowania, deterministyczna
   kompozycja na każdym mobile.
   Desktop bez zmian — zostaje layered.
   ===================================================================== */
@media (max-width: 720px) {
  /* Composite zamek pokrywa cały viewport */
  .hero-layer.hero-castle {
    z-index: 2;
  }
  .hero-layer.hero-castle img {
    object-fit: cover;
    object-position: center top;
  }
  /* Wyłącz overlay gradient na zamku — composite ma własny */
  .hero-layer.hero-castle::after {
    display: none;
  }
  /* Ukryj pozostałe layery — są w composite */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: none !important;
  }
  /* Hero-frame i decorative overlays bez ramki na mobile (zaśmiecały scenę) */
  .hero-frame {
    display: none;
  }
  /* Hero copy: czytelna poduszka na górze sceny — gradient kremowy fade-out */
  .hero-copy {
    background: linear-gradient(180deg, rgba(251, 246, 236, 0.85) 0%, rgba(251, 246, 236, 0.65) 60%, rgba(251, 246, 236, 0) 100%);
    padding: 96px 22px 32px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero-copy .ornament { margin: 10px auto; }
  .hero-copy .button-primary { display: none; }
}
/* === V6.0 END === */

/* =====================================================================
   V6.1 — HERO BLURB READABILITY FIX (marker: hero-blurb-fix)
   Problem: na desktopie tekst .hero-lead i blockquote nachodzą na sylwetkę
   Ervana po lewej. Litery typu "i", "l" znikały na ciemnej kurtce/kołczanie.
   Fix: tylko desktop (>720px). Tytuł BEZ tła (zostaje dominantą wizualną),
   opis i cytat dostają subtelną kremową kartkę z backdrop-blur + text-shadow
   jako fallback dla starszych przeglądarek. Max-width 380px ogranicza tekst
   tak by nie wjeżdżał daleko w prawą stronę gdzie jest Róża.
   ===================================================================== */
@media (min-width: 721px) {
  .hero-copy .hero-lead {
    /* hero-blurb-fix */
    max-width: 380px;
    margin: 0;
    padding: 14px 18px;
    background: rgba(242, 234, 217, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(40, 24, 8, 0.06);
    text-shadow:
      0 1px 0 rgba(255, 248, 232, 0.92),
      0 0 6px rgba(255, 248, 232, 0.55);
  }
  .hero-copy blockquote {
    max-width: 380px;
    margin: 18px 0 0;
    padding: 12px 18px;
    background: rgba(242, 234, 217, 0.76);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 3px;
    text-shadow:
      0 1px 0 rgba(255, 248, 232, 0.88),
      0 0 5px rgba(255, 248, 232, 0.5);
  }
  /* Hero copy width może zostać — kartki samo limitują 380 */
}
/* === V6.1 END === */

/* =====================================================================
   V7.0 — MOBILE SEAM SOFTEN + DESKTOP HERO LEAD REPOSITION
   ===================================================================== */
@media (max-width: 720px) {
  .hero-stage,
  .hero-stage-mobile {
    position: absolute !important;
  }

  .hero-stage::before,
  .hero-stage-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(242, 234, 217, 0.5) 45%,
      rgba(242, 234, 217, 0.5) 55%,
      transparent 100%
    );
  }
}

@media (min-width: 721px) {
  .hero-copy {
    margin-left: clamp(8px, calc(7vw - 70px), 28px) !important;
  }

  .hero-copy .hero-lead {
    max-width: 320px !important;
  }
}
/* === V7.0 END === */

/* =====================================================================
   V8.0 — CLIENT VISUAL FIXES (marker: V8)
   ===================================================================== */
.hero-copy h1 {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.intro-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(184, 135, 53, 0.18));
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1), filter 460ms ease;
}

.intro-card:hover .intro-icon svg {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 12px 22px rgba(184, 135, 53, 0.32));
}

@media (min-width: 721px) {
  .hero-copy {
    width: min(560px, calc(100% - 32px)) !important;
  }

  .hero-copy .hero-lead,
  .hero-copy blockquote {
    max-width: 320px !important;
    padding: 14px 18px !important;
    background: rgba(242, 234, 217, 0.84) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(40, 24, 8, 0.06);
    text-shadow:
      0 1px 0 rgba(255, 248, 232, 0.92),
      0 0 6px rgba(255, 248, 232, 0.55) !important;
  }

  .hero-copy .hero-lead {
    margin: 0 !important;
  }

  .hero-copy blockquote {
    margin: 18px 0 0 !important;
  }
}

@media (max-width: 720px) {
  .hero-stage::before,
  .hero-stage-mobile::before {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(242, 234, 217, 0.7) 40%,
      rgba(242, 234, 217, 0.7) 60%,
      transparent 100%
    ) !important;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .hero-layer.hero-castle img {
    object-position: center 60% !important;
    object-fit: cover;
  }

  .hero-copy {
    padding: 24px 18px 16px !important;
  }

  .hero-copy h1 {
    font-size: 2rem !important;
  }

  .hero-copy .hero-lead {
    font-size: 0.9rem !important;
  }
}
/* === V8.0 END === */

/* =====================================================================
   V9.0 — MOBILE LANDSCAPE HERO + INTRO MEDALLION ICONS (marker: V9)
   ===================================================================== */
@media (max-width: 720px) and (orientation: landscape), (max-height: 500px) and (orientation: landscape) {
  .hero-copy { padding: 12px 14px !important; max-width: 280px !important; }
  .hero-copy h1 { font-size: 1.4rem !important; line-height: 1.05 !important; letter-spacing: 0.02em !important; margin: 6px 0 !important; }
  .hero-copy .eyebrow { font-size: 0.7rem !important; margin-bottom: 4px !important; }
  .hero-copy .hero-lead { display: none !important; }
  .hero-copy blockquote { display: none !important; }
  .hero-copy .button-primary { padding: 8px 14px !important; font-size: 0.8rem !important; }
}
/* === V9.0 END === */

/* =====================================================================
   V10.0 — DESKTOP HERO COMPACT HEIGHT + CONNECTED COPY BLOCK (marker: V10)
   ===================================================================== */
@media (min-width: 721px) {
  .hero { min-height: min(100svh, 880px) !important; max-height: 880px !important; }
  .hero-stage { height: 880px !important; max-height: 880px !important; }
  .hero-copy { padding: 96px 0 56px !important; }

  .hero-copy .hero-lead {
    margin-bottom: 12px !important;
    padding: 12px 16px !important;
    border-radius: 4px 4px 0 0 !important;
  }

  .hero-copy blockquote {
    margin-top: 0 !important;
    padding: 10px 16px !important;
    background: rgba(242, 234, 217, 0.72) !important;
    border-top: 1px solid rgba(184, 135, 53, 0.18) !important;
    border-radius: 0 0 4px 4px !important;
  }

  .hero-copy .button-primary {
    margin-top: 18px !important;
  }
}
/* === V10.0 END === */

/* =====================================================================
   V11.0 - SPOJNA PALETA PARCHMENT MANUSCRIPT (marker: V11)
   Produkcja V10 miala resztki dark teal w bohaterach, bestiariuszu,
   stopce i elementach kart. Ten override przywraca light painterly
   parchment bez zmiany sepia portretow.
   ===================================================================== */
.characters-section,
.bestiary-section {
  background:
    linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.36), transparent) top center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.28), transparent) bottom center / 100% 1px no-repeat,
    radial-gradient(circle at 16% 10%, rgba(184, 135, 53, 0.12), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(107, 38, 52, 0.055), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(184, 135, 53, 0.045) 31px 32px),
    linear-gradient(180deg, rgba(251, 246, 236, 0.98), rgba(242, 234, 217, 0.97)) !important;
  color: #4a2511 !important;
  border-top: 1px solid rgba(184, 135, 53, 0.18) !important;
  border-bottom: 1px solid rgba(184, 135, 53, 0.18) !important;
}

.characters-section::before,
.bestiary-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 135, 53, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(251, 246, 236, 0.42), transparent 18%, transparent 82%, rgba(217, 199, 168, 0.22)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(117, 90, 53, 0.035) 39px 40px) !important;
  opacity: 0.72 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
}

.characters-section .section-sheen,
.bestiary-section .section-sheen {
  background: linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.13), transparent) !important;
  opacity: 0.58 !important;
}

.characters-section .section-heading h2,
.characters-section .section-heading p,
.characters-section .section-kicker,
.characters-section h3,
.characters-section p,
.bestiary-section .section-heading h2,
.bestiary-section .section-heading p,
.bestiary-section .section-kicker,
.bestiary-section h3,
.bestiary-section p {
  color: #4a2511 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 232, 0.72) !important;
}

.characters-section .section-kicker,
.bestiary-section .section-kicker,
.character-card span {
  color: #9b6927 !important;
}

.character-card {
  background:
    linear-gradient(180deg, rgba(251, 246, 236, 0.96), rgba(242, 234, 217, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(184, 135, 53, 0.045) 27px 28px) !important;
  border: 1px solid rgba(184, 135, 53, 0.3) !important;
  color: #4a2511 !important;
  box-shadow:
    0 24px 58px rgba(76, 45, 17, 0.13),
    inset 0 0 0 1px rgba(255, 249, 234, 0.55) !important;
}

.character-card::before {
  inset: 12px !important;
  border: 1px solid rgba(184, 135, 53, 0.22) !important;
  border-radius: 6px !important;
}

.character-card::after {
  background: linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.18), transparent) !important;
  opacity: 0.5 !important;
}

.character-card:hover {
  border-color: rgba(184, 135, 53, 0.54) !important;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(244, 235, 216, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(184, 135, 53, 0.052) 27px 28px) !important;
  box-shadow:
    0 28px 68px rgba(76, 45, 17, 0.17),
    inset 0 0 0 1px rgba(184, 135, 53, 0.16) !important;
}

.character-card h3,
.character-card p {
  color: #4a2511 !important;
}

.character-portrait {
  padding: 10px !important;
  background: rgba(251, 246, 236, 0.94) !important;
  border-bottom: 1px solid rgba(184, 135, 53, 0.24) !important;
  box-shadow: inset 0 0 0 1px rgba(184, 135, 53, 0.18) !important;
}

.character-portrait::before {
  background: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(74, 37, 17, 0.14) 100%) !important;
}

.character-portrait::after {
  inset: 10px !important;
  border: 1px solid rgba(184, 135, 53, 0.36) !important;
}

.character-portrait img {
  border: 1px solid rgba(184, 135, 53, 0.24) !important;
  border-radius: 4px !important;
}

.beast {
  background:
    linear-gradient(90deg, rgba(251, 246, 236, 0.72), rgba(242, 234, 217, 0.38) 62%, transparent),
    linear-gradient(180deg, rgba(255, 249, 234, 0.52), rgba(217, 199, 168, 0.08)) !important;
  border: 1px solid rgba(184, 135, 53, 0.26) !important;
  border-top-color: rgba(184, 135, 53, 0.32) !important;
  color: #4a2511 !important;
  box-shadow: 0 18px 46px rgba(76, 45, 17, 0.08) !important;
}

.beast:hover {
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.82), rgba(242, 234, 217, 0.5) 62%, transparent),
    linear-gradient(180deg, rgba(255, 249, 234, 0.58), rgba(217, 199, 168, 0.1)) !important;
}

.beast h3,
.beast p {
  color: #4a2511 !important;
}

.author-section {
  background:
    linear-gradient(rgba(251, 246, 236, 0.96), rgba(242, 234, 217, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(184, 135, 53, 0.05) 29px 30px) !important;
  color: #4a2511 !important;
  border-color: rgba(184, 135, 53, 0.34) !important;
}

.author-section h2,
.author-section h3,
.author-section p {
  color: #4a2511 !important;
}

.site-footer {
  background:
    linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.3), transparent) top center / 100% 1px no-repeat,
    radial-gradient(circle at 15% 0%, rgba(184, 135, 53, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(251, 246, 236, 0.98), rgba(242, 234, 217, 0.96)) !important;
  color: #4a2511 !important;
  border-top: 1px solid rgba(184, 135, 53, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 249, 234, 0.78) !important;
}

.site-footer p,
.footer-title,
.str24-credit,
.str24-credit > span,
.str24-logo,
.str24-logo em {
  color: #4a2511 !important;
}

.str24-logo b {
  color: #9b6927 !important;
}

.str24-credit {
  border-left-color: rgba(184, 135, 53, 0.3) !important;
}

@media (max-width: 720px) {
  .characters-section,
  .bestiary-section {
    background:
      linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.34), transparent) top center / 100% 1px no-repeat,
      linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.26), transparent) bottom center / 100% 1px no-repeat,
      radial-gradient(circle at 18% 8%, rgba(184, 135, 53, 0.1), transparent 28%),
      repeating-linear-gradient(90deg, transparent 0 28px, rgba(184, 135, 53, 0.04) 29px 30px),
      linear-gradient(180deg, rgba(251, 246, 236, 0.98), rgba(242, 234, 217, 0.97)) !important;
    color: #4a2511 !important;
  }

  .str24-credit {
    border-top-color: rgba(184, 135, 53, 0.3) !important;
  }
}
/* === V11.0 END === */

/* =====================================================================
   V11.1 - DODATKOWY AUDYT: FINAL QUOTE + PORTRETOWE CIENIE
   Pozostaly dark overlay w .final-quote i czarny gradient w portretach.
   Ujednolicenie z jasnym manuskryptem.
   ===================================================================== */
.final-quote {
  color: #4a2511 !important;
  background:
    linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.34), transparent) top center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.28), transparent) bottom center / 100% 1px no-repeat,
    linear-gradient(rgba(251, 246, 236, 0.9), rgba(242, 234, 217, 0.92)),
    url("assets/hero-art.png") center 30% / cover no-repeat !important;
  border-top: 1px solid rgba(184, 135, 53, 0.18) !important;
  border-bottom: 1px solid rgba(184, 135, 53, 0.18) !important;
}

.final-quote h2,
.final-quote p {
  color: #4a2511 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 232, 0.76) !important;
}

.final-quote p {
  color: #9b6927 !important;
}
/* === V11.1 END === */

/* =====================================================================
   V12.0 - GSAP + LENIS MICRO-INTERACTIONS (marker: V12)
   Smooth physical scroll, scroll-bound reveals, premium hover polish.
   ===================================================================== */
html.v12-lenis-active,
html.v12-lenis-active body {
  height: auto;
  scroll-behavior: auto !important;
}

.scroll-progress {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #b88735, #f3d588, #b88735, transparent) !important;
  box-shadow: 0 0 8px rgba(184, 135, 53, 0.5) !important;
  will-change: width;
}

.site-nav a::after {
  right: auto !important;
  width: 100%;
  transform-origin: left center !important;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    background 260ms ease,
    color 260ms ease,
    box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button-primary::before {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  z-index: -1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 248, 232, 0.58);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.button-primary::after {
  position: relative;
  z-index: 1;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow:
    0 20px 46px rgba(101, 70, 26, 0.24),
    0 0 0 1px rgba(243, 213, 136, 0.42) !important;
}

.button-primary.is-rippling::before {
  animation: v12Ripple 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes v12Ripple {
  0% {
    opacity: 0.46;
    transform: translate(-50%, -50%) scale(0);
  }
  72% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(20);
  }
}

.character-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s,
    border-color 0.4s,
    background 0.4s !important;
}

.character-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-4px) !important;
  box-shadow:
    0 24px 48px rgba(40, 24, 8, 0.18),
    0 0 0 1px rgba(184, 135, 53, 0.4) !important;
}

.map-route path {
  will-change: stroke-dashoffset;
}

.final-quote .reveal {
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  html.v12-lenis-active,
  html.v12-lenis-active body {
    scroll-behavior: auto !important;
  }

  .scroll-progress,
  .site-nav a::after,
  .button-primary,
  .button-primary::before,
  .character-card,
  .map-route path,
  .final-quote .reveal {
    animation: none !important;
    transition: none !important;
  }

  .button-primary::before {
    display: none !important;
  }

  .character-card:hover,
  .button-primary:hover,
  .button-primary:focus-visible {
    transform: none !important;
  }
}
/* === V12.0 END === */

/* =====================================================================
   V13.0 - LAYOUT PRECISION + VERTICAL RHYTHM AUDIT (marker: V13)
   ===================================================================== */
:root {
  --v13-container: 1280px;
  --v13-page-pad: clamp(20px, 4vw, 64px);
  --v13-section-y: 120px;
  --v13-section-y-tablet: 80px;
  --v13-section-y-mobile: 56px;
  --v13-card-pad: 32px;
  --v13-card-pad-mobile: 24px;
  --v13-heading-gap: 40px;
  --v13-grid-gap: 24px;
}

body {
  line-height: 1.65;
}

p {
  margin: 0 0 14px;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.signal-band p {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.2;
}

.hero-copy h1 {
  margin: 0 0 24px !important;
}

.section-heading h2,
.intro-card h2,
.story-title h2,
.world-copy h2,
.author-copy h2,
.final-quote h2 {
  margin: 0 0 16px;
}

.character-card h3,
.beast h3 {
  margin: 0 0 12px;
}

.intro-card h2 {
  font-family: var(--display);
  line-height: 1.1;
}

.character-card h3,
.beast h3 {
  font-family: var(--serif);
  line-height: 1.14;
}

.hero-copy .ornament {
  margin: 0 0 24px !important;
}

.site-header {
  position: fixed;
  top: 0;
  height: 72px;
  min-height: 72px !important;
  padding-right: var(--v13-page-pad);
  padding-left: var(--v13-page-pad);
  z-index: 900;
}

.site-header.is-scrolled {
  min-height: 72px !important;
}

.brand-mark {
  min-height: 72px;
}

.site-nav {
  gap: clamp(18px, 2.2vw, 30px);
}

.scroll-progress {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  z-index: 1000 !important;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.hero {
  min-height: min(100svh, 880px) !important;
  max-height: 880px !important;
}

.hero-stage {
  height: min(100svh, 880px) !important;
  max-height: 880px !important;
}

@media (min-width: 721px) {
  .hero-roza {
    height: 88%;
    right: 6%;
  }

  .hero-ervan {
    height: 74%;
    left: 5%;
  }
}

.scroll-cue {
  bottom: 32px !important;
  width: 18px;
  height: 30px;
  z-index: 11;
}

main > section:not(.hero) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: var(--v13-section-y) !important;
  padding-bottom: var(--v13-section-y) !important;
}

.signal-band,
.intro-strip,
.section-panel {
  width: min(var(--v13-container), calc(100% - var(--v13-page-pad) - var(--v13-page-pad))) !important;
  max-width: var(--v13-container) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.character-grid,
.bestiary-list,
.section-heading,
.final-quote > .reveal {
  width: min(var(--v13-container), 100%) !important;
  max-width: var(--v13-container) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.characters-section,
.bestiary-section,
.final-quote,
.site-footer {
  padding-right: var(--v13-page-pad) !important;
  padding-left: var(--v13-page-pad) !important;
}

.signal-band {
  min-height: 0;
  grid-template-columns: 1fr repeat(4, auto) 1fr;
  gap: 24px;
}

.intro-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-card,
.character-card,
.beast {
  padding: var(--v13-card-pad) !important;
}

.intro-card {
  min-height: 0;
  border-right: 0 !important;
  text-align: center;
}

.intro-icon {
  margin-bottom: 18px;
}

.intro-card p {
  max-width: 280px;
  margin-right: auto;
  margin-left: auto;
}

.section-panel {
  padding: var(--v13-section-y) clamp(32px, 5vw, 82px) !important;
}

.section-panel > .section-kicker {
  position: relative;
  z-index: 2;
}

.story-grid,
.world-section,
.author-section {
  gap: clamp(40px, 5vw, 64px);
}

.section-heading {
  margin-bottom: var(--v13-heading-gap) !important;
  text-align: left;
}

.section-heading h2 {
  max-width: 860px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: var(--v13-grid-gap) !important;
}

.character-card,
.feature-card {
  grid-column: auto !important;
}

.character-portrait {
  margin-bottom: 24px;
}

.character-card span,
.character-card h3,
.character-card p {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.bestiary-list {
  gap: var(--v13-grid-gap) !important;
}

.beast::before {
  left: 14px;
}

.world-section,
.author-section {
  margin-top: 0 !important;
}

.story-title,
.world-copy,
.author-copy {
  text-align: left;
}

.final-quote {
  min-height: 0;
}

.final-quote > .reveal {
  text-align: center;
}

.site-footer {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

@media (max-width: 1120px) {
  main > section:not(.hero) {
    padding-top: var(--v13-section-y-tablet) !important;
    padding-bottom: var(--v13-section-y-tablet) !important;
  }

  .section-panel {
    padding-top: var(--v13-section-y-tablet) !important;
    padding-bottom: var(--v13-section-y-tablet) !important;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 68px;
    min-height: 68px !important;
  }

  .brand-mark {
    min-height: 68px;
  }

  .site-nav {
    inset: 68px var(--v13-page-pad) auto !important;
  }

  .signal-band,
  .intro-strip,
  .section-panel {
    width: min(var(--v13-container), calc(100% - var(--v13-page-pad) - var(--v13-page-pad))) !important;
  }

  .character-grid,
  .bestiary-list,
  .section-heading,
  .final-quote > .reveal {
    width: min(var(--v13-container), 100%) !important;
  }

  .signal-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .intro-card {
    border-bottom: 1px solid var(--line);
  }

  .intro-card:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .story-title,
  .world-copy,
  .author-copy {
    text-align: left;
  }

  .site-footer {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

@media (max-width: 720px) {
  main > section:not(.hero) {
    padding-top: var(--v13-section-y-mobile) !important;
    padding-bottom: var(--v13-section-y-mobile) !important;
  }

  .section-panel {
    padding: var(--v13-section-y-mobile) var(--v13-card-pad-mobile) !important;
  }

  .intro-card,
  .character-card,
  .beast {
    padding: var(--v13-card-pad-mobile) !important;
  }

  .section-heading {
    margin-bottom: 32px !important;
  }

  .character-grid {
    grid-template-columns: 1fr !important;
  }

  .bestiary-list {
    grid-template-columns: 1fr !important;
  }

  .scroll-cue {
    bottom: 32px !important;
  }
}
/* === V13.0 END === */

/* =====================================================================
   V14.0 - CUSTOM GOLD CURSOR + HERO IDLE POLISH (marker: V14)
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  body * {
    cursor: none;
  }

  .custom-cursor,
  .custom-cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  .custom-cursor {
    width: 8px;
    height: 8px;
    z-index: 10000;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 18px rgba(215, 181, 108, 0.58);
    mix-blend-mode: difference;
    transition: transform 0.1s ease, opacity 0.18s ease;
  }

  .custom-cursor-trail {
    width: 32px;
    height: 32px;
    z-index: 9999;
    border: 1px solid rgba(215, 181, 108, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(184, 135, 53, 0.18);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.v14-cursor-active .custom-cursor,
  body.v14-cursor-active .custom-cursor-trail {
    opacity: 1;
  }

  .custom-cursor.cursor-grow {
    transform: translate(-50%, -50%) scale(2);
  }

  .custom-cursor-trail.cursor-grow {
    border-color: rgba(243, 213, 136, 0.96);
    transform: translate(-50%, -50%) scale(1.5);
  }

  .custom-cursor-trail.cursor-image {
    width: 64px;
    height: 64px;
    border-style: dashed;
    border-color: rgba(243, 213, 136, 0.98);
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-layer.hero-roza {
  overflow: visible;
}

.hero-layer.hero-roza img {
  position: relative;
  z-index: 1;
}

.hero-layer.hero-roza::before,
.hero-layer.hero-roza::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 236, 159, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 68%, rgba(215, 181, 108, 0.9) 0 1.5px, transparent 3px),
    radial-gradient(circle at 70% 76%, rgba(255, 246, 210, 0.88) 0 1.8px, transparent 3px),
    radial-gradient(circle at 58% 40%, rgba(243, 213, 136, 0.78) 0 1.4px, transparent 3px);
  filter: drop-shadow(0 0 8px rgba(184, 135, 53, 0.64));
  opacity: 0;
  animation: sparkRiseV14 4s ease-in-out infinite;
}

.hero-layer.hero-roza::before {
  top: 20%;
  right: 30%;
}

.hero-layer.hero-roza::after {
  top: 27%;
  right: 23%;
  width: 76px;
  height: 76px;
  animation-delay: 2s;
  animation-duration: 4.8s;
}

@keyframes sparkRiseV14 {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.72) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  56% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translate3d(16px, -54px, 0) scale(1.08) rotate(8deg);
  }
}

.hero-mist {
  opacity: 0.28;
  animation: mistDriftV14 30s ease-in-out infinite alternate !important;
}

@keyframes mistDriftV14 {
  0% {
    opacity: 0.22;
    transform: translate3d(-24px, 4px, 0) scale(1.01);
  }

  45% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.28;
    transform: translate3d(56px, -12px, 0) scale(1.04);
  }
}

.scroll-cue {
  animation: scrollCueBounceV14 3s ease-in-out infinite;
}

@keyframes scrollCueBounceV14 {
  0%,
  72%,
  100% {
    transform: translate(-50%, 0);
  }

  84% {
    transform: translate(-50%, 8px);
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  body,
  body * {
    cursor: auto !important;
  }

  .custom-cursor,
  .custom-cursor-trail,
  .hero-layer.hero-roza::before,
  .hero-layer.hero-roza::after {
    display: none !important;
  }

  .hero-mist,
  .scroll-cue {
    animation: none !important;
  }
}
/* === V14.0 END === */

/* =====================================================================
   V15.0 - AWWWARDS MOBILE FULL-BLEED HERO REWORK (marker: V15)
   ===================================================================== */
.hero-kicker {
  display: none;
}

@media (max-width: 720px) {
  .site-header:not(.is-scrolled) {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header.is-scrolled {
    background: rgba(247, 241, 229, 0.92) !important;
    box-shadow: 0 16px 50px rgba(41, 29, 16, 0.1) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .site-header:not(.is-scrolled) .brand-mark {
    color: #f3d588 !important;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.42));
  }

  .site-header:not(.is-scrolled) .brand-word,
  .site-header:not(.is-scrolled) .brand-word small {
    color: #faf2dc !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }

  .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(243, 213, 136, 0.86) !important;
    background: rgba(20, 12, 4, 0.24) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .site-header:not(.is-scrolled) .nav-toggle span {
    background: #faf2dc !important;
  }

  .hero {
    min-height: 100svh !important;
    max-height: none !important;
    padding: 0 !important;
    background: #140c04 !important;
  }

  .hero-stage {
    height: 100svh !important;
    max-height: none !important;
  }

  .hero-layer.hero-castle {
    z-index: 1;
    height: 110% !important;
    top: 0 !important;
    bottom: auto !important;
    will-change: transform;
  }

  .hero-layer.hero-castle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero-layer.hero-castle::after,
  .hero-stage::before,
  .hero-stage-mobile::before,
  .hero-frame,
  .hero-foliage,
  .hero-mist,
  .scroll-cue {
    display: none !important;
  }

  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: none !important;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 48%,
      rgba(20, 12, 4, 0.45) 74%,
      rgba(20, 12, 4, 0.76) 100%
    );
    pointer-events: none;
  }

  .hero::after {
    display: none !important;
  }

  .hero-copy {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 4;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px 24px 56px !important;
    text-align: left !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    will-change: transform;
  }

  .hero-copy h1 {
    color: #f3d588 !important;
    font-size: 2rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    margin: 0 0 12px !important;
  }

  .hero-copy .eyebrow {
    color: #f3d588 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.18em !important;
    margin: 0 0 10px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  }

  .hero-copy .hero-kicker {
    display: block !important;
    color: #faf2dc !important;
    font-family: var(--serif);
    font-size: clamp(0.92rem, 4vw, 1.04rem) !important;
    line-height: 1.2 !important;
    margin: 0 0 14px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62) !important;
  }

  .hero-copy .hero-lead {
    display: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    color: #faf2dc !important;
    font-size: 0.95rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }

  .hero-copy blockquote,
  .hero-copy .ornament,
  .hero-copy .button-primary {
    display: none !important;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .hero-copy {
    padding: 20px 22px 28px !important;
  }

  .hero-copy h1 {
    font-size: 1.45rem !important;
  }

  .hero-copy .hero-kicker {
    display: none !important;
  }
}
/* === V15.0 END === */

/* =====================================================================
   V16.0 - AWWWARDS POLISH: MOBILE HERO TEXT + SIGNAL BAND + ICONS (marker: V16)
   ===================================================================== */
@media (max-width: 720px) {
  .hero-copy {
    isolation: isolate !important;
    overflow: visible !important;
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: -20px;
    bottom: -20px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at center,
      rgba(20, 12, 4, 0.55) 0%,
      rgba(20, 12, 4, 0.35) 50%,
      transparent 80%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.signal-band {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 56px clamp(20px, 4vw, 64px) !important;
}

.signal-band > p,
.signal-band > .reveal {
  flex: 1 1 auto !important;
  text-align: center !important;
  position: relative !important;
  font-family: var(--serif) !important;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem) !important;
  letter-spacing: 0.18em !important;
  color: #b88735 !important;
  margin: 0 !important;
}

.signal-band > p + p::before,
.signal-band > .reveal + .reveal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184, 135, 53, 0.4), transparent);
}

.signal-line {
  display: none !important;
}

.intro-icon img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
  filter: drop-shadow(0 4px 12px rgba(184, 135, 53, 0.25));
}

.intro-card:hover .intro-icon img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 12px 28px rgba(184, 135, 53, 0.5)) brightness(1.1);
}

@media (max-width: 720px) {
  .signal-band {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 40px 24px !important;
  }

  .signal-band > p + p::before,
  .signal-band > .reveal + .reveal::before {
    display: none !important;
  }

  .signal-band > p,
  .signal-band > .reveal {
    border-bottom: 1px solid rgba(184, 135, 53, 0.18);
    padding-bottom: 16px;
  }

  .signal-band > p:last-child,
  .signal-band > p:last-of-type,
  .signal-band > .reveal:last-child {
    border-bottom: 0;
  }
}
/* === V16.0 END === */


/* =====================================================================
   V17.0 — ROLLBACK MOBILE: Michał's ORIGINAL layered PNG (Róża/Ervan/zamek/ferny)
   + tekst GÓRA w pustej kremowej przestrzeni, POSTACIE DÓŁ w narożach
   (marker: V17)
   ===================================================================== */
@media (max-width: 720px) {
  /* Pokaż wszystkie layery (cofnij V6.0 display:none) */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: block !important;
  }

  /* Zamek - duże tło mglistego krajobrazu, dolna połowa */
  .hero-layer.hero-castle {
    inset: 0 !important;
    z-index: 1 !important;
  }
  .hero-layer.hero-castle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 60% !important;
  }
  .hero-layer.hero-castle::after {
    background: linear-gradient(180deg,
      rgba(251, 246, 236, 0.96) 0%,
      rgba(251, 246, 236, 0.88) 30%,
      rgba(251, 246, 236, 0.45) 50%,
      rgba(251, 246, 236, 0.10) 70%,
      transparent 100%) !important;
  }

  /* Róża - prawa-dolna, dolne 55% wysokości */
  .hero-layer.hero-roza {
    position: absolute !important;
    right: -4% !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 70% !important;
    max-width: none !important;
    height: 55% !important;
    z-index: 4 !important;
  }
  .hero-layer.hero-roza img {
    object-fit: contain !important;
    object-position: bottom right !important;
    filter: drop-shadow(0 18px 32px rgba(40, 24, 8, 0.25)) !important;
  }

  /* Ervan - lewa-dolna, mniejszy bo na drugim planie */
  .hero-layer.hero-ervan {
    position: absolute !important;
    left: -6% !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
    width: 50% !important;
    max-width: none !important;
    height: 42% !important;
    z-index: 3 !important;
    opacity: 0.92 !important;
  }
  .hero-layer.hero-ervan img {
    object-fit: contain !important;
    object-position: bottom left !important;
    filter: drop-shadow(0 14px 26px rgba(40, 24, 8, 0.3)) !important;
  }

  /* Fern lewa - lewy-dolny narożnik, mały */
  .hero-layer.hero-fern-l {
    position: absolute !important;
    left: 0 !important;
    bottom: -4% !important;
    top: auto !important;
    width: 36% !important;
    height: 38% !important;
    z-index: 5 !important;
    opacity: 0.55 !important;
  }
  .hero-layer.hero-fern-l img {
    object-fit: contain !important;
    object-position: bottom left !important;
  }

  /* Fern prawa - prawy górny narożnik, lekka rama */
  .hero-layer.hero-fern-r {
    position: absolute !important;
    right: 0 !important;
    top: 6% !important;
    bottom: auto !important;
    width: 32% !important;
    height: 34% !important;
    z-index: 5 !important;
    opacity: 0.40 !important;
    transform: scaleX(-1) !important;
  }
  .hero-layer.hero-fern-r img {
    object-fit: contain !important;
    object-position: top right !important;
  }

  /* Hero copy GÓRA - tekst w pustej kremowej przestrzeni */
  .hero-copy {
    position: absolute !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    padding: 0 24px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 8 !important;
  }

  .hero-copy .eyebrow {
    color: #b88735 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.32em !important;
    margin-bottom: 14px !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.5) !important;
  }

  .hero-copy h1 {
    color: #3a1a08 !important;
    font-size: 2.1rem !important;
    line-height: 1.0 !important;
    margin: 0 0 14px !important;
    letter-spacing: 0.03em !important;
    text-shadow:
      0 1px 0 rgba(251, 246, 236, 0.85),
      0 4px 18px rgba(251, 246, 236, 0.6) !important;
  }

  .hero-copy .ornament {
    margin: 6px auto 12px !important;
    opacity: 0.55 !important;
  }

  .hero-copy .hero-lead {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    color: #4a2511 !important;
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto 14px !important;
    max-width: 320px !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.85) !important;
  }

  .hero-copy blockquote {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    color: #6b3a1b !important;
    font-size: 0.88rem !important;
    font-style: italic !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto 16px !important;
    max-width: 280px !important;
    display: block !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.85) !important;
  }

  .hero-copy .button-primary {
    color: #4a2511 !important;
    border: 1px solid rgba(184, 135, 53, 0.5) !important;
    background: rgba(251, 246, 236, 0.6) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
  }

  /* Scroll cue - mała kropka centered, niżej */
  .hero .scroll-cue {
    bottom: 18px !important;
    z-index: 9 !important;
  }
}
/* === V17.0 END === */


/* =====================================================================
   V17.1 — DESKTOP FIXES: hero-copy nie na Ervanie, signal-band horyzontalny,
   intro-strip 3 ikony zawsze w jednej linii (marker: V17.1)
   ===================================================================== */
@media (min-width: 721px) {
  /* Hero copy - przesunięty w prawo tak żeby NIE wpadał na Ervana po lewej.
     Ervan jest 26vw szeroki po lewej. Tekst zaczynamy 4vw od jego prawej krawędzi. */
  .hero-copy {
    margin-left: clamp(80px, calc(26vw + 32px), 360px) !important;
    max-width: 480px !important;
    width: auto !important;
    padding: 96px 0 56px !important;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.6rem) !important;
    line-height: 0.98 !important;
    letter-spacing: 0.02em !important;
  }

  .hero-copy .hero-lead,
  .hero-copy blockquote {
    max-width: 380px !important;
  }

  /* Signal-band - horyzontalna linia 4 wartości z dividers */
  .signal-band {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 56px clamp(40px, 6vw, 120px) !important;
    position: relative;
  }
  .signal-band .signal-line {
    display: none !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    flex: 1 1 auto !important;
    text-align: center !important;
    position: relative !important;
    font-family: var(--serif) !important;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem) !important;
    letter-spacing: 0.22em !important;
    color: #b88735 !important;
    margin: 0 !important;
    text-transform: uppercase;
  }
  .signal-band > p + p::before,
  .signal-band > .reveal + .reveal::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 1px !important;
    background: linear-gradient(180deg, transparent, rgba(184, 135, 53, 0.5), transparent) !important;
  }

  /* Intro-strip - 3 ikony ZAWSZE w jednej linii, bez wrapping */
  .intro-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: clamp(24px, 3vw, 56px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 96px clamp(20px, 4vw, 64px) !important;
  }
  .intro-card {
    flex: none !important;
    width: auto !important;
  }
}

/* Mobile signal-band - kolumnowy */
@media (max-width: 720px) {
  .signal-band {
    flex-direction: column !important;
    gap: 18px !important;
    padding: 40px 24px !important;
    display: flex !important;
  }
  .signal-band .signal-line {
    display: block !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    text-align: center !important;
    color: #b88735 !important;
    letter-spacing: 0.22em !important;
    margin: 0 !important;
    font-family: var(--serif) !important;
    font-size: 1rem !important;
  }
  .signal-band > p + p::before,
  .signal-band > .reveal + .reveal::before {
    display: none !important;
  }

  /* Intro-strip mobile - jednokolumnowy stack */
  .intro-strip {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 56px 24px !important;
  }
}
/* === V17.1 END === */


/* =====================================================================
   V17.2 — MOBILE TEXT VISIBILITY FIX
   - Wymuś opacity 1 na elementach hero-copy (cofa is-loading hide)
   - Wymuś jaśniejszy tytuł na ciemnym tle zamku
   - Letter-by-letter reveal: bypass na mobile (od razu widoczne)
   (marker: V17.2)
   ===================================================================== */
@media (max-width: 720px) {
  body.is-loading .hero-copy > *,
  body .hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .ornament,
  .hero-copy .hero-lead,
  .hero-copy blockquote,
  .hero-copy .button-primary {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-letter,
  .hero-copy h1 .hero-letter,
  .hero-copy h1 span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: inline-block !important;
  }

  .hero-copy h1 {
    color: #2a1605 !important;
    text-shadow:
      0 1px 0 rgba(251, 246, 236, 0.98),
      0 2px 4px rgba(251, 246, 236, 0.85),
      0 4px 24px rgba(251, 246, 236, 0.7),
      0 0 32px rgba(251, 246, 236, 0.5) !important;
  }

  .hero-copy .eyebrow {
    color: #8a5e1a !important;
    text-shadow:
      0 1px 0 rgba(251, 246, 236, 0.85),
      0 2px 8px rgba(251, 246, 236, 0.6) !important;
  }
}
/* === V17.2 END === */


/* =====================================================================
   V17.3 — DESKTOP TITLE WORD-BREAK FIX (FAŁSZYWEGO mustn't split)
   (marker: V17.3)
   ===================================================================== */
@media (min-width: 721px) {
  .hero-copy {
    max-width: 620px !important;
    margin-left: clamp(120px, calc(26vw + 56px), 420px) !important;
  }

  .hero-copy h1 {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    white-space: normal !important;
    font-size: clamp(2.6rem, 4.2vw, 4.2rem) !important;
    line-height: 0.96 !important;
    letter-spacing: 0.015em !important;
  }

  .hero-copy h1 span,
  .hero-copy .hero-letter {
    white-space: normal !important;
  }
}
/* === V17.3 END === */


/* =====================================================================
   V17.4 — MOBILE HERO LAYERS FORCED VISIBILITY
   PNG postaci Roza+Ervan+castle+ferny mialy opacity 0 z reveal animation
   ktore nie odpalalo na mobile. Wymus opacity 1 statycznie.
   (marker: V17.4)
   ===================================================================== */
@media (max-width: 720px) {
  .hero-stage,
  .hero-layer,
  .hero-layer.hero-castle,
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Force hero-stage visibility */
  body.is-loading .hero-stage,
  body.is-loading .hero-layer {
    opacity: 1 !important;
  }

  /* Cofnij ferny opacity z V17.0 (były 0.4-0.55) — niech będą widoczne */
  .hero-layer.hero-fern-l { opacity: 0.6 !important; }
  .hero-layer.hero-fern-r { opacity: 0.45 !important; }

  /* Ervan trochę więcej alpha żeby widać było */
  .hero-layer.hero-ervan { opacity: 0.95 !important; }
}
/* === V17.4 END === */


/* =====================================================================
   V17.5 — MOBILE HERO TŁO JASNE PARCHMENT (jak na desktopie)
   - object-position castle img na górną mglistą jasną część
   - cream parchment gradient wzmocniony, zaciera ciemne miejsca
   (marker: V17.5)
   ===================================================================== */
@media (max-width: 720px) {
  /* Zamek - pokazuj GÓRNĄ JASNĄ mglistą część obrazu, nie dolne ciemne */
  .hero-layer.hero-castle img {
    object-position: center 18% !important;
    filter: brightness(1.04) saturate(0.9) !important;
  }

  /* Mocny cream gradient overlay - od pełnej kremowej góry, fade do widoczności na środku-dole */
  .hero-layer.hero-castle::after {
    background:
      linear-gradient(180deg,
        rgba(251, 246, 236, 0.98) 0%,
        rgba(251, 246, 236, 0.92) 18%,
        rgba(251, 246, 236, 0.72) 35%,
        rgba(251, 246, 236, 0.45) 55%,
        rgba(251, 246, 236, 0.30) 75%,
        rgba(251, 246, 236, 0.42) 100%) !important;
  }

  /* Dodatkowy radial vignette gold - delikatny w środku */
  .hero-stage::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: radial-gradient(
      ellipse at center 60%,
      rgba(184, 135, 53, 0.10) 0%,
      transparent 60%) !important;
  }

  /* Hero generally - jasne tło parchment */
  .hero {
    background: linear-gradient(180deg, #fbf6ec 0%, #f5ecd7 100%) !important;
  }
}
/* === V17.5 END === */


/* =====================================================================
   V17.6 — MOBILE HERO: PEŁNE PARCHMENT TŁO + WYCISZONY ZAMEK
   Hero-castle img wyciszamy do subtle ghost mgły (opacity 0.30), 
   tło hero pełne cream gradient. Postacie zostają wyraziste.
   (marker: V17.6)
   ===================================================================== */
@media (max-width: 720px) {
  /* Pełen cream parchment background na hero */
  .hero {
    background: linear-gradient(180deg,
      #fbf6ec 0%,
      #f7efdb 35%,
      #f2e8cf 65%,
      #ead9b3 100%) !important;
    position: relative !important;
  }

  /* Zamek - tylko subtle ghost we mgle, 30% opacity, blend mode */
  .hero-layer.hero-castle {
    opacity: 0.32 !important;
    mix-blend-mode: multiply !important;
  }
  .hero-layer.hero-castle img {
    object-position: center 15% !important;
    filter: brightness(1.15) contrast(0.85) sepia(0.2) !important;
  }
  .hero-layer.hero-castle::after {
    background: linear-gradient(180deg,
      rgba(251, 246, 236, 0.55) 0%,
      rgba(251, 246, 236, 0.40) 50%,
      rgba(251, 246, 236, 0.65) 100%) !important;
  }

  /* Hero-stage przed - delikatny gold vignette */
  .hero-stage::before {
    background: radial-gradient(
      ellipse at center 55%,
      rgba(184, 135, 53, 0.08) 0%,
      transparent 65%) !important;
  }

  /* Postacie - subtle bottom shadow, NIE ciemne podłoże */
  .hero-layer.hero-roza img,
  .hero-layer.hero-ervan img {
    filter: drop-shadow(0 16px 24px rgba(40, 24, 8, 0.18)) !important;
  }
}
/* === V17.6 END === */


/* =====================================================================
   V17.7 — DESKTOP HERO-COPY MIĘDZY ERVANEM A RÓŻĄ (środkowa kolumna)
   Tekst NIE wpada na żadną postać.
   (marker: V17.7)
   ===================================================================== */
@media (min-width: 721px) {
  .hero-copy {
    margin-left: clamp(240px, 30vw, 560px) !important;
    margin-right: clamp(220px, 24vw, 460px) !important;
    max-width: 480px !important;
    width: auto !important;
    text-align: center !important;
    padding: 80px 0 56px !important;
  }

  .hero-copy h1 {
    text-align: center !important;
    font-size: clamp(2.4rem, 3.8vw, 3.8rem) !important;
    line-height: 0.98 !important;
  }

  .hero-copy .eyebrow {
    text-align: center !important;
  }

  .hero-copy .ornament {
    margin: 12px auto !important;
  }

  .hero-copy .hero-lead {
    margin: 0 auto 12px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .hero-copy blockquote {
    margin: 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-copy .button-primary {
    margin: 18px auto 0 !important;
    display: inline-flex !important;
  }
}

@media (min-width: 1280px) {
  .hero-copy {
    margin-left: clamp(360px, 28vw, 600px) !important;
    margin-right: clamp(300px, 22vw, 500px) !important;
  }
}
/* === V17.7 END === */


/* =====================================================================
   V17.8 — MOBILE HERO: TŁO PUR PARCHMENT, BEZ ZAMKU, BEZ CIEMNEGO
   Michał: "zamku na mobile nie widać, nieszkodzi. tło piękne ma być"
   - Hide hero-castle layer całkowicie (ciemne fragmenty go zostawiają)
   - Hero background pełen cream parchment gradient, bez multiply blend
   - Tylko postacie + ferny na cream tle
   (marker: V17.8)
   ===================================================================== */
@media (max-width: 720px) {
  /* Hero-castle - UKRYJ na mobile, generuje czarne plamki */
  .hero-layer.hero-castle {
    display: none !important;
  }
  .hero-layer.hero-castle::after {
    display: none !important;
  }

  /* Hero - pełen cream parchment background z subtle texture */
  .hero {
    background:
      radial-gradient(ellipse at 50% 30%, #fff8e8 0%, transparent 60%),
      linear-gradient(180deg,
        #fbf6ec 0%,
        #f8f0d9 30%,
        #f3e9c8 60%,
        #ecddb0 100%) !important;
  }

  /* Hero-stage - przezroczyste, tylko trzyma postacie */
  .hero-stage {
    background: transparent !important;
  }

  .hero-stage::before {
    background: radial-gradient(
      ellipse at center 65%,
      rgba(184, 135, 53, 0.06) 0%,
      transparent 70%) !important;
  }

  /* Postacie - subtle ground shadow */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan {
    mix-blend-mode: normal !important;
  }
  .hero-layer.hero-roza img,
  .hero-layer.hero-ervan img {
    filter: drop-shadow(0 18px 28px rgba(40, 24, 8, 0.22)) drop-shadow(0 4px 8px rgba(40, 24, 8, 0.15)) !important;
  }

  /* Ferns - subtle on cream */
  .hero-layer.hero-fern-l img,
  .hero-layer.hero-fern-r img {
    filter: drop-shadow(0 4px 8px rgba(40, 24, 8, 0.08)) !important;
  }
}
/* === V17.8 END === */


/* =====================================================================
   V17.9 — MOBILE: WYMUSZONE JASNE KREMOWE TŁO + LŻEJSZE CIENIE
   Wciąż za ciemno - sproboj jaśniejsze gradient + zmniejszone shadows
   (marker: V17.9)
   ===================================================================== */
@media (max-width: 720px) {
  body,
  body.is-loading {
    background: #fbf6ec !important;
  }

  .hero,
  .hero-stage {
    background: linear-gradient(180deg,
      #fbf6ec 0%,
      #fbf6ec 100%) !important;
  }

  /* Pseudo-element hero-stage - jeszcze subtelniej */
  .hero-stage::before {
    background: transparent !important;
  }

  /* Postacie - dużo lżejsze cienie, bez ciemnych vignette */
  .hero-layer.hero-roza img,
  .hero-layer.hero-ervan img {
    filter: drop-shadow(0 10px 18px rgba(120, 80, 40, 0.12)) !important;
  }

  .hero-layer.hero-fern-l img,
  .hero-layer.hero-fern-r img {
    filter: none !important;
  }

  /* hero-foliage div (jezeli istnieje) - upewnij siê ze nie cieni */
  .hero-foliage {
    background: transparent !important;
    display: none !important;
  }

  /* hero-mist (jezeli istnieje) - subtle parchment mist tylko */
  .hero-mist {
    background: linear-gradient(180deg, 
      rgba(251, 246, 236, 0) 0%,
      rgba(251, 246, 236, 0.6) 80%,
      rgba(251, 246, 236, 0.95) 100%) !important;
    z-index: 3 !important;
  }

  /* hero-frame - bez ciemnego okolu */
  .hero-frame {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}
/* === V17.9 END === */


/* =====================================================================
   V17.10 — HARD RESET BACKGROUNDS MOBILE HERO
   Wszystkie elementy hero na mobile - cream background bez wyjątku
   (marker: V17.10)
   ===================================================================== */
@media (max-width: 720px) {
  /* Wszystko cream */
  html,
  body,
  main,
  .hero,
  .hero > *,
  .hero-stage,
  .hero-frame,
  .hero-foliage,
  .spark-field,
  .ambient-motes,
  .site-vignette,
  .page-texture,
  .hero-mist {
    background: #fbf6ec !important;
    background-color: #fbf6ec !important;
    background-image: none !important;
  }

  /* Wyjątek - hero-stage musi być transparentne żeby postacie widoczne */
  .hero-stage,
  .hero-layer,
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    background: transparent !important;
    background-color: transparent !important;
  }

  /* Cream gradient subtelny na hero z parchment radial tylko */
  .hero {
    background:
      radial-gradient(ellipse at 50% 100%, rgba(220, 200, 160, 0.18) 0%, transparent 50%),
      #fbf6ec !important;
  }

  /* Vignette overlay całkiem off */
  .site-vignette { 
    display: none !important; 
  }

  /* Page texture overlay - bardzo subtelnie albo off */
  .page-texture { 
    opacity: 0.2 !important; 
    mix-blend-mode: normal !important;
  }

  /* Hero overlays oraz mist - usuń */
  .hero-mist,
  .hero-stage::before,
  .hero-stage::after {
    display: none !important;
  }
}
/* === V17.10 END === */


/* =====================================================================
   V17.11 — COFNIJ V17.10 (zniszczyło layout), minimalny fix tla
   (marker: V17.11)
   ===================================================================== */
@media (max-width: 720px) {
  /* Cofnij V17.10 - przywróć display */
  html,
  body,
  main,
  .hero,
  .hero-frame,
  .hero-foliage,
  .spark-field,
  .ambient-motes {
    background-image: revert-layer !important;
    background-color: revert-layer !important;
    display: revert-layer !important;
  }

  /* Cofnij hero-stage transparent */
  .hero-stage,
  .hero-stage::before,
  .hero-stage::after,
  .hero-mist {
    display: revert-layer !important;
  }

  /* Cofnij site-vignette + page-texture */
  .site-vignette {
    display: revert !important;
  }
  .page-texture {
    opacity: revert !important;
    mix-blend-mode: revert !important;
  }

  /* Tylko 1 minimalny fix: hero background z mocnym cream tylko (override innych regul background) */
  .hero {
    background: #fbf6ec !important;
  }

  /* Body bg jasny kremowy */
  body {
    background: #fbf6ec !important;
  }

  /* Hero-layer.hero-castle wciąż hide (V17.8) - powtórz */
  .hero-layer.hero-castle {
    display: none !important;
  }

  /* hero-stage::before/after z V17 - hide bo dają cienie */
  .hero-stage::before {
    display: none !important;
  }

  /* Postacie - przywrócić display block */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: block !important;
    opacity: 1 !important;
  }

  /* hero-mist subtle */
  .hero-mist {
    background: transparent !important;
    opacity: 0.3 !important;
  }
}
/* === V17.11 END === */


/* =====================================================================
   V17.12 — MOBILE: TOTAL FORCE ECRU TLO, USUN WSZYSTKIE CIEMNE OVERLAYY
   (marker: V17.12)
   ===================================================================== */
@media (max-width: 720px) {
  /* HARD FORCE body + main + html background ecru */
  html { background: #f5ecd7 !important; }
  body { background: #f5ecd7 !important; }
  main { background: transparent !important; }

  /* Hero - full ecru */
  .hero {
    background: #f5ecd7 !important;
  }

  /* Wszystkie atmospheric overlays - WYŁACZ */
  .hero-mist,
  .hero-frame,
  .hero-foliage,
  .site-vignette,
  .page-texture,
  .ambient-motes,
  .cursor-glow,
  .spark-field,
  .hero-stage::before,
  .hero-stage::after {
    display: none !important;
    background: transparent !important;
    opacity: 0 !important;
  }

  /* Hero-castle layer - hide (juz V17.8) */
  .hero-layer.hero-castle {
    display: none !important;
  }

  /* Hero-stage transparent */
  .hero-stage {
    background: transparent !important;
  }

  /* Postacie - widoczne na ecru, bez ciemnego shadow */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: block !important;
    opacity: 1 !important;
    background: transparent !important;
  }

  .hero-layer.hero-roza img,
  .hero-layer.hero-ervan img {
    filter: drop-shadow(0 8px 14px rgba(120, 80, 40, 0.10)) !important;
  }

  /* Postacie ferny widoczne (V17.4 fern alpha) */
  .hero-layer.hero-fern-l { opacity: 0.55 !important; }
  .hero-layer.hero-fern-r { opacity: 0.40 !important; }
}
/* === V17.12 END === */


/* =====================================================================
   V17.13 — DIAGNOSTIC: WYMUS POWIATOWE BIAŁE TLO ŻEBY ZOBACZYĆ GDZIE
   CIEN POCHODZI
   (marker: V17.13)
   ===================================================================== */
@media (max-width: 720px) {
  html, body, main, .hero {
    background: #ffffff !important;
    background-image: none !important;
  }

  /* Wszystkie potencjalne dark overlay elementy WYŁĄCZ */
  .hero-mist,
  .hero-frame,
  .hero-foliage,
  .site-vignette,
  .page-texture,
  .ambient-motes,
  .cursor-glow,
  .spark-field,
  .hero-stage::before,
  .hero-stage::after,
  .hero-art-full,
  .hero-art-full::before,
  .hero-art-full::after,
  .hero-content-wrap,
  .hero::before,
  .hero::after {
    display: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* Hero-letter (V3.8 letter reveal) - bez ciemny */
  .hero-letter {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Hero-castle - hide */
  .hero-layer.hero-castle {
    display: none !important;
  }

  /* Hero-stage transparent */
  .hero-stage,
  .hero-stage > * {
    background: transparent !important;
  }
}
/* === V17.13 END === */


/* =====================================================================
   V17.14 — MOBILE: ECRU/PARCHMENT TŁO (zastąp white z V17.13)
   (marker: V17.14)
   ===================================================================== */
@media (max-width: 720px) {
  html, body, main, .hero {
    background: #f2ead9 !important;
    background-image: none !important;
  }
}
/* === V17.14 END === */


/* =====================================================================
   V17.15 — MOBILE NUKE WSZYSTKIE BACKGROUND-IMAGE W HERO + POTOMKACH
   Jasno ecru, bez gradientów, bez ::before/::after dark overlays
   (marker: V17.15)
   ===================================================================== */
@media (max-width: 720px) {
  html,
  body,
  main,
  .hero,
  .hero *,
  .hero::before,
  .hero::after,
  .hero-stage,
  .hero-stage::before,
  .hero-stage::after,
  .hero-art-full,
  .hero-art-full::before,
  .hero-art-full::after,
  .hero-letter,
  .hero-frame,
  .hero-foliage,
  .hero-mist,
  .site-vignette,
  .page-texture,
  .ambient-motes,
  .spark-field,
  .signal-band {
    background-image: none !important;
  }

  /* Force ecru on key containers */
  html,
  body,
  main,
  .hero {
    background-color: #f2ead9 !important;
  }

  /* Hero-castle - hide */
  .hero-layer.hero-castle {
    display: none !important;
  }

  /* Hide hero-art-full (dark hero alternative z V3) */
  .hero-art-full {
    display: none !important;
  }

  /* Hide hero overlays */
  .hero::before,
  .hero::after,
  .hero-stage::before,
  .hero-stage::after {
    display: none !important;
  }

  /* Postacie - widoczne na ecru, jasniejsze cienie */
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: block !important;
    opacity: 1 !important;
    background: transparent !important;
  }
  .hero-layer.hero-fern-l { opacity: 0.5 !important; }
  .hero-layer.hero-fern-r { opacity: 0.35 !important; }

  .hero-layer.hero-roza img,
  .hero-layer.hero-ervan img {
    filter: drop-shadow(0 8px 12px rgba(120, 80, 40, 0.10)) !important;
  }
}
/* === V17.15 END === */


/* =====================================================================
   V18.0 — CLEAN MOBILE HERO RESET
   Pełen reset, ostatecznie czyste ecru tło, postacie full PNG widoczne,
   tekst transparent overlay, brak ciemnych blokow ani gradient.
   NADPISUJE WSZYSTKO Z V17.0-V17.15 dla mobile.
   (marker: V18)
   ===================================================================== */
@media (max-width: 720px) {
  /* === HERO BACKGROUND === */
  html, body { background: #f2ead9 !important; background-image: none !important; }
  main { background: transparent !important; }
  .hero {
    background: #f2ead9 !important;
    background-image: none !important;
    position: relative !important;
    min-height: 100svh !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  /* === OFF wszystkie atmospheric/decorative overlays === */
  .hero-mist,
  .hero-frame,
  .hero-foliage,
  .site-vignette,
  .page-texture,
  .ambient-motes,
  .spark-field,
  .cursor-glow,
  .hero-art-full,
  .hero-art-full::before,
  .hero-art-full::after,
  .hero::before,
  .hero::after,
  .hero-stage::before,
  .hero-stage::after,
  .hero-layer.hero-castle,
  .hero-layer.hero-castle::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* === HERO-COPY: bez tła, bez backdrop, bez box-shadow === */
  .hero-copy,
  .hero-copy *,
  .hero-copy .hero-lead,
  .hero-copy blockquote,
  .hero-copy .button-primary,
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .ornament {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  /* === HERO-COPY pozycja: GÓRA viewport === */
  .hero-copy {
    position: absolute !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    padding: 0 24px !important;
    text-align: center !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* === Typography === */
  .hero-copy .eyebrow {
    color: #b88735 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.32em !important;
    margin: 0 0 10px !important;
    font-family: var(--serif) !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  .hero-copy h1 {
    color: #2a1605 !important;
    font-size: 2rem !important;
    line-height: 1.02 !important;
    margin: 0 0 14px !important;
    font-family: var(--serif) !important;
    letter-spacing: 0.03em !important;
    opacity: 1 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.55) !important;
  }

  .hero-copy .ornament {
    margin: 4px auto 10px !important;
    opacity: 0.5 !important;
  }

  .hero-copy .hero-lead {
    color: #4a2511 !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    max-width: 300px !important;
    margin: 0 auto 8px !important;
    padding: 0 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.45) !important;
  }

  /* CYTAT - tylko jeden, jeśli wewnątrz hero-copy, mały italic */
  .hero-copy blockquote {
    color: #6b3a1b !important;
    font-size: 0.82rem !important;
    font-style: italic !important;
    max-width: 270px !important;
    margin: 0 auto 12px !important;
    padding: 0 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.45) !important;
  }

  /* Wszelkie duplikujące się <p data-blurb> ukryć */
  .hero-copy [data-blurb] + blockquote,
  .hero-copy blockquote + blockquote,
  .hero-copy .hero-lead + .hero-lead {
    display: none !important;
  }

  .hero-copy .button-primary {
    color: #4a2511 !important;
    border: 1px solid rgba(184, 135, 53, 0.55) !important;
    background: rgba(251, 246, 236, 0.5) !important;
    padding: 9px 18px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    margin: 4px auto 0 !important;
    display: inline-block !important;
  }

  /* === POSTACIE - pełne PNG widoczne === */
  .hero-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: transparent !important;
  }

  .hero-layer.hero-roza,
  .hero-layer.hero-ervan,
  .hero-layer.hero-fern-l,
  .hero-layer.hero-fern-r {
    display: block !important;
    opacity: 1 !important;
    background: transparent !important;
    animation: none !important;
    transition: none !important;
  }

  /* Róża - prawa-dolna, FULL height z bottom, twarz wystaje powyżej środka */
  .hero-layer.hero-roza {
    position: absolute !important;
    right: -2% !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 64% !important;
    max-width: none !important;
    height: 65% !important;
    z-index: 4 !important;
  }
  .hero-layer.hero-roza img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom right !important;
    filter: drop-shadow(0 12px 18px rgba(120, 80, 40, 0.18)) !important;
  }

  /* Ervan - lewa-dolna, mniejszy */
  .hero-layer.hero-ervan {
    position: absolute !important;
    left: -4% !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
    width: 50% !important;
    max-width: none !important;
    height: 50% !important;
    z-index: 3 !important;
  }
  .hero-layer.hero-ervan img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom left !important;
    filter: drop-shadow(0 10px 16px rgba(120, 80, 40, 0.16)) !important;
  }

  /* Fern lewa - subtle w lewym dolnym */
  .hero-layer.hero-fern-l {
    position: absolute !important;
    left: 0 !important;
    bottom: -3% !important;
    top: auto !important;
    width: 28% !important;
    height: 32% !important;
    z-index: 5 !important;
    opacity: 0.45 !important;
  }
  .hero-layer.hero-fern-l img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: bottom left !important;
  }

  /* Fern prawa - górny narożnik */
  .hero-layer.hero-fern-r {
    position: absolute !important;
    right: 0 !important;
    top: 5% !important;
    bottom: auto !important;
    width: 26% !important;
    height: 28% !important;
    z-index: 5 !important;
    opacity: 0.32 !important;
    transform: scaleX(-1) !important;
  }
  .hero-layer.hero-fern-r img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: top right !important;
  }
}
/* === V18.0 END === */


/* =====================================================================
   V19.0 — AWWWARDS JUROR FINAL POLISH
   Responsiveness, rhythm, placement harmony, focus/link polish.
   (marker: V19)
   ===================================================================== */
:root {
  --v19-container: 1280px;
  --v19-page-pad: clamp(20px, 4vw, 64px);
  --v19-section-y: 120px;
  --v19-section-y-tablet: 96px;
  --v19-section-y-mobile: 64px;
  --v19-grid-gap: clamp(20px, 2vw, 32px);
  --v19-gold-ring: 0 0 0 1px rgba(184, 135, 53, 0.88), 0 0 0 5px rgba(184, 135, 53, 0.2);
}

body.is-loading .hero-copy > * {
  opacity: 1 !important;
  transform: none !important;
}

body.is-loading .hero-layer.hero-castle,
body.is-loading .hero-layer.hero-roza,
body.is-loading .hero-layer.hero-ervan {
  opacity: 1 !important;
  transform: none !important;
}

body.is-loading .hero-layer.hero-fern-l { opacity: 0.72 !important; }
body.is-loading .hero-layer.hero-fern-r { opacity: 0.58 !important; }

a:focus-visible,
button:focus-visible,
.intro-card:focus-within,
.character-card:focus-within,
.map-frame:focus-within {
  outline: 0 !important;
  box-shadow: var(--v19-gold-ring) !important;
}

.site-nav a,
.intro-card a,
.str24-credit {
  text-underline-offset: 0.28em;
}

.intro-card a,
.str24-credit {
  position: relative;
  text-decoration: none !important;
}

.intro-card a::after,
.str24-credit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-card a:hover::after,
.intro-card a:focus-visible::after,
.str24-credit:hover::after,
.str24-credit:focus-visible::after {
  transform: scaleX(1);
}

.button-primary {
  min-height: 48px !important;
  padding: 0 30px !important;
  align-items: center !important;
  justify-content: center !important;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-4px) scale(1.01) !important;
}

.hero-copy h1 {
  margin-bottom: 24px !important;
}

.hero-copy .hero-kicker {
  margin: -12px auto 16px !important;
}

.section-heading h2,
.story-title h2,
.world-copy h2,
.author-copy h2,
.final-quote h2 {
  margin-bottom: 16px !important;
}

.intro-card h2,
.character-card h3,
.beast h3 {
  margin-bottom: 12px !important;
}

p {
  margin-bottom: 14px;
}

p:last-child,
.story-copy p:last-child,
.world-copy p:last-child,
.author-copy p:last-child,
.character-card p:last-child,
.beast p:last-child,
.site-footer p:last-child {
  margin-bottom: 0 !important;
}

main > section:not(.hero) {
  padding-top: var(--v19-section-y) !important;
  padding-bottom: var(--v19-section-y) !important;
}

.signal-band,
.intro-strip,
.section-panel,
.character-grid,
.bestiary-list,
.section-heading,
.final-quote > .reveal {
  width: min(var(--v19-container), calc(100% - var(--v19-page-pad) - var(--v19-page-pad))) !important;
  max-width: var(--v19-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.characters-section,
.bestiary-section,
.final-quote,
.site-footer {
  padding-left: var(--v19-page-pad) !important;
  padding-right: var(--v19-page-pad) !important;
}

.section-panel {
  padding: var(--v19-section-y) clamp(32px, 5vw, 82px) !important;
}

.signal-band {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 44px clamp(28px, 5vw, 72px) !important;
}

.signal-band .signal-line {
  display: none !important;
}

.signal-band > p,
.signal-band > .reveal {
  flex: 1 1 0 !important;
  position: relative !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: clamp(0.78rem, 0.92vw, 0.98rem) !important;
  line-height: 1.3 !important;
  letter-spacing: clamp(0.12em, 0.6vw, 0.22em) !important;
}

.signal-band > p + p::before,
.signal-band > .reveal + .reveal::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 18% !important;
  width: 1px !important;
  height: 64% !important;
  background: linear-gradient(180deg, transparent, rgba(184, 135, 53, 0.48), transparent) !important;
}

.intro-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: var(--v19-grid-gap) !important;
  padding: var(--v19-section-y) 0 !important;
}

.intro-card {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  min-height: 318px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}

.intro-icon {
  flex: 0 0 auto !important;
  margin-bottom: 18px !important;
}

.intro-card p {
  max-width: 30ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.intro-card:hover .intro-icon img,
.intro-card:hover .intro-icon svg {
  transform: scale(1.06) !important;
  filter: brightness(1.08) saturate(1.05) !important;
}

.story-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  align-items: start !important;
  gap: clamp(44px, 5vw, 68px) !important;
}

.story-copy {
  max-width: 68ch !important;
}

.story-copy p,
.world-copy p,
.author-copy p {
  line-height: 1.72 !important;
}

.character-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: var(--v19-grid-gap) !important;
}

.character-card,
.feature-card {
  grid-column: span 4 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.character-card:nth-child(4) {
  grid-column: 3 / span 4 !important;
}

.character-card:nth-child(5) {
  grid-column: 7 / span 4 !important;
}

.character-portrait {
  aspect-ratio: 4 / 5 !important;
  margin-bottom: 22px !important;
}

.character-card h3,
.character-card p {
  max-width: 36ch !important;
}

.bestiary-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--v19-grid-gap) !important;
}

.world-section {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr) !important;
  align-items: center !important;
}

.map-frame {
  justify-self: center !important;
  width: min(100%, 760px) !important;
}

.map-frame img {
  aspect-ratio: 1055 / 1491 !important;
  width: 100% !important;
  height: auto !important;
  max-height: 760px !important;
  object-fit: contain !important;
}

.author-section {
  grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr) !important;
  align-items: center !important;
}

.author-portrait {
  justify-self: center !important;
  width: min(100%, 430px) !important;
  align-self: center !important;
}

.author-portrait img {
  aspect-ratio: 4 / 5 !important;
  min-height: 0 !important;
  max-height: 560px !important;
  height: auto !important;
}

.site-footer {
  min-height: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

@media (min-width: 721px) and (max-width: 1279px) {
  .hero-copy {
    margin-left: clamp(196px, 28vw, 318px) !important;
    margin-right: clamp(224px, 32vw, 390px) !important;
    max-width: 400px !important;
    padding-top: clamp(72px, 8vw, 86px) !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 4.4vw, 3.08rem) !important;
    margin-bottom: 20px !important;
  }

  .hero-copy .hero-lead,
  .hero-copy blockquote {
    max-width: 360px !important;
  }

  .hero-layer.hero-roza {
    right: clamp(-74px, -5vw, -28px) !important;
    height: 84% !important;
  }

  .hero-layer.hero-ervan {
    left: clamp(12px, 3vw, 38px) !important;
    height: 70% !important;
  }
}

@media (max-width: 1120px) {
  main > section:not(.hero) {
    padding-top: var(--v19-section-y-tablet) !important;
    padding-bottom: var(--v19-section-y-tablet) !important;
  }

  .section-panel {
    padding-top: var(--v19-section-y-tablet) !important;
    padding-bottom: var(--v19-section-y-tablet) !important;
  }

  .story-grid,
  .world-section {
    grid-template-columns: 1fr !important;
  }

  .map-frame {
    width: min(100%, 680px) !important;
  }

  .map-frame img {
    max-height: 680px !important;
  }

  .author-section {
    grid-template-columns: minmax(250px, 0.52fr) minmax(360px, 1fr) !important;
    gap: clamp(36px, 5vw, 56px) !important;
  }

  .author-portrait {
    width: min(100%, 360px) !important;
  }
}

@media (max-width: 860px) {
  .intro-strip {
    gap: 18px !important;
  }

  .intro-card {
    min-height: 344px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .character-card,
  .feature-card,
  .character-card:nth-child(4),
  .character-card:nth-child(5) {
    grid-column: auto !important;
  }

  .character-card:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: calc((100% - var(--v19-grid-gap)) / 2) !important;
    justify-self: center !important;
  }

  .bestiary-list {
    grid-template-columns: 1fr !important;
  }

  .author-section {
    grid-template-columns: 1fr !important;
  }

  .author-portrait {
    width: min(100%, 420px) !important;
  }
}

@media (max-width: 720px) {
  main > section:not(.hero) {
    padding-top: var(--v19-section-y-mobile) !important;
    padding-bottom: var(--v19-section-y-mobile) !important;
  }

  .section-panel {
    padding: var(--v19-section-y-mobile) var(--v13-card-pad-mobile) !important;
  }

  .hero-copy::before,
  .hero-copy::after,
  .hero-copy .hero-lead::before,
  .hero-copy blockquote::before {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-copy h1 {
    margin-bottom: 14px !important;
  }

  .hero-copy .hero-kicker {
    color: #4a2511 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.55) !important;
    margin: -4px auto 8px !important;
  }

  .button-primary,
  .hero-copy .button-primary {
    min-height: 48px !important;
    padding: 0 22px !important;
  }

  .signal-band {
    flex-direction: column !important;
    gap: 18px !important;
    padding: 42px 24px !important;
  }

  .signal-band > p + p::before,
  .signal-band > .reveal + .reveal::before {
    left: 50% !important;
    top: -9px !important;
    width: 64px !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.48), transparent) !important;
  }

  .signal-band > p,
  .signal-band > .reveal {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  .intro-strip {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    padding-top: var(--v19-section-y-mobile) !important;
    padding-bottom: var(--v19-section-y-mobile) !important;
  }

  .intro-card {
    flex: 0 0 auto !important;
    min-height: 276px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .character-grid {
    grid-template-columns: 1fr !important;
  }

  .character-card,
  .feature-card,
  .character-card:nth-child(4),
  .character-card:nth-child(5) {
    grid-column: auto !important;
    width: auto !important;
  }

  .world-section,
  .author-section {
    gap: 40px !important;
  }

  .map-frame {
    width: min(100%, 520px) !important;
  }

  .map-frame img {
    max-height: none !important;
  }

  .author-portrait img {
    max-height: 520px !important;
  }

  .site-footer {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    top: 58px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero-copy .eyebrow {
    font-size: 0.66rem !important;
    margin-bottom: 8px !important;
  }

  .hero-copy h1 {
    font-size: 1.78rem !important;
    line-height: 1.01 !important;
    margin-bottom: 12px !important;
  }

  .hero-copy .hero-kicker {
    color: #4a2511 !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .hero-copy .ornament {
    margin: 2px auto 8px !important;
  }

  .hero-copy .hero-lead {
    font-size: 0.8rem !important;
    line-height: 1.42 !important;
    max-width: 282px !important;
    margin-bottom: 7px !important;
  }

  .hero-copy blockquote {
    font-size: 0.74rem !important;
    line-height: 1.34 !important;
    max-width: 268px !important;
    margin-bottom: 10px !important;
  }

  .hero-copy .button-primary {
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.72rem !important;
  }

  .hero-layer.hero-roza {
    right: -3% !important;
    bottom: -1% !important;
    width: 62% !important;
    height: 56% !important;
  }

  .hero-layer.hero-ervan {
    left: -6% !important;
    bottom: -1% !important;
    width: 48% !important;
    height: 42% !important;
  }
}
/* === V19.0 END === */


/* =====================================================================
   V20.0 — LANDSCAPE MOBILE FIX (tekst NIE na Ervanie)
   Wszystkie viewporty < 1024px w orientation landscape lub max-height < 500
   - Tytuł centered middle, NIE po lewej
   - Postacie po bokach, tekst w środku
   (marker: V20)
   ===================================================================== */
@media (max-width: 1024px) and (orientation: landscape),
       (max-height: 540px) and (orientation: landscape) {
  .hero {
    background: #f2ead9 !important;
    background-image: none !important;
  }

  /* OFF dark overlays */
  .hero-mist, .hero-frame, .hero-foliage, .site-vignette,
  .page-texture, .ambient-motes, .spark-field, .cursor-glow,
  .hero-art-full, .hero::before, .hero::after,
  .hero-stage::before, .hero-stage::after,
  .hero-layer.hero-castle, .hero-layer.hero-castle::after {
    display: none !important;
  }

  /* Hero-copy CENTROWY middle column - nie wpada na Ervana */
  .hero-copy {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
    width: 38% !important;
    max-width: 360px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 10 !important;
  }

  .hero-copy .eyebrow {
    font-size: 0.65rem !important;
    letter-spacing: 0.3em !important;
    margin: 0 0 6px !important;
    color: #b88735 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.6) !important;
  }

  .hero-copy h1 {
    font-size: 1.5rem !important;
    line-height: 1.0 !important;
    margin: 0 0 8px !important;
    color: #2a1605 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.7) !important;
  }

  .hero-copy .ornament {
    margin: 4px auto 6px !important;
    opacity: 0.4 !important;
  }

  .hero-copy .hero-lead {
    display: none !important;
  }

  .hero-copy blockquote {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    margin: 0 auto 10px !important;
    color: #6b3a1b !important;
    font-style: italic !important;
    background: transparent !important;
  }

  .hero-copy .button-primary {
    font-size: 0.7rem !important;
    padding: 7px 14px !important;
    border: 1px solid rgba(184, 135, 53, 0.5) !important;
    background: rgba(251, 246, 236, 0.5) !important;
    color: #4a2511 !important;
  }

  /* Postacie - po bokach, NIE pod tekstem */
  .hero-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  .hero-layer.hero-roza {
    position: absolute !important;
    right: -2% !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 30% !important;
    max-width: 360px !important;
    height: 95% !important;
    opacity: 1 !important;
  }
  .hero-layer.hero-roza img {
    object-fit: contain !important;
    object-position: bottom right !important;
  }

  .hero-layer.hero-ervan {
    position: absolute !important;
    left: -3% !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
    width: 26% !important;
    max-width: 300px !important;
    height: 85% !important;
    opacity: 1 !important;
  }
  .hero-layer.hero-ervan img {
    object-fit: contain !important;
    object-position: bottom left !important;
  }

  .hero-layer.hero-fern-l {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 12% !important;
    height: 40% !important;
    opacity: 0.4 !important;
  }

  .hero-layer.hero-fern-r {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 12% !important;
    height: 35% !important;
    opacity: 0.3 !important;
    transform: scaleX(-1) !important;
  }
}
/* === V20.0 END === */


/* =====================================================================
   V21.0 — SYMMETRY FIXES: hero overflow, signal-band even, intro-card no tilt default
   (marker: V21)
   ===================================================================== */

/* Hero - overflow hidden, Róża nie wystaje */
.hero {
  overflow: hidden !important;
}

@media (min-width: 721px) {
  .hero-layer.hero-roza {
    right: 2% !important;
    width: clamp(260px, 32vw, 460px) !important;
  }
  .hero-layer.hero-ervan {
    left: 2% !important;
    width: clamp(190px, 24vw, 340px) !important;
  }
}

/* Signal-band desktop - perfekcyjnie symetryczne 4 kolumny z dividers */
@media (min-width: 721px) {
  .signal-band {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 56px clamp(40px, 6vw, 120px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  .signal-band .signal-line {
    display: none !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    text-align: center !important;
    position: relative !important;
    font-family: var(--serif) !important;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem) !important;
    letter-spacing: 0.22em !important;
    color: #b88735 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    text-transform: uppercase !important;
  }
  .signal-band > p:not(:first-child)::before,
  .signal-band > .reveal:not(:first-child)::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 25% !important;
    height: 50% !important;
    width: 1px !important;
    background: linear-gradient(180deg, transparent, rgba(184, 135, 53, 0.5), transparent) !important;
  }
}

/* Intro-strip 3 ikony - karty proste, BEZ permanent tilt, equal layout */
@media (min-width: 721px) {
  .intro-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: clamp(24px, 3vw, 56px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 96px clamp(20px, 4vw, 64px) !important;
    align-items: stretch !important;
  }

  .intro-card,
  .intro-card.reveal {
    transform: none !important;
    perspective: none !important;
    rotate: 0deg !important;
    background: rgba(251, 246, 236, 0.55) !important;
    border-radius: 4px !important;
    padding: clamp(24px, 3vw, 48px) clamp(20px, 2vw, 32px) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(40, 24, 8, 0.04) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s !important;
  }

  .intro-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 32px rgba(40, 24, 8, 0.10), 0 0 0 1px rgba(184, 135, 53, 0.18) !important;
  }

  .intro-card .intro-icon {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 18px !important;
  }
  .intro-card .intro-icon img,
  .intro-card .intro-icon svg {
    width: 72px !important;
    height: 72px !important;
  }
  .intro-card h2 {
    font-family: var(--serif) !important;
    font-size: clamp(1.3rem, 1.6vw, 1.55rem) !important;
    margin: 0 0 12px !important;
    letter-spacing: 0.08em !important;
  }
  .intro-card p {
    font-size: clamp(0.88rem, 1.05vw, 0.98rem) !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
    color: var(--ink) !important;
  }
  .intro-card a {
    font-size: 0.78rem !important;
    letter-spacing: 0.18em !important;
    color: #b88735 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    margin-top: auto !important;
  }
}

/* Mobile - intro-strip stack column */
@media (max-width: 720px) {
  .intro-strip {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 56px 24px !important;
  }
  .intro-card,
  .intro-card.reveal {
    transform: none !important;
    background: rgba(251, 246, 236, 0.6) !important;
    border-radius: 4px !important;
    padding: 32px 24px !important;
    text-align: center !important;
  }

  .signal-band {
    flex-direction: column !important;
    display: flex !important;
    gap: 18px !important;
    padding: 40px 24px !important;
  }
  .signal-band > p:not(:first-child)::before,
  .signal-band > .reveal:not(:first-child)::before {
    display: none !important;
  }
}
/* === V21.0 END === */


/* =====================================================================
   V22.0 — FINAL SYMMETRY: hero positions, signal-band full lines,
   intro-strip 3 ikony perfect grid centered
   (marker: V22)
   ===================================================================== */

/* HERO - desktop: Róża bardziej w lewo, ferny w narożach, postacie symetryczne */
@media (min-width: 721px) {
  .hero {
    overflow: hidden !important;
  }

  /* Róża - przesunięta w lewo, zamek widoczny po prawej */
  .hero-layer.hero-roza {
    right: 6% !important;
    bottom: 0 !important;
    width: clamp(240px, 28vw, 420px) !important;
    height: 88% !important;
    z-index: 4 !important;
  }
  .hero-layer.hero-roza img {
    object-fit: contain !important;
    object-position: bottom right !important;
  }

  /* Ervan - lustrzanie po lewej (zachowaj asymetrię ale balanced) */
  .hero-layer.hero-ervan {
    left: 6% !important;
    bottom: 0 !important;
    width: clamp(180px, 22vw, 320px) !important;
    height: 78% !important;
    z-index: 3 !important;
  }
  .hero-layer.hero-ervan img {
    object-fit: contain !important;
    object-position: bottom left !important;
  }

  /* Fern lewa - LEWY DOLNY narożnik, NIE nakrywa Ervana */
  .hero-layer.hero-fern-l {
    left: 0 !important;
    bottom: -2% !important;
    top: auto !important;
    width: clamp(120px, 14vw, 220px) !important;
    height: 60% !important;
    opacity: 0.7 !important;
    z-index: 2 !important;
  }
  .hero-layer.hero-fern-l img {
    object-fit: contain !important;
    object-position: bottom left !important;
  }

  /* Fern prawa - PRAWY GÓRNY narożnik, NIE nakrywa Róży */
  .hero-layer.hero-fern-r {
    right: 0 !important;
    top: 4% !important;
    bottom: auto !important;
    width: clamp(110px, 13vw, 200px) !important;
    height: 50% !important;
    opacity: 0.55 !important;
    z-index: 2 !important;
  }
  .hero-layer.hero-fern-r img {
    object-fit: contain !important;
    object-position: top right !important;
  }
}

/* SIGNAL-BAND - pełne złote linie nad i pod 4 wartościami */
.signal-band {
  position: relative !important;
}
.signal-band .signal-line {
  display: block !important;
  position: absolute !important;
  left: 5% !important;
  right: 5% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(184, 135, 53, 0.45) 20%, rgba(184, 135, 53, 0.55) 50%, rgba(184, 135, 53, 0.45) 80%, transparent) !important;
}
.signal-band .signal-line:first-of-type {
  top: 28px !important;
}
.signal-band .signal-line:last-of-type {
  bottom: 28px !important;
}

@media (min-width: 721px) {
  .signal-band {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 64px clamp(40px, 6vw, 120px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    gap: 0 !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    flex: 1 1 auto !important;
    text-align: center !important;
    position: relative !important;
    font-family: var(--serif) !important;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
    letter-spacing: 0.24em !important;
    color: #b88735 !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    text-transform: uppercase !important;
  }
  .signal-band > p:not(:first-of-type)::before,
  .signal-band > .reveal:not(:first-of-type)::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 25% !important;
    height: 50% !important;
    width: 1px !important;
    background: rgba(184, 135, 53, 0.35) !important;
  }
}

@media (max-width: 720px) {
  .signal-band {
    flex-direction: column !important;
    display: flex !important;
    gap: 16px !important;
    padding: 48px 24px !important;
  }
  .signal-band .signal-line:first-of-type {
    top: 20px !important;
  }
  .signal-band .signal-line:last-of-type {
    bottom: 20px !important;
  }
  .signal-band > p:not(:first-of-type)::before,
  .signal-band > .reveal:not(:first-of-type)::before {
    display: none !important;
  }
}

/* INTRO-STRIP - 3 ikony perfect equal grid CENTERED */
.intro-strip {
  position: relative !important;
}

@media (min-width: 721px) {
  .intro-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 96px clamp(20px, 4vw, 48px) !important;
    align-items: stretch !important;
  }

  .intro-card,
  .intro-strip .intro-card {
    transform: none !important;
    perspective: none !important;
    rotate: 0deg !important;
    margin: 0 !important;
    background: rgba(251, 246, 236, 0.55) !important;
    border: 1px solid rgba(184, 135, 53, 0.18) !important;
    border-radius: 6px !important;
    padding: 36px 24px 32px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 4px 16px rgba(40, 24, 8, 0.04) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s !important;
  }
  .intro-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 32px rgba(40, 24, 8, 0.10) !important;
    border-color: rgba(184, 135, 53, 0.35) !important;
  }

  .intro-card .intro-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    width: 80px !important;
    height: 80px !important;
  }
  .intro-card .intro-icon img,
  .intro-card .intro-icon svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .intro-card h2 {
    font-family: var(--serif) !important;
    font-size: 1.45rem !important;
    margin: 0 0 14px !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
  }
  .intro-card p {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin: 0 0 20px !important;
    color: var(--ink) !important;
    text-align: center !important;
    min-height: 60px !important;
  }
  .intro-card a {
    font-size: 0.78rem !important;
    letter-spacing: 0.2em !important;
    color: #b88735 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    margin-top: auto !important;
    padding-top: 8px !important;
  }
  .intro-card a:hover {
    color: #8a6420 !important;
  }
}

@media (max-width: 720px) {
  .intro-strip {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 56px 24px !important;
    max-width: 100% !important;
  }
  .intro-card {
    transform: none !important;
    background: rgba(251, 246, 236, 0.55) !important;
    border: 1px solid rgba(184, 135, 53, 0.18) !important;
    border-radius: 6px !important;
    padding: 28px 20px !important;
    text-align: center !important;
  }
}
/* === V22.0 END === */


/* =====================================================================
   V23.0 — SIGNAL-BAND PERFEKT: pełne linie złote nad i pod, 4 wartości równo, bez pionowych kreseczek
   (marker: V23)
   ===================================================================== */

/* Reset wszystkich poprzednich signal-band rules */
.signal-band {
  position: relative !important;
  width: 100% !important;
}

/* SIGNAL LINES - pełne złote linie poziome od lewej do prawej krawędzi viewport */
.signal-band .signal-line {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184, 135, 53, 0.6) 10%,
    rgba(184, 135, 53, 0.7) 50%,
    rgba(184, 135, 53, 0.6) 90%,
    transparent 100%) !important;
  z-index: 1 !important;
}
.signal-band .signal-line:first-of-type {
  top: 24px !important;
  bottom: auto !important;
}
.signal-band .signal-line:last-of-type {
  bottom: 24px !important;
  top: auto !important;
}

/* WYŁĄCZ pionowe kreseczki dividers między wartościami */
.signal-band > p::before,
.signal-band > p::after,
.signal-band > .reveal::before,
.signal-band > .reveal::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 4 WARTOŚCI - desktop equal spacing flex */
@media (min-width: 721px) {
  .signal-band {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 72px clamp(40px, 6vw, 120px) !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    flex: 1 1 0 !important;
    text-align: center !important;
    position: static !important;
    font-family: var(--serif) !important;
    font-size: clamp(1rem, 1.3vw, 1.18rem) !important;
    letter-spacing: 0.26em !important;
    color: #b88735 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
  }
}

/* MOBILE - 4 wartości w kolumnę, linie nad i pod */
@media (max-width: 720px) {
  .signal-band {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 56px 24px !important;
  }
  .signal-band .signal-line:first-of-type {
    top: 22px !important;
  }
  .signal-band .signal-line:last-of-type {
    bottom: 22px !important;
  }
  .signal-band > p,
  .signal-band > .reveal {
    text-align: center !important;
    font-family: var(--serif) !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.24em !important;
    color: #b88735 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
  }
}

/* INTRO-STRIP - 3 ikony FORCE GRID 3 columns, no transforms */
.intro-strip {
  position: relative !important;
}
.intro-card {
  transform: none !important;
  rotate: 0deg !important;
  perspective: none !important;
}
.intro-card[style] {
  transform: none !important;
}

@media (min-width: 721px) {
  .intro-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-auto-flow: column !important;
    gap: 32px !important;
    max-width: 1100px !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 96px clamp(20px, 4vw, 48px) !important;
    align-items: stretch !important;
  }
}
/* === V23.0 END === */


/* =====================================================================
   V24.0 — INTRO-STRIP rozszerzone na pełną szerokość strony
   (marker: V24)
   ===================================================================== */
@media (min-width: 721px) {
  .intro-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(32px, 4vw, 80px) !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    padding: 96px clamp(40px, 6vw, 160px) !important;
    align-items: stretch !important;
  }
  .intro-strip > .intro-card {
    width: auto !important;
    max-width: none !important;
  }
}
/* === V24.0 END === */


/* =====================================================================
   V25.0 — INTRO-STRIP FORCE FULL WIDTH SPECIFICITY OVERRIDE
   (marker: V25)
   ===================================================================== */
body main .intro-strip,
section.intro-strip,
.intro-strip[aria-label] {
  max-width: none !important;
  width: 100% !important;
}

@media (min-width: 721px) {
  body main .intro-strip,
  section.intro-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(32px, 4vw, 80px) !important;
    padding: 96px clamp(40px, 6vw, 160px) !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}
/* === V25.0 END === */


/* =====================================================================
   V26.0 — INTRO-STRIP escape parent max-width na full viewport
   (marker: V26)
   ===================================================================== */
@media (min-width: 721px) {
  .intro-strip,
  body main .intro-strip {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(32px, 4vw, 64px) !important;
    padding: 96px clamp(60px, 8vw, 180px) !important;
    align-items: stretch !important;
  }
}
/* === V26.0 END === */


/* =====================================================================
   V27.0 — INTRO-STRIP CZYSTKA: pełna szerokość, BEZ border złotych linii
   Plus usuwam zbędne signal-band:after gold lines.
   (marker: V27)
   ===================================================================== */

/* INTRO-STRIP - WSZYSTKIE poprzednie reset + nowy clean */
.intro-strip,
section.intro-strip,
body main .intro-strip {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

@media (min-width: 721px) {
  .intro-strip,
  section.intro-strip,
  body main .intro-strip {
    width: calc(100% - 80px) !important;
    max-width: none !important;
    margin: 64px 40px !important;
    padding: 80px 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 40px !important;
    align-items: stretch !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    border: 0 !important;
  }

  .intro-strip > .intro-card,
  body main .intro-strip > .intro-card {
    transform: none !important;
    rotate: 0deg !important;
    margin: 0 !important;
    padding: 32px 24px 28px !important;
    background: rgba(251, 246, 236, 0.55) !important;
    border: 1px solid rgba(184, 135, 53, 0.18) !important;
    border-radius: 6px !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 16px rgba(40, 24, 8, 0.04) !important;
  }
  .intro-strip > .intro-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(40, 24, 8, 0.08) !important;
  }
}

@media (max-width: 720px) {
  .intro-strip,
  section.intro-strip,
  body main .intro-strip {
    width: 100% !important;
    max-width: 100% !important;
    margin: 32px 0 !important;
    padding: 48px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    border: 0 !important;
  }
  .intro-strip > .intro-card {
    transform: none !important;
    margin: 0 !important;
    padding: 28px 20px !important;
    background: rgba(251, 246, 236, 0.55) !important;
    border: 1px solid rgba(184, 135, 53, 0.18) !important;
    border-radius: 6px !important;
    min-height: auto !important;
  }
}

/* SIGNAL-BAND - upewnij się że TYLKO 2 linie pełne, nic więcej */
.signal-band::before,
.signal-band::after,
.signal-band > *::before,
.signal-band > *::after {
  display: none !important;
}
.signal-band .signal-line {
  display: block !important;
}
/* === V27.0 END === */


/* =====================================================================
   V28.0 — REMOVE STRAY GOLD LINES under signal-band / intro-strip
   Klient zaznaczył dodatkową poziomą złotą linię pod ZAUFANIE jako zbędną.
   Tylko 2 linie pełne (signal-line nad i pod 4 wartościami) zostają.
   (marker: V28)
   ===================================================================== */

/* Wszystkie inne potencjalne gold separator lines wyłącz */
.intro-strip,
section.intro-strip,
body main .intro-strip {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* section + section dividers (V13 dał) - wyłącz w okolicy signal-band */
section.signal-band + section,
section + section.intro-strip,
section.signal-band + .intro-strip {
  border-top: 0 !important;
}
section.signal-band + section::before,
section + section.intro-strip::before,
.signal-band + .intro-strip::before {
  display: none !important;
  content: none !important;
}

/* Final-quote + author-section border resets too */
.final-quote {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.author-section + .final-quote {
  border-top: 0 !important;
}

/* Section panels - wewnętrzne złote gradient dividers off w okolicach signal */
.section-panel + .section-panel::before,
.section-panel::before {
  background: transparent !important;
}

/* (A2) SIGNAL-BAND children: zero borderów + zero pseudo (V14-era artefakt na mobile) */
.signal-band > p,
.signal-band > .reveal {
  border-top: 0 !important;
  border-bottom: 0 !important;
  background-image: none !important;
}
.signal-band > p::before,
.signal-band > p::after,
.signal-band > .reveal::before,
.signal-band > .reveal::after,
.signal-band::before,
.signal-band::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: 0 !important;
}
@media (max-width: 720px) {
  .signal-band > p,
  .signal-band > .reveal {
    border-bottom: 0 !important;
    border-top: 0 !important;
  }
}
/* Self healing: SIGNAL-BAND samo bez border/bg-image */
.signal-band,
section.signal-band {
  border-top: 0 !important;
  border-bottom: 0 !important;
  background-image: none !important;
}

/* (B2) INTRO-STRIP: dodatkowo background-image off (gradient-as-line) */
.intro-strip,
section.intro-strip,
body main .intro-strip {
  background-image: none !important;
}

/* (C) MOBILE HERO: parchment ecru, layered PNG, brak ciemnych overlays */
@media (max-width: 720px) {
  .hero {
    background: #efe7d6 !important;
    background-image: none !important;
  }
  .hero-mist,
  .hero-frame,
  .hero-foliage,
  .site-vignette,
  .page-texture,
  .ambient-motes,
  .spark-field {
    display: none !important;
  }
  .hero-stage {
    display: block !important;
    position: relative !important;
  }
  .hero-layer.hero-castle {
    display: none !important;
  }
  .hero-layer.hero-roza,
  .hero-layer.hero-ervan {
    display: block !important;
    opacity: 1 !important;
  }
  .hero-copy {
    background: transparent !important;
    backdrop-filter: none !important;
  }
  .hero-copy h1,
  .hero-copy .hero-kicker,
  .hero-copy .hero-lead,
  .hero-copy blockquote {
    color: #2a1605 !important;
    text-shadow: 0 1px 0 rgba(251, 246, 236, 0.7) !important;
  }
}
/* === V28.0 END === */


/* =====================================================================
   V29.0 — NEWSLETTER SECTION (Alicja's reader signup)
   Cream parchment, gold ferns by sides, RODO compliant form.
   (marker: V29)
   ===================================================================== */
.newsletter-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 64px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(242, 234, 217, 0.55) 30%, rgba(242, 234, 217, 0.65) 70%, transparent 100%);
  overflow: hidden;
}

.newsletter-fern {
  position: absolute;
  top: 50%;
  width: clamp(80px, 12vw, 180px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 1;
}
.newsletter-fern img {
  width: 100%;
  height: auto;
  display: block;
}
.newsletter-fern-l {
  left: clamp(-32px, -2vw, 0px);
}
.newsletter-fern-r {
  right: clamp(-32px, -2vw, 0px);
  transform: translateY(-50%) scaleX(-1);
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-ornament {
  font-size: 1.2rem;
  color: #b88735;
  letter-spacing: 0.4em;
  margin-bottom: 12px;
}

.newsletter-section .section-kicker {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: #b88735;
  margin: 0 0 12px;
}

.newsletter-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 18px;
  letter-spacing: 0.05em;
  color: var(--ink, #4a2511);
  font-weight: 400;
}

.newsletter-lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink, #4a2511);
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.newsletter-field {
  flex: 1 1 160px;
  margin: 0;
}
.newsletter-field-email {
  flex: 2 1 240px;
}

.newsletter-row input[type="text"],
.newsletter-row input[type="email"] {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--serif, Georgia, serif);
  font-size: 1rem;
  border: 1px solid rgba(184, 135, 53, 0.45);
  background: rgba(251, 246, 236, 0.92);
  border-radius: 3px;
  color: var(--ink, #4a2511);
  letter-spacing: 0.02em;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.newsletter-row input::placeholder {
  color: rgba(74, 37, 17, 0.5);
  font-style: italic;
}
.newsletter-row input:focus {
  outline: none;
  border-color: #b88735;
  box-shadow: 0 0 0 3px rgba(184, 135, 53, 0.15);
}

.newsletter-submit {
  flex: 0 0 auto;
  padding: 13px 28px;
  font-family: var(--serif, Georgia, serif);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #4a2511;
  color: #f5ecd7;
  border: 1px solid #4a2511;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.newsletter-submit:hover {
  background: #6b3a1b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 37, 17, 0.2);
}
.newsletter-submit:active {
  transform: translateY(0);
}
.newsletter-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.newsletter-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(74, 37, 17, 0.85);
  margin-bottom: 12px;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.newsletter-consent input[type="checkbox"] {
  margin: 4px 0 0;
  width: 16px;
  height: 16px;
  accent-color: #b88735;
  flex-shrink: 0;
  cursor: pointer;
}
.newsletter-consent a {
  color: #b88735;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter-consent a:hover {
  color: #8a6420;
}

.newsletter-footnote {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(74, 37, 17, 0.6);
  margin: 4px 0 0;
  text-align: center;
}

.newsletter-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 0.9rem;
  text-align: center;
}
.newsletter-status.ok {
  background: rgba(120, 168, 92, 0.15);
  color: #4a6b2a;
  border: 1px solid rgba(120, 168, 92, 0.35);
}
.newsletter-status.err {
  background: rgba(168, 60, 60, 0.12);
  color: #6b2a2a;
  border: 1px solid rgba(168, 60, 60, 0.3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .newsletter-section {
    padding: 56px 20px;
  }
  .newsletter-fern {
    width: 80px;
    opacity: 0.35;
  }
  .newsletter-fern-l { left: -16px; }
  .newsletter-fern-r { right: -16px; }
  .newsletter-row { flex-direction: column; gap: 12px; }
  .newsletter-submit { width: 100%; }
  .newsletter-consent {
    font-size: 0.74rem;
  }
}
/* === V29.0 END === */


/* =====================================================================
   V32.0 — PILNE POPRAWKI (2026-05-12)
   ---------------------------------------------------------------------
   1) PAPROCIE: cięcie przylega do KRAWĘDZI VIEWPORTU (lewa fern — cut
      przy lewym brzegu, prawa fern — cut przy prawym brzegu); liście
      rosną do środka kadru.
      Analiza PNG:
        hero-fern-left.png  351x965 — content x=0..163  (cut at left)
        hero-fern-right.png 250x688 — content x=94..238 (cut at right)
      Oba PNG są już poprawnie zorientowane — żadne `scaleX(-1)` nie
      jest potrzebne. V31 i V29 dodawały odbicia, które tutaj zerujemy.

   2) NEWSLETTER FORM (mobile + desktop): RODO checkbox PRZED przyciskiem
      (HTML restructure — button przeniesiony poza .newsletter-row).
      Kompaktowe spacing na mobile, usuniete puste vertical gapy.

   (marker: V32)
   ===================================================================== */

/* --- PAPROCIE: zerujemy wszystkie flipy --- */
.hero-fern-l img,
.hero-fern-r img {
  transform: none !important;
}

.newsletter-fern-l,
.newsletter-fern-r {
  transform: translateY(-50%) !important;
}

/* Hero fern-r: override mobile/landscape media-query flips */
@media (max-width: 720px) {
  .hero-layer.hero-fern-r { transform: none !important; }
}
@media (max-width: 1024px) and (orientation: landscape) {
  .hero-layer.hero-fern-r { transform: none !important; }
}

/* --- NEWSLETTER FORM: kontener jako flex column --- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

/* Button: pełna szerokość pod formularzem, spójny CTA */
.newsletter-submit {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 4px;
}

.newsletter-consent {
  margin: 0;
}

.newsletter-footnote {
  margin: 2px 0 0;
}

/* Mobile spacing — kompaktowo, bez ziejących pustek */
@media (max-width: 720px) {
  .newsletter-section { padding: 64px 18px; }
  .newsletter-section h2 { font-size: 1.65rem; line-height: 1.2; margin-bottom: 12px; }
  .newsletter-lead { font-size: 0.98rem; line-height: 1.55; margin-bottom: 18px; padding: 0 4px; }
  .newsletter-form { gap: 10px; }
  .newsletter-row { flex-direction: column; gap: 10px; margin-bottom: 0; }
  /* FIX V32.1: flex:1 1 160px w column mode robi flex-basis=160px JAKO WYSOKOSC
     pola Imie/Email. Resetujemy do auto, zeby label hugged input. */
  .newsletter-row .newsletter-field,
  .newsletter-row .newsletter-field-email { flex: 0 0 auto; min-height: 0; }
  .newsletter-row input[type="text"],
  .newsletter-row input[type="email"] { padding: 12px 14px; font-size: 0.98rem; }
  .newsletter-consent { font-size: 0.82rem; line-height: 1.5; gap: 10px; margin: 2px 0 0; }
  .newsletter-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; }
  .newsletter-submit { padding: 14px; font-size: 0.86rem; letter-spacing: 0.2em; margin-top: 4px; }
  .newsletter-footnote { font-size: 0.76rem; line-height: 1.5; padding: 0 2px; margin: 2px 0 0; }
  .newsletter-fern { width: 70px; opacity: 0.28; }
  .newsletter-fern-l { left: -18px; }
  .newsletter-fern-r { right: -18px; }
}
/* === V32.1 END === */


/* =====================================================================
   V33.0 — NEWSLETTER CONVERSION PATCH (2026-05-16)
   ---------------------------------------------------------------------
   A) Headline rewrite + literary lead-in (HTML).
   B) Gold pulse na .newsletter-submit — subtelna, off na hover/focus
      i przy prefers-reduced-motion.
   C) Wax seal overlay (.newsletter-seal) — animowana pieczęć po submicie
      + RODO double opt-in caption.
   D) Audit-driven micro-fix: ciemniejszy gold dla section-kicker w
      sekcji newsletter — kontrast WCAG AA na pergaminowym tle.
   (marker: V33)
   ===================================================================== */

/* --- D) Kontrast eyebrow: #b88735 -> #8a6420 na newsletter tle ---
   #b88735 vs ~#f5ecd7 ≈ 3.4:1 (FAIL dla 12px tekstu).
   #8a6420 vs ~#f5ecd7 ≈ 4.9:1 (PASS AA normal text).
   Zmiana tylko w sekcji newsletter — globalny brand gold zostaje. */
.newsletter-section .section-kicker {
  color: #8a6420;
}
.newsletter-ornament {
  color: #8a6420;
}

/* --- B) Pulse animation na CTA --- */
@keyframes newsletter-pulse-v33 {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 135, 53, 0);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(184, 135, 53, 0.18),
                0 6px 22px rgba(74, 37, 17, 0.18);
    transform: translateY(0) scale(1.015);
  }
}
.newsletter-submit {
  animation: newsletter-pulse-v33 3.6s ease-in-out 1.8s infinite;
  will-change: transform, box-shadow;
}
.newsletter-submit:hover,
.newsletter-submit:focus,
.newsletter-submit:active,
.newsletter-submit[disabled] {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-submit { animation: none; }
}

/* --- C) Wax seal overlay (inicjalnie schowany) --- */
.newsletter-seal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 5;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  background: radial-gradient(
    ellipse at center,
    rgba(242, 234, 217, 0.78) 0%,
    rgba(242, 234, 217, 0.55) 60%,
    rgba(242, 234, 217, 0) 100%
  );
}
.newsletter-seal.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease-out, visibility 0s linear;
}
.newsletter-seal.is-fading-out {
  opacity: 0;
  transition: opacity 0.9s ease-in, visibility 0s linear 0.9s;
}
.newsletter-seal-svg {
  width: clamp(110px, 14vw, 168px);
  height: auto;
  /* V35: stronger 3-layer drop-shadow — pieczęć leży na pergaminie jak fizyczny obiekt */
  filter: drop-shadow(0 13px 18px rgba(28, 4, 4, 0.52))
          drop-shadow(0 5px 7px rgba(0, 0, 0, 0.36))
          drop-shadow(0 1px 1px rgba(0, 0, 0, 0.32));
  transform: scale(0) rotate(-12deg);
  opacity: 0;
}
.newsletter-seal.is-active .newsletter-seal-svg {
  animation: newsletter-seal-stamp-v33 720ms cubic-bezier(.18, 1.2, .32, 1) forwards;
}
@keyframes newsletter-seal-stamp-v33 {
  0%   { transform: scale(0) rotate(-12deg);   opacity: 0; }
  55%  { transform: scale(1.18) rotate(2deg);  opacity: 1; }
  78%  { transform: scale(0.97) rotate(-1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg);     opacity: 1; }
}
.newsletter-seal-caption {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-style: italic;
  color: #4a2511;
  text-align: center;
  max-width: 360px;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(8px);
}
.newsletter-seal.is-active .newsletter-seal-caption {
  animation: newsletter-seal-caption-v33 600ms ease-out 760ms forwards;
}
@keyframes newsletter-seal-caption-v33 {
  to { opacity: 1; transform: translateY(0); }
}

/* Newsletter section musi być kontekstem dla absolutnego overlay'a */
.newsletter-section {
  position: relative;
}
/* newsletter-content już ma position: relative — overlay leży NAD nim
   (z-index: 5) — i wypełnia całą sekcję, więc pieczęć ląduje na środku. */

@media (prefers-reduced-motion: reduce) {
  .newsletter-seal.is-active .newsletter-seal-svg,
  .newsletter-seal.is-active .newsletter-seal-caption {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .newsletter-seal-svg { width: 108px; }
  .newsletter-seal-caption { font-size: 0.92rem; padding: 0 24px; }
}
/* === V33.0 END === */


/* =====================================================================
   V33.1 — A11Y FIXES (folded into V33 patch)
   ---------------------------------------------------------------------
   Audit-driven, dorzucone do tego samego patcha:
   • CTA :focus-visible — wyraźny outline (WCAG 2.4.7)
   • Placeholder kontrast (z 0.5 -> 0.62)
   • Footnote kontrast (z 0.6 -> 0.7)
   (marker: V33.1)
   ===================================================================== */

.newsletter-submit:focus-visible {
  outline: 2px solid #8a6420;
  outline-offset: 3px;
  /* zatrzymaj pulse, ale zachowaj hover-like przesunięcie */
  animation: none;
}

.newsletter-row input::placeholder {
  color: rgba(74, 37, 17, 0.62);
}

.newsletter-footnote {
  color: rgba(74, 37, 17, 0.7);
}
/* === V33.1 END === */


/* =====================================================================
   V40.0 — NEWSLETTER EXIT-INTENT POPUP
   --------------------------------------------------------------------- */
.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.newsletter-popup.is-open {
  display: flex;
  animation: newsletter-popup-fade 280ms ease-out;
}
@keyframes newsletter-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.newsletter-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 24, 8, 0.62);
  backdrop-filter: blur(2px);
}
.newsletter-popup__card {
  position: relative;
  background-color: #fbf6ec;
  background-image:
    repeating-linear-gradient(0deg, rgba(184,135,53,0.08) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(184,135,53,0.045) 0 1px, transparent 1px 26px);
  border: 1px solid rgba(184,135,53,0.25);
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  padding: 36px clamp(20px, 5vw, 44px);
  box-shadow: 0 18px 48px rgba(40, 24, 8, 0.22);
  animation: newsletter-popup-rise 380ms cubic-bezier(.2,.8,.4,1.05);
  font-family: 'Lora', Georgia, serif;
  color: #3a1e0c;
  text-align: center;
}
@keyframes newsletter-popup-rise {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.newsletter-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #8a6420;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.newsletter-popup__eyebrow {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11px;
  color: #8a6420;
  margin: 0 0 8px;
}
.newsletter-popup__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 4vw, 30px);
  color: #3a1e0c;
  margin: 0 0 14px;
  font-weight: 500;
}
.newsletter-popup__lead {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.newsletter-popup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.newsletter-popup__input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 10px;
  background: #fffaf0;
  border: 1px solid rgba(184,135,53,0.4);
  border-radius: 4px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: #3a1e0c;
  box-sizing: border-box;
}
.newsletter-popup__input::placeholder { color: rgba(58, 30, 12, 0.62); }
.newsletter-popup__input:focus {
  outline: 2px solid #8a6420;
  outline-offset: 2px;
}
.newsletter-popup__consent {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  margin: 0 0 16px;
  color: rgba(58, 30, 12, 0.85);
}
.newsletter-popup__consent input { margin-top: 3px; flex-shrink: 0; }
.newsletter-popup__consent a { color: #a3641c; text-decoration: underline; }
.newsletter-popup__submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #3a1e0c;
  color: #fbf6ec;
  border: none;
  border-radius: 4px;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease;
}
.newsletter-popup__submit:hover { background: #5a2e14; }
.newsletter-popup__status {
  margin: 12px 0 0;
  font-size: 13px;
  color: #7a4a1c;
  min-height: 1.2em;
}
@media (max-width: 720px) {
  .newsletter-popup__card { padding: 28px 18px; max-width: calc(100vw - 32px); }
  .newsletter-popup__title { font-size: 22px; }
  .newsletter-popup__lead { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-popup,
  .newsletter-popup__card { animation: none !important; }
}

/* V40: img-based seal — preserve existing animations from V33 */
img.newsletter-seal-svg {
  object-fit: contain;
  aspect-ratio: 1 / 1;
}
/* === V40.0 END === */

/* === v41: zapowiedz premiery + newsletter (Alicja / roza) === */
.story-note {
  margin: 28px 0 4px;
  padding: 20px 24px;
  background: rgba(184, 135, 53, 0.06);
  border: 1px solid rgba(184, 135, 53, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.story-note p {
  margin: 0 !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #7a4a1c;
}
.story-note__mark {
  font-style: normal;
  color: var(--gold);
  margin-right: 6px;
  font-weight: 600;
}
.story-note__link {
  color: #a3641c;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.story-note__link:hover,
.story-note__link:focus {
  color: var(--gold);
}
@media (max-width: 720px) {
  .story-note {
    padding: 15px 17px;
    margin-top: 22px;
  }
  .story-note p {
    font-size: 1.05rem;
  }
}
