:root {
  --wni-orange: #ff7a59;
  --wni-orange-soft: rgba(255, 122, 89, .12);
  --wni-orange-line: rgba(255, 122, 89, .42);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

.progress {
  background: var(--wni-orange) !important;
  box-shadow: 0 0 18px rgba(255, 122, 89, .45);
}

.hero h1 span,
.services-hero h1 span {
  position: relative;
  display: inline-block;
  color: inherit !important;
  isolation: isolate;
}

.hero h1 span::after,
.services-hero h1 span::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: auto;
  bottom: -.16em;
  left: .03em;
  width: clamp(64px, .9em, 96px);
  height: 5px;
  border-radius: 999px;
  background: var(--wni-orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: wni-line-in .75s .28s cubic-bezier(.22, 1, .36, 1) forwards;
}

.eyebrow,
.chapter-index,
.experience-kicker,
.section-heading > span,
.contact-section .hubspot-contact-heading > span,
.footer-newsletter-copy > span {
  color: var(--wni-orange) !important;
}

.button.primary,
.send-button,
.services-final-card > a {
  border-color: var(--wni-orange) !important;
  background: var(--wni-orange) !important;
  color: #090a09 !important;
}

.button.primary:hover,
.button.primary:focus-visible,
.send-button:hover,
.send-button:focus-visible,
.services-final-card > a:hover,
.services-final-card > a:focus-visible {
  border-color: #090a09 !important;
  background: #090a09 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.experience-card,
.credential-card,
.service-tile,
.chapter-card,
.catalogue-card,
.hubspot-contact-card,
.footer-newsletter,
.services-final-card {
  --wni-pointer-x: 50%;
  --wni-pointer-y: 50%;
  position: relative;
  isolation: isolate;
}

.experience-card::after,
.credential-card::after,
.service-tile::after,
.chapter-card::after,
.catalogue-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border: 1px solid transparent;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--wni-pointer-x) var(--wni-pointer-y), var(--wni-orange-line), transparent 72%) border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.experience-card:hover::after,
.credential-card:hover::after,
.service-tile:hover::after,
.chapter-card:hover::after,
.catalogue-card:hover::after {
  opacity: 1;
}

.hubspot-contact-card {
  overflow: hidden;
  border: 1px solid rgba(9, 10, 9, .14) !important;
  border-top: 5px solid var(--wni-orange) !important;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 10, 9, .08);
}

.hubspot-contact-card::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -170px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, .18), transparent 68%);
  pointer-events: none;
}

.hubspot-form-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 600px;
}

.hubspot-form-shell iframe {
  display: block;
  width: 100% !important;
  min-height: 550px;
  border: 0 !important;
  background: #fff;
}

.embed-fallback {
  margin: 14px 4px 0;
  color: #696862;
  font-size: .78rem;
  line-height: 1.45;
}

.embed-fallback a {
  color: #10110f;
  font-weight: 850;
  text-decoration-color: var(--wni-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #111211;
  padding: 26px 28px 26px 34px;
  color: #fff;
}

.footer-newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--wni-orange);
}

.footer-newsletter::after {
  content: "";
  position: absolute;
  top: -200px;
  right: 32%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 89, .2), transparent 68%);
  opacity: .68;
  pointer-events: none;
}

.footer-newsletter-copy,
.footer-newsletter-embed {
  position: relative;
  z-index: 1;
}

.footer-newsletter-copy > span {
  display: block;
  margin-bottom: 8px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-newsletter-copy h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.footer-newsletter-copy p {
  margin: 12px 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .66);
  font-size: .92rem;
  line-height: 1.55;
}

.footer-newsletter-copy a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--wni-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-size: .84rem;
}

.footer-newsletter-embed {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .24);
}

.footer-newsletter-embed iframe {
  display: block;
  width: 100%;
  max-width: none;
  height: 260px;
  border: 0;
  background: #fff;
}

.wni-motion-target {
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .55s ease, box-shadow .3s ease, border-color .3s ease;
  transition-delay: var(--wni-delay, 0ms);
}

.wni-motion .wni-motion-target:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px) scale(.985);
}

.wni-motion .wni-motion-target.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes wni-line-in {
  to { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hubspot-form-shell,
  .hubspot-form-shell iframe {
    min-height: 600px;
  }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 72px; }

  .footer-newsletter {
    margin-bottom: 24px;
    border-radius: 18px;
    padding: 22px 16px 18px 22px;
  }

  .footer-newsletter-copy h2 { font-size: 1.8rem; }
  .footer-newsletter-embed { border-radius: 12px; }
  .footer-newsletter-embed iframe { height: 260px; }

  .hubspot-contact-card { border-radius: 20px; }
  .hubspot-form-shell { padding: 0 12px 18px !important; min-height: 600px; }
  .hubspot-form-shell iframe { min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero h1 span::after,
  .services-hero h1 span::after {
    animation: none;
    transform: scaleX(1);
  }

  .wni-motion .wni-motion-target,
  .wni-motion-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
