/* Moving project tiles on Home and Work. Posters paint first; clips play only while on screen. */
.show-section { padding:76px 0; background:#fff; }
.show-section-alt { background:var(--bg); }
.show-heading { max-width:820px; margin:0 0 31px; }
.show-heading h2 { margin:0 0 12px; }
.show-heading p { max-width:760px; margin:0; color:var(--muted); }
.show-note { margin:22px 0 0; color:var(--dim); font-size:.9rem; }

.show-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px; }
.show-grid-feature { grid-template-columns:minmax(0,1.9fr) minmax(0,1fr); align-items:start; }
.show-grid-feature .show-stack { display:grid; gap:22px; }

.show-tile { min-width:0; margin:0; }
.show-media {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0a3a48;
  cursor:pointer;
  box-shadow:0 14px 34px rgba(10,44,56,.12);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.show-media:hover { transform:translateY(-3px); box-shadow:0 20px 44px rgba(10,44,56,.18); }
.show-media:focus-visible { outline:3px solid var(--teal); outline-offset:3px; }
.show-media picture,.show-media img,.show-media video {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.show-media video { opacity:0; transition:opacity .5s ease; }
.show-media.is-playing video { opacity:1; }
.show-badge,.show-expand {
  position:absolute;
  z-index:2;
  padding:5px 10px;
  border-radius:6px;
  color:#eef6f6;
  background:rgba(10,58,72,.86);
  font:600 .78rem/1.2 var(--font);
}
.show-badge { top:10px; left:10px; display:inline-flex; align-items:center; gap:7px; }
.show-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--band-teal); }
.show-media.is-playing .show-badge::before { animation:showPulse 1.6s ease-in-out infinite; }
.show-expand { right:10px; bottom:10px; opacity:0; transition:opacity .25s ease; }
.show-media:hover .show-expand,.show-media:focus-visible .show-expand { opacity:1; }
.show-tile figcaption { display:grid; gap:5px; padding:14px 2px 0; }
.show-tile figcaption strong { color:var(--text); font:700 1.05rem/1.3 var(--display); }
.show-tile figcaption span { color:var(--muted); font-size:.93rem; line-height:1.55; }
.show-tile-wide figcaption strong { font-size:1.3rem; }

/* Deep band with a clip beside the copy (MenaCountry). */
.show-band-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:44px; align-items:center; }
.show-band-layout .home-menacountry-copy { max-width:none; }
.show-band-layout .show-media { border-color:var(--band-line); box-shadow:0 18px 44px rgba(0,0,0,.28); }
.show-band-layout figcaption strong { color:var(--on-band); }
.show-band-layout figcaption span { color:var(--on-band-2); }

/* Project feature inside the Work builds section. */
.show-feature { margin:0 0 34px; padding:25px; border:1px solid var(--line); border-top:4px solid var(--teal); border-radius:10px; background:#fff; }
.show-feature > h3 { margin:0 0 7px; }
.show-feature > p { max-width:760px; margin:0 0 22px; color:var(--muted); }

/* Slow zoom on the home hero photo. */
.home-hero-picture { overflow:hidden; }
.home-hero-picture .hero-image { animation:showKenBurns 26s ease-in-out infinite alternate; transform-origin:60% 40%; will-change:transform; }

/* Moving backgrounds: the still paints first, the montage fades in once it plays. */
.show-bg-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1.2s ease; pointer-events:none; }
.home-hero-picture .show-bg-video { filter:brightness(.62) saturate(.85); }
.home-hero-picture .show-bg-video.is-playing { opacity:.9; }
.show-live-band { position:relative; overflow:hidden; isolation:isolate; }
.show-live-band > .container { position:relative; z-index:1; }
.show-live-band .show-bg-video { z-index:0; filter:grayscale(1) contrast(1.15); mix-blend-mode:luminosity; }
.show-live-band .show-bg-video.is-playing { opacity:.2; }

/* Enlarged player. */
.show-lightbox { width:min(1180px,calc(100vw - 28px)); max-height:calc(100vh - 28px); padding:0; overflow:hidden; border:0; border-radius:12px; color:var(--on-band); background:#062a35; }
.show-lightbox::backdrop { background:rgba(4,22,28,.82); }
.show-lightbox video { display:block; width:100%; max-height:calc(100vh - 120px); background:#000; }
.show-lightbox-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 12px 10px 18px; }
.show-lightbox-bar p { margin:0; color:var(--on-band); font:600 1rem/1.35 var(--display); }
.show-lightbox-close { min-width:44px; min-height:44px; padding:0 16px; border:1px solid var(--band-line); border-radius:8px; color:var(--on-band); background:transparent; font:600 .92rem var(--font); cursor:pointer; }
.show-lightbox-close:hover { background:var(--band-2); }
.show-lightbox-close:focus-visible { outline:3px solid var(--band-teal); outline-offset:2px; }

@keyframes showKenBurns { from { transform:scale(1); } to { transform:scale(1.09); } }
@keyframes showPulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

@media (max-width:900px) {
  .show-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .show-grid-feature,.show-band-layout { grid-template-columns:minmax(0,1fr); }
  .show-grid-feature .show-stack { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .show-band-layout { gap:30px; }
}
@media (max-width:620px) {
  .show-section { padding:54px 0; }
  .show-grid,.show-grid-feature .show-stack { grid-template-columns:minmax(0,1fr); }
  .show-feature { padding:21px; }
  .show-expand { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
  .home-hero-picture .hero-image { animation:none; }
  .show-media,.show-media video { transition:none; }
  .show-bg-video { display:none; }
  .show-media:hover { transform:none; }
}
