/**
 * Ethos Horizon Reveal.
 * A 2.2-second, first-visit cinematic transition into the unchanged home hero.
 */

.ethos-home-intro {
  animation: ethos-home-intro-failsafe 1ms linear 3.2s forwards;
  display: none;
  inset: 0;
  isolation: isolate;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  position: fixed;
  visibility: visible;
  z-index: 2147483000;
}

html.ethos-home-intro-pending .ethos-home-intro {
  display: block;
}

html.ethos-home-intro-pending,
html.ethos-home-intro-pending body {
  overscroll-behavior: none;
  overflow: hidden;
  touch-action: none;
}

html.ethos-home-intro-leaving .ethos-home-intro {
  pointer-events: none;
}

.ethos-home-intro__panel {
  background-color: #0b0b0a;
  height: calc(50% + 1px);
  left: 0;
  position: absolute;
  right: 0;
  transition: transform 750ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  z-index: 1;
}

.ethos-home-intro__panel--top {
  background-image: radial-gradient(ellipse at 50% 100%, rgba(201, 169, 110, 0.055), transparent 48%);
  top: 0;
}

.ethos-home-intro__panel--bottom {
  background-image: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.055), transparent 48%);
  bottom: 0;
}

html.ethos-home-intro-leaving .ethos-home-intro__panel--top {
  transform: translate3d(0, -101%, 0);
}

html.ethos-home-intro-leaving .ethos-home-intro__panel--bottom {
  transform: translate3d(0, 101%, 0);
}

.ethos-home-intro__mark {
  left: 50%;
  opacity: 1;
  position: absolute;
  top: calc(50% - clamp(80px, 12vmin, 96px));
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  width: clamp(154px, 15vw, 190px);
  z-index: 4;
}

.ethos-home-intro__mark::before {
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08), rgba(11, 11, 10, 0) 68%);
  content: "";
  inset: -30%;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.ethos-home-intro__mark img {
  display: block;
  height: auto;
  opacity: 1;
  transform: none;
  width: 100%;
}

html.ethos-home-intro-running .ethos-home-intro__mark img {
  animation: ethos-home-intro-logo 450ms cubic-bezier(0.22, 1, 0.36, 1) 250ms both;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .ethos-home-intro__mark::after {
    -webkit-mask-image: var(--ethos-intro-logo);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    background: linear-gradient(
      108deg,
      transparent 36%,
      rgba(182, 154, 103, 0.08) 43%,
      rgba(251, 250, 247, 0.94) 50%,
      rgba(182, 154, 103, 0.22) 56%,
      transparent 64%
    ) -180% 0 / 280% 100% no-repeat;
    content: "";
    inset: 0;
    mask-image: var(--ethos-intro-logo);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  html.ethos-home-intro-running .ethos-home-intro__mark::after {
    animation: ethos-home-intro-sheen 520ms ease 720ms both;
  }
}

html.ethos-home-intro-leaving .ethos-home-intro__mark {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.992);
}

.ethos-home-intro__horizon {
  background: rgba(201, 169, 110, 0.18);
  height: 1px;
  left: 50%;
  opacity: 0;
  overflow: visible;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 150ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 140ms ease;
  transition-delay: 0ms, 280ms;
  width: min(52vw, 230px);
  z-index: 3;
}

html.ethos-home-intro-running .ethos-home-intro__horizon {
  opacity: 1;
}

html.ethos-home-intro-horizon .ethos-home-intro__horizon {
  width: 100vw;
}

.ethos-home-intro__horizon-fill {
  background: #c9a96e;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.3);
  display: block;
  height: 1px;
  inset: 0;
  position: absolute;
  transform: scaleX(1);
  transform-origin: center;
}

html.ethos-home-intro-running .ethos-home-intro__horizon-fill {
  animation: ethos-home-intro-progress 1000ms linear 300ms both;
}

.ethos-home-intro__horizon-fill::before,
.ethos-home-intro__horizon-fill::after {
  background: #fbfaf7;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.76);
  content: "";
  height: 3px;
  opacity: 0.84;
  position: absolute;
  top: -1px;
  width: 1px;
}

.ethos-home-intro__horizon-fill::before {
  left: 0;
}

.ethos-home-intro__horizon-fill::after {
  right: 0;
}

html.ethos-home-intro-leaving .ethos-home-intro__horizon {
  opacity: 0;
  transition-delay: 0ms, 610ms;
}

@keyframes ethos-home-intro-logo {
  from {
    opacity: 0;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ethos-home-intro-sheen {
  0% {
    background-position: -180% 0;
    opacity: 0;
  }

  20%,
  78% {
    opacity: 0.78;
  }

  100% {
    background-position: 150% 0;
    opacity: 0;
  }
}

@keyframes ethos-home-intro-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes ethos-home-intro-failsafe {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

@media (max-width: 700px) {
  .ethos-home-intro__mark {
    top: calc(50% - 86px);
    width: clamp(126px, 36vw, 142px);
  }

  .ethos-home-intro__horizon {
    width: min(58vw, 190px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethos-home-intro {
    background: #0b0b0a;
    transition: opacity 180ms ease;
  }

  .ethos-home-intro__panel,
  .ethos-home-intro__horizon,
  .ethos-home-intro__mark::after {
    display: none;
  }

  .ethos-home-intro__mark {
    top: 50%;
    transition: none;
  }

  .ethos-home-intro__mark img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  html.ethos-home-intro-leaving .ethos-home-intro {
    opacity: 0;
  }

  html.ethos-home-intro-leaving .ethos-home-intro__mark {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }
}
