/* Detailing Depth. Warstwy i choreografia wg scroll-craft; baza w styles.css. */
:root {
  --depth-canvas: #101311;
  --depth-border: #c5d3b945;
}
.site-header { background: var(--depth-canvas); }
.nav-shell { min-height: 92px; }
.depth-hero {
  --depth-p: 0;
  --pointer-x: 0;
  --pointer-y: 0;
  min-height: 0;
  overflow: visible;
  background: var(--depth-canvas);
}
.depth-stage { position: relative; height: max(700px, calc(100svh - 92px)); }
.depth-active .depth-hero { height: calc(max(700px, 100svh - 92px) + 48svh); }
.depth-active .depth-stage { position: sticky; top: 0; }
.depth-viewport { position: absolute; inset: 0; overflow: hidden; isolation: isolate; perspective: 1400px; }
.depth-word {
  position: absolute; top: -6%; right: 1%; z-index: 0; color: transparent;
  -webkit-text-stroke: 1px #c5d3b925;
  font-size: clamp(150px, 23vw, 380px); font-weight: 800; line-height: 1.1; letter-spacing: -.07em;
  transform: translate3d(calc(var(--pointer-x) * -8px), calc(var(--depth-p) * -72px), -160px);
  pointer-events: none; user-select: none;
}
.depth-frame {
  position: absolute; z-index: 1; top: 17%; right: 5%; width: 57%; height: 66%;
  border: 1px solid var(--depth-border);
  transform: translate3d(calc(var(--pointer-x) * -13px), calc(var(--depth-p) * -28px), -75px) rotateY(calc(-13deg + var(--depth-p) * 14deg)) rotateZ(-3deg) scale(calc(1 + var(--depth-p) * .1));
  pointer-events: none;
}
.depth-frame::before { content: ""; position: absolute; inset: 15px -16px -16px 15px; border: 1px solid #c5d3b917; }
.depth-car { position: absolute; z-index: 2; width: 82%; height: 88%; top: 3%; right: -10%;
  transform: translate3d(calc(var(--depth-p) * -24px), calc(var(--depth-p) * 34px), 0) rotateY(calc(-11deg + var(--depth-p) * 12deg)) rotateZ(calc(-3deg + var(--depth-p) * 3deg)) scale(calc(.97 + var(--depth-p) * .07));
  transform-origin: 60% 60%;
}
.depth-car-inner { width: 100%; height: 100%; position: relative; overflow: hidden;
  transform: translate3d(calc(var(--pointer-x) * 13px), calc(var(--pointer-y) * 8px), 0) rotateY(calc(var(--pointer-x) * 2.5deg)) rotateX(calc(var(--pointer-y) * -1.5deg));
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 92%, transparent), linear-gradient(transparent, #000 12%, #000 85%, transparent); mask-composite: intersect;
}
.depth-hero .hero-photo.photo { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--depth-canvas); mix-blend-mode: normal; mask-image: none; }
.depth-hero .hero-photo img { object-fit: contain; mix-blend-mode: normal; }
.depth-hero .hero-photo .image-label { top: auto; bottom: 13%; left: 30%; right: auto; font-size: 12px; opacity: 1; }
.depth-reflection { position: absolute; inset: -25%; opacity: .11; pointer-events: none;
  background: linear-gradient(112deg, transparent 43%, #e7f3df 49%, transparent 55%);
  transform: translateX(calc(var(--pointer-x) * 20% + var(--depth-p) * 25% - 12%)); mix-blend-mode: screen;
}
.depth-local-scrim { position: absolute; z-index: 3; width: 47%; inset: 0 auto 0 0; pointer-events: none; background: linear-gradient(90deg, #101311 10%, #101311ed 47%, #10131100); }
.depth-brand-badge {
  position: absolute; z-index: 5; top: clamp(50px, 6.5vh, 80px); right: 11%; width: clamp(240px, 22vw, 330px); aspect-ratio: 1;
  pointer-events: none; filter: drop-shadow(0 18px 28px #000b);
  transform: translate3d(calc(var(--pointer-x) * 8px), calc(var(--depth-p) * -18px), 0) scale(calc(1 + var(--depth-p) * .03));
}
.depth-brand-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.depth-hero .hero-content { z-index: 4; width: auto; margin-inline: var(--page-gutter); padding-top: clamp(50px, 6.5vh, 80px); transform: translate3d(calc(var(--pointer-x) * -4px), calc(var(--depth-p) * -16px), 0); }
.depth-hero .hero-eyebrow { font-size: 12px; letter-spacing: .12em; margin-bottom: 27px; color: #bac1b4; }
.depth-hero h1 { font-size: clamp(72px, 7.3vw, 112px); font-weight: 500; line-height: 1.035; letter-spacing: -.065em; max-width: 64%; }
.depth-hero h1 .accent { padding-left: .48em; }
.depth-hero .hero-description { max-width: 315px; font-size: 16px; margin-top: 28px; color: #c0c6bd; }
.depth-hero .hero-actions { margin-top: 25px; gap: 12px; }
.depth-hero .hero-actions .button, .depth-hero .hero-secondary { font-size: 14px; }
.depth-detail { position: absolute; z-index: 5; width: clamp(180px, 16.5vw, 260px); right: 7.5%; bottom: 39px;
  transform: translate3d(calc(var(--depth-p) * -32px), calc(var(--depth-p) * -95px), 0) rotateZ(calc(7deg - var(--depth-p) * 10deg));
}
.depth-detail-inner { padding: 7px; border: 1px solid #ffffff59; background: #252c24; box-shadow: 12px 30px 50px #0009;
  transform: translate3d(calc(var(--pointer-x) * 22px), calc(var(--pointer-y) * 14px), 0) rotateY(calc(var(--pointer-x) * 5deg)) rotateX(calc(var(--pointer-y) * -4deg));
}
.depth-detail-photo.photo { height: auto; aspect-ratio: 1.5; }
.depth-detail .photo img { aspect-ratio: 1.5; object-fit: cover; }
.depth-detail .image-label { bottom: 7px; left: 7px; font-size: 12px; padding: 2px 5px; }
.depth-detail figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 7px 5px; font-size: 14px; }
.depth-detail figcaption .icon { color: var(--color-accent); width: 19px; }
.depth-hero .hero-bottom { position: absolute; z-index: 6; bottom: 28px; left: var(--page-gutter); right: var(--page-gutter); width: auto; padding: 0; margin: 0; justify-content: start; gap: 30px; }
.depth-hero .hero-bottom .eyebrow, .depth-hero .hero-bottom p { font-size: 12px; }
.depth-hero .hero-bottom p { max-width: 285px; }
.depth-motion-toggle { min-height: 44px; padding: 8px 0; border-bottom: 1px solid #b6bdb263; background: transparent; color: #b6bdb2; font-size: 12px; }
.depth-motion-toggle::before { content: "Ⅱ"; margin-right: 9px; }
.depth-motion-toggle[aria-pressed="true"]::before { content: "▷"; }
.depth-hero .button-primary { box-shadow: 0 8px 28px #0005; }
.depth-hero .button-primary:hover { transform: translateY(-3px); }
.service-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.service-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.gallery-image .photo img { transform: translateY(var(--gallery-shift, 0px)) scale(1.08); transition: none; }
.gallery-image:hover .photo img { transform: translateY(var(--gallery-shift, 0px)) scale(1.11); }
.gallery-image .photo { overflow: hidden; }
.section-heading .eyebrow { display: none; }
.depth-hero ~ .focus-strip { position: relative; z-index: 7; }
@media (min-width: 1700px) {
  .depth-car { width: min(74%, 1420px); right: 0; }
  .depth-detail { right: max(7.5%, var(--page-gutter)); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .depth-hero h1 { font-size: 82px; max-width: 72%; }
  .depth-car { width: 98%; right: -7%; top: 12%; height: 75%; }
  .depth-detail { right: 8%; bottom: 55px; width: 185px; }
  .depth-brand-badge { right: 3%; top: clamp(50px, 6.5vh, 80px); width: clamp(210px, 27vw, 250px); }
  .depth-hero .hero-description { max-width: 290px; }
  .depth-motion-toggle { position: absolute; left: 0; bottom: -28px; }
}
/* Mobilna scena zachowuje pełny pin i wyraźną choreografię przewijania. */
@media (max-width: 760px) {
  .nav-shell { min-height: 82px; }
  .depth-active .depth-hero { height: calc(max(640px, calc(100svh - 82px)) + 145svh); }
  .depth-stage, .depth-active .depth-stage { position: sticky; top: 0; height: max(640px, calc(100svh - 82px)); }
  .depth-viewport { position: absolute; inset: 0; display: block; min-height: 0; padding: 0; }
  .depth-word {
    top: 42%; right: -31%; z-index: 3; font-size: 38vw; opacity: calc(var(--depth-p) * .55);
    -webkit-text-stroke-color: color-mix(in srgb, var(--color-accent) 46%, transparent);
    transform: translate3d(calc(var(--depth-p) * -44vw), calc(var(--depth-p) * -14vh), -90px) rotate(calc(-6deg + var(--depth-p) * 10deg)) scale(calc(.86 + var(--depth-p) * .24));
  }
  .depth-frame {
    top: 42%; right: 5%; width: 90%; height: 37%;
    transform: translate3d(calc(var(--depth-p) * -7vw), calc(var(--depth-p) * -8vh), -40px) rotateY(calc(-11deg + var(--depth-p) * 17deg)) rotateZ(calc(-3deg + var(--depth-p) * 5deg)) scale(calc(.97 + var(--depth-p) * .1));
  }
  .depth-car {
    top: 44%; right: -18%; width: 136%; height: 49%;
    transform: translate3d(calc(var(--depth-p) * -18vw), calc(var(--depth-p) * -10vh), 0) rotateY(calc(-6deg + var(--depth-p) * 10deg)) rotateZ(calc(-3deg + var(--depth-p) * 5deg)) scale(calc(.98 + var(--depth-p) * .12));
  }
  .depth-car-inner { mask-image: linear-gradient(transparent, #000 13%, #000 83%, transparent); transform: none; }
  .depth-hero .hero-photo.photo { inset: 0; width: 100%; height: 100%; }
  .depth-hero .hero-photo .image-label { display: none; }
  .depth-local-scrim { display: block; width: 100%; background: linear-gradient(180deg, #101311 0%, #101311e8 24%, #10131120 58%, #101311d9 100%); }
  .depth-brand-badge { display: none; }
  .depth-hero .hero-content { position: absolute; inset: 0; width: 100%; margin: 0; padding: 25px var(--page-gutter) 0; transform: none; }
  .depth-hero .hero-eyebrow { z-index: 4; margin: 0 0 16px; font-size: 12px; gap: 8px; letter-spacing: .06em; opacity: calc(1 - var(--depth-p) * 2.2); transform: translateY(calc(var(--depth-p) * -24px)); }
  .depth-hero h1 { z-index: 4; font-size: clamp(51px, 13.4vw, 68px); line-height: 1.04; max-width: 94%; margin: 0; opacity: calc(1 - var(--depth-p) * 1.55); transform: translate3d(0, calc(var(--depth-p) * -38px), 0) scale(calc(1 - var(--depth-p) * .05)); transform-origin: left top; }
  .depth-hero h1 .accent { padding-left: .32em; }
  .depth-hero .hero-description { z-index: 4; max-width: 330px; margin: 18px 0 0; font-size: 15px; opacity: calc(1 - var(--depth-p) * 1.8); transform: translateY(calc(var(--depth-p) * -24px)); }
  .depth-hero .hero-actions { position: relative; z-index: 6; display: flex; flex-direction: row; margin: 18px 0 0; max-width: none; gap: 12px; align-items: center; opacity: calc(1 - var(--depth-p) * 2.6); transform: none; }
  .depth-hero .hero-actions .button { flex: 0 0 auto; width: auto; font-size: 13px; min-height: 50px; padding: 13px 17px; gap: 14px; }
  .depth-hero .hero-secondary { flex: 0 0 auto; min-height: 50px; font-size: 13px; gap: 10px; }
  .depth-detail { width: 118px; right: 7%; bottom: 72px; top: auto; opacity: calc(1 - var(--depth-p) * 2.4); transform: translateY(calc(var(--depth-p) * -22px)) rotate(calc(6deg - var(--depth-p) * 6deg)) scale(calc(.96 + var(--depth-p) * .03)); }
  .depth-detail-inner { padding: 4px; transform: none; }
  .depth-detail figcaption { font-size: 12px; padding: 7px 3px 3px; }
  .depth-detail figcaption .icon { display: none; }
  .depth-detail .image-label { font-size: 12px; bottom: 3px; left: 3px; }
  .depth-hero .hero-bottom { position: absolute; inset: auto var(--page-gutter) 14px; margin: 0; padding: 0; border: 0; gap: 12px; align-items: end; justify-content: space-between; }
  .depth-hero .hero-bottom .eyebrow { font-size: 12px; }
  .depth-hero .hero-bottom p { font-size: 12px; max-width: 190px; }
  .depth-motion-toggle { flex: 0 0 auto; text-align: left; min-height: 44px; padding: 8px 10px; border: 1px solid #ffffff35; background: #101311d6; }
}
@media (max-width: 370px) {
  .depth-hero .hero-eyebrow { font-size: 12px; letter-spacing: 0; }
  .depth-hero h1 { font-size: 51px; }
  .depth-detail { width: 122px; }
}
@media (min-width: 500px) and (max-width: 760px) {
  .depth-car { top: 42%; height: 52%; }
  .depth-detail { width: 132px; }
  .depth-hero .hero-description { margin-top: 18px; }
}
/* Pełny układ pozostaje czytelny po wyłączeniu ruchu. */
@media (prefers-reduced-motion: reduce) {
  .depth-active .depth-hero { height: auto; }
  .depth-active .depth-stage { position: relative; }
  .depth-car, .depth-car-inner, .depth-frame, .depth-word, .depth-detail, .depth-detail-inner, .depth-hero .hero-content { transform: none; }
  .depth-reflection { display: none; }
  .gallery-image .photo img, .gallery-image:hover .photo img { transform: none; }
}
.depth-paused .depth-hero { height: auto; }
.depth-paused .depth-stage { position: relative; }
.depth-paused .gallery-image .photo img { transform: none; }
