/* =============================================
   WHOOP CAMPAIGN PAGE
   ============================================= */

/* --- Hero --- */
.cp-hero {
  margin-top: var(--nav-h);
  position: relative;
  width: 100%;
  height: 70svh;
  overflow: hidden;
}

.cp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.cp-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cp-hero__label {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.cp-hero__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  padding: 6px 16px;
  backdrop-filter: blur(4px);
}

/* --- Intro --- */
.cp-intro {
  padding-block: clamp(32px, 4vw, 60px);
  border-bottom: 1px solid var(--gray-100);
}

.cp-intro__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

/* WHOOP logo */
.whoop-logo {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  mix-blend-mode: multiply;
  image-rendering: auto;
}

.cp-intro__collab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.cp-intro__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
}

.cp-intro__blurb {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.95;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 48px;
}

.cp-intro__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  border-top: 1px solid var(--gray-100);
  padding-top: 32px;
}

.cp-intro__meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.cp-intro__meta-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

/* --- Interactive video section --- */
.cp-video-feature {
  margin-block: 8px;
}

/* --- Custom player --- */
.cp-player {
  position: relative;
  background: #000;
  line-height: 0;
  overflow: hidden;
}

.cp-player video {
  width: 100%;
  height: auto;
  display: block;
}

/* bottom controls */
.cp-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
  padding-bottom: 2px;
}

/* Non-fullscreen: show on hover or when paused */
.cp-player:hover .cp-player__controls,
.cp-player.is-paused .cp-player__controls {
  opacity: 1;
}

/* Fullscreen: hover is irrelevant — JS class only */
.cp-player.is-fullscreen .cp-player__controls {
  opacity: 0;
}
.cp-player.is-fullscreen.controls-visible .cp-player__controls,
.cp-player.is-fullscreen.is-paused .cp-player__controls {
  opacity: 1;
}

/* progress track */
.cp-player__track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: height 0.18s ease;
  margin-bottom: 0;
}

.cp-player:hover .cp-player__track {
  height: 3px;
}

.cp-player__fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: #fff;
  pointer-events: none;
}

.cp-player__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.18s ease;
  left: 0%;
}

.cp-player:hover .cp-player__thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* control bar row */
.cp-player__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 18px;
  line-height: 1;
}

.cp-player__left,
.cp-player__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-player__btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.cp-player__btn:hover {
  color: #fff;
}

/* play/pause icon toggling */
.cp-player .icon-pause,
.cp-player.is-paused .icon-play { display: block; }
.cp-player .icon-play,
.cp-player.is-paused .icon-pause { display: none; }

/* fullscreen icon toggling */
.cp-player .icon-compress,
.cp-player.is-fullscreen .icon-expand { display: none; }
.cp-player .icon-expand,
.cp-player.is-fullscreen .icon-compress { display: block; }

/* timestamp */
.cp-player__time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  user-select: none;
}

.cp-video-feature__text {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--gray-100);
}

.cp-video-feature__quote {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cp-video-feature__body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  color: var(--gray-600);
}

.cp-video-feature__sig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-align: right;
}

/* --- 3-image gallery strip --- */
.cp-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 8px;
}

.cp-trio__item {
  height: clamp(300px, 38vw, 580px);
  overflow: hidden;
}

.cp-trio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cp-trio__item:hover img {
  transform: scale(1.02);
}

/* --- Full-bleed image --- */
.cp-full-bleed {
  width: 100%;
  height: clamp(380px, 44vw, 620px);
  overflow: hidden;
  margin-bottom: 8px;
  line-height: 0;
}

.cp-full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Natural-pair: side by side at shared height, natural aspect ratios --- */
.cp-natural-pair {
  display: flex;
  height: clamp(360px, 46vw, 640px);
  overflow: hidden;
  margin-bottom: 8px;
}

.cp-natural-pair__item {
  flex: none;
  overflow: hidden;
  line-height: 0;
}

.cp-natural-pair__item img {
  height: 100%;
  width: auto;
  display: block;
}

/* --- Gallery pair (2-col) --- */
.cp-gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 8px;
}

.cp-gallery-pair__item {
  height: clamp(320px, 40vw, 560px);
  overflow: hidden;
}

.cp-gallery-pair__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cp-gallery-pair__item:hover img {
  transform: scale(1.02);
}

/* --- Detail split --- */
.cp-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-block: 8px;
}

.cp-detail__img {
  overflow: hidden;
}

.cp-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-detail__text {
  padding: clamp(48px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-detail__quote {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cp-detail__body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  color: var(--gray-600);
  max-width: 420px;
}

.cp-detail__sig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* --- Team headshots --- */
.cp-team {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  justify-content: center;
}

.cp-team__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-team__photo {
  width: 75px;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.cp-team__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cp-team__photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-team__photo-placeholder svg {
  opacity: 0.3;
}

.cp-team__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gray-600);
}

/* --- Credits --- */
.cp-credits {
  padding-block: clamp(10px, 1.22vw, 18px) clamp(64px, 8vw, 120px);
}

.cp-credits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-block: 32px 56px;
  padding-block: 32px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.cp-credits__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.cp-credits__name {
  font-size: 16px;
  font-weight: 700;
}

.cp-credits__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Fullscreen cursor fix --- */
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
:fullscreen video,
:-webkit-full-screen video,
:-moz-full-screen video,
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen {
  cursor: default !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cp-intro__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cp-detail {
    grid-template-columns: 1fr;
  }

  .cp-detail__img img {
    height: auto;
  }

  .cp-video-feature__text {
    grid-template-columns: 1fr;
  }

  .cp-video-feature__sig {
    text-align: left;
  }

  .cp-credits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cp-credits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cp-intro__meta {
    grid-template-columns: 1fr 1fr;
  }

  /* Single column so images aren't overcropped on narrow screens */
  .cp-trio {
    grid-template-columns: 1fr;
  }

  .cp-trio__item {
    height: clamp(240px, 65vw, 340px);
  }

  .cp-trio__item:last-child {
    display: block;
  }
}
