
/* Global */

:root {
  font-family: "Roboto", sans-serif;
  color: #f7f7f5;
  background: #02050a;

  --white: #f7f7f5;
  --muted: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #02050a;
}

/* Map */

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 0;
}

/* Gradients */

.gradient-top,
.gradient-bottom {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.gradient-top {
  top: 0;
  height: 32vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.58) 30%,
    rgba(0, 0, 0, 0.2) 65%,
    transparent 100%
  );
}

.gradient-bottom {
  bottom: 0;
  height: 36vh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.58) 30%,
    rgba(0, 0, 0, 0.2) 65%,
    transparent 100%
  );
}

/* Typography overlay */

.hero-copy {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  color: var(--white);
}


/* Bottom: ONE ISLAND ATOLL / MALDIVES */

.hero-bottom {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 15px;

  opacity: 0;
  transform: translateY(26px);

  transition:
    opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-brand {
  margin: 0;

  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(36px, 6vw, 86px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;

  color: #f5f4ef;
}

.hero-line {
  width: 100%;
  height: 1px;
  margin: 16px 0 12px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-country {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.82);
}

/* Text animations */

@keyframes eyebrow-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagery attribution */

.imagery-credit {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 7;

  padding: 4px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.48);

  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.imagery-credit a {
  color: inherit;
  text-decoration: none;
}

.imagery-credit a:hover,
.imagery-credit a:focus {
  color: white;
  text-decoration: underline;
}

/* JavaScript disabled */

.fallback {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9;
  transform: translate(-50%, -50%);

  width: max-content;
  max-width: 90vw;
  padding: 20px;
  background: #121c25;
}

/* Mobile */

@media (max-width: 600px) {
  .gradient-top {
    height: 25vh;
  }

  .gradient-bottom {
    height: 30vh;
  }

  .hero-top {
    top: 22px;
    left: 20px;
    right: 20px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 68px);
  }

  .hero-bottom {
    bottom: 15px;
    left: 20px;
    right: 20px;
  }

  .hero-brand {
    font-size: clamp(28px, 9vw, 44px);
  }

  .hero-line {
    margin: 12px 0 10px;
  }

  .hero-country {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .imagery-credit {
    right: 8px;
    bottom: 6px;
    font-size: 9px;
  }
}

/* Small screens */

@media (max-width: 360px) {
  .hero-title {
    font-size: 11vw;
  }

  .hero-brand {
    font-size: 8vw;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-bottom {
    transition: none;
  }
}
