/* ==================================================
   Homepage hero v2 (views/partials/hero-v2.ejs)
   ================================================== */

.hero-v2 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 185px 0 120px;
  overflow: hidden;
  isolation: isolate;
  background: #071328;
  color: #ffffff;
}

/* ---------- background layers ---------- */
.hv2-bg {
  position: absolute;
  inset: -4%;
  z-index: -5;
  background-size: cover;
  background-position: center;
  animation: hv2-kenburns 18s ease-out both;
}

.hv2-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(100deg, rgba(7, 19, 40, 0.97) 0%, rgba(7, 19, 40, 0.88) 42%, rgba(11, 29, 58, 0.55) 75%, rgba(11, 29, 58, 0.35) 100%),
    linear-gradient(0deg, rgba(7, 19, 40, 1) 0%, rgba(7, 19, 40, 0) 35%);
}

.hv2-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
  animation: hv2-grid-drift 30s linear infinite;
}

.hv2-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hv2-orb-1 {
  top: 8%;
  left: 38%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #F5A623 0%, rgba(245, 166, 35, 0) 70%);
  animation: hv2-float-a 14s ease-in-out infinite;
}

.hv2-orb-2 {
  bottom: -10%;
  left: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #1F56D6 0%, rgba(31, 86, 214, 0) 70%);
  animation: hv2-float-b 18s ease-in-out infinite;
}

.hv2-orb-3 {
  top: 30%;
  right: -6%;
  width: 380px;
  height: 380px;
  opacity: 0.35;
  background: radial-gradient(circle, #6DB33F 0%, rgba(109, 179, 63, 0) 70%);
  animation: hv2-float-a 16s ease-in-out infinite reverse;
}

.hv2-inner {
  position: relative;
  z-index: 2;
}

.hero-v2 .hv2-title {
  margin: 0 0 22px;
  font-family: var(--heading-font);
  font-size: clamp(42px, 5.4vw, 80px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-transform: none;
}

/* small keyword line at the top of the homepage h1 (what we do + where) */
.hv2-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.10);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFD66B;
  animation: hv2-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}

@media (max-width: 575px) {
  .hv2-kicker {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

.hv2-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hv2-line > span {
  display: inline-block;
  animation: hv2-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hv2-line:nth-child(1) > span { animation-delay: 0.6s; }
.hv2-line:nth-child(2) > span { animation-delay: 0.72s; }
.hv2-line:nth-child(3) > span { animation-delay: 0.84s; }

.hv2-grad {
  font-style: normal;
  background: linear-gradient(100deg, #FFD66B 0%, #F5A623 35%, #FF7A1A 65%, #FFD66B 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hv2-shimmer 6s ease-in-out infinite;
}

.hv2-lead {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  animation: hv2-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both;
}

/* ---------- buttons ---------- */
.hv2-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  animation: hv2-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s both;
}

.hv2-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.hv2-btn i {
  transition: transform 0.35s ease;
}

.hv2-btn-primary {
  color: #0B1D3A;
  background: linear-gradient(100deg, #FFC94D, #F5A623 50%, #FF8A1F);
  box-shadow: 0 14px 34px rgba(245, 166, 35, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hv2-btn-primary:hover {
  color: #0B1D3A;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(245, 166, 35, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hv2-btn-primary:hover i {
  transform: translateX(5px);
}

.hv2-btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: solid 1px rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* hover keeps the text white (the hero's text-light rules would override a dark colour) */
.hero-v2 .hv2-btn-ghost:hover,
.hero-v2 .hv2-btn-ghost:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14);
  border-color: #F5A623;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(245, 166, 35, 0.15);
  transform: translateY(-3px);
}

.hero-v2 .hv2-btn-ghost:hover i {
  color: #F5A623;
}

/* ---------- ticker ---------- */
.hv2-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.04);
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hv2-ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: hv2-marquee 38s linear infinite;
}

.hv2-ticker-track span {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.hv2-ticker:hover .hv2-ticker-track {
  animation-play-state: paused;
}

/* "Trusted by" client logos in the ticker */
.hv2-clients {
  display: flex;
  align-items: center;
  padding: 0;
}

.hv2-ticker-label {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 34px 0 40px;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F5A623;
  background: rgba(7, 19, 40, 0.85);
  border-right: solid 1px rgba(255, 255, 255, 0.12);
  transition: color 0.3s ease;
}

.hv2-ticker-label:hover {
  color: #ffffff;
}

.hv2-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hv2-clients .hv2-ticker-track {
  gap: 28px;
  animation-duration: 48s;
}

/* each client: logo + name side by side */
.hv2-client {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.hv2-client-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* logos keep their real colours on a small white tile */
.hv2-client-mark img {
  max-height: 30px;
  max-width: 76px;
  width: auto;
}

/* no logo yet: amber icon tile */
.hv2-client-mark i {
  font-size: 17px;
  color: #0B1D3A;
}

.hv2-client-mark:has(i) {
  padding: 0;
  width: 44px;
  background: linear-gradient(135deg, #FFD66B, #F5A623);
}

.hv2-client-name {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.hv2-client:hover .hv2-client-mark {
  transform: translateY(-3px) scale(1.05);
}

.hv2-client:hover .hv2-client-name {
  color: #F5A623;
}

.hv2-client-sep {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F5A623;
  opacity: 0.7;
}

.hv2-clients:hover .hv2-ticker-track {
  animation-play-state: paused;
}

@media (max-width: 575px) {
  .hv2-ticker-label {
    padding: 0 16px 0 18px;
    font-size: 10.5px;
  }
}

/* ---------- scroll cue ---------- */
.hv2-scroll {
  position: absolute;
  right: 40px;
  bottom: 86px;
  z-index: 3;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: solid 2px rgba(255, 255, 255, 0.4);
}

.hv2-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #F5A623;
  animation: hv2-scroll 1.8s ease-in-out infinite;
}

/* ---------- keyframes ---------- */
@keyframes hv2-kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

@keyframes hv2-grid-drift {
  to { background-position: 64px 64px, 64px 64px; }
}

@keyframes hv2-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes hv2-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
}

@keyframes hv2-rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes hv2-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes hv2-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hv2-marquee {
  to { transform: translateX(-50%); }
}

@keyframes hv2-scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hero-v2 {
    min-height: auto;
    padding: 150px 0 120px;
  }

  .hv2-scroll {
    display: none;
  }
}

@media (max-width: 575px) {
  .hv2-lead {
    font-size: 16px;
  }

  .hv2-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-v2 *,
  .hero-v2 *::before,
  .hero-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* the hero has .text-light, whose link colours override the buttons; pin them */
.hero-v2 .hv2-btn-primary,
.hero-v2 .hv2-btn-primary:hover,
.hero-v2 .hv2-btn-primary:focus {
  color: #0B1D3A !important;
}

.hero-v2 .hv2-btn-ghost {
  color: #ffffff !important;
}
