:root {
  --ink: #1c2a32;
  --ink-soft: #3d4f5a;
  --ground: #c9d9cf;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --pad: clamp(1.5rem, 5vw, 4rem);
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ground);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Single full-viewport stage: visual + copy share one grid cell */

.stage {
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: var(--ground);
}

.stage-visual,
.stage-content {
  grid-area: 1 / 1;
}

.stage-visual {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 18% 8%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 88% 20%, rgba(180, 210, 220, 0.45), transparent 55%),
    linear-gradient(180deg, #e8f1f5 0%, #c9d9cf 48%, #8fa896 100%);
  animation: sky-drift 22s ease-in-out infinite alternate;
}

.stage-terrain {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.contour {
  stroke-dasharray: 12 10;
  animation: contour-drift 28s linear infinite;
}

.contour.c2 { animation-duration: 34s; animation-direction: reverse; }
.contour.c3 { animation-duration: 40s; }
.contour.c4 { animation-duration: 46s; animation-direction: reverse; }

.mesh {
  transform-origin: 70% 35%;
  animation: mesh-breathe 10s ease-in-out infinite alternate;
}

.stage-content {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: start;
  width: min(100%, 42rem);
  padding: var(--pad);
  margin-inline: clamp(0rem, 4vw, 2rem);
}

.brand {
  margin: 0 0 clamp(0.85rem, 2.5vh, 1.35rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-soft);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

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

@keyframes sky-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes contour-drift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes mesh-breathe {
  from {
    opacity: 0.85;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-sky,
  .contour,
  .mesh,
  .brand,
  .lede {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .stage-content {
    align-self: end;
    margin-inline: 0;
    padding-bottom: clamp(2.5rem, 10vh, 4rem);
  }
}
