/* Compact editorial hero shared by every route. */
:root {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
}

body .hero.editorial-hero {
  position: relative;
  overflow: hidden;
  padding: 0 clamp(22px, 4.8vw, 76px) clamp(54px, 6vw, 92px);
  background: #fffdfa;
  border-bottom: 1px solid #dedad4;
  isolation: isolate;
}

body .hero.editorial-hero::before {
  content: "";
  position: absolute;
  top: 72px;
  right: clamp(22px, 4.8vw, 76px);
  width: clamp(130px, 16vw, 240px);
  height: 1px;
  background: #d7d1c9;
}

body .hero.editorial-hero::after {
  content: "";
  position: absolute;
  top: 68px;
  right: clamp(22px, 4.8vw, 76px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef6d4b;
}

body .hero.editorial-hero .hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(15px, 2vw, 30px);
  align-items: end;
  width: min(100%, 1240px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 5.4vw, 82px) 0 clamp(30px, 3.2vw, 48px);
  text-align: left;
}

body .hero.editorial-hero .hero-copy > .eyebrow {
  grid-column: 1 / 6;
  display: block;
  margin: 0 0 20px;
  color: #a43b22;
  font: 700 11px/1.4 "Courier 10 Pitch", "Liberation Mono", monospace;
  letter-spacing: .1em;
}

body .hero.editorial-hero h1 {
  grid-column: 1 / 9;
  max-width: 900px;
  margin: 0;
  color: #171719;
  font-size: clamp(51px, 5.25vw, 76px);
  line-height: .98;
  letter-spacing: -.066em;
  text-wrap: balance;
}

body .hero.editorial-hero .hero-intro {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 380px;
  margin: 0 0 4px;
  text-align: left;
}

body .hero.editorial-hero .hero-intro p {
  max-width: 380px;
  margin: 0;
  color: #57535a;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
}

body .hero.editorial-hero [data-hero-scene] {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0);
  transition: transform .24s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

/* The visual starts close to the copy, so both read as one composition. */
body .hero.editorial-hero .hero-visual,
body .hero.editorial-hero .guide-hero-scene {
  border: 0;
  background: transparent;
}

body .hero.editorial-hero .hero-visual-inner {
  padding: 0;
  background: transparent;
}

body .home-hero.editorial-hero .hero-copy {
  padding-bottom: 22px;
}

body .home-hero.editorial-hero h1 {
  grid-column: 1 / 10;
  max-width: 960px;
  font-size: clamp(56px, 6.15vw, 88px);
}

body .home-hero.editorial-hero .hero-intro {
  grid-column: 9 / 13;
  margin-bottom: 8px;
}

body .home-hero.editorial-hero .hero-float {
  height: clamp(480px, 42vw, 590px);
  margin-top: -6px;
}

body .guide-hero.editorial-hero {
  padding-bottom: clamp(58px, 6vw, 88px);
}

body .guide-hero.editorial-hero .hero-copy {
  padding-top: clamp(50px, 5vw, 76px);
  padding-bottom: 24px;
}

body .guide-hero.editorial-hero h1 {
  grid-column: 1 / 9;
  max-width: 880px;
  font-size: clamp(49px, 5.05vw, 73px);
  line-height: 1;
}

body .guide-hero.editorial-hero .guide-hero-scene {
  min-height: 500px;
}

body .guide-hero.editorial-hero .guide-scene-meta {
  top: 8px;
}

body .inner-hero.editorial-hero .hero-copy {
  padding-bottom: 26px;
}

body .inner-hero.editorial-hero .hero-visual-inner {
  min-height: 310px;
}

body .inner-hero.editorial-hero .hero-visual-inner > * {
  width: min(100%, 980px);
  margin-inline: auto;
}

body[data-page="404"] .editorial-hero {
  min-height: calc(100vh - 76px);
}

body[data-page="404"] .editorial-hero .hero-visual-inner {
  display: grid;
  place-items: center;
  min-height: 300px;
}

body[data-page="404"] .editorial-hero .note-card {
  transform: rotate(-2deg);
}

@keyframes editorial-copy-in {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes editorial-scene-in {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  body .hero.editorial-hero .hero-copy > .eyebrow,
  body .hero.editorial-hero h1,
  body .hero.editorial-hero .hero-intro {
    opacity: 0;
    animation: editorial-copy-in .62s cubic-bezier(.2, .7, .2, 1) forwards;
  }

  body .hero.editorial-hero h1 { animation-delay: .06s; }
  body .hero.editorial-hero .hero-intro { animation-delay: .14s; }
  body .hero.editorial-hero [data-hero-scene] {
    opacity: 0;
    animation: editorial-scene-in .78s .2s cubic-bezier(.2, .7, .2, 1) forwards;
  }
}

@media(max-width: 1024px) {
  body .hero.editorial-hero h1,
  body .guide-hero.editorial-hero h1 {
    grid-column: 1 / 9;
    font-size: clamp(48px, 6.6vw, 68px);
  }

  body .home-hero.editorial-hero h1 {
    font-size: clamp(52px, 7.2vw, 74px);
  }

  body .hero.editorial-hero .hero-intro {
    grid-column: 9 / 13;
  }
}

@media(max-width:767px) {
  body .hero.editorial-hero {
    padding: 0 18px 48px;
  }

  body .hero.editorial-hero::before {
    top: 45px;
    right: 18px;
    width: 72px;
  }

  body .hero.editorial-hero::after {
    top: 41px;
    right: 18px;
  }

  body .hero.editorial-hero .hero-copy,
  body .guide-hero.editorial-hero .hero-copy,
  body .inner-hero.editorial-hero .hero-copy {
    display: block;
    padding: 36px 0 28px;
    text-align: left;
  }

  body .hero.editorial-hero .hero-copy > .eyebrow {
    max-width: calc(100% - 92px);
    margin-bottom: 18px;
    font-size: 9px;
  }

  body .hero.editorial-hero h1,
  body .guide-hero.editorial-hero h1,
  body .inner-hero.editorial-hero h1,
  body .home-hero.editorial-hero h1 {
    max-width: 620px;
    font-size: clamp(37px, 10.6vw, 52px);
    line-height: 1;
    letter-spacing: -.058em;
  }

  body .hero.editorial-hero .hero-intro,
  body .home-hero.editorial-hero .hero-intro,
  body .guide-hero.editorial-hero .hero-intro {
    align-items: flex-start;
    gap: 18px;
    max-width: 560px;
    margin: 22px 0 0;
    text-align: left;
  }

  body .hero.editorial-hero .hero-intro p,
  body .guide-hero.editorial-hero .hero-intro p {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
  }

  body .home-hero.editorial-hero .hero-float {
    height: auto;
    margin-top: 2px;
  }

  body .guide-hero.editorial-hero .guide-hero-scene {
    margin-top: 4px;
  }

  body .inner-hero.editorial-hero .hero-visual-inner {
    min-height: 0;
  }
}

@media(max-width:390px) {
  body .hero.editorial-hero h1,
  body .guide-hero.editorial-hero h1,
  body .inner-hero.editorial-hero h1,
  body .home-hero.editorial-hero h1 {
    font-size: clamp(35px, 10.2vw, 43px);
  }
}

@media(prefers-reduced-motion:reduce) {
  body .hero.editorial-hero [data-hero-scene] {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
