.ot-hero {
  --ot-hero-bg: url("/images/orangetour-hero-laos.webp");
  --ot-mx: 0;
  --ot-my: 0;
  position: relative;
  height: 700px;
  min-width: 1200px;
  overflow: hidden;
  isolation: isolate;
  color: #102b4c;
  background: #89cee4;
  perspective: 1100px;
}

.ot-hero--cebu {
  --ot-hero-bg: url("/images/orangetour-hero-cebu.webp");
}

.ot-hero__backdrop {
  position: absolute;
  inset: -3%;
  background: var(--ot-hero-bg) center / cover no-repeat;
  transform: translate3d(calc(var(--ot-mx) * -8px), calc(var(--ot-my) * -5px), 0) scale(1.06);
  transition: transform 450ms ease-out;
  animation: ot-landscape-breathe 20s ease-in-out infinite alternate;
  will-change: transform;
}

.ot-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(238, 249, 250, .92) 0%, rgba(237, 249, 251, .79) 29%, rgba(238, 249, 251, .25) 55%, transparent 78%);
}

.ot-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, rgba(7, 58, 82, .67), transparent);
  pointer-events: none;
}

.ot-hero__glint {
  position: absolute;
  z-index: 2;
  inset: 48% 0 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .22) 49%, transparent 67%);
  transform: translateX(-110%);
  animation: ot-glint-drift 12s ease-in-out infinite;
  opacity: .6;
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 90%);
}

.ot-hero__inner {
  position: relative;
  z-index: 3;
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(40px, 6vw, 85px);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.ot-hero__copy {
  width: 54%;
  max-width: 690px;
  padding-bottom: 22px;
  text-align: left;
  animation: ot-copy-appear 800ms cubic-bezier(.16, 1, .3, 1) both;
}

.ot-hero__copy h1 {
  margin: 0 0 18px;
  color: #102b4c;
  font-size: clamp(44px, 4.5vw, 74px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.ot-hero__copy h1 em {
  color: #ff692c;
  font-style: normal;
}

.ot-hero__copy p {
  margin: 0;
  color: #355268;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.ot-hero__scene {
  position: absolute;
  z-index: 2;
  top: 7%;
  right: 2%;
  width: 57%;
  height: 88%;
  pointer-events: none;
  transform: rotateY(calc(var(--ot-mx) * 4deg)) rotateX(calc(var(--ot-my) * -3deg));
  transform-style: preserve-3d;
  transition: transform 450ms ease-out;
  will-change: transform;
}

.ot-hero__portal-glow {
  position: absolute;
  right: 9%;
  bottom: 4%;
  width: 65%;
  height: 20%;
  border-radius: 50%;
  background: rgba(64, 217, 235, .6);
  filter: blur(36px);
  transform: translateZ(-20px);
  animation: ot-glow-breathe 8s ease-in-out infinite;
}

.ot-hero__portal {
  position: absolute;
  top: 4%;
  right: 15%;
  width: 53%;
  height: 86%;
  overflow: hidden;
  border: clamp(15px, 1.7vw, 30px) solid #f8fbf8;
  border-bottom-width: 22px;
  border-radius: 48% 48% 7% 7% / 36% 36% 4% 4%;
  box-shadow: inset 7px 2px 13px rgba(26, 92, 116, .6), 20px 30px 40px rgba(7, 49, 70, .4), 0 0 0 6px rgba(255, 255, 255, .4), 0 0 42px 8px rgba(159, 238, 250, .69);
  transform: translateZ(25px);
  animation: ot-portal-enter 1.35s cubic-bezier(.2, .7, .2, 1) both;
}

.ot-hero__portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ot-hero-bg) 75% 50% / auto 125% no-repeat;
  filter: saturate(1.18) contrast(1.05);
  animation: ot-window-view 18s ease-in-out infinite alternate;
}

.ot-hero__portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 18px 8px 34px rgba(8, 31, 75, .4);
}

.ot-hero__postcard {
  position: absolute;
  width: 27%;
  height: 48%;
  padding: 8px 8px 45px;
  overflow: hidden;
  background: #fff;
  box-shadow: 15px 24px 35px rgba(18, 57, 87, .42), 0 2px 8px rgba(11, 53, 65, .24);
  transform-style: preserve-3d;
}

.ot-hero__postcard--laos {
  top: 30%;
  left: 9%;
  transform: translateZ(115px) rotate(-11deg);
  animation: ot-card-laos 7s ease-in-out infinite;
}

.ot-hero__postcard--cebu {
  top: 13%;
  right: 0;
  width: 25%;
  height: 42%;
  transform: translateZ(80px) rotate(9deg);
  animation: ot-card-cebu 8s ease-in-out -3s infinite;
}

.ot-hero__photo {
  height: 100%;
  background: center / cover no-repeat;
}

.ot-hero__postcard--laos .ot-hero__photo {
  background-image: url("/images/orangetour-hero-laos.webp");
  background-position: 63% 50%;
}

.ot-hero__postcard--cebu .ot-hero__photo {
  background-image: url("/images/orangetour-hero-cebu.webp");
  background-position: 74% 55%;
}

.ot-hero__label {
  position: absolute;
  bottom: 9px;
  left: 13px;
  color: #143454;
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 850;
  letter-spacing: -.03em;
}

.ot-hero__motion-toggle {
  position: absolute;
  right: clamp(25px, 6vw, 85px);
  bottom: 24px;
  z-index: 6;
  min-height: 40px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 54, 88, .58);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease;
}

.ot-hero__motion-toggle:hover {
  background: rgba(13, 54, 88, .8);
}

.ot-hero__motion-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ot-hero.is-paused .ot-hero__backdrop,
.ot-hero.is-paused .ot-hero__glint,
.ot-hero.is-paused .ot-hero__portal,
.ot-hero.is-paused .ot-hero__portal::before,
.ot-hero.is-paused .ot-hero__portal-glow,
.ot-hero.is-paused .ot-hero__postcard {
  animation-play-state: paused;
}

.ot-hero.is-paused .ot-hero__scene,
.ot-hero.is-paused .ot-hero__backdrop {
  transition: none;
}

@keyframes ot-copy-appear {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ot-landscape-breathe {
  from { background-position: 48% 50%; }
  to { background-position: 54% 49%; }
}

@keyframes ot-portal-enter {
  from { opacity: 0; transform: translateZ(25px) translateY(28px) scale(.96); }
  to { opacity: 1; transform: translateZ(25px); }
}

@keyframes ot-window-view {
  from { background-position: 75% 50%; background-size: auto 125%; }
  to { background-position: 82% 50%; background-size: auto 135%; }
}

@keyframes ot-glow-breathe {
  50% { opacity: .45; transform: translateZ(-20px) scale(1.12); }
}

@keyframes ot-card-laos {
  0%, 100% { transform: translateZ(115px) translateY(0) rotate(-11deg); }
  50% { transform: translateZ(125px) translateY(-11px) rotate(-9deg); }
}

@keyframes ot-card-cebu {
  0%, 100% { transform: translateZ(80px) translateY(0) rotate(9deg); }
  50% { transform: translateZ(90px) translateY(-9px) rotate(7deg); }
}

@keyframes ot-glint-drift {
  0%, 18% { opacity: 0; transform: translateX(-110%); }
  38% { opacity: .5; }
  60%, 100% { opacity: 0; transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .ot-hero__backdrop,
  .ot-hero__glint,
  .ot-hero__portal,
  .ot-hero__portal::before,
  .ot-hero__portal-glow,
  .ot-hero__postcard,
  .ot-hero__copy {
    animation: none;
  }

  .ot-hero__scene,
  .ot-hero__backdrop {
    transform: none;
    transition: none;
  }

  .ot-hero__motion-toggle {
    display: none;
  }
}

.ot-mobile-hero {
  --ot-mobile-bg: url("/images/orangetour-hero-mobile-laos.webp");
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  color: #102b4c;
  background: var(--ot-mobile-bg) center 71% / cover no-repeat;
  animation: ot-mobile-landscape 18s ease-in-out infinite alternate;
}

.ot-mobile-hero--cebu {
  --ot-mobile-bg: url("/images/orangetour-hero-mobile-cebu.webp");
}

.ot-mobile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(243, 250, 250, .92) 0%, rgba(243, 250, 250, .72) 44%, rgba(243, 250, 250, .06) 84%);
}

.ot-mobile-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 45px;
  background: linear-gradient(0deg, rgba(7, 58, 82, .34), transparent);
}

.ot-mobile-hero__copy {
  position: relative;
  z-index: 1;
  width: min(72%, 390px);
  padding: clamp(22px, 5vw, 48px) clamp(18px, 5vw, 46px);
  text-align: left;
}

.ot-mobile-hero__copy h2 {
  margin: 0 0 10px;
  color: #102b4c;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.ot-mobile-hero__copy h2 em {
  color: #ff692c;
  font-style: normal;
}

.ot-mobile-hero__copy p {
  margin: 0;
  color: #23465a;
  font-size: clamp(12px, 2vw, 17px);
  line-height: 1.45;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.ot-mobile-hero.is-paused {
  animation-play-state: paused;
}

@keyframes ot-mobile-landscape {
  from { background-position: center 68%; }
  to { background-position: center 74%; }
}

@media (max-width: 600px) {
  .ot-mobile-hero__copy {
    width: min(72%, 285px);
    padding: 20px 18px;
  }

  .ot-mobile-hero__copy h2 {
    margin-bottom: 7px;
    font-size: clamp(23px, 6.3vw, 29px);
  }

  .ot-mobile-hero__copy p {
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ot-mobile-hero {
    animation: none;
  }
}
