/* Register the hero scroll-exit variables so they have a real numeric default
   (1) instead of being undefined. This keeps the hero wordmark full-size on
   load and lets GSAP interpolate them smoothly. */
@property --hero-mark-scale {
  syntax: "<number>";
  initial-value: 1;
  inherits: true;
}
@property --hero-fade {
  syntax: "<number>";
  initial-value: 1;
  inherits: true;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--l);
  background-image: url("/assets/hero-bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  text-align: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  /* hero scroll exit (driven by js/home-hero-exit.js) */
  opacity: var(--hero-fade, 1);
}

.hero .hero-header {
  transform: scale(var(--hero-mark-scale, 1));
  will-change: transform;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particle-canvas {
  width: 100%;
  height: 100%;
}

.hero .hero-header {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(5rem, 25vw, 25rem);
  /* Crimson wordmark so it reads against the dark particle field. */
  color: var(--l);
  line-height: 0.9;
}

.hero .hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 2.5rem;
  color: var(--l);
  mix-blend-mode: difference;
}

.hero .hero-footer .hero-footer-col {
  display: flex;
  gap: 5rem;
}

@media (max-width: 1000px) {
  .hero .hero-footer {
    padding: 2rem;
  }

  .hero .hero-footer .hero-footer-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

/* ─── home brand marquee (js/home-marquee.js) ──────────────────────────── */

.home-marquee {
  position: relative;
  width: 100%;
  padding: 4rem 0;
  background-color: var(--l);
  color: var(--d);
  border-top: 1px solid var(--d);
  border-bottom: 1px solid var(--d);
  overflow: hidden;
}

.home-marquee-row {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.home-marquee-row + .home-marquee-row {
  margin-top: 1rem;
}

.home-marquee-item {
  display: inline-block;
  flex-shrink: 0;
  padding: 0 1.25rem;
  font-family: var(--f-h);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--d);
}

/* second row reads slightly muted to imply depth/parallax */
.home-marquee-row[data-direction="right"] .home-marquee-item {
  color: var(--d);
  opacity: 0.55;
}

@media (max-width: 720px) {
  .home-marquee {
    padding: 2.5rem 0;
  }
  .home-marquee-item {
    padding: 0 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee-row {
    transform: none !important;
  }
}
