/* Three calm, scroll-led hero beats. Content stays in the document for SEO and
   degrades to three normal full-height sections when JavaScript is unavailable. */
html.page-home-root,
body.page-home {
  overflow-x: clip !important;
}

body.page-home {
  overflow-y: visible !important;
}

/* Keep the required consent control away from the proof and conversion actions
   when a new visitor reaches the third beat without making a cookie choice. */
body.page-home.gus-cookie-notice-visible:has(.hero-story[data-active-scene="3"]) .gus-cookie-notice {
  top: 86px !important;
  right: 22px !important;
  bottom: auto !important;
  left: auto !important;
}

.page-home .herro.hero-story {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  overflow: clip;
  background: #07150f;
  color: #fffaf0;
}

.page-home .herro.hero-story::before,
.page-home .herro.hero-story::after {
  content: none !important;
}

.page-home .hero-story__sticky {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #07150f;
}

.page-home .hero-story__scene {
  --hero-image-position: 58% 48%;
  --hero-image-scale-start: 1.105;
  --hero-image-scale-end: 1.025;
  --hero-image-filter: saturate(1.18) contrast(1.1) brightness(1.08);
  --hero-transform-origin: 60% 48%;
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

.page-home [data-hero-scene="1"] {
  --hero-image-position: 50% 62%;
  --hero-image-scale-start: 1.12;
  --hero-image-scale-end: 1.045;
  --hero-image-filter: saturate(1.2) contrast(1.08) brightness(0.98);
  --hero-transform-origin: 29% 72%;
}

.page-home [data-hero-scene="2"] {
  --hero-image-position: 50% 46%;
  --hero-image-scale-start: 1.09;
  --hero-image-scale-end: 1.018;
  --hero-image-filter: saturate(1.12) contrast(1.12) brightness(0.94);
  --hero-transform-origin: 52% 42%;
}

.has-js .page-home .herro.hero-story {
  height: 320vh !important;
  height: 320svh !important;
}

.has-js .page-home .hero-story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

.has-js .page-home .hero-story__scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 980ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 980ms;
}

.has-js .page-home .hero-story__scene.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.page-home .hero-story__media,
.page-home .hero-story__shade {
  position: absolute;
  inset: 0;
}

.page-home .hero-story__media {
  z-index: -2;
  overflow: hidden;
  background: #07150f;
}

.page-home .hero-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at var(--hero-transform-origin), transparent 18%, rgba(2, 12, 8, 0.04) 48%, rgba(2, 12, 8, 0.32) 100%),
    linear-gradient(180deg, rgba(255, 212, 124, 0.035), rgba(3, 17, 11, 0.09));
  box-shadow: inset 0 0 clamp(90px, 12vw, 190px) rgba(2, 12, 8, 0.38);
  pointer-events: none;
}

.page-home .hero-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-image-position);
  filter: var(--hero-image-filter);
  transform: scale(var(--hero-image-scale-start));
  transform-origin: var(--hero-transform-origin);
  transition:
    transform 6.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s ease;
}

.has-js .page-home .hero-story__scene.is-active .hero-story__media img {
  transform: scale(var(--hero-image-scale-end));
}

.page-home .hero-story__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 12, 8, 0.76) 0%, rgba(3, 16, 11, 0.5) 36%, rgba(3, 16, 11, 0.1) 70%, rgba(3, 16, 11, 0.02) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.015) 50%, rgba(0, 0, 0, 0.54) 100%);
}

.page-home [data-hero-scene="1"] .hero-story__shade {
  background:
    linear-gradient(90deg, rgba(2, 12, 8, 0.68) 0%, rgba(3, 16, 11, 0.42) 38%, rgba(3, 16, 11, 0.07) 70%, rgba(3, 16, 11, 0.01) 100%),
    linear-gradient(180deg, rgba(1, 9, 6, 0.18) 0%, rgba(1, 9, 6, 0.02) 48%, rgba(1, 9, 6, 0.48) 100%);
}

.page-home .hero-story__scene--act .hero-story__shade {
  background:
    linear-gradient(90deg, rgba(2, 12, 8, 0.42) 0%, rgba(3, 16, 11, 0.18) 54%, rgba(3, 16, 11, 0.04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(2, 15, 10, 0.07) 42%, rgba(2, 15, 10, 0.88) 100%);
}

.page-home .hero-story__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1480px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    clamp(116px, 15vh, 160px)
    clamp(32px, 7vw, 112px)
    clamp(76px, 10vh, 112px);
}

.page-home .hero-story__copy,
.page-home .hero-story__act {
  opacity: 1;
  transform: none;
}

.has-js .page-home .hero-story__copy,
.has-js .page-home .hero-story__act {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 150ms,
    transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1) 150ms;
}

.has-js .page-home .hero-story__scene.is-active :is(.hero-story__copy, .hero-story__act) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-home .hero-story__copy {
  width: min(820px, 100%);
  color: #fffaf0;
  text-align: left;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.54);
}

.page-home [data-hero-scene="1"] .hero-story__content {
  align-items: flex-start;
  padding-top: clamp(152px, 19vh, 210px);
}

.page-home .hero-story__folio {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 0 0 clamp(18px, 2.5vh, 28px);
  color: #f3c75e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.page-home .hero-story__folio::after {
  content: "";
  width: clamp(46px, 7vw, 92px);
  height: 1px;
  background: linear-gradient(90deg, #f3c75e, rgba(243, 199, 94, 0));
}

.page-home .hero-story__copy h1 {
  max-width: 14ch;
  margin: 0;
  color: #fffaf0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(3.5rem, 6.25vw, 6.7rem) !important;
  font-weight: 500;
  line-height: 0.94 !important;
  letter-spacing: -0.035em !important;
  text-align: left;
  text-wrap: balance;
}

.page-home .hero-story__lead {
  max-width: 25ch;
  margin: 0;
  color: #fffaf0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(2.2rem, 3.7vw, 4.15rem) !important;
  font-weight: 400;
  line-height: 1.08 !important;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.page-home .hero-story__content--act {
  align-items: flex-end;
  padding-bottom: clamp(70px, 9vh, 96px);
}

.page-home .hero-story__act {
  width: 100%;
}

.page-home .hero-story__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  width: 100%;
  margin: 0;
}

.page-home .hero-story__proof > span {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  gap: 2px 11px;
  color: #fffaf0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.54);
}

.page-home .hero-story__proof > span::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4bc32;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #173d2f;
  content: "\2713";
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.page-home .hero-story__proof strong,
.page-home .hero-story__proof small {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.page-home .hero-story__proof strong {
  align-self: end;
  color: #fffaf0;
  font-size: clamp(0.76rem, 0.9vw, 0.9rem);
  font-weight: 700;
  line-height: 1.24;
}

.page-home .hero-story__proof small {
  align-self: start;
  color: rgba(255, 250, 240, 0.76);
  font-size: clamp(0.62rem, 0.72vw, 0.71rem);
  font-weight: 400;
  line-height: 1.3;
}

.page-home .hero-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 40px);
}

.page-home .hero-story__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.page-home .hero-story__button--primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #f3c75e, #d5a73a);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  color: #15382b;
}

.page-home .hero-story__button--secondary {
  border-color: rgba(255, 250, 240, 0.72);
  background: rgba(5, 24, 17, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: #fffaf0;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.page-home .hero-story__button:hover,
.page-home .hero-story__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.page-home .hero-story__button--secondary:hover,
.page-home .hero-story__button--secondary:focus-visible {
  border-color: #fffaf0;
  background: #fffaf0;
  color: #173d2f;
}

.page-home .hero-story__button:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.94);
  outline-offset: 4px;
}

.page-home .hero-story__meter {
  display: none;
}

.has-js .page-home .hero-story__meter {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(18px, 3vw, 44px);
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-home .hero-story__meter span {
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.36);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: height 320ms ease, background-color 320ms ease;
}

.page-home .hero-story__meter span.is-active {
  height: 34px;
  background: #f4bc32;
}

.page-home .hero-story__mobile-controls,
.page-home .hero-story__swipe-cue {
  display: none;
}

@keyframes hero-story-swipe-cue {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(calc(-50% + 7px)); }
}

@media (max-width: 768px) {
  body.page-home.gus-cookie-notice-visible:has(.hero-story[data-active-scene="3"]) .gus-cookie-notice {
    top: calc(76px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
  }

  .has-js .page-home .herro.hero-story {
    height: auto !important;
    overflow: hidden;
  }

  /* Keep every image-and-copy scene in one horizontal rail on phones. The page
     owns vertical scrolling, so the carousel never depends on a CTA or a
     viewport reset before visitors can continue to the safari products. */
  .has-js .page-home .hero-story__sticky {
    position: relative;
    top: 0;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .has-js .page-home .hero-story__sticky::-webkit-scrollbar {
    display: none;
  }

  .has-js .page-home .hero-story__scene {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none;
  }

  .has-js .page-home .hero-story__content {
    height: 100%;
    min-height: 0;
  }

  .has-js .page-home .hero-story__meter {
    display: none;
  }

  .has-js .page-home .hero-story__mobile-controls {
    position: absolute;
    z-index: 6;
    right: 18px;
    top: auto;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    margin-inline: auto;
    padding: 6px 8px;
    border: 1px solid rgba(255, 250, 240, 0.3);
    border-radius: 999px;
    background: rgba(4, 20, 14, 0.5);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
  }

  .has-js .page-home .hero-story[data-active-scene="1"] .hero-story__swipe-cue {
    position: absolute;
    z-index: 6;
    top: 38%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 250, 240, 0.92);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.38));
    pointer-events: none;
    animation: hero-story-swipe-cue 1.8s ease-in-out infinite;
  }

  .page-home .hero-story__swipe-cue span {
    width: 66px;
    height: 4px;
    background: radial-gradient(circle, #f4bc32 1.5px, transparent 2px) left center / 12px 4px repeat-x;
  }

  .page-home .hero-story__swipe-cue::after {
    content: "\203A";
    font: 400 1.45rem/0.8 Arial, sans-serif;
  }

  .page-home .hero-story__mobile-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.16);
    color: #fffaf0;
    font: 400 1.75rem/1 Arial, sans-serif;
    cursor: pointer;
  }

  .page-home .hero-story__mobile-arrow:disabled {
    opacity: 0.34;
    cursor: default;
  }

  .page-home .hero-story__mobile-dots {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .page-home .hero-story__mobile-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.5);
    transition: width 220ms ease, background-color 220ms ease;
  }

  .page-home .hero-story__mobile-dots button.is-active {
    width: 25px;
    background: #f4bc32;
  }

  .page-home :is(.hero-story__mobile-arrow, .hero-story__mobile-dots button):focus-visible {
    outline: 2px solid #fffaf0;
    outline-offset: 3px;
  }

  .page-home .hero-story__media img {
    object-position: 55% 50%;
  }

  .page-home [data-hero-scene="1"] .hero-story__media img {
    object-position: 26% 64%;
  }

  .page-home [data-hero-scene="2"] .hero-story__media img {
    object-position: 52% 48%;
  }

  .page-home .hero-story__scene {
    --hero-image-scale-start: 1.07;
    --hero-image-scale-end: 1.014;
  }

  .page-home [data-hero-scene="1"] {
    --hero-image-scale-start: 1.075;
    --hero-image-scale-end: 1.025;
  }

  .page-home [data-hero-scene="2"] {
    --hero-image-scale-start: 1.06;
    --hero-image-scale-end: 1.01;
  }

  .page-home .hero-story__shade,
  .page-home .hero-story__scene--act .hero-story__shade {
    background:
      linear-gradient(180deg, rgba(1, 10, 7, 0.58) 0%, rgba(2, 13, 9, 0.22) 34%, rgba(2, 13, 9, 0.3) 58%, rgba(2, 13, 9, 0.88) 100%),
      linear-gradient(90deg, rgba(2, 13, 9, 0.36), rgba(2, 13, 9, 0.12));
  }

  .page-home .hero-story__content {
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    padding:
      calc(104px + env(safe-area-inset-top, 0px))
      22px
      calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .hero-story__copy {
    width: 100%;
    text-align: left;
  }

  .page-home [data-hero-scene="1"] .hero-story__content {
    align-items: flex-start;
    padding-top: calc(132px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .hero-story__copy h1 {
    max-width: 14ch;
    margin-inline: 0;
    font-size: clamp(2.65rem, 11.6vw, 4.15rem) !important;
    line-height: 0.96 !important;
    text-align: left;
  }

  .page-home .hero-story__lead {
    max-width: 18ch;
    margin-inline: 0;
    font-size: clamp(2rem, 8.6vw, 3rem) !important;
    line-height: 1.08 !important;
    text-align: left;
  }

  .page-home .hero-story__folio {
    margin-bottom: 16px;
    font-size: 0.62rem;
  }

  .page-home .hero-story__content--act {
    align-items: flex-end;
    justify-content: stretch;
    padding:
      calc(96px + env(safe-area-inset-top, 0px))
      18px
      calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .hero-story__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .page-home .hero-story__proof > span {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 1px 8px;
  }

  .page-home .hero-story__proof > span::before {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .page-home .hero-story__proof strong {
    font-size: clamp(0.66rem, 3vw, 0.76rem);
  }

  .page-home .hero-story__proof small {
    font-size: clamp(0.54rem, 2.45vw, 0.64rem);
  }

  .page-home .hero-story__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: clamp(22px, 4vh, 30px);
  }

  .page-home .hero-story__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-block: 11px;
    font-size: 0.69rem;
  }

}

@media (max-width: 380px), (max-height: 650px) {
  .page-home .hero-story__content--act {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .hero-story__proof {
    gap: 12px 9px;
  }

  .page-home .hero-story__proof > span {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 1px 6px;
  }

  .page-home .hero-story__proof > span::before {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .page-home .hero-story__actions {
    margin-top: 18px;
  }

  .page-home .hero-story__button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-story__scene,
  .page-home .hero-story__media img,
  .page-home .hero-story__copy,
  .page-home .hero-story__act,
  .page-home .hero-story__meter span,
  .page-home .hero-story__button {
    animation: none !important;
    transition: none !important;
  }

  .page-home .hero-story__swipe-cue {
    animation: none !important;
  }

  .has-js .page-home .hero-story__copy,
  .has-js .page-home .hero-story__act,
  .has-js .page-home .hero-story__scene.is-active :is(.hero-story__copy, .hero-story__act) {
    transform: none;
  }
}
