/* HERO
   ----------------------------- */

section.hero {
   position: sticky;
   top: min(0px, calc(100svh - 37.5rem));
   z-index: 1;
   height: 100svh;
   min-height: 37.5rem;
   display: flex;
   overflow: hidden;
}

section.hero .background {
   position: absolute;
   inset: 0;
   margin: 0;
   z-index: 0;
}

section.hero .background img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

section.hero .background .overlay {
   display: block;
   position: absolute;
   inset: 0;
   background-color: rgba(32, 39, 46, 0.5);
}

section.hero .c-wrap {
   position: relative;
   z-index: 1;
   align-self: stretch;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   gap: 2rem;
   padding-top: clamp(1.25rem, calc(1.036rem + 1.071vw), 2rem);
   padding-bottom: clamp(1.875rem, calc(1.661rem + 1.071vw), 2.625rem);
}

section.hero .top-wrap {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 1.5rem;
}

section.hero .logo {
   margin: 0;
}

section.hero .logo a {
   display: block;
   position: relative;
   -webkit-tap-highlight-color: transparent;
}

section.hero .logo .layer {
   position: absolute;
   pointer-events: none;
   -webkit-backdrop-filter: blur(40px);
   backdrop-filter: blur(40px);
}

section.hero .logo .layer:nth-of-type(1) {
   left: 70.53%;
   top: 0;
   width: 29.47%;
   height: 68.43%;
   border-radius: 0 100% 100% 0 / 0 50% 50% 0;
}

section.hero .logo .layer:nth-of-type(2) {
   left: 9.21%;
   top: 0;
   width: 29.47%;
   height: 34.22%;
   border-radius: 50%;
}

section.hero .logo svg {
   display: block;
   position: relative;
   width: clamp(4.25rem, calc(3.12rem + 3.617vw), 6.375rem);
   height: auto;
}

section.hero .bottom-wrap {
   display: flex;
   align-items: last baseline;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 2rem;
}

section.hero h1 {
   color: var(--soft-white);
   text-wrap: balance;
   max-width: 9.5em;
   margin: 0;
   text-box: trim-both cap alphabetic;
}

section.hero h1 span {
   opacity: 0.7;
}

section.hero .tagline {
   color: var(--soft-white);
   margin: 0;
}


@media (max-width: 1024px) {
   section.hero {
      top: min(0px, calc(100svh - 30rem));
      height: 85svh;
      min-height: 30rem;
   }

   section.hero .c-wrap {
      padding-bottom: 5.125rem;
   }

   section.hero + section {
      margin-top: -2.5rem;
   }
}

@media (max-width: 767px) {
   section.hero .bottom-wrap {
      gap: 1.5rem;
   }
}


/* GALLERY
   ----------------------------- */

section.gallery {
   --detail-w: clamp(14rem, min(calc(10.8085rem + 10.2128vw), calc(17.4286rem + 2.8571vw)), 22rem);
   --arrow-size: clamp(2.75rem, min(calc(2.5505rem + 0.6383vw), calc(2.6429rem + 0.5357vw)), 3.5rem);
   --slide-title-size: clamp(2.75rem, min(calc(1.6197rem + 3.617vw), calc(3.9107rem + 1.0714vw)), 5.625rem);
   --counter-size: clamp(0.875rem, min(calc(0.8418rem + 0.1064vw), calc(0.8571rem + 0.0893vw)), 1rem);
   --controls-inset: clamp(1.25rem, min(calc(0.8511rem + 1.2766vw), calc(1.6786rem + 0.3571vw)), 2.25rem);
   --controls-gap: clamp(0.75rem, min(calc(0.617rem + 0.4255vw), calc(0.8393rem + 0.1786vw)), 1.125rem);
   --arrow-border: rgba(249, 248, 246, 0.3);
   position: relative;
   z-index: 2;
   background-color: var(--off-white);
   border-radius: 2.5rem 2.5rem 0 0;
   padding-top: var(--row-padding-xl);
}

section.gallery + section.form {
   border-radius: 0;
}

section.gallery .c-wrap {
   text-align: center;
}

section.gallery .info {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--gap-m);
}

section.gallery h2 {
   max-width: 9em;
}

section.gallery .slider {
   margin: 2.5rem var(--container-padding) 0;
   padding-bottom: calc(var(--detail-w) * 0.34375);
   -webkit-user-select: none;
   user-select: none;
}

section.gallery .slider.is-draggable {
   cursor: grab;
}

section.gallery .slider.is-dragging {
   cursor: grabbing;
}

section.gallery .stage {
   position: relative;
   height: clamp(35rem, min(calc(24.6941rem + 32.9787vw), calc(47.4643rem + 7.6786vw)), 59.75rem);
   color: var(--soft-white);
}

section.gallery .backgrounds {
   position: absolute;
   inset: 0;
   z-index: 0;
   overflow: clip;
   background-color: var(--blue-darkest);
   border-radius: var(--radius);
}

section.gallery .backgrounds::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 200;
   background-color: var(--overlay);
}

section.gallery .background {
   position: absolute;
   inset: 0;
   margin: 0;
}

section.gallery .background .image {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

section.gallery .titles {
   position: absolute;
   inset: 0 0 12%;
   z-index: 3;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: clip;
}

section.gallery .title {
   position: absolute;
   max-width: 80%;
   padding: 0;
   font-family: var(--font-titles);
   font-size: var(--slide-title-size);
   font-weight: 400;
   line-height: 1;
   letter-spacing: 0.015em;
   text-transform: uppercase;
   text-align: center;
   color: var(--soft-white);
   background: none;
   border: none;
   cursor: pointer;
}

section.gallery .details {
   position: absolute;
   left: 50%;
   bottom: 0;
   z-index: 3;
   width: var(--detail-w);
   aspect-ratio: 4 / 5;
   overflow: hidden;
   border-radius: var(--radius);
   transform: translate(-50%, 27.5%);
}

section.gallery .detail {
   position: absolute;
   inset: 0;
   margin: 0;
   overflow: hidden;
}

section.gallery .detail .image {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   pointer-events: none;
}

section.gallery .slider:not(.is-ready) :is(.background, .detail):not(:first-child) {
   visibility: hidden;
}

section.gallery .slider:not(.is-ready) .title:not(:first-child) {
   display: none;
}

section.gallery .status {
   position: absolute;
   width: 1px;
   height: 1px;
   margin: -1px;
   padding: 0;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

section.gallery .controls {
   position: absolute;
   inset: 0;
   z-index: 4;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   padding: var(--gap-m) var(--controls-inset) var(--controls-inset);
   pointer-events: none;
}

section.gallery .counter {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: var(--counter-size);
   font-weight: 500;
   line-height: 1.6;
   letter-spacing: 0.03em;
   font-variant-numeric: tabular-nums;
}

section.gallery .progress {
   width: 6rem;
   height: 2px;
   overflow: hidden;
   background-color: rgba(249, 248, 246, 0.25);
   border-radius: var(--radius-pill);
}

section.gallery .fill {
   display: block;
   height: 100%;
   background-color: var(--soft-white);
   transform-origin: left center;
   transform: scaleX(0);
}

section.gallery .arrows {
   align-self: flex-end;
   display: flex;
   gap: 0.375rem;
   pointer-events: auto;
}

section.gallery .arrow {
   position: relative;
   isolation: isolate;
   display: grid;
   place-items: center;
   width: var(--arrow-size);
   height: var(--arrow-size);
   padding: 0;
   color: var(--soft-white);
   background: none;
   border: 0;
   border-radius: 50%;
   box-shadow: inset 0 0 0 1px var(--arrow-border);
   cursor: pointer;
}

section.gallery .arrow::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background-color: var(--soft-white);
   border-radius: inherit;
   opacity: 0;
   transition: opacity 0.3s ease;
}

section.gallery .arrow svg {
   width: calc(var(--arrow-size) - 1.75rem);
   transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
   section.gallery .arrow:hover {
      color: var(--blue-darkest);
   }

   section.gallery .arrow:hover::before {
      opacity: 1;
   }
}

@media (forced-colors: active) {
   section.gallery .arrow {
      border: 1px solid ButtonText;
   }

   section.gallery .progress {
      forced-color-adjust: none;
      background-color: GrayText;
   }

   section.gallery .fill {
      forced-color-adjust: none;
      background-color: CanvasText;
   }
}

@media (scripting: none) {
   section.gallery .controls {
      display: none;
   }
}

@media (max-width: 767px) {
   section.gallery {
      --detail-w: min(clamp(14rem, min(calc(10.8085rem + 10.2128vw), calc(17.4286rem + 2.8571vw)), 22rem), calc(100vw - var(--container-padding) * 2 - (var(--controls-inset) + var(--arrow-size) + var(--controls-gap)) * 2));
   }

   section.gallery .arrows {
      align-self: stretch;
      justify-content: space-between;
   }
}

@media (max-width: 479px) {
   section.gallery .slider {
      margin-top: 1.75rem;
   }
}


/* FORM
   ----------------------------- */

section.form {
   position: relative;
   z-index: 2;
   background-color: var(--off-white);
   border-radius: 2.5rem 2.5rem 0 0;
   padding: var(--row-padding-xl) 0;
}

section.form .c-wrap {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   gap: 2rem;
}

section.form .info {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--gap-m);
}

section.form h2 {
   max-width: 9em;
}

section.form .form-wrap {
   width: 100%;
   max-width: 43.875rem;
   text-align: left;
}

section.form .form-wrap.is-iframe {
   background-color: var(--white);
   border-radius: 0.75rem;
}

section.form .form-wrap.is-iframe iframe {
   display: block;
   width: 100%;
   height: 50rem;
   border: 0;
}


/* MODAL
   ----------------------------- */

.modal {
   position: fixed;
   inset: 0;
   height: 100dvh;
   z-index: 999;
   pointer-events: none;
}

.modal .overlay {
   position: absolute;
   inset: 0;
   opacity: 0;
   visibility: hidden;
   pointer-events: auto;
   cursor: pointer;
   background-color: rgba(32, 39, 46, 0.6);
   -webkit-backdrop-filter: blur(8px);
   backdrop-filter: blur(8px);
   transition: opacity 1s cubic-bezier(0.87, 0, 0.13, 1), visibility 1s cubic-bezier(0.87, 0, 0.13, 1);
}

.modal[data-modal-status="active"] .overlay {
   opacity: 1;
   visibility: visible;
}

.modal .panel {
   position: absolute;
   top: 1.25rem;
   right: 1.25rem;
   bottom: 1.25rem;
   width: min(31.25rem, calc(100% - 6rem));
   pointer-events: auto;
   visibility: hidden;
   translate: calc(100% + 6rem) 0;
   transition: translate 1s cubic-bezier(0.87, 0, 0.13, 1), visibility 1s cubic-bezier(0.87, 0, 0.13, 1);
}

.modal[data-modal-status="active"] .panel {
   visibility: visible;
   translate: 0 0;
}

.modal .scroll {
   height: 100%;
   overflow-y: auto;
   overscroll-behavior: contain;
   background-color: var(--off-white);
   border-radius: 0.75rem;
   padding: 4.5rem 1.5rem;
   position: relative;
}

.modal .content {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.modal .content h4 {
   margin-top: 0.5rem;
}

.modal .content ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 0.125rem;
   font-size: var(--paragraph-size);
   line-height: 1.55;
}

.modal .content li {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.modal .content li::before {
   content: "";
   display: block;
   width: 0.625rem;
   height: 1px;
   background-color: var(--blue);
   flex-shrink: 0;
}

.modal .content a {
   color: inherit;
}

.modal .close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   z-index: 2;
}

.modal .content h3 {
   max-width: 8em;
}

@media (max-width: 479px) {
   .modal .panel {
      top: 1rem;
      right: 1rem;
      bottom: 1rem;
      width: calc(100% - 2rem);
   }
}

@media (prefers-reduced-motion: reduce) {
   .modal .overlay,
   .modal .panel {
      transition: none;
   }
}
