:root {
  --color-bg:      #071324;
  --color-navy:    #051332;
  --color-cream:   #F7F5F0;
  --color-orange:  #ff6b36;

  --font-size-hero: clamp(3.5rem, 9vw, 11rem);
  --line-height-hero: 0.87;
  --letter-spacing-hero: -0.02em;

  --left-edge: 3rem;

  --shadow-text-dark:   0 2px 0 rgba(0,0,0,.18), 0 6px 50px rgba(0,0,0,.7);
  --shadow-text-orange: 0 2px 0 rgba(0,0,0,.14), 0 6px 50px rgba(0,0,0,.55);

  --anim-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--color-bg); }
body { font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, sans-serif; }

.scene {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.layer {
  position: absolute;
  inset: -6vmax;
  background-image: url("image.png");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.layer-sky {
  z-index: 1;
  filter: grayscale(1) brightness(0.9) saturate(1.05);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 72% 64%, 56% 58%, 44% 65%, 30% 59%, 0 60%);
}

.layer-far {
  z-index: 2;
  filter: grayscale(1) brightness(0.78) saturate(0.95);
  clip-path: polygon(0 52%, 15% 38%, 28% 56%, 39% 48%, 48% 58%, 56% 41%, 64% 58%, 76% 46%, 88% 61%, 100% 40%, 100% 100%, 0 100%);
}

.layer-near {
  z-index: 3;
  filter: grayscale(1) brightness(0.58) contrast(1.08);
  clip-path: polygon(0 70%, 12% 63%, 24% 74%, 35% 66%, 46% 80%, 57% 68%, 66% 86%, 76% 70%, 86% 83%, 100% 64%, 100% 100%, 0 100%);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(5,19,50,.55) 100%),
    linear-gradient(to bottom, rgba(5,19,50,.28) 0%, rgba(5,19,50,.12) 50%, rgba(5,19,50,.38) 100%);
}

.logo {
  position: absolute;
  z-index: 10;
  top: 2.2rem;
  left: var(--left-edge);
  height: clamp(32px, 3.2vw, 52px);
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
  animation: fadeDown 0.7s var(--anim-spring) 0.15s both;
}

.text-top,
.text-bottom {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.text-top {
  top: 20%;
  left: var(--left-edge);
  animation: fadeUp 1s var(--anim-spring) 0.3s both;
}

.text-bottom {
  bottom: 5%;
  right: 2.5%;
  align-items: flex-end;
  animation: fadeUp 1s var(--anim-spring) 0.5s both;
}

.line {
  display: block;
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: var(--line-height-hero);
  letter-spacing: var(--letter-spacing-hero);
}

.text-top .line {
  color: var(--color-cream);
  text-shadow: var(--shadow-text-dark);
}

.text-bottom .line {
  color: var(--color-orange);
  text-shadow: var(--shadow-text-orange);
}

@keyframes fadeDown {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 600px) {
  :root {
    --font-size-hero: clamp(2.6rem, 14vw, 5rem);
    --left-edge: 1.25rem;
  }

  .logo {
    top: 1.4rem;
    height: clamp(26px, 7vw, 38px);
  }

  .text-top {
    top: 18%;
  }

  .text-bottom {
    bottom: 4%;
    right: 1.25rem;
  }
}
