/* Shared window and white feathered edge for video and still-image heroes. */
body { background: #fff; }
main { max-width: none; }
main > :not(.hero) { max-width: 1440px; margin-inline: auto; }

.hero,
.hero.inner-hero {
  --copy-inset: clamp(28px, 4vw, 64px);
  --copy-width: clamp(300px, 34vw, 420px);
  --feather-width: clamp(110px, 14vw, 220px);
  display: block;
  height: 720px;
  min-height: 720px;
  padding: 0;
  background: #fff;
}

.hero .hero-copy,
.hero.inner-hero .hero-copy {
  position: relative;
  inset: auto;
  width: calc(var(--copy-inset) + var(--copy-width));
  height: auto;
  min-height: 0;
  padding: 58px 0 44px var(--copy-inset);
  background: transparent;
  clip-path: none;
  text-align: left;
}

.hero .hero-copy > *,
.hero.inner-hero .hero-copy > * {
  max-width: var(--copy-width);
  margin-left: 0;
  margin-right: 0;
}

.hero .hero-copy h1,
.hero.inner-hero .hero-copy h1 {
  width: 100%;
  max-width: var(--copy-width);
  font-size: clamp(38px, 3.7vw, 54px);
  line-height: 1.06;
  white-space: normal;
  text-wrap: balance;
}

.hero .hero-kicker {
  white-space: normal;
  line-height: 1.65;
  letter-spacing: .12em;
}

.hero .hero-copy .button { display: inline-flex; width: auto; }
.hero .hero-copy .contact-lines { justify-items: start; }
.hero .contact-lines a { overflow-wrap: anywhere; }
.hero .contact-lines svg { flex-shrink: 0; }

.hero .hero-photo,
.hero.inner-hero .hero-photo {
  position: absolute;
  inset: 0 0 0 calc(var(--copy-inset) + var(--copy-width) + 12px);
  width: auto;
  height: 100%;
  clip-path: none;
  background-size: cover;
  background-position: center;
}

.hero .hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body .hero .hero-photo::after {
  inset: -1px auto -1px -1px;
  width: var(--feather-width);
  height: auto;
  /* The slanted, feathered white boundary stays outside the text column. */
  background: url("assets/hero-mask.svg") center / 100% 100% no-repeat;
  clip-path: none;
  filter: none;
}

@media (min-width: 1101px) {
  .site-header,
  .site-header.site-header-home,
  .inner-page .site-header { left: 0; height: 720px; }
  .hero,
  .hero.inner-hero { margin-left: var(--rail); }
}

@media (min-width: 1441px) {
  .hero,
  .hero.inner-hero {
    --copy-inset: clamp(64px, calc((100vw - 1440px) / 2 + 64px), 400px);
  }
}

@media (min-width: 2000px) {
  .hero,
  .hero.inner-hero,
  .site-header,
  .site-header.site-header-home,
  .inner-page .site-header { height: 760px; min-height: 760px; }
  .hero .hero-copy,
  .hero.inner-hero .hero-copy { padding-top: 78px; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .hero,
  .hero.inner-hero { margin-left: 0; }
  .hero .hero-copy,
  .hero.inner-hero .hero-copy { padding-top: 48px; }
  .hero .hero-copy .eyebrow { letter-spacing: .12em; }
  .hero .hero-stamp { display: none; }
}

@media (max-width: 599px) {
  .hero,
  .hero.inner-hero {
    --copy-width: 340px;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    height: auto;
    min-height: 0;
  }
  .hero .hero-copy,
  .hero.inner-hero .hero-copy {
    order: 1;
    width: min(100%, 388px);
    margin-inline: auto;
    height: auto;
    min-height: 0;
    padding: 40px 24px 28px;
  }
  .hero .hero-copy > *,
  .hero.inner-hero .hero-copy > * { margin-inline: auto; }
  .hero.inner-hero .hero-copy { text-align: center; }
  .hero.inner-hero .hero-copy .button { display: flex; width: max-content; }
  .hero.inner-hero .hero-copy .contact-lines { justify-items: center; }
  .hero .hero-copy h1,
  .hero.inner-hero .hero-copy h1 { font-size: clamp(34px, 9.5vw, 43px); }
  .hero .hero-kicker { letter-spacing: .06em; }
  .hero .hero-copy .button { max-width: 100%; }
  .hero .hero-photo,
  .hero.inner-hero .hero-photo {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(300px, 80vw, 410px);
  }
  body .hero .hero-photo::after {
    inset: -1px 0 auto;
    width: 100%;
    height: 100px;
    background: linear-gradient(#fff 0%, #fffffff2 20%, #ffffff9c 50%, #ffffff00 100%);
  }
  .hero .hero-stamp { display: none; }
}
