/* Commercial Production — page-specific extensions */

.panel--cp-reel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.panel--cp-reel .panel__huge,
.panel--cp-reel .panel__lead,
.panel--cp-reel .bullet-list li,
.panel--cp-reel .cp-cap h3,
.panel--cp-reel .cp-cap p,
.panel--cp-reel .cp-honor strong,
.panel--cp-reel .cp-honor span {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

/* 01 / 04 / 06 — stronger text over video */
.panel--studio .panel-reel__veil,
.panel--partners .panel-reel__veil,
.panel--digital .panel-reel__veil {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 28%, rgba(0, 0, 0, 0.35) 72%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.45) 100%),
    rgba(0, 0, 0, 0.38);
}

.panel--studio .panel__huge,
.panel--studio .panel__lead,
.panel--studio .cp-lead-2,
.panel--partners .panel__huge,
.panel--partners .panel__lead,
.panel--partners .bullet-list li,
.panel--digital .panel__huge,
.panel--digital .bullet-list li {
  color: #fff;
  opacity: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.75);
}

.panel--studio .panel__lead,
.panel--partners .panel__lead,
.panel--partners .bullet-list li,
.panel--digital .bullet-list li {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 400;
}

.panel--studio .cp-lead-2 {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}

.cp-lead-2 {
  margin-top: 1.25rem;
  max-width: 52rem;
  white-space: pre-line;
}

.cp-caps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 64rem;
}

@media (min-width: 900px) {
  .cp-caps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.cp-cap {
  border-top: 1px solid var(--accent);
  padding-top: 1.25rem;
}

.cp-cap h3 {
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.cp-cap p {
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}

.cp-honors {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 56rem;
}

@media (min-width: 800px) {
  .cp-honors {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cp-honor {
  border-left: 2px solid var(--accent);
  padding: 0.35rem 0 0.35rem 1rem;
}

.cp-honor strong {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.cp-honor span {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.cp-media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 56rem;
}

.cp-media-row .case-slot__frame {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

.case-slot__frame--carousel {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

.case-slot__frame--carousel img.case-slot__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.cp-media-row .case-slot img,
.case-slot__frame--carousel img.case-slot__img {
  cursor: zoom-in;
  transition: transform 400ms ease, opacity 400ms ease;
}

.cp-media-row .case-slot:hover img,
.case-slot__frame--carousel:hover img.case-slot__img {
  transform: scale(1.02);
}

/* ——— Image lightbox ——— */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  padding: 4vh 4vw;
  box-sizing: border-box;
}

.img-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.img-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(0.96);
  transition: transform 320ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.img-lightbox.is-open .img-lightbox__img {
  transform: scale(1);
}

.img-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.img-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

@media (max-width: 700px) {
  .cp-media-row {
    grid-template-columns: 1fr;
  }
}

.panel--promise .contact__huge {
  font-size: clamp(3.5rem, 14vw, 9rem);
}

.panel--promise .contact__lead {
  max-width: 40rem;
}

/* Commercial hero: equal width, natural height — no crop */
.panel--hero .hero__feed-item {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
  background: transparent;
}

.panel--hero .hero__feed-item img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
  transform: none;
}

.panel--hero .hero__feed-item:hover img {
  transform: none;
  opacity: 0.95;
}

/* ——— Works carousel ——— */
.panel--works {
  background: #050505;
  justify-content: center;
}

.panel--works__inner {
  max-width: 1375px;
  width: 100%;
}

.panel--works .works-lead {
  margin-bottom: 0.25rem;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  opacity: 0.85;
}

.works-carousel {
  position: relative;
  margin-top: 1.75rem;
  user-select: none;
  touch-action: pan-y;
}

.works-carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  cursor: grab;
}

.works-carousel.is-dragging .works-carousel__viewport {
  cursor: grabbing;
}

.works-carousel__track {
  display: flex;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-carousel.is-dragging .works-carousel__track {
  transition: none;
}

.works-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.works-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.works-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.works-carousel__nav:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.75);
}

.works-carousel__nav--prev {
  left: 10px;
}

.works-carousel__nav--next {
  right: 10px;
}

.works-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.1rem;
}

.works-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.works-carousel__dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

.works-carousel__dot:hover {
  border-color: #fff;
}

@media (max-width: 700px) {
  .works-carousel__nav {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
}
