/* =========================================
RESET
========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #07151d;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================
ACCESSIBILITY
========================================= */

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
  border-radius: 4px;
}

/* =========================================
VARIABLES
========================================= */

:root {
  --night: #07151d;
  --night-light: #102b38;
  --blue: #164b63;
  --ice: #dff7ff;
  --ice-light: #f4fcff;
  --cyan: #82d9e8;
  --text-dark: #102a35;
  --muted: #6d8994;
  --orange: #ff9b61;
}

/* =========================================
HERO
========================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #061018 0%,
    #0a202c 45%,
    #143b4a 75%,
    #9bd6df 100%
  );
}

/* =========================================
SKY
========================================= */

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.moon {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #e7fbff;

  box-shadow:
    0 0 30px rgba(214, 249, 255, 0.45),
    0 0 90px rgba(214, 249, 255, 0.18);
}

.moon span {
  position: absolute;
  width: 15px;
  height: 15px;
  top: 22px;
  left: 20px;
  border-radius: 50%;
  background: #c9e9ef;

  box-shadow:
    30px 25px 0 -3px #c9e9ef,
    20px -5px 0 -6px #c9e9ef;
}

/* =========================================
STARS
========================================= */

.stars {
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px);

  background-size:
    90px 90px,
    150px 150px;

  opacity: 0.35;
}

.stars-one {
  animation: starsMove 30s linear infinite;
}

.stars-two {
  opacity: 0.2;
  transform: scale(1.3);
  animation: starsMove 45s linear infinite reverse;
}

/* =========================================
AURORA
========================================= */

.aurora {
  position: absolute;

  width: 65%;
  height: 250px;

  top: 5%;
  left: 15%;

  border-radius: 50%;

  filter: blur(45px);

  opacity: 0.25;
}

.aurora-one {
  background: #52e0ce;
  transform: rotate(-7deg);

  animation: auroraOne 8s ease-in-out infinite alternate;
}

.aurora-two {
  background: #4f9bff;
  transform: rotate(10deg);

  animation: auroraTwo 11s ease-in-out infinite alternate;
}

/* =========================================
NAVIGATION
========================================= */

.navbar {
  position: absolute;
  z-index: 20;

  top: 0;
  left: 0;

  width: 100%;

  padding: 30px 6%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Space Grotesk", sans-serif;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo-mark {
  display: inline-flex;

  width: 27px;
  height: 27px;

  align-items: center;
  justify-content: center;

  margin-right: 8px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;

  font-size: 11px;
}

.logo > span:last-child {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 38px;

  font-size: 14px;

  color: rgba(255, 255, 255, 0.7);
}

.nav-links a {
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-button {
  padding: 11px 19px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;

  font-size: 13px;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.nav-button:hover {
  background: white;
  color: var(--night);
}

/* =========================================
HERO CONTENT
========================================= */

.hero-content {
  position: absolute;

  z-index: 10;

  top: 50%;
  left: 7%;

  width: min(570px, 90%);

  transform: translateY(-50%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 22px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.65);
}

.eyebrow span {
  width: 25px;
  height: 1px;

  background: var(--cyan);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(70px, 9vw, 145px);

  line-height: 0.82;

  letter-spacing: -7px;

  font-weight: 600;
}

.hero h1 span {
  display: block;

  color: transparent;

  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.hero-description {
  max-width: 440px;

  margin-top: 35px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 32px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  padding: 15px 20px;

  border-radius: 50px;

  background: white;
  color: var(--night);

  font-size: 13px;
  font-weight: 600;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.primary-button:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.primary-button span {
  font-size: 17px;
}

.secondary-button {
  color: rgba(255, 255, 255, 0.55);

  font-size: 12px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);

  padding-bottom: 4px;
}

/* =========================================
MOUNTAINS
========================================= */

.mountains {
  position: absolute;

  bottom: 17%;
  left: 0;

  width: 100%;
  height: 42%;

  z-index: 3;
}

.mountain {
  position: absolute;

  bottom: 0;

  width: 0;
  height: 0;

  border-left: 180px solid transparent;
  border-right: 180px solid transparent;
  border-bottom: 320px solid #173845;
}

.mountain-back-one {
  left: 4%;

  border-left-width: 220px;
  border-right-width: 220px;
  border-bottom-width: 300px;

  opacity: 0.6;
}

.mountain-back-two {
  left: 30%;

  border-left-width: 260px;
  border-right-width: 260px;
  border-bottom-width: 350px;

  opacity: 0.5;
}

.mountain-front-one {
  right: 12%;

  border-left-width: 280px;
  border-right-width: 280px;
  border-bottom-width: 400px;

  border-bottom-color: #102d3a;
}

.mountain-front-two {
  right: -8%;

  border-left-width: 250px;
  border-right-width: 250px;
  border-bottom-width: 340px;

  border-bottom-color: #143541;
}

/* =========================================
OCEAN
========================================= */

.ocean {
  position: absolute;

  z-index: 5;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 24%;

  background: linear-gradient(180deg, #164656, #092530);
}

.wave {
  position: absolute;

  left: -5%;

  width: 110%;
  height: 60px;

  border-radius: 50% 50% 0 0;

  background: #b4e9ee;
}

.wave-one {
  top: -30px;

  opacity: 0.9;

  animation: wave 7s ease-in-out infinite alternate;
}

.wave-two {
  top: -15px;

  background: #4b9cab;

  opacity: 0.5;

  animation: wave 9s ease-in-out infinite alternate-reverse;
}

.wave-three {
  top: 5px;

  background: #164656;

  opacity: 0.7;

  animation: wave 11s ease-in-out infinite alternate;
}

/* =========================================
ICEBERGS
========================================= */

.iceberg {
  position: absolute;

  z-index: 6;

  bottom: 18%;

  width: 110px;
  height: 130px;

  background: linear-gradient(135deg, #f5fdff 0%, #c7edf4 45%, #7abac7 100%);

  clip-path: polygon(
    15% 100%,
    25% 55%,
    10% 30%,
    35% 38%,
    48% 0,
    60% 40%,
    85% 22%,
    78% 60%,
    95% 100%
  );

  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.iceberg-one {
  left: 4%;

  transform: scale(1.1);

  animation: icebergFloat 6s ease-in-out infinite;
}

.iceberg-two {
  right: 5%;

  bottom: 21%;

  transform: scale(0.7);

  animation: icebergFloat 8s ease-in-out infinite reverse;
}

.iceberg-three {
  left: 52%;

  bottom: 20%;

  transform: scale(0.45);

  opacity: 0.7;

  animation: icebergFloat 9s ease-in-out infinite;
}

/* =========================================
SHIP
========================================= */

.ship {
  --ship-scale: 1;

  position: absolute;

  z-index: 8;

  bottom: 20%;
  left: 42%;

  width: 230px;
  height: 110px;

  animation: shipFloat 4s ease-in-out infinite;
}

.ship-body {
  position: absolute;

  bottom: 0;

  width: 230px;
  height: 48px;

  background: #0a1820;

  clip-path: polygon(0 0, 100% 0, 86% 100%, 12% 100%);

  border-bottom: 5px solid #d1f2f5;
}

.ship-upper {
  position: absolute;

  bottom: 42px;
  left: 45px;

  width: 105px;
  height: 35px;

  background: #d9f3f5;

  border-radius: 5px 5px 0 0;
}

.ship-window {
  display: inline-block;

  width: 10px;
  height: 7px;

  margin: 10px 3px;

  border-radius: 2px;

  background: #4b8792;
}

.ship-mast {
  position: absolute;

  bottom: 77px;
  left: 90px;

  width: 2px;
  height: 30px;

  background: #d8f3f5;
}

.ship-flag {
  position: absolute;

  bottom: 98px;
  left: 92px;

  color: var(--orange);

  font-size: 10px;
}

.ship-smoke {
  position: absolute;

  border-radius: 50%;

  background: rgba(220, 247, 250, 0.25);

  filter: blur(2px);
}

.smoke-one {
  left: 135px;
  top: 1px;

  width: 14px;
  height: 14px;
}

.smoke-two {
  left: 148px;
  top: -13px;

  width: 19px;
  height: 19px;
}

/* =========================================
PENGUIN
========================================= */

.penguin-wrapper {
  position: absolute;

  z-index: 12;

  right: 14%;
  bottom: 19%;

  width: 130px;
  height: 200px;
}

.penguin {
  position: relative;

  width: 100%;
  height: 100%;

  animation: penguinBounce 3s ease-in-out infinite;
}

.penguin-body {
  position: absolute;

  bottom: 10px;
  left: 25px;

  width: 80px;
  height: 120px;

  border-radius: 48% 48% 42% 42%;

  background: #07151d;
}

.penguin-belly {
  position: absolute;

  bottom: 15px;
  left: 16px;

  width: 48px;
  height: 80px;

  border-radius: 50%;

  background: #eefbfc;
}

.penguin-head {
  position: absolute;

  top: 30px;
  left: 27px;

  width: 76px;
  height: 72px;

  border-radius: 50%;

  background: #07151d;
}

.penguin-face {
  position: absolute;

  top: 15px;
  left: 14px;

  width: 48px;
  height: 42px;

  border-radius: 50%;

  background: #eefbfc;
}

.eye {
  position: absolute;

  top: 13px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #07151d;
}

.eye-left {
  left: 11px;
}

.eye-right {
  right: 11px;
}

.beak {
  position: absolute;

  top: 23px;
  left: 19px;

  width: 12px;
  height: 9px;

  background: var(--orange);

  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.penguin-wing {
  position: absolute;

  top: 30px;

  width: 25px;
  height: 80px;

  border-radius: 50%;

  background: #0d222b;
}

.wing-left {
  left: -17px;

  transform: rotate(15deg);
}

.wing-right {
  right: -17px;

  transform: rotate(-15deg);
}

.penguin-feet {
  position: absolute;

  bottom: -8px;
  left: 16px;

  display: flex;
  gap: 23px;
}

.penguin-feet span {
  width: 28px;
  height: 11px;

  border-radius: 50%;

  background: var(--orange);
}

.penguin-shadow {
  position: absolute;

  bottom: 3px;
  left: 15px;

  width: 100px;
  height: 15px;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.2);

  filter: blur(5px);
}

/* =========================================
SCROLL INDICATOR
========================================= */

.scroll-indicator {
  position: absolute;

  z-index: 15;

  bottom: 35px;
  left: 7%;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255, 255, 255, 0.45);

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 35px;
  height: 1px;

  background: rgba(255, 255, 255, 0.4);
}

/* =========================================
MISSION
========================================= */

.mission {
  padding: 140px 7%;

  background: var(--ice-light);

  color: var(--text-dark);
}

.section-heading {
  max-width: 650px;
}

.eyebrow.dark {
  color: var(--muted);
}

.section-heading h2,
.journey-content h2,
.research h2,
.join h2 {
  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(45px, 6vw, 80px);

  line-height: 0.95;

  letter-spacing: -3px;
}

.section-heading h2 span,
.journey-content h2 span,
.research h2 span,
.join h2 span {
  color: #8fb4bd;
}

.section-heading > p:last-child {
  max-width: 520px;

  margin-top: 30px;

  color: var(--muted);

  line-height: 1.8;
}

.stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 100px;

  border-top: 1px solid #c9dce0;
}

.stat {
  padding: 40px 25px;

  border-right: 1px solid #c9dce0;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;

  font-family: "Space Grotesk", sans-serif;

  font-size: 55px;

  letter-spacing: -3px;
}

.stat span {
  color: var(--muted);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* =========================================
JOURNEY
========================================= */

.journey {
  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 750px;
}

.journey-image {
  position: relative;

  overflow: hidden;

  background: linear-gradient(160deg, #113745, #4b8995);
}

.journey-image::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(220, 250, 255, 0.3),
    transparent 65%
  );
}

.journey-glow {
  position: absolute;

  bottom: -100px;
  left: -10%;

  width: 120%;
  height: 300px;

  border-radius: 50%;

  background: #173f4c;

  animation: wave 7s ease-in-out infinite alternate;
}

.mini-iceberg {
  position: absolute;

  bottom: 32%;
  left: 30%;

  width: 180px;
  height: 220px;

  background: linear-gradient(135deg, #f4fdff, #8ac8d3);

  clip-path: polygon(
    5% 100%,
    20% 55%,
    10% 30%,
    40% 42%,
    55% 0,
    68% 35%,
    100% 20%,
    80% 60%,
    95% 100%
  );
}

.mini-penguin {
  position: absolute;

  bottom: 24%;
  right: 25%;

  width: 60px;
  height: 90px;
}

.mini-penguin-head {
  position: absolute;

  top: 0;
  left: 10px;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: #07151d;
}

.mini-penguin-body {
  position: absolute;

  bottom: 0;
  left: 4px;

  width: 52px;
  height: 65px;

  border-radius: 50%;

  background: #07151d;
}

.journey-content {
  padding: 130px 10%;

  background: #f4fbfc;

  color: var(--text-dark);
}

.journey-content > p {
  color: var(--muted);

  line-height: 1.8;

  max-width: 500px;

  margin-top: 30px;
}

.route {
  margin-top: 60px;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.route-dot {
  width: 11px;
  height: 11px;

  border: 2px solid #9bbcc3;

  border-radius: 50%;
}

.route-item.active .route-dot {
  background: var(--text-dark);

  border-color: var(--text-dark);
}

.route-item strong {
  display: block;

  font-size: 14px;
}

.route-item small {
  color: var(--muted);

  font-size: 11px;
}

.route-line {
  width: 1px;
  height: 40px;

  margin-left: 5px;

  background: #cbdde1;
}

/* =========================================
RESEARCH
========================================= */

.research {
  padding: 140px 7%;

  background: #07151d;
}

.research h2 {
  max-width: 750px;

  color: white;
}

.research-heading {
  margin-bottom: 80px;
}

.research-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.research-card {
  position: relative;

  min-height: 350px;

  padding: 35px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.025);

  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.research-card:hover {
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.05);
}

.card-number {
  position: absolute;

  top: 30px;
  right: 30px;

  color: rgba(255, 255, 255, 0.3);

  font-size: 11px;
}

.card-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  margin-bottom: 70px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: var(--cyan);

  font-size: 23px;
}

.research-card h3 {
  font-family: "Space Grotesk", sans-serif;

  font-size: 28px;
}

.research-card p {
  margin-top: 12px;

  color: rgba(255, 255, 255, 0.45);

  font-size: 13px;

  line-height: 1.7;
}

.research-card a {
  display: inline-block;

  margin-top: 25px;

  color: var(--cyan);

  font-size: 12px;
}

/* =========================================
JOIN
========================================= */

.join {
  position: relative;

  overflow: hidden;

  padding: 160px 7%;

  background: linear-gradient(130deg, #b8e7ec, #e9f8fa);

  color: var(--text-dark);
}

.join::after {
  content: "NORTH";

  position: absolute;

  right: -30px;
  bottom: -100px;

  font-family: "Space Grotesk", sans-serif;

  font-size: 230px;
  font-weight: 700;

  letter-spacing: -15px;

  color: rgba(255, 255, 255, 0.35);
}

.join-content {
  position: relative;

  z-index: 2;

  max-width: 700px;
}

.join-content > p:not(.eyebrow) {
  max-width: 470px;

  margin: 30px 0;

  color: var(--muted);

  line-height: 1.8;
}

.dark-button {
  background: var(--text-dark);
  color: white;
}

/* =========================================
FOOTER
========================================= */

footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 35px 7%;

  background: #061018;

  color: rgba(255, 255, 255, 0.4);

  font-size: 11px;
}

footer .logo {
  color: white;

  font-size: 15px;
}

/* =========================================
ANIMATIONS
========================================= */

@keyframes starsMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(30px);
  }
}

@keyframes auroraOne {
  from {
    transform: translateX(-30px) rotate(-7deg);
  }

  to {
    transform: translateX(40px) rotate(-2deg);
  }
}

@keyframes auroraTwo {
  from {
    transform: translateX(30px) rotate(10deg);
  }

  to {
    transform: translateX(-40px) rotate(5deg);
  }
}

@keyframes wave {
  from {
    transform: translateX(-2%) scaleY(0.8);
  }

  to {
    transform: translateX(2%) scaleY(1.15);
  }
}

@keyframes icebergFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/*
  FIX:
  Ship scale is now included in the animation itself.
  This prevents the mobile scale from being overwritten
  by the animation's transform property.
*/

@keyframes shipFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0) scale(var(--ship-scale));
  }

  50% {
    transform: translateY(-5px) rotate(-1deg) scale(var(--ship-scale));
  }
}

@keyframes penguinBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(65px, 15vw, 110px);
  }

  .ship {
    left: 35%;
  }

  .penguin-wrapper {
    right: 8%;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey-image {
    min-height: 550px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 700px;
  }

  .navbar {
    padding: 22px 5%;
  }

  .nav-button {
    display: none;
  }

  .hero-content {
    left: 5%;
  }

  .hero h1 {
    font-size: 65px;
    letter-spacing: -4px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .moon {
    width: 60px;
    height: 60px;

    right: 8%;
  }

  /*
    FIX:
    --ship-scale is used by @keyframes shipFloat,
    so the ship remains scaled while it floats.
  */

  .ship {
    left: 22%;
    --ship-scale: 0.75;
  }

  .penguin-wrapper {
    right: 2%;

    transform: scale(0.75);
  }

  .mountain {
    transform: scale(0.65);
    transform-origin: bottom;
  }

  .mission,
  .research {
    padding: 90px 6%;
  }

  .section-heading h2,
  .journey-content h2,
  .research h2,
  .join h2 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;

    margin-top: 60px;
  }

  .stat {
    padding: 25px 10px;

    border-bottom: 1px solid #c9dce0;
  }

  .stat strong {
    font-size: 40px;
  }

  .journey-content {
    padding: 90px 7%;
  }

  .research-grid {
    gap: 12px;
  }

  .research-card {
    min-height: 300px;
  }

  .join {
    padding: 100px 7%;
  }

  .join::after {
    font-size: 120px;
  }

  footer {
    flex-direction: column;

    gap: 15px;

    text-align: center;
  }
}

/* =========================================
REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
