#hero {
  position: relative;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  /* Hardware Acceleration Lock */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-fg {
  position: absolute; 
  inset: 0;           
  height: 100vh;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1;

  transform-origin: center center;
  will-change: transform;
  /* Hardware Acceleration Lock */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-wrapper {
  position: relative;              
  left: 50%;
  width: 200vw;                    
  transform-origin: center center; 
  overflow: hidden;
  pointer-events: none;
}

.a1 .marquee-track { animation-duration: 30s; }
.a2 .marquee-track { animation-duration: 42s; }
.a3 .marquee-track { animation-duration: 36s; }

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2vw;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

.marquee-wrapper.reverse .marquee-track {
  animation-direction: reverse;
}

.marquee-item {
  font-size: var(--fs-title); /* Updated to Scale */
  white-space: nowrap;
  font-weight: 700;
  user-select: none;
  letter-spacing: 0.12em;
}

.m1{
    font-family: var(--font-logo);
    color: var(--offwhite);
}

.m2{
    font-family: var(--font-body);
    color: var(--gold);
}

.m3{
    font-family: var(--font-logo);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-content {
    text-align: center;
    position: relative;
    color: var(--offwhite);
    transform-origin: center center;
}

.hero-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: var(--fs-body-lead); /* Scale */
    font-weight: 400;
    max-width: 60ch;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: var(--fs-display-xl); /* Scale */
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-sm);
    will-change: opacity;
}

.hero-content.hidden .hero-title,
.hero-content.hidden .hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--offwhite);
    font-family: var(--font-body);
    font-size: var(--fs-meta); /* Scale */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--offwhite);
    opacity: 0.5;
}

.scroll-indicator .plus {
    margin: 0 1rem;
    font-size: 1.2rem;
    opacity: 0.5;
}

.scroll-indicator .scroll-text {
    margin: 0 1rem;
}

.hero-footer {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.hero-footer-text {
    font-family: var(--font-body);
    font-size: var(--fs-body-main); /* Scale */
    color: var(--offwhite);
    opacity: 0.8;
    line-height: 1.6;
}
