/* 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-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-hero .hero-description { max-width: 290px; }
  .depth-motion-toggle { position: absolute; left: 0; bottom: -28px; }
}
/* Osobna kompozycja dotykowa: tekst → zdjęcie → CTA; bez długiego pina. */
@media (max-width: 760px) {
  .nav-shell { min-height: 82px; }
  .depth-active .depth-hero { height: auto; }
  .depth-stage, .depth-active .depth-stage { position: relative; height: auto; }
  .depth-viewport { position: relative; display: flex; flex-direction: column; min-height: 0; padding-bottom: 26px; }
  .depth-word { top: 210px; right: 3%; font-size: 35vw; }
  .depth-frame { top: 248px; right: 8%; width: 81%; height: 205px; transform: rotate(-5deg); }
  .depth-car { top: 182px; right: -2%; width: 112%; height: 330px; transform: translate3d(0, calc(var(--depth-p) * 16px), 0) rotateZ(calc(-3deg + var(--depth-p) * 3deg)); }
  .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 { left: 25%; bottom: 9%; font-size: 12px; }
  .depth-local-scrim { display: none; }
  .depth-hero .hero-content { display: contents; transform: none; }
  .depth-hero .hero-eyebrow { z-index: 4; margin: 26px var(--page-gutter) 18px; font-size: 12px; gap: 8px; letter-spacing: .06em; }
  .depth-hero h1 { z-index: 4; font-size: clamp(54px, 10.8vw, 82px); line-height: 1.06; max-width: none; margin-inline: var(--page-gutter); }
  .depth-hero h1 .accent { padding-left: .32em; }
  .depth-hero .hero-description { z-index: 4; max-width: 430px; margin: 345px var(--page-gutter) 0; font-size: 16px; }
  .depth-hero .hero-actions { position: relative; z-index: 6; margin: 21px var(--page-gutter) 0; max-width: none; gap: 10px; align-items: stretch; }
  .depth-hero .hero-actions .button { font-size: 14px; min-height: 56px; }
  .depth-hero .hero-secondary { font-size: 14px; }
  .depth-detail { width: 132px; right: 8%; bottom: auto; top: 394px; transform: translateY(calc(var(--depth-p) * -24px)) rotate(6deg); }
  .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: relative; inset: auto; margin: 24px var(--page-gutter) 0; padding-top: 20px; border-top: 1px solid #ffffff24; gap: 16px; align-items: start; }
  .depth-hero .hero-bottom .eyebrow { font-size: 12px; }
  .depth-hero .hero-bottom p { font-size: 12px; max-width: 230px; }
  .depth-motion-toggle { flex: 0 0 85px; text-align: left; padding-top: 0; }
}
@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: 187px; height: 380px; }
  .depth-detail { top: 441px; width: 155px; }
  .depth-hero .hero-description { margin-top: 345px; }
}
/* 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; }
