/* ==========================================================================
   Hero - black, bold asymmetric layout
   ========================================================================== */
.fp-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: clamp(32px, 4vw, 56px) 0 0;
  background-image:
    radial-gradient(circle at 74% 58%, rgba(var(--fp-cta-rgb), 0.36) 0%, rgba(var(--fp-cta-rgb), 0) 27%),
    linear-gradient(112deg, rgba(var(--fp-dark-rgb), 0.9) 0%, rgba(var(--fp-graphite-rgb), 0.84) 48%, rgba(var(--fp-brand-rgb), 0.78) 100%),
    url('../images/hero-bg-skyline.jpg');
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: var(--fp-white);
}
.fp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--fp-dark-rgb), 0.18), transparent 36%, rgba(var(--fp-white-rgb), 0.035)),
    radial-gradient(ellipse at 50% 120%, rgba(var(--fp-white-rgb), 0.08), transparent 58%);
  pointer-events: none;
}
.fp-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(var(--fp-brand-rgb), 0.18) 0%, rgba(var(--fp-brand-rgb), 0) 36%),
    radial-gradient(circle at 16% 84%, rgba(var(--fp-accent-rgb), 0.14) 0%, rgba(var(--fp-accent-rgb), 0) 34%);
  pointer-events: none;
}
.fp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--fp-white-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fp-white-rgb), 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.82;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  pointer-events: none;
}
.fp-skyline-motif {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  pointer-events: none;
}
.fp-skyline-motif svg {
  width: 100%;
  height: 100%;
}
.fp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.fp-hero__headline {
  max-width: 820px;
  font-size: clamp(2.5rem, 3.6vw, 3.75rem);
  line-height: 1.12;
  color: var(--fp-white);
  margin-bottom: 20px;
}
.fp-text-accent {
  color: var(--fp-accent-soft);
  text-shadow: 0 0 36px rgba(var(--fp-accent-rgb), 0.18);
}
.fp-hero__subheading {
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  color: rgba(var(--fp-white-rgb), 0.78);
  max-width: 56ch;
  margin-bottom: 36px;
}
.fp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.fp-hero__actions .fp-btn {
  min-height: 44px;
}
.fp-hero__actions .fp-btn--primary {
  box-shadow:
    0 20px 44px rgba(var(--fp-cta-rgb), 0.3),
    inset 0 1px 0 rgba(var(--fp-white-rgb), 0.2);
}
.fp-btn--ghost {
  border-color: rgba(var(--fp-white-rgb), 0.28);
  color: var(--fp-white);
  background: transparent;
}
.fp-btn--ghost:hover {
  border-color: var(--fp-white);
  background: rgba(var(--fp-white-rgb), 0.08);
}

.fp-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 320px;
  perspective: 900px;
}
.fp-hero__chip {
  position: absolute;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--fp-radius);
  background: rgba(var(--fp-dark-rgb), 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--fp-white-rgb), 0.1);
  box-shadow: 0 18px 42px rgba(var(--fp-dark-rgb), 0.42);
  white-space: nowrap;
  animation: fp-float 5s ease-in-out infinite;
}
.fp-hero__chip--1 {
  top: 14px;
  left: -8px;
  color: var(--fp-accent-soft);
}
.fp-hero__chip--2 {
  bottom: 78px;
  right: -10px;
  color: rgba(var(--fp-white-rgb), 0.84);
  animation-delay: 1.5s;
}
@keyframes fp-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.fp-hero__card {
  position: relative;
  width: 100%;
  max-width: 360px;
  align-self: center;
}
.fp-hero__card-glow {
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(circle, rgba(var(--fp-cta-rgb), 0.4) 0%, rgba(var(--fp-cta-rgb), 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.fp-hero__ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(var(--fp-accent-rgb), 0.16);
  background: rgba(var(--fp-white-rgb), 0.05);
  overflow: hidden;
  padding: 12px 0;
  padding-right: 56px;
}
.fp-hero__ticker::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--fp-black) 70%);
  pointer-events: none;
}
.fp-hero__ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(var(--fp-white-rgb), 0.62);
  animation: fp-ticker 22s linear infinite;
}
.fp-hero__ticker-track span:nth-child(odd) {
  color: var(--fp-accent-soft);
}
@keyframes fp-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Pause the ticker: user toggle (WCAG 2.2.2), hover, or keyboard focus */
.fp-hero__ticker.is-paused .fp-hero__ticker-track,
.fp-hero__ticker:hover .fp-hero__ticker-track,
.fp-hero__ticker:focus-within .fp-hero__ticker-track {
  animation-play-state: paused;
}
.fp-hero__ticker-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--fp-white-rgb), 0.24);
  background: rgba(var(--fp-dark-rgb), 0.6);
  color: rgba(var(--fp-white-rgb), 0.8);
  cursor: pointer;
}
.fp-hero__ticker-toggle:hover,
.fp-hero__ticker-toggle:focus-visible {
  border-color: var(--fp-accent-soft);
  color: var(--fp-white);
}
.fp-hero__ticker-toggle .fp-icon {
  width: 16px;
  height: 16px;
}
.fp-hero__ticker-icon--play {
  display: none;
}
.fp-hero__ticker.is-paused .fp-hero__ticker-icon--pause {
  display: none;
}
.fp-hero__ticker.is-paused .fp-hero__ticker-icon--play {
  display: block;
}
.fp-hero__card-pulse {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fp-accent);
  box-shadow: 0 0 0 rgba(var(--fp-accent-rgb), 0.58);
  animation: fp-pulse 2s infinite;
}
@keyframes fp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--fp-accent-rgb), 0.58);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--fp-accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--fp-accent-rgb), 0);
  }
}
.fp-hero__card-image {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(var(--fp-dark-rgb), 0.45),
    inset 0 1px 0 rgba(var(--fp-white-rgb), 0.1);
  transition: transform 0.4s ease;
}
.fp-hero__card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (hover: hover) {
  .fp-hero__card-image:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 1180px) {
  .fp-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 44px;
  }
  .fp-hero__headline {
    font-size: clamp(2.25rem, 3.6vw, 3rem);
  }
  .fp-hero__card {
    max-width: 340px;
  }
}

@media (max-width: 860px) {
  .fp-hero {
    min-height: auto;
    padding-top: 34px;
  }
  .fp-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 26px;
  }
  .fp-hero__headline {
    max-width: 100%;
    font-size: clamp(2rem, 7vw, 2.75rem);
    margin-bottom: 16px;
  }
  .fp-hero__subheading {
    margin-bottom: 26px;
  }
  .fp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .fp-hero__visual {
    order: -1;
    min-height: 260px;
    margin-bottom: 0;
  }
  .fp-hero__chip {
    display: none;
  }
  .fp-hero__card {
    max-width: 380px;
  }
}

@media (max-width: 420px) {
  .fp-hero__visual {
    min-height: 220px;
  }

  .fp-hero__headline {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero__chip,
  .fp-hero__card-pulse,
  .fp-hero__ticker-track {
    animation: none;
  }
  /* Already static - the pause toggle has nothing to control. */
  .fp-hero__ticker-toggle {
    display: none;
  }
  .fp-hero__ticker {
    padding-right: 0;
  }
}
