:root {
  --bg-color: #000000;
  --border-color: #222222;
  --text-primary: #ededed;
  --text-secondary: #888888;
  --gap: clamp(1rem, 2vw, 2.5rem);
  --vh: 100vh;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

body {
  background-color:#fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
}

p{font-size: 1.3rem;font-family: "Quicksand", sans-serif; font-weight: 300;}
.navbar{background-color: rgba(240, 248, 255, 0.55);}
h1,h2,h3,h4{font-family: "Lexend Giga", sans-serif; font-weight: 700;}


/* =========================
   CSS (FULLSCREEN HERO)
   ========================= */

   #hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
   background: #ffebf3;
background: linear-gradient(180deg, rgba(255, 235, 243, 1) 0%, rgba(155, 179, 250, 1) 53%, rgba(255, 255, 255, 1) 100%);
    display: grid;
    align-items: center;
  }
  
  #heroStage {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
  
    transform-style: preserve-3d;
    will-change: transform;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
 .hero-text{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
  z-index: 60; /* above images */
}

.hero-text{
  font-weight: 600;
  line-height: 1.3em;
  background: linear-gradient(
    90deg,
    #cc3366 0%,
    #540995 40%,
    #cc3366 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Horizontal section */
.scroll-section {
  height: 400vh;
  position: relative;
background: linear-gradient(

    #f6b9ff 0%,
    hsl(42, 100%, 59%) 100%
  );
}

.scroll-section__sticky {
  position: sticky;
  top: 0;
  height: var(--vh);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.scroll-section__sticky-inner{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.scroll-section__track {
  display: flex;
  gap: var(--gap);
  padding-left: clamp(2rem, 10vw, 8rem);
  width: max-content;
  will-change: transform;
}

.image-item {
  width: clamp(70vw, 85vw, 1100px);
  height: clamp(60vh, 75vh, 80vh);
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 auto;

  background: #0a0a0a;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seal{
  position: absolute;
  left: 50%;
  top: clamp(20%, 35%, 200px);
  transform: translate(-50%, -50%);
  width: clamp(20vw, 50vw, 280px);
  opacity: 0;
  z-index: 120;          /* above slides + text */
  pointer-events: none;
  will-change: transform, opacity;
}

.seal-img{
  width: 100%;
  height: auto;
  display: block;
}
/* Airplane overlay */
.plane-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
}

.plane {
  position: absolute;
  width: 150px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  will-change: transform, left, top;
  left: 10vw;
  top: 35vh;
}




.outro {
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;

}

.gallery-section .gallery-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 3.25rem;
  -ms-overflow-style: none;     /* IE and old Edge */
  scrollbar-width: none;
}
.gallery-viewport::-webkit-scrollbar{
  display: none; }               /* Chrome, Safari, Opera */

.gallery-section .gallery-rail{
  display: flex;
  gap: 1.5rem;
  width: max-content; /* important so it can exceed viewport width */
}

.gallery-section .gallery-card{
  flex: 0 0 320px; /* fixed card width to make stepping consistent */
}

.gallery-section .gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}


.tour-hint{
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 99px;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.65);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px); /* optional, remove if you don’t like */
  line-height: normal;
}

.scroll-section__sticky-inner {
  position: relative;
}

.mobile-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-arrow.left { left: 8px; }
.mobile-arrow.right { right: 8px; }


@media (max-width: 768px){
  /* Mobile fallback for horizontal gallery (native swipe) */
  .scroll-section { height: auto; padding: 0; }
  .scroll-section__sticky { position: relative; height: auto; overflow: visible; }

  .scroll-section__sticky-inner{
    height: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .scroll-section__track{
    transform: none !important;
    display:flex;
    flex-wrap: nowrap;
    width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
  }

  .image-item{
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: calc(var(--vh) - 60px);
    border-radius: 0;
    border: none;
    scroll-snap-align: start;
  }

  .plane-layer{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .reveal-item, .scroll-section__track{ will-change: auto; }
  .plane-layer{ display:none; }
}
