/* ================================================================
   LANDING PAGE — THE ASCENT
   One journey. One direction. Up.
   ================================================================ */

/* ---- Reset ---- */
html, body {
  margin: 0;
  padding: 0;
  background: #050508;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SELECTOR OVERLAY
   ═══════════════════════════════════════════════════════════ */

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050508;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.lang-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lang-overlay__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,163,184,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0,124,145,0.04) 0%, transparent 50%);
  z-index: 0;
}

.lang-overlay__motif {
  position: absolute;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}
.lang-overlay__motif--top {
  top: -30px;
  right: -30px;
  width: 280px;
  height: 280px;
  transform: rotate(45deg);
}
.lang-overlay__motif--bottom {
  bottom: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  transform: rotate(-30deg);
}

.lang-overlay__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
}

/* Skip to Site */
.lang-overlay__skip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 3rem;
}
.lang-overlay__skip:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.lang-overlay__skip-icon i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}
.lang-overlay__skip:hover .lang-overlay__skip-icon i {
  transform: translateX(3px);
}

/* Heading */
.lang-overlay__heading {
  margin-bottom: 2.5rem;
}
.lang-overlay__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.lang-overlay__brand {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #fff 0%, #80e8f0 50%, #4DD0E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.lang-overlay__tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

/* Language Cards Grid */
.lang-overlay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-card:hover,
.lang-card:focus-visible {
  background: rgba(0,163,184,0.08);
  border-color: rgba(0,163,184,0.3);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,163,184,0.15);
}
.lang-card:active {
  transform: translateY(-1px) scale(0.98);
}
.lang-card__flag {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.lang-card__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.lang-card:hover .lang-card__name {
  color: #fff;
}

/* Hint */
.lang-overlay__hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.12em;
  animation: fadePulse 2.5s ease-in-out infinite;
}
@keyframes fadePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

/* Entrance stagger animation for cards */
.lang-card {
  opacity: 0;
  transform: translateY(15px);
  animation: langCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.lang-card:nth-child(1) { animation-delay: 0.2s; }
.lang-card:nth-child(2) { animation-delay: 0.3s; }
.lang-card:nth-child(3) { animation-delay: 0.4s; }
.lang-card:nth-child(4) { animation-delay: 0.5s; }
@keyframes langCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .lang-overlay__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .lang-card {
    padding: 1rem 0.5rem;
  }
  .lang-card__flag {
    font-size: 1.6rem;
  }
  .lang-card__name {
    font-size: 0.8rem;
  }
  .lang-overlay__skip {
    font-size: 0.65rem;
    padding: 0.45rem 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lang-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .lang-overlay__hint {
    animation: none;
  }
}

/* ---- Skip Button ---- */
.skip-to-site {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(10, 20, 35, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.skip-to-site:hover {
  background: rgba(15, 30, 50, 0.95);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  color: #fff;
}
.skip-to-site i { font-size: 0.7rem; transition: transform 0.3s ease; }
.skip-to-site:hover i { transform: translateX(3px); }

/* ---- Theme Toggle (hidden — scroll journey IS the theme) ---- */
.theme-toggle-landing {
  display: none !important;
}

/* ---- Master Canvas (fixed, full screen, behind everything) ---- */
#master-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---- Scroll Container ---- */
.scroll-container {
  position: relative;
  z-index: 2;
}

/* ---- Scene Spacers ---- */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  pointer-events: none;
}
.scene__content > * { pointer-events: auto; }

.scene__content--left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  padding-left: 5vw;
}

.scene__content--right {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
  padding-right: 5vw;
}

.scene__content--left .scene__text,
.scene__content--right .scene__text {
  margin-left: 0;
  margin-right: 0;
}

.scene__content--left .scene__cta {
  justify-content: flex-start;
}

.scene__content--right .scene__cta {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .scene__content--left,
  .scene__content--right {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .scene__content--left .scene__cta,
  .scene__content--right .scene__cta {
    justify-content: center;
  }
  .sky-character {
    width: 60px;
    height: 60px;
  }
}

/* ---- Sky Character (positioned by JS, no margin offset) ---- */
.sky-character {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  width: 52px;
  height: 52px;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: drop-shadow(0 0 40px rgba(0, 212, 224, 0.9)) drop-shadow(0 0 80px rgba(0, 163, 184, 0.6));
}
.sky-character--visible {
  opacity: 1;
}
.sky-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Character glow aura */
.sky-character::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,224,0.15) 0%, rgba(0,163,184,0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---- Typography ---- */
.scene__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00A3B8;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(0,163,184,0.25);
  border-radius: 20px;
  background: rgba(0,163,184,0.06);
}

.scene__title {
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.scene__title--gradient {
  background: linear-gradient(135deg, #fff 0%, #80e8f0 50%, #4DD0E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Scene 1: Shore specific dark text ---- */
#scene-shore .scene__title {
  color: #0A2A3A;
  text-shadow: 0 1px 8px rgba(255,255,255,0.3);
}
#scene-shore .scene__title--gradient {
  background: linear-gradient(135deg, #0A2A3A 0%, #1A4A5A 50%, #0A3A4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#scene-shore .scene__text {
  color: rgba(10, 30, 50, 0.85);
}
#scene-shore .scroll-indicator__text {
  color: rgba(0, 60, 80, 0.7);
}
#scene-shore .scroll-indicator__line {
  background: linear-gradient(180deg, rgba(0,100,130,0.6), transparent);
}

.scene__text {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  letter-spacing: 0.01em;
}

.scene__text--philosophy {
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

/* ---- CTA Button ---- */
.scene__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #007C91 0%, #00A3B8 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,163,184,0.35);
}
.scene__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,163,184,0.5);
  gap: 0.85rem;
  color: #fff;
}
.scene__cta i { font-size: 0.8rem; transition: transform 0.3s ease; }
.scene__cta:hover i { transform: translateX(4px); }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.scroll-indicator__text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 60, 80, 0.8);
}
.scroll-indicator__line {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, rgba(0,100,130,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---- Scene 9: Reveal ---- */
.reveal-logo {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.reveal-tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}
.reveal-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reveal-form__input {
  padding: 0.9rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  outline: none;
  min-width: 280px;
  transition: all 0.3s ease;
}
.reveal-form__input::placeholder { color: rgba(255,255,255,0.35); }
.reveal-form__input:focus {
  border-color: #00A3B8;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(0,163,184,0.2);
}
.reveal-form__button {
  padding: 0.9rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #007C91 0%, #00A3B8 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,163,184,0.35);
}
.reveal-form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,163,184,0.5);
}
.reveal-enter {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.reveal-enter a {
  color: #00A3B8;
  text-decoration: none;
  transition: color 0.3s ease;
}
.reveal-enter a:hover { color: #4DD0E1; }

/* ---- Scene Navigation Dots ---- */
.scene-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scene-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}
.scene-nav__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,163,184,0.4);
  transition: transform 0.3s ease;
}
.scene-nav__dot:hover,
.scene-nav__dot--active {
  background: #00A3B8;
  box-shadow: 0 0 10px rgba(0,163,184,0.5);
  transform: scale(1.3);
}
.scene-nav__dot--active::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ---- Responsive ---- */
/* ---- Mobile Typography & Animation Fixes ---- */
@media (max-width: 768px) {
  .skip-to-site { top: 12px; right: 12px; padding: 0.5rem 1rem; font-size: 0.7rem; }
  .scene-nav { display: none; }
  .reveal-form { flex-direction: column; align-items: center; }
  .reveal-form__input { min-width: unset; width: 100%; max-width: 300px; }

  /* Mobile: larger, more readable text */
  .scene__content {
    padding: 0 1.25rem;
  }

  .scene__title {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
  }

  .scene__text {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    line-height: 1.5;
    max-width: 340px;
  }

  .scene__eyebrow {
    font-size: 0.6rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .scene__cta {
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
  }

  /* Reduce scene height on mobile to prevent excessive scroll */
  .scene {
    height: 100dvh;
    min-height: -webkit-fill-available;
  }

  /* Reveal scene mobile */
  .reveal-logo {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  .reveal-tagline {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin-bottom: 1.5rem;
  }

  /* Scroll indicator positioning */
  .scroll-indicator {
    bottom: 40px;
  }
}

@media (max-width: 380px) {
  .scene__title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }
  .scene__text {
    font-size: clamp(0.8rem, 3.2vw, 0.9rem);
  }
  .scene__content {
    padding: 0 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator__line { animation: none; }
}

/* email form */
.reveal-form__message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  transition: opacity 0.3s;
}
.reveal-form__message--success { color: #52B788; }
.reveal-form__message--error   { color: #E8855A; }