/* ==========================================================================
   Szymion Stomatologia — arkusz główny
   Świat wizualny odziedziczony z wnętrza gabinetu: czarny połysk, biały
   marmur, mosiądz. Cormorant Garamond (display) + Jost (tekst).
   ========================================================================== */

:root {
  --black: #000000;
  --onyx: #0e0e10;
  --charcoal: #1b1b1e;
  --marble: #f4f2ed;
  --marble-2: #ebe8e0;
  --white: #ffffff;
  --vein: #d9d4ca;
  --brass: #c6a24e;
  --brass-light: #e8d193;
  --brass-deep: #7a5d1f;
  --ink: #121212;
  --ink-2: #55514a;
  --ink-on-dark: #f4f2ed;
  --ink-2-on-dark: #b9b3a6;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;

  --fs-hero: clamp(3rem, 7.2vw, 6rem);
  --fs-h2: clamp(2.125rem, 4.3vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
  background: var(--marble);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--brass);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(198, 162, 78, 0.25);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 500; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--black); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
[hidden] { display: none !important; }

/* przewijak jako część palety */
html { scrollbar-width: thin; scrollbar-color: var(--vein) var(--marble); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--marble); }
::-webkit-scrollbar-thumb { background: var(--vein); border: 2px solid var(--marble); }
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: 62ch; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--black); color: var(--brass-light); font-size: var(--fs-small); }
.skip-link:focus { top: 16px; outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typografia pomocnicza ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.5; font-weight: 300; }
.script { font-family: var(--font-display); font-style: italic; font-weight: 300; }
.small { font-size: var(--fs-small); }
.muted { color: var(--ink-2); }
.dark .muted { color: var(--ink-2-on-dark); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--marble); }
.btn:active { transform: translateY(1px); }
.btn--brass { border-color: var(--brass); background: var(--brass); color: var(--black); }
.btn--brass:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--black); }
.dark .btn { border-color: var(--ink-on-dark); color: var(--ink-on-dark); }
.dark .btn:hover { background: var(--ink-on-dark); color: var(--black); }
.dark .btn--brass { border-color: var(--brass); background: var(--brass); color: var(--black); }
.dark .btn--brass:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn svg { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: var(--fs-small); font-weight: 400; }
.link-arrow svg { width: 22px; height: 12px; transition: transform 260ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow span { border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); transition: border-color 200ms; }
.link-arrow:hover span { border-color: currentColor; }

/* ---------- nagłówek ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  --hdr-ink: var(--ink); --hdr-bg: transparent;
  color: var(--hdr-ink);
  transition: color 320ms var(--ease-out), background-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out), transform 420ms var(--ease-out);
}
.header[data-ink="light"] { --hdr-ink: var(--ink-on-dark); }
.header.is-scrolled { background: color-mix(in srgb, var(--marble) 94%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.header.is-scrolled[data-ink="light"] { background: color-mix(in srgb, var(--black) 92%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--brass) 25%, transparent); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header__logo { display: block; width: 158px; flex: none; }
.header__logo img { width: 100%; height: auto; }
.header__logo .logo-dark { display: block; }
.header__logo .logo-light { display: none; }
.header[data-ink="light"] .logo-dark { display: none; }
.header[data-ink="light"] .logo-light { display: block; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__item { position: relative; }
.nav__link { display: inline-block; padding: 8px 0; font-size: var(--fs-small); font-weight: 400; letter-spacing: 0.01em; text-decoration: none; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--brass); transition: right 260ms var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item:focus-within > .nav__link::after { right: 0; }
.nav__link[aria-expanded] { display: inline-flex; align-items: center; gap: 6px; }
.nav__link[aria-expanded] svg { width: 10px; height: 10px; transition: transform 200ms; }
.nav__item:hover .nav__link[aria-expanded] svg, .nav__item:focus-within .nav__link[aria-expanded] svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(860px, calc(100vw - 2 * var(--gutter)));
  padding: 32px 36px 28px;
  background: var(--black); color: var(--ink-on-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--brass) 30%, transparent);
  opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; list-style: none; }
.mega__link { display: block; padding: 9px 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; text-decoration: none; color: var(--ink-on-dark); border-bottom: 1px solid color-mix(in srgb, var(--ink-on-dark) 10%, transparent); transition: color 160ms, padding-left 220ms var(--ease-out); }
.mega__link:hover, .mega__link:focus-visible { color: var(--brass-light); padding-left: 8px; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); font-size: var(--fs-small); color: var(--ink-2-on-dark); }
.mega--sm { width: 320px; }
.mega--sm .mega__grid { grid-template-columns: 1fr; }

.header__cta { display: none; }
.header__phone { display: none; align-items: center; gap: 10px; font-size: var(--fs-small); text-decoration: none; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; }

.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; font-size: var(--fs-small); }
.menu-btn__lines { position: relative; width: 26px; height: 12px; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 11px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; min-height: 44px; padding-inline: 20px; }
  .menu-btn { display: none; }
}
@media (min-width: 1200px) { .header__phone { display: inline-flex; } }

/* menu mobilne */
.drawer {
  position: fixed; inset: 0; z-index: 49; background: var(--black); color: var(--ink-on-dark);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
}
.drawer.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer__list { list-style: none; display: grid; gap: 4px; }
.drawer__link { display: block; padding: 12px 0; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink-on-dark) 12%, transparent); }
.drawer__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; padding: 8px 0 16px; }
.drawer__sub a { display: block; padding: 6px 0; font-size: var(--fs-small); color: var(--ink-2-on-dark); text-decoration: none; }
.drawer__sub a:hover { color: var(--brass-light); }
.drawer__foot { display: grid; gap: 14px; margin-top: 36px; font-size: var(--fs-small); color: var(--ink-2-on-dark); }
.drawer__foot a { color: var(--ink-on-dark); text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- sekcje ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.65); }
.dark { background: var(--black); color: var(--ink-on-dark); }
.onyx { background: var(--onyx); color: var(--ink-on-dark); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { max-width: 58ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
}
.rule { height: 1px; background: color-mix(in srgb, var(--brass) 45%, transparent); border: 0; margin: 0; }

/* ---------- HERO: ściana recepcji ---------- */
.hero { position: relative; min-height: 100svh; color: var(--ink-on-dark); background: var(--black); isolation: isolate; }
.hero__wall {
  position: relative; z-index: 2; min-height: 100svh; overflow: clip;
  background:
    radial-gradient(1200px 700px at var(--mx, 70%) var(--my, 30%), rgba(255, 255, 255, 0.055), transparent 60%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.035) 78%, rgba(255, 255, 255, 0) 100%),
    var(--black);
  display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 8vh); padding-bottom: clamp(48px, 8vh, 96px);
}
.hero__wall::after { /* delikatne odbicie podłogi z połysku */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.04), transparent); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: 40px; }
.hero__title { max-width: 12ch; font-weight: 300; }
.hero__title .script { display: block; font-weight: 300; }
.hero__lead { max-width: 44ch; color: var(--ink-2-on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: var(--fs-small); color: var(--ink-2-on-dark); }
.hero__meta a { text-decoration: none; color: var(--ink-on-dark); }
.hero__meta a:hover { color: var(--brass-light); }

.pendants { position: absolute; z-index: 1; inset: 0 0 auto auto; width: min(58vw, 760px); height: 78vh; pointer-events: none; overflow: visible; }
.pendants svg { width: 100%; height: 100%; overflow: visible; }
.pendant { transform-box: fill-box; transform-origin: top center; }
.pendant__rod { fill: url(#brassGrad); }
.pendant__wire { stroke: rgba(232, 209, 147, 0.22); stroke-width: 0.8; }
.pendant__glow { fill: url(#glowGrad); opacity: 0.9; }
.pendant__core { fill: #fff3cf; }
@media (max-width: 899px) {
  .pendants { width: 100%; height: 60vh; opacity: 0.7; }
}


/* warstwa pod ścianą, odsłaniana przy przewijaniu */
.hero__under { position: absolute; inset: 0; z-index: 1; background: var(--marble); color: var(--ink); overflow: clip; display: grid; }
.hero__under img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__under-caption { position: relative; align-self: end; margin: 0 var(--gutter) clamp(28px, 5vh, 56px); padding: 18px 22px; background: color-mix(in srgb, var(--black) 78%, transparent); color: var(--ink-on-dark); font-size: var(--fs-small); max-width: 46ch; }
.hero__under-caption .script { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.hero--stacked .hero__under, html.no-js .hero__under { position: relative; min-height: 70vh; }
.hero--stacked .hero__under img, html.no-js .hero__under img { position: absolute; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; }
  .hero__side { justify-self: end; text-align: right; display: grid; gap: 12px; }
}

/* ---------- LIST: powitanie ---------- */
.welcome { position: relative; }
.welcome__grid { display: grid; gap: 40px; }
.welcome__figure { margin: 0; position: relative; }
.welcome__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.welcome__figure figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.welcome__body { display: grid; gap: 22px; align-content: center; }
.welcome__greeting { font-size: var(--fs-h2); }
.welcome__signature { margin-top: 12px; font-size: 2.25rem; line-height: 1; }
.welcome__signature small { display: block; font-family: var(--font-body); font-style: normal; font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.welcome__quote { position: relative; margin: 0; padding: 28px 0 0; border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.35; color: var(--brass-deep); max-width: 30ch; }
.welcome__quote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal; font-size: var(--fs-tiny); color: var(--ink-2); letter-spacing: 0.02em; }
@media (min-width: 900px) {
  .welcome__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
  .welcome__figure { margin-top: -18vh; z-index: 3; }
}

/* ---------- OFERTA: indeks ---------- */
.offer__grid { display: grid; gap: 40px; }
.offer__list { list-style: none; counter-reset: none; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.offer__item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); text-decoration: none; transition: padding-left 320ms var(--ease-out); }
.offer__item img { width: 72px; height: 72px; object-fit: cover; }
.offer__item > span:last-child { display: block; min-width: 0; }
.offer__name { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.1; transition: color 200ms; }
.offer__short { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 4px; max-width: 46ch; }
.offer__item:hover .offer__name, .offer__item:focus-visible .offer__name, .offer__item.is-active .offer__name { color: var(--brass-deep); }
.offer__stage { display: none; }
@media (min-width: 900px) {
  .offer__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .offer__item { grid-template-columns: 1fr; padding: 18px 0 18px 0; }
  .offer__item img { display: none; }
  .offer__item:hover, .offer__item:focus-visible, .offer__item.is-active { padding-left: 14px; }
  .offer__stage { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .offer__stage-frame { position: relative; aspect-ratio: 4 / 5; overflow: clip; background: var(--marble-2); }
  .offer__stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 520ms var(--ease-out), transform 900ms var(--ease-out); }
  .offer__stage-frame img.is-active { opacity: 1; transform: scale(1); }
  .offer__stage-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--fs-small); color: var(--ink-2); min-height: 1.6em; }
  .offer__stage-caption strong { color: var(--ink); font-weight: 400; }
}

/* ---------- CEREC: sekwencja ---------- */
.cerec { position: relative; overflow: clip; }
.cerec__grid { display: grid; gap: 48px; }
.cerec__intro { display: grid; gap: 22px; align-content: start; }
.cerec__intro h2 { max-width: 14ch; }
.cerec__figure { margin: 0; }
.cerec__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; position: relative; margin-top: 8px; }
.step { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 22px; padding: 22px 0 26px; border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
.step::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; background: var(--brass); transform: rotate(45deg); }
.step__time { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; color: var(--brass-light); }
.step__name { display: block; margin-top: 8px; font-size: var(--fs-small); font-weight: 400; letter-spacing: 0.02em; }
.step__text { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2-on-dark); max-width: 38ch; }
.cerec__total { margin-top: 28px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.cerec__total strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--brass-light); }
@media (min-width: 900px) {
  .cerec__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 32px; }
}

/* ---------- METAMORFOZY: suwak przed/po ---------- */
.ba { position: relative; margin: 0; --pos: 50%; user-select: none; }
.ba__frame { position: relative; aspect-ratio: 620 / 340; background: var(--black); overflow: clip; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--brass-light); transform: translateX(-50%); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--black); border: 1px solid var(--brass-light); display: grid; place-items: center; pointer-events: none; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.7); }
.ba__knob svg { width: 20px; height: 10px; stroke: var(--brass-light); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + .ba__line { width: 3px; outline: 2px solid var(--brass); }
.ba__label { position: absolute; bottom: 12px; padding: 4px 10px; font-size: var(--fs-tiny); letter-spacing: 0.06em; background: rgba(0, 0, 0, 0.7); color: var(--ink-on-dark); pointer-events: none; }
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__caption { padding: 16px 0 0; }
.ba__caption h2, .ba__caption h3 { font-size: 1.5rem; }
.ba__caption p { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); max-width: 52ch; }
.dark .ba__caption p, .onyx .ba__caption p { color: var(--ink-2-on-dark); }
.cases { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
  .cases > .ba:first-child { grid-column: 1 / -1; }
  .cases > .ba:first-child .ba__frame { aspect-ratio: 2 / 1; }
}
.case-set { display: grid; gap: 14px; }
.case-set__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.case-set__images img { width: 100%; aspect-ratio: 620 / 340; object-fit: cover; background: var(--marble-2); }
.case-set h2, .case-set h3 { font-size: 1.5rem; }
.case-set p { font-size: var(--fs-small); color: var(--ink-2); max-width: 60ch; }

/* ---------- ZESPÓŁ ---------- */
.team { list-style: none; display: grid; gap: 40px 32px; }
.person { display: grid; gap: 14px; align-content: start; }
.person__figure { margin: 0; position: relative; overflow: clip; }
.person__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; transition: transform 1200ms var(--ease-out); }
.person:hover .person__figure img { transform: scale(1.03); }
.person__name { font-size: 1.75rem; line-height: 1.1; }
.person__role { font-size: var(--fs-small); color: var(--brass-deep); font-weight: 400; margin-top: 4px; }
.person__bio { font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; } }

/* ---------- GABINET: technologia + galeria ---------- */
.tech__grid { display: grid; gap: 40px; }
.tech__intro { display: grid; gap: 20px; align-content: start; }
.equipment { list-style: none; border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
.equipment li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.equipment strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.equipment p { font-size: var(--fs-small); color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) {
  .tech__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); }
  .tech__intro { position: sticky; top: calc(var(--header-h) + 24px); }
  .equipment li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
}
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: clamp(40px, 6vw, 72px); }
.mosaic__item { margin: 0; overflow: clip; background: var(--marble-2); }
.mosaic__item button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item--tall { grid-row: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 12px; }
  .mosaic__item--wide { grid-column: span 2; }
}
@media (max-width: 899px) { .mosaic { grid-auto-rows: 200px; } }

/* ---------- KOMFORT ---------- */
.comfort { list-style: none; display: grid; gap: 22px 32px; }
.comfort li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; }
.comfort svg { width: 28px; height: 28px; stroke: var(--brass); fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.comfort strong { display: block; font-weight: 400; }
.comfort p { font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 640px) { .comfort { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .comfort { grid-template-columns: repeat(5, 1fr); } }

/* ---------- CENNIK ---------- */
.price-list { list-style: none; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.price-row__name { flex: 1 1 auto; min-width: 0; }
.price-row__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-0.35em); }
.price-row__value { flex: none; font-variant-numeric: tabular-nums; font-weight: 400; white-space: nowrap; }
.price-teaser { display: grid; gap: 0 48px; }
@media (min-width: 900px) { .price-teaser { grid-template-columns: 1fr 1fr; } }

.pricing { display: grid; gap: 48px; }
.pricing__nav { display: none; }
.pricing__group { scroll-margin-top: calc(var(--header-h) + 24px); }
.pricing__group h2 { font-size: var(--fs-h3); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.pricing__group + .pricing__group { margin-top: 40px; }
.pricing__search { display: grid; gap: 8px; margin-bottom: 40px; max-width: 480px; }
.pricing__search input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: var(--white); }
.pricing__search input:focus { outline: 2px solid var(--brass); outline-offset: 2px; border-color: var(--brass); }
.pricing__empty { padding: 24px 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; }
  .pricing__nav { display: block; position: sticky; top: calc(var(--header-h) + 24px); list-style: none; }
  .pricing__nav a { display: block; padding: 8px 0 8px 14px; font-size: var(--fs-small); text-decoration: none; color: var(--ink-2); border-left: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); transition: color 160ms, border-color 160ms; }
  .pricing__nav a:hover, .pricing__nav a.is-active { color: var(--ink); border-color: var(--brass); }
}

/* ---------- KONTAKT ---------- */
.contact__grid { display: grid; gap: 48px; }
.contact__col { display: grid; gap: 28px; align-content: start; }
.contact__block h2, .contact__block h3 { font-size: 1.375rem; margin-bottom: 8px; }
.contact__block a { text-decoration: none; }
.contact__block a:hover { color: var(--brass-deep); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font-size: var(--fs-small); }
.hours td:last-child { text-align: right; font-weight: 400; }
.hours tr.is-today td { color: var(--brass-deep); font-weight: 400; }
.hours tr.is-closed td:last-child { color: var(--ink-2); font-weight: 300; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 120px); } }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: var(--white); transition: border-color 160ms; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 2px; border-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field__error { font-size: var(--fs-tiny); color: #b3261e; min-height: 1.2em; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--fs-tiny); color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brass-deep); cursor: pointer; }
.consent.is-invalid { color: #b3261e; }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.form__status { font-size: var(--fs-small); color: var(--ink-2); }
.map { margin-top: clamp(48px, 6vw, 80px); aspect-ratio: 16 / 7; background: var(--marble-2); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (max-width: 639px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- pasek CTA ---------- */
.cta-band { position: relative; overflow: clip; }
.cta-band__grid { display: grid; gap: 28px; align-items: center; }
.cta-band h2 { max-width: 16ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cta-band__actions { justify-content: flex-end; } }

/* ---------- stopka ---------- */
.footer { background: var(--black); color: var(--ink-2-on-dark); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: var(--fs-small); }
.footer__grid { display: grid; gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { width: 200px; }
.footer__brand p { max-width: 34ch; }
.footer .footer__h { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; color: var(--ink-on-dark); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-2-on-dark); transition: color 160ms; }
.footer a:hover { color: var(--brass-light); }
.footer__social { display: flex; gap: 14px; }
.footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--ink-on-dark) 20%, transparent); color: var(--ink-on-dark); }
.footer__social a:hover { border-color: var(--brass); color: var(--brass-light); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 6vw, 64px); padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--brass) 30%, transparent); font-size: var(--fs-tiny); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }

/* ---------- podstrony ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vh, 96px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero__grid { display: grid; gap: 32px; }
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); max-width: 14ch; }
.page-hero__motto { margin-top: 18px; font-size: clamp(1.375rem, 2.2vw, 1.875rem); color: var(--brass-deep); max-width: 30ch; }
.page-hero__crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 26px; font-size: var(--fs-tiny); color: var(--ink-2); }
.page-hero__crumbs a { text-decoration: none; }
.page-hero__crumbs a:hover { color: var(--brass-deep); }
.page-hero__crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--vein); }
.page-hero__figure { margin: 0; }
.page-hero__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(48px, 7vw, 120px); }
}
.article { display: grid; gap: 48px; }
.article__body { max-width: 66ch; }
.article__body p { font-size: 1.125rem; line-height: 1.65; }
.article__list h2, .article__list h3 { font-size: 1.375rem; margin-bottom: 14px; }
.article__list ul { list-style: none; border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.article__list li { padding: 10px 0 10px 22px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); position: relative; font-size: var(--fs-small); }
.article__list li::before { content: ""; position: absolute; left: 4px; top: 1.1em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.article__aside { display: grid; gap: 32px; align-content: start; }
.article__prices h2, .article__prices h3 { font-size: 1.375rem; margin-bottom: 10px; }
.article__prices .link-arrow { margin-top: 14px; }
@media (min-width: 900px) {
  .article { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .article__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.service-nav { list-style: none; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.service-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: var(--fs-small); transition: padding-left 220ms var(--ease-out), color 160ms; }
.service-nav a:hover { padding-left: 8px; color: var(--brass-deep); }
.service-nav a[aria-current="page"] { color: var(--brass-deep); font-weight: 400; }
.service-nav svg { width: 22px; height: 12px; flex: none; align-self: center; }

.certs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.certs button { display: block; width: 100%; cursor: zoom-in; text-align: left; }
.certs img { width: 100%; aspect-ratio: 578 / 800; object-fit: cover; background: var(--white); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.4); transition: transform 400ms var(--ease-out); }
.certs button:hover img { transform: translateY(-4px); }
.certs figcaption { margin-top: 10px; font-size: var(--fs-tiny); color: var(--ink-2); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; width: auto; overflow: visible; color: var(--ink-on-dark); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2-on-dark); text-align: center; }
.lightbox__close { position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--ink-on-dark) 30%, transparent); color: var(--ink-on-dark); background: rgba(0, 0, 0, 0.5); }
.lightbox__close:hover { border-color: var(--brass); color: var(--brass-light); }
.lightbox__close svg { width: 18px; height: 18px; }
body:has(.lightbox[open]) { overflow: hidden; }

/* ---------- wejście hero (jedna zaaranżowana sekwencja) ---------- */
html.js:not(.reduced) .hero [data-enter] { opacity: 0; transform: translateY(24px); }
html.js:not(.reduced) .hero .pendant { opacity: 0; transform: translateY(-40px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero [data-enter], .hero .pendant { opacity: 1 !important; transform: none !important; }
}

@media print {
  .header, .drawer, .hero__under, .pendants, .map, .cta-band, .footer__social { display: none !important; }
  body { background: #fff; color: #000; }
  .dark, .onyx { background: #fff; color: #000; }
}

/* ==========================================================================
   OPOWIEŚĆ (strona główna): sceny, rozdziały, postęp, przejścia
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 420ms cubic-bezier(0.16, 1, 0.3, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none; }
.progress__bar { height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

.chapters { display: none; position: fixed; right: 22px; top: 50%; z-index: 40; transform: translateY(-50%); list-style: none; }
.chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; text-decoration: none; font-size: var(--fs-tiny); color: color-mix(in srgb, var(--hdr-ink, currentColor) 60%, transparent); }
.chapters a span { opacity: 0; transform: translateX(6px); transition: opacity 200ms, transform 260ms var(--ease-out); }
.chapters a::after { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); transition: background-color 200ms; }
.chapters a:hover span, .chapters a.is-active span { opacity: 1; transform: none; }
.chapters a.is-active { color: var(--brass); }
.chapters a.is-active::after { background: var(--brass); border-color: var(--brass); }
@media (min-width: 1200px) { .chapters { display: block; } }
.chapters--light a { color: color-mix(in srgb, var(--ink-on-dark) 55%, transparent); }
.chapters--dark a { color: color-mix(in srgb, var(--ink) 55%, transparent); }

.reveal-words .w { display: inline-block; overflow: clip; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-words .w > span { display: inline-block; will-change: transform; }

/* sceny: domyślnie zwykłe sekcje (bez JS, telefon, reduced motion) */
.scene { position: relative; }
.scene__stage { position: relative; }

/* --- spacer po wnętrzu --- */
.scene--walk .walk__grid { display: grid; gap: 36px; }
.walk__shots { position: relative; }
.walk__shot { margin: 0; }
.walk__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.walk__copy h2 { font-size: var(--fs-h2); }
.walk__copy p { margin-top: 14px; color: var(--ink-2-on-dark); max-width: 40ch; }
.walk__copy .script { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.3; color: var(--brass-light); max-width: 24ch; }
.walk__copies { display: grid; gap: 40px; }
@media (max-width: 899px) {
  .walk__shots { display: grid; gap: 24px; }
  .walk__copies { display: none; }
  .walk__shot figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-2-on-dark); }
}
.story-motion .scene--walk { height: 100svh; overflow: clip; display: grid; align-items: center; }
.story-motion .scene--walk .walk__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 6vw, 100px); }
.story-motion .walk__shots { aspect-ratio: 4 / 3; max-height: 78vh; }
.story-motion .walk__shot { position: absolute; inset: 0; overflow: clip; }
.story-motion .walk__shot img { height: 100%; }
.story-motion .walk__shot figcaption { display: none; }
.story-motion .walk__copies { position: relative; min-height: 40vh; display: block; }
.story-motion .walk__copy { position: absolute; inset: 0; }

/* --- CEREC --- */
.scene--cerec .cerec__grid { display: grid; gap: 40px; }
.cerec__art { position: relative; }
.cerec__art svg { width: 100%; height: auto; max-height: 76vh; }
.cerec__min { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.cerec__min strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; color: var(--brass-light); font-variant-numeric: tabular-nums; }
.cerec__min span { font-size: var(--fs-small); color: var(--ink-2-on-dark); }
.cerec__acts { display: grid; gap: 28px; }
.cerec__act h3 { font-size: var(--fs-h3); }
.cerec__act p { margin-top: 10px; color: var(--ink-2-on-dark); max-width: 38ch; }
.cerec__act small { display: block; margin-bottom: 8px; font-size: var(--fs-small); color: var(--brass-light); }
.story-motion .scene--cerec { height: 100svh; overflow: clip; display: grid; align-items: center; }
.story-motion .scene--cerec .cerec__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 6vw, 100px); }
.story-motion .cerec__acts { position: relative; min-height: 34vh; display: block; }
.story-motion .cerec__act { position: absolute; inset: 0; }
@media (max-width: 899px) { .cerec__min strong { font-size: 3rem; } }

/* --- metamorfozy jako scena --- */
.scene--cases .cases__stack { position: relative; display: grid; gap: 40px; }
.cases__title { margin-bottom: 14px; }
.cases__title h3 { font-size: var(--fs-h3); }
.cases__title p { margin-top: 8px; color: var(--ink-2-on-dark); max-width: 56ch; font-size: var(--fs-small); }
.story-motion .scene--cases { height: 100svh; overflow: clip; display: grid; align-items: center; }
.story-motion .cases__stack { display: block; aspect-ratio: 2 / 1; max-height: 62vh; margin: 0 auto; width: min(100%, 1180px); }
.story-motion .cases__stack .ba { position: absolute; inset: 0; }
.story-motion .cases__stack .ba .ba__frame { aspect-ratio: auto; height: 100%; }
.story-motion .cases__stack .ba__caption { display: none; }
.story-motion .cases__titles { position: relative; min-height: 96px; margin-top: 22px; }
.story-motion .cases__title { position: absolute; inset: 0; }
.cases__hint { margin-top: 14px; font-size: var(--fs-tiny); color: var(--ink-2-on-dark); }

/* --- zespół jako przejazd --- */
.rail { position: relative; }
.rail__track { display: grid; gap: 28px; }
.rail__item { display: grid; gap: 12px; align-content: start; }
.rail__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.rail__item h3 { font-size: 1.75rem; }
.rail__item p { font-size: var(--fs-small); color: var(--brass-light); }
.rail__item .rail__bio { color: var(--ink-2-on-dark); }
.rail__intro { display: grid; gap: 16px; align-content: center; }
.rail__intro h2 { max-width: 10ch; }
@media (min-width: 640px) and (max-width: 899px) { .rail__track { grid-template-columns: 1fr 1fr; } }
.story-motion .scene--team { height: 100svh; overflow: clip; display: grid; align-items: center; }
.story-motion .rail__track { display: flex; gap: clamp(28px, 3vw, 48px); width: max-content; padding-left: var(--gutter); will-change: transform; }
.story-motion .rail__intro { width: 34vw; flex: none; }
.story-motion .rail__item { width: clamp(300px, 26vw, 400px); flex: none; }

/* --- nagłówek podstron: ciemny, filmowy --- */
.page-hero--dark { background: var(--black); color: var(--ink-on-dark); position: relative; overflow: clip; min-height: 62vh; display: grid; align-items: end; padding-top: calc(var(--header-h) + 8vh); }
.page-hero--dark .page-hero__crumbs { color: var(--ink-2-on-dark); }
.page-hero--dark .page-hero__crumbs li + li::before { color: color-mix(in srgb, var(--brass) 50%, transparent); }
.page-hero--dark .page-hero__motto { color: var(--brass-light); }
.page-hero--dark .page-hero__figure { position: relative; }
.page-hero--dark .page-hero__figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 45%, transparent); pointer-events: none; }
.page-hero--dark .page-hero__figure img { aspect-ratio: 4 / 3; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.6); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--black) 20%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.6)); }
.page-hero--dark .page-hero__grid { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 80px); }
.equipment--dark li { border-bottom-color: color-mix(in srgb, var(--ink-on-dark) 12%, transparent); }
.equipment--dark p { color: var(--ink-2-on-dark); }
.tech.onyx .tech__intro .muted { color: var(--ink-2-on-dark); }
.scene--cases .cases__stack .ba__caption h3, .scene--cases .cases__stack .ba__caption p { color: inherit; }
.scene--cases .ba__caption p { color: var(--ink-2-on-dark); }

.story-motion .scene.section { padding-block: 0; }
.story-motion .cases__stack { max-height: 54vh; }
.story-motion .scene--cases .wrap > h2 { margin-bottom: 14px; }
/* wersja statyczna (telefon, reduced motion, brak JS): CEREC w stanie końcowym, bez duplikatów */
html:not(.story-motion) :is(#c-block, #c-band, #c-mesh, #c-points, #c-grid, #c-sparks) { display: none; }
html:not(.story-motion) #c-fill { clip-path: none; }
html:not(.story-motion) #c-outline { opacity: 0.25; }
html:not(.story-motion) .cases__titles, html:not(.story-motion) .cases__hint { display: none; }
html:not(.story-motion) .cerec__min { display: none; }
.story-motion .cases__titles { min-height: 128px; }
.cases__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.cases__head h2 { font-size: var(--fs-h3); }
.cases__head .cases__hint { margin: 0; }
