.work-header, .work-nav { display: flex; align-items: center; gap: 1rem; }
.work-header { justify-content: space-between; margin-bottom: 2rem; }
.work-header .kicker { margin-bottom: .7rem; }
.work-nav[hidden], .work-slide[hidden] { display: none; }
.work-nav button {
  width: 48px; height: 48px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem;
}
.work-nav button:is(:hover,:focus-visible) { border-color: var(--accent); }
.work-nav output { white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-slide { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.work-slide h3 { margin: 0 0 1rem; font-size: clamp(1.25rem,2.4vw,2rem); }
.work-photos { display: grid; grid-template-columns: repeat(var(--columns),minmax(0,1fr)); gap: 12px; }
.work-photo, .work-film { position: relative; min-width: 0; margin: 0; padding: 0; background: #111; overflow: hidden; border-radius: 5px; }
.work-photo { cursor: zoom-in; }
.work-photos :is(img,video) { display: block; width: 100%; height: clamp(280px,47vh,520px); object-fit: cover; }
.work-photos.aligned-pair img { height: auto; aspect-ratio: 708 / 519; }
.work-film video { object-fit: contain; }
.work-photo span, .work-film figcaption {
  position: absolute; left: 12px; top: 12px; background: #111e; color: #fff;
  padding: .3rem .65rem; border-radius: 3px; line-height: 1.4;
  font-family: inherit; font-size: .92rem; font-weight: 600; pointer-events: none;
}
.work-cta { margin-top: 1.5rem; }
@media (prefers-reduced-motion:no-preference) {
  .work-slide:not([hidden]) .work-photos { animation: work-enter .32s ease-out; }
  @keyframes work-enter { from { opacity: .4; transform: translateX(12px); } }
}
@media (max-width:640px) {
  .work-header { flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin-bottom: 1rem; }
  .work-nav { gap: .65rem; }
  .work-nav button { width: 44px; height: 44px; }
  .work-photos { gap: 6px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-photos :is(img,video) { height: clamp(185px,64vw,340px); }
  .work-photos > :nth-child(3) { grid-column: 1/-1; }
  .work-photos > :nth-child(3) img { height: 130px; }
  .work-photo span, .work-film figcaption { top: 6px; left: 6px; padding: .2rem .4rem; font-size: .8rem; }
}

#pristup { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr); align-items: center;
  gap: clamp(28px,6vw,100px); padding: clamp(44px,6vw,100px) max(5vw,calc((100vw - 1280px)/2)); min-height: 0; }
#pristup > img { position: static; grid-column: 2; grid-row: 1; justify-self: center;
  width: auto; max-width: 100%; height: auto; max-height: min(76vh,720px); object-fit: contain; filter: none; }
#pristup .statement-content { width: 100%; grid-column: 1; grid-row: 1; padding: 0; }
#service-image { filter: none; }
.work-modes { display: flex; gap: 4px; margin-bottom: 1rem; }
.work-modes[hidden], #depth-host[hidden], .depth-active .work-photos { display:none; }
.work-modes button { padding: .6rem 1rem; min-height: 44px; border-radius: 3px; color:var(--text); background:transparent; border:1px solid var(--line); }
.work-modes button[aria-pressed=true] { background:#C4A15A; color:#111; border-color:#C4A15A; }
.project-depth { height:clamp(300px,49vw,530px); overflow:hidden; border-radius:5px;
  background:radial-gradient(ellipse at 50% 40%,#30302d,#131313 72%); touch-action:pan-y; }
.project-depth:focus-visible { outline:2px solid #C4A15A; }
.work-slides.depth-active { margin-top:1rem; }
@media(max-width:700px){
  #pristup { grid-template-columns:1fr; gap:25px; padding:44px max(20px,5vw); }
  #pristup > img {grid-row:2;grid-column:1;max-height:510px;}
  .project-depth {height:clamp(220px,65vw,390px);}
}
.work-phases { margin:.7rem 0 0; font-size:.91rem; color:var(--text); }
#work-play {margin-left:auto; width:46px; padding:0; display:grid; place-items:center; color:var(--text);}
#work-play[hidden] {display:none;}
.work-modes {flex-wrap:wrap;}
@media(max-width:480px){.work-modes button {font-size:.83rem;padding:.55rem .6rem;}}

#work-detail { width:min(96vw,1240px); max-height:92dvh; padding:0; border:1px solid #625643;
  color:#f5f4f0; background:#171717; border-radius:8px; margin:auto; overscroll-behavior:contain; }
#work-detail::backdrop {background:rgba(0,0,0,.88);}
body:has(#work-detail[open]) {overflow:hidden;}
.detail-bar {position:sticky;top:0;z-index:1;background:#171717;display:flex;align-items:center;
  justify-content:space-between;gap:.7rem;padding:14px 18px;border-bottom:1px solid #45413a;}
.detail-bar h3 {font-size:clamp(1rem,2.2vw,1.6rem);margin:0;text-wrap:balance;}
#detail-close {min-height:44px;padding:.55rem .9rem;border-radius:4px;white-space:nowrap;background:#c4a15a;color:#111;}
#detail-close:focus-visible {outline:2px solid white;outline-offset:2px;}
.detail-media {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px;padding:16px;}
.detail-media figure {margin:0;min-width:0;}
.detail-media :is(img,video) {display:block;width:100%;height:min(65vh,680px);object-fit:contain;background:#101010;}
.detail-media figcaption {margin:.5rem 0;font-size:.94rem;color:#f5f4f0;}
@media(max-width:640px){.detail-bar {flex-wrap:wrap;padding:10px 12px;}.detail-media {display:flex;flex-direction:column;padding:10px;}.detail-media :is(img,video){height:auto;max-height:64dvh;}}

.detail-next-cue { display:none; }
@media(max-width:640px) {
  .detail-next-cue { display:inline-block; float:right; color:#dfc58f; }
}
@media(prefers-reduced-motion:no-preference) {
  .detail-next-cue { animation:gallery-down 1.8s ease-in-out 3; }
  @keyframes gallery-down { 50% {transform:translateY(3px);} }
}
