/* Final visual baseline for the three restored pages. The SVG layers are
 * generated in assets/js/backgrounds.js and sit below live page content. */
.showcase::before,
.showcase::after,
.download::before,
.download::after,
.contact::before,
.contact::after {
  display: none !important;
  content: none !important;
}

.showcase,
.download,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.flow-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #fff;
  pointer-events: none;
}

.flow-background > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.showcase-stage,
.download-wrap,
.contact-wrap {
  position: relative;
  z-index: 1;
}

/* Showcase geometry follows the old full-page composition. */
.showcase-stage {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.showcase-heading {
  position: absolute;
  top: 2.6%;
  left: 0;
  right: 0;
  z-index: 5;
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  transform: none;
  pointer-events: none;
}

.showcase-heading h2 {
  display: inline-block;
  margin: 0;
  color: #10191e;
  font-size: clamp(42px, 5.1vw, 84px);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap;
}

.showcase-heading p {
  margin: clamp(8px, 1vw, 16px) 0 0;
  color: #77858a;
  font-size: clamp(16px, 1.35vw, 25px);
  line-height: 1.35;
}

.showcase-heading-beam {
  position: absolute;
  top: 36%;
  width: clamp(110px, 12vw, 188px);
  height: 5px;
  border-radius: 999px;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 12px rgba(26, 190, 193, .28);
}

.showcase-heading-beam-left {
  left: max(4%, calc(50% - clamp(330px, 22vw, 360px)));
  background: linear-gradient(90deg, transparent, var(--red) 62%, var(--cyan));
}

.showcase-heading-beam-right {
  right: max(4%, calc(50% - clamp(330px, 22vw, 360px)));
  background: linear-gradient(90deg, var(--cyan), var(--red) 38%, transparent);
}

#caseGallery {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

.case-viewport {
  position: absolute;
  inset: 20% 16% 12%;
  overflow: visible;
  transform: translateY(24px);
  pointer-events: none;
}

[data-case-track] {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.case-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27%;
  height: 88%;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: rgba(222, 239, 239, .56);
  box-shadow: 0 22px 50px rgba(16, 54, 60, .2), inset 0 0 0 2px rgba(255,255,255,.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.84);
  pointer-events: auto !important;
}

.case-card.active {
  z-index: 4;
  width: 35%;
  height: 100%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 28px 58px rgba(16, 54, 60, .26), 0 0 0 2px rgba(245, 83, 77, .34);
}

.case-card.side-left,
.case-card.side-right {
  z-index: 3;
  opacity: .95;
  filter: saturate(.82);
}

.case-card.side-left { left: 18%; transform: translate(-50%, -50%) scale(.84); }
.case-card.side-right { left: 82%; transform: translate(-50%, -50%) scale(.84); }

.case-card-media,
.case-card-media video {
  display: block;
  width: 100%;
  height: 100%;
}

.case-card-media video { object-fit: cover; background: #edf6f5; }
.case-card.active .case-card-media video { object-fit: cover; }

.case-card-play,
.case-card-copy { pointer-events: none; }

.case-side-hit { pointer-events: auto !important; }

.case-arrow {
  position: absolute;
  top: calc(54% + 24px);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(24, 50, 60, .12);
  transform: translateY(-50%);
  pointer-events: auto !important;
}

.case-arrow:hover,
.case-arrow:focus-visible {
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
  transform: translateY(-50%);
}

.case-arrow:disabled { opacity: .42; cursor: not-allowed; }
.case-arrow::after { content: none !important; }
.case-arrow i { position: relative; display: block; width: 18px; height: 22px; margin: 0 auto; font-size: 0; }
.case-arrow i::before,
.case-arrow i::after { position: absolute; width: 13px; height: 3px; border-radius: 3px; content: ""; transform-origin: center; }
.case-arrow-prev { left: 7%; }
.case-arrow-next { right: 7%; }
.case-arrow-prev i::before { top: 6px; left: 1px; background: var(--red); transform: rotate(-45deg); }
.case-arrow-prev i::after { top: 14px; left: 1px; background: var(--cyan); transform: rotate(45deg); }
.case-arrow-next i::before { top: 6px; right: 1px; background: var(--cyan); transform: rotate(45deg); }
.case-arrow-next i::after { top: 14px; right: 1px; background: var(--red); transform: rotate(-45deg); }
.case-pagination,
.case-dot { bottom: 3%; pointer-events: auto !important; }

.case-empty {
  position: absolute;
  inset: 18% 8% 16%;
  z-index: 4;
  display: grid;
  place-content: center;
  height: auto;
  pointer-events: none;
}

/* Contact foreground is kept live; only its decorative dimensions are
 * calibrated to the old screenshot and remain responsive. */
.contact-artboard { z-index: 2; }
.contact-art { z-index: 2; }
.contact-reel { width: clamp(108px, 6.2vw, 132px); height: auto; }
.contact-play { width: clamp(120px, 6.8vw, 146px); height: auto; }
.contact-prompt { width: clamp(235px, 13.2vw, 282px); height: auto; }
.contact-reference { width: clamp(205px, 11vw, 236px); height: auto; }
.contact-cube { width: clamp(98px, 5.2vw, 120px); height: auto; }
.contact-filmstrip { width: clamp(380px, 21vw, 440px); height: auto; }

@media (max-width: 980px) {
  .case-viewport { inset: 20% 8% 12%; }
  .case-card { width: 29%; height: 88%; }
  .case-card.active { width: 37%; height: 100%; }
  .case-card.side-left { left: 18%; transform: translate(-50%, -50%) scale(.82); }
  .case-card.side-right { left: 82%; transform: translate(-50%, -50%) scale(.82); }
  .case-arrow-prev { left: 2%; }
  .case-arrow-next { right: 2%; }
  .contact-reel { left: 3%; }
  .contact-play { left: 11%; }
  .contact-prompt { left: -1%; }
  .contact-reference { left: -1%; }
  .contact-cube { right: 6%; }
  .contact-filmstrip { right: -7%; }
}

@media (max-width: 620px) {
  .showcase-heading { top: 2.8%; }
  .showcase-heading h2 { font-size: clamp(38px, 11vw, 62px); }
  .showcase-heading p { margin-top: 8px; font-size: clamp(14px, 3.8vw, 18px); }
  .showcase-heading-beam { top: 34%; width: 58px; height: 3px; }
  .showcase-heading-beam-left { left: 3%; }
  .showcase-heading-beam-right { right: 3%; }
  .case-viewport { inset: 20% 8% 12%; }
  .case-card.side-left,
  .case-card.side-right { display: none; }
  .case-card.active { top: 46%; left: 50%; width: 76%; height: 78%; transform: translate(-50%, -50%); }
  .case-arrow { top: calc(47.5% + 24px); width: 56px; height: 56px; }
  .case-arrow-prev { left: 3%; }
  .case-arrow-next { right: 3%; }
  .contact-art { display: none; }
}

@media (max-width: 980px) {
  .showcase,
  .download,
  .contact {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .showcase-heading {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    margin: 0 0 16px;
  }

  .showcase-heading h2 {
    white-space: normal;
    font-size: clamp(28px, 8vw, 40px);
  }

  .showcase-heading p {
    font-size: 15px;
  }

  .showcase-heading-beam {
    display: none;
  }

  #caseGallery {
    position: relative;
    inset: auto;
    min-height: 0;
    pointer-events: auto;
  }

  .case-viewport {
    position: relative;
    inset: auto;
    height: min(78vw, 520px);
    transform: none;
  }

  .case-card.side-left,
  .case-card.side-right {
    display: none;
  }

  .case-card,
  .case-card.active {
    top: 50%;
    left: 50%;
    width: min(72%, 280px);
    height: 100%;
    transform: translate(-50%, -50%);
  }

  .case-arrow {
    top: auto;
    bottom: 10px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .case-arrow-prev { left: 8px; }
  .case-arrow-next { right: 8px; }

  .contact-art {
    display: none;
  }
}
