:root {
  --ink: #12161c;
  --paper: #e8e2d6;
  --steel: #3a4654;
  --rust: #b85a2a;
  --mist: rgba(232, 226, 214, 0.12);
  --font-display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Liberation Sans Narrow",
    "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(184, 90, 42, 0.28), transparent 55%),
    radial-gradient(900px 600px at 88% 78%, rgba(58, 70, 84, 0.55), transparent 50%),
    linear-gradient(160deg, #0d1015 0%, #1a222c 48%, #12161c 100%);
}

.stage__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: rotate(-8deg) scale(1.2);
  opacity: 0.55;
  animation: grid-drift 28s linear infinite;
}

.stage__glow {
  position: absolute;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  right: -8%;
  bottom: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 90, 42, 0.35), transparent 68%);
  filter: blur(8px);
  animation: glow-pulse 7s ease-in-out infinite;
}

.stage__rib {
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(42vw, 420px);
  height: min(28vw, 220px);
  border: 1px solid rgba(232, 226, 214, 0.18);
  border-radius: 4px;
  transform: skewX(-12deg);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 28, 0.35);
  animation: rib-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 52rem;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__line {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  font-weight: 400;
  color: var(--paper);
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__support {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.45;
  color: rgba(232, 226, 214, 0.82);
  animation: rise 0.9s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__cta {
  margin: 2rem 0 0;
  animation: rise 0.9s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__mail {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--rust);
  padding-bottom: 0.15rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.hero__mail:hover,
.hero__mail:focus-visible {
  color: #fff;
  border-color: #d9783a;
  outline: none;
}

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

@keyframes grid-drift {
  from {
    transform: rotate(-8deg) scale(1.2) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-8deg) scale(1.2) translate3d(-72px, -36px, 0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes rib-in {
  from {
    opacity: 0;
    transform: skewX(-12deg) translateX(24px);
  }
  to {
    opacity: 1;
    transform: skewX(-12deg) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage__grid,
  .stage__glow,
  .stage__rib,
  .hero__brand,
  .hero__line,
  .hero__support,
  .hero__cta {
    animation: none;
  }
}
