/* Inner page hero — copy, CTAs and motion */

.page-hero {
  min-height: 420px;
  background-attachment: scroll;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: pageHeroKen 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes pageHeroKen {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.page-hero-overlay {
  background: linear-gradient(
    115deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.72) 48%,
    rgba(26, 26, 26, 0.45) 100%
  );
}

.page-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(249, 212, 35, 0.06) 100%
  );
  pointer-events: none;
}

.page-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 212, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 212, 35, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(115deg, black 25%, transparent 70%);
  animation: pageHeroGrid 30s linear infinite;
}

@keyframes pageHeroGrid {
  to { background-position: 40px 40px, 40px 40px; }
}

.page-hero-fx-accent {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(249, 212, 35, 0.2);
  transform: rotate(45deg);
  animation: pageHeroAccent 8s ease-in-out infinite;
}

@keyframes pageHeroAccent {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.5; transform: rotate(45deg) scale(1.08); }
}

.page-hero-lines path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.page-hero.is-visible .page-hero-lines path {
  animation: pageHeroDraw 3.5s ease forwards, pageHeroPulse 6s ease-in-out 3.5s infinite;
}

.page-hero-lines path:nth-child(2) {
  stroke: rgba(249, 212, 35, 0.55);
  animation-delay: 0.35s, 3.85s;
}

@keyframes pageHeroDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes pageHeroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.page-hero-inner {
  max-width: 720px;
  padding: 3.5rem 0 4rem;
  animation: pageHeroContentIn 0.9s var(--ease) 0.15s backwards;
}

@keyframes pageHeroContentIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--yellow);
}

.page-hero-inner h1 {
  margin-bottom: 1.1rem;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.page-hero-intro {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.page-hero-actions .btn {
  min-width: 160px;
  text-align: center;
}

.btn-outline-light {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.page-hero--legal {
  min-height: 320px;
}

.page-hero--legal .page-hero-intro {
  max-width: 640px;
  font-size: 1rem;
}

.page-hero--article .page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero--article .page-hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  margin-right: 0.4rem;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .page-hero-fx-grid,
  .page-hero-fx-accent,
  .page-hero-inner,
  .page-hero-lines path {
    animation: none !important;
  }

  .page-hero-lines path {
    stroke-dashoffset: 0;
  }
}
