/* ─────────────────────────────────────────────────────────────
   Munditravel — Main Stylesheet
   Fonts: Google Sans
───────────────────────────────────────────────────────────── */


*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal:       #03a8c6;
  --teal-dark:  #027a91;
  --teal-deep:  #015f72;
  --teal-light: #04c8eb;
  --white:      #ffffff;
  --off-white:  #eef7fa;
  --nav-height: 80px;
  --gutter:     2rem;
}

@media (max-width: 600px) {
  :root {
    --gutter: 1rem;
  }
}

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Google Sans', sans-serif;
  background: var(--teal);
  overflow-x: hidden;
}

/* body lock while preloader is active */
body.is-loading {
  overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #2596be;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo-svg {
  width: clamp(100px, 20vw, 250px);
  height: auto;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}

#big-m,
.letter {
  opacity: 0;
  will-change: transform, opacity;
}


/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: transparent;
  opacity: 0;
}

/* Brand group: logo + tagline */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-tagline {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* Logo image */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.nav-logo:hover img {
  opacity: 0.8;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

/* Hamburger always at the end */
.nav-hamburger {
  display: none; /* Controlled by media query */
}

.nav-links a:not(.nav-signin) {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

/* Sliding underline */
.nav-links a:not(.nav-signin)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.nav-signin):hover {
  color: var(--white);
}

.nav-links a:not(.nav-signin):hover::after {
  width: 100%;
}

/* Sign In button — fully independent, only visible in scrolled pill */
.nav-signin {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #0a0a0a !important;
  border-radius: 100px;
  padding: 0.55rem 1.5rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  position: static !important;
  padding-bottom: 0.55rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-signin::after {
  display: none !important;
}

.nav-signin:hover {
  background: #f0f0f0;
  color: #0a0a0a !important;
}

a{
  text-decoration:none;
}
.floating_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  z-index: 1000;
}

@keyframes pulsing {
  to {
    box-shadow: 0 0 0 30px rgba(232, 76, 61, 0);
  }
}

.contact_icon {
  background-color: #42db87;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size:30px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translatey(0px);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 0 #42db87;
  -webkit-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -moz-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -ms-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  font-weight: normal;
  font-family: sans-serif;
  text-decoration: none !important;
  transition: all 300ms ease-in-out;
}


.text_icon {
  margin-top: 8px;
  color: #707070;
  font-size: 13px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a9e5c;
  color: #ffffff !important;
  border-radius: 100px;
  padding: 0.55rem 1.5rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-phone::after {
  display: none !important;
}

.nav-phone:hover {
  background: #158a4f;
  color: #ffffff !important;
}

/* ── Hero tagline (Spanish only) ─────────────────────────── */

.hero-tagline {
  position: absolute;
  bottom: 3.5%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 15px;
  z-index: 3;
  font-family: 'Google Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  color: #ffffff;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

.hero-tagline:empty {
  display: none;
}

/* CTA Button — fill sweep */
.nav-cta {
  position: relative;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--white);
  border: none;
  padding: 0.65rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.35s ease;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal-deep);
  transform: translateX(-101%);
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
}

.nav-cta:hover {
  color: var(--white);
}

.nav-cta:hover::before {
  transform: translateX(0);
}

.nav-cta > * {
  position: relative;
  z-index: 1;
}

.nav-cta .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-cta:hover .arrow {
  transform: translateX(5px);
}

/* Language toggle */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.28rem 0.65rem 0.28rem 0.4rem;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-lang-flag {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-lang-code {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-lang:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X when open */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--teal-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  opacity: 0;
  transform: translateY(30px);
}

.nav-mobile-menu a:hover {
  opacity: 0.55;
}


/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 5vw 0;
}

/* Top-right decorative ring */
.hero::before {
  content: '';
  position: absolute;
  top: -18vw;
  right: -8vw;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* Bottom-left ring */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20vw;
  left: -8vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Left vertical accent line */
.hero-line {
  position: absolute;
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0;
  background: rgba(255, 255, 255, 0.18);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
}

.hero-eyebrow {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2.4rem;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Character clip containers */
.hero-title .char-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-title .char-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* Italic accent word */
.hero-title .accent {
  font-style: italic;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.hero-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
  margin: 0 auto 3rem;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Primary button */
.btn-primary {
  position: relative;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.35s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.18, 1);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

/* Ghost button */
.btn-ghost {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost svg {
  transition: transform 0.3s ease;
}

.btn-ghost:hover svg {
  transform: scale(1.15);
}

/* ── Barrel text ─────────────────────────────────────────── */

.barrel-container {
  perspective: 1000px;
  text-align: center;
}

.barrel-line {
  overflow: hidden;
  display: block;
  line-height: 1;
}

.barrel-inner {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  transform-origin: center bottom;
  transform: rotateX(80deg);
  opacity: 0;
  will-change: transform, opacity;
}

.barrel-line:last-child .barrel-inner {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  letter-spacing: 0.22em;
  margin-top: 0.35em;
}

/* ── Hero Text ───────────────────────────────────────────── */

.hero-text {
  position: absolute;
  bottom: 13%;
  left: 6vw;
  z-index: 3;
  max-width: 90vw;
}

/* Soft dark bloom behind headline for readability */
.hero-text::before {
  content: '';
  position: absolute;
  inset: -20% -15% -15% -10%;
  background: radial-gradient(ellipse at 35% 55%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 72%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
}

.hero-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.4rem;
  opacity: 0;
}

.hero-headline {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 1.8rem;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 60px rgba(0, 0, 0, 0.35);
}

.headline-row {
  display: block;
}

.headline-row--optional:has([data-word=""]) {
  display: none;
}

.hero-word--em {
  font-style: italic;
}

.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-24px);
}

.hero-headline .char-space {
  display: inline-block;
  width: 0.28em;
}

.hero-sub {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  max-width: 380px;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
}

/* Mobile-only login CTA — hidden on desktop */
.hero-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    height: 70svh;
    min-height: unset;
  }

  .hero-carousel {
    height: 70svh !important;
    border-radius: 0 !important;
  }

  .hero-text {
    bottom: 12%;
    left: 5vw;
    right: 5vw;
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(2rem, 7.5vw, 3.2rem);
    margin: 0 0 1.2rem;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.6rem;
    background: #ffffff;
    color: #0a0a0a;
    border-radius: 100px;
    padding: 0.55rem 1.8rem;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }
}

/* ── Hero Carousel ────────────────────────────────────────── */

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88svh;
  overflow: hidden;
  z-index: 1;
  background: #0a1a1a;
  user-select: none;
  border-radius: 0 0 5.6rem 5.6rem;
}

/* Each slide stacks absolutely, invisible by default */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity, filter;
  object-position: center 30%; 
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
}

/* Vignette — bottom-heavy for depth, slight top for nav contrast */
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, transparent 30%),
    linear-gradient(to top,    rgba(0,0,0,0.55) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Progress nav ─────────────────────────────────────────── */

.carousel-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.carousel-pip {
  position: relative;
  height: 2px;
  width: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.carousel-pip.is-active {
  width: 48px;
}

.pip-fill {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Expand click target without affecting layout */
.carousel-pip::before {
  content: '';
  position: absolute;
  inset: -8px -4px;
}


/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  cursor: default;
}

.scroll-indicator span {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-mouse {
  width: 22px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scrollDown 1.9s ease infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0);    opacity: 1; }
  75%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-cta,
  .nav-tagline {
    display: none;
  }

  .nav-hamburger {
    display: none;
  }

  #logo-svg {
    width: clamp(200px, 60vw, 320px);
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links > *:not(li:has(.nav-signup)):not(.nav-lang) {
    display: none;
  }

  .nav-links li:has(.nav-signup) {
    display: flex;
  }

  .nav-links .nav-lang {
    display: flex;
    margin-left: auto;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    letter-spacing: -0.025em;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
  }

  .hero-line {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Very small screens — stack hero CTA buttons */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE ALERT
═══════════════════════════════════════════════════════════ */

.cookie-alert {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-alert.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-content h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.cookie-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-pill {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-pill--primary {
  background: var(--teal);
  color: var(--white);
}

.btn-pill--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-pill--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
}

.btn-pill--secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-pill--text {
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-pill--text:hover {
  color: var(--black);
}

@media (max-width: 768px) {
  .cookie-alert {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
  }

  .cookie-settings-overlay {
    padding: 1rem;
    align-items: flex-end;
  }

  .cookie-settings-card {
    border-radius: 24px 24px 16px 16px;
    padding: 1.75rem;
  }
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 2rem;
}

.cookie-settings-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cookie-settings-card {
  width: 100%;
  max-width: 450px;
  background: var(--white);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-settings-overlay.is-open .cookie-settings-card {
  transform: scale(1) translateY(0);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.settings-header h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
}

.close-settings {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.close-settings:hover {
  color: var(--black);
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.setting-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.setting-info h4 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.setting-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
}

/* Custom Toggle Switch */
.setting-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.setting-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
  background-color: var(--teal);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.setting-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   PHOTOS SCROLL SECTION
═══════════════════════════════════════════════════════════ */

.content-wrap {
  background: #ffffff;
  overflow-x: rgb(255, 255, 255);
  color: #fff;
  position: relative;
}

.content-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}

/* Sticky spacer — needs 240vh for the scroll animation to play out */
.content-wrap main section {
  min-height: 240vh;
}

.content {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  place-items: center;
  align-content: center;
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* Grid Layout — 5 columns x 3 rows */
.grid {
  --offset: 0;
  --container-width: 1600px;
  --gap: clamp(10px, 7.35vw, 80px);

  width: var(--container-width);
  max-width: calc(100% - (2 * var(--gutter)));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: var(--gap);
  margin: 0 auto;
  align-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    --offset: -1;
  }

  .grid > .layer:nth-of-type(1) {
    display: none;
  }
}

/* Layers using subgrid */
.grid > .layer {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

.grid > .layer:nth-of-type(1) div:nth-of-type(odd)  { grid-column: 1; }
.grid > .layer:nth-of-type(1) div:nth-of-type(even) { grid-column: -2; }

.grid > .layer:nth-of-type(2) div:nth-of-type(odd)  { grid-column: calc(2 + var(--offset)); }
.grid > .layer:nth-of-type(2) div:nth-of-type(even) { grid-column: calc(-3 - var(--offset)); }

.grid > .layer:nth-of-type(3) div:first-of-type {
  grid-column: calc(3 + var(--offset));
  grid-row: 1;
}

.grid > .layer:nth-of-type(3) div:last-of-type {
  grid-column: calc(3 + var(--offset));
  grid-row: 3;
}

.grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid img:hover {
  transform: scale(1.05);
}

.grid .scaler {
  position: relative;
  grid-area: 2 / calc(3 + var(--offset));
}

.scaler {
  z-index: 2;
  width: 100%;
  height: 100%;
  position: relative;
}

.scaler img {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  object-fit: cover;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
}


.earth-footer {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.earth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.earth-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  pointer-events: none;
  opacity: 0.07;
  z-index: 1;
}

.earth-logo-bg svg {
  width: 100%;
  height: auto;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-bottom: 2rem;
  pointer-events: none;
}

.footer-center-logo {
  width: 200px;
  filter: brightness(0) invert(1);
}

.footer-badges {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 2;
}

@media (max-width: 768px) {
  .footer-badges {
    gap: 1.25rem;
    padding-top: calc(64px + 3.5rem);
  }

  .footer-badge {
    height: 29px;
  }
}

.footer-badge {
  height: 50px;
  width: auto;
  filter: brightness(0);
  opacity: 0.85;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  height: 28px;
  filter: brightness(0);
  opacity: 0.7;
}

.footer-tagline {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  pointer-events: all;
}

.footer-nav a {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #000000;
}

.footer-copy {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgb(255, 255, 255);
  text-align: center;
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 1.5rem;
  }
}



/* CSS transitions */
#navbar {
  transition:
    top              0.55s cubic-bezier(0.65, 0, 0.35, 1),
    height           0.55s cubic-bezier(0.65, 0, 0.35, 1),
    padding          0.55s cubic-bezier(0.65, 0, 0.35, 1),
    background-color 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    border-radius    0.55s cubic-bezier(0.65, 0, 0.35, 1),
    box-shadow       0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Standalone gradient overlay — decoupled from navbar transforms */
#nav-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 45%,
    rgba(0, 0, 0, 0.12) 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 99;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

#nav-gradient.is-hidden {
  opacity: 0;
}

/* Compact pill state */
#navbar.is-scrolled {
  top: 14px;
  padding: 0 2.5rem;
  background-color: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 100px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Tagline */
#navbar.is-scrolled .nav-tagline {
  pointer-events: none;
}

@media (max-width: 768px) {
  #navbar.is-scrolled {
    height: 80px;
    padding: 0 1.5rem;
  }
}
