@font-face {
  font-family: "Share Tech";
  src: url("./fonts/Share_Tech/ShareTech-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-size: 74.25px;
  --brand-final-x: calc((100vw - min(976px, calc(100vw - 48px))) / 2);
  --brand-final-y: clamp(96px, 16.8vh, 140px);
  --page-bg: #151716;
  --page-bg-soft: #20231f;
  --nav-bg: rgba(64, 67, 64, 0.82);
  --nav-line: rgba(236, 229, 218, 0.14);
  --nav-shadow: rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

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

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

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 229, 218, 0.075), transparent 28rem),
    linear-gradient(180deg, var(--page-bg-soft), var(--page-bg) 34rem);
  color: #fff;
  font-family: "Share Tech", Arial, sans-serif;
  overflow-x: hidden;
  scrollbar-width: none;
}

body.is-intro {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 78px;
  pointer-events: none;
}

.corner-logo,
.top-nav {
  pointer-events: auto;
}

.corner-logo {
  position: fixed;
  left: clamp(18px, 3vw, 42px);
  top: 0.2px;
  z-index: 2;
  display: block;
  width: clamp(158px, 16vw, 238px);
  line-height: 0;
  opacity: 0.96;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.corner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

body.is-scrolled .corner-logo {
  width: clamp(112px, 9vw, 148px);
  opacity: 0.9;
  transform: translateY(-4px);
}

.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  padding: 8px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--nav-line);
  background: var(--nav-bg);
  box-shadow: 0 12px 34px var(--nav-shadow);
  backdrop-filter: blur(16px);
}

.nav-logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 96px;
  margin-top: 34px;
  overflow: visible;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 104px;
  object-fit: contain;
}

.page-content {
  min-height: 100vh;
}

.video-hero {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #101211;
}

.video-hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, rgba(10, 11, 10, 0.28), rgba(10, 11, 10, 0.08) 45%, rgba(10, 11, 10, 0.26)),
    radial-gradient(circle at 50% 10%, rgba(236, 229, 218, 0.08), transparent 34rem);
  pointer-events: none;
}

.hero-video {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  background: #101211;
  transform: translateX(-50%);
}

.video-fallback {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  transform: translateX(-50%);
}

.video-hero.video-failed .hero-video {
  display: none;
}

.empty-page {
  min-height: 100vh;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 48;
  min-height: 100vh;
  background: #000;
  animation: introFade 950ms ease 2.65s forwards;
  pointer-events: none;
}

.brand-mark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 49;
  margin: 0;
  font-family: "Share Tech", Arial, sans-serif;
  font-size: var(--brand-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  transform: translate3d(calc(50vw - 50%), calc(50vh - 50%), 0);
  backface-visibility: hidden;
  contain: layout paint style;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
  animation: brandMove 2.65s cubic-bezier(0.76, 0, 0.18, 1) forwards;
  pointer-events: none;
}

.brand-mark span {
  display: block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: brandReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introFade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes brandReveal {
  0% {
    transform: translate3d(0, 110%, 0);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes brandMove {
  0%,
  38.58% {
    transform: translate3d(calc(50vw - 50%), calc(50vh - 50%), 0);
  }

  100% {
    transform: translate3d(var(--brand-final-x), var(--brand-final-y), 0);
  }
}

@media (max-width: 720px) {
  :root {
    --brand-size: 54px;
    --brand-final-x: 24px;
    --brand-final-y: 104px;
  }

  .site-header {
    height: 70px;
  }

  .corner-logo {
    left: 14px;
    top: 0.5px;
    width: 132px;
  }

  body.is-scrolled .corner-logo {
    width: 98px;
  }

  .top-nav {
    height: 64px;
    padding: 7px 14px;
  }

  .nav-logo {
    width: 58px;
    height: 82px;
    margin-top: 28px;
  }

  .nav-logo img {
    height: 88px;
  }
}
