/* ==========================================================================
   High Reach - "Let's build something unscrollable" CTA Section
   High Reach Signature Interactive CTA Section
   ========================================================================== */

/* Portfolio Section Bottom Clearance to Footer */
.portfolio-one {
  padding-bottom: 110px !important;
}

@media (max-width: 991px) {
  .portfolio-one {
    padding-bottom: 80px !important;
  }
}

@media (max-width: 575px) {
  .portfolio-one {
    padding-bottom: 60px !important;
  }
}

.hr-cta-section {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #040508;
  padding: 105px 0 105px;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   Fluid WebGL Gradient Background (High Reach Signature Fluid Shader)
   ========================================================================== */
.hr-cta-section .hr-fluid-gradient-wrap,
.hr-cta-gradient-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hr-cta-section .hr-fluid-gradient-wrap canvas,
.hr-cta-gradient-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle top and bottom fades matching contact page header for seamless blending */
.hr-cta-gradient-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hr-cta-gradient-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(4, 5, 8, 0) 0%, rgba(4, 5, 8, 0.65) 60%, #040508 100%);
  pointer-events: none;
  z-index: 2;
}

/* Background Aurora Drift Glows in High Reach Logo Gradient Colors (#ffd60a, #a6ec6a, #36c2b0, #0062f3) */
.hr-cta-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hr-cta-aurora__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  will-change: transform;
}

/* Yellow / Gold */
.hr-cta-aurora__blob--1 {
  top: 4%;
  left: 2%;
  width: 52%;
  height: 65%;
  opacity: 0.35;
  background: radial-gradient(circle at 50% 50%, #ffd60a 0%, transparent 70%);
  animation: hr-aurora-drift 24s ease-in-out infinite;
}

/* Lime Green */
.hr-cta-aurora__blob--2 {
  top: 28%;
  left: 28%;
  width: 48%;
  height: 60%;
  opacity: 0.38;
  background: radial-gradient(circle at 50% 50%, #a6ec6a 0%, transparent 70%);
  animation: hr-aurora-drift 28s ease-in-out infinite reverse;
}

/* Cyan / Teal */
.hr-cta-aurora__blob--3 {
  top: 10%;
  right: 18%;
  width: 50%;
  height: 68%;
  opacity: 0.40;
  background: radial-gradient(circle at 50% 50%, #36c2b0 0%, transparent 70%);
  animation: hr-aurora-drift 32s ease-in-out infinite;
}

/* Royal Brand Blue */
.hr-cta-aurora__blob--4 {
  bottom: 2%;
  right: -5%;
  width: 55%;
  height: 74%;
  opacity: 0.44;
  background: radial-gradient(circle at 50% 50%, #0062f3 0%, transparent 70%);
  animation: hr-aurora-drift 30s ease-in-out infinite reverse;
}

.hr-cta-aurora__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 1.5px;
  opacity: 0.65;
  background-image: linear-gradient(90deg, transparent, #ffd60a, #a6ec6a, #36c2b0, #0062f3, transparent);
  background-size: 250% auto;
  animation: hr-gradient-pan 11s linear infinite;
}

@keyframes hr-aurora-drift {
  0% {
    transform: translate(-6%, -4%) scale(1.08) rotate(0deg);
  }
  50% {
    transform: translate(6%, 5%) scale(1.22) rotate(9deg);
  }
  100% {
    transform: translate(-6%, -4%) scale(1.08) rotate(0deg);
  }
}

/* Dual-Tone CSS Radial Dot Grid Matrix in Brand Teal & Blue */
.hr-cta-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(54, 194, 176, 0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 98, 243, 0.45) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  background-position: 0 0, 23px 23px;
  mask-image: radial-gradient(closest-side, transparent 20%, #000000 72%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 20%, #000000 72%);
}

/* Interactive Canvas Dot Grid */
.hr-cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Elliptical Center Dark Vignette */
.hr-cta-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.4) 66%, transparent 85%);
}

/* Content Container */
.hr-cta-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  text-align: center;
  box-sizing: border-box;
}

/* Big Hero Clamp Headline */
.hr-cta-title {
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(1.75rem, 5.0vw, 4.5rem);
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: normal;
  padding-bottom: 0.2em;
  overflow: visible;
}

.hr-cta-title .block {
  display: block;
  overflow: visible;
  padding-bottom: 0.15em;
}

/* Animated Shimmering Gradient Text in High Reach Logo Gradient Colors */
.hr-text-gradient {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(100deg, #ffd60a, #a6ec6a 28%, #36c2b0 58%, #0062f3 82%, #ffd60a);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: hr-gradient-pan 9s linear infinite;
  display: inline-block;
  vertical-align: baseline;
  padding-bottom: 0.22em;
  padding-right: 0.14em;
  margin-bottom: -0.22em;
  margin-right: -0.14em;
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.85));
}

@keyframes hr-gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 250% 50%;
  }
}

/* Subtitle */
.hr-cta-subtitle {
  color: #8a94a6;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  max-width: 580px;
  margin: 36px auto 0 auto;
  font-weight: 400;
}

/* Actions Row */
.hr-cta-actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* Magnetic Wrapper */
.hr-magnetic-wrap {
  display: inline-block;
  will-change: transform;
}

/* 3D Button (High Reach Button3D) */
.Button3D_root {
  --edge: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 42px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none !important;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.Button3D_primary {
  color: #04120c !important;
  background-image: linear-gradient(100deg, #ffd60a, #a6ec6a 28%, #36c2b0 58%, #0062f3 82%, #ffd60a);
  background-size: 220% 100%;
  animation: hr-button-pan 8s linear infinite, hr-button-breathe 4.5s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 var(--edge) 0 #00368a,
    0 calc(var(--edge) + 8px) 24px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(0, 98, 243, 0.4);
}

.Button3D_primary:hover {
  --edge: 2px;
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 var(--edge) 0 #0a2f6b,
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(22, 104, 227, 0.65),
    0 0 140px rgba(16, 212, 142, 0.3);
}

.Button3D_primary:active {
  --edge: 0px;
  transform: translateY(0) scale(0.98);
}

@keyframes hr-button-pan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes hr-button-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(0, 0, 0, 0.25),
      0 var(--edge) 0 #0a2f6b,
      0 calc(var(--edge) + 8px) 24px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(22, 104, 227, 0.35);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0 -1px 0 rgba(0, 0, 0, 0.25),
      0 var(--edge) 0 #0a2f6b,
      0 calc(var(--edge) + 10px) 28px rgba(0, 0, 0, 0.65),
      0 0 70px rgba(22, 104, 227, 0.6),
      0 0 110px rgba(16, 212, 142, 0.3);
  }
}

/* Glass & Sheen Effects */
.Button3D_gloss {
  position: absolute;
  inset: 2px 6% auto 6%;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.Button3D_sheen {
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 2;
}

.Button3D_root:hover .Button3D_sheen {
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Content & Rolling Letters */
.Button3D_content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.Button3D_labelStack {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  line-height: 1.15;
  padding-block: 0.15em;
}

.Button3D_labelRow {
  grid-area: 1 / 1;
  display: flex;
  white-space: pre;
}

.Button3D_labelRowGhost {
  position: absolute;
  inset: 0;
}

.Button3D_letter {
  display: inline-block;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.Button3D_labelRowGhost .Button3D_letter {
  transform: translateY(110%);
}

.Button3D_root:hover .Button3D_labelRow:not(.Button3D_labelRowGhost) .Button3D_letter {
  transform: translateY(-110%);
}

.Button3D_root:hover .Button3D_labelRowGhost .Button3D_letter {
  transform: translateY(0);
}

/* Secondary Action: Call Link */
.hr-cta-call {
  color: #8a94a6;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.hr-cta-phone-link {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hr-cta-phone-link:hover {
  color: #10d48e !important;
  border-color: #10d48e;
}

/* Scroll Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

[data-reveal].is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0px) !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .Button3D_primary,
  .hr-cta-aurora__blob,
  .hr-text-gradient {
    animation: none !important;
  }
}

/* Responsive adjustments matching contact page header sizing */
@media (max-width: 991px) {
  .hr-cta-section {
    min-height: 440px;
    margin-top: 0;
    padding: 85px 0 85px;
  }
}

@media (max-width: 768px) {
  .hr-cta-section {
    min-height: 360px;
    margin-top: 0;
    padding: 65px 0 65px;
  }
  .hr-cta-container {
    padding: 15px 20px 25px;
  }
  .hr-cta-title {
    font-size: clamp(1.45rem, 5.8vw, 2.2rem);
    line-height: 1.15;
    max-width: 100%;
    padding-bottom: 0.2em;
    overflow: visible;
  }
  .hr-cta-actions {
    flex-direction: column;
    gap: 20px;
  }
  .Button3D_root {
    height: 56px;
    padding: 0 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hr-cta-section {
    min-height: 320px;
    padding: 50px 0 50px;
  }
}

