/* Attitude banner — Cleo "highlight-module" rounded inset video banner clone.
   Full-width section, rounded media box inset from the edges, looping muted
   autoplay video (object-fit: cover) under a top-left white text overlay with a
   soft top scrim. Static <link> in layout.tsx (not piped through Lightning CSS)
   so the radius shorthand, object-fit, and gradient scrim survive verbatim. */

.attitude-banner {
  position: relative;
  background: #fff;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 36px);
}

.attitude-banner__media {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  max-height: min(82vh, 760px);
  border-radius: clamp(24px, 3vw, 40px);
  overflow: clip;
  background: #ac9b98; /* warm fallback before the video paints (no white flash) */
  isolation: isolate;
}

.attitude-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* hairline overscan to hide any cover/anti-alias fringe at the rounded edge */
  transform: scale(1.01);
  transform-origin: center;
}

/* Scrim — a top band PLUS a top-left corner-weighted wash that covers the whole
   text column (Cleo keeps white text legible with a corner scrim, not a thin top
   band). Both fade out so the rest of the video stays untouched. */
.attitude-banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 90% at 0% 0%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 35%,
      rgba(0, 0, 0, 0) 70%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.12) 22%,
      rgba(0, 0, 0, 0) 42%
    );
}

/* Text overlay — top-left (Cleo inset ~64px) */
.attitude-banner__content {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 64px);
  max-width: min(760px, 88%);
  text-align: left;
  pointer-events: none;
}

.attitude-banner__heading {
  margin: 0;
  font-family: var(--font-sf), -apple-system, system-ui, Inter, "Segoe UI", sans-serif;
  font-size: clamp(2.594rem, 1.6rem + 2.65vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.attitude-banner__subline {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-sf), -apple-system, system-ui, Inter, "Segoe UI", sans-serif;
  font-size: clamp(1.266rem, 1.07rem + 0.83vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .attitude-banner__media {
    aspect-ratio: 4 / 3;
    min-height: 380px;
    max-height: none;
  }
  .attitude-banner__content {
    max-width: 100%;
    gap: 12px;
  }
  .attitude-banner__heading {
    font-size: 2rem;
    line-height: 1.08;
  }
  .attitude-banner__subline {
    font-size: 1rem;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .attitude-banner__video {
    transform: none;
  }
}
