/* ---------------------------------------------------
   Home
--------------------------------------------------- */

/* hero — full-screen showreel video with a single centred tagline */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* subtle scrim so the tagline stays readable over any footage */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.28);
  z-index: 1;
  pointer-events: none;
}

/* fades the bottom of the footage into the page background so the hero
   melts into the section that follows instead of cutting off hard */
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 28vh, 320px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0) 0%,
    rgba(5, 5, 5, 0.55) 55%,
    var(--bg) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-tagline {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-tagline.is-swapping {
  opacity: 0;
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline {
    transition: none;
  }
}

/* clients — logo wall that blurs/darkens on hover to reveal a label.
   Two rows of four, kept as a centred cluster like the reference. */

.clients {
  position: relative;
  display: block;
  padding: 100px 0;
  overflow: hidden;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 40px 32px;
  max-width: 900px;
  margin: 0 auto;
  transition: filter 0.45s var(--ease);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--fg);
}

.client-logo svg {
  width: 100%;
  height: auto;
  max-height: 30px;
}

/* dim layer — sits above the logos, below the label, so the whole
   cluster visibly darkens (not just the blur) on hover */
.clients::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  z-index: 1;
}

.clients-overlay-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

/* only the words themselves are hoverable, so the colour shift tracks
   the cursor being over the label rather than anywhere in the section */
.clients-overlay-label > span {
  pointer-events: auto;
  color: inherit;
  transition: color 0.3s var(--ease);
}

.clients-overlay-label > span:hover {
  color: var(--fg-muted);
}

/* the hover zone is the logo cluster itself (logos and the gaps between
   them), not the full-width section — plus the label's own text, so
   moving onto it doesn't break the hover and make it flicker away. */
.clients:has(.clients-grid:hover) .clients-grid,
.clients:has(.clients-overlay-label:hover) .clients-grid,
.clients:focus-visible .clients-grid {
  filter: blur(6px);
}

.clients:has(.clients-grid:hover)::after,
.clients:has(.clients-overlay-label:hover)::after,
.clients:focus-visible::after {
  opacity: 1;
}

/* delayed on the way in, immediate on the way out */
.clients:has(.clients-grid:hover) .clients-overlay-label,
.clients:has(.clients-overlay-label:hover) .clients-overlay-label,
.clients:focus-visible .clients-overlay-label {
  opacity: 1;
  transition: opacity 0.45s var(--ease) 0.35s;
}

/* stay four-across until the logos genuinely stop fitting */
@media (max-width: 700px) {
  .clients {
    padding: 72px 0;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    max-width: 420px;
  }
}

/* showcase — the five main projects as full-bleed 16:9 stills */

.showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
}

.showcase-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.showcase-media {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease);
}

.showcase-media.tone-1 { background: linear-gradient(150deg, #baff29, #4f8a10); }
.showcase-media.tone-2 { background: linear-gradient(150deg, #ff8a3d, #7a1f8f); }
.showcase-media.tone-3 { background: linear-gradient(150deg, #3dd6ff, #1a2a8f); }
.showcase-media.tone-4 { background: linear-gradient(150deg, #ff3d8a, #2a0a3a); }
.showcase-media.tone-6 { background: linear-gradient(150deg, #f5d33d, #8f2a1a); }

.showcase-item:hover .showcase-media {
  transform: scale(1);
}

@media (max-width: 700px) {
  .showcase {
    gap: 24px;
    padding: 24px;
  }
}

/* welcome — full-bleed still with the copy sitting in the fade at the
   bottom, so the image melts into the section that follows */

.welcome {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78vh, 860px);
  overflow: hidden;
}

.welcome-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0) 30%,
    rgba(5, 5, 5, 0.7) 68%,
    var(--bg) 100%
  );
}

.welcome-content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
}

.welcome-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.welcome-text {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  .welcome-content {
    padding-bottom: 48px;
  }
}

/* cta */

.cta {
  padding: 160px 0;
  text-align: center;
}

/* homepage only — the sections here flow straight into one another,
   so no separator line above the footer either */
.footer {
  border-top: 0;
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 72px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cta .btn {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .hero-marquee {
    display: none;
  }
}
