.hero-gradient {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #f2b57e;
  --hero-blue-x: 18%;
  --hero-blue-y: 20%;
  --hero-blue-size-x: 80%;
  --hero-blue-size-y: 70%;
  --hero-gold-x: 72%;
  --hero-gold-y: 58%;
  --hero-gold-size-x: 85%;
  --hero-gold-size-y: 82%;
  --hero-orange-x: 88%;
  --hero-orange-y: 96%;
  --hero-orange-size-x: 40%;
  --hero-orange-size-y: 34%;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(
      ellipse var(--hero-blue-size-x) var(--hero-blue-size-y) at
        var(--hero-blue-x) var(--hero-blue-y),
      #b5d0e9 0%,
      #b5d0e9 55%,
      transparent 100%
    ),
    radial-gradient(
      ellipse var(--hero-orange-size-x) var(--hero-orange-size-y) at
        var(--hero-orange-x) var(--hero-orange-y),
      #f37321 0%,
      #f37321 55%,
      transparent 100%
    ),
    radial-gradient(
      ellipse var(--hero-gold-size-x) var(--hero-gold-size-y) at
        var(--hero-gold-x) var(--hero-gold-y),
      #f2b57e 0%,
      #f2b57e 70%,
      transparent 100%
    );
}

.hero-gradient__content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: start;
}

.hero-title-group {
  position: relative;
  z-index: 10;
}

.hero-gradient svg {
  max-width: 291px;
  margin: 0 auto;
  width: 100%;
  position: absolute;
  /* Same inset as .mobile-menu-toggle; the viewBox is trimmed to the
     glyphs' right edge so the visible stroke lines up with it. */
  right: 1.5rem;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 5;
  color: #fff;
  pointer-events: none;
  animation: hero-scroll-cue-bounce 2.2s ease-in-out infinite;
}

.hero-scroll-cue svg {
  position: static;
  width: 40px;
  height: 40px;
  max-width: none;
  margin: 0;
  display: block;
}

@keyframes hero-scroll-cue-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue {
    animation: none;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  #mark {
    max-height: 100svh;
    width: auto;
    max-width: none;
  }

  .hero-gradient {
    height: 100svh;
    --hero-blue-x: 50%;
    --hero-blue-y: 5%;
    --hero-blue-size-x: 140%;
    --hero-blue-size-y: 45%;
    --hero-gold-x: 50%;
    --hero-gold-y: 50%;
    --hero-gold-size-x: 140%;
    --hero-gold-size-y: 55%;
    --hero-orange-x: 50%;
    --hero-orange-y: 100%;
    --hero-orange-size-x: 100%;
    --hero-orange-size-y: 34%;
  }
}

.image-captions-section {
  --line-height: 150px;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.image-captions-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

picture {
  display: contents;
}

.image-captions-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.dot-line-group {
  --dot-size: 8px;
  position: absolute;
  transform: translate(-50%, calc(-100% + var(--dot-size) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  visibility: hidden;
  perspective: 300px;
}

.icon {
  width: 60px;
  object-fit: contain;
  margin-bottom: 0.125rem;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-captions-container.is-visible .icon {
  opacity: 1;
  transform: scale(1);
}

.line {
  width: 1px;
  background-color: #ffffffaa;
  opacity: 0.8;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.7s ease-out;
}

.image-captions-container.is-visible .line {
  transform: scaleY(1);
}

.dot-line-group .line {
  transition-delay: calc(var(--i, 0) * 0.15s);
  --line-percent: 30;
}

.dot-line-group .icon {
  transition-delay: calc(0.7s + var(--i, 0) * 0.15s);
}

.icon-link {
  display: block;
  line-height: 0;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.icon-link:hover {
  transform: scale(1.1);
}

.icon-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.dot-line-group:nth-child(1) .line {
  transition-delay: 0s;
  --line-percent: 35;
}

.dot-line-group:nth-child(1) .icon {
  transition-delay: 0.7s;
}

.dot-line-group:nth-child(2) .line {
  transition-delay: 0.15s;
  --line-percent: 30;
}

.dot-line-group:nth-child(2) .icon {
  transition-delay: 0.85s;
}

.dot-line-group:nth-child(3) .line {
  transition-delay: 0.3s;
  --line-percent: 35;
}

.dot-line-group:nth-child(3) .icon {
  transition-delay: 1s;
}

.dot-line-group:nth-child(4) .line {
  transition-delay: 0.45s;
  --line-percent: 35;
}

.dot-line-group:nth-child(4) .icon {
  transition-delay: 1.15s;
}

.dot-line-group:nth-child(5) .line {
  transition-delay: 0.6s;
  --line-percent: 38;
}

.dot-line-group:nth-child(5) .icon {
  transition-delay: 1.3s;
}

.dot-line-group:nth-child(6) .line {
  transition-delay: 0.75s;
  --line-percent: 34;
}

.dot-line-group:nth-child(6) .icon {
  transition-delay: 1.45s;
}

.dot {
  width: var(--dot-size);
  height: var(--dot-size);
  background-color: white;
  border-radius: 50%;
  margin-top: -6px;
}

.content-section {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  overflow: hidden;
  --content-orange-x: 80%;
  --content-orange-y: 92%;
  --content-gold-x: 75%;
  --content-gold-y: 40%;
}

.content-section::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 200%;
  z-index: -1;
  filter: saturate(1.4);
  background: linear-gradient(90deg, #b5d0e9 0%, transparent 80%);
  background-repeat: no-repeat;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 25%,
    black 55%,
    black 100%
  );
}

.content-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 200%;
  z-index: -2;
  filter: saturate(1.4);
  background:
    radial-gradient(
      ellipse 850px 500px at var(--content-gold-x) var(--content-gold-y),
      #f2b57e 0%,
      #f2b57e 80%,
      transparent 120%
    ),
    radial-gradient(
      ellipse 1000px 1500px at var(--content-orange-x) var(--content-orange-y),
      #f37321 0%,
      #f37321 60%,
      transparent 120%
    );
  background-repeat: no-repeat;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    black 80%,
    black 100%
  );
}

.content-section .categories {
  padding: 1.375rem 0 4rem 0;
}

.content-section .why-pas {
  padding: 4rem 0;
}

.content-section .categories {
  display: grid;
  grid-template-columns: minmax(30%, 400px) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "header image" "list image";
  gap: 2rem;
  max-width: 1000px;
}

.categories-header {
  grid-area: header;
}

.category-grid {
  display: contents;
}

.category-grid__list {
  grid-area: list;
}

.category-grid__img {
  grid-area: image;
}

.category-numbers {
  display: none;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: start;
  align-items: center;
}

.category-number {
  font-size: 2rem;
  font-weight: 400;
  opacity: 0.3;
  cursor: pointer;
  flex-shrink: 0;
  will-change: transform;
}

/* Transitions switch on only after the first measurement, so the numbers
   don't visibly slide into place on page load. */
.category-numbers.is-ready .category-number {
  transition:
    opacity 0.3s ease,
    font-weight 0.3s ease,
    transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Numbers after the active one slide to the right edge. --numbers-free is
   the row's leftover width, measured in categories-scroll.js. Uses
   transform (GPU) rather than flex-grow (re-layout every frame). */
.category-number.is-after-active {
  transform: translateX(var(--numbers-free, 0px));
}

/* Reserve the bold width up front so switching weight never changes the
   number's width and nudges its neighbours. */
.category-number::after {
  content: attr(data-label);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
}

.category-number.active {
  opacity: 1;
  font-weight: 600;
}

.category-grid__img {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  aspect-ratio: 1650 / 2026;
  overflow: hidden;
}

.category-grid__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-grid__img img.category-overlay {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.category-grid__img img.category-overlay.active {
  opacity: 1;
}

.category {
  cursor: pointer;
}

.category h3 {
  transition: color 0.3s ease;
}

.category.active h3 {
  color: var(--category-color, inherit);
}

.category-grid__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.category-grid__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-grid__list li {
  line-height: 1.2;
  font-size: 0.875rem;
}

.category-grid__list h3 {
  margin-bottom: 0.5rem;
}

.why-pas h2 {
  margin-bottom: 1.75rem;
}

.why-pas p {
  font-size: 1rem;
  line-height: 1.3;
}

.why-pas .stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1.5rem;
  column-gap: 2rem;
  width: 50%;
  max-width: 600px;
}

.why-pas .stats .stat .stat-number {
  font-size: 1.875rem;
  line-height: 1;
}

.why-pas .stats .stat .stat-label {
  font-size: 1rem;
  line-height: 1.15;
}

.why-pas-cta {
  display: inline-block;
  margin-top: 3rem;
  border: 1px solid black;
  padding: 0.5rem 1.5rem;
  color: #000;
}

.why-pas-cta--secondary {
  display: block;
  margin-top: 1.25rem;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hr-line {
  background-color: #fff;
  width: calc(100% + 4rem);
  height: 1px;
  transform: translateX(-2rem);
}

@media (max-width: 768px) {
  .hero-title-group {
    margin-bottom: 2rem;
  }

  .hero-scroll-cue {
    bottom: 1rem;
  }

  .hero-scroll-cue svg {
    display: block;
  }
}

@media (max-width: 1023px) {
  .line {
    opacity: 0.6;
  }
  .home-panel section {
    padding-top: 2rem !important;
  }

  .image-captions-section {
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .image-captions-background {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .image-captions-container {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }

  .sidebar-navigation {
    --orange-x: 130%;
    --orange-y: 0%;
    --gold-x: 50%;
    --gold-y: 100%;
    --blue-x: 0%;
    --blue-y: 10%;
  }

  .content-section .categories {
    display: block;
  }

  .category-numbers {
    display: flex;
  }

  .category-grid__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-top: 2rem;
    scroll-behavior: smooth;
    gap: 0;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    flex-direction: row;
  }

  .category-grid__list::-webkit-scrollbar {
    display: none;
  }

  .category-grid__list .category {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .category-grid__list .category:first-child {
    padding-left: 0;
  }

  .category-grid__list .category:last-child {
    padding-right: 0;
  }

  .category-grid__img {
    max-width: none;
    margin-left: 0;
    margin-top: 2rem;
  }

  .why-pas .stats {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .content-section::before {
    content: none;
  }

  .content-section {
    --content-blue-x: 0%;
    --content-blue-y: 40%;
    --content-orange-x: 75%;
    --content-orange-y: 80%;
    --content-gold-x: 88%;
    --content-gold-y: 45%;
  }

  .content-section::after {
    background:
      radial-gradient(
        ellipse 600px 800px at var(--content-blue-x) var(--content-blue-y),
        #cbebfe 0%,
        #cbebfe 40%,
        transparent 80%
      ),
      radial-gradient(
        ellipse 340px 600px at var(--content-gold-x) var(--content-gold-y),
        #f2b57e 0%,
        #f2b57e 80%,
        transparent 150%
      ),
      radial-gradient(
        ellipse 1000px 1000px at var(--content-orange-x) var(--content-orange-y),
        #f37321 0%,
        transparent 200%
      );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 30%,
      black 70%,
      black 100%
    );
  }

  .icon {
    width: 28px;
  }

  .dot-line-group {
    --dot-size: 5px;
  }

  .hero-scroll-cue svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .home-scroller {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }

  @supports (height: 100dvh) {
    .home-scroller {
      height: 100dvh;
    }
  }

  .home-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.8s ease,
      visibility 0s linear 0.8s;
  }

  .home-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.8s ease;
  }

  .content-page {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}
