/* Tazers hero - shared system, three variants below. */

.tz-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--tz-cream);
}

/* Marquee ticker at the very top */
.tz-marquee {
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  background: var(--tz-red);
  color: var(--tz-cream);
  overflow: hidden;
  z-index: 5;
  display: flex;
  align-items: center;
}
.tz-marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  animation: tz-marquee 40s linear infinite;
  will-change: transform;
}
.tz-marquee__track:hover { animation-play-state: paused; }
@keyframes tz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tz-marquee__track { animation: none; } }

/* Centered content */
.tz-hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px var(--gutter) 64px;
  max-width: 1100px;
}
.tz-hero__logo {
  width: clamp(280px, 60vw, 720px);
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 8px 40px rgba(229, 26, 26, 0.45));
}
.tz-hero__slogan {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-7);
  color: var(--tz-cream);
}
.tz-hero__slogan-accent {
  display: inline-block;
  color: var(--tz-red);
  text-shadow: 0 0 36px rgba(229, 26, 26, 0.55);
}
.tz-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Grain overlay - small, almost imperceptible, used in every variant */
.tz-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.45;
  mix-blend-mode: overlay;
  filter: url(#tz-grain);
}
.tz-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

/* Press photo backdrop (used by V1 + V2) */
.tz-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  filter: contrast(1.1) saturate(1.1);
}

/* Video backdrop - sits in the same slot as .tz-hero__photo when configured.
   Press photo plays poster + reduced-motion / data-saver fallback. */
.tz-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.tz-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.1) saturate(1.15);
  z-index: 1;
}
.tz-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05) saturate(1.1);
  z-index: 2;
  pointer-events: none;
  border: 0;
}
/* iframe embeds need explicit cover-sizing (16:9 always fills) */
.tz-hero__video--embed {
  width: max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
}

/* Video looks great over blobs - keep blobs but dim them a touch */
.tz-hero__media + .tz-hero__blobs { opacity: 0.6; }

/* ----- WebGL shader layer (progressive enhancement) -----
   Sits above the static CSS blobs but below the grain + foreground.
   When the shader successfully boots (JS adds .tz-hero--has-shader),
   we dim the static blobs so the two layers don't fight each other. */
.tz-hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease-out;
  mix-blend-mode: screen;
}
.tz-hero--has-shader .tz-hero__shader { opacity: 0.2; }
.tz-hero--has-shader .tz-hero__blobs  { opacity: 0.85; }

/* Reduced motion / data-saver: shader is removed entirely by JS, blobs stay full strength */

/* Reduced motion: hide video, show only poster */
@media (prefers-reduced-motion: reduce) {
  .tz-hero__video { display: none !important; }
}

/* Data-saver: skip the video, keep poster */
@media (prefers-reduced-data: reduce) {
  .tz-hero__video { display: none !important; }
}

/* ============================================================
 * HERO - red-dominant liquid-light. Tazer red + coral + gold
 * over near-black. Stage-lit, aggressive.
 * ============================================================ */
.tz-home .tz-hero { background: linear-gradient(180deg, #1A0606 0%, #0A0606 60%, #0A0A0A 100%); }
.tz-home .tz-hero__photo { opacity: 0.32; filter: contrast(1.2) saturate(1.4) hue-rotate(-10deg); }
.tz-home .tz-hero__blobs { position: absolute; inset: -10%; z-index: 2; filter: url(#tz-goo) blur(28px); }
.tz-home .tz-blob {
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 1;
  animation-duration: 55s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.5, 0.2, 0.5, 0.8);
}
.tz-home .tz-blob--red-a { background: radial-gradient(circle, #E51A1A 0%, transparent 65%); top: -10%; left: -5%;   animation-name: tz-blob-a; }
.tz-home .tz-blob--red-b { background: radial-gradient(circle, #FF3D00 0%, transparent 65%); top: 35%; right: -10%; animation-name: tz-blob-b; animation-duration: 65s; }
.tz-home .tz-blob--coral { background: radial-gradient(circle, #E64A2E 0%, transparent 70%); bottom: -10%; left: 25%; animation-name: tz-blob-c; }
.tz-home .tz-blob--gold  { background: radial-gradient(circle, #F2C94C 0%, transparent 75%); top: 20%; left: 50%;    animation-name: tz-blob-d; animation-duration: 72s; opacity: 0.7; }

/* ============================================================
 * Blob keyframes - shared
 * ============================================================ */
@keyframes tz-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(15vw, 8vh) scale(1.1) rotate(120deg); }
  66%      { transform: translate(-8vw, 18vh) scale(0.95) rotate(240deg); }
}
@keyframes tz-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(-20vw, 10vh) scale(1.15) rotate(180deg); }
}
@keyframes tz-blob-c {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%      { transform: translate(10vw, -10vh) scale(1.1) rotate(90deg); }
  75%      { transform: translate(-10vw, -5vh) scale(0.9) rotate(270deg); }
}
@keyframes tz-blob-d {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(15vw, -8vh) scale(1.2) rotate(180deg); }
}
@keyframes tz-blob-e {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  40%      { transform: translate(-8vw, -12vh) scale(0.85) rotate(160deg); }
  80%      { transform: translate(8vw, -4vh) scale(1.1) rotate(280deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tz-home .tz-blob { animation: none; }
}

/* ============================================================
 * Phase-1 review switcher (only shows on review pages)
 * ============================================================ */
.tz-review-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 8px 16px;
  background: var(--tz-black);
  color: var(--tz-cream);
  border-bottom: 1px solid var(--tz-red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tz-review-bar__label { opacity: 0.7; }
.tz-review-bar__variants { display: flex; gap: 4px; }
.tz-review-bar__btn {
  padding: 6px 14px;
  border: 1px solid var(--tz-cream);
  background: transparent;
  color: var(--tz-cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tz-review-bar__btn:hover { background: var(--tz-cream); color: var(--tz-black); }
.tz-review-bar__btn[aria-current="page"] { background: var(--tz-red); border-color: var(--tz-red); color: var(--tz-cream); }
