:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.42);
  --muted-strong: rgba(255, 255, 255, 0.62);
  --lab-yellow: #f0d43a;
  --stage-gray: #2f2f2f;
  --nav-font: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --shell-width: min(1180px, calc(100% - 36px));
  --vertical-gap: clamp(14px, 2vw, 24px);
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0 0 var(--space-md);
}

.top-nav {
  width: var(--shell-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: var(--space-md) 0 0;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-family: var(--nav-font);
  font-size: clamp(1rem, 1.15rem + 0.95vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}

.hero {
  flex: 1;
  width: 100%;
  display: flex;
}

.video-stage {
  width: var(--shell-width);
  margin: 0 auto;
  position: relative;
  background: var(--stage-gray);
  overflow: hidden;
  min-height: clamp(420px, 67vh, 900px);
  aspect-ratio: 1056 / 627;
}

.video-fallback,
.background-video,
.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-fallback {
  background: #000 url("../images/fallback-black.jpg") center center / cover no-repeat;
  z-index: 0;
}

.background-video {
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: transparent;
}

.background-video.is-ready {
  opacity: 1;
}

.video-overlay {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.hero-logo {
  width: min(70%, 760px);
  min-width: min(320px, 92vw);
  height: auto;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

.site-footer {
  width: var(--shell-width);
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 4px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.68rem, 0.6rem + 0.35vw, 0.94rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.site-footer p:first-child {
  color: var(--muted-strong);
}

@media (max-width: 900px) {
  :root {
    --shell-width: calc(100% - 20px);
    --vertical-gap: clamp(12px, 2.4vw, 18px);
  }

  .video-stage {
    min-height: clamp(360px, 58vh, 680px);
  }

  .hero-logo {
    width: min(76%, 680px);
  }

  .site-footer {
    width: calc(100% - 18px);
  }
}

@media (max-width: 640px) {
  :root {
    --shell-width: calc(100% - 16px);
  }

  .top-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: clamp(0.86rem, 0.7rem + 1vw, 1.15rem);
  }

  .video-stage {
    min-height: clamp(300px, 50vh, 520px);
  }

  .hero-content {
    padding: 18px;
  }

  .hero-logo {
    width: min(86%, 520px);
    min-width: 0;
  }

  .site-footer {
    width: calc(100% - 14px);
    gap: 1px;
  }

  .site-footer p {
    font-size: clamp(0.54rem, 0.5rem + 0.38vw, 0.7rem);
    line-height: 0.78;
  }
}

@media (max-width: 420px) {
  .top-nav {
    padding-top: 14px;
  }

  .nav-link {
    letter-spacing: 0.02em;
  }

  .video-stage {
    min-height: clamp(250px, 42vh, 420px);
  }

  .hero-logo {
    width: min(88%, 420px);
  }

  .site-footer p {
    font-size: 0.52rem;
  }
}
