:root {
  --page-bg: #000000;
  --page-text: #ffffff;
  --page-line: rgba(255, 255, 255, 0.18);
  --page-font: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--page-font);
  text-rendering: optimizeLegibility;
}

a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.subpage-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 104px 1fr 104px;
  align-items: center;
  min-height: 94px;
  padding: 0 clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--page-line);
  background: rgba(0, 0, 0, 0.96);
}

.page-home {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  background: transparent;
}

.subpage-header--overlay {
  position: fixed;
  right: 0;
  left: 0;
}

.page-home img,
.page-home video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.9));
  transform: scale(1.34);
  transition: opacity 180ms ease, transform 240ms ease;
}

.page-home img {
  opacity: 1;
}

.page-home video {
  z-index: 1;
  background: transparent;
  opacity: 0;
}

.page-home.is-ready img {
  opacity: 0;
}

.page-home.is-ready video {
  opacity: 1;
}

.page-home:hover img,
.page-home:hover video,
.page-home:focus-visible img,
.page-home:focus-visible video {
  transform: scale(1.42);
}

.subpage-nav {
  display: flex;
  grid-column: 2;
  justify-content: center;
}

.subpage-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.blank-page {
  min-height: calc(100svh - 94px);
}

.blank-page--centered {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.coming-soon {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.65vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 14px #000000, 0 0 30px #000000;
  transform: scaleY(1.12);
  transform-origin: center;
}

@media (max-width: 620px) {
  .subpage-header {
    grid-template-columns: 64px 1fr 64px;
    min-height: 76px;
    padding: 0 0.75rem;
  }

  .page-home {
    width: 58px;
    height: 58px;
  }

  .subpage-nav a {
    font-size: 0.63rem;
    letter-spacing: 0.16em;
  }

  .blank-page {
    min-height: calc(100svh - 76px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home video {
    display: none;
  }

  .page-home img {
    opacity: 1 !important;
    transition: none;
  }
}
