/* -----------------------------------------------------------
   DestinoDen Travels custom design details
   (ticket-stub cards, passport-stamp badges, dotted flight paths)
   ----------------------------------------------------------- */
html, body {
  overflow-x: hidden;
}
   /* --- Hero heading zoom-on-scroll effect --- */
#rotating-tagline {
  will-change: transform;
  transform-origin: left top;
}

.font-display { font-family: 'Fraunces', serif; }

@keyframes page-flip-in {
  0% { transform: perspective(1200px) rotateY(90deg); opacity: 0; }
  100% { transform: perspective(1200px) rotateY(0deg); opacity: 1; }
}
@keyframes page-flip-out {
  0% { transform: perspective(1200px) rotateY(0deg); opacity: 1; }
  100% { transform: perspective(1200px) rotateY(-90deg); opacity: 0; }
}
.page-flip-in {
  animation: page-flip-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: right center;
}
.page-flip-out {
  animation: page-flip-out 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: left center;
}

@keyframes photo-gallery-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.photo-gallery-zoom {
  animation: photo-gallery-zoom 8s ease-in-out infinite;
}

.circle-gallery {
  padding: 2rem 0.5rem;
}
.circle-thumb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.circle-thumb:not(:first-child) {
  margin-left: -18px;
}
.circle-thumb:nth-child(odd) {
  transform: translateY(-14px);
}
.circle-thumb:nth-child(even) {
  transform: translateY(14px);
}
.circle-thumb:hover {
  transform: translateY(-8px) scale(1.12) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
  z-index: 5;
}
.circle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}
.circle-thumb img.circle-img-out {
  opacity: 0;
}
.circle-thumb img.circle-img-in {
  opacity: 1;
}
@media (max-width: 640px) {
  .circle-thumb { width: 58px; height: 58px; }
  .circle-thumb:not(:first-child) { margin-left: -14px; }
  .circle-thumb:nth-child(odd) { transform: translateY(-10px); }
  .circle-thumb:nth-child(even) { transform: translateY(10px); }
}

.gallery-hero-wrap {
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.gallery-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  background: transparent;
  overflow: hidden;
}
.gallery-hero .gallery-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 1 !important;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
  border-radius: 32px;
}
.gallery-hero .gallery-hero-slide.gallery-slide-active {
  transform: translateX(0);
  z-index: 2;
}
.gallery-hero .gallery-hero-slide.gallery-slide-prev {
  transform: translateX(-100%);
  z-index: 1;
}
.gallery-hero .gallery-hero-slide.gallery-slide-no-transition {
  transition: none !important;
}
.gallery-hero .gallery-hero-slide.gallery-slide-settled {
  --r: 32px;
  --s: 70px;
  --a: 20deg;
  --p: 65%;
  --_m: ,#000 calc(100% - 1px),#0000;
  --_r: var(--r) at calc(100% - var(--r));
  --_d: (var(--s) + var(--r))*cos(var(--a));
  mask:
    radial-gradient(var(--_r) calc(var(--p) + var(--_d)) var(--_m)),
    radial-gradient(var(--_r) calc(var(--p) - var(--_d)) var(--_m)),
    radial-gradient(var(--s) at calc(100% + sin(var(--a))*var(--s)) var(--p),
      #0000 100%,#000 calc(100% + 1px)) calc(var(--r)*(sin(var(--a)) - 1)) 0 no-repeat,
    linear-gradient(#000 calc(var(--p) - var(--_d)),#0000 0 calc(var(--p) + var(--_d)),#000 0);
}
.gallery-hero .gallery-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-sizing: border-box;
  -webkit-animation: scale-up-hor-left 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
          animation: scale-up-hor-left 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes scale-up-hor-left {
  0% {
    -webkit-transform: scaleX(0.4);
            transform: scaleX(0.4);
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
  }
  100% {
    -webkit-transform: scaleX(1);
            transform: scaleX(1);
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
  }
}
@keyframes scale-up-hor-left {
  0% {
    -webkit-transform: scaleX(0.4);
            transform: scaleX(0.4);
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
  }
  100% {
    -webkit-transform: scaleX(1);
            transform: scaleX(1);
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
  }
}
@keyframes kenburns-top-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 16% 24%;
            transform-origin: 16% 24%;
  }
  100% {
    -webkit-transform: scale(1.25) translate(20px, -15px);
            transform: scale(1.25) translate(20px, -15px);
    -webkit-transform-origin: top left;
            transform-origin: top left;
  }
}
.gallery-cutout {
  position: absolute;
  right: 5px;
  top: 65%;
  transform: translateY(-50%);
  z-index: 20;
  width: 60px;
  height: 120px;
  background: #006400;
  border: 4px solid #FFFFFF;
  box-sizing: border-box;
  border-radius: 60px 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-cutout.gallery-cutout-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 640px) {
  .gallery-cutout {
    right: 13px;
    width: 40px;
    height: 80px;
    border-radius: 40px 0 0 40px;
  }
}
.gallery-know-more {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease;
}
.gallery-know-more:hover {
  opacity: 0.8;
}
.gallery-know-more-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gallery-curve-text {
  fill: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
@media (max-width: 640px) {
  .gallery-curve-text {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
}

.itinerary-day-badge {
  background-color: rgba(233, 84, 32, 0.15);
  color: #0B3D5C;
  animation: itinerary-pulse 7s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes itinerary-pulse {
  0%, 92%, 100% {
    background-color: rgba(233, 84, 32, 0.15);
    color: #0B3D5C;
    transform: scale(1);
  }
  4% {
    background-color: #E95420;
    color: #FFFFFF;
    transform: scale(1.08);
  }
}
.itinerary-days .itinerary-row:nth-child(1) .itinerary-day-badge { animation-delay: 0s; }
.itinerary-days .itinerary-row:nth-child(2) .itinerary-day-badge { animation-delay: 0.6s; }
.itinerary-days .itinerary-row:nth-child(3) .itinerary-day-badge { animation-delay: 1.2s; }
.itinerary-days .itinerary-row:nth-child(4) .itinerary-day-badge { animation-delay: 1.8s; }
.itinerary-days .itinerary-row:nth-child(5) .itinerary-day-badge { animation-delay: 2.4s; }
.itinerary-days .itinerary-row:nth-child(6) .itinerary-day-badge { animation-delay: 3s; }
.itinerary-days .itinerary-row:nth-child(7) .itinerary-day-badge { animation-delay: 3.6s; }
.itinerary-days .itinerary-row:nth-child(8) .itinerary-day-badge { animation-delay: 4.2s; }
.itinerary-days .itinerary-row:nth-child(9) .itinerary-day-badge { animation-delay: 4.8s; }
.itinerary-days .itinerary-row:nth-child(10) .itinerary-day-badge { animation-delay: 5.4s; }
.itinerary-days .itinerary-row:nth-child(11) .itinerary-day-badge { animation-delay: 6s; }
.itinerary-days .itinerary-row:nth-child(12) .itinerary-day-badge { animation-delay: 6.6s; }

.stub-card {
  position: relative;
  background: #F7FBFF;
  border: 1px solid rgba(11, 61, 92, 0.10);
}

.stub-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 158px;
  height: 0;
  border-top: 2px dashed rgba(11, 61, 92, 0.18);
  pointer-events: none;
}

.stub-card::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 150px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EAF6FF;
  box-shadow: calc(100% + 0px) 0 0 0 #EAF6FF;
  pointer-events: none;
}

.stub-card > .stub-notch-right {
  position: absolute;
  right: -9px;
  top: 150px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EAF6FF;
  pointer-events: none;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  border: 2px solid currentColor;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.flight-path {
  stroke-dasharray: 6 8;
  stroke-linecap: round;
}

.plane-marker {
  offset-rotate: auto;
}

.tag-pill {
  position: relative;
  border-radius: 6px;
}
.tag-pill::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.85);
  transform: translateY(-50%);
}

.paper-grain {
  background-image: radial-gradient(rgba(11, 61, 92, 0.035) 1px, transparent 1px);
  background-size: 14px 14px;
}

.hero-glow {
  position: relative;
  isolation: isolate;
}
.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 88% 8%, rgba(56, 189, 248, 0.30), transparent 70%),
    radial-gradient(480px 380px at 6% 92%, rgba(2, 132, 199, 0.22), transparent 70%);
  pointer-events: none;
}

.dash-card {
  position: relative;
  background: #F7FBFF;
}
.dash-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, #38BDF8 0 10px, transparent 10px 18px);
  border-radius: 0.5rem 0.5rem 0 0;
}

.dash-stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  transform: rotate(6deg);
  opacity: 0.35;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(11, 61, 92, 0.15);
  border-radius: 0.375rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  background: #F7FBFF;
  color: #0B3D5C;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6);
}
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img {
  transform: scale(1.08);
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@-webkit-keyframes kenburns-bottom-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 84% 76%;
            transform-origin: 84% 76%;
  }
  100% {
    -webkit-transform: scale(1.25) translate(-20px, 15px);
            transform: scale(1.25) translate(-20px, 15px);
    -webkit-transform-origin: left bottom;
            transform-origin: left bottom;
  }
}
@keyframes kenburns-bottom-left {
  0% {
    -webkit-transform: scale(1) translate(0, 0);
            transform: scale(1) translate(0, 0);
    -webkit-transform-origin: 84% 76%;
            transform-origin: 84% 76%;
  }
  100% {
    -webkit-transform: scale(1.25) translate(-20px, 15px);
            transform: scale(1.25) translate(-20px, 15px);
    -webkit-transform-origin: left bottom;
            transform-origin: left bottom;
  }
}
.kenburns-bottom-left {
  -webkit-animation: kenburns-bottom-left 5s ease-out both;
          animation: kenburns-bottom-left 5s ease-out both;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@-webkit-keyframes bounce-in-top {
  0% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; }
  38% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; opacity: 1; }
  55% { -webkit-transform: translateY(-65px); transform: translateY(-65px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  72% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  81% { -webkit-transform: translateY(-28px); transform: translateY(-28px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  90% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  95% { -webkit-transform: translateY(-8px); transform: translateY(-8px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  100% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
}
@keyframes bounce-in-top {
  0% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; }
  38% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; opacity: 1; }
  55% { -webkit-transform: translateY(-65px); transform: translateY(-65px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  72% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  81% { -webkit-transform: translateY(-28px); transform: translateY(-28px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  90% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  95% { -webkit-transform: translateY(-8px); transform: translateY(-8px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  100% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
}
.bounce-in-top {
  -webkit-animation: bounce-in-top 1.1s both;
          animation: bounce-in-top 1.1s both;
}

@-webkit-keyframes bounce-out-top {
  0% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  17% { -webkit-transform: translateY(-9px); transform: translateY(-9px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  27.5% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  44.5% { -webkit-transform: translateY(-32px); transform: translateY(-32px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  50% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  73% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 1; }
  100% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; }
}
@keyframes bounce-out-top {
  0% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  17% { -webkit-transform: translateY(-9px); transform: translateY(-9px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  27.5% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  44.5% { -webkit-transform: translateY(-32px); transform: translateY(-32px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
  50% { -webkit-transform: translateY(0); transform: translateY(0); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; }
  73% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 1; }
  100% { -webkit-transform: translateY(-500px); transform: translateY(-500px); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; }
}
.bounce-out-top {
  -webkit-animation: bounce-out-top 1.5s both;
          animation: bounce-out-top 1.5s both;
}

@-webkit-keyframes tracking-in-expand-fwd-top {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px) translateY(-500px);
            transform: translateZ(-700px) translateY(-500px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    -webkit-transform: translateZ(0) translateY(0);
            transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}
@keyframes tracking-in-expand-fwd-top {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px) translateY(-500px);
            transform: translateZ(-700px) translateY(-500px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    -webkit-transform: translateZ(0) translateY(0);
            transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}
.tracking-in-expand-fwd-top {
  -webkit-animation: tracking-in-expand-fwd-top 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
          animation: tracking-in-expand-fwd-top 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes text-blur-out {
  0% {
    -webkit-filter: blur(0.01);
            filter: blur(0.01);
  }
  100% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
}
@keyframes text-blur-out {
  0% {
    -webkit-filter: blur(0.01);
            filter: blur(0.01);
  }
  100% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
}
.text-blur-out {
  -webkit-animation: text-blur-out 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
          animation: text-blur-out 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
.caption-fx {
  opacity: 0;
  perspective: 800px;
}
.caption-fx.caption-in {
  -webkit-animation: tracking-in-expand-fwd-top 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
          animation: tracking-in-expand-fwd-top 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}
.caption-fx.caption-out {
  -webkit-animation: text-blur-out 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
          animation: text-blur-out 1.2s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@keyframes blinkingCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.typewriter-text::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  animation: blinkingCursor 800ms steps(1) infinite;
}

.experience-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  display: block;
}
.experience-card img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.experience-card:hover img {
  transform: scale(1.12);
  filter: brightness(0.78);
}
.experience-card .experience-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 92, 0.92) 0%, rgba(11, 61, 92, 0.25) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
}
.experience-card .experience-text {
  transform: translateY(10px);
  opacity: 0.92;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.experience-card:hover .experience-text {
  transform: translateY(0);
  opacity: 1;
}

.testimonial-slide {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-bg-section {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  border-radius: 1.5rem;
  overflow: hidden;
}
.scroll-bg-overlay {
  position: absolute;
  inset: 0;
}
.scroll-bg-content {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .scroll-bg-section {
    background-attachment: scroll;
  }
}

.home-banner-carousel {
  border: 0 !important;
  outline: 0;
  box-shadow: none;
  isolation: isolate;
}

.home-banner-slide {
  opacity: 0;
  transform: translate3d(36px, 0, 0) scale(1.01);
  transition: opacity 0.75s ease, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
}

.home-banner-slide.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 2;
  pointer-events: auto;
}

.home-banner-carousel[data-direction="prev"] .home-banner-slide:not(.active) {
  transform: translate3d(-36px, 0, 0) scale(1.01);
}

.home-banner-image-wrap {
  position: relative;
  height: 72%;
  min-height: 0;
  overflow: hidden;
  border-radius: 1.5rem;
}

.home-banner-photo {
  border-radius: 1.5rem;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.home-banner-slide .home-banner-photo {
  cursor: zoom-in;
  transform: scale(1.015);
}

.home-banner-slide.active:hover .home-banner-photo,
.home-banner-slide.active .home-banner-photo:focus-visible {
  transform: scale(1.075);
  filter: saturate(1.04) contrast(1.02);
}

.home-banner-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 4.5rem;
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-banner-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-banner-lightbox-stage {
  width: min(92vw, 1500px);
  height: min(84vh, 850px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-banner-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-out;
}

.home-banner-lightbox.is-open .home-banner-lightbox-image {
  transform: scale(1);
}

.home-banner-lightbox-close,
.home-banner-lightbox-prev,
.home-banner-lightbox-next {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(5px);
}

.home-banner-lightbox-close:hover,
.home-banner-lightbox-prev:hover,
.home-banner-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.06);
}

.home-banner-lightbox-close {
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  line-height: 1;
}

.home-banner-lightbox-prev,
.home-banner-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.5rem;
}

.home-banner-lightbox-prev:hover,
.home-banner-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.home-banner-lightbox-prev { left: 1.25rem; }
.home-banner-lightbox-next { right: 1.25rem; }

.home-banner-lightbox-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 80vw;
  overflow-x: auto;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.home-banner-lightbox-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-banner-lightbox-dot:hover {
  transform: scale(1.25);
  background: rgba(255, 255, 255, 0.8);
}

.home-banner-lightbox-dot.active {
  width: 1.25rem;
  background: white;
}

@media (max-width: 640px) {
  .home-banner-lightbox {
    padding: 3.5rem 0.75rem 4rem;
  }

  .home-banner-lightbox-stage {
    width: 96vw;
    height: 78vh;
  }

  .home-banner-lightbox-image {
    border-radius: 0.9rem;
  }

  .home-banner-lightbox-prev,
  .home-banner-lightbox-next {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.2rem;
  }

  .home-banner-lightbox-prev { left: 0.5rem; }
  .home-banner-lightbox-next { right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-slide,
  .home-banner-photo,
  .home-banner-lightbox,
  .home-banner-lightbox-image {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

body.home-banner-lightbox-open {
  overflow: hidden;
}

.home-banner-photo.flip-scale-2-hor-bottom {
  -webkit-animation: flip-scale-2-hor-bottom 0.5s linear both;
  animation: flip-scale-2-hor-bottom 0.5s linear both;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

@-webkit-keyframes flip-scale-2-hor-bottom {
  0% {
    -webkit-transform: scale(1) rotateX(0);
    transform: scale(1) rotateX(0);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
  }
  50% {
    -webkit-transform: scale(0.5) rotateX(-90deg);
    transform: scale(0.5) rotateX(-90deg);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
  }
  100% {
    -webkit-transform: scale(1) rotateX(0);
    transform: scale(1) rotateX(0);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
  }
}

@keyframes flip-scale-2-hor-bottom {
  0% {
    transform: scale(1) rotateX(0);
    transform-origin: 50% 100%;
  }
  50% {
    transform: scale(0.5) rotateX(-90deg);
    transform-origin: 50% 100%;
  }
  100% {
    transform: scale(1) rotateX(0);
    transform-origin: 50% 100%;
  }
}

.home-banner-copy {
  flex: 1 1 28%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.1rem 5rem 2rem;
  background: transparent;
}

.home-banner-copy-card {
  width: min(100%, 58rem);
  color: #38BDF8;
}

.home-banner-kicker {
  margin: 0 0 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #38BDF8;
}

.home-banner-tagline {
  margin: 0 auto;
  max-width: 58rem;
  min-height: 1.2em;
  font-family: "Brush Script MT", cursive;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #38BDF8;
}

.home-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.home-banner-cta:hover,
.home-banner-cta:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .home-banner-image-wrap {
    height: 66%;
    border-radius: 1.1rem;
  }

  .home-banner-copy {
    padding: 0.8rem 1.1rem 2.2rem;
  }

  .home-banner-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .home-banner-tagline {
    font-size: clamp(1.2rem, 6.2vw, 1.75rem);
  }

  .home-banner-cta {
    margin-top: 0.65rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-slide,
  .home-banner-photo,
  .home-banner-cta {
    transition: none;
    transform: none !important;
  }
}