/* Shader hero section — replaces existing .hero section on homepage */

.shader-hero {
  position: relative;
  width: 100%;
  /* Fill remaining viewport below the fixed-height site header (≈74px) so the label
     at bottom sits within the fold. */
  height: calc(100vh - 80px);
  min-height: 580px;
  background: #0b0f14; /* dark fallback behind canvas */
  overflow: hidden;
}

.shader-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.shader-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 6vw, 6rem);
  color: #fff;
  pointer-events: none;
  z-index: 2;
  /* Strong left-side vignette so WWN text is always readable over any photography */
  background:
    linear-gradient(to right, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.70) 25%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 80%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.20) 100%);
}

.shader-hero__overlay > * {
  max-width: 60ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.shader-hero__title {
  font-family: var(--font-display, 'EditorialNew', serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.shader-hero__sub {
  font-family: var(--font-body, 'GTAmerica', system-ui, sans-serif);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 55ch;
  margin-bottom: 2rem;
  opacity: 0.92;
}

.shader-hero__ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  pointer-events: auto;
}

.shader-hero__cta-primary {
  background: #fff;
  color: #0b0f14;
  padding: 1rem 2rem;
  font-family: var(--font-body, 'GTAmerica', system-ui, sans-serif);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.shader-hero__cta-primary:hover { transform: translateY(-2px); }

.shader-hero__cta-secondary {
  color: #fff;
  font-family: var(--font-body, 'GTAmerica', system-ui, sans-serif);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.2rem;
}
.shader-hero__cta-secondary:hover { border-bottom-color: #fff; }

/* Slide label — identifies the premium-tier mockup currently showing */
.shader-hero__label {
  position: absolute;
  right: clamp(2rem, 4vw, 3.5rem);
  bottom: clamp(2rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.9rem 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 22rem;
  opacity: 1;
}
.shader-hero__label[data-hidden="true"] { opacity: 0; }

.shader-hero__label-kicker {
  font-family: var(--font-body, 'GTAmerica', system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.shader-hero__label-name {
  font-family: var(--font-display, 'EditorialNew', serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.shader-hero.no-webgl .shader-hero__label,
.shader-hero.reduced-motion .shader-hero__label {
  /* Fallback state — show the first slide's label only */
}

@media (max-width: 640px) {
  .shader-hero__label {
    right: 1rem;
    bottom: 1rem;
    padding: 0.6rem 0.9rem;
  }
  .shader-hero__label-name { font-size: 0.9rem; }
}

/* Static fallback — shown when WebGL unavailable OR prefers-reduced-motion */
.shader-hero__fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.shader-hero.no-webgl .shader-hero__canvas,
.shader-hero.reduced-motion .shader-hero__canvas {
  display: none;
}
.shader-hero.no-webgl .shader-hero__fallback-image,
.shader-hero.reduced-motion .shader-hero__fallback-image {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .shader-hero .shader-hero__canvas { display: none; }
  .shader-hero .shader-hero__fallback-image { display: block; }
}