:root {
  --hero-alt-header-height: 84px;
}

html {
  scroll-padding-top: calc(var(--hero-alt-header-height) + 20px);
}

.hero-alt {
  padding-top: var(--hero-alt-header-height);
  overflow: hidden;
  color: var(--apple-text, #3f3f3f);
  background: var(--apple-surface, #fff);
}

.hero-alt__header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 1120px;
  height: var(--hero-alt-header-height);
  margin-inline: 0;
  color: var(--apple-accent-dark, #891428);
  background: var(--apple-surface, #fff);
  box-shadow: 0 0 0 100vmax var(--apple-surface, #fff);
  clip-path: inset(0 -100vmax);
  isolation: isolate;
  transform: translateX(-50%);
}

.hero-alt__header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  background: var(--apple-surface, #fff);
  content: "";
  transform: translateX(-50%);
}

.hero-alt__progress {
  --page-progress: 0;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  display: block;
  width: 100vw;
  height: 2px;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
  background: rgba(63, 63, 63, 0.12);
}

.hero-alt__progress::after {
  position: absolute;
  inset: 0;
  background: var(--apple-accent, #b90e2b);
  content: "";
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  will-change: transform;
}

.hero-alt__brand,
.hero-alt__nav,
.hero-alt__cta {
  color: inherit;
  text-decoration: none;
}

.hero-alt__menu-toggle,
.hero-alt__menu-cta {
  display: none;
}

.hero-alt__brand {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1;
  white-space: nowrap;
}

.hero-alt__brand-symbol {
  color: var(--apple-accent, #b90e2b);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.hero-alt__nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.hero-alt__nav a {
  color: inherit;
  text-decoration: none;
}

.hero-alt__nav a:first-child {
  padding: 8px 13px;
  border-radius: 17px;
  background: var(--apple-surface, #fff);
}

.hero-alt__cta {
  grid-column: 3;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  height: 42px;
  padding: 5px 17px 5px 7px;
  border-radius: 22px;
  color: var(--apple-accent-foreground, #fff);
  background: var(--apple-accent, #b90e2b);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.hero-alt__cta-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--apple-accent, #b90e2b);
  background: var(--apple-accent-foreground, #fff);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1;
}

.hero-alt__brand,
.hero-alt__nav a,
.hero-alt__cta {
  transition: opacity 160ms ease;
}

.hero-alt__brand:hover,
.hero-alt__nav a:hover,
.hero-alt__cta:hover {
  opacity: 0.72;
}

.hero-alt__brand:focus-visible,
.hero-alt__nav a:focus-visible,
.hero-alt__cta:focus-visible {
  outline: 2px solid var(--apple-accent, #b90e2b);
  outline-offset: 3px;
}

.hero-alt__inner {
  display: grid;
  grid-template-columns: 52% 48%;
  width: 1200px;
  height: 636px;
  margin-inline: auto;
}

.hero-alt__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 76px;
}

.hero-alt__strapline,
.hero-alt__title,
.hero-alt-stat {
  margin: 0;
}

.hero-alt__strapline {
  max-width: 420px;
  color: var(--apple-accent, #b90e2b);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.15px;
  line-height: 24px;
}

.hero-alt__title {
  margin-top: 25px;
  margin-left: -0.05em;
  font-family: inherit;
  font-size: 104px;
  font-weight: 600;
  letter-spacing: -5.5px;
  line-height: 0.88;
}

.hero-alt__title--long {
  display: grid;
  width: fit-content;
  max-width: none;
  margin-left: 0;
  gap: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hero-alt__title--long span {
  display: block;
  white-space: nowrap;
}

.hero-alt__title-line--small {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 0.98;
}

.hero-alt__title-line--medium {
  margin-top: -2px;
  font-size: 64px;
  font-weight: 625;
  letter-spacing: -2.5px;
  line-height: 0.96;
}

.hero-alt__title-line--large {
  margin-top: -3px;
  font-size: 78px;
  font-weight: 650;
  letter-spacing: -3.2px;
  line-height: 0.94;
}

.hero-alt__stats {
  display: flex;
  gap: 64px;
  margin-top: 48px;
}

.hero-alt-stat {
  display: grid;
  gap: 7px;
}

.hero-alt-stat span {
  color: var(--apple-muted, #6f6d65);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.hero-alt-stat strong {
  color: var(--apple-text, #3f3f3f);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 30px;
}

.hero-alt__visual {
  position: relative;
  min-width: 0;
  height: 100%;
}

.hero-alt__halo {
  position: absolute;
  top: 44px;
  right: 46px;
  width: 470px;
  height: 470px;
  border: 0;
  border-radius: 50%;
  background: #f0f1f3;
}

.hero-alt__portrait {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 0;
  display: block;
  width: 482px;
  max-width: 100%;
  height: auto;
  filter: none;
}

.hero-alt__portrait-fade {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 104px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 58%,
    #fff 100%
  );
}

@media (max-width: 1200px) {
  .hero-alt__header,
  .hero-alt__inner {
    width: 100%;
  }

  .hero-alt__header {
    padding-inline: max(24px, 4vw);
  }

  .hero-alt__copy {
    padding-left: max(32px, 6vw);
  }

  .hero-alt__nav {
    gap: 15px;
  }

  .hero-alt__title {
    font-size: clamp(86px, 8.7vw, 104px);
  }

  .hero-alt__title--long {
    font-size: inherit;
  }

  .hero-alt__title-line--small {
    font-size: clamp(46px, 4.35vw, 52px);
  }

  .hero-alt__title-line--medium {
    font-size: clamp(56px, 5.35vw, 64px);
  }

  .hero-alt__title-line--large {
    font-size: clamp(68px, 6.5vw, 78px);
  }

  .hero-alt__halo {
    right: 12px;
    width: min(43vw, 470px);
    height: min(43vw, 470px);
  }

  .hero-alt__portrait {
    right: 8px;
    width: min(44vw, 482px);
  }
}

@media (max-width: 900px) {
  :root {
    --hero-alt-header-height: 86px;
  }

  .hero-alt__header {
    grid-template-rows: 50px 36px;
  }

  .hero-alt__brand {
    grid-column: 1 / 3;
    justify-self: start;
  }

  .hero-alt__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .hero-alt__cta {
    grid-row: 1;
  }

  .hero-alt__inner {
    grid-template-columns: 1fr;
    grid-template-rows: 390px 430px;
    height: 820px;
  }

  .hero-alt__copy {
    justify-content: flex-start;
    padding: 52px 32px 0;
  }

  .hero-alt__title {
    font-size: clamp(72px, 14vw, 94px);
  }

  .hero-alt__title--long {
    max-width: none;
    font-size: inherit;
  }

  .hero-alt__stats {
    margin-top: 38px;
  }

  .hero-alt__visual {
    height: 430px;
  }

  .hero-alt__halo {
    top: 0;
    right: 50%;
    width: 420px;
    height: 420px;
    transform: translateX(50%);
  }

  .hero-alt__portrait {
    right: 50%;
    width: 410px;
    transform: translateX(50%);
  }
}

@media (max-width: 600px) {
  :root {
    --hero-alt-header-height: 68px;
  }

  .hero-alt__header {
    position: fixed;
    z-index: 100;
    grid-template-columns: 1fr auto;
    grid-template-rows: 68px;
    height: var(--hero-alt-header-height);
    padding-inline: 14px;
    box-shadow: none;
    clip-path: none;
  }

  .hero-alt__brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    font-size: 20px;
  }

  .hero-alt__brand-symbol {
    font-size: 19px;
  }

  .hero-alt__cta {
    display: none;
  }

  .hero-alt__menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    align-self: center;
    justify-self: end;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(63, 63, 63, 0.14);
    border-radius: 50%;
    color: var(--apple-accent-dark, #891428);
    background: var(--apple-surface, #fff);
    cursor: pointer;
  }

  .hero-alt__menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 120ms ease;
  }

  .hero-alt__menu-toggle:focus-visible {
    outline: 2px solid var(--apple-accent, #b90e2b);
    outline-offset: 3px;
  }

  .hero-alt__header.is-menu-open .hero-alt__menu-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .hero-alt__header.is-menu-open .hero-alt__menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .hero-alt__header.is-menu-open .hero-alt__menu-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero-alt__nav {
    position: absolute;
    z-index: 20;
    top: 60px;
    right: 0;
    left: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(63, 63, 63, 0.14);
    border-radius: 20px;
    color: var(--apple-accent-dark, #891428);
    background: var(--apple-bg, #fcf9ea);
    box-shadow: 0 18px 40px rgba(63, 63, 63, 0.12);
    font-size: 15px;
  }

  .hero-alt__header.is-menu-open .hero-alt__nav {
    display: flex;
  }

  .hero-alt__nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding-inline: 16px;
    border-radius: 12px;
  }

  .hero-alt__nav a:first-child {
    padding-inline: 16px;
  }

  .hero-alt__nav .hero-alt__menu-cta {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    color: #fff;
    background: var(--apple-accent, #b90e2b);
    font-weight: 600;
  }

  .hero-alt__inner {
    grid-template-rows: 350px 428px;
    height: 778px;
  }

  .hero-alt__copy {
    padding: 43px 16px 0;
  }

  .hero-alt__strapline {
    max-width: 330px;
    font-size: 16px;
    line-height: 22px;
  }

  .hero-alt__title {
    margin-top: 20px;
    font-size: 66px;
    letter-spacing: -3.5px;
  }

  .hero-alt__title--long {
    max-width: none;
    font-size: inherit;
    letter-spacing: 0;
    line-height: 1;
  }

  .hero-alt__title--long span {
    white-space: nowrap;
  }

  .hero-alt__title-line--small,
  .hero-alt__title-line--medium {
    font-size: clamp(24px, 7vw, 29px);
    letter-spacing: -0.8px;
    line-height: 1;
  }

  .hero-alt__title-line--medium {
    margin-top: 1px;
  }

  .hero-alt__title-line--large {
    margin-top: 1px;
    font-size: clamp(30px, 8.5vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1;
  }

  .hero-alt__stats {
    gap: 48px;
    margin-top: 32px;
  }

  .hero-alt-stat strong {
    font-size: 24px;
  }

  .hero-alt__visual {
    height: 428px;
  }

  .hero-alt__halo {
    width: 410px;
    height: 410px;
  }

  .hero-alt__portrait {
    width: 390px;
  }

  .hero-alt__portrait-fade {
    height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-alt__menu-toggle span {
    transition: none;
  }
}

@media (max-width: 340px) {
  .hero-alt__title-line--small,
  .hero-alt__title-line--medium {
    font-size: 24px;
  }

  .hero-alt__title-line--large {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
}
