:root {
  color-scheme: dark;
  --paper-white: oklch(98% 0.006 88);
  --nav-white: #FFFFFF;
  --soft-white: oklch(94% 0.012 86 / 0.92);
  --page-bg: oklch(10% 0.012 95);
  --shadow: oklch(0% 0 0 / 0.38);
  --nav-top: clamp(28px, 6.8vh, 72px);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--page-bg);
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--page-bg);
  isolation: isolate;
}

.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.03) contrast(1.02);
  pointer-events: none;
  user-select: none;
}

.hero__shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      oklch(0% 0 0 / 0.1) 0%,
      oklch(0% 0 0 / 0) 26%,
      oklch(0% 0 0 / 0.18) 74%,
      oklch(0% 0 0 / 0.3) 100%
    ),
    radial-gradient(
      ellipse at 50% 46%,
      oklch(100% 0 0 / 0.06),
      oklch(0% 0 0 / 0) 48%
    );
}

.hero__nav {
  position: absolute;
  top: var(--nav-top);
  left: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(26px, 4.1vw, 66px);
  transform: translateX(-50%);
  z-index: 2;
}

.hero__link {
  display: block;
  min-width: 8ch;
  min-height: 0;
  color: var(--nav-white);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(18px, 1.34vw, 27px);
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  filter: drop-shadow(0 1px 1px oklch(0% 0 0 / 0.2));
  white-space: nowrap;
  transition:
    color 180ms ease-out,
    transform 180ms ease-out;
}

.hero__link:hover,
.hero__link:focus-visible {
  color: var(--nav-white);
  transform: translateY(-1px);
}

.hero__link--primary {
  font-size: clamp(21px, 1.58vw, 32px);
  font-weight: 400;
}

.hero__link:focus-visible {
  outline: 2px solid oklch(96% 0.012 86 / 0.82);
  outline-offset: 7px;
}

.hero__brand {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 1;
  width: min(58vw, 760px);
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  color: var(--paper-white);
  text-align: center;
}

.hero__logo {
  width: clamp(298px, 45.9vh, 578px);
  max-width: 92vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 2px oklch(0% 0 0 / 0.38));
}

.hero__slogan {
  width: clamp(261px, 30.6vw, 414px);
  max-width: 88vw;
  height: auto;
  display: block;
  margin-top: clamp(118px, 18vh, 170px);
  filter: drop-shadow(0 5px 24px oklch(0% 0 0 / 0.34));
}

.hero__logo,
.hero__slogan {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  :root {
    --nav-top: max(26px, calc(env(safe-area-inset-top) + 6px));
  }

  .hero__video {
    object-position: 20% 50%;
  }

  .hero__shade {
    background:
      linear-gradient(
        180deg,
        oklch(0% 0 0 / 0.18) 0%,
        oklch(0% 0 0 / 0.02) 34%,
        oklch(0% 0 0 / 0.22) 100%
      ),
      radial-gradient(
        ellipse at 50% 47%,
        oklch(100% 0 0 / 0.08),
        oklch(0% 0 0 / 0) 54%
      );
  }

  .hero__nav {
    width: min(100% - 24px, 366px);
    justify-content: center;
    gap: clamp(12px, 3.8vw, 18px);
  }

  .hero__link {
    min-width: 0;
    font-size: clamp(14px, 4.3vw, 17px);
  }

  .hero__link--primary {
    font-size: clamp(17px, 5.3vw, 21px);
  }

  .hero__brand {
    top: 54%;
    width: min(82vw, 430px);
  }

  .hero__logo {
    width: clamp(204px, 28.9vh, 264px);
    max-width: 82vw;
  }

  .hero__slogan {
    width: clamp(198px, 57.6vw, 252px);
    max-width: calc(100vw - 56px);
    margin-top: clamp(106px, 14vh, 136px);
  }
}

@media (max-width: 380px) {
  .hero__nav {
    width: min(100% - 20px, 340px);
    gap: clamp(10px, 3.2vw, 14px);
  }

  .hero__link {
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .hero__link--primary {
    font-size: clamp(16px, 5vw, 19px);
  }

  .hero__slogan {
    width: 57.6vw;
  }
}

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