/* ============================================
   Grow with the Flow — Case Study Page
   ============================================ */

/* ── Page background override (white, not cream) ── */
.page-gwtf {
  background-color: #ffffff;
}

/* Also override site-header bg since color-wash isn't loaded here */
.page-gwtf .site-header {
  background-color: #ffffff;
}

/* ── Page-specific video aspect ratio ──────── */
/* (shared .cs-video rules live in case-study.css) */
.page-gwtf .cs-video {
  aspect-ratio: 2938 / 1590;
}

/* ── §1 HERO ───────────────────────────────── */

.gwtf-hero {
  padding: 20px 64px 40px;
  height: 708px;
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
}

.gwtf-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 47px;
  padding-bottom: 22px;
}

.gwtf-hero__media {
  width: 640px;
  height: 405px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.gwtf-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gwtf-hero__titles {
  text-align: center;
  color: #2d4e95;
}

.gwtf-hero__title {
  font-family: 'Jersey 15', monospace;
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -1.92px;
  line-height: 1.2;
  margin: 0;
}

.gwtf-hero__subtitle {
  font-family: var(--font-regular);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin: 0;
}

/* ── §3 GAME SCREENSHOTS ───────────────────── */

.gwtf-image-pair {
  padding: 40px 64px;
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: flex-start;
  background-color: #ffffff;
}

.gwtf-image-pair__item {
  margin: 0;
  flex-shrink: 0;
}

.gwtf-image-pair__item img {
  display: block;
  width: 443px;
  height: 288px;
  border-radius: 25px;
  object-fit: cover;
}

/* ── §5 STYLE GUIDE + MOOD BOARD + ANIMATIONS ── */

.gwtf-visual-grid {
  padding: 40px 64px;
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: flex-start;
  background-color: #ffffff;
}

.gwtf-visual-grid__left {
  margin: 0;
  flex-shrink: 0;
}

.gwtf-visual-grid__left img {
  display: block;
  width: 391px;
  height: 677px;
  border-radius: 19px;
  border: 1px solid #e7e7e7;
  object-fit: cover;
}

.gwtf-visual-grid__right {
  flex-shrink: 0;
  width: 545px;
  display: flex;
  flex-direction: column;
  gap: 54px; /* 410px animation offset − 356px mood board height */
}

.gwtf-mood-board {
  margin: 0;
}

.gwtf-mood-board img {
  display: block;
  width: 545px;
  height: 356px;
  border-radius: 16px;
  object-fit: cover;
}

.gwtf-animations {
  display: flex;
  gap: 32px;
}

.gwtf-animation {
  width: 256px;
  height: 256px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.gwtf-animation img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .gwtf-animation img {
    /* Can't pause GIFs via CSS; hide in favour of the still first frame */
    animation-play-state: paused;
  }
}

/* ── §8 DESIGN DECISIONS / §9 VIDEOS / §10 OUTCOME ── */
/* Shared styles live in case-study.css */

/* ── FOOTER — plain variant ────────────────── */

.site-footer--plain {
  background-color: #ffffff;
  /* height and padding already set by shared .site-footer */
}

/* ── RESPONSIVE ────────────────────────────── */

/* Tablet: ≤1100px — tighter padding, keep two-col image layouts */
@media (max-width: 1100px) {
  .gwtf-hero {
    height: auto;
    min-height: 500px;
  }

  .gwtf-hero__inner {
    padding-top: 32px;
    padding-bottom: 16px;
    gap: 32px;
  }

  .gwtf-hero__media {
    width: clamp(320px, 60vw, 640px);
    height: auto;
    aspect-ratio: 640 / 405;
  }

  .gwtf-hero__title {
    font-size: clamp(48px, 7vw, 96px);
  }

  .gwtf-hero__subtitle {
    font-size: clamp(20px, 3vw, 36px);
  }

  .gwtf-image-pair,
  .gwtf-visual-grid {
    padding-left: 32px;
    padding-right: 32px;
  }

  .gwtf-image-pair {
    gap: 40px;
  }

  .gwtf-image-pair__item img {
    width: clamp(200px, 44%, 443px);
    height: auto;
  }

  .gwtf-visual-grid {
    gap: 40px;
  }

  .gwtf-visual-grid__left img {
    width: clamp(240px, 36%, 391px);
    height: auto;
  }

  .gwtf-visual-grid__right {
    width: clamp(260px, 54%, 545px);
  }

  .gwtf-mood-board img {
    width: 100%;
    height: auto;
  }

  .gwtf-animations {
    gap: 16px;
  }

  .gwtf-animation {
    width: clamp(100px, 48%, 256px);
    height: auto;
    aspect-ratio: 1;
  }

}

/* Mobile: ≤767px — single column */
@media (max-width: 767px) {
  .gwtf-hero {
    padding: 20px 24px 32px;
    height: auto;
  }

  .gwtf-hero__inner {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .gwtf-hero__media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .gwtf-hero__title {
    font-size: clamp(36px, 10vw, 72px);
  }

  .gwtf-hero__subtitle {
    font-size: clamp(18px, 4.5vw, 28px);
  }

  .gwtf-image-pair {
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .gwtf-image-pair__item img {
    width: 100%;
    height: auto;
  }

  .gwtf-visual-grid {
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 32px;
  }

  .gwtf-visual-grid__left img {
    width: 100%;
    max-width: 391px;
    height: auto;
  }

  .gwtf-visual-grid__right {
    width: 100%;
    max-width: 545px;
    gap: 24px;
  }

  .gwtf-mood-board img {
    width: 100%;
    height: auto;
  }

  .gwtf-animation {
    width: clamp(120px, 45vw, 200px);
    height: auto;
    aspect-ratio: 1;
  }

}
