/* ==========================================================================
   RE:VERSE Entertainment - V1
   Section 1: Hero
   ========================================================================== */

/* --- CSS Reset & Base Variables --- */
:root {
  --color-white: #ffffff;
  --color-text-nav: rgba(255, 255, 255, 0.95);
  --color-bg-dark: #000000;
  
  --font-primary: "Space Grotesk", sans-serif;
  
  --header-pad-x: clamp(1.75rem, 5vw, 4rem);
  --header-pad-y: clamp(1.75rem, 4.5vw, 3rem);
  
  --logo-height: clamp(38px, 4.8vw, 48px);
  --nav-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  --nav-font-size: clamp(0.72rem, 0.85vw, 0.85rem);
  --nav-letter-spacing: 0.12em;
  
  --section-heading-size: clamp(3rem, 4.5vw, 5rem);
  --section-subheading-size: clamp(1rem, 2vw, 2.5rem);
  --hero-line-gap: clamp(0.65rem, 2.2vh, 1.35rem);
  --hero-bottom-space: clamp(3rem, 11vh, 6.5rem);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-bg-dark);
}

body {
  font-family: var(--font-primary);
  color: var(--color-white);
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Section 1: Hero Container --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  
  /* Cinematic background with restrained dark grading overlay */
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.46),
      rgba(0, 0, 0, 0.46)
    ),
    url('../images/bg_hero.webp') center bottom / cover no-repeat;
  background-color: var(--color-bg-dark);
  animation: hero-background-breathe 24s ease-in-out infinite alternate;
}

/* tsParticles is contained to the Hero, behind its copy and navigation. */
.hero-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-snow canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}



@keyframes hero-background-breathe {
  from { background-position: center calc(100% + 0.35%); }
  to { background-position: center calc(100% - 0.35%); }
}

/* --- Header / Navigation --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--header-pad-y) var(--header-pad-x);
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo {
  height: var(--logo-height);
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  list-style: none;
}

.nav-link {
  display: inline-block;
  color: var(--color-text-nav);
  text-decoration: none;
  font-size: var(--nav-font-size);
  font-weight: 500;
  letter-spacing: var(--nav-letter-spacing);
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.75;
}

/* --- Mobile Navigation --- */
.menu-toggle,
.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

/* --- Hero Center/Bottom Lockup --- */
.hero-content {
  width: 100%;
  max-width: 1400px;
  margin-top: auto;
  margin-bottom: var(--hero-bottom-space);
  padding: 0 1.5rem;
  text-align: center;
  z-index: 5;
  user-select: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.3s ease-out 0.2s, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.hero-ready .site-header,
.hero-ready .hero-content,
.hero-ready .careers-content {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .hero-snow { display: none; }
  .site-header,
  .hero-content,
  .careers-content { opacity: 1; transform: none; transition: none; }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hero-line-gap);
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
}

.trademark {
  font-size: 0.42em;
  font-weight: 600;
  line-height: 0;
  position: relative;
  top: -0.85em;
  margin-left: 0.12em;
  letter-spacing: normal;
}

.hero-tagline {
  display: block;
}

/* --- Section 2: Mission --- */
.mission-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #0c0c0c;
  padding: clamp(4rem, 12vh, 8rem) var(--header-pad-x);
  overflow: hidden;
}

.mission-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.mission-heading {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.mission-line {
  display: block;
}

.mission-description {
  font-family: var(--font-primary);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  max-width: clamp(480px, 60vw, 670px);
}

/* --- Section 3 & 4: Belief Sections (Galaxy & Earth) --- */
.belief-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) var(--header-pad-x);
  overflow: hidden;
}

/* Section 3: Galaxy Variant */
.belief-galaxy {
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.36),
      rgba(0, 0, 0, 0.36)
    ),
    url('../images/galaxy_bg.webp') center center / cover no-repeat;
  background-color: #06070e;
}

/* Section 4: Earth Variant */
.belief-earth {
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0.38)
    ),
    url('../images/earth_bg.webp') center center / cover no-repeat;
  background-color: #050505;
}

.belief-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.belief-eyebrow {
  font-family: var(--font-primary);
  font-size: var(--section-subheading-size);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: clamp(1.75rem, 5vh, 2.75rem);
}

.belief-eyebrow .belief-highlight {
  font-weight: 700;
}

.belief-heading {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.belief-line {
  display: block;
}

/* --- Section 5: CTA --- */
.cta-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) var(--header-pad-x);
  background-color: #0c0c0c;
  overflow: hidden;
}

.cta-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-heading {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.38em;
}

.cta-phrase {
  display: inline;
}

.cta-action {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline;
}

.cta-action:hover,
.cta-action:focus-visible {
  opacity: 0.72;
}

/* --- Careers Page Hero --- */
.careers-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--header-pad-y) var(--header-pad-x);
  overflow: hidden;

  /* Cinematic galaxy background matching the prototype */
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.36),
      rgba(0, 0, 0, 0.36)
    ),
    url('../images/galaxy_bg.webp') center center / cover no-repeat;
  background-color: #06070e;
}

.careers-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.3s ease-out 0.2s, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.careers-heading {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2.4vh, 1.6rem);
}

.careers-line {
  display: block;
}

/* --- Careers Overview Section (Journey & Disciplines) --- */
.careers-overview-section {
  position: relative;
  width: 100%;
  padding: clamp(6rem, 15vh, 10.5rem) var(--header-pad-x);
  background-color: #0c0c0c;
  overflow: hidden;
}

.careers-overview-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.careers-journey-block {
  width: 100%;
}

.careers-eyebrow {
  font-family: var(--font-primary);
  font-size: var(--section-subheading-size);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
}

.careers-statement-heading {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 1280px;
}

.careers-disciplines-block {
  margin-top: clamp(6rem, 16vh, 11rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: start;
}

.careers-disciplines-left {
  width: 100%;
}

.careers-disciplines-title {
  font-family: var(--font-primary);
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.careers-disciplines-right {
  width: 100%;
}

.disciplines-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.discipline-item {
  display: flex;
  align-items: center;
  min-height: clamp(60px, 7.5vh, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-primary);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.discipline-item:hover {
  opacity: 0.75;
  border-color: rgba(255, 255, 255, 0.75);
}

/* --- Shared Site Footer --- */
.site-footer {
  padding: clamp(2rem, 2vw, 2.5rem) var(--header-pad-x);
  background: #050505;
  /* border-top: 1px solid rgba(255, 255, 255, 0.16); */
}

.footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: clamp(26px, 3vw, 34px);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}

.footer-nav-link,
.footer-copyright {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.68rem, 0.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-nav-link { transition: color 0.2s ease; }
.footer-nav-link:hover,
.footer-nav-link:focus-visible { color: var(--color-white); }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  :root {
    --header-pad-x: 1.5rem;
    --header-pad-y: 1.5rem;
    --nav-gap: 1rem;
    --nav-font-size: 0.7rem;
    --nav-letter-spacing: 0.08em;
    --section-heading-size: clamp(2.1rem, 8vw, 3.6rem);
    --section-subheading-size: clamp(0.78rem, 3vw, 0.92rem);
    --hero-bottom-space: clamp(2.5rem, 8vh, 4.5rem);
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav-list { justify-content: flex-start; }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 40;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.33rem;
    border: 0;
    padding: 0;
    color: var(--color-white);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 1.4rem;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 250ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.43rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.43rem) rotate(-45deg); }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 420ms ease, visibility 0s linear 420ms;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    width: min(82vw, 23rem);
    align-items: center;
    padding: var(--header-pad-y) var(--header-pad-x);
    background: #090909;
    box-shadow: -16px 0 42px rgba(0, 0, 0, 0.22);
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-menu nav { width: 100%; }

  .menu-close {
    position: absolute;
    top: var(--header-pad-y);
    right: var(--header-pad-x);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    padding: 0;
    color: var(--color-white);
    background: transparent;
    cursor: pointer;
  }

  .menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.4rem;
    height: 1px;
    background: currentColor;
  }

  .menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
    list-style: none;
  }

  .mobile-nav-link {
    color: var(--color-white);
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
  }

  .mobile-nav-link.active { opacity: 0.58; }

  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu { transform: translateX(0); }
  body.menu-open .mobile-menu-backdrop {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .mission-section {
    min-height: 70vh;
    padding: clamp(3.5rem, 10vh, 5.5rem) var(--header-pad-x);
  }

  .mission-heading {
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }

  .mission-line {
    display: inline;
  }

  .mission-description {
    font-size: clamp(0.82rem, 3.4vw, 0.95rem);
    max-width: 100%;
    line-height: 1.6;
  }

  .belief-section {
    min-height: 70vh;
    padding: clamp(3.5rem, 10vh, 5.5rem) var(--header-pad-x);
  }

  .belief-eyebrow {
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
  }

  .belief-heading {
    line-height: 1.3;
  }

  .belief-line {
    display: inline;
  }

  .cta-section {
    min-height: 55vh;
    padding: clamp(3.5rem, 8vh, 5.5rem) var(--header-pad-x);
  }

  .cta-heading {
    line-height: 1.3;
  }

  .careers-heading {
    line-height: 1.3;
    gap: 0.85rem;
  }

  .careers-overview-section {
    padding: clamp(4rem, 10vh, 6.5rem) var(--header-pad-x);
  }

  .careers-statement-heading {
    line-height: 1.3;
  }

  .careers-disciplines-block {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-top: clamp(4rem, 12vh, 7rem);
  }

  .careers-disciplines-title {
    line-height: 1.25;
  }

  .discipline-item {
    min-height: 58px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .mobile-menu,
  .mobile-menu-backdrop { transition: none; }

}

@media (max-width: 480px) {
  :root {
    --header-pad-x: 1.25rem;
    --header-pad-y: 1.25rem;
    --logo-height: 32px;
    --nav-gap: 0.75rem;
    --nav-font-size: 0.65rem;
    --section-heading-size: clamp(1.85rem, 8.5vw, 2.6rem);
    --section-subheading-size: clamp(0.72rem, 3.2vw, 0.84rem);
  }

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

  .mission-heading {
    letter-spacing: 0.02em;
  }

  .belief-eyebrow {
    letter-spacing: 0.08em;
  }

  .belief-heading {
    letter-spacing: 0.02em;
  }

  .cta-heading {
    letter-spacing: 0.02em;
  }

  .careers-heading {
    letter-spacing: 0.02em;
  }

  .careers-statement-heading {
    letter-spacing: 0.02em;
  }

  .careers-disciplines-title {
    letter-spacing: 0.02em;
  }

  .discipline-item {
    min-height: 52px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
}

/* Aspect ratio specific tuning for ultra-wide / cinematic screens */
@media (min-aspect-ratio: 21/9) {
  .hero {
    background-position: center 75%;
  }

  .belief-galaxy,
  .careers-hero {
    background-position: center 60%;
  }

  .belief-earth {
    background-position: center center;
  }
}
