:root {
  --color-bg: #13140c;
  --color-text-light: #f4f3e7;
  --color-white: #ffffff;
  --color-accent: #e7fe55;
  --color-accent-shadow: #8a9d08;

  --container-max: 1440px;
  --container-padding: 100px;
  --divider-width: 150px;

  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Clash Display", var(--font-sf);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sf);
  background: var(--color-bg);
  color: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

body.is-loading {
  overflow: hidden;
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.preloader.is-done {
  transform: translateY(-100%);
}

.preloader-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--color-text-light);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(19, 20, 12, 0.25) 0%,
    rgba(19, 20, 12, 0.15) 40%,
    rgba(19, 20, 12, 0.55) 100%
  );
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 45px;
}

.logo {
  font-family: var(--font-sf);
  font-weight: 590;
  font-size: 24px;
  color: var(--color-text-light);
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-light);
  font-family: var(--font-sf);
}

.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu-toggle:hover::after,
.menu-toggle:focus-visible::after {
  width: 100%;
}

.menu-label {
  font-weight: 590;
  font-size: 24px;
  letter-spacing: -0.96px;
  color: var(--color-text-light);
}

.menu-icon {
  display: flex;
  width: 24px;
  height: 24px;
}

.menu-icon img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon img {
  transform: rotate(90deg);
}

/* ---------- Hero content ---------- */

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.divider {
  width: 0;
  height: 3px;
  background: var(--color-text-light);
  transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: 0.1s;
}

.hero.is-revealed .divider {
  width: var(--divider-width);
}

.hero-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw + 1rem, 64px);
  line-height: 1.05;
  color: var(--color-white);
  text-transform: uppercase;
}

.hero-heading span {
  display: block;
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-revealed .hero-heading span {
  opacity: 1;
  transform: translateX(0);
}

.hero.is-revealed .hero-heading span:nth-child(1) {
  transition-delay: 0.35s;
}

.hero.is-revealed .hero-heading span:nth-child(2) {
  transition-delay: 0.5s;
}

/* ---------- Button ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 26px;
  background: var(--color-accent);
  border: 1px solid var(--color-bg);
  border-radius: 8px;
  box-shadow: 5px 5px 0px 2px var(--color-accent-shadow);
  color: var(--color-bg);
  font-family: var(--font-sf);
  font-weight: 590;
  font-size: 18px;
  line-height: 19px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px 1px var(--color-accent-shadow);
}

.btn-primary:active {
  transform: translate(5px, 5px);
  box-shadow: 0px 0px 0px 0px var(--color-accent-shadow);
}

@keyframes heroCtaIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(16px);
}

.hero.is-revealed .hero-content .btn-primary {
  animation: heroCtaIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* ---------- Nav overlay ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  background: var(--color-bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s;
  overflow-y: auto;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.nav-overlay-image {
  flex: 0 0 51%;
  max-width: 51%;
  position: relative;
}

.nav-overlay-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

.nav-overlay-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 0 var(--container-padding);
}

.nav-close {
  position: absolute;
  top: 50px;
  right: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-light);
  font-family: var(--font-sf);
}

.nav-close::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-close:hover::after,
.nav-close:focus-visible::after {
  width: 100%;
}

.nav-close span {
  font-weight: 590;
  font-size: 24px;
  letter-spacing: -0.96px;
}

.nav-close img {
  width: 24px;
  height: 24px;
}

.nav-overlay-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 357px;
  width: 100%;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.nav-link {
  position: relative;
  font-family: var(--font-sf);
  font-weight: 590;
  font-size: clamp(40px, 4vw + 1rem, 50px);
  letter-spacing: -1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 243, 231, 0.7);
  transition: color 0.2s ease, transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 2px;
  width: 0;
  height: 3px;
  background: var(--color-text-light);
  transition: width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: calc(100% - 6px);
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text-light);
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateX(12px);
}

.nav-description {
  margin: 0;
  font-family: var(--font-sf);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.505;
  letter-spacing: -1px;
  color: rgba(244, 243, 231, 0.6);
}

.nav-cta {
  padding: 20px 26px;
  font-size: 14px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  :root {
    --container-padding: 40px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  :root {
    --container-padding: 24px;
    --divider-width: 120px;
  }

  .site-header {
    padding-top: 32px;
  }

  .logo,
  .menu-label {
    font-size: 20px;
  }

  .hero-content {
    gap: 24px;
    padding-bottom: 64px;
  }

  .hero-heading {
    font-size: clamp(32px, 11vw, 48px);
  }

  .btn-primary {
    padding: 20px 26px;
    font-size: 14px;
  }

  .nav-overlay {
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-overlay-image {
    order: 2;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: 45vh;
    min-height: 260px;
  }

  .nav-overlay-content {
    order: 1;
    flex-direction: column;
    width: 100%;
    min-height: auto;
    align-items: flex-end;
    padding: 50px var(--container-padding) 48px;
  }

  .nav-close {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    margin-bottom: 48px;
  }

  .nav-overlay-body {
    max-width: none;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-link {
    font-size: clamp(30px, 9vw, 34px);
    letter-spacing: -0.68px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .preloader {
    transition: none;
  }

  .divider,
  .hero-heading span {
    transition: none;
  }

  .hero-content .btn-primary {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
