/* Photo-based alternative, above the existing capabilities grid. */
.scene-gallery { --scene-gutter: max(48px,calc((100vw - 1200px)/2)); --scene-progress: 0; position: relative; width: 100%; padding: 96px 0 52px; background: #fff; scroll-margin-top: 0; }
.scene-gallery-sticky { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.scene-gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; width: min(1200px,calc(100% - 96px)); margin: 0 auto; }
.scene-gallery-heading h2 { color: #202e48; font-size: clamp(32px,3.8vw,48px); font-weight: 600; line-height: 1.4; letter-spacing: -.045em; text-wrap: balance; }
.scene-gallery-hint { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-bottom: 6px; color: #8995a8; font-size: 14px; line-height: 1.5; }
.scene-gallery-hint svg { width: 16px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.scene-gallery-viewport { width: 100%; min-height: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-padding-inline: var(--scene-gutter); }
.scene-gallery-viewport::-webkit-scrollbar { display: none; }
.scene-gallery-viewport:focus-visible { outline: 2px solid #91a4f5; outline-offset: 7px; }
.scene-gallery-track { position: relative; display: flex; gap: 24px; width: max-content; height: min(640px,70svh); margin: 0; padding: 0 var(--scene-gutter); list-style: none; }
.scene-gallery-slide { flex: 0 0 clamp(300px,28vw,384px); min-width: 0; height: 100%; }
.scene-gallery-card { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; border-radius: 28px; background: #e8edf5; color: #fff; text-decoration: none; }
.scene-gallery-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,#081126a3 0%,#08112642 33%,#08112600 67%); pointer-events: none; }
.scene-gallery-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.scene-gallery-copy { position: relative; z-index: 2; padding: 30px; }
.scene-gallery-copy > p { color: #ffffffe6; font-size: 15px; line-height: 1.5; font-weight: 500; }
.scene-gallery-copy > h3 { margin-top: 10px; color: #fff; font-size: clamp(26px,2.3vw,30px); line-height: 1.45; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.scene-gallery-stack-count { display: none; }
.scene-gallery-card:focus-visible { outline: 3px solid #85a9ef; outline-offset: -5px; }
.scene-gallery-progress { flex: 0 0 2px; width: 180px; height: 2px; margin-left: var(--scene-gutter); overflow: hidden; border-radius: 3px; background: #e9edf5; }
.scene-gallery-progress > span { display: block; width: 100%; height: 100%; background: #7f9dd8; transform: scaleX(var(--scene-progress)); transform-origin: left; }
.scene-gallery.scene-pinned { padding: 0; }
.scene-pinned .scene-gallery-sticky { position: sticky; top: 0; height: 100svh; padding: clamp(120px,13svh,156px) 0 48px; gap: 28px; justify-content: center; }
.scene-pinned .scene-gallery-heading { flex: 0 0 auto; }
.scene-pinned .scene-gallery-viewport { flex: 1 1 auto; max-height: 640px; overflow: clip; }
.scene-pinned .scene-gallery-track { height: 100%; will-change: transform; }
.scene-has-tilt.scene-pinned .scene-gallery-viewport { overflow: clip visible; }
.scene-has-tilt .scene-gallery-slide { perspective: 1100px; }
.scene-has-tilt .scene-gallery-card { transform-origin: center; backface-visibility: hidden; box-shadow: var(--scene-shadow-x,0px) var(--scene-shadow-y,10px) 28px rgb(38 65 110 / calc(var(--scene-tilt-lift,0) * .17)), 0 0 30px rgb(134 162 255 / calc(var(--scene-tilt-lift,0) * .12)); }
.scene-has-tilt .is-scene-tilted { position: relative; z-index: 3; }
.scene-has-tilt .is-scene-tilted .scene-gallery-card { will-change: transform; }
.scene-has-tilt .scene-gallery-card::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse farthest-corner at var(--scene-glare-x,50%) var(--scene-glare-y,50%),rgb(255 255 255 / .30),rgb(205 226 255 / .11) 32%,transparent 68%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); opacity: var(--scene-tilt-lift,0); mix-blend-mode: screen; }
@media (min-width:861px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .scene-gallery-card:hover > img { transform: scale(1.025); }
}
@media (max-width:1024px) {
  .scene-gallery-heading { width: calc(100% - 64px); }
  .scene-gallery-heading h2 { font-size: 36px; }
  .scene-gallery-hint { font-size: 13px; }
}
@media (max-width:860px) {
  .scene-gallery { --scene-gutter: 22px; --scene-stack-top: 94px; padding: 76px 0 30px; }
  .scene-gallery-sticky { gap: 25px; }
  .scene-gallery-heading { width: calc(100% - 44px); flex-direction: column; align-items: flex-start; gap: 17px; }
  .scene-gallery-heading h2 { max-width: 420px; font-size: 32px; }
  .scene-gallery-hint { padding: 0; font-size: 13px; }
  .scene-gallery-hint svg { display: none; }
  .scene-gallery-viewport { overflow: visible; overscroll-behavior: auto; }
  .scene-gallery-track { display: block; width: 100%; height: auto; padding-bottom: clamp(140px,24svh,200px); }
  .scene-gallery-slide { position: sticky; top: calc(var(--scene-stack-top) + var(--scene-stack-order,0) * 6px); z-index: var(--scene-stack-order,0); width: 100%; height: clamp(320px,58svh,480px); max-height: calc(100svh - var(--scene-stack-top) - var(--scene-stack-clearance,60px)); margin-bottom: 20px; transform: scale(var(--scene-stack-scale,1)); transform-origin: center top; }
  .scene-gallery-slide:last-child { margin-bottom: 0; }
  .scene-gallery-card { border-radius: 25px; box-shadow: 0 -6px 20px #23324918; }
  .scene-gallery-copy { padding: 26px; }
  .scene-gallery-copy > p { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .scene-gallery-copy > h3 { font-size: 27px; }
  .scene-gallery-stack-count { display: inline; color: #ffffffd9; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .scene-gallery-progress { display: none; }
}
@media (max-width:860px) and (max-height:520px) {
  .scene-gallery { --scene-stack-top: 80px; }
  .scene-gallery-copy { padding: 20px 24px; }
  .scene-gallery-copy > h3 { font-size: 25px; }
}
@media (prefers-reduced-motion:reduce) {
  .scene-gallery-card > img { transition: none; }
}
@media (max-width:860px) and (prefers-reduced-motion:reduce) {
  .scene-gallery-slide { position: relative; top: auto; transform: none; }
  .scene-gallery-track { padding-bottom: 0; }
  .scene-gallery-card { box-shadow: none; }
}
