:root {
  --bg-dark: #142431;
  --text: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --logo-max-width: 420px;
  --content-max-width: 1100px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow: hidden;
}

body {
  font-family:
    "Avenir Next",
    "Futura",
    "Trebuchet MS",
    "Century Gothic",
    Arial,
    sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  background: var(--bg-dark);
  isolation: isolate;
}

.hero__media,
.hero__overlay,
.hero__content {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: 0;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #1a2f40 0%, #142431 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
  filter: saturate(1.02) contrast(1.02);
  background: transparent;
}

.hero__video.is-ready {
  opacity: 1;
  visibility: visible;
}

.hero__overlay {
  z-index: 2;
  background: rgba(20, 36, 49, 0.75);
  pointer-events: none;
}

.hero__content {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero__inner {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo-wrap,
.hero__claim,
.hero__subline,
.hero__domain {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: transform, opacity;
}

.hero.is-animated .hero__logo-wrap {
  animation: fadeUp 700ms var(--ease-out) 0.08s forwards;
}

.hero.is-animated .hero__claim {
  animation: fadeUp 700ms var(--ease-out) 0.24s forwards;
}

.hero.is-animated .hero__subline {
  animation: fadeUp 720ms var(--ease-out) 0.4s forwards;
}

.hero.is-animated .hero__domain {
  animation: fadeUp 680ms var(--ease-out) 0.56s forwards;
}

.hero__logo {
  width: min(42vw, var(--logo-max-width));
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(var(--shadow));
}

.hero__claim {
  margin: 24px auto 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.hero__subline {
  margin: 10px auto 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
}

.hero__domain {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero__domain a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 180ms ease, color 180ms ease;
}

.hero__domain a:hover,
.hero__domain a:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1100px) {
  .hero__claim {
    white-space: normal;
    max-width: 24ch;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding: 24px;
  }

  .hero__logo {
    width: min(64vw, 360px);
  }

  .hero__claim {
    margin-top: 22px;
    font-size: 20px;
    line-height: 1.2;
  }

  .hero__subline {
    margin-top: 10px;
    max-width: 620px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero__domain {
    margin-top: 16px;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  .hero__logo {
    width: min(72vw, 300px);
  }

  .hero__claim {
    font-size: 18px;
    max-width: 18ch;
  }

  .hero__subline {
    font-size: 13px;
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    transition: none;
  }

  .hero__logo-wrap,
  .hero__claim,
  .hero__subline,
  .hero__domain {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.noscript-note a {
  color: #ffffff;
  text-decoration: underline;
}
