/* ===================================================
   NEWSPEAK — Minimal Landing Page
   =================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-speed: 0.6s;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-black);
  overflow-x: hidden;
  width: 100%;
}

/* Site content fades in when hero video is ready */
.site-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.ready .site-content {
  opacity: 1;
}

/* Loading overlay: visible until ready, then fades out */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.5s ease;
}

body.ready .loading-overlay {
  opacity: 0;
  pointer-events: none;
}

.loading-video {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.loading-text {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-black);
}


/* --- Pinned NEWSPEAK text: appears when title scrolls past top --- */
.hero-pinned-text {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.pinned-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.pinned-mask {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
  mix-blend-mode: screen;
}

.pinned-mask .title {
  color: var(--color-black);
}

/* --- Pinned statement text: same effect for section 2 --- */
.stmt-pinned-text {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.pinned-mask-stmt {
  padding: 40px;
}

.pinned-mask-stmt {
  background-color: transparent;
  mix-blend-mode: normal;
}

.pinned-mask-stmt .statement-text {
  color: #39ff14;
}

/* --- Hero: full viewport --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  cursor: default;
  z-index: 0;
}

/* --- Video: always playing, covers entire screen --- */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* --- Shared title styles --- */
.title {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  padding: 0;
  transform: scaleY(2);
}

.mobile-break {
  display: none;
}

/* --- Layer 1: white mask with black text ---
     mix-blend-mode: screen makes black = transparent (shows video)
     and white = opaque (hides video). So video is ONLY visible
     through the letter shapes. */
.text-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  mix-blend-mode: screen;
  opacity: 1;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.text-mask .title {
  pointer-events: auto;
  cursor: default;
}

.text-mask .title {
  color: var(--color-black);
}

/* --- Layer 2: outline text on top of video ---
     Hidden by default, fades in on hover. */
.text-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.text-outline .title {
  color: #39ff14;
}

/* --- Active: video goes fullscreen, text becomes outline --- */
.hero.active .text-mask {
  opacity: 0;
}

.hero.active .text-outline {
  opacity: 1;
}

/* ===================================================
   Section 2: Statement with video in text
   =================================================== */

.statement {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-white);
}

.section-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5) contrast(1.3);
  transition: filter var(--transition-speed) ease;
}

.statement.active .section-video {
  filter: none;
}

.statement-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  mix-blend-mode: screen;
  padding: 40px;
  transition: opacity var(--transition-speed) ease;
}

.statement-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 10vw;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-black);
  text-align: center;
  max-width: 95vw;
  user-select: none;
}

.statement-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
  padding: 40px;
}

.statement-outline .statement-text {
  color: #39ff14;
}

.statement.active .statement-mask {
  opacity: 0;
}

.statement.active .statement-outline {
  opacity: 1;
}

/* ===================================================
   Section 3: Logo with video in shape
   =================================================== */

.logo-section {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-white);
}

.logo-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  mix-blend-mode: screen;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.logo-img {
  max-height: 50vh;
  max-width: 50vw;
  display: block;
  pointer-events: auto;
  position: absolute;
}

a.logo-contact-text,
a.link-text {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-contact-text {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 4vw;
  letter-spacing: -0.03em;
  color: var(--color-black);
  user-select: none;
  white-space: nowrap;
  pointer-events: auto;
}

.logo-outline .logo-contact-text {
  color: #39ff14;
}

.logo-mask .logo-img {
  filter: brightness(0);
}

.logo-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.logo-section.active .logo-mask {
  opacity: 0;
}

.logo-section.active .logo-outline {
  opacity: 1;
}

.logo-section.active .section-video {
  filter: none;
}

/* ===================================================
   Section 4: TikTok & YouTube links
   =================================================== */

.links-section {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: var(--color-white);
}

.link-item {
  position: relative;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}

.link-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5) contrast(1.3);
  transition: filter var(--transition-speed) ease;
}

.link-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  mix-blend-mode: screen;
  transition: opacity var(--transition-speed) ease;
}

.link-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.link-outline .link-text {
  color: #39ff14;
}

.link-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 8vw;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-black);
  white-space: nowrap;
  user-select: none;
}

.link-item.active .link-mask {
  opacity: 0;
}

.link-item.active .link-outline {
  opacity: 1;
}

.link-item.active .link-video {
  filter: none;
}

/* ===================================================
   Mobile responsive
   =================================================== */

@media (max-width: 768px) {

  .title {
    transform: scaleY(4);
    white-space: normal;
    line-height: 0.85;
  }

  .mobile-break {
    display: block;
  }

  .statement-mask,
  .statement-outline {
    padding: 16px;
  }

  .statement-text {
    font-size: 18vw;
    word-break: break-all;
    max-width: 100%;
  }

  .logo-img {
    max-height: 40vh;
    max-width: 40vw;
  }

  .logo-contact-text {
    font-size: 6vw;
  }

  .link-text {
    font-size: 7vw;
    transform: scaleY(16);
  }
}
