/* TransversePay case study - Acreflow-style minimal showcase */

body.case-study--transverse {
  --tp-purple: #6d28d9;
  --tp-purple-deep: #5b21b6;
  --tp-purple-soft: rgba(109, 40, 217, 0.12);
  --tp-blue: #2563eb;
  --tp-cream: #faf9ff;
  --tp-ink: #1e1035;
  --tp-muted: #6b7280;
}

body.case-study--transverse {
  background: #fff;
}

body.case-study--transverse .case-hero__tag {
  background: var(--tp-purple-soft);
  color: var(--tp-purple-deep);
}

/* ── Sharp image rendering ── */
body.case-study--transverse img {
  image-rendering: auto;
}

/* ── Introduction ── */
.tp-intro {
  background: var(--tp-cream);
  padding: clamp(72px, 11vw, 120px) var(--page-padding);
}

.tp-intro__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.tp-intro__label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tp-purple);
  margin: 0 0 20px;
}

.tp-intro__title {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--tp-ink);
  margin: 0 0 20px;
}

.tp-intro__text {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
  color: var(--tp-muted);
  margin: 0 auto;
  max-width: 58ch;
}

/* ── Full landing page ── */
.tp-fullscreen {
  padding: clamp(48px, 8vw, 88px) var(--page-padding);
  background: #fff;
}

.tp-fullscreen__frame {
  margin: 0;
  width: 100%;
  max-width: min(5760px, 100%);
  margin-inline: auto;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(109, 40, 217, 0.08),
    0 32px 96px rgba(91, 33, 182, 0.14);
}

.tp-fullscreen__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ── MacBook mockup ── */
.tp-device {
  padding: clamp(80px, 12vw, 140px) var(--page-padding);
  background: linear-gradient(180deg, var(--tp-cream) 0%, #fff 100%);
}

.tp-device__inner {
  max-width: min(1040px, 100%);
  margin: 0 auto;
}

.tp-macbook {
  position: relative;
  filter: drop-shadow(0 40px 80px rgba(30, 16, 53, 0.18));
}

.tp-macbook__lid {
  background: #2b2b2e;
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 0;
}

.tp-macbook__camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1c;
  margin: 0 auto 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tp-macbook__display {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #0f0f10;
  aspect-ratio: 16 / 10;
}

.tp-macbook__display img,
.tp-macbook__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.tp-macbook__chin {
  height: 16px;
  background: linear-gradient(180deg, #2b2b2e 0%, #1f1f22 100%);
  border-radius: 0 0 14px 14px;
}

.tp-macbook__base {
  width: 108%;
  height: 14px;
  margin-left: -4%;
  margin-top: -1px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #d4d4d8 0%, #a1a1aa 45%, #71717a 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tp-macbook__base::after {
  content: "";
  display: block;
  width: 18%;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.35);
}

/* ── Prototype video ── */
.tp-prototype {
  background: var(--tp-cream);
}

.tp-prototype .tp-prototype__player.video-player--hero {
  max-width: min(1200px, 100%);
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  margin: clamp(32px, 5vw, 48px) auto 0;
  box-shadow:
    0 0 0 1px rgba(109, 40, 217, 0.12),
    0 24px 80px rgba(91, 33, 182, 0.18);
}

.tp-prototype .tp-prototype__player video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #0f0820;
}

body.case-study--transverse .video-overlay-btn {
  background: rgba(109, 40, 217, 0.92);
}

body.case-study--transverse .video-overlay-btn:hover {
  background: var(--tp-purple-deep);
}

/* ── Thank you carousel ── */
body.case-study--transverse .jg-more-work {
  background: linear-gradient(180deg, #1a1035 0%, #0f0820 100%);
}

body.case-study--transverse .project-slide__tag--fintech {
  color: var(--tp-purple);
}

@media (max-width: 900px) {
  .tp-intro__inner {
    text-align: left;
  }

  .tp-macbook {
    filter: drop-shadow(0 24px 48px rgba(30, 16, 53, 0.14));
  }
}
