:root {
  color-scheme: dark;
  --text: #f3f5f7;
  --muted: #a2a8ae;
  --line: rgba(255, 255, 255, 0.28);
  --page-gutter: clamp(1.5rem, 5vw, 5.25rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #070b0e;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #070b0e;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: #080d11;
}

.hero-background,
.page-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-background {
  overflow: hidden;
  background: #080d11;
  transform: scale(1.025);
  animation: background-settle 1.8s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-slide {
  position: absolute;
  inset: -0.75rem;
  background-position: center;
  background-size: cover;
  filter: blur(2.5px);
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.4s ease,
    transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.025);
}

.page-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 5, 7, 0.9) 0%, rgba(2, 5, 7, 0.5) 46%, rgba(2, 5, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 5, 7, 0.82) 0%, transparent 38%);
  backdrop-filter: blur(0.75px);
}

.site-header,
.hero,
.site-footer {
  width: 100%;
  padding-inline: var(--page-gutter);
}

.site-header {
  padding-top: clamp(1.7rem, 4.4vh, 2.75rem);
}

.logo {
  display: inline-block;
  font-family: "Oxanium", "Arial Narrow", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  opacity: 0;
  animation: reveal 0.8s 0.08s ease-out forwards;
}

.hero {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content {
  width: min(100%, 50rem);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(4rem, 7.3vw, 7.25rem);
  font-weight: 300;
  line-height: 0.91;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-up 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

h1 span:nth-child(1) {
  animation-delay: 0.18s;
}

h1 span:nth-child(2) {
  animation-delay: 0.28s;
}

h1 span:nth-child(3) {
  animation-delay: 0.38s;
}

.hero-description {
  max-width: 34rem;
  margin: clamp(1.75rem, 3.5vh, 2.5rem) 0 0;
  color: #b4bac0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 0.8s 0.48s ease-out forwards;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 26.4rem);
  margin-top: clamp(2rem, 4.5vh, 3.25rem);
  padding: 1.3rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #d9dde0;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(16px);
  transition:
    color 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease;
  animation: reveal-up 0.8s 0.62s ease-out forwards;
}

.cta::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: #edf3f6;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1);
}

.cta svg {
  width: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  transition: transform 250ms ease;
}

.cta:hover,
.cta:focus-visible {
  color: #0b1014;
  border-color: #edf3f6;
  outline: none;
}

.cta:hover::before,
.cta:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.cta:hover svg,
.cta:focus-visible svg {
  transform: translateX(0.3rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0;
  animation: reveal 0.8s 0.75s ease-out forwards;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-footer nav span {
  width: 1px;
  height: 0.85rem;
  background: var(--line);
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

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

@keyframes background-settle {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: clamp(1.25rem, 5.5vw, 2rem);
  }

  .page-shell {
    min-height: 100svh;
  }

  .hero-background {
    background-position: 64% center;
  }

  .page-shade {
    background:
      linear-gradient(90deg, rgba(2, 5, 7, 0.86), rgba(2, 5, 7, 0.35)),
      linear-gradient(0deg, rgba(2, 5, 7, 0.9) 0%, transparent 46%);
  }

  .hero {
    align-items: flex-end;
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .hero-content {
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(3.15rem, 14.4vw, 4.6rem);
  }

  .cta {
    width: 100%;
    max-width: 100%;
    margin-top: 3rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 1.1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

}

@media (max-height: 650px) and (min-width: 701px) {
  .hero {
    padding-block: 2rem;
  }

  h1 {
    font-size: clamp(3.5rem, 10vh, 5.25rem);
  }

  .cta {
    margin-top: 2rem;
  }

  .site-footer {
    min-height: 4.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
