html {
  scroll-behavior: auto;
  overscroll-behavior: none;
  background: #082f34;
}

body.luxury-home {
  margin: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: #082f34;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

/* On the homepage the navbar must always stay visible. Some shared navbar
   behaviour may apply transforms while scrolling; explicitly neutralise it. */
.luxury-home .navbar_new,
.luxury-home .navbar_new.nav-minimal,
.luxury-home .navbar_new.nav-solid {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10000 !important;
}

.luxury-home main,
.luxury-home .main-content,
.luxury-home .content {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.coco-landing.coco-story-feed {
  --story-header-height: 0px;
  --story-viewport-height: calc(100lvh - var(--story-header-height));
  position: fixed;
  top: var(--story-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: var(--story-viewport-height);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  scroll-snap-type: y mandatory;
  scroll-padding: 0;
  -webkit-overflow-scrolling: touch;
  background: #082f34;
}

.coco-story {
  --story-pad-x: clamp(24px, 6vw, 96px);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: var(--story-viewport-height);
  min-height: var(--story-viewport-height);
  max-height: var(--story-viewport-height);
  display: flex;
  flex: 0 0 var(--story-viewport-height);
  overflow: hidden;
  background: linear-gradient(145deg, #0b3739 0%, #096b78 100%);
  color: #f8f4ea;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.coco-story--half {
  height: calc(var(--story-viewport-height) * .5);
  min-height: calc(var(--story-viewport-height) * .5);
  max-height: calc(var(--story-viewport-height) * .5);
  flex-basis: calc(var(--story-viewport-height) * .5);
}

.coco-story__media,
.coco-story__overlay {
  position: absolute;
  inset: 0;
}

.coco-story__media {
  z-index: -3;
}

.coco-story__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coco-story__overlay {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 23, 27, .82) 0%, rgba(2, 23, 27, .48) 52%, rgba(2, 23, 27, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .28) 100%);
}

.coco-story__inner {
  position: relative;
  width: min(1600px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(64px, 9vh, 118px) var(--story-pad-x) clamp(42px, 6vh, 78px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.coco-story__copy {
  width: min(760px, 100%);
  max-height: 100%;
}

.coco-story .coco-kicker {
  margin: 0 0 18px;
  font-size: clamp(12px, 1.2vw, 18px);
  line-height: 1.2;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(239, 219, 178, .95);
}

.coco-story .coco-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(48px, 7.3vw, 118px);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 400;
  color: #fffaf1;
  text-wrap: balance;
}

.coco-story .coco-text {
  max-width: 38ch;
  margin: clamp(22px, 4vh, 42px) 0 0;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.28;
  color: rgba(255, 250, 241, .78);
}

.coco-story .coco-hero__actions {
  margin-top: 34px;
}

.coco-story .coco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 31, 34, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  font-size: 16px;
}

.coco-story--text_right .coco-story__inner {
  justify-content: flex-end;
}

.coco-story--text_right .coco-story__overlay {
  background:
    linear-gradient(270deg, rgba(2, 23, 27, .84) 0%, rgba(2, 23, 27, .48) 52%, rgba(2, 23, 27, .14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .30) 100%);
}

.coco-story--centered .coco-story__inner {
  justify-content: center;
  text-align: center;
}

.coco-story--centered .coco-story__copy {
  width: min(980px, 100%);
}

.coco-story--centered .coco-title,
.coco-story--centered .coco-text {
  margin-left: auto;
  margin-right: auto;
}

.coco-story--image_top .coco-story__media {
  display: none;
}

.coco-story--image_top .coco-story__overlay {
  background: linear-gradient(145deg, #0b3739 0%, #096b78 100%);
}

.coco-story--image_top .coco-story__inner {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(20px, 3vh, 36px);
}

.coco-story__inline-image {
  width: 100%;
  height: min(42%, 520px);
  overflow: hidden;
  border-radius: 30px;
}

.coco-story__inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coco-story--image_top .coco-story__copy {
  width: min(1040px, 100%);
}

.coco-story--image_top .coco-title {
  max-width: 16ch;
}

.coco-story--empty {
  height: var(--story-viewport-height);
  min-height: var(--story-viewport-height);
}

@media (max-width: 760px) {
  .coco-story {
    --story-pad-x: 20px;
  }

  .coco-story--half {
    height: calc(var(--story-viewport-height) * .72);
    min-height: calc(var(--story-viewport-height) * .72);
    max-height: calc(var(--story-viewport-height) * .72);
    flex-basis: calc(var(--story-viewport-height) * .72);
  }

  .coco-story__inner {
    padding-top: clamp(28px, 4.5vh, 50px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    align-items: center;
  }

  .coco-story__copy {
    max-height: calc(100% - 4px);
  }

  .coco-story .coco-kicker {
    margin-bottom: 12px;
    font-size: clamp(11px, 3.2vw, 14px);
    letter-spacing: .24em;
  }

  .coco-story .coco-title {
    max-width: 10.8ch;
    font-size: clamp(40px, 11.5vw, 62px);
    line-height: .91;
  }

  .coco-story .coco-text {
    max-width: 34ch;
    margin-top: clamp(14px, 2.2vh, 22px);
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.25;
  }

  .coco-story .coco-hero__actions {
    margin-top: 18px;
  }

  .coco-story .coco-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  .coco-story--text_right .coco-story__inner,
  .coco-story--centered .coco-story__inner {
    justify-content: flex-start;
  }

  .coco-story--text_right .coco-story__copy,
  .coco-story--centered .coco-story__copy {
    text-align: left;
  }

  .coco-story--centered .coco-title,
  .coco-story--centered .coco-text {
    margin-left: 0;
    margin-right: 0;
  }

  .coco-story__overlay,
  .coco-story--text_right .coco-story__overlay {
    background:
      linear-gradient(180deg, rgba(1, 18, 21, .06) 0%, rgba(1, 18, 21, .20) 34%, rgba(1, 18, 21, .88) 100%);
  }

  .coco-story--image_top .coco-story__inner {
    align-items: stretch;
    justify-content: center;
  }

  .coco-story__inline-image {
    height: min(36%, 300px);
    border-radius: 20px;
  }
}

@media (max-width: 390px), (max-height: 760px) {
  .coco-story__inner {
    padding-top: 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .coco-story .coco-kicker {
    font-size: 10px;
    margin-bottom: 9px;
  }

  .coco-story .coco-title {
    font-size: clamp(36px, 10.7vw, 52px);
    line-height: .9;
  }

  .coco-story .coco-text {
    margin-top: 12px;
    font-size: clamp(15px, 3.9vw, 18px);
  }
}

@media (display-mode: standalone) {
  html,
  body.luxury-home {
    height: 100lvh;
    min-height: 100lvh;
  }

  .coco-landing.coco-story-feed {
    top: var(--story-header-height);
    bottom: 0;
    height: auto;
  }
}
