/* =========================================================
   HERO — START
   The architectural photo is now a full-bleed BACKGROUND that
   sits behind the entire section — header excluded — with all
   text and controls layered on top. This is true at every
   breakpoint: on mobile the photo stays behind the content as
   a background rather than dropping to its own stacked block,
   so the whole hero can fit in one screen with no scrolling.
   ========================================================= */

.hero {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  /* The first screen is exactly one viewport tall INCLUDING the
     sticky header. The real header height is measured in JS and
     exposed as --site-header-height, so this stays correct across
     phones, tablets and desktop without a hardcoded navbar height. */
  flex: 0 0 calc(100dvh - var(--site-header-height, 0px));
  height: calc(100dvh - var(--site-header-height, 0px));
  min-height: 0;
  display: flex;
  align-items: center;
  padding-block: var(--space-2xl);
}

/* Decorative background video — purely visual and kept behind
   the hero content. It loops silently for a continuous background. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0.10;
  z-index: 0;
}

/* Invisible by default (desktop keeps text over the clean sky
   area naturally); responsive.css raises its opacity on smaller
   screens where text can land over darker parts of the photo. */


/* Small background-video music control. The video remains decorative;
   this button only controls its audio track. */
.hero-video-audio {
  position: absolute;
  right: clamp(18px, 2.5vw, 36px);
  bottom: clamp(18px, 2.5vw, 36px);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(56, 56, 56, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: #383838;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.hero-video-audio:hover {
  transform: scale(1.06);
  background: #ffffff;
  color: #931CF5;
}

.hero-video-audio:focus-visible {
  outline: 2px solid #931CF5;
  outline-offset: 3px;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Keep the hero visually merged with the site's pure-white sections
     while retaining the background video's light decorative detail. */
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* Text content sits inside the normal .container, above the
   background image, and shares the header's left alignment. */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: clamp(480px, 42vw, 680px);
}


/* Hero heading transition:
   Initial state: the second line starts directly below the N in
   INNOVATION. After the hero settles, it glides smoothly to the
   right so the We sits below the V, matching the intended editorial
   composition. */
.hero-heading__line2 {
  display: inline-block;
  transform: translateX(clamp(44px, 4vw, 62px));
  will-change: transform;
  animation: hero-heading-slide 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

@keyframes hero-heading-slide {
  0% {
    transform: translateX(clamp(44px, 4vw, 62px));
  }
  100% {
    transform: translateX(clamp(155px, 13vw, 205px));
  }
}

/* Keep hero headline text the same near-black brand text on every device. */
.hero-heading,
.hero-heading__w {
  color: var(--color-primary-text);
  -webkit-text-stroke-color: var(--color-primary-text);
  filter: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
}

.hero-heading .accent {
  color: var(--color-primary-purple);
  -webkit-text-stroke-color: var(--color-primary-purple);
}

@media (max-width: 767px) {
  .hero-heading__line2 {
    transform: translateX(clamp(26px, 8vw, 44px));
    animation-duration: 1.9s;
    animation-delay: 0.8s;
  }

  @keyframes hero-heading-slide {
    0% {
      transform: translateX(clamp(26px, 8vw, 44px));
    }
    100% {
      transform: translateX(clamp(58px, 14vw, 86px));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading__line2 {
    animation: none;
    transform: translateX(clamp(155px, 13vw, 205px));
  }

  .hero-heading__w {
    animation: none;
    transform: rotate(0deg) scale(1);
  }

  .hero-heading__period {
    animation: none;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Rotate only the W clockwise toward the E/right side.
   Typography is explicitly locked to the same recipe as .hero-heading
   so the rotated glyph does not inherit a different weight, stroke,
   family, spacing, or line-height. A small visual scale keeps the rotated
   glyph optically equal to the unrotated letters without changing its
   actual font-size. */
.hero-heading__w {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1em;
  font-weight: var(--font-extrabold);
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--color-primary-text);
  -webkit-text-stroke: 0.5px currentColor;
  transform: rotate(90deg) scale(0.88);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  vertical-align: baseline;
  margin-right: 0.015em;
  animation: hero-w-reset 0.42s cubic-bezier(0.22, 1, 0.36, 1) 2.55s forwards;
}

/* Once the second-line slide finishes, immediately return the W to its
   normal upright orientation while keeping the exact same typography. */
@keyframes hero-w-reset {
  from {
    transform: rotate(90deg) scale(0.88);
  }
  to {
    transform: rotate(0deg) scale(1);
  }
}

/* Normal full-stop that appears in sync with the W transition. */
.hero-heading__period {
  display: inline-block;
  width: auto;
  min-width: 0;
  height: auto;
  margin-left: 0.04em;
  border-radius: 0;
  background: transparent;
  color: inherit;
  vertical-align: baseline;
  position: relative;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0) scale(0.7);
  transform-origin: 50% 80%;
  will-change: transform, opacity;
  animation: hero-heading-period-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 2.55s both;
}

@keyframes hero-heading-period-in {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0) scale(0.7);
  }
  20% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
}

/* Every gap in this opening block — eyebrow → heading → paragraph
   → actions — uses the same spacing value so the vertical rhythm
   reads as consistent rather than accidental. */
.hero__content .hero-eyebrow,
.hero__content .hero-heading,
.hero__content .hero-paragraph {
  margin-bottom: var(--space-lg);
}

.hero__content .hero-paragraph {
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* CTAs are intentionally removed from the hero, but this empty spacer keeps
   the established vertical distance before the review/social-proof block. */
.hero__actions--spacer {
  min-height: 48px;
}

.hero__proof {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tracked-out label stack sitting over the top-right of the photo */
.hero__labels--top {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: 5%;
  text-align: left;
}

/* Closing line sitting lower-right, clear of the main text column
   so it never collides with the (now full-width) content above. */
.hero__labels--bottom {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 8%;
  text-align: left;
}


/* Editorial What We Do side-copy replaces the former decorative label stack. */
.hero__what-we-do {
  position: absolute;
  z-index: 2;
  top: 18%;
  right: 5.5%;
  width: min(340px, 27vw);
  max-width: 340px;
  text-align: left;
}

.hero__what-we-do-dash {
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 22px;
  background: #931CF5;
}

.hero__what-we-do h2 {
  margin: 0 0 18px;
  font-family: var(--font-primary);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.2;
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  color: var(--color-primary-text);
}

.hero__what-we-do p {
  margin: 0;
  max-width: 420px;
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  font-weight: var(--font-regular);
  color: var(--color-primary-text);
}

.hero__what-we-do-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  width: fit-content;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #383838;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--font-semibold);
  letter-spacing: 0.01em;
  transition: gap 220ms ease, color 220ms ease;
}

.hero__what-we-do-button i {
  font-size: 13px;
  color: #931CF5;
  transition: transform 220ms ease;
}

.hero__what-we-do-button:hover,
.hero__what-we-do-button:focus-visible {
  color: #931CF5;
}

.hero__what-we-do-button:hover i,
.hero__what-we-do-button:focus-visible i {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .hero__what-we-do {
    position: static;
    display: block;
    width: min(100%, 560px);
    max-width: 560px;
  }
}

/* =========================================================
   HERO — END
   ========================================================= */
