@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-extrabold-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

:root {
  color: #282828;
  font-family: "Rubik", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  container: site / inline-size;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(h1, h2, p) {
  margin: 0;
}

.page {
  --divider-border: 0.5rem;
  --divider-depth: min(7cqw, 6.25rem);
  --contact-overlap: -4.3125rem;
  --header-height: 5.75rem;
  --hero-viewport-height: calc(80vh - var(--header-height));
  --hero-height: max(
    clamp(22.5rem, calc(46cqw + 13.3rem), 32.5rem),
    var(--hero-viewport-height)
  );
  --ios-corner-radius: 3rem;
  position: relative;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .page {
    --hero-viewport-height: calc(96dvh - var(--header-height));
  }
}

.page-ribbon {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 4px;
  background: linear-gradient(
    90deg,
    #0073b2 0%,
    #af52de 25%,
    #34c759 50%,
    #ffca3d 75%,
    #fe8f18 100%
  );
  transform: translateX(-50%);
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header {
  height: var(--header-height);
  padding-top: 0.5rem;
}

.brand {
  width: 8.5rem;
  height: 2.1875rem;
}

.brand img {
  width: auto;
  height: 100%;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14.1875rem;
  height: 2.75rem;
  gap: 0.625rem;
  padding: 0 0.875rem;
  border-radius: 62.4375rem;
  background: #0073b2;
  box-shadow:
    0 0.3125rem 0.625rem rgba(0, 44, 68, 0.3),
    0 0.625rem 1.375rem rgba(0, 115, 178, 0.22);
  color: #fff;
  font: 600 1rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms ease;
}

.cta__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 160ms ease;
}

:is(.cta:hover, .cta:focus-visible) .cta__arrow {
  transform: translateX(0.375rem);
}

.cta:focus-visible {
  outline: 0.1875rem solid #282828;
  outline-offset: 0.1875rem;
  box-shadow:
    0 0.5rem 0.875rem rgba(0, 36, 56, 0.34),
    0 1.125rem 2.25rem rgba(0, 115, 178, 0.38);
  transform: translateY(-0.1875rem) scale(1.055);
}

.cta:active {
  box-shadow:
    0 0.125rem 0.25rem rgba(0, 36, 56, 0.28),
    0 0.25rem 0.5rem rgba(0, 115, 178, 0.2);
  transform: translateY(0.125rem) scale(0.97);
  transition-duration: 80ms;
}

.hero, .section {
  position: relative;
  width: calc(100% - var(--divider-border) - var(--divider-border));
  margin-inline: auto;
}

.hero {
  z-index: 1;
  min-height: var(--hero-height);
  overflow: hidden;
  border-radius: var(--ios-corner-radius) var(--ios-corner-radius) 0 0;
  background:
    url("/images/hero-home.webp") center / cover no-repeat,
    linear-gradient(145deg, #c9e4ff 0%, #ccf3f1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(190, 224, 255, 0.28);
  pointer-events: none;
}

.hero__mobile, .section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 90rem);
  margin-inline: auto;
  container-type: inline-size;
}

.hero__mobile {
  position: relative;
  z-index: 2;
  justify-content: center;
  min-height: inherit;
  text-align: center;
}

.hero__icons {
  width: 4.4375rem;
  height: 1.75rem;
}

.hero h1 {
  width: calc(100% - 1.5rem);
  margin: 1.75rem 0 2.75rem;
  font-size: clamp(1.75rem, 8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

:where(.hero h1, .challenge__copy, .dreamers__copy, .contact__copy) span {
  display: block;
  white-space: nowrap;
}

.section {
  text-align: center;
}

.section__content {
  height: 100%;
}

.section::before, .section__background {
  position: absolute;
  left: 0;
  width: 100%;
  clip-path: polygon(0 0, 50% var(--divider-depth), 100% 0, 100% 100%, 0 100%);
}

.section::before {
  content: "";
  z-index: -2;
  top: calc(-1 * var(--divider-border));
  height: calc(100% + var(--divider-border));
  background: #fff;
  pointer-events: none;
}

.section__background {
  z-index: -1;
  top: 0;
  height: 100%;
  overflow: visible;
}

.section h2, .reality p {
  font-style: italic;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
}

.section h2 {
  font-size: 1.65875rem;
  line-height: 2rem;
}

.challenge {
  z-index: 2;
  height: 28.5rem;
  margin-top: calc(-1 * var(--divider-depth));
}

:is(.challenge, .contact) .section__content {
  justify-content: center;
}

.challenge h2 {
  color: #af52de;
}

:is(.challenge__copy, .dreamers__copy) {
  margin-top: 2rem;
}

:is(.challenge__copy, .dreamers__copy, .contact__copy) {
  line-height: 1.4;
}

.challenge__copy {
  width: min(calc(100% - 1.75rem), 21.6875rem);
  font-size: clamp(0.96875rem, 4.86vw, 1.13875rem);
}

.challenge__copy p + p {
  margin-top: 1.75rem;
}

.dreamers {
  z-index: 3;
  height: 34rem;
  margin-top: -3.375rem;
}

.dreamers .section__content {
  padding-top: 6rem;
}

.dreamers h2 {
  color: #34c759;
}

.dreamers__copy {
  width: min(calc(100% - 1rem), 25rem);
  font-size: clamp(0.875rem, 4.3vw, 1.13875rem);
}

.dreamers__logos {
  width: 16.5625rem;
  height: 12.1875rem;
  margin-top: 2.875rem;
}

.reality {
  z-index: 4;
  height: 23rem;
  margin-top: -3.8125rem;
}

.reality .section__content {
  --reality-balance: calc(
    var(--divider-depth) + var(--divider-depth) + var(--contact-overlap) - 2rem
  );
  display: grid;
  place-items: center;
  padding: max(0rem, var(--reality-balance)) 0.75rem
    max(0rem, calc(0rem - var(--reality-balance)));
}

.reality p {
  width: min(100%, 21.125rem);
  color: #fff;
  font-size: clamp(1.875rem, 8.67vw, 2.03125rem);
  line-height: 1.3;
  text-shadow: 0 0.25rem 0.5rem #b26201;
}

.contact {
  z-index: 5;
  height: 24rem;
  margin-top: var(--contact-overlap);
}

.contact .section__content {
  padding-top: var(--divider-depth);
}

.contact::before, .contact .section__background {
  border-radius: 0 0 var(--ios-corner-radius) var(--ios-corner-radius);
}

.contact .section__background {
  overflow: hidden;
}

.contact__copy {
  width: calc(100% - 1.5rem);
  margin-top: 1.875rem;
  font-size: clamp(1rem, 5vw, 1.13875rem);
}

.contact__copy a {
  color: #007aff;
}

.contact__button {
  margin-top: 2.5rem;
}

.site-footer {
  flex-direction: column;
  gap: 1rem;
  height: 8rem;
  color: #767676;
}

.site-footer img {
  width: auto;
  height: 1.75rem;
}

.site-footer p {
  line-height: 1.4375rem;
}

@container site (min-width: 800px) {
  .page {
    --divider-border: 1rem;
    --contact-overlap: max(-15.5cqw, -13.95rem);
    --header-height: 6.75rem;
    --hero-height: max(min(calc(30cqw + 20rem), 47rem), var(--hero-viewport-height));
    overflow: visible;
  }

  .brand {
    width: 10.6875rem;
    height: 2.75rem;
  }

  .hero__icons {
    width: 12.4cqw;
    height: 4.9cqw;
  }

  .hero h1 {
    width: 72cqw;
    margin: 1.6cqw 0 6.5cqw;
    font-size: 5.4cqw;
    letter-spacing: -0.04em;
  }

  .cta {
    width: clamp(16.25rem, calc(9cqw + 11.75rem), 19.1rem);
    height: clamp(3.375rem, calc(1cqw + 2.875rem), 3.75rem);
    gap: clamp(0.625rem, 0.8cqw, 0.75rem);
    padding: 0 clamp(1rem, 1cqw, 1.125rem);
    font-size: clamp(1.0625rem, calc(0.75cqw + 0.6875rem), 1.375rem);
  }

  .cta__arrow {
    width: clamp(1.375rem, calc(0.75cqw + 1rem), 1.625rem);
    font-size: clamp(1.375rem, calc(0.75cqw + 1rem), 1.625rem);
  }

  .section h2 {
    font-size: 4.7cqw;
    line-height: 5.6cqw;
  }

  .challenge {
    height: min(70cqw, 63rem);
    margin-top: max(-8.6cqw, -7.74rem);
  }

  .challenge__copy {
    width: 75cqw;
    margin-top: 4.1cqw;
    font-size: 3.2cqw;
  }

  .challenge__copy p + p {
    margin-top: 4cqw;
  }

  .dreamers {
    height: min(85cqw, 77rem);
    margin-top: max(-9.4cqw, -8.46rem);
  }

  .dreamers .section__content {
    padding-top: min(16.7cqw, 15.03rem);
  }

  .dreamers__copy {
    width: 90cqw;
    margin-top: 3cqw;
    font-size: 3cqw;
  }

  .dreamers__logos {
    width: 41.7cqw;
    height: 30.7cqw;
    margin-top: 5.3cqw;
  }

  .reality {
    height: min(55cqw, 50rem);
    margin-top: max(-10.8cqw, -9.72rem);
  }

  .reality p {
    width: 59.2cqw;
    font-size: 6cqw;
    text-shadow: 0 0.6cqw 1.4cqw #b26201;
  }

  .contact {
    height: min(57cqw, 52rem);
  }

  .contact__copy {
    width: 80cqw;
    margin-top: 3.5cqw;
    font-size: 3cqw;
  }

  .contact__button {
    margin-top: 3.5cqw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta {
    transition: box-shadow 160ms ease;
  }

  .cta:focus-visible, .cta:active {
    transform: none;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cta:hover:not(:active) {
    transform: translateY(-0.1875rem) scale(1.055);
    box-shadow:
      0 0.5rem 0.875rem rgba(0, 36, 56, 0.34),
      0 1.125rem 2.25rem rgba(0, 115, 178, 0.38);
  }
}
