/* ══════════════════════════════════════════════════
   WHAT WE DO — Section 2
   Split layout: text column (label + heading + 3 paragraphs)
   on the left, a media image on the right.
   Depends on: tokens.css, hero.css (bgs keyframe)
   ══════════════════════════════════════════════════ */

.site-whatwedo {
  background: var(--c1);
  padding: var(--space-8) 0;
}

.site-whatwedo__inner {
  width: min(calc(100% - 2 * var(--content-inset)), var(--container-max));
  margin-inline: auto;
}

/* ── SPLIT LAYOUT ─────────────────────────────────── */

.site-whatwedo__split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  column-gap: var(--space-8);
  align-items: start;
}

/* .site-whatwedo__head is its own grid item (row 1) so the heading gets
   clear space beside it; .site-whatwedo__text groups body + CTA into a
   single item (row 2) so the CTA's position only ever depends on the body
   text above it, never on the media column's height. */
.site-whatwedo__head {
  grid-column: 1;
}

.site-whatwedo__text {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ── MEDIA ────────────────────────────────────────── */
/* grid-row: 2 lines its top up with .site-whatwedo__text (row 2) rather
   than the heading (row 1), so the heading gets clear space beside it. */

.site-whatwedo__media {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.site-whatwedo__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── LABEL + HEADING ─────────────────────────────── */

.site-whatwedo__head {
  max-width: 64rem;
  margin-bottom: var(--space-6);
}

.site-whatwedo__label {
  display: block;
  font-family: var(--fm);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0 0 var(--space-3);
}

.site-whatwedo__heading {
  font-family: var(--fd);
  font-size: clamp(3.6rem, 5vw, 6.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 0.08em;
  background: var(--gr);
  background-size: 200% 200%;
  animation: bgs 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── BODY PARAGRAPHS — stacked, sits in the narrower text column ── */

.site-whatwedo__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-whatwedo__body p {
  font-family: var(--fm);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--t2);
  margin: 0;
}

/* Highlight the key phrase in first paragraph */
.site-whatwedo__body p strong {
  color: var(--txt);
  font-weight: 600;
}

/* ── CTA ─────────────────────────────────────────── */

.site-whatwedo__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--fm);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt);
  text-decoration: none;
  padding: clamp(1.1rem, 1.3vw, 1.4rem) clamp(2.2rem, 2.6vw, 3.2rem);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-whatwedo__cta:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.site-whatwedo__cta svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.2s ease;
}

.site-whatwedo__cta:hover svg {
  transform: translateX(4px);
}

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

@media (max-width: 900px) {
  .site-whatwedo__split {
    grid-template-columns: 1fr;
  }

  .site-whatwedo__text {
    grid-row: auto;
  }

  .site-whatwedo__media {
    grid-column: 1;
    grid-row: auto;
    order: -1; /* image above text once stacked */
  }
}

@media (max-width: 600px) {
  .site-whatwedo {
    padding: var(--space-7) 0;
  }
}

/* ── REDUCED MOTION ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .site-whatwedo__heading { animation: none; }
  .site-whatwedo__cta { transition: none; }
}
