/* ==========================================================================
   Hero — one photograph, one very large headline, nothing else competing.
   The page is RTL-only, so gradient directions are written physically.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  /* min() rather than a separate max-height: a bare min-height would win the
     conflict and let the hero run away on very tall viewports. */
  min-height: min(100svh, 940px);
  padding-block: 8rem clamp(2.5rem, 1rem + 4vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink-950);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Clear at the top so the photograph reads, heavy at the bottom where the
   headline sits; a light overall wash keeps the nav legible. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(4, 10, 19, 0.6) 0%,
      rgba(4, 10, 19, 0.22) 15%,
      rgba(4, 10, 19, 0.74) 44%,
      rgba(4, 10, 19, 0.9) 68%,
      rgba(4, 10, 19, 0.97) 100%
    );
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 0.8rem + 1.4vw, 2rem);
  color: var(--ink-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent);
}

/* ---- Headline -------------------------------------------------------------
   Weight, not colour, separates the two halves of the client's H1. */

.hero__title {
  max-width: 18ch;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
  color: var(--ink-fg);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: var(--lh-hero);
}

.hero__title-line { display: block; }
.hero__title em { font-style: normal; font-weight: 700; }

.hero__title-sub {
  display: block;
  margin-top: 0.38em;
  font-family: var(--font-text);
  font-size: 0.235em;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-fg-soft);
}

/* ---- Foot: description opposite the actions -------------------------------- */

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 0.8rem + 2.6vw, 4rem);
  padding-top: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  border-top: 1px solid rgba(247, 245, 241, 0.3);
}

.hero__lead {
  max-width: 46ch;
  color: var(--ink-fg-soft);
  font-size: var(--fs-body);
  line-height: 1.9;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Credit ---------------------------------------------------------------- */

.hero__credit {
  position: absolute;
  inset-block-start: 9.5rem;
  inset-inline-end: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(247, 245, 241, 0.55);
  font-size: var(--fs-xs);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero__credit::before {
  content: "";
  width: 1px;
  height: 2.5rem;
  background-color: rgba(247, 245, 241, 0.3);
}

/* ==========================================================================
   Trust strip — the light chapter opens on the client's real partner logos,
   in their own colours. This is the marquee the brief asks for; the partner
   wall further down is the static counterpart.
   ========================================================================== */

.trust-strip {
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  border-bottom: 1px solid var(--rule-on-bone-soft);
  overflow: hidden;
}

.trust-strip__label {
  margin-bottom: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  color: var(--bone-fg-dim);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
}

.marquee {
  display: flex;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
  padding-inline: clamp(1.25rem, 1.75vw, 2.5rem);
  animation: marquee 58s linear infinite;
}

.marquee:hover .marquee__group { animation-play-state: paused; }

.marquee img {
  flex: none;
  width: clamp(6.5rem, 5rem + 5vw, 9.5rem);
  height: clamp(2.4rem, 2rem + 1.4vw, 3.2rem);
  object-fit: contain;
  opacity: 0.9;
}

/* Only one group means main.js never cloned it; hold still and let the strip
   be dragged instead of scrolling off into an empty band. */
.marquee__group:only-child { animation: none; }
.marquee:has(.marquee__group:only-child) { overflow-x: auto; scrollbar-width: none; }
