@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@500;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #1f1f21;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --panel: rgba(13, 13, 13, 0.92);
  --section-out-ease: cubic-bezier(0.28, 0, 0.22, 1);
  --section-in-ease: cubic-bezier(0.12, 0, 0.16, 1);
  --ui-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --duration: 1380ms;
}

html {
  scroll-behavior: auto;
  overscroll-behavior: none;
}

body.gravity-landing-template {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overscroll-behavior: none;
}

body.gravity-landing-template * {
  box-sizing: border-box;
}

body.gravity-landing-template a,
body.gravity-landing-template button {
  color: inherit;
}

body.gravity-landing-template button,
body.gravity-landing-template input,
body.gravity-landing-template textarea,
body.gravity-landing-template select {
  font: inherit;
}

body.gravity-landing-template button {
  cursor: pointer;
}

.landing-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #242426;
  touch-action: none;
  overscroll-behavior: none;
}

.admin-bar .landing-page {
  height: calc(100vh - 32px);
  margin-top: 32px;
}

.slides-viewport,
.landing-section {
  position: absolute;
  inset: 0;
}

.slides-viewport {
  z-index: 0;
  overflow: hidden;
  background: #2c2c2d;
}

.landing-section {
  will-change: transform;
  transform: translate3d(0, 100%, 0);
  z-index: 0;
  contain: layout paint style;
  backface-visibility: hidden;
}

.landing-section.is-active {
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.landing-section.is-before {
  transform: translate3d(0, -100%, 0);
  z-index: 1;
}

.landing-section.is-after {
  transform: translate3d(0, 100%, 0);
  z-index: 0;
}

.landing-section.is-outgoing {
  z-index: 2;
}

.landing-section.is-incoming {
  z-index: 4;
  box-shadow: 0 -32px 120px rgba(0, 0, 0, 0.38);
}

.slide-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #121212;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.slide-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(45%);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.16)),
    rgba(0, 0, 0, 0.25);
}

.landing-section.is-outgoing .slide-visual::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.36)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.3);
}

.top-bar,
.hero-stage,
.slide-panel-content {
  position: relative;
  z-index: 5;
}

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 48px 0;
  pointer-events: none;
}

.landing-page.menu-active .top-bar {
  z-index: 14;
}

.slide-panel-content {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 42px;
  pointer-events: none;
}

.gravity-logo {
  display: inline-grid;
  gap: 2px;
  text-decoration: none;
  pointer-events: auto;
  transition:
    opacity 320ms ease,
    transform 420ms var(--ui-ease);
}

.landing-page.menu-active .top-bar .gravity-logo {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  pointer-events: none;
}

.gravity-wordmark {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 2.35vw, 3rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.gravity-submark {
  padding-left: 26px;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.62em;
  text-transform: uppercase;
}

.menu-button,
.hero-link-button {
  border: 0;
  background: transparent;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--muted);
  pointer-events: auto;
  position: relative;
  transition: color 280ms ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button.is-open {
  color: #ffffff;
}

.menu-button-label {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 3.8rem;
  height: 1.4rem;
  overflow: hidden;
}

.menu-button-copy {
  grid-area: 1 / 1;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    transform 460ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 360ms ease;
}

.menu-button-copy-menu {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.menu-button-copy-close {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.menu-button.is-open .menu-button-copy-menu {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
}

.menu-button.is-open .menu-button-copy-close {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.menu-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 18px;
  flex: 0 0 28px;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}

.menu-icon i {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 28px;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  will-change: transform, opacity;
  transition:
    transform 460ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 260ms ease,
    width 360ms ease;
}

.menu-icon i:nth-child(1) {
  transform: translate3d(0, -7px, 0);
}

.menu-icon i:nth-child(2) {
  transform: translate3d(0, 0, 0);
}

.menu-icon i:nth-child(3) {
  transform: translate3d(0, 7px, 0);
}

.menu-button:not(.is-open):hover .menu-icon,
.menu-button:not(.is-open):focus-visible .menu-icon {
  transform: rotate(88deg);
}

.menu-button:not(.is-open):hover .menu-icon i:nth-child(1),
.menu-button:not(.is-open):focus-visible .menu-icon i:nth-child(1) {
  transform: translate3d(1px, -7px, 0) scaleX(0.92);
  transition-delay: 0ms;
}

.menu-button:not(.is-open):hover .menu-icon i:nth-child(2),
.menu-button:not(.is-open):focus-visible .menu-icon i:nth-child(2) {
  transform: translate3d(0, 0, 0) scaleX(1);
  transition-delay: 28ms;
}

.menu-button:not(.is-open):hover .menu-icon i:nth-child(3),
.menu-button:not(.is-open):focus-visible .menu-icon i:nth-child(3) {
  transform: translate3d(-1px, 7px, 0) scaleX(0.92);
  transition-delay: 56ms;
}

.menu-button.is-open .menu-icon i:nth-child(1) {
  transform: translate3d(0, 0, 0) rotate(45deg);
}

.menu-button.is-open .menu-icon i:nth-child(2) {
  opacity: 0;
  width: 18px;
  transform: translate3d(0, 0, 0) scaleX(0.2);
}

.menu-button.is-open .menu-icon i:nth-child(3) {
  transform: translate3d(0, 0, 0) rotate(-45deg);
}

.menu-button.is-open:hover .menu-icon,
.menu-button.is-open:focus-visible .menu-icon {
  transform: rotate(90deg);
}

.hero-stage {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 48px 42px;
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: end;
  max-width: 720px;
  pointer-events: auto;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(4rem, 6.6vw, 6.9rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.hero-link-button {
  padding: 0;
  pointer-events: auto;
}

.hero-link-line {
  display: block;
  width: 40px;
  height: 1px;
  background: currentColor;
}

.progress-rail {
  position: fixed;
  top: 50%;
  right: 34px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  z-index: 7;
  pointer-events: none;
}

.progress-track {
  position: relative;
  width: 2px;
  height: min(70vh, 670px);
  background: rgba(86, 86, 90, 0.9);
  border-radius: 999px;
}

.progress-track::before {
  display: none;
}

.progress-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 108px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: top 1100ms var(--ui-ease);
}

.progress-arrow {
  width: 1px;
  height: 96px;
  background: rgba(86, 86, 90, 0.55);
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    visibility 0s linear 800ms;
}

.fullscreen-menu.is-open,
.fullscreen-menu.is-closing {
  visibility: visible;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 280ms ease,
    visibility 0s linear 0s;
}

.fullscreen-menu.is-closing {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    visibility 0s linear 0s;
}

.fullscreen-menu-panel {
  min-height: 100%;
  padding: 26px 48px 30px;
  background: var(--panel);
  transform: translate3d(0, -100%, 0);
  transition: transform 800ms var(--ui-ease);
  display: flex;
  flex-direction: column;
}

.fullscreen-menu.is-open .fullscreen-menu-panel {
  transform: translate3d(0, 0, 0);
}

.fullscreen-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  transition:
    opacity 420ms ease,
    transform 800ms var(--ui-ease);
}

.fullscreen-menu-spacer {
  width: 88px;
  flex: 0 0 88px;
}

.fullscreen-menu-links {
  display: grid;
  gap: 8px;
  margin-top: 56px;
  align-content: start;
}

.fullscreen-menu-item {
  display: grid;
  gap: 0;
}

.fullscreen-menu-link,
.fullscreen-submenu-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, -22px, 0);
  transition:
    opacity 380ms ease,
    transform 760ms var(--ui-ease);
  text-decoration: none;
}

.fullscreen-menu-link span {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-transform: uppercase;
}

.fullscreen-menu-link small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.fullscreen-menu-link:hover span,
.fullscreen-menu-link:focus-visible span,
.fullscreen-menu-link-toggle[aria-expanded="true"] span {
  color: #ffffff;
}

.fullscreen-menu-link-toggle small {
  position: relative;
  padding-right: 20px;
}

.fullscreen-menu-link-toggle small::after,
.fullscreen-menu-link-toggle small::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 420ms var(--ui-ease);
}

.fullscreen-menu-link-toggle small::before {
  transform: translate3d(0, -2px, 0);
}

.fullscreen-menu-link-toggle small::after {
  transform: translate3d(0, 2px, 0);
}

.fullscreen-menu-link-toggle[aria-expanded="true"] small::before {
  transform: translate3d(0, 0, 0) rotate(45deg);
}

.fullscreen-menu-link-toggle[aria-expanded="true"] small::after {
  transform: translate3d(0, 0, 0) rotate(-45deg);
}

.fullscreen-submenu {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 540ms var(--ui-ease),
    opacity 280ms ease;
}

.fullscreen-submenu[aria-hidden="false"] {
  max-height: 240px;
  opacity: 1;
}

.fullscreen-submenu::before {
  content: "";
  display: block;
  width: 1px;
  min-height: 10px;
  margin: 6px 0 0 10px;
  background: rgba(255, 255, 255, 0.18);
}

.fullscreen-submenu-link {
  align-items: center;
  justify-content: flex-start;
  padding: 9px 0 9px 30px;
  overflow: hidden;
  opacity: 1;
  transform: none;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.fullscreen-submenu-link span {
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.fullscreen-submenu-link:hover,
.fullscreen-submenu-link:focus-visible,
.fullscreen-submenu-link.active {
  color: #ffffff;
}

.fullscreen-submenu-link.active span {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.fullscreen-menu.is-open .fullscreen-menu-head,
.fullscreen-menu.is-open .fullscreen-menu-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fullscreen-menu.is-open .fullscreen-menu-item:nth-child(1) .fullscreen-menu-link {
  transition-delay: 80ms;
}

.fullscreen-menu.is-open .fullscreen-menu-item:nth-child(2) .fullscreen-menu-link {
  transition-delay: 130ms;
}

.fullscreen-menu.is-open .fullscreen-menu-item:nth-child(3) .fullscreen-menu-link {
  transition-delay: 180ms;
}

.fullscreen-menu.is-open .fullscreen-menu-item:nth-child(4) .fullscreen-menu-link {
  transition-delay: 230ms;
}

.fullscreen-menu.is-open .fullscreen-menu-item:nth-child(5) .fullscreen-menu-link {
  transition-delay: 280ms;
}

.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #111;
  opacity: 1;
  transition: opacity 650ms ease-out;
}

.intro-curtain.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-button:focus-visible,
.hero-link-button:focus-visible,
.fullscreen-menu-link:focus-visible,
.fullscreen-submenu-link:focus-visible,
.gravity-logo:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .top-bar {
    padding: 24px 20px 0;
  }

  .slide-panel-content,
  .hero-stage {
    padding: 0 20px 32px;
  }

  .gravity-wordmark {
    font-size: 2rem;
  }

  .gravity-submark {
    padding-left: 18px;
    font-size: 0.5rem;
    letter-spacing: 0.48em;
  }

  .menu-button-copy {
    font-size: 0.95rem;
  }

  .menu-button-label {
    min-width: 3.55rem;
  }

  .menu-icon,
  .menu-icon i {
    width: 24px;
  }

  .menu-icon {
    height: 16px;
    flex-basis: 24px;
  }

  .menu-icon i:nth-child(1) {
    transform: translate3d(0, -6px, 0);
  }

  .menu-icon i:nth-child(3) {
    transform: translate3d(0, 6px, 0);
  }

  .menu-button:not(.is-open):hover .menu-icon i:nth-child(1),
  .menu-button:not(.is-open):focus-visible .menu-icon i:nth-child(1) {
    transform: translate3d(1px, -6px, 0) scaleX(0.92);
  }

  .menu-button:not(.is-open):hover .menu-icon i:nth-child(3),
  .menu-button:not(.is-open):focus-visible .menu-icon i:nth-child(3) {
    transform: translate3d(-1px, 6px, 0) scaleX(0.92);
  }

  .hero-copy {
    max-width: calc(100vw - 40px);
    gap: 14px;
  }

  .hero-copy h1 {
    max-width: calc(100vw - 40px);
    font-size: clamp(2.2rem, 11vw, 4rem);
    line-height: 0.94;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-link {
    font-size: 0.9rem;
  }

  .hero-link-line {
    width: 34px;
  }

  .progress-rail {
    right: 16px;
    gap: 16px;
  }

  .progress-track {
    height: min(58vh, 480px);
  }

  .progress-head {
    width: 4px;
    height: 84px;
  }

  .progress-arrow {
    height: 72px;
  }

  .fullscreen-menu-panel {
    padding: 22px 20px 24px;
  }

  .fullscreen-menu-links {
    margin-top: 42px;
    gap: 6px;
  }

  .fullscreen-menu-link {
    padding: 9px 0;
  }

  .fullscreen-menu-link span {
    font-size: clamp(1.25rem, 6.8vw, 2rem);
    line-height: 0.96;
  }

  .fullscreen-menu-link small {
    font-size: 0.7rem;
  }

  .fullscreen-submenu-link {
    padding: 8px 0 8px 20px;
  }

  .fullscreen-submenu-link span {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 768px) {
  html,
  body.gravity-landing-template {
    overflow-x: hidden;
  }

  .slide-panel-content {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin: 0 24px;
    padding: 0 0 32px;
    box-sizing: border-box;
  }

  .hero-copy {
    display: block;
    width: 100%;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    overflow: visible;
  }

  .hero-copy h1 {
    display: block;
    width: 100%;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    white-space: normal;
    overflow: visible;
    text-wrap: balance;
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 0.9;
    letter-spacing: -0.06em;
    overflow-wrap: break-word;
    word-break: break-word;
    transform: none !important;
  }

  .hero-copy h1.hero-title-single-word {
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(24px, 7.2vw, 30px) !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy h1.hero-title-multi-word {
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 420px) {
  .hero-copy h1.hero-title-single-word {
    font-size: 7vw !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .landing-page {
    height: calc(100vh - 46px);
    margin-top: 46px;
  }
}
