/* WebPulse Hero - public styles. Scoped to avoid affecting the active theme. */
.webpulse-hero,
.webpulse-hero * ,
.webpulse-hero *::before,
.webpulse-hero *::after {
  box-sizing: border-box;
}

.webpulse-hero {
  --wph-black: #0C0A0B;
  --wph-red: #F4382D;
  --wph-wine: #602F32;
  --wph-cream: #F0EDE6;
  --wph-muted: rgba(240,237,230,0.38);
  --wph-height: 100vh;
  --wph-min-height: 620px;
  --wph-pulse-size: clamp(52px, 18vw, 220px);
  --wph-pulse-size-mobile: clamp(48px, 22vw, 120px);
  --wph-logo-width: clamp(200px, 28vw, 340px);
  --wph-tagline-size: clamp(1.05rem, 2.2vw, 1.55rem);
  --wph-sub-size: clamp(.82rem, 1.3vw, .95rem);
  --wph-tag-size: .68rem;
  --wph-button-size: .8rem;
  --wph-side-size: .6rem;
  --wph-bottom-size: .65rem;
  --wph-speed: 4.2s;
  --wph-scan-angle: 108deg;
  --wph-blade-width: 2px;
  --wph-trail-width: 120px;
  --wph-glow-blur: 8px;
  --wph-chr-offset: 6px;
  --wph-pulse-outline-width: 1px;

  position: relative;
  width: 100%;
  height: var(--wph-height);
  min-height: var(--wph-min-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--wph-black);
  color: var(--wph-cream);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.4;
  margin: 0;
  padding: 2rem;
}

@property --wph-scan {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -30%;
}
@property --wph-glow-op {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
@property --wph-chr-x {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.webpulse-hero__bg-pulse {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

.webpulse-hero__bg-pulse-wrap {
  position: relative;
  white-space: nowrap;
  max-width: 96vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webpulse-hero__bg-pulse-wrap,
.webpulse-hero__bg-pulse-wrap::before,
.webpulse-hero__bg-pulse-wrap::after,
.webpulse-hero__bg-pulse-text,
.webpulse-hero__bg-pulse-text::before,
.webpulse-hero__bg-pulse-text::after {
  font-family: 'Syne', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 800;
  font-size: var(--wph-pulse-size);
  letter-spacing: -.04em;
  line-height: 1;
}

.webpulse-hero__bg-pulse-text {
  position: relative;
  display: block;
  color: transparent;
  -webkit-text-stroke: var(--wph-pulse-outline-width) color-mix(in srgb, var(--wph-wine) 35%, transparent);
  background: linear-gradient(
    var(--wph-scan-angle),
    transparent 0%,
    transparent calc(var(--wph-scan) - 22%),
    color-mix(in srgb, var(--wph-wine) 25%, transparent) calc(var(--wph-scan) - 14%),
    color-mix(in srgb, var(--wph-red) 18%, transparent) calc(var(--wph-scan) - 7%),
    color-mix(in srgb, var(--wph-red) 72%, transparent) calc(var(--wph-scan) - 0.5%),
    rgba(255,255,255,0.9) var(--wph-scan),
    color-mix(in srgb, var(--wph-red) 72%, transparent) calc(var(--wph-scan) + 0.5%),
    color-mix(in srgb, var(--wph-red) 18%, transparent) calc(var(--wph-scan) + 5%),
    color-mix(in srgb, var(--wph-wine) 10%, transparent) calc(var(--wph-scan) + 13%),
    transparent calc(var(--wph-scan) + 20%),
    transparent 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  animation:
    wph-scanBeam var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite,
    wph-glitchShake var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite;
}

.webpulse-hero__bg-pulse-text::before,
.webpulse-hero__bg-pulse-text::after {
  content: attr(data-pulse-word);
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  mix-blend-mode: screen;
  pointer-events: none;
}

.webpulse-hero__bg-pulse-text::before {
  -webkit-text-stroke: var(--wph-pulse-outline-width) transparent;
  background: linear-gradient(
    var(--wph-scan-angle),
    transparent 0%,
    transparent calc(var(--wph-scan) - 18%),
    transparent calc(var(--wph-scan) - 10%),
    color-mix(in srgb, var(--wph-red) 45%, transparent) calc(var(--wph-scan) - 2%),
    transparent calc(var(--wph-scan) + 8%),
    transparent 100%
  );
  transform: translateX(calc(var(--wph-chr-x) * -1));
  animation:
    wph-scanBeam var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite,
    wph-chrAberR var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite;
}

.webpulse-hero__bg-pulse-text::after {
  background: linear-gradient(
    var(--wph-scan-angle),
    transparent 0%,
    transparent calc(var(--wph-scan) - 18%),
    rgba(100,220,255,0) calc(var(--wph-scan) - 10%),
    rgba(100,220,255,0.28) calc(var(--wph-scan) - 2%),
    rgba(100,220,255,0) calc(var(--wph-scan) + 8%),
    transparent 100%
  );
  transform: translateX(var(--wph-chr-x));
  animation:
    wph-scanBeam var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite,
    wph-chrAberC var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite;
}

.webpulse-hero__bg-pulse-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--wph-blade-width);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--wph-red) 15%, transparent) 10%,
    rgba(255,255,255,0.95) 48%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,0.95) 52%,
    color-mix(in srgb, var(--wph-red) 15%, transparent) 90%,
    transparent 100%
  );
  filter: blur(0.4px);
  animation: wph-bladeSweep var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite;
  z-index: 5;
  border-radius: 1px;
}

.webpulse-hero__bg-pulse-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--wph-trail-width);
  background: linear-gradient(
    to right,
    transparent 0%,
    color-mix(in srgb, var(--wph-red) 6%, transparent) 60%,
    transparent 100%
  );
  filter: blur(var(--wph-glow-blur));
  animation: wph-glowTrail var(--wph-speed) cubic-bezier(0.22,1,0.36,1) infinite;
  z-index: 4;
  pointer-events: none;
}

@keyframes wph-scanBeam {
  0% { --wph-scan: -30%; }
  60%, 100% { --wph-scan: 130%; }
}

@keyframes wph-chrAberR {
  0%, 38% { --wph-chr-x: 0px; }
  44% { --wph-chr-x: var(--wph-chr-offset); }
  50% { --wph-chr-x: calc(var(--wph-chr-offset) / 2); }
  55%, 100% { --wph-chr-x: 0px; }
}

@keyframes wph-chrAberC {
  0%, 38% { --wph-chr-x: 0px; }
  44% { --wph-chr-x: calc(var(--wph-chr-offset) * -1); }
  50% { --wph-chr-x: calc(var(--wph-chr-offset) / -2); }
  55%, 100% { --wph-chr-x: 0px; }
}

@keyframes wph-bladeSweep {
  0% { left: -2%; opacity: 0; }
  3% { opacity: 1; }
  57% { left: 102%; opacity: 0.9; }
  57.1% { left: -2%; opacity: 0; }
  100% { left: -2%; opacity: 0; }
}

@keyframes wph-glowTrail {
  0% { left: calc(var(--wph-trail-width) * -1 - 10px); opacity: 0; }
  5% { opacity: 1; }
  57% { left: calc(100% + 10px); opacity: 0; }
  57.1% { left: calc(var(--wph-trail-width) * -1 - 10px); opacity: 0; }
  100% { left: calc(var(--wph-trail-width) * -1 - 10px); opacity: 0; }
}

@keyframes wph-glitchShake {
  0%, 42%, 56%, 100% { transform: translate(0, 0) skewX(0deg); }
  43% { transform: translate(-3px, 0) skewX(-1deg); }
  44% { transform: translate(4px, 0) skewX(1.5deg); }
  45% { transform: translate(-2px, 0) skewX(-.5deg); }
  46% { transform: translate(0, 0) skewX(0deg); }
  47% { transform: translate(3px, 1px) skewX(1deg); }
  48% { transform: translate(0, 0); }
}

.webpulse-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: min(92vw, 960px);
}

.webpulse-hero__rule-top {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--wph-red) 60%, transparent));
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: wph-fadeDown 0.6s 0.1s ease forwards;
}

.webpulse-hero__logo-wrap {
  opacity: 0;
  animation: wph-fadeUp 0.7s 0.35s ease forwards;
}

.webpulse-hero__logo-wrap img,
.webpulse-hero__logo-wrap svg {
  width: var(--wph-logo-width);
  max-width: 86vw;
  height: auto;
  display: block;
}

.webpulse-hero__sep {
  width: 40px;
  height: 2px;
  background: var(--wph-red);
  margin: 1.8rem auto;
  opacity: 0;
  animation: wph-scaleX 0.5s 0.7s ease forwards;
  transform-origin: center;
  transform: scaleX(0);
}

@keyframes wph-scaleX {
  to { opacity: 1; transform: scaleX(1); }
}

.webpulse-hero__tagline {
  font-family: 'Syne', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 700;
  font-size: var(--wph-tagline-size);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wph-cream);
  opacity: 0;
  animation: wph-fadeUp 0.7s 0.85s ease forwards;
  margin: 0;
}

.webpulse-hero__tagline em {
  font-style: normal;
  color: var(--wph-red);
}

.webpulse-hero__sub {
  max-width: 420px;
  font-size: var(--wph-sub-size);
  line-height: 1.75;
  color: var(--wph-muted);
  margin-top: .9rem;
  margin-bottom: 0;
  opacity: 0;
  animation: wph-fadeUp 0.7s 1.05s ease forwards;
}

.webpulse-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.webpulse-hero__tag {
  font-size: var(--wph-tag-size);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--wph-cream) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--wph-wine) 55%, transparent);
  padding: .3rem .85rem;
  border-radius: 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: wph-tagReveal 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
  transition: color .22s, border-color .22s, background .22s;
  position: relative;
  overflow: hidden;
}

.webpulse-hero__tag::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--wph-red) 35%, transparent), transparent);
  transform: translateX(-40px);
  animation: wph-tagShimmer 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
}

.webpulse-hero__tag:hover {
  color: var(--wph-red);
  border-color: color-mix(in srgb, var(--wph-red) 50%, transparent);
  background: color-mix(in srgb, var(--wph-red) 6%, transparent);
}

@keyframes wph-tagReveal {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  5% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0% 0 0); }
}

@keyframes wph-tagShimmer {
  0% { transform: translateX(-40px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120px); opacity: 0; }
}

.webpulse-hero__tag:nth-child(1), .webpulse-hero__tag:nth-child(1)::after { animation-delay: 1.20s; }
.webpulse-hero__tag:nth-child(2), .webpulse-hero__tag:nth-child(2)::after { animation-delay: 1.38s; }
.webpulse-hero__tag:nth-child(3), .webpulse-hero__tag:nth-child(3)::after { animation-delay: 1.56s; }
.webpulse-hero__tag:nth-child(4), .webpulse-hero__tag:nth-child(4)::after { animation-delay: 1.74s; }
.webpulse-hero__tag:nth-child(5), .webpulse-hero__tag:nth-child(5)::after { animation-delay: 1.92s; }
.webpulse-hero__tag:nth-child(n+6), .webpulse-hero__tag:nth-child(n+6)::after { animation-delay: 2.10s; }

.webpulse-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: wph-fadeUp 0.6s 1.8s ease forwards;
}

.webpulse-hero__btn-main,
.webpulse-hero__btn-link {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none !important;
  cursor: pointer;
}

.webpulse-hero__btn-main {
  font-size: var(--wph-button-size);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--wph-red);
  border: none;
  padding: .75rem 2rem;
  border-radius: 0;
  transition: background .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.webpulse-hero__btn-main:hover,
.webpulse-hero__btn-main:focus {
  background: #c72920;
  box-shadow: 0 0 28px color-mix(in srgb, var(--wph-red) 45%, transparent);
}

.webpulse-hero__btn-link {
  font-size: calc(var(--wph-button-size) * .975);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wph-muted) !important;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}

.webpulse-hero__btn-link:hover,
.webpulse-hero__btn-link:focus {
  color: var(--wph-cream) !important;
}

.webpulse-hero__btn-link span {
  font-size: 1rem;
  transition: transform .2s;
}

.webpulse-hero__btn-link:hover span,
.webpulse-hero__btn-link:focus span {
  transform: translateX(3px);
}

.webpulse-hero__corner {
  position: absolute;
  color: color-mix(in srgb, var(--wph-red) 50%, transparent);
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: wph-fadeIn 0.6s 1.9s ease forwards;
  z-index: 3;
}

.webpulse-hero__corner svg {
  display: block;
}

.webpulse-hero__corner-tl { top: 2rem; left: 2rem; }
.webpulse-hero__corner-tr { top: 2rem; right: 2rem; transform: scaleX(-1); }
.webpulse-hero__corner-bl { bottom: 2rem; left: 2rem; transform: scaleY(-1); }
.webpulse-hero__corner-br { bottom: 2rem; right: 2rem; transform: scale(-1); }

.webpulse-hero__bottom-label {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--wph-bottom-size);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--wph-cream) 20%, transparent);
  white-space: nowrap;
  opacity: 0;
  animation: wph-fadeIn 0.8s 2.2s ease forwards;
  z-index: 3;
}

.webpulse-hero__side-label {
  position: absolute;
  font-size: var(--wph-side-size);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--wph-cream) 18%, transparent);
  white-space: nowrap;
  opacity: 0;
  animation: wph-fadeIn 0.8s 2s ease forwards;
  z-index: 3;
}

.webpulse-hero__side-label-left {
  left: 2.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.webpulse-hero__side-label-right {
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

@keyframes wph-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wph-fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wph-fadeIn {
  to { opacity: 1; }
}

.webpulse-hero--static .webpulse-hero__bg-pulse-text,
.webpulse-hero--static .webpulse-hero__bg-pulse-text::before,
.webpulse-hero--static .webpulse-hero__bg-pulse-text::after,
.webpulse-hero--static .webpulse-hero__bg-pulse-wrap::before,
.webpulse-hero--static .webpulse-hero__bg-pulse-wrap::after,
.webpulse-hero--static .webpulse-hero__rule-top,
.webpulse-hero--static .webpulse-hero__logo-wrap,
.webpulse-hero--static .webpulse-hero__sep,
.webpulse-hero--static .webpulse-hero__tagline,
.webpulse-hero--static .webpulse-hero__sub,
.webpulse-hero--static .webpulse-hero__tag,
.webpulse-hero--static .webpulse-hero__tag::after,
.webpulse-hero--static .webpulse-hero__cta-row,
.webpulse-hero--static .webpulse-hero__corner,
.webpulse-hero--static .webpulse-hero__bottom-label,
.webpulse-hero--static .webpulse-hero__side-label {
  animation: none !important;
  opacity: 1;
}

.webpulse-hero--static .webpulse-hero__bg-pulse-text,
.webpulse-hero--static .webpulse-hero__bg-pulse-text::before,
.webpulse-hero--static .webpulse-hero__bg-pulse-text::after {
  background: none;
  color: transparent;
  transform: none;
}

.webpulse-hero--static .webpulse-hero__bg-pulse-wrap::before,
.webpulse-hero--static .webpulse-hero__bg-pulse-wrap::after,
.webpulse-hero--static .webpulse-hero__tag::after {
  display: none;
}

.webpulse-hero--static .webpulse-hero__sep {
  transform: scaleX(1);
}

.webpulse-hero--static .webpulse-hero__tag {
  clip-path: none;
}

@media (max-width: 600px) {
  .webpulse-hero {
    min-height: min(var(--wph-min-height), 100svh);
    padding: 1rem;
  }

  .webpulse-hero__bg-pulse-text,
  .webpulse-hero__bg-pulse-text::before,
  .webpulse-hero__bg-pulse-text::after {
    font-size: var(--wph-pulse-size-mobile);
    letter-spacing: -.02em;
  }

  .webpulse-hero__logo-wrap img,
  .webpulse-hero__logo-wrap svg {
    width: min(var(--wph-logo-width), 72vw);
  }

  .webpulse-hero__tagline {
    font-size: min(var(--wph-tagline-size), .95rem);
    letter-spacing: .08em;
  }

  .webpulse-hero__sub {
    font-size: min(var(--wph-sub-size), .85rem);
    max-width: 88vw;
    margin-top: .7rem;
  }

  .webpulse-hero__tags {
    gap: .4rem;
    margin-top: 1.2rem;
    padding: 0 1rem;
  }

  .webpulse-hero__tag {
    font-size: min(var(--wph-tag-size), .62rem);
    padding: .28rem .65rem;
    letter-spacing: .1em;
  }

  .webpulse-hero__sep {
    margin: 1.2rem auto;
  }

  .webpulse-hero__cta-row {
    flex-direction: column;
    gap: .9rem;
    margin-top: 1.5rem;
  }

  .webpulse-hero__btn-main {
    width: 100%;
    text-align: center;
  }

  .webpulse-hero__side-label {
    display: none;
  }

  .webpulse-hero__bottom-label {
    font-size: min(var(--wph-bottom-size), .55rem);
    letter-spacing: .15em;
    bottom: 1rem;
  }

  .webpulse-hero__corner {
    width: 16px;
    height: 16px;
  }
  .webpulse-hero__corner-tl { top: 1rem; left: 1rem; }
  .webpulse-hero__corner-tr { top: 1rem; right: 1rem; }
  .webpulse-hero__corner-bl { bottom: 1rem; left: 1rem; }
  .webpulse-hero__corner-br { bottom: 1rem; right: 1rem; }

  .webpulse-hero__rule-top {
    height: 32px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 380px) {
  .webpulse-hero__bg-pulse-text,
  .webpulse-hero__bg-pulse-text::before,
  .webpulse-hero__bg-pulse-text::after {
    font-size: min(var(--wph-pulse-size-mobile), 19vw);
  }

  .webpulse-hero__logo-wrap img,
  .webpulse-hero__logo-wrap svg {
    width: 78vw;
  }

  .webpulse-hero__tag:nth-child(n+5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .webpulse-hero,
  .webpulse-hero * ,
  .webpulse-hero *::before,
  .webpulse-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
