.page-home, .home-process {
  --gutter: clamp(1.2rem, 4.2vw, 4rem);
  --home-max: 68rem;
  --home-pale: color-mix(in srgb, var(--apricot) 20%, var(--paper));
  --home-space: clamp(3.5rem, 7.5vw, 7rem);
}

.page-home main .frame, .home-process .frame { max-inline-size: var(--home-max); }
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: clamp(37rem, 56vw, 47rem);
  overflow: clip;
  padding-block: clamp(10rem, 24dvh, 13.5rem) clamp(4rem, 8vw, 7.25rem);
  background: var(--ink);
}
.home-hero-photo {
  position: absolute;
  inset: 0;
}
.home-hero-photo img {
  block-size: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.page-home main .home-hero-layout {
  inline-size: min(100% - 2 * var(--gutter), 76rem);
  max-inline-size: none;
}
.home-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  row-gap: calc(clamp(.9rem, 1.6vw, 1.45rem) + 1.5625rem);
  color: var(--apricot);
  text-align: center;
}
.home-hero h1 {
  font: clamp(1.4375rem, .1rem + 6.8vw, 3.5rem)/1.06 "Hit and Run", var(--heading);
  letter-spacing: normal;
  text-transform: uppercase;
}
.home-hero h1 > span { display: inline-block; max-inline-size: 100%; }
.home-hero .hero-glints { inset-inline: clamp(.65rem, 2.75vw, 2.25rem); user-select: none; }
.home-hero-services {
  inline-size: min(100%, 63rem);
  margin-inline: auto;
}
.home-hero-services ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.65rem, 1.4vw, 1.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-hero-services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.home-hero-services .button {
  inline-size: 100%;
  min-block-size: 3.25rem;
  padding-inline: .65rem;
  background: var(--paper);
  line-height: 1.3;
}
.home-hero-services .button span { font-size: 1rem; }
.home-hero-services .button:is(:hover, :focus-visible) { background: var(--coral); }
.home-hero .button:focus-visible { outline-color: var(--apricot); }
.home-hero-services .button:active { background: var(--coral); }
.home-hero-social {
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  padding-block: .6875rem;
  background: var(--apricot);
}
.home-hero-social a {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  min-block-size: 3rem;
  color: var(--ink);
}
.home-hero-social a:focus-visible { outline-offset: -.2rem; }
.home-hero-social svg { inline-size: 1.5625rem; block-size: 1.8125rem; fill: currentColor; }

:is(.page-home, .home-process) .stars { user-select: none; }
:is(.page-home, .home-process) .stars b { font-size: clamp(.95rem, 2.45vw, 1.35rem); rotate: none; }
.home-shot { position: relative; inline-size: min(100%, 29rem); margin-inline: auto; }
.home-shot > img {
  aspect-ratio: 1;
  object-fit: cover;
  border: .34rem solid var(--paper);
  border-radius: clamp(1.05rem, 2vw, 1.7rem);
  background: var(--pale-apricot);
  box-shadow: var(--shadow);
}
.home-block { padding-block: var(--home-space); }
.home-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.8rem, 5.4vw, 5rem);
}
.home-block h2 {
  font-size: clamp(2.05rem, 1.24rem + 2.65vw, 3.75rem);
  line-height: 1.06;
}
.home-copy {
  display: grid;
  gap: clamp(1rem, 2.15vw, 1.65rem);
}
.home-copy > p { max-inline-size: 55ch; }
.home-copy .button { justify-self: start; }
.home-benefit-intro { font-weight: 600; }
.home-section-heading {
  max-inline-size: 42rem;
  margin: 0 auto clamp(1.6rem, 4.5vw, 3rem);
  text-align: center;
}
.home-section-heading p { margin-block-start: .55rem; }

.home-social { background: var(--home-pale); }
.home-social .home-split {
  grid-template-areas: "heading heading" "media copy";
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  row-gap: clamp(1.75rem, 4.2vw, 3.5rem);
}
.home-social-heading {
  grid-area: heading;
  display: grid;
  justify-items: center;
  gap: clamp(.95rem, 2.4vw, 1.6rem);
  text-align: center;
}
.home-social h2 {
  max-inline-size: 26ch;
}
.home-social-heading h3 {
  max-inline-size: 55rem;
  font-size: clamp(1.2rem, 1.02rem + .56vw, 1.55rem);
  line-height: 1.36;
}
.home-social .home-copy { grid-area: copy; }
.home-social-shot { grid-area: media; }
.home-social-shot .stars b:first-child { top: 1.25rem; right: -.15rem; translate: 100% 0; }
.home-social-shot .stars b:nth-child(2) { bottom: 22%; left: -.15rem; translate: -100% 0; color: var(--coral); }
.home-social-shot .stars b:nth-child(3) { bottom: -.15rem; right: 1.25rem; translate: 0 100%; font-size: .85rem; color: var(--coral); }
.home-benefits {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-benefits li {
  display: flex;
  gap: .85rem;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.62;
}
.home-benefits li > span:first-child { flex: none; font-size: .87rem; }

.home-process { background: var(--paper); }
.home-process .home-section-heading { max-inline-size: none; }
.home-process h2 { font-size: clamp(1.15rem, 6vw, 3.75rem); }
.home-steps {
  --arch: clamp(2.6rem, 4.6vw, 3.85rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2.25vw, 1.65rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-step article {
  display: grid;
  grid-template-rows: auto minmax(3.4rem, auto) 1fr auto;
  justify-items: center;
  gap: .85rem;
  min-block-size: 100%;
  padding-block-end: 1.55rem;
  overflow: clip;
  border: 1px solid var(--peach);
  border-radius: 50% 50% 1.4rem 1.4rem / var(--arch) var(--arch) 1.4rem 1.4rem;
  background: var(--pale-apricot);
  text-align: center;
}
.home-step { scroll-margin-block-start: 1.5rem; }
.home-step:nth-child(2) article { background: var(--apricot); }
.home-step:nth-child(3) article { background: color-mix(in oklab, var(--apricot), var(--coral)); }
.home-step:nth-child(4) article { background: var(--coral); }
.home-step-media { position: relative; inline-size: 100%; }
.home-step-media img { aspect-ratio: 2 / 1; object-fit: cover; }
.home-step:nth-child(1) img { object-position: 50% 67%; }
.home-step:nth-child(2) img { object-position: 50% 61%; }
.home-step:nth-child(3) img { object-position: 50% 60%; }
.home-step:nth-child(4) img { object-position: 50% 76%; }
.home-step-media .stars b:first-child { inset: auto auto 17% 11%; color: var(--paper); }
.home-step-media .stars b:nth-child(2) { inset: auto 11% 17% auto; color: var(--coral); }
.home-step-media .stars b:nth-child(3) { display: none; }
.home-step h3, .home-step p { padding-inline: clamp(.85rem, 2vw, 1.35rem); }
.home-step h3 { margin-block-start: .3rem; }
.home-step p { max-inline-size: 37ch; font-size: .93rem; line-height: 1.62; }
.home-step .button {
  max-inline-size: calc(100% - 1.25rem);
  margin-block-start: .2rem;
  padding-inline: .6rem;
  column-gap: .45em;
  background: var(--paper);
  font-size: .875rem;
  line-height: 1.35;
}
.home-step .button:is(:hover, :focus-visible) { background: var(--coral); }

.home-about {
  padding-block-end: calc(var(--home-space) + clamp(1rem, 3vw, 2.75rem));
  background: var(--paper);
}
.home-about .home-split { row-gap: clamp(3rem, 5.4vw, 5rem); }
.home-about-photos {
  position: relative;
  container-type: inline-size;
  inline-size: min(100%, 29rem);
  margin-inline: auto;
}
.home-about-portrait {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50% 50% 1.4rem 1.4rem / 22% 22% 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}
.home-photo-caption {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 50%;
  translate: -50% -45%;
  white-space: nowrap;
  color: var(--peach);
  font: clamp(2.75rem, 27cqi, 7.75rem)/1.3 "Hit and Run", var(--heading);
  opacity: .6;
  pointer-events: none;
}
.home-photo-caption > span { display: block; }
.home-about-photos .stars b:first-child { top: 18%; right: -.75rem; color: var(--coral); }
.home-about-photos .stars b:nth-child(2) { bottom: 28%; left: -.8rem; color: var(--peach); }
.home-about-photos .stars b:nth-child(3) { bottom: 17%; right: -.4rem; font-size: .85rem; color: var(--coral); }
.home-about h2 { font-size: clamp(1.85rem, 1.22rem + 2.2vw, 3.2rem); }

.home-testimonials {
  border-block: 1px solid var(--apricot);
  background: var(--home-pale);
}
.home-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.home-quote {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .9rem;
  padding: clamp(1.2rem, 2.15vw, 1.65rem);
  border: 1px solid var(--peach);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 .35rem .9rem rgb(23 22 21 / .07);
}
.home-quote:nth-child(3n + 1) { background: var(--apricot); }
.home-quote:nth-child(3n + 2) { background: var(--pale-apricot); }
.home-quote-mark {
  block-size: 1.25rem;
  color: color-mix(in srgb, var(--coral) 82%, var(--ink));
  font: 700 3.5rem/.7 var(--heading);
}
.home-quote blockquote { margin: 0; font-size: .95rem; line-height: 1.62; }
.home-quote figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block-start: .8rem;
  border-block-start: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
}
.home-quote img { inline-size: 2.65rem; flex: none; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.home-frequency { background: var(--pale-apricot); }
.home-frequency .home-copy { max-inline-size: 30rem; }
.home-frequency-art { inline-size: min(100%, 32rem); }
.home-frequency-art > img { aspect-ratio: auto; }
.home-frequency .button { background: var(--coral); }
.home-frequency .button:is(:hover, :focus-visible) { background: var(--peach); }

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .home-hero-photo {
    --hero-travel: 6rem;
    transform: translateY(var(--hero-parallax, 0px));
  }
  html[data-motion="on"] :is(.page-home, .home-process) .stars b { animation: home-twinkle 1.8s ease-in-out infinite; }
  html[data-motion="on"] :is(.page-home, .home-process) .stars b:nth-child(2) { animation-delay: -.6s; }
  @keyframes home-twinkle {
    0%, 100% { rotate: -7deg; }
    50% { rotate: 7deg; }
  }
  html[data-motion="on"] .home-photo-caption[data-hello-motion="waiting"] > span { opacity: 0; }
  html[data-motion="on"] .home-photo-caption[data-hello-motion="drop"] > span {
    animation: home-hello-drop .5s .25s both;
  }
  @keyframes home-hello-drop {
    0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
    0% { translate: 0 -3000px; opacity: 0; }
    60% { translate: 0 25px; opacity: 1; }
    75% { translate: 0 -10px; }
    90% { translate: 0 5px; }
    100% { translate: 0 0; opacity: 1; }
  }
}
@media (max-width: 74rem) {
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 62rem) {
  .home-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .home-hero-services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
  .home-hero {
    padding-block-start: clamp(6.5rem, 24vw, 9.5rem);
    padding-block-end: clamp(1.9rem, 8vw, 3.5rem);
  }
  .home-hero-photo img { object-position: center 20%; }
  .home-hero-social { flex-direction: row; padding-block: 0; }
  .home-hero-social a { inline-size: 2.75rem; min-block-size: 2.875rem; }
  .home-hero-social svg { inline-size: 1.1875rem; block-size: 1.0625rem; }
  .home-split, .home-social .home-split { grid-template-columns: minmax(0, 1fr); }
  .home-social .home-split { grid-template-areas: "heading" "copy" "media"; }
  .home-block > .home-split { max-inline-size: 34rem; }
  .home-social-shot { max-inline-size: min(95%, 22rem); }
  .home-about-photos { inline-size: min(96%, 24rem); }
  .home-photo-caption { font-size: min(27cqi, 4.5625rem); }
  .home-frequency .home-copy { justify-items: center; margin-inline: auto; text-align: center; }
  .home-frequency .button { justify-self: center; }
}
@media (max-width: 35rem) {
  .home-steps, .home-quotes { grid-template-columns: minmax(0, 27rem); justify-content: center; }
}
@media (max-width: 32rem) {
  .home-hero-services .button {
    column-gap: .35rem;
    padding-inline: .45rem;
    font-size: .875rem;
    overflow-wrap: anywhere;
  }
}
@media (forced-colors: active) {
  :is(.page-home, .home-process) .stars { display: none; }
}
