/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #050608;
  color: #ffffff;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  width: 100%;
  padding: 14px clamp(28px, 6vw, 110px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
}

.header-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.header-link:hover {
  opacity: 0.75;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 110vh;
  min-height: 720px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero:hover .hero-video {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* VIDEO TOGGLE */
.video-toggle {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.hero:hover .video-toggle {
  opacity: 1;
}

.video-toggle:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

.video-toggle.paused {
  opacity: 0.8;
}

/* HERO LIVE TEXT */
.hero-text-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-copy {
  width: min(42vw, 620px);
  margin-left: clamp(28px, 6vw, 110px);
  margin-bottom: clamp(48px, 8vh, 110px);
}

.hero-title {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-size: clamp(64px, 9vw, 150px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-copy-text {
  max-width: min(32vw, 460px);
}

.hero-lead {
  margin: 0 0 14px;
  font-size: clamp(19px, 1.55vw, 28px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.hero-tagline {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-support {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

/* INTRO */
.intro {
  padding: 110px 0 100px;  /* remove the 20px side padding */
  background: #050608;
}

.intro-inner {
  width: 100%;
  padding-left: clamp(28px, 6vw, 110px);
  padding-right: clamp(28px, 6vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
  gap: 48px;
  align-items: center;
}

.intro-copy {
  max-width: 760px;
}

.intro h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.intro-wordcloud {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.intro-wordcloud picture,
.intro-wordcloud img {
  display: block;
  width: 100%;
}

.intro-wordcloud img {
  width: auto;
  height: clamp(380px, 48vh, 540px);
  object-fit: contain;
  margin-left: auto;
  opacity: 0.58;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
}

.intro-wordcloud img:hover {
  opacity: 0.78;
  transform: scale(1.02);
}

/* FOOTER */
.site-footer {
  background: #050608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TABLET */
@media (max-width: 1024px) {
  .hero-copy {
    width: min(52vw, 620px);
    margin-left: 36px;
    margin-bottom: 72px;
  }

  .hero-copy-text {
    max-width: min(40vw, 500px);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 620px;
    height: 100svh;
  }

  .hero-text-layer {
    align-items: flex-end;
  }

  .hero-copy {
    width: calc(100vw - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 70px;
  }

  .hero-title {
    font-size: clamp(56px, 17vw, 108px);
    line-height: 0.9;
    margin-bottom: 18px;
  }

  .hero-copy-text {
    max-width: 100%;
  }

  .hero-lead {
    font-size: clamp(20px, 4.9vw, 30px);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero-tagline {
    font-size: clamp(19px, 4.5vw, 28px);
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-support {
    font-size: clamp(20px, 4.8vw, 30px);
    line-height: 1.12;
  }

  .video-toggle {
    bottom: 18px;
    left: 18px;
    opacity: 1;
  }

  .intro {
    padding: 80px 20px 60px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-copy {
    max-width: 100%;
    text-align: center;
  }

  .intro-wordcloud {
    justify-content: center;
  }

  .intro-wordcloud img {
    max-width: 92%;
    max-height: none;
    opacity: 0.68;
    margin: 0 auto;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .hero-copy {
    width: calc(100vw - 28px);
    margin-left: 14px;
    margin-right: 14px;
    margin-bottom: 62px;
  }

  .hero-title {
    font-size: clamp(52px, 18vw, 88px);
  }

  .hero-lead,
  .hero-support {
    letter-spacing: 0.03em;
  }

  .hero-tagline {
    letter-spacing: 0.02em;
  }
}