/* ==========================================================================
   Zephyr hero — ported from the template's Hero.css / index.css tokens.
   Class names are prefixed `zh` so they cannot collide with the site's own
   .hero__* rules. Everything lives in the left ~42% of the frame (proof row,
   serif headline, lede, one outlined CTA) with a four-card step rail along
   the bottom; the render occupies the right side on its own.
   ========================================================================== */

.zh {
  /* Zephyr tokens, scoped to the hero so the rest of the site is untouched */
  --zh-sage: #9da79a;
  --zh-sage-deep: #6d7a6e;
  --zh-sage-floor: #adb0a2;
  --zh-slate: #262b26;
  --zh-text: #ffffff;
  --zh-text-soft: rgba(255, 255, 255, 0.92);
  --zh-line: rgba(255, 255, 255, 0.42);
  --zh-line-soft: rgba(255, 255, 255, 0.30);
  --zh-gutter: clamp(20px, 8vw, 116px);
  --zh-ease: cubic-bezier(0.22, 0.68, 0.32, 1);

  /* where the left scrim releases; pushed right on narrow viewports */
  --scrim-a: 34%;
  --scrim-b: 48%;
  --scrim-c: 60%;
  --scrim-d: 72%;

  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--zh-text);
  -webkit-font-smoothing: antialiased;
  /* sampled from hero.mp4 so there is no flash before the video paints */
  background: linear-gradient(180deg, #8f9a8c 0%, var(--zh-sage) 46%, var(--zh-sage-floor) 100%);
}

.zh *,
.zh *::before,
.zh *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.zh :focus-visible {
  outline: 2px solid var(--zh-slate);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Media -------------------------------------------------------------------- */

.zh__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.zh__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transition: opacity 1.1s var(--zh-ease);
}

.zh__video.is-ready {
  opacity: 1;
}

/* Deepens the left column and lower-left corner in sage (not black) so the
   white type reads over the pale footage. */
.zh__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(30, 40, 32, 0.42) 0%,
      rgba(30, 40, 32, 0.37) var(--scrim-a),
      rgba(30, 40, 32, 0.21) var(--scrim-b),
      rgba(30, 40, 32, 0.06) var(--scrim-c),
      rgba(30, 40, 32, 0) var(--scrim-d)
    ),
    radial-gradient(
      66% 27% at 20% 93%,
      rgba(30, 40, 32, 0.29) 0%,
      rgba(30, 40, 32, 0.13) 56%,
      rgba(30, 40, 32, 0) 80%
    ),
    linear-gradient(
      180deg,
      rgba(30, 40, 32, 0.30) 0%,
      rgba(30, 40, 32, 0.12) 14%,
      rgba(30, 40, 32, 0) 26%
    );
}

/* Frame -------------------------------------------------------------------- */

.zh__frame {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  /* the site's side rail sits over the left edge, so clear it */
  padding: clamp(96px, 13.5vw, 194px) var(--zh-gutter) clamp(20px, 3vw, 44px)
    calc(var(--zh-gutter) + var(--rail-space, 0px));
}

.zh__copy {
  max-width: min(700px, 52vw);
}

/* Entrance — the template's framer-motion `rise` (opacity 0, y 18 → rest,
   0.85s, staggered delays) as a CSS keyframe. */
.zh-rise {
  animation: zh-rise 0.85s var(--zh-ease) var(--d, 0s) both;
}

@keyframes zh-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Proof row ----------------------------------------------------------------- */

.zh-proof {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1vw, 14px);
}

.zh-proof__faces {
  display: flex;
  flex: none;
}

.zh-proof__face {
  display: grid;
  place-items: center;
  width: clamp(34px, 3.33vw, 48px);
  height: clamp(34px, 3.33vw, 48px);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.zh-proof__face + .zh-proof__face {
  margin-left: clamp(-17px, -1.17vw, -11px);
}

.zh-proof__text {
  font-size: clamp(12px, 1.21vw, 17px);
  color: var(--zh-text-soft);
}

/* Headline ------------------------------------------------------------------ */

.zh__title {
  margin-top: clamp(14px, 1.8vw, 26px);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6.1vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--zh-text);
}

.zh__line {
  display: block;
}

.zh__title em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

.zh__lede {
  margin-top: clamp(12px, 1.6vw, 24px);
  max-width: clamp(280px, 35vw, 504px);
  font-size: clamp(13px, 1.17vw, 17px);
  line-height: 1.6;
  color: var(--zh-text-soft);
}

/* CTA ----------------------------------------------------------------------- */

.zh__cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 2.7vw, 40px);
  padding-block: clamp(5px, 0.56vw, 8px);
  padding-left: clamp(8px, 0.92vw, 13px);
  padding-right: clamp(17px, 1.6vw, 23px);
  border: 1px solid var(--zh-line);
  border-radius: 999px;
  color: var(--zh-text);
  text-decoration: none;
  transition: border-color 0.3s var(--zh-ease), background 0.3s var(--zh-ease);
}

.zh__cta:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.zh__cta-tile {
  display: grid;
  place-items: center;
  width: clamp(34px, 3.25vw, 47px);
  height: clamp(34px, 3.25vw, 47px);
  border-radius: 999px;
  background: var(--zh-slate);
  color: #fff;
  flex: none;
}

.zh__cta-label {
  margin-left: clamp(12px, 1.25vw, 18px);
  font-size: clamp(11px, 1.08vw, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Step rail ------------------------------------------------------------------ */

.zh-steps {
  margin-top: auto;
  padding-top: clamp(40px, 6vw, 90px);
  display: flex;
  gap: clamp(7px, 0.9vw, 13px);
}

.zh-step {
  display: flex;
  flex-direction: column;
  flex: none;
  width: clamp(72px, 7.5vw, 108px);
  color: inherit;
  text-decoration: none;
}

.zh-step__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: clamp(64px, 6.5vw, 94px);
  padding: clamp(8px, 0.95vw, 14px);
  border: 1px solid var(--zh-line-soft);
  border-radius: clamp(5px, 0.5vw, 7px);
  transition: border-color 0.3s var(--zh-ease), background 0.3s var(--zh-ease);
}

.zh-step:hover .zh-step__card {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.zh-step__card svg {
  width: clamp(18px, 1.8vw, 26px);
  height: clamp(18px, 1.8vw, 26px);
  color: var(--zh-text-soft);
}

.zh-step__label {
  font-size: clamp(9px, 0.9vw, 13px);
  color: var(--zh-text);
  white-space: nowrap;
}

.zh-step__dash {
  width: clamp(9px, 1vw, 14px);
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin-top: clamp(7px, 0.9vw, 13px);
}

.zh-step__num {
  margin-top: clamp(5px, 0.6vw, 9px);
  font-size: clamp(9px, 0.9vw, 13px);
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive ----------------------------------------------------------------- */

@media (max-width: 1000px) {
  .zh {
    --scrim-a: 46%;
    --scrim-b: 70%;
    --scrim-c: 88%;
    --scrim-d: 100%;
  }

  .zh__copy {
    max-width: 100%;
  }

  .zh__lede {
    max-width: 42ch;
  }
}

@media (max-width: 620px) {
  .zh-step__label {
    white-space: normal;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zh-rise {
    animation: none;
  }

  .zh__video,
  .zh__cta,
  .zh-step__card {
    transition: none;
  }
}
