:root {
  --ap-deep: #031f49;
  --ap-navy: #062a5f;
  --ap-blue: #149be7;
  --ap-muted: #667c96;
  --ap-pale: #f4f9fc;
  --ap-line: rgba(6, 42, 95, 0.11);
}

.ap-site {
  overflow: hidden;
  background: #fff;
  color: var(--ap-deep);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    Inter,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ap-site *,
.ap-site *::before,
.ap-site *::after {
  box-sizing: border-box;
}

.ap-site a {
  color: inherit;
  text-decoration: none;
}

/* Slim Apple-style navigation */

.ap-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  align-items: center;
  padding: 7px max(4vw, 28px);
  border-bottom: 1px solid rgba(6, 42, 95, 0.07);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.ap-brand {
  display: flex;
  width: 176px;
  height: 40px;
  align-items: center;
}

.ap-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.ap-navigation {
  display: flex;
  align-items: center;
  gap: 29px;
}

.ap-navigation a {
  color: #415874;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ap-navigation a:hover {
  color: var(--ap-blue);
}

.ap-quote {
  justify-self: end;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ap-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.ap-menu,
.ap-mobile-navigation {
  display: none;
}

/* Cinematic scroll hero */

.ap-hero-track {
  position: relative;
  height: 190vh;
  min-height: 1300px;
  background: #fff;
}

.ap-hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 690px;
  overflow: hidden;
  background: #fff;
}

.ap-hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 36%,
      rgba(41, 184, 242, 0.17),
      transparent 32%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(21, 152, 229, 0.08),
      transparent 28%
    ),
    linear-gradient(145deg, #fff, #f3fbff);
}

.ap-hero-opening {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 3;
  width: min(1180px, calc(100% - 50px));
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--ap-progress) * -80px));
  text-align: center;
  opacity:
    clamp(
      0,
      calc(1 - var(--ap-progress) * 2.5),
      1
    );
}

.ap-hero-opening > p {
  margin: 0 0 22px;
  color: var(--ap-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ap-hero-opening h1 {
  margin: 0;
  color: var(--ap-deep);
  font-size: clamp(68px, 9vw, 148px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.87;
}

.ap-hero-opening h1 span {
  display: block;
  color: var(--ap-blue);
}

.ap-hero-opening-copy {
  max-width: 650px;
  margin: 31px auto 0;
  color: var(--ap-muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.ap-hero-media {
  position: absolute;
  top: calc(53% - var(--ap-progress) * 3%);
  left: 50%;
  z-index: 2;
  width: calc(46vw + var(--ap-progress) * 50vw);
  height: calc(46vh + var(--ap-progress) * 46vh);
  min-height: 380px;
  overflow: hidden;
  transform:
    translate(-50%, -50%)
    translateY(
      calc(36vh - var(--ap-progress) * 36vh)
    );
  border-radius:
    calc(38px - var(--ap-progress) * 27px);
  box-shadow: 0 35px 100px rgba(15, 85, 130, 0.19);
  will-change: width, height, transform, border-radius;
}

.ap-hero-media img {
  object-fit: cover;
  object-position: center;
  transform:
    scale(calc(1.08 - var(--ap-progress) * 0.08));
  will-change: transform;
}

.ap-hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 31, 73, 0.02),
      rgba(3, 31, 73, 0.12) 52%,
      rgba(3, 31, 73, 0.66)
    );
}

.ap-hero-media-label {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  color: var(--ap-navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ap-hero-conclusion {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  z-index: 4;
  width: min(950px, calc(100% - 40px));
  transform:
    translateX(-50%)
    translateY(calc(45px - var(--ap-progress) * 45px));
  color: #fff;
  text-align: center;
  opacity:
    clamp(
      0,
      calc((var(--ap-progress) - 0.53) * 3),
      1
    );
}

.ap-hero-conclusion > p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 600;
}

.ap-hero-conclusion h2 {
  margin: 0;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.89;
}

.ap-hero-conclusion h2 span {
  display: block;
}

.ap-hero-conclusion a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  font-size: 12px;
  font-weight: 700;
}

.ap-hero-progress {
  position: absolute;
  right: 26px;
  bottom: 25px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.ap-hero-progress > div {
  width: 82px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
}

.ap-hero-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: #fff;
}

/* Intro chapter */

.ap-introduction {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 75px;
  padding: 125px max(7vw, 40px);
  background: #fff;
}

.ap-introduction > p {
  margin: 12px 0 0;
  color: var(--ap-blue);
  font-size: 14px;
  font-weight: 700;
}

.ap-introduction h2 {
  margin: 0;
  color: var(--ap-deep);
  font-size: clamp(50px, 6.5vw, 102px);
  font-weight: 700;
  letter-spacing: -0.068em;
  line-height: 0.94;
}

.ap-introduction h2 span {
  display: block;
  color: #9cafc1;
}

.ap-introduction-copy {
  grid-column: 2;
  max-width: 700px;
}

.ap-introduction-copy p {
  margin: 0;
  color: var(--ap-muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.62;
}

.ap-introduction-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--ap-blue);
  font-size: 14px;
  font-weight: 700;
}

/* Shared section heading */

.ap-section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(270px, 0.42fr);
  gap: 55px;
  align-items: end;
  max-width: 1440px;
  margin: 0 auto 52px;
  padding: 0 max(6vw, 30px);
}

.ap-section-heading h2 {
  margin: 0;
  color: var(--ap-deep);
  font-size: clamp(54px, 7.5vw, 114px);
  font-weight: 700;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

.ap-section-heading > p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.58;
}

/* Highlights */

.ap-highlights {
  padding: 115px 0 125px;
  background: var(--ap-pale);
}

.ap-highlight-scroller,
.ap-future-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 max(6vw, 30px) 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ap-highlight-scroller::-webkit-scrollbar,
.ap-future-scroller::-webkit-scrollbar {
  display: none;
}

.ap-highlight-card {
  position: relative;
  flex: 0 0 min(74vw, 1040px);
  height: min(70vh, 700px);
  min-height: 530px;
  overflow: hidden;
  border-radius: 31px;
  background: #dcebf3;
  box-shadow: 0 24px 65px rgba(20, 76, 113, 0.12);
  scroll-snap-align: center;
}

.ap-highlight-card img,
.ap-future-card img {
  object-fit: cover;
  transition: transform 0.8s ease;
}

.ap-highlight-card:hover img,
.ap-future-card:hover img {
  transform: scale(1.025);
}

.ap-highlight-shade,
.ap-future-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 34%,
      rgba(3, 31, 73, 0.84)
    );
}

.ap-highlight-index {
  position: absolute;
  top: 27px;
  right: 27px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.ap-highlight-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 43px;
  color: #fff;
}

.ap-highlight-copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ap-highlight-copy h3 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(39px, 5vw, 74px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

/* Design chapter */

.ap-design {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 70px;
  padding: 125px max(7vw, 40px);
  background: #fff;
}

.ap-design-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.ap-design-copy > p,
.ap-services-heading > p,
.ap-results-heading > p:first-child {
  margin: 0 0 20px;
  color: var(--ap-blue);
  font-size: 14px;
  font-weight: 700;
}

.ap-design-copy h2,
.ap-services-heading h2,
.ap-results-heading h2 {
  margin: 0;
  color: var(--ap-deep);
  font-size: clamp(50px, 6.3vw, 98px);
  font-weight: 700;
  letter-spacing: -0.068em;
  line-height: 0.92;
}

.ap-design-copy h2 span,
.ap-services-heading h2 span,
.ap-results-heading h2 span {
  display: block;
  color: #9dafc0;
}

.ap-design-description {
  max-width: 510px;
  margin-top: 28px;
  color: var(--ap-muted);
  font-size: 18px;
  line-height: 1.62;
}

.ap-design-visual {
  position: relative;
  height: min(72vh, 720px);
  min-height: 540px;
  overflow: hidden;
  border-radius: 31px;
}

.ap-design-visual img {
  object-fit: cover;
}

.ap-design-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 42%,
      rgba(3, 31, 73, 0.84)
    );
}

.ap-design-visual > div:last-child {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  color: #fff;
}

.ap-design-visual span {
  font-size: 10px;
  font-weight: 700;
}

.ap-design-visual h3 {
  margin: 13px 0 10px;
  font-size: clamp(37px, 4.4vw, 65px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ap-design-visual p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.58;
}

.ap-design-points {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  background: var(--ap-line);
}

.ap-design-points article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 17px;
  padding: 25px 4px;
  background: #fff;
}

.ap-design-points svg {
  box-sizing: content-box;
  padding: 9px;
  border-radius: 50%;
  background: #e8f8ff;
  color: var(--ap-blue);
}

.ap-design-points h3 {
  margin: 0 0 7px;
  color: var(--ap-navy);
  font-size: 17px;
}

.ap-design-points p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Services chapter */

.ap-services {
  padding: 120px max(6vw, 30px);
  background: var(--ap-pale);
}

.ap-services-heading {
  max-width: 1160px;
  margin: 0 auto 75px;
}

.ap-service-stories {
  display: grid;
  gap: 90px;
  max-width: 1320px;
  margin: 0 auto;
}

.ap-service-story {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 65px;
  align-items: center;
}

.ap-service-story:nth-child(even) .ap-service-image {
  order: 2;
}

.ap-service-image {
  position: relative;
  height: min(65vh, 620px);
  min-height: 470px;
  overflow: hidden;
  border-radius: 29px;
  box-shadow: 0 23px 62px rgba(15, 73, 110, 0.12);
}

.ap-service-image img {
  object-fit: cover;
  transition: transform 0.75s ease;
}

.ap-service-story:hover .ap-service-image img {
  transform: scale(1.025);
}

.ap-service-content > span {
  color: var(--ap-blue);
  font-size: 11px;
  font-weight: 700;
}

.ap-service-content h3 {
  margin: 18px 0;
  color: var(--ap-deep);
  font-size: clamp(40px, 4.9vw, 71px);
  font-weight: 600;
  letter-spacing: -0.058em;
  line-height: 0.96;
}

.ap-service-content p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.65;
}

.ap-service-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: var(--ap-blue);
  font-size: 14px;
  font-weight: 700;
}

/* Results */

.ap-results {
  padding: 125px max(7vw, 40px);
  background: #fff;
}

.ap-results-heading {
  max-width: 1150px;
  margin-bottom: 55px;
}

.ap-results-heading > p:last-child {
  max-width: 680px;
  margin: 27px 0 0;
  color: var(--ap-muted);
  font-size: 17px;
  line-height: 1.62;
}

.ap-results .ls-comparison-stage {
  height: min(70vh, 710px);
  min-height: 540px;
  border-radius: 29px;
}

/* Future services */

.ap-future {
  padding: 115px 0 125px;
  background: var(--ap-pale);
}

.ap-future-card {
  position: relative;
  flex: 0 0 min(37vw, 530px);
  height: 570px;
  overflow: hidden;
  border-radius: 28px;
  background: #dcebf3;
  scroll-snap-align: center;
}

.ap-future-card > span {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.ap-future-card > div:last-child {
  position: absolute;
  right: 29px;
  bottom: 29px;
  left: 29px;
  color: #fff;
}

.ap-future-card p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ap-future-card h3 {
  margin: 0;
  font-size: clamp(33px, 3.9vw, 54px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

/* Contact */

.ap-contact {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  place-items: center;
}

.ap-contact > img {
  object-fit: cover;
}

.ap-contact-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(236, 249, 255, 0.4),
      rgba(220, 243, 255, 0.7)
    );
}

.ap-contact-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1050px;
  flex-direction: column;
  align-items: center;
  padding: 90px 25px;
  text-align: center;
}

.ap-contact-copy > img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.ap-contact-copy > p {
  margin: 22px 0 17px;
  color: #607c98;
  font-size: 14px;
  font-weight: 600;
}

.ap-contact-copy h2 {
  margin: 0;
  color: var(--ap-deep);
  font-size: clamp(64px, 9.6vw, 145px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.86;
}

.ap-contact-copy h2 span {
  display: block;
  color: var(--ap-blue);
}

.ap-contact-copy > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 0 21px;
  border-radius: 999px;
  background: var(--ap-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Footer */

.ap-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 135px;
  align-items: center;
  padding: 32px max(5vw, 25px);
  border-top: 1px solid var(--ap-line);
  background: #fff;
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-footer img {
  width: 170px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.ap-footer p {
  margin: 0;
  text-align: center;
}

.ap-footer a {
  justify-self: end;
  color: var(--ap-blue);
  font-weight: 700;
}

/* Reveal animation */

[data-ap-reveal] {
  transform: translateY(24px);
  opacity: 0.3;
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
}

[data-ap-reveal].ap-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Tablet */

@media (max-width: 1050px) {
  .ap-header {
    grid-template-columns: 1fr auto;
  }

  .ap-navigation,
  .ap-quote {
    display: none;
  }

  .ap-menu {
    justify-self: end;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ap-navy);
    color: #fff;
  }

  .ap-mobile-navigation {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    z-index: 4999;
    display: flex;
    height: calc(100svh - 64px);
    flex-direction: column;
    padding: 35px;
    background: rgba(255, 255, 255, 0.98);
  }

  .ap-mobile-navigation > a {
    padding: 17px 0;
    border-bottom: 1px solid var(--ap-line);
    color: var(--ap-deep);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.045em;
  }

  .ap-mobile-navigation .ap-mobile-quote {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 0;
    border-radius: 999px;
    background: var(--ap-blue);
    color: #fff;
    font-size: 14px;
  }

  .ap-introduction,
  .ap-design {
    grid-template-columns: 1fr;
  }

  .ap-introduction-copy {
    grid-column: auto;
  }

  .ap-design-copy {
    position: static;
  }

  .ap-service-story {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ap-service-story:nth-child(even) .ap-service-image {
    order: initial;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .ap-header {
    min-height: 60px;
    padding: 7px 15px;
  }

  .ap-brand {
    width: 145px;
    height: 34px;
  }

  .ap-hero-track {
    height: 160vh;
    min-height: 1020px;
  }

  .ap-hero-sticky {
    min-height: 620px;
  }

  .ap-hero-opening {
    width: calc(100% - 30px);
  }

  .ap-hero-opening > p {
    font-size: 10px;
  }

  .ap-hero-opening h1 {
    font-size: clamp(54px, 17vw, 79px);
  }

  .ap-hero-opening-copy {
    max-width: 355px;
    margin-top: 23px;
    font-size: 15px;
  }

  .ap-hero-media {
    width: calc(78vw + var(--ap-progress) * 19vw);
    height: calc(43vh + var(--ap-progress) * 41vh);
    transform:
      translate(-50%, -50%)
      translateY(
        calc(29vh - var(--ap-progress) * 29vh)
      );
    border-radius:
      calc(26px - var(--ap-progress) * 14px);
  }

  .ap-hero-media-label {
    top: 14px;
    left: 14px;
    font-size: 7px;
  }

  .ap-hero-conclusion {
    bottom: 7vh;
  }

  .ap-hero-conclusion h2 {
    font-size: clamp(48px, 14vw, 69px);
  }

  .ap-hero-progress {
    right: 14px;
    bottom: 17px;
  }

  .ap-introduction,
  .ap-design,
  .ap-services,
  .ap-results {
    padding: 88px 20px;
  }

  .ap-introduction {
    gap: 29px;
  }

  .ap-introduction h2,
  .ap-design-copy h2,
  .ap-services-heading h2,
  .ap-results-heading h2 {
    font-size: clamp(46px, 14vw, 69px);
  }

  .ap-section-heading {
    display: block;
    margin-bottom: 38px;
    padding: 0 20px;
  }

  .ap-section-heading h2 {
    font-size: clamp(49px, 15vw, 73px);
  }

  .ap-section-heading > p {
    margin-top: 22px;
    font-size: 15px;
  }

  .ap-highlights,
  .ap-future {
    padding: 88px 0 96px;
  }

  .ap-highlight-scroller,
  .ap-future-scroller {
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .ap-highlight-card {
    flex-basis: 88vw;
    height: 61vh;
    min-height: 490px;
    border-radius: 24px;
  }

  .ap-highlight-copy {
    padding: 25px;
  }

  .ap-highlight-copy h3 {
    font-size: clamp(35px, 11vw, 50px);
  }

  .ap-design-visual {
    height: 61vh;
    min-height: 490px;
    border-radius: 24px;
  }

  .ap-design-visual > div:last-child {
    right: 23px;
    bottom: 23px;
    left: 23px;
  }

  .ap-design-points article {
    padding: 22px 0;
  }

  .ap-service-stories {
    gap: 68px;
  }

  .ap-service-image {
    height: 57vh;
    min-height: 430px;
    border-radius: 24px;
  }

  .ap-service-content h3 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .ap-results .ls-comparison-stage {
    height: 57vh;
    min-height: 460px;
    border-radius: 24px;
  }

  .ap-future-card {
    flex-basis: 82vw;
    height: 510px;
    border-radius: 24px;
  }

  .ap-contact {
    min-height: 80svh;
  }

  .ap-contact-copy h2 {
    font-size: clamp(56px, 17vw, 83px);
  }

  .ap-footer {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
    padding: 38px 20px;
  }

  .ap-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ap-reveal] {
    transform: none;
    opacity: 1;
  }
}

/* === APPLE HERO STICKY FIX V1 === */

/*
  Important:
  overflow:hidden on the page wrapper breaks the sticky hero.
*/

.ap-site {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.ap-hero-track {
  position: relative;
  height: 180svh;
  min-height: 1180px;
  overflow: visible;
}

.ap-hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
}

/* Keep the opening clean and readable */

.ap-hero-opening {
  top: 44%;
  width: min(1220px, calc(100% - 60px));
}

.ap-hero-opening > p {
  margin-bottom: 18px;
}

.ap-hero-opening h1 {
  font-size: clamp(64px, 7.8vw, 122px);
  line-height: 0.89;
  letter-spacing: -0.07em;
}

.ap-hero-opening-copy {
  max-width: 620px;
  margin-top: 25px;
  font-size: clamp(16px, 1.3vw, 20px);
}

/*
  Start the visual below the opening copy.
  It then expands into the full-screen cinematic frame.
*/

.ap-hero-media {
  top:
    calc(
      58% -
      (var(--ap-progress) * 8%)
    );

  width:
    calc(
      42vw +
      (var(--ap-progress) * 54vw)
    );

  height:
    calc(
      38vh +
      (var(--ap-progress) * 54vh)
    );

  min-height: 330px;

  transform:
    translate(-50%, -50%)
    translateY(
      calc(
        48vh -
        (var(--ap-progress) * 48vh)
      )
    );

  border-radius:
    calc(
      34px -
      (var(--ap-progress) * 22px)
    );
}

.ap-hero-media-label {
  z-index: 3;
}

/* Prevent the ending text from appearing too early */

.ap-hero-conclusion {
  bottom: 7vh;

  opacity:
    clamp(
      0,
      calc(
        (var(--ap-progress) - 0.62) * 3.6
      ),
      1
    );
}

/* Do not show white progress indicators over the white opening */

.ap-hero-progress {
  opacity:
    clamp(
      0,
      calc(
        (var(--ap-progress) - 0.46) * 4
      ),
      1
    );
}

/* Ensure the following chapter begins immediately */

.ap-introduction {
  position: relative;
  z-index: 5;
  margin-top: 0;
  background: #fff;
}

/* Short desktop screens */

@media (min-width: 768px) and (max-height: 820px) {
  .ap-hero-opening {
    top: 43%;
  }

  .ap-hero-opening h1 {
    font-size: clamp(60px, 7.1vw, 105px);
  }

  .ap-hero-opening-copy {
    margin-top: 19px;
    font-size: 16px;
  }

  .ap-hero-media {
    min-height: 300px;
  }
}

/* Mobile hero sequencing */

@media (max-width: 767px) {
  .ap-site {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .ap-hero-track {
    height: 165svh;
    min-height: 980px;
  }

  .ap-hero-sticky {
    min-height: 600px;
  }

  .ap-hero-opening {
    top: 43%;
    width: calc(100% - 28px);
  }

  .ap-hero-opening h1 {
    font-size: clamp(52px, 15.5vw, 74px);
  }

  .ap-hero-opening-copy {
    max-width: 340px;
    margin-top: 20px;
    font-size: 14px;
  }

  .ap-hero-media {
    top:
      calc(
        59% -
        (var(--ap-progress) * 9%)
      );

    width:
      calc(
        76vw +
        (var(--ap-progress) * 21vw)
      );

    height:
      calc(
        34vh +
        (var(--ap-progress) * 50vh)
      );

    transform:
      translate(-50%, -50%)
      translateY(
        calc(
          44vh -
          (var(--ap-progress) * 44vh)
        )
      );
  }
}

/* === APPLE MOBILE HERO FINAL FIX === */

@media (max-width: 767px) {
  /*
    Keep the cinematic animation, but reduce the long release area
    that previously appeared as an empty white screen.
  */

  .ap-hero-track {
    height: 132svh;
    min-height: 820px;
  }

  /*
    Reserve the fixed-header area so the closing message never
    moves underneath the navigation.
  */

  .ap-hero-sticky {
    top: 60px;
    height: calc(100svh - 60px);
    min-height: 540px;
  }

  .ap-hero-opening {
    top: 42%;
  }

  .ap-hero-opening > p {
    margin-bottom: 17px;
  }

  .ap-hero-opening h1 {
    font-size: clamp(50px, 14.8vw, 70px);
    line-height: 0.91;
    letter-spacing: -0.065em;
  }

  .ap-hero-opening-copy {
    max-width: 335px;
    margin-top: 21px;
    font-size: 14px;
    line-height: 1.55;
  }

  /*
    The image still enters from below and expands, but now finishes
    cleanly inside the available mobile viewport.
  */

  .ap-hero-media {
    top:
      calc(
        59% -
        (var(--ap-progress) * 9%)
      );

    width:
      calc(
        78vw +
        (var(--ap-progress) * 19vw)
      );

    height:
      calc(
        34vh +
        (var(--ap-progress) * 50vh)
      );

    transform:
      translate(-50%, -50%)
      translateY(
        calc(
          44vh -
          (var(--ap-progress) * 44vh)
        )
      );

    border-radius:
      calc(
        25px -
        (var(--ap-progress) * 13px)
      );
  }

  .ap-hero-conclusion {
    bottom: 4.5vh;
    width: calc(100% - 30px);
  }

  .ap-hero-conclusion > p {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .ap-hero-conclusion h2 {
    font-size: clamp(42px, 12.5vw, 59px);
    line-height: 0.9;
    letter-spacing: -0.062em;
  }

  .ap-hero-conclusion a {
    min-height: 42px;
    margin-top: 15px;
    padding: 0 17px;
    font-size: 11px;
  }

  /*
    The small 03 / 03 progress UI is unnecessary on a narrow screen
    and was visually competing with the call-to-action.
  */

  .ap-hero-progress {
    display: none;
  }

  /*
    Bring the next editorial chapter into view sooner.
  */

  .ap-introduction {
    padding-top: 52px;
  }
}

