:root {
  --bg: #090909;
  --text: #ffffff;
  --hero-height: min(1200px, 62.5vw);
  --paper-height: 1560px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #000000;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background-color: #000000;
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-frame {
  position: relative;
  width: min(100%, 1920px);
  min-height: calc(var(--hero-height) + var(--paper-height));
  margin: 0 auto;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--hero-height);
  background: #000000;
  overflow: hidden;
}

.hero-background video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  position: absolute;
  top: -72px;
  left: clamp(24px, 10vw, 192px);
  z-index: 4;
  display: flex;
  align-items: center;
  width: min(760px, calc(100% - clamp(24px, 10vw, 192px) - 24px));
  height: var(--hero-height);
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1920px);
  height: 96px;
  z-index: 20;
}

.menu-toggle {
  display: none;
}

.logo {
  position: absolute;
  top: clamp(24px, 1.67vw, 32px);
  left: clamp(24px, 10vw, 192px);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 1.875vw, 36px);
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  z-index: 2;
  transition: color 180ms ease;
}

.menu-item {
  position: absolute;
  top: clamp(32px, 2.19vw, 42px);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  z-index: 2;
  transition: color 180ms ease;
}

.products {
  left: 61.25%;
}

.explore {
  left: 68.75%;
}

.support {
  left: 76.25%;
}

.contact {
  left: 83.75%;
}

.bottom-bar {
  position: absolute;
  left: 0;
  top: var(--hero-height);
  width: 100%;
  height: var(--paper-height);
  background:
    linear-gradient(180deg, #171717 0%, #141414 100%),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.018), transparent 22%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.012), transparent 20%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.006) 0,
      rgba(255, 255, 255, 0.006) 1px,
      transparent 1px,
      transparent 3px
    );
  border: none;
  border-radius: 16px 16px 0 0;
}

.footer-logo {
  position: absolute;
  top: 1272px;
  left: 192px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.explore-title {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  z-index: 1;
}

.footer-sections {
  position: absolute;
  inset: 0;
}

.footer-section {
  position: absolute;
  display: grid;
  align-content: start;
  justify-items: start;
}

.footer-label {
  margin: 0 0 18px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-links a,
.contact-link {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  text-align: left;
}

.footer-support {
  top: 1272px;
  left: 1080px;
}

.footer-contact {
  top: 1272px;
  left: 1320px;
}

.footer-follow {
  top: 1272px;
  left: 1608px;
}

.footer-copy {
  position: absolute;
  left: 192px;
  top: 1370px;
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  opacity: 0.72;
}

.topbar.explore-active .logo,
.topbar.explore-active .menu-item {
  color: transparent;
}

@media (max-width: 1100px) {
  :root {
    --hero-height: min(900px, 62.5vw);
    --paper-height: 760px;
  }

  .page-frame {
    min-height: calc(var(--hero-height) + var(--paper-height));
  }

  .topbar {
    width: min(100%, 1920px);
    height: auto;
    padding: 24px 24px 0;
  }

  .logo {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 28px;
    padding-bottom: 24px;
  }

  .menu-item {
    position: static;
    top: auto;
    left: auto;
    display: inline-block;
  }

  .hero-copy {
    left: 24px;
    width: min(620px, calc(100% - 48px));
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .bottom-bar {
    top: var(--hero-height);
    height: var(--paper-height);
    min-height: 0;
    padding-bottom: 112px;
  }

  .footer-logo {
    top: 72px;
    left: 24px;
  }

  .explore-title {
    top: 72px;
  }

  .footer-sections {
    inset: auto;
    position: absolute;
    top: 136px;
    left: 360px;
    right: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-section {
    position: static;
  }

  .footer-copy {
    left: 24px;
    top: auto;
    bottom: 56px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-height: 112vh;
    --paper-height: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  @supports (height: 100dvh) {
    :root {
      --hero-height: 100dvh;
    }

    .hero-background,
    .hero-copy {
      height: 100dvh;
      min-height: 100dvh;
    }

    .hero-background video {
      width: max(100vw, 200dvh);
      height: max(50vw, 100dvh);
    }

    .menu {
      height: 100dvh;
      min-height: 100dvh;
    }
  }

  .page-frame {
    min-height: auto;
    overflow: visible;
  }

  .hero-background {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    margin-top: calc(-1 * env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .hero-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 200vh);
    height: max(50vw, 100vh);
    aspect-ratio: 2 / 1;
    object-fit: fill;
    object-position: center center;
    transform: translate(-50%, -50%);
  }

  .topbar {
    left: 0;
    transform: none;
    width: 100%;
    height: calc(88px + env(safe-area-inset-top));
    padding: 0;
  }

  .menu-toggle {
    position: absolute;
    top: calc(26px + env(safe-area-inset-top));
    left: 20px;
    z-index: 3;
    display: grid;
    align-content: center;
    gap: 7px;
    width: 34px;
    height: 34px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: #ffffff;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .topbar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }

  .topbar.menu-open .menu-toggle span:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .logo {
    position: absolute;
    top: calc(24px + env(safe-area-inset-top));
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-block;
    font-size: 28px;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 20px;
    margin: 0;
    height: 100vh;
    min-height: 100vh;
    padding: calc(112px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
    background: rgba(9, 9, 9, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-24px);
    transition: opacity 220ms ease, transform 260ms ease;
  }

  .topbar.menu-open .menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar.menu-open .menu-toggle,
  .topbar.menu-open .menu-item {
    color: #ffffff;
  }

  .topbar.menu-open .logo {
    opacity: 0;
    pointer-events: none;
  }

  .menu-item {
    position: static;
    display: inline-block;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.08;
  }

  .hero-copy {
    top: 0;
    left: 20px;
    align-items: flex-end;
    width: calc(100% - 40px);
    height: 100vh;
    min-height: 100vh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .hero-copy h1 {
    max-width: 11em;
    font-size: 32px;
    line-height: 1.08;
  }

  @supports (height: 100dvh) {
    .hero-background,
    .hero-copy {
      height: 100dvh;
      min-height: 100dvh;
    }

    .hero-background video {
      width: max(100vw, 200dvh);
      height: max(50vw, 100dvh);
    }

    .menu {
      height: 100dvh;
      min-height: 100dvh;
    }
  }

  .bottom-bar {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    padding: 72px 20px 36px;
  }

  .footer-logo {
    position: static;
    display: inline-block;
    font-size: 36px;
  }

  .explore-title {
    position: static;
    transform: none;
    margin: 0 0 88px;
    font-size: 36px;
    text-align: center;
  }

  .footer-sections {
    display: grid;
    position: static;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
  }

  .footer-label {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .footer-section {
    position: static;
  }

  .footer-links a,
  .contact-link {
    font-size: 16px;
  }

  .footer-copy {
    position: static;
    margin-top: 56px;
    font-size: 14px;
    line-height: 1.4;
  }
}
