



:root {
  --full-website-paragraph-font-size: clamp(1rem, 1.3vw, 1.18rem);
}

/* Use the CultNerds orange instead of the browser's default blue selection. */
::selection {
  background-color: #f29020;
  color: #000;
  text-shadow: none;
}

::-moz-selection {
  background-color: #f29020;
  color: #000;
  text-shadow: none;
}


/* Font faces are loaded locally through inc/enqueue.php. */

body {
  background-color: #000;
  overflow-x: hidden; /* keep x hidden */
  overflow-y: auto;
}

/* Site-wide default for ordinary text links and every interaction state. */
a,
a:visited,
a:hover,
a:focus,
a:active {
  color: #f29020;
}

/* Reusable pointer-follow depth effect: add this class to any <img>. */
.cn-image-hover-depth {
  transform-origin: center;
}

.cn-image-hover-depth-frame {
  overflow: hidden;
  perspective: 1000px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cn-image-hover-depth {
    transform: scale(1.16);
  }

  .cn-image-hover-depth-frame > .cn-image-hover-depth,
  .cn-image-hover-depth-frame .cn-image-hover-depth {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-image-hover-depth {
    transform: none !important;
  }
}

/* Reusable gradient text. Each class works on its own on any template. */
.cn-text-gradient,
.cn-text-gradient-orange,
.cn-text-gradient-blue,
.cn-text-gradient-orange-white,
.cn-text-gradient-blue-white,
.contact-gradient {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.cn-text-gradient,
.contact-gradient {
  background-image: linear-gradient(90deg, #f29020, #ffbd70 44%, #58a4ff);
}

.cn-text-gradient-orange {
  background-image: linear-gradient(90deg, #f29020, #ffbd70 44%, #f29020);
}

.cn-text-gradient-blue {
  background-image: linear-gradient(90deg, #2f6fd6, #8cc0ff 44%, #58a4ff);
}

/* Reusable two-colour text gradients for any heading, paragraph or span. */
.cn-text-gradient-orange-white {
  background-image: linear-gradient(90deg, #f29020 0%, #f8f4f0 100%);
}

.cn-text-gradient-blue-white {
  background-image: linear-gradient(90deg, #58a4ff 0%, #f8f4f0 100%);
}

.cn-textfx-animate {
  perspective: 1000px;
}

.cn-textfx-animate-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Base styling for the amoeba gradients */
.amoeba-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

/* First gradient - Orange, with organic movement */
.amoeba-orange {
  width: 250px;
  height: 350px;
  background: radial-gradient(circle, #f29020, transparent);
  top: 6%;
  left: 9%;
  animation-delay: 0s;
}

/* Second gradient - Blue, with organic movement */
.amoeba-blue {
  width: 250px;
  height: 350px;
  background: radial-gradient(circle, #58a4ff, transparent);
  top: 50%;
  left: 80%;
  animation-delay: 5s;
}

.top-blue {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #124b90, transparent);
  top: 0%;
  animation-delay: 5s;
  right: 0%;
}

.top-orange {
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, #f2902083, transparent);
  top: 6%;
  animation-delay: 5s;
  right: -4%;
}
/* Keyframes for amoeba-like organic movement */
@keyframes amoebaMove {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 55% 45%;
  }
  25% {
    transform: translate(30px, -30px) scale(1.2);
    border-radius: 60% 40% 50% 70%;
  }
  50% {
    transform: translate(-40px, 20px) scale(1.1);
    border-radius: 55% 45% 65% 35%;
  }
  75% {
    transform: translate(20px, -20px) scale(1.3);
    border-radius: 50% 70% 40% 60%;
  }
  100% {
    transform: translate(-20px, 30px) scale(1);
    border-radius: 60% 50% 70% 40%;
  }
}

.cn-hero {
  height: 150vh;
  overflow: hidden;
}

#cn-hero-logo-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, var(--hero-shift-y, -50%));
  will-change: transform;
  z-index: -1;
}

/* do all scaling here */
.cn-hero-scale {
  transform: translateZ(0) scale(2);
  transform-origin: var(--pivot-x) var(--pivot-y);
  will-change: transform;
  backface-visibility: hidden;
}

/* Match the enhanced hero before JavaScript loads, so its first paint is final. */
.front-page .cn-hero-scale {
  transform: none;
}

/* 
@media (max-width: 420px) {
  :root {
    --pivot-x: 48.6%; 
  }
} */

/* size the logo safely */
.cn-hero-logo {
  width: clamp(140px, 34vw, 560px);
  display: block;
}

.cn-hero-top {
  color: whitesmoke;
  font-size: 30px;
  left: 22%;
  position: absolute;
  top: 22%;
  z-index: -10;
}

.cn-hero-bottom {
  color: whitesmoke;
  font-size: 20px;
  position: absolute;
  top: 57%;
  left: 53%;
  z-index: -20;
}

.cn-reveal {
  width: 100%;
  margin-bottom: 100px;
}
.cn-reveal-text {
  padding: clamp(24px, 10vw, 100px);
}
.cn-reveal-lines {
  max-width: 1500px;
  margin: 0 auto;
  line-height: 1.2;
}
.cn-reveal-line {
  display: block;
  font-size: clamp(28px, 10vw, 70px);
  margin-left: clamp(0px, 5vw, 50px);
  background: linear-gradient(
    to right,
    rgb(255, 255, 255) 50%,
    rgb(37, 37, 37) 50%
  );
  background-size: 200% 100%;
  background-position-x: 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Keep gradient words on the same dark-to-colour scroll reveal as their line. */
.cn-reveal-line.cn-text-gradient-orange,
.cn-reveal-line .cn-text-gradient-orange {
  background-image: linear-gradient(
    to right,
    #f29020 0%,
    #ffbd70 22%,
    #f29020 50%,
    rgb(37, 37, 37) 50%,
    rgb(37, 37, 37) 100%
  );
  background-size: 200% 100%;
  background-position-x: 100%;
}

.cn-reveal-line.cn-text-gradient-blue,
.cn-reveal-line .cn-text-gradient-blue {
  background-image: linear-gradient(
    to right,
    #2f6fd6 0%,
    #8cc0ff 22%,
    #58a4ff 50%,
    rgb(37, 37, 37) 50%,
    rgb(37, 37, 37) 100%
  );
  background-size: 200% 100%;
  background-position-x: 100%;
}
.cn-reveal-line + .cn-reveal-line {
  margin-top: 0.15em;
}
.cn-reveal-gap {
  margin-top: 0.6em;
} /* extra space between sentences */

@media (max-width: 768px) {
  .cn-reveal-line {
    margin-left: 0;
  }
}

/* show desktop by default */
.reveal-mobile {
  display: none;
}

/* mobile layout */
@media (max-width: 768px) {
  .reveal-desktop {
    display: none;
  }
  .reveal-mobile {
    display: block;
  }

  /* smaller type for mobile lines */
  .reveal-mobile .cn-reveal-line {
    font-size: clamp(18px, 12vw, 40px);
    margin-left: 0;
  }

  .reveal-mobile .cn-reveal-gap {
    margin-top: 0.35em;
  }
}

.horizontal-container {
  margin: auto;
  display: flex;
  justify-content: center;
}

#horizontal {
  min-height: 70vh;
  align-items: center;
  padding: 50px 0;
  overflow-x: hidden;
  overflow-y: hidden;
  /* Hide overflow on the outer container */
  transition: opacity 0.5s ease; /* Smooth transition for opacity */
  pointer-events: auto;
}

.horizontal__content {
  display: flex;
  gap: 80px;
  /* Space between cards */
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and old Edge */
  scrollbar-width: none; /* Firefox */
  /* Enable horizontal scrolling */
  padding-bottom: 20px;
  /* Avoid scrollbar overlap */
  width: max-content;
  /* Ensures content width based on children */
  padding-left: 150px;
  align-items: center;
}

.horizontal__content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.horizontal__item {
  width: 350px;
  /* Fixed width for each card */
  height: 400px;
  /* Fixed height for each card */
  flex-shrink: 0;
  /* Prevent cards from shrinking */
  display: flex;
  color: #fff;
  border-radius: 10px;
  align-items: center;
  cursor: auto;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  #horizontal .card_feature.has-custom-cursor {
    cursor: none;
  }
}

@media (min-width: 1440px) {
  #horizontal {
    padding: 100px 0; /* Example width */
  }
  .horizontal__item {
    width: 400px;
    /* Fixed width for each card */
    height: 500px;
  }
}

.card_1 {
  display: flex;
  align-items: center;
}

.horizontal_txt {
  font-size: 70px;
  /*font-size: clamp(32px, 3.8vw, 48px);*/
  margin: 10px;
}

.highlight {
  color: #f29120;
  /* Apply the specific color to 'Nerds' */
}

.card_2 {
  background: url("../images/card1.jpg");
  background-size: cover;
  align-items: end;
}

.card_3 {
  background: url("../images/card3.jpg");
  background-size: cover;
  align-items: end;
}

.card_4 {
  background: url("../images/card4.jpg");
  background-size: cover;
  align-items: end;
}

.card_5 {
  background: url("../images/card5.jpg");
  background-size: cover;
  align-items: end;
}

/* Real images keep responsive sources and native lazy loading on feature cards. */
.card_feature {
  /* Anchor the image even when mobile clears the card's GSAP transform. */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #1a1a1a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: end;
}

.card_feature .cn-feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.social-link svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -.125em;
}

.cn-morph-video-mobile video,
.journey-video-mobile {
  aspect-ratio: 16 / 9;
}

.card_txt {
  padding: 14px 30px;
  font-size: 25px;
  color: #000;
  background: rgba(255, 255, 255, 0.3);
  /* Glossy background effect */
  backdrop-filter: blur(10px);
  /* Adds a blur effect for more gloss */
  border-radius: 15px;
  /* Rounded corners */
  margin: 20px;
  /* Space from edges of the card */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for depth */
}

.horizontal__num {
  font-size: 3rem;
  /* Adjust size based on your design */
  font-weight: 900;
  font-stretch: condensed;
  color: #ff98a2;
}

.slider {
  display: flex;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 2.5rem;
}

.item {
  animation: animate 30s linear infinite;
}

.slider:hover .item {
  animation-play-state: paused;
}

@keyframes animate {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-1800px, 0, 0);
  }
}

.slider-container {
  text-align: center;
  margin-bottom: 100px;
}

.slider-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.blue-text {
  color: #124b90;
}

.orange-text {
  color: #f29120;
}

.cn-relative {
  position: relative;
}

.cn-overflow-hidden {
  overflow: hidden;
}

.cn-diagonal-sticky {
  position: sticky;
  display: flex;
  align-items: top;
  justify-content: top;
}

/* .top-0 {
  top: 0;
} */

/* .h-screen {
  height: 100vh;
} */

.d-card {
  position: absolute;
  width: 15rem;
  height: 16rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1440px) {
  .d-card {
    width: 19rem;
    height: 25rem;
  }
  .card-text {
    font-size: 3rem;
  }
}

.card-number {
  font-size: 3rem;
  font-weight: bold;
  color: #124b90;
  /* Pink */
}

.card-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffffa3;
}

.text-container {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.small-text {
  font-size: 2rem;
  /* Smaller text for "WHAT WE DO?" */
  color: #fff;
  display: block;
}

.main-text {
  font-size: 2rem;
  /* Main text size */
  color: #fff;
}

.highlight {
  color: orange;
  /* Orange color for "new challenges" */
  font-weight: bold;
}

.a-section {
  margin: 100px 0;
}

/* The container that creates the "window" */
.a-section-marquee-box {
  display: flex; /* Use flex to align the track */
  overflow: hidden;
  height: clamp(60px, 15vw, 120px);
}

/* The moving track */
.a-section-marquee-track {
  display: flex;
  flex-shrink: 0; /* CRITICAL: Prevents the track from shrinking */
  animation: a-marquee 30s linear infinite;
  will-change: transform;
  pointer-events: none;
}

/* The individual text blocks */
.marquee-item {
  flex-shrink: 0; /* CRITICAL: Prevents text blocks from shrinking */
  white-space: nowrap;
  padding: 0 1.1rem; /* Adds space between the repeating text */

  /* Font styles */
  /*font-weight: 100;*/
  font-size: clamp(20px, 10vw, 90px);
  color: #fff;
  text-transform: uppercase;
}

/* The animation math now works perfectly */
@keyframes a-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.accolades-section {
  padding: 50px 0;
}

.accolades-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.accolades-section h1 {
  color: #fff;
  text-align: center;
  font-size: 2rem;
}

.accolades-section h1 span {
  color: #124b90;
}

.accolades-card {
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(242, 136, 32, 0.3),
    0 13px 30px -5px rgba(242, 119, 32, -1.7),
    0 -13px 25px -5px rgba(242, 141, 22, 0.218);
  padding: 40px;
  text-align: center;
  max-width: 450px;
  margin: 10px;
  transition: all 0.3s ease;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #0c0d0e;
}

.accolades-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #124b90, #2195f38d, #64b4f675);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.accolades-card:hover {
  transform: scale(1.05);
  border-color: transparent;
}

.accolades-card:hover::before {
  opacity: 0.9;
}

.accolades-img {
  position: relative;
  z-index: 2;
}

.accolades-img img {
  width: 100%;
  height: auto;
  max-width: 150px;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.accolades-card:hover .accolades-img img {
  filter: brightness(0) invert(1);
}

.accolades-text {
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

.accolades-text p {
  font-size: 14px;
  color: #fff;
  transition: color 0.3s ease;
}

.accolades-text h2 {
  color: #fff;
  transition: color 0.3s ease;
}

.accolades-card:hover .accolades-text p,
.accolades-card:hover .accolades-text h2 {
  color: white;
}
.testimonials-section {
  color: #fff;
  padding: 4rem 2rem;
  margin: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.section-title span {
  color: #124b90;
}

.testimonials-container {
  max-width: 100vw;
  margin: 0 0;
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 350px;
  min-height: 400px; /* Set minimum height for consistency */
  margin: 0 1rem;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: animate 50s linear infinite;

  /* Make card a flex container for better organization */
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .testimonials-track {
    margin: 0 2rem;
  }
}

.company-logo-parent {
  height: 80px; /* Fixed height for logo container */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.company-logo {
  max-width: 120px;
  max-height: 60px; /* Control logo height */
  width: auto;
  height: auto;
  object-fit: contain; /* Maintain aspect ratio */
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  flex-grow: 1;
}

.author-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stars {
  color: #f29120;
  font-size: 0.9rem; /* Reduced font size for better fit */
  line-height: 1.4;
}

.testimonial-text {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: auto; /* Push text to bottom if card has extra space */
  font-size: 0.95rem;

  /* Add text ellipsis for very long content */
  display: -webkit-box;
  --webkit-line-clamp: 6; /* Show maximum 6 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-text a {
  text-decoration: none;
  font-weight: bold;
  color: #a0a0a0;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 1rem;
  }
  .testimonial-card {
    max-width: 100%;
    min-height: 350px; /* Slightly shorter on mobile */
    padding: 1rem;
  }

  .company-logo-parent {
    height: 60px; /* Smaller logo area on mobile */
  }

  .company-logo {
    max-height: 50px;
  }

  .testimonial-text {
    --webkit-line-clamp: 5; /* Show less lines on mobile */
    font-size: 13px;
  }
  .card-text {
    font-size: 2.5rem;
  }
}

.contact-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Adjust the spacing between text and button */
  justify-content: space-around;
  padding: 20px 10px;
  margin: 150px 0;
  border-radius: 500px;
}

/* Text Content Styling */
.contact-text-content h2 {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

.contact-text-content p {
  color: #fff;
  margin-top: 1rem;
  max-width: 90vh;
  line-height: 1.6;
  font-size: 1.3rem;
}
/* Contact Button Styling */
.contact-button {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(242, 145, 32, 0.5),
    0 13px 30px -5px rgba(242, 145, 32, 0.3),
    0 -13px 25px -5px rgba(242, 144, 32, 0.218);
}

.contact-button span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  transition: transform 0.5s ease;
}

.contact-button .arrow {
  margin-top: 0.3rem;
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

/* Hover effect for arrow */
.contact-button:hover .arrow {
  animation: slideArrow 1s ease;
}

/* Border drawing animation */
.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #f29120;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1s ease;
}

.contact-button:hover::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes slideArrow {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50px);
    opacity: 0;
  }
  51% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.cn-footer {
  height: 90vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#services {
  background-image: url("../images/Cult.svg");
  position: relative; /* Make sure the section is positioned relatively for absolute children */
}

.content {
  position: absolute;
  bottom: 40px; /* Adjust to your preference */
  left: 20px; /* Adjust to your preference */
  right: 20px; /* Adjust to your preference */
  display: flex;
  justify-content: space-between;
  color: white; /* Change to your preferred color */
}

.socials {
  display: flex;
  gap: 15px; /* Space between social links */
}

.social-link {
  color: white; /* Change to your preferred color */
  font-size: 1.5rem; /* Adjust icon size */
  transition: transform 0.3s ease; /* Smooth scaling on hover */
}

.social-link:hover {
  transform: scale(1.2); /* Scale icon on hover for a nice effect */
}

/* Optionally, you can add some padding for larger clickable areas */
.social-link {
  padding: 10px;
}

.policies {
  display: flex;
  gap: 10px;
  margin-right: 20px;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .policies {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

.policies a {
  text-decoration: none;
  color: #fff;
}

.copyright {
  position: absolute;
  bottom: 25vh; /* Adjust based on spacing preferences */
  left: 50%;
  transform: translateX(-50%); /* Center the copyright text */
  color: white; /* Change to your preferred color */
  font-size: 18px; /* Adjust font size as needed */
  text-align: center;
}
.site-footer .copyright a,
.site-footer .copyright a:visited,
.site-footer .copyright a:hover,
.site-footer .copyright a:focus,
.site-footer .copyright a:active,
.site-footer a[x-apple-data-detectors] {
  /* Cover unvisited links and Apple's automatically detected links too. */
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  #cn-hero-logo-wrap {
    display: block;
    color: #000;
    text-align: center;
    position: fixed;
    top: 50%; /* Center vertically */
    left: 30%; /* Center horizontally */
    transform-origin: 49.55% 48%; /* Use center for scaling origin */
  }

  .cn-hero-top {
    color: whitesmoke;
    font-size: 26px;
    left: 9%;
    position: absolute;
    top: 38%;
  }

  .cn-hero-bottom {
    color: whitesmoke;
    font-size: 18px;
    position: absolute;
    top: 57%;
    left: 36%;
  }

  .cn-hero-logo {
    width: 25%;
    z-index: -1;
  }

  .cn-hero {
    height: 200vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  #horizontal {
    padding: 0 !important;
  }

  .horizontal__content {
    padding-left: 50px; /* Reduce padding for tablets */
    gap: 40px; /* Reduce gap between cards */
  }

  .horizontal__item {
    width: 300px; /* Smaller width for tablet devices */
    height: 400px; /* Smaller height for tablet devices */
  }

  .horizontal_txt {
    font-size: 60px; /* Smaller text size for tablet devices */
  }

  .card_txt {
    font-size: 20px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 2.5rem; /* Adjust size for tablet */
  }

  .slider {
    padding: 1.5rem;
  }

  .item img {
    max-width: 120px;
    height: 50px;
    padding: 0 20px;
  }

  .slider-title {
    font-size: 2.5rem;
  }

  @keyframes animate {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-1400px, 0, 0);
    }
  }

  .contact-section {
    flex-direction: column;
    text-align: center;
  }

  .cn-footer {
    background-size: contain;
  }

  .content {
    flex-direction: row;
    align-items: center;
    text-align: center;
    bottom: 8%;
  }

  .socials {
    gap: 10px;
  }

  .social-link {
    font-size: 1.4rem;
    padding: 8px;
  }

  .policies {
    margin-top: 15px;
    gap: 15px;
  }

  .policies a {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.75rem;
    bottom: 5px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #cn-hero-logo-wrap {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -10%) scale(10);
    transform-origin: 48.5% 44%;
    text-align: center;
    z-index: -1;
    will-change: transform;
  }

  /* Logo sizing uses clamp for responsive control */
  .cn-hero-logo {
    width: var(--logo-size, 320px);
    height: auto;
  }

  .cn-hero {
    height: 110vh;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  .horizontal__content {
    padding-left: 20px; /* Further reduce padding for mobile */
    gap: 20px; /* Further reduce gap between cards */
  }

  .horizontal__item {
    width: 250px; /* Smaller width for mobile devices */
    height: 350px; /* Smaller height for mobile devices */
  }

  .horizontal_txt {
    font-size: 50px; /* Smaller text size for mobile devices */
  }

  .card_txt {
    font-size: 18px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 2rem; /* Adjust size for mobile */
  }

  .slider {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    gap: 1rem;
  }

  .item {
    animation: none; /* Disable animation on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .item img {
    max-width: 100px;
    height: 40px;
    padding: 0;
  }

  .slider-title {
    font-size: 2.5rem;
  }

  .marquee-text {
    font-size: 4em; /* Adjust font size for smaller screens */
    padding: 0 2px; /* Reduce padding on mobile */
  }

  .contact-section {
    flex-direction: column; /* Stack items vertically on smaller screens */
    align-items: center; /* Center items */
    text-align: center; /* Center text for better alignment */
  }

  .contact-text-content h2 {
    font-size: 2.5rem; /* Reduced font size for mobile */
  }

  .contact-text-content p {
    font-size: 1rem; /* Reduced font size for mobile */
  }

  .contact-button {
    width: 120px; /* Adjust button size for mobile */
    height: 120px;
  }
  .cn-footer {
    height: 80vh;
    background-size: contain;
  }

  .content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0px;
  }

  .socials {
    position: ABSOLUTE;
    bottom: 30px;
    left: -25px;
    gap: 3px;
  }

  .social-link {
    font-size: 1.2rem;
    padding: 6px;
  }

  .policies {
    position: absolute;
    bottom: 40px;
    right: 15px;
    gap: 6px;
    display: flex;
  }

  .policies a {
    font-size: 0.85rem;
  }

  .copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-align: center;
    padding: 0 10px;
    width: 300px;
  }
}

@media (max-width: 480px) {
  .horizontal__content {
    flex-direction: column; /* Stack items vertically on small screens */
    padding-left: 0; /* Remove left padding */
    align-items: center; /* Center items */
  }

  .horizontal__item {
    width: 90%; /* Make the item width responsive */
    height: 300px; /* Adjust height for content */
  }

  .card_1 {
    width: 90%; /* Make the item width responsive */
    height: 100px; /* Adjust height for content */
  }

  .horizontal_txt {
    font-size: 40px;
    margin-top: 30px;
  }

  .card_txt {
    font-size: 16px; /* Smaller text for card */
  }

  .horizontal__num {
    font-size: 1.5rem; /* Adjust size for small mobile */
  }
  .slider {
    padding: 0.5rem;
    grid-template-columns: repeat(3, 1fr); /* Two items per row */
    gap: 2.5rem;
  }

  .item img {
    max-width: 80px;
    height: 30px;
  }

  .slider-title {
    font-size: 2.5rem;
  }
  .cn-diagonal-sticky {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    transform: translate(-165px, 10px);
  }

  .d-card {
    position: absolute;
    width: 18rem;
    height: 22rem;
    background-color: rgb(27 53 102);
    box-shadow: 0 10px 15px rgb(0 0 0);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .a-section-marquee-wrapper {
    display: flex;
    animation: a-text-scroll 5s linear infinite;
    margin-top: 0px;
    /* No padding needed anymore */
  }

  .marquee-text {
    font-size: 2.5em; /* Further reduce font size for very small screens */
    padding: 0 1px; /* Minimal padding on very small screens */
  }

  .contact-text-content h2 {
    font-size: 2rem; /* Further reduce font size for very small screens */
  }

  .contact-text-content p {
    font-size: 0.9rem; /* Further reduce font size for very small screens */
  }

  .contact-button {
    width: 100px; /* Further adjust button size */
    height: 100px;
  }
}

:root {
  --hero-gap: clamp(60px, 10vw, 180px);
}

.cn-hero-top,
.cn-hero-bottom {
  position: fixed !important;
  left: 50vw !important;
  transform: translateX(-75%) !important;
  margin: 0 !important;
  text-align: center !important;
  z-index: 0 !important;
}

.cn-hero-top {
  top: calc(55vh - var(--hero-gap)) !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
}

.cn-hero-bottom {
  top: calc(50vh + var(--hero-gap)) !important;
  font-size: clamp(12px, 1.8vw, 20px) !important;
  max-width: min(90vw, 800px) !important;
}

/* Hold to pause */
.testimonials-container.is-hold .testimonial-card {
  animation-play-state: paused;
  cursor: grabbing;
}
.testimonials-container.is-hold {
  user-select: none;
}

html {
  overflow-anchor: none;
}

#diagonalcontainer {
  height: auto;
}
.diag-pin {
  min-height: 120vh;
  position: relative;
}

@media (max-width: 768px) {
  .diag-pin {
    min-height: 100vh;
  }
  /* let the section grow with its content */
  #services.cn-footer {
    height: auto;
    min-height: 35vh;
    background-image: none;
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    padding: 40px 16px 0px;
  }

  /* take content out of absolute positioning */
  #services .content {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
  }

  /* normal flow for socials and policies */
  #services .socials {
    position: static;
    gap: 12px;
  }
  #services .social-link {
    font-size: 1.2rem;
    padding: 6px;
  }

  #services .policies {
    position: static;
    margin: 8px 0 0;
    gap: 12px;
  }
  #services .policies a {
    font-size: 0.9rem;
  }

  /* copyright at the end of the section */
  #services .copyright {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 24px;
    width: 100%;
    font-size: 0.9rem;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .amoeba-gradient {
    filter: blur(30px);
  }
  .cn-footer {
    background-attachment: scroll;
  }
}

.cn-feature-cards { display: contents; }
.cn-feature-index,
.cn-feature-progress { display: none; }

/* Mobile feature story. The regular list stays readable without animation. */
@media (max-width: 768px) {
  #horizontal {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none;
    min-height: 0;
  }
  .custom-cursor { display: none; }

  #horizontal .horizontal-container {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 36px 16px 40px;
  }
  #horizontal .horizontal__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 0;
    overflow: visible;
  }
  #horizontal .card_1,
  #horizontal .card_1 .horizontal__item {
    width: 100%;
    height: auto;
  }
  #horizontal .horizontal_txt {
    margin: 0;
    font-size: clamp(34px, 8.8vw, 52px);
    line-height: 1.04;
    letter-spacing: -.045em;
    width: 100%;
    text-align: center;
  }
  #horizontal .cn-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
  }
  #horizontal .card_feature {
    width: 100%;
    height: clamp(320px, 58svh, 540px);
    min-width: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-sizing: border-box;
    cursor: auto;
    transform-origin: 50% 100%;
  }
  #horizontal .card_feature::before,
  #horizontal .card_feature::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  #horizontal .card_feature::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 35%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, .88));
    z-index: 0;
  }
  #horizontal .card_feature::after {
    background: #000;
    opacity: var(--cn-card-shade, 0);
    z-index: 1;
  }
  #horizontal .cn-feature-index {
    display: grid;
    place-items: center;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    z-index: 2;
  }
  #horizontal .card_txt {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 28px 24px;
    max-width: 18ch;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
    color: #fff;
    font-size: clamp(24px, 6.4vw, 34px);
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  /* Only enabled by JS when there is room for a full card and motion is OK. */
  #horizontal.cn-mobile-deck { overflow: visible; }
  #horizontal.cn-mobile-deck .horizontal-container {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 28px 12px 100px;
    transition: none !important;
  }
  #horizontal.cn-mobile-deck .horizontal__content { height: 100%; gap: 16px; }
  .front-page #horizontal.cn-mobile-deck { padding: 0; min-height: 0; }
  #horizontal.cn-mobile-deck .card_1 { flex: 0 0 auto; padding: 0 8px; box-sizing: border-box; }
  #horizontal.cn-mobile-deck .cn-feature-cards {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    flex: 1;
    min-height: 0;
    padding: 12px 8px 4px;
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
  }
  #horizontal.cn-mobile-deck .card_feature { grid-area: 1 / 1; height: 100%; }
  #horizontal.cn-mobile-deck .cn-feature-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .03em;
  }
  #horizontal .cn-feature-hint { white-space: nowrap; }
  #horizontal .cn-feature-hint > span { margin-left: 4px; color: #f29120; }
  #horizontal .cn-feature-progress__track { flex: 1; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .2); }
  #horizontal .cn-feature-progress__fill { display: block; width: 100%; height: 100%; background: #f29120; transform-origin: left; }
  #horizontal .cn-feature-progress__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
  #horizontal .cn-feature-current { color: #fff; }
}

@media (max-width: 768px) {
  .d-card {
    backdrop-filter: none;
  }
  .card_txt {
    backdrop-filter: none;
  }
  #horizontal {
    will-change: auto;
  }
}

@media (max-width: 768px) {
  .amoeba-gradient {
    display: none !important;
  }
}

/* clients row becomes one moving track */
.slider {
  overflow: hidden;
  padding: 2.5rem;
}
.slider .item {
  flex: 0 0 auto;
  animation: none;
  display: flex;
  align-items: center;
  height: 60px;
  margin-right: 30px;
}

.slider .item > a {
  display: block;
  width: 160px; /* logo box width */
  height: 60px; /* same as row */
}

.slider .item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep aspect, no crop */
  padding: 0; /* move spacing to .item */
  max-width: none;
}
.slider-track {
  display: flex;
  gap: 0;
  will-change: transform;
}

/* The shortcode keeps four marquee rows on desktop and uses six on mobile. */
.cn-clients-shortcode .cn-clients-rows--mobile {
  display: none;
}

/* testimonials track moves as one */
.testimonials-track {
  display: flex;
  will-change: transform;
  transition: none;
}
.testimonial-card {
  animation: none;
  position: relative;
  overflow: hidden;

  /* You can add a default transition for a smoother mouse-leave animation */
  transition: box-shadow 0.5s ease-out;
}

.glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hidden by default */
  pointer-events: none; /* Make sure it doesn't interfere with mouse events */
}

/* mobile spacing comes from item margin, not flex gap */
@media (max-width: 768px) {
  .cn-clients-shortcode .cn-clients-rows--desktop {
    display: none;
  }
  .cn-clients-shortcode .cn-clients-rows--mobile {
    display: block;
  }
  .slider {
    overflow: hidden;
    padding: 2.5rem;
  }
  .slider-track {
    display: flex;
    gap: 0;
    will-change: transform;
  }
  .slider .item {
    flex: 0 0 auto;
    margin-right: 30px;
    animation: none;
    height: 40px;
  }
  .slider .item > a {
    width: 120px;
    height: 40px;
  }
  .slider .item[data-break] {
    margin-right: 0;
  } /* no double gap at the seam */
  .slider-container {
    margin-bottom: 100px;
  }

  .testimonials-container {
    position: relative;
  }

  .testimonials-track {
    display: flex;
    transition: transform 0.3s ease;
    animation: none !important; /* Disable auto-scroll on mobile */
  }

  .testimonial-card {
    flex: 0 0 100%;
    margin-right: 0;
    animation: none !important;
  }

  .slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #124b90;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }

  .arrow-btn:hover {
    background: #f29120;
  }

  .arrow-btn:disabled {
    background: #333;
    opacity: 0.5;
    cursor: not-allowed;
  }
  .small-text,
  .slider-title,
  .section-title {
    text-transform: uppercase;
    font-size: 1.5rem;
  }
  .main-text {
    font-size: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .small-text,
  .slider-title,
  .section-title {
    text-transform: uppercase;
    font-size: 2.5rem;
  }
  .main-text {
    font-size: 2.5rem;
  }
}

/* Hide arrows on desktop */
@media (min-width: 769px) {
  .slider-arrows {
    display: none;
  }
  #horizontal {
    display: flex;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* === 1. Use Inter for Headings & Bold Text === */
/* This rule targets headings and other large text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
.cn-hero-top,
.cn-hero-bottom,
.cn-reveal-line,
.horizontal_txt,
.card-text,
.slider-title,
.small-text,
.main-text,
.accolades-section h1,
.section-title,
.author-name,
.contact-text-content h2,
.cn-brand strong {
  font-family: "Inter", "DM Sans", sans-serif;
  font-optical-sizing: auto;
}

@media (max-width: 768px) {
  .testimonials-container {
    overflow: hidden;
    padding: 0;
  }
  .testimonials-track {
    gap: 0;
    will-change: transform;
  }
  .testimonial-card {
    margin: 0;
    flex: 0 0 100%;
    max-width: 100%;
    transform: translate(-15px);
  }
  .testimonial-card img {
    max-width: 100%;
    height: auto;
  }

  /* Separate homepage slides and keep each card inside the section gutters.
     The carousel measures offsetLeft, so it also accounts for this gap. */
  .front-page .testimonials-track, .page-template-what-we-do-template .testimonials-track {
    gap: 24px;
  }

  .front-page .testimonial-card, .page-template-what-we-do-template .testimonials-track {
    box-sizing: border-box;
    transform: none;
  }
}

/* Shared glass menu: nine text tiles on desktop, a single list on phones. */
.cn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
  z-index: 9999998;
}

.cn-menu,
.cn-menu * {
  box-sizing: border-box;
}

.cn-menu {
  position: fixed;
  left: 50%;
  bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 18px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(1000px, calc(100vw - 64px));
  max-height: calc(100svh - 156px - env(safe-area-inset-bottom, 0px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0 0, rgba(242, 144, 32, .10), transparent 54%),
    radial-gradient(ellipse at 100% 100%, rgba(88, 164, 255, .13), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 55%),
    rgba(20, 22, 26, .92);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  color: #f8f4f0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
  z-index: 99999999;
}

html.cn-menu-open .cn-menu,
html.cn-menu-open .cn-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

html.cn-menu-open .cn-menu {
  transform: translate(-50%, 0);
}

html.cn-menu-open,
html.cn-menu-open body,
html.cn-home-scroll.cn-menu-open,
html.cn-home-scroll.cn-menu-open body {
  overflow: hidden !important;
}

/* Consent actions keep their existing position above the site menu. */
body #cookie-notice {
  z-index: 999999999;
}

.cn-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 24px;
  padding: 0 4px;
}

.cn-menu-heading {
  flex: 1;
  min-width: 0;
}

.cn-menu-intro {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.cn-menu-mascot {
  width: 64px;
  pointer-events: none;
}

.cn-menu-mascot-svg {
  display: block;
  width: 100%;
  height: auto;
}

.cn-menu-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 244, 240, .5);
  font: 500 10px/1.3 "Inter", "DM Sans", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cn-menu-heading h2 {
  margin: 0;
  color: #f8f4f0;
  font: 500 clamp(24px, 2.3vw, 32px)/1.15 "Inter", "DM Sans", sans-serif;
  letter-spacing: -.04em;
}

.cn-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #f8f4f0;
  font: 400 13px/1 "Inter", "DM Sans", sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.cn-menu-close span {
  font-size: 23px;
  line-height: 1;
}

.cn-menu-close:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1);
}

.cn-menu .cn-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(88px, 13svh, 124px);
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  margin: 0;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.cn-list::-webkit-scrollbar { width: 5px; }
.cn-list::-webkit-scrollbar-track { background: transparent; }
.cn-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 999px; }

.cn-menu .cn-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 22px rgba(0, 0, 0, .12);
  color: #f8f4f0;
  -webkit-text-fill-color: currentColor;
  font: 500 clamp(20px, 1.8vw, 25px)/1.3 "Inter", "DM Sans", sans-serif;
  letter-spacing: -.025em;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.cn-menu-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .1) 49%, transparent 72%);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .25s ease, transform .5s ease;
  pointer-events: none;
}

.cn-menu .cn-menu-link[aria-current="page"] {
  border-color: rgba(242, 144, 32, .42);
  background: linear-gradient(145deg, rgba(242, 144, 32, .13), rgba(255, 255, 255, .025));
}

@media (hover: hover) {
  .cn-menu .cn-menu-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .36);
    background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  }
  .cn-menu-link:hover::before { opacity: 1; transform: translateX(40%); }
}

.cn-menu .cn-menu-link:focus-visible,
.cn-menu-close:focus-visible {
  outline: 2px solid #f29020;
  outline-offset: 2px;
}

.cn-bb-plus i { transition: transform .24s ease; }
.cn-menu-open .cn-bb-plus .cn-h { transform: translateY(-50%) rotate(45deg); }
.cn-menu-open .cn-bb-plus .cn-v { transform: translateY(-50%) rotate(135deg); }

@media (min-width: 769px) and (max-height: 600px) {
  .cn-menu { gap: 16px; padding: 20px; }
  .cn-menu-heading h2 { font-size: 24px; }
  .cn-menu .cn-list { grid-auto-rows: 68px; gap: 10px; }
  .cn-menu .cn-menu-link { font-size: 20px; }
}

@media (max-width: 768px) {
  .cn-menu {
    bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 32px);
    max-height: calc(100svh - 142px - env(safe-area-inset-bottom, 0px));
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
  }
  .cn-menu-head { gap: 12px; }
  .cn-menu-mascot { width: 40px; }
  .cn-menu-heading h2 { font-size: clamp(21px, 5.5vw, 26px); }
  .cn-menu-eyebrow { font-size: 9px; letter-spacing: .14em; }
  .cn-menu-close { min-height: 38px; padding: 7px 11px; font-size: 12px; gap: 8px; }
  .cn-menu .cn-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 52px; gap: 8px; }
  .cn-menu .cn-menu-link { padding: 12px 16px; border-radius: 12px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-menu, .cn-overlay, .cn-menu .cn-menu-link, .cn-menu-link::before, .cn-bb-plus i { transition: none; }
  .cn-menu .cn-menu-link:hover { transform: none; }
}

.cn-cta a {
  color: #111;
  background: #f1f1f1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.cn-aside {
  position: fixed;
  right: 28px;
  top: 28px;
  text-align: right;
  color: #333;
}
.cn-aside small {
  display: block;
  opacity: 0.7;
}

/* bottom bar */
.cn-bottombar {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 40vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 40px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  will-change: transform, opacity;
  border: 1px solid;
  transform: none;
  display: flex;
  justify-content: space-between;
  z-index: 9999999;
}

.cn-bottombar-containers {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cn-bb-text {
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* chip */
.cn-bb-chip {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 600;
}
.cn-bb-chip-text {
  font-size: 18px;
  line-height: 1;
}
.cn-bb-plus {
  position: relative;
  width: 18px;
  height: 18px;
}
.cn-bb-plus i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  border-radius: 2px;
}
.cn-bb-plus i.cn-v {
  transform: translateY(-50%) rotate(90deg);
}

:root {
  --bb-row-h: 28px;
} /* change this to tune height */

.cn-bb-icon-container,
.cn-bb-text-container {
  height: var(--bb-row-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-bb-icon-container {
  width: 22px;
  flex-shrink: 0;
  font-size: 16px;
}
.cn-bb-text-container {
  margin-left: 14px;
  flex: 1;
  white-space: nowrap;
}

.cn-bb-icons,
.cn-bb-texts {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.cn-bb-icon,
.cn-bb-text {
  height: var(--bb-row-h);
  line-height: var(--bb-row-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* optional nudge down a bit */
:root {
  --bb-nudge: 0px;
}
.cn-bb-icons .cn-bb-icon,
.cn-bb-texts .cn-bb-text {
  transform: translateY(var(--bb-nudge));
}

/* mobile tweak */
@media (max-width: 460px) {
  :root {
    --bb-row-h: 24px;
  }
  .cn-bb-icon-container {
    width: 20px;
  }
  .cn-bb-text {
    font-size: 14px;
  }
  .cn-bb-chip-text {
    font-size: 14px;
  }
  .cn-bottombar {
    max-width: 85vw;
    gap: 0;
  }
}

/* top align rollers so row 1 sits at the top of the window */
.cn-bb-icon-container,
.cn-bb-text-container {
  display: flex;
  align-items: flex-start; /* was center */
  justify-content: center;
}

/* --- Morphing Video Section --- */
#cn-morph-video {
  height: 100vh; /* Set height to one viewport */
  min-height: 700px; /* Ensure it has enough room on short screens */
  position: relative;
  display: flex; /* This will help center the grid content */
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.cn-morph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  padding: 0 5vw;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.cn-morph-svg-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-morph {
  width: 100%;
  height: 100%;
  max-height: 70vh;
}

/* Responsive styles for the morphing section */
@media (max-width: 768px) {
  #cn-morph-video {
    height: auto; /* Let content define height */
    margin-bottom: 50px;
  }
  .cn-morph-sticky-container {
    position: static; /* Disable sticky pinning */
    height: auto;
  }
  .cn-morph-grid {
    grid-template-columns: 1fr; /* Stack items vertically */
    padding: 5vh 5vw;
  }
  .hero-morph {
    max-height: 50vh;
    margin-bottom: 5vh;
  }
}

/* --- Mobile Video Styles for Morph Section --- */

/* Hide the simple video on desktop by default */
.cn-morph-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the complex SVG animation wrapper on mobile */
  .cn-morph-svg-wrapper {
    display: none;
  }

  /* Show and style the simple video container on mobile */
  .cn-morph-video-mobile {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px; /* Center it and add space below the video */
    border-radius: 16px;
    overflow: hidden;
  }

  .cn-morph-video-mobile video {
    width: 100%;
    display: block;
  }
}

.cn-hero-scale {
  transform-origin: var(--pivot-x) var(--pivot-y);
}
.cn-hero-logo {
  width: 1000px;
  height: auto;
  display: block;
  transform-box: fill-box;
  transform-origin: var(--pivot-x, 50%) var(--pivot-y, 50%);
  transform: scale(var(--hero-scale, 1));
}

@media (max-width: 780px) {
  .cn-hero-logo {
    width: 35px;
  }
  .cn-hero-top {
    top: calc(50vh - var(--hero-gap)) !important;
    transform: translate(-50%) !important;
  }
}

/* mobile: centre the "We Are" + logo group vertically (dvh = visible viewport) */
@media (max-width: 768px) {
  .cn-hero-top {
    top: calc(50vh - 53px) !important;
    top: calc(50dvh - 53px) !important;
  }
  #cn-hero-logo-wrap {
    top: calc(50vh + 18px);
    top: calc(50dvh + 18px);
    transform: translate(-50%, -50%) scale(10);
    transform-origin: 48.5% 50%;
  }
}

/* iOS WebKit: render the logo at its displayed size instead of magnifying
   a 35px SVG layer ten times. Keep the scroll zoom on the SVG itself. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .front-page #cn-hero-logo-wrap {
      transform: translate(calc(-50% + 4.725px), -50%);
      will-change: auto;
    }

    .front-page .cn-hero-scale {
      transform: none;
      will-change: auto;
      backface-visibility: visible;
    }

    .front-page .cn-hero-logo {
      width: 350px;
    }
  }
}

#journey-morph-section {
  height: 280vh; /* Taller for a longer, more complex animation */
  position: relative;
}

/* mobile */
@media (max-width: 768px) {
  #journey-morph-section {
    height: auto;
  }
}

/* desktop */
@media (min-width: 1440px) {
  #journey-morph-section {
    height: 250vh; /* adjust if you need */
  }
}
@media (min-width: 1840px) {
  #journey-morph-section {
    height: 220vh; /* adjust if you need */
  }
}

/* The "stage" that gets pinned */
.journey-pin-container {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  /* Initial 2-column layout */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* The video container, placed in the first column */
.journey-morph-wrapper {
  position: absolute;
  /* Initial state: positioned on the left side */
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw; /* Initial width */
  height: 55vh; /* Initial height */
}

.journey-hero-morph {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* The text, placed in the second column */
.journey-intro-text {
  grid-column: 2 / 3;
  padding: 5vw;
  color: white;
}

/* mobile stack */
@media (max-width: 768px) {
  #journey-morph-section {
    height: auto;
  }

  .journey-pin-container {
    position: relative;
    height: auto !important;
    display: grid;
    grid-template-columns: 1fr;
    padding: 4vw 5vw;
    overflow: visible;
  }

  /* let the SVG sit in flow */
  .journey-morph-wrapper {
    display: none;
  }
  .journey-video-mobile {
    display: block !important;
    margin-bottom: 30px;
  }

  .journey-hero-morph {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }

  .journey-intro-text {
    grid-column: 1 / -1;
    padding-left: 0;
    margin-top: 4vw;
    color: white;
    text-align: center;
  }
}

/* --- NEW CSS FOR SAFARI MASK FALLBACK --- */

/* This will be the container for our video and its mask */
.video-mask-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default, JS will show it for Safari */
  border-radius: 50px;
}

/* The video to be masked */
.video-mask-wrapper .masked-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: contain;
  /* The magic happens here: we apply the SVG mask */
  -webkit-mask-image: url(#hero-svg-mask);
  mask-image: url(#hero-svg-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  border-radius: 50px;
}

/* Specific mask for the journey section */
#journey-morph-section .video-mask-wrapper .masked-video {
  -webkit-mask-image: url(#journey-svg-mask);
  mask-image: url(#journey-svg-mask);
}

/* Hide the original SVG wrapper in Safari */
.safari-browser .cn-morph-svg-wrapper,
.safari-browser .journey-morph-wrapper {
  display: none;
}
/* Show the new mask wrapper in Safari */
.safari-browser .video-mask-wrapper {
  display: block;
}

/* --- FINAL SAFARI FALLBACK CSS --- */

/* This hides the original SVG elements only in Safari */
.safari-browser .cn-morph-svg-wrapper,
.safari-browser .journey-morph-wrapper {
  display: none !important;
}

/* Container for the stencil effect */
.safari-fallback-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* The video sits at the back */
.safari-fallback-wrapper .fallback-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The SVG overlay sits on top, creating the mask effect */
.safari-fallback-wrapper .stencil-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* The color of the overlay should match your page background */
  fill: #000000;
  fill-rule: evenodd;
}
/* Ensure the section itself has no horizontal padding */
#journey-morph-section {
  padding: 0;
  overflow: hidden; /* Prevents scrollbars during animation */
}

/* This is the key fix */
.journey-pin-container {
  position: relative;
  width: 100%; /* Make the container span the full width */
  height: 100vh;
  margin: 0; /* Remove any horizontal margin */
  padding: 0; /* Remove any horizontal padding */
}

#journey-morph-section .video-mask-wrapper {
  will-change: transform, width, height, left, top;
}

.card-text{
  text-decoration: none;
}

.scale-with-grid{
  max-width: 252px;
}
.grecaptcha-badge{
  display: none;
}

@media (max-width: 768px) {
  .scale-with-grid{
    max-width: 100%;
  }
}

/* Shared section headings: use the same HTML on any page. */
.wwd-eyebrow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(248, 244, 240, 0.25);
  background: rgba(248, 244, 240, 0.06);
  backdrop-filter: blur(6px);
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cn-white, #f8f4f0);
  box-sizing: border-box;
  transition: color 0.35s ease;
}

.wwd-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cn-pink, #58a4ff), var(--cn-orange, #f29020));
  flex: none;
}

/* Blue and orange enter from opposite edges and meet in the middle. */
.wwd-eyebrow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cn-pink, #58a4ff), var(--cn-orange, #f29020));
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
  -webkit-mask-position: left center, right center;
  mask-position: left center, right center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;
  transition: -webkit-mask-size 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    mask-size 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.wwd-eyebrow:hover {
  color: var(--cn-black, #000);
}

.wwd-eyebrow:hover::after {
  /* Overlap the masks slightly to avoid a seam. */
  -webkit-mask-size: 51% 100%;
  mask-size: 51% 100%;
}

.wwd-section-title {
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--cn-white, #f8f4f0);
}

.wwd-clients-head {
  margin-bottom: 48px;
  text-align: center;
}

.wwd-clients-head .wwd-eyebrow {
  margin-bottom: 20px;
}

/* Only hide shared sections after their reveal controller is ready. */
.wwd-clients-head.wwd-reveal,
.wwd-cta-inner.wwd-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wwd-clients-head.wwd-reveal.is-heading-reveal-ready:not(.is-visible),
.wwd-cta-inner.wwd-reveal.is-heading-reveal-ready:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px);
}

@media (prefers-reduced-motion: reduce) {
  .wwd-eyebrow,
  .wwd-eyebrow::after,
  .wwd-clients-head.wwd-reveal,
  .wwd-cta-inner.wwd-reveal {
    transition: none;
  }

  .wwd-clients-head.wwd-reveal.is-heading-reveal-ready:not(.is-visible),
  .wwd-cta-inner.wwd-reveal.is-heading-reveal-ready:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .wwd-clients-head.wwd-reveal.is-heading-reveal-ready:not(.is-visible),
  .wwd-cta-inner.wwd-reveal.is-heading-reveal-ready:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Shared hero: reuse the .wwd-hero markup on any page.
   Defaults also work without a .wwd-page wrapper or its animation script.
   ========================================================================== */

.wwd-container {
  max-width: var(--cn-container, 1280px);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.wwd-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(266deg, var(--cn-pink, #58a4ff) -3%, var(--cn-red, #2f6fd6) 104%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 8px 30px -10px #f291205e;
}

.wwd-pill-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px -8px #f29120;
}

.wwd-pill-btn .wwd-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wwd-pill-btn:hover .wwd-arrow {
  transform: translateX(5px);
}

.wwd-pill-btn--ghost {
  background: transparent;
  border: 1px solid rgba(248, 244, 240, 0.3);
  box-shadow: none;
}

.wwd-pill-btn--ghost:hover {
  background: rgba(248, 244, 240, 0.08);
  box-shadow: none;
}

.wwd-hero {
  position: relative;
  height: 75vh;
  display: flex;
  align-items: center;
  color: var(--cn-white, #f8f4f0);
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
}

.wwd-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.wwd-hero-inner .wwd-eyebrow {
  margin-bottom: 28px;
}

.wwd-hero-title {
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.wwd-line {
  display: block;
  overflow: hidden;
}

.wwd-line-inner {
  display: block;
}

.wwd-hero-title .wwd-highlight {
  background: linear-gradient(266deg, var(--cn-orange, #f29020) -3%, var(--cn-pink, #58a4ff) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wwd-hero-copy {
  font-size: var(--full-website-paragraph-font-size);
  line-height: 1.6;
  color: var(--cn-muted, rgba(248, 244, 240, 0.64));
  max-width: 46ch;
  margin: 0 auto 40px;
  opacity: 1;
}

.wwd-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 1;
}

.wwd-hero-stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 84px;
  flex-wrap: wrap;
  opacity: 1;
}

.wwd-stat-num {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  background: linear-gradient(266deg, var(--cn-amber, #ffab4d) -3%, var(--cn-pink, #58a4ff) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.wwd-stat-label {
  font-size: 13px;
  color: var(--cn-muted-2, rgba(248, 244, 240, 0.36));
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.wwd-scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cn-muted-2, rgba(248, 244, 240, 0.36));
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wwd-scroll-cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--cn-white, #f8f4f0), transparent);
  position: relative;
  overflow: hidden;
}

.wwd-scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--cn-orange, #f29020));
  animation: wwdScrollCue 2.2s ease-in-out infinite;
}

@keyframes wwdScrollCue {
  0% { top: -100%; }
  100% { top: 100%; }
}

.wwd-hero,
.wwd-hero * {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .wwd-hero {
    padding: 140px 0 100px;
    min-height: auto;
  }

  .wwd-hero-stats {
    gap: 28px;
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-scroll-cue-line::after {
    animation: none !important;
  }

  .wwd-line-inner,
  .wwd-hero-copy,
  .wwd-hero-actions,
  .wwd-hero-stats {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.wwd-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

@media (max-width: 1024px) {
  .wwd-services-grid {
    grid-template-columns: 1fr;
  }
}

.cn-contact-card input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(266deg, var(--cn-pink, #58a4ff) -3%, var(--cn-red, #2f6fd6) 104%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.cn-contact-card input[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px -8px #f291205e;
}
.cn-contact-card input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Shared closing CTA: reuse the .wwd-cta markup on any page.
   Container, eyebrow, button and scroll-reveal styles are shared above.
   ========================================================================== */

.wwd-cta {
  position: relative;
  padding-bottom: 100px !important;
  text-align: center;
  overflow: hidden;
  color: var(--cn-white, #f8f4f0);
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
}

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

.wwd-cta-label {
  margin-bottom: 26px;
}

.wwd-cta-title {
  color: var(--cn-white, #f8f4f0);
  font-family: var(--cn-font, "Inter", "DM Sans", sans-serif);
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 26px;
}

.wwd-cta-title .wwd-highlight {
  background: linear-gradient(266deg, var(--cn-orange, #f29020) -3%, var(--cn-pink, #58a4ff) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wwd-cta-copy {
  color: var(--cn-muted, rgba(248, 244, 240, 0.64));
  max-width: 48ch;
  margin: 0 auto 44px;
  font-size: var(--full-website-paragraph-font-size);
  line-height: 1.6;
}

.wwd-cta,
.wwd-cta * {
  box-sizing: border-box;
}

.cn-text-gradient-mix{
  background: linear-gradient(266deg, var(--cn-pink, #f29020) -3%, var(--cn-orange, #58a4ff) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
    
.wwd-services-grid > .wwd-clients-head{
  align-self: center;
  margin-bottom: 0;
}

/* mobile vertical offset if you want the old look */
@media (max-width: 768px) {
  #cn-hero-logo-wrap {
    --hero-shift-y: -10%;
  }
  .cn-hero-scale {
    transform: translateZ(0) scale(1);
  }
  .wwd-cta{
    padding-bottom: 30px !important;
  }
  #services.cn-footer{
    padding: 0px;
  }

  .wwd-hero{
    margin-bottom: 50px;
    height: auto;
    padding-top: 0px !important;
  }
  #main-content{
    padding-top: 50px !important;
  }
  .contact-section{
    margin: 0px 0px;
  }
  .cn-bottombar-containers{
    justify-content: flex-start;
  }
}
.cn-bb-text{
  text-decoration: none;
}

.paragraph{
  font-size: var(--full-website-paragraph-font-size);
  line-height: 1.7;
  color: var(--cn-muted);
  margin: 0 0 18px;
  font-weight: 400;
}

.cn-mk-text-link{
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mk-ink);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  color: #f8f4f0;
}



@media (max-width: 768px) {
  .hide-on-mobile{
    display: none;
  }
}

select, option {
    color: #000000;
}


/* Service marquee, moved from the What We Do template. */
.wwd-marquee {
  --cn-bg-soft: #0e0e10;
  --cn-line: rgba(248, 244, 240, 0.14);
  --cn-muted: rgba(248, 244, 240, 0.64);
  --cn-orange: #f29020;
  --cn-pink: #58a4ff;
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  border-top: 1px solid var(--cn-line);
  border-bottom: 1px solid var(--cn-line);
  /*transform: rotate(-1.2deg) scale(1.02);*/
  background: var(--cn-bg-soft);
  font-family: "Inter", "DM Sans", sans-serif;
}

.wwd-marquee-track {
  display: flex;
  width: max-content;
  animation: wwdMarquee 28s linear infinite;
}

.wwd-marquee-track:hover {
  animation-play-state: paused;
}

.wwd-marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--cn-muted);
}

.wwd-marquee-item span.wwd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cn-orange), var(--cn-pink));
}

@keyframes wwdMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cn-form-row p{
  margin: 0px !important;
}

.footer-center-content{
  display:flex;
  gap: 10px;
  flex-direction: column;
}

.footer-center-content p{
  margin: 0px;
}

.wwd-pill-btn, .wwd-pill-btn:visited, .wwd-pill-btn:hover, .wwd-pill-btn:focus, .wwd-pill-btn:active{
  color: white !important;
}

.social-link, .social-link:visited, .social-link:hover, .social-link:focus, .social-link:active{
  color: white !important;
}