/* ============================================================
   D2C PREMIUM LAYER
   Loaded after template.css — adds navbar CTA, 4-col footer,
   mobile drawer, orbit button, hero progress bars, micro-polish.
   ============================================================ */

/* ── Navbar CTA button ─────────────────────────────────────── */
a.d2c-nav-cta,
button.d2c-nav-cta {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Reset native button appearance when using d2c-btn classes */
button.d2c-btn,
button.d2c-btn--dark,
button.d2c-btn--primary,
button.d2c-btn--outline {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  line-height: normal;
}
.d2c-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 22px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #109dd2, #22c8ff);
  color: #040e1e !important;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(111, 226, 255, 0.45);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.28s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.d2c-nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
  border-radius: inherit;
}

.d2c-nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(17, 180, 255, 0.42);
  background: linear-gradient(135deg, #0f90c1, #1ab4e8) !important;
  color: #020c1a !important;
  text-decoration: none;
}

.d2c-nav-cta:hover::before { opacity: 1; }

.d2c-nav-cta svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.d2c-nav-cta:hover svg { transform: translateX(2px); }

/* Hide nav CTA on mobile — burger menu handles it */
@media (max-width: 991px) {
  .d2c-nav-cta { display: none; }
}

/* ── Orbit (animated ring) button variant ──────────────────── */
.d2c-btn--orbit {
  position: relative;
  overflow: visible;
}

.d2c-btn__orbit {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
}

.d2c-btn__orbit-dot {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--d2c-accent, #22c8ff);
  transform: translateY(-50%);
  animation: orbitSpin 3.5s linear infinite;
  transform-origin: calc(50% + 4px + (var(--orbit-r, 24px) / 2)) 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.d2c-btn--orbit:hover .d2c-btn__orbit-dot {
  opacity: 1;
}

@keyframes orbitSpin {
  from { transform: translateY(-50%) rotate(0deg) translateX(calc(var(--orbit-r, 24px) / 2 + 4px)); }
  to   { transform: translateY(-50%) rotate(360deg) translateX(calc(var(--orbit-r, 24px) / 2 + 4px)); }
}

/* ── Hero slide — ::before overlay (replaces inline gradient) ─ */
.hero-slide {
  background-size: cover !important;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 10, 22, 0.82), rgba(4, 10, 22, 0.36));
  z-index: 0;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
}

/* ── Hero progress bar indicators (upgrade from dots) ─────── */
.hero-indicators {
  gap: 8px;
}

.hero-indicator {
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.35s ease;
}

.hero-indicator.active {
  width: 64px;
  background: linear-gradient(90deg, #109dd2, #22c8ff);
}

/* Progress fill animation on active indicator */
.hero-indicator.active::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  animation: heroProgressFill 5s linear forwards;
}

@keyframes heroProgressFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Mobile drawer menu — premium dark style ──────────────── */
.cg__resMenu {
  background: #060f1e;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cg__resMenu li {
  border-color: rgba(255, 255, 255, 0.07);
}

.cg__resMenu li a {
  color: rgba(220, 235, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  transition: color 0.22s ease, background 0.22s ease;
}

.cg__resMenu li a:hover {
  color: #22c8ff;
  background: rgba(255, 255, 255, 0.04);
}

.cg__resMenu li a.active {
  color: #22c8ff;
  background: rgba(17, 180, 255, 0.08);
}

.cg__resMenu li.cg__resMenu-back .cg__resMenu-backLink,
.cg__resMenu li.cg__resMenu-back .cg__resMenu-backIcon {
  color: rgba(200, 220, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.07);
}

/* ── Four-column premium footer ───────────────────────────── */
.d2c-footer {
  background: linear-gradient(180deg, #060d1a 0%, #040a13 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 80px 0 40px;
}

.d2c-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.d2c-footer__brand-logo {
  display: block;
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0.92) contrast(1.05);
  mix-blend-mode: screen;
}

.d2c-footer__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(180, 200, 235, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.d2c-footer__address {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(180, 200, 235, 0.5);
  margin-bottom: 0;
}

.d2c-footer__col-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 200, 235, 0.38);
  margin-bottom: 20px;
}

.d2c-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.d2c-footer__links li {
  margin-bottom: 12px;
}

.d2c-footer__links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(200, 220, 255, 0.72);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
  display: inline-block;
}

.d2c-footer__links a:hover {
  color: #22c8ff;
  transform: translateX(3px);
}

.d2c-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(200, 220, 255, 0.7);
}

.d2c-footer__contact-item a {
  color: rgba(200, 220, 255, 0.7);
  text-decoration: none;
  transition: color 0.22s ease;
}

.d2c-footer__contact-item a:hover {
  color: #22c8ff;
}

.d2c-footer__contact-icon {
  flex-shrink: 0;
  color: rgba(34, 200, 255, 0.6);
  margin-top: 2px;
}

.d2c-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.d2c-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(200, 220, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.d2c-footer__social-link:hover {
  border-color: rgba(34, 200, 255, 0.6);
  color: #22c8ff;
  background: rgba(34, 200, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 180, 255, 0.25);
}

.d2c-footer__bottom {
  max-width: 1320px;
  margin: 48px auto 0;
  padding: 24px 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.d2c-footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(160, 185, 225, 0.42);
  margin: 0;
}

.d2c-footer__copy a {
  color: rgba(160, 185, 225, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.d2c-footer__copy a:hover { color: #22c8ff; }

.d2c-footer__badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 185, 225, 0.35);
}

/* ── 4-col footer responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  .d2c-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .d2c-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .d2c-footer {
    padding: 60px 0 30px;
  }
  .d2c-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Testimonial SVG stars ──────────────────────────────────── */
.d2c-stars {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.d2c-stars svg {
  width: 14px;
  height: 14px;
  fill: #f59e0b;
  flex-shrink: 0;
}

.d2c-stars svg.is-empty {
  fill: rgba(255, 255, 255, 0.18);
}

/* ── Client logo normalization ──────────────────────────────── */
.clients .img-wrapper img {
  max-height: 34px;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.clients .img-wrapper:hover img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* ── Trust badge pulse dot ──────────────────────────────────── */
.trust-badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c8ff;
  flex-shrink: 0;
  position: relative;
}

.trust-badge__pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34, 200, 255, 0.4);
  animation: pulsePing 2s ease-out infinite;
}

@keyframes pulsePing {
  0%   { transform: scale(0.8); opacity: 0.8; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

/* ── Counter section upgrade ───────────────────────────────── */
.counter-wrapper {
  position: relative;
}

.counter-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #109dd2, #22c8ff);
  border-radius: 2px;
  opacity: 0.7;
}

.counter_element {
  background: linear-gradient(135deg, #22c8ff, #6de4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none !important;
}

/* ── Service cards premium border hover ─────────────────────── */
.ag-iconbox--style2 {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}

.ag-iconbox--style2:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 200, 255, 0.35) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(34, 200, 255, 0.18) !important;
}

/* ── Process card numbered label ────────────────────────────── */
.title-block--process .title-block__title {
  background: linear-gradient(135deg, #22c8ff, #7bdaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll reveal stagger children ─────────────────────────── */
.scroll-reveal > [class*="col-"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.is-revealed > [class*="col-"] {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-revealed > [class*="col-"]:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal.is-revealed > [class*="col-"]:nth-child(2) { transition-delay: 0.12s; }
.scroll-reveal.is-revealed > [class*="col-"]:nth-child(3) { transition-delay: 0.19s; }
.scroll-reveal.is-revealed > [class*="col-"]:nth-child(4) { transition-delay: 0.26s; }

/* ── Back-to-top button premium style ──────────────────────── */
.totop {
  background: linear-gradient(135deg, #081126, #0a1932);
  border: 1px solid rgba(34, 200, 255, 0.3);
  border-radius: 10px;
  color: rgba(34, 200, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.totop-vissible {
  left: 20px;
  opacity: 1;
}

.totop:hover {
  background: linear-gradient(135deg, #109dd2, #22c8ff);
  color: #04101e;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 180, 255, 0.35);
  border-color: transparent;
}

/* ── Smooth image load transition ───────────────────────────── */
img {
  transition: opacity 0.3s ease;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   PREMIUM DARK SLATE — Sophisticated, not bright.
   Readable, elegant, production-ready.
   ============================================================ */

/* ── Nav CTA inline fix ────────────────────────────────────── */
.cg__menuWrapper {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.cg__mainMenu {
  flex-shrink: 0;
}

/* ── Cursor: permanently off ───────────────────────────────── */
.d2c-cursor,
.d2c-cursor--outer,
.d2c-cursor--inner {
  display: none !important;
  visibility: hidden !important;
}

@media (hover: hover) and (pointer: fine) {
  body,
  body * {
    cursor: auto !important;
  }
}

/* ── Root variables ────────────────────────────────────────── */
:root {
  --d2c-bg:           #080e1d;
  --d2c-bg-card:      #0f1829;
  --d2c-bg-elevated:  #141e33;
  --d2c-stroke:       rgba(148, 168, 210, 0.13);
  --d2c-text:         #dde6f5;
  --d2c-text-muted:   #7a90b4;
  --d2c-accent:       #3b82f6;
  --d2c-accent-glow:  rgba(59, 130, 246, 0.22);
  --d2c-ink:          #dde6f5;
  --d2c-muted:        #7a90b4;
  --d2c-surface:      #0f1829;
  --d2c-radius:       16px;
}

/* ── Body ──────────────────────────────────────────────────── */
body,
body.page-home,
body.page-work,
body.page-process,
body.page-studio,
body.page-contact {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(700px 400px at 5% 8%,  rgba(99, 102, 241, 0.09), transparent 55%),
    linear-gradient(180deg, #070c1a 0%, #080e1d 50%, #07091a 100%) !important;
  color: #dde6f5 !important;
}

#page_wrapper {
  background: transparent !important;
}

/* ── Header — dark glass ───────────────────────────────────── */
.site-header,
.site-header.is-scrolled {
  background: rgba(7, 12, 26, 0.82) !important;
  border-bottom: 1px solid rgba(148, 168, 210, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 0 rgba(148, 168, 210, 0.08) !important;
}

/* ── Nav links ─────────────────────────────────────────────── */
.cg__mainMenu > li > a,
.cg__mainMenu > li > a > span {
  color: rgba(221, 230, 245, 0.82) !important;
}

.cg__mainMenu > li > a:hover,
.cg__mainMenu > li > a:hover > span,
.cg__mainMenu > li > a.active,
.cg__mainMenu > li > a.active > span {
  color: #93c5fd !important;
}

/* ── Hamburger bars ────────────────────────────────────────── */
.cg__menuBurger span {
  background-color: rgba(221, 230, 245, 0.85) !important;
}

/* ── Mobile drawer ─────────────────────────────────────────── */
.cg__resMenu {
  background: #0b1122 !important;
  border-left: 1px solid rgba(148, 168, 210, 0.12) !important;
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.6) !important;
}

.cg__resMenu li {
  border-color: rgba(148, 168, 210, 0.08) !important;
}

.cg__resMenu li a {
  color: rgba(221, 230, 245, 0.75) !important;
}

.cg__resMenu li a:hover,
.cg__resMenu li a.active {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.07) !important;
}

.cg__resMenu li.cg__resMenu-back .cg__resMenu-backLink,
.cg__resMenu li.cg__resMenu-back .cg__resMenu-backIcon {
  color: rgba(221, 230, 245, 0.40) !important;
  border-color: rgba(148, 168, 210, 0.10) !important;
}

/* ── General text — ensure all headings are readable ────────── */
h1, h2, h3, h4, h5 {
  color: #dde6f5;
}

h1 { color: #eef3ff; }

.txt-dark,
.txt-dark-transparent,
.bl-quote--dark__title,
.bl-quote--dark__subtitle,
.title-block__title,
.title-block__subtitle {
  color: #dde6f5 !important;
}

.txt-dark-transparent,
.title-block__subtitle {
  opacity: 0.68;
}

p {
  color: #7a90b4;
}

.txt-light { color: #ffffff !important; }

/* ── Body text in sections ─────────────────────────────────── */
.ag-iconbox__title,
.ag-iconbox__desc,
.bl-quote__title,
.call-to-action__title {
  color: #8aa4c8 !important;
}

.ag-iconbox__title {
  color: #dde6f5 !important;
}

/* ── Cards & surfaces ──────────────────────────────────────── */
.ag-about,
.d2c-dark-surface,
.ag-iconbox--style2,
.ag-iconbox--style3,
.testimonial__item,
.work-card,
.d2c-feature-card,
.media-container--contact,
.media-container--contact2,
.d2c-modal-panel,
.contact-form-shell {
  background: linear-gradient(155deg, rgba(15, 24, 41, 0.96), rgba(10, 16, 30, 0.97)) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28) !important;
}

/* ── CTA containers ────────────────────────────────────────── */
.home-cta-section .container,
.cta-inline-section .container {
  background: rgba(15, 24, 41, 0.82) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22) !important;
}

.call-to-action__subtitle,
.call-to-action__title,
.page-home .home-cta-section .call-to-action__subtitle,
.page-home .home-cta-section .call-to-action__title,
.page-work .cta-inline-section .call-to-action__subtitle,
.page-work .cta-inline-section .call-to-action__title,
.page-process .cta-inline-section .call-to-action__subtitle,
.page-process .cta-inline-section .call-to-action__title,
.page-studio .cta-inline-section .call-to-action__subtitle,
.page-studio .cta-inline-section .call-to-action__title,
.page-contact .cta-inline-section .call-to-action__subtitle,
.page-contact .cta-inline-section .call-to-action__title {
  color: #dde6f5 !important;
}

.call-to-action__title {
  color: #8aa4c8 !important;
}

/* ── Work page ─────────────────────────────────────────────── */
.page-work .work-portfolio-section {
  background: transparent !important;
}

.page-work .work-portfolio-title,
.page-work .work-portfolio-copy,
.page-work .work-hero-subtext,
.page-work .txt-light,
.page-work .txt-dark {
  color: #dde6f5 !important;
}

.page-work .work-portfolio-copy,
.page-work .work-hero-subtext {
  color: #7a90b4 !important;
}

.page-work .work-card {
  background: linear-gradient(155deg, rgba(15, 24, 41, 0.96), rgba(10, 16, 30, 0.97)) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
}

.page-work .work-card .case-study-meta__title,
.page-work .work-card .case-study-meta__scope,
.page-work .work-card .work-card__service,
.page-work .cta-inline-section .call-to-action__subtitle,
.page-work .cta-inline-section .call-to-action__title {
  color: #dde6f5 !important;
}

.page-work .work-card .project-flow-labels span {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 168, 210, 0.20) !important;
  color: #dde6f5 !important;
}

/* ── Work tabs ─────────────────────────────────────────────── */
.work-tabs--modern .work-tab {
  background: rgba(15, 24, 41, 0.7) !important;
  border: 1px solid rgba(148, 168, 210, 0.18) !important;
  color: rgba(221, 230, 245, 0.72) !important;
}

.work-tabs--modern .work-tab:hover,
.work-tabs--modern .work-tab.is-active {
  color: #ffffff !important;
  background: linear-gradient(120deg, #2563eb, #4f8ef7) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
}

/* ── Counter ───────────────────────────────────────────────── */
.counter_element {
  background: linear-gradient(135deg, #60a5fa, #93c5fd) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #60a5fa !important;
  text-shadow: none !important;
}

/* ── Process page ──────────────────────────────────────────── */
.page-process .process-difference-section {
  background: rgba(15, 24, 41, 0.82) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
}

.page-process .process-difference-section .title-block__title,
.page-process .process-difference-section .title-block__subtitle,
.page-process .process-difference-section p,
.page-process .process-difference-section .txt-dark,
.page-process .process-difference-section .txt-dark-transparent {
  color: #dde6f5 !important;
}

/* ── Contact page ──────────────────────────────────────────── */
.page-contact #project-brief {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-contact #project-brief .title-block__subtitle,
.page-contact #project-brief .title-block__title,
.page-contact #project-brief p,
.page-contact .label-control {
  color: #dde6f5 !important;
}

.page-contact .ag-form-input,
.page-contact .ag-fancy-form-select,
.page-contact .fancy-textarea,
.page-contact .form-control {
  color: #dde6f5 !important;
  border-color: rgba(148, 168, 210, 0.22) !important;
  background: rgba(15, 24, 41, 0.72) !important;
}

.page-contact .ag-form-input::placeholder,
.page-contact textarea::placeholder {
  color: rgba(122, 144, 180, 0.70) !important;
}

.page-contact .media-container--contact .title-block__subtitle,
.page-contact .media-container--contact .title-block__title,
.page-contact .media-container--contact p,
.page-contact .media-container--contact2 .title-block__subtitle,
.page-contact .media-container--contact2 .title-block__title,
.page-contact .media-container--contact2 p {
  color: #dde6f5 !important;
}

/* ── Studio page ───────────────────────────────────────────── */
.page-studio .bl-quote--dark__subtitle,
.page-studio .bl-quote--dark__title {
  color: #dde6f5 !important;
}

.page-studio .cta-inline-section .call-to-action__subtitle,
.page-studio .cta-inline-section .call-to-action__title {
  color: #dde6f5 !important;
}

/* ── Team avatar emoji cards ───────────────────────────────── */
.d2c-avatar-card {
  position: relative;
  overflow: hidden;
}

.d2c-avatar-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-size: 96px;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
}

/* ── Client logos — dark bg ────────────────────────────────── */
.clients .img-wrapper img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.75 !important;
  transition: opacity 0.25s ease !important;
}

.clients .img-wrapper:hover img {
  opacity: 1 !important;
}

/* ── Back to top ───────────────────────────────────────────── */
.totop {
  background: rgba(15, 24, 41, 0.95) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #93c5fd !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.totop:hover {
  background: linear-gradient(135deg, #2563eb, #4f8ef7) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* ── Home sections — text readability ──────────────────────── */
.page-home .home-testimonials .title-block__subtitle,
.page-home .home-testimonials .title-block__title,
.page-home .home-testimonials .testimonial__name {
  color: #dde6f5 !important;
}

.page-home .home-testimonials .testimonial__text,
.page-home .home-testimonials .testimonial__position {
  color: #7a90b4 !important;
}

.page-home .home-instagram .title-block__subtitle,
.page-home .home-instagram .title-block__title,
.page-home .home-instagram .work-hero-subtext,
.page-home .home-built-different .latest_posts-title {
  color: #dde6f5 !important;
}

.page-home .home-built-different .d2c-feature-card__body p {
  color: #7a90b4 !important;
}

/* ── Section background overrides (colour-overlay) ─────────── */
/* colour-overlay--grey is used as a section class — override to dark */
section.color-overlay--grey,
.color-overlay--grey {
  background-color: #0c1220 !important;
}

/* colour-overlay--dark stays dark, just ensure it blends */
section.color-overlay--dark,
.color-overlay--dark {
  background-color: #07091a !important;
}

/* Home testimonials section sits on a grey overlay */
.page-home .home-testimonials {
  background: #0c1220 !important;
}

/* Home CTA section */
.page-home .home-cta-section {
  background: transparent !important;
}

/* ── Avatar emoji z-layering fix ────────────────────────────── */
/* Ensure emoji renders above grey-overlay shadow */
.d2c-avatar-card .container-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.d2c-avatar-card .d2c-avatar-emoji {
  z-index: 3;
}

.d2c-avatar-card .bg-source.grey-overlay {
  z-index: 2;
}

/* ── Form elements — universal dark styling ─────────────────── */
.ag-form-input,
.form-control,
.fancy-textarea {
  background: rgba(15, 24, 41, 0.72) !important;
  border: 1px solid rgba(148, 168, 210, 0.22) !important;
  color: #dde6f5 !important;
}

.ag-form-input::placeholder,
.fancy-textarea::placeholder,
.form-control::placeholder {
  color: rgba(122, 144, 180, 0.60) !important;
}

.ag-form-input:focus,
.form-control:focus,
.fancy-textarea:focus {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
  outline: none !important;
  background: rgba(15, 24, 41, 0.90) !important;
}

/* ── Process page step cards ─────────────────────────────────── */
.process-point-card,
.media-container--process {
  background: rgba(15, 24, 41, 0.85) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
}

.process-point-card .title-block__title,
.process-point-card .title-block__subtitle,
.process-point-card p {
  color: #dde6f5 !important;
}

/* ── Service icon boxes ──────────────────────────────────────── */
.ag-iconbox--style2,
.ag-iconbox--style3 {
  background: rgba(15, 24, 41, 0.85) !important;
}

.ag-iconbox--style2:hover {
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.40),
              0 0 0 1px rgba(59, 130, 246, 0.18) !important;
}

/* ── About / quote dark block ────────────────────────────────── */
.ag-about {
  background: rgba(15, 24, 41, 0.85) !important;
}

/* ── Paragraph text inside sections ─────────────────────────── */
.sidermargins p,
section p {
  color: #7a90b4;
}

/* But hero/overlay sections keep white */
.hero-slide__subtitle,
.work-hero-subtext,
.media-container-title p {
  color: rgba(221, 230, 245, 0.82) !important;
}

/* ── Post / blog cards ───────────────────────────────────────── */
.post-wrapper,
.d2c-feature-card {
  background: rgba(15, 24, 41, 0.85) !important;
  border: 1px solid rgba(148, 168, 210, 0.12) !important;
}

.latest_posts-title,
.d2c-feature-card__title {
  color: #dde6f5 !important;
}

.latest_posts-excerpt,
.d2c-feature-card__body p {
  color: #7a90b4 !important;
}

/* ── Portfolio / work section text ───────────────────────────── */
.work-portfolio-title,
.case-study-meta__title {
  color: #dde6f5 !important;
}

.work-portfolio-copy,
.case-study-meta__scope,
.work-card__service {
  color: #7a90b4 !important;
}

/* ── Footer update for dark slate ────────────────────────────── */
.d2c-footer {
  background: linear-gradient(180deg, #060c1a 0%, #050913 100%) !important;
  border-top: 1px solid rgba(148, 168, 210, 0.10) !important;
}

/* ── Nav CTA — updated for dark slate accent ─────────────────── */
.d2c-nav-cta {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.40) !important;
}

.d2c-nav-cta:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.38) !important;
}

/* ── Service icon colour ─────────────────────────────────────── */
.ag-iconbox__icon,
.ag-iconbox .icon-wrap {
  color: #60a5fa !important;
}

/* ── Subheader (sub-page hero) title ─────────────────────────── */
.ag-subheader .media-container-title h1,
.ag-subheader .media-container-title p {
  color: #ffffff !important;
}

/* ── Underline accent on section subtitles ───────────────────── */
.title-block__subtitle {
  color: #4f8ef7 !important;
  opacity: 1 !important;
  letter-spacing: 0.14em;
}

/* ── Responsive — mobile text ────────────────────────────────── */
@media (max-width: 767px) {
  .sidermargins p,
  section p {
    color: #7a90b4;
  }
}

/* ── Missing utility class overrides ─────────────────────────── */
.txt-grey {
  color: #7a90b4 !important;
}

.txt-grey-transparent {
  color: rgba(173, 196, 230, 0.72) !important;
}

/* ── Inline-stripped paragraphs now inherit this ─────────────── */
.d2c-feature-card__body p,
.post-wrapper p {
  color: #7a90b4 !important;
}

/* ── Process page large body paragraph ──────────────────────── */
.page-process .txt-center,
.page-process p {
  color: #7a90b4 !important;
}

/* ── Contact page phone/email text ───────────────────────────── */
.page-contact .media-container--contact2 .title-block__title,
.page-contact .media-container--contact2 p {
  color: #dde6f5 !important;
}

/* ── Studio page founding-story paragraph ───────────────────── */
.page-studio .bl-quote--dark__title,
.page-studio .sidermargins p {
  color: #7a90b4 !important;
}

/* ── Section dividers — hide skew masks cleanly ─────────────── */
.ag-mask, .skew-mask, .skew-mask--color, .skew-mask--dark {
  display: none !important;
}

/* ── CTA "Start Your Project" — fix white box on dark bg ──── */
.bl-quote.call-to-action,
.call-to-action {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* CTA section layout */
.home-cta-section,
.cta-inline-section {
  background: transparent !important;
}

.home-cta-section .container,
.cta-inline-section .container {
  background: rgba(15, 26, 48, 0.90) !important;
  border: 1px solid rgba(59, 130, 246, 0.20) !important;
  box-shadow: 0 0 0 1px rgba(148, 168, 210, 0.08),
              0 24px 60px rgba(0, 0, 0, 0.30) !important;
  border-radius: 20px !important;
  padding: 48px 40px !important;
}

/* CTA titles — crisp and visible */
.call-to-action__subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(24px, 3.5vw, 38px) !important;
  font-weight: 800 !important;
  color: #eef3ff !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 14px !important;
}

.call-to-action__title {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #7a90b4 !important;
  margin-bottom: 0 !important;
}

/* CTA button alignment */
.home-cta-action,
.cta-inline-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

@media (max-width: 767px) {
  .home-cta-section .container,
  .cta-inline-section .container {
    padding: 32px 22px !important;
  }

  .home-cta-action,
  .cta-inline-action {
    justify-content: flex-start !important;
    margin-top: 24px !important;
  }
}

/* ── What We Do — services list spacing ──────────────────── */
.what-we-do-lines {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.what-we-do-lines span {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #eef3ff !important;
  letter-spacing: -0.01em !important;
  transition: color 0.22s ease;
}

.what-we-do-lines span:hover {
  color: #60a5fa !important;
}

.what-we-do-lines span em {
  color: #3b82f6 !important;
  font-style: normal !important;
  font-size: 0.75em !important;
  flex-shrink: 0 !important;
}

/* ── Team avatar illustration cards ─────────────────────────── */
.d2c-avatar-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* leave room for name label */
}

.d2c-avatar-illus {
  width: 68% !important;
  height: auto !important;
  max-width: 220px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.28)) !important;
  display: block !important;
  object-fit: contain !important;
  transition: none !important;
}

/* Avtar's card — existing member_01.jpg covers nicely */
.media-container--team:not(.d2c-avatar-card) .bg-source--image {
  background-position: center top;
}

/* ── Work tab wrapping for 7 tabs ────────────────────────────── */
.work-tabs--modern {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* ============================================================
   MOBILE RESPONSIVENESS — Full overhaul
   Breakpoints: ≤991px tablet · ≤767px mobile · ≤479px small
   ============================================================ */

/* ── Global: prevent horizontal overflow ──────────────────── */
html, body {
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

/* ── ≤991px — tablet / large phone ───────────────────────── */
@media (max-width: 991px) {

  /* Nav CTA already hidden — confirm */
  .d2c-nav-cta {
    display: none !important;
  }

  /* Site header height */
  .site-header-row {
    min-height: 80px !important;
  }

  .site-logo-img {
    max-height: 64px !important;
  }

  /* Hero title */
  .hero-slide__title {
    font-size: clamp(28px, 6vw, 48px) !important;
    line-height: 1.12 !important;
  }

  .hero-slide__subtitle {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  /* Sub-page hero */
  .ag-subheader .media-container-title h1 {
    font-size: clamp(28px, 6vw, 46px) !important;
    line-height: 1.15 !important;
  }

  /* Section headings */
  .title-block__title {
    font-size: clamp(26px, 5vw, 44px) !important;
  }

  /* Footer grid — 2 columns on tablet */
  .d2c-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 0 20px !important;
  }
}

/* ── ≤767px — mobile ──────────────────────────────────────── */
@media (max-width: 767px) {

  /* ─ Global spacing ─ */
  .sidermargins,
  .sidermargins.pb-80,
  .sidermargins.pt-80,
  .sidermargins.pb-100,
  .sidermargins.pt-100,
  .sidermargins.pb-120,
  .sidermargins.pt-120 {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .container, .large-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* ─ Hero slide ─ */
  .hero-slide {
    min-height: 100svh !important;
    padding: 100px 20px 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .hero-slide__content {
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-slide__title {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    letter-spacing: -0.02em !important;
  }

  .hero-slide__subtitle {
    font-size: 15px !important;
    max-width: 90% !important;
    margin: 0 auto 28px !important;
  }

  /* Hero buttons — stack vertically */
  .hero-slide__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .hero-slide__actions .d2c-btn {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Trust badge */
  .trust-badge {
    font-size: 11px !important;
    margin: 20px auto 0 !important;
    max-width: 280px !important;
    text-align: center !important;
  }

  /* Hero indicators */
  .hero-indicators {
    bottom: 20px !important;
  }

  /* ─ Sub-page hero ─ */
  .ag-subheader .media-container-title h1 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .work-hero-subtext {
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 0 10px !important;
  }

  /* ─ What We Do services list ─ */
  .what-we-do-lines {
    gap: 12px !important;
  }

  .what-we-do-lines span {
    font-size: clamp(18px, 5.5vw, 26px) !important;
  }

  /* ─ About/capabilities card ─ */
  .ag-about {
    padding: 32px 20px !important;
  }

  .ag-about .pl-90 { padding-left: 0 !important; }
  .ag-about .pr-90 { padding-right: 0 !important; }
  .ag-about .pt-60 { padding-top: 32px !important; }

  /* ─ Stats / counters — 2×2 grid ─ */
  .counter-wrapper,
  [class*="col-sm-3"].counter-wrapper,
  [class*="col-md-3"].counter-wrapper {
    width: 50% !important;
    float: left !important;
    margin-bottom: 28px !important;
  }

  .counter_element {
    font-size: clamp(36px, 10vw, 52px) !important;
  }

  /* ─ Section title sizes ─ */
  .title-block__title {
    font-size: clamp(22px, 6.5vw, 32px) !important;
    line-height: 1.15 !important;
  }

  .title-block__subtitle {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
  }

  h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
  }

  /* ─ CTA sections ─ */
  .home-cta-section .container,
  .cta-inline-section .container {
    padding: 32px 22px !important;
    border-radius: 16px !important;
  }

  .home-cta-row,
  .cta-inline-row {
    display: block !important;
  }

  .home-cta-action,
  .cta-inline-action {
    justify-content: flex-start !important;
    margin-top: 24px !important;
    width: 100% !important;
  }

  .home-cta-action .d2c-btn,
  .cta-inline-action .d2c-btn {
    width: 100% !important;
    text-align: center !important;
  }

  .call-to-action__subtitle {
    font-size: clamp(20px, 5.5vw, 28px) !important;
  }

  /* ─ Team cards — single column ─ */
  .page-studio .media-container--team {
    min-height: 420px !important;
    margin-bottom: 20px !important;
  }

  .d2c-avatar-img-wrap {
    padding-bottom: 80px !important;
  }

  .d2c-avatar-illus {
    width: 55% !important;
  }

  /* ─ Portfolio grid ─ */
  .work-grid-modern {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .work-item--modern {
    width: 100% !important;
  }

  .grid-item-wrapper.work-card {
    border-radius: 16px !important;
  }

  /* ─ Work tabs ─ */
  .work-tabs--modern {
    gap: 6px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    margin-bottom: 28px !important;
  }

  .work-tabs--modern::-webkit-scrollbar {
    display: none !important;
  }

  .work-tab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 8px 14px !important;
  }

  /* ─ Contact cards — stack ─ */
  .media-container--contact,
  .media-container--contact2 {
    margin-bottom: 16px !important;
    min-height: 120px !important;
  }

  /* ─ Contact form ─ */
  .hg-contactform .col-lg-offset-2,
  .hg-contactform .col-md-8 {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  /* ─ Service icon boxes ─ */
  .ag-iconbox--style2,
  .ag-iconbox--style3 {
    margin-bottom: 16px !important;
    padding: 20px 16px !important;
  }

  /* ─ Feature cards (Built Different) ─ */
  .post-wrapper.d2c-feature-card {
    margin-bottom: 20px !important;
  }

  /* ─ Process cards ─ */
  .process-point-card {
    margin-bottom: 16px !important;
    min-height: auto !important;
    padding: 24px 18px !important;
  }

  /* ─ Map + contact image ─ */
  .media-container--contactimg iframe,
  .media-container--contactimg {
    height: 260px !important;
    min-height: 260px !important;
  }

  /* ─ Footer ─ */
  .d2c-footer {
    padding: 48px 0 28px !important;
  }

  .d2c-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 0 20px !important;
  }

  .d2c-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 20px 0 !important;
    margin-top: 28px !important;
  }

  .d2c-footer__social {
    margin-top: 14px !important;
  }

  /* ─ Back to top ─ */
  .totop {
    bottom: 20px !important;
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }

  /* ─ Buttons universal ─ */
  .d2c-btn,
  .ag_btn {
    font-size: 12px !important;
    padding: 13px 22px !important;
  }

  /* ─ Portfolio section head ─ */
  .work-portfolio-head {
    text-align: center !important;
    margin-bottom: 28px !important;
  }

  .work-portfolio-title {
    font-size: clamp(24px, 6vw, 32px) !important;
  }

  /* ─ Studio video section ─ */
  .media-container--video {
    min-height: 280px !important;
  }

  /* ─ Process section difference block ─ */
  .page-process .process-difference-section {
    padding: 32px 20px !important;
    border-radius: 14px !important;
  }

  /* ─ pl/pr large padding overrides ─ */
  .pl-90, .pr-90 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .pt-60 { padding-top: 28px !important; }
  .pb-80 { padding-bottom: 40px !important; }
  .pt-80 { padding-top: 40px !important; }
  .pb-100 { padding-bottom: 52px !important; }
  .pt-100 { padding-top: 52px !important; }
}

/* ── ≤479px — small phones ────────────────────────────────── */
@media (max-width: 479px) {

  .hero-slide__title {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .what-we-do-lines span {
    font-size: 18px !important;
  }

  .title-block__title {
    font-size: 22px !important;
  }

  .call-to-action__subtitle {
    font-size: 20px !important;
  }

  /* Counters — still 2 per row but tighter */
  .counter_element {
    font-size: 36px !important;
  }

  /* Team cards full width on tiny screens */
  .page-studio [class*="col-sm-6"] {
    width: 100% !important;
    float: none !important;
  }

  .page-studio .media-container--team {
    min-height: 380px !important;
  }

  /* Work tabs horizontal scroll on tiny */
  .work-tabs--modern {
    padding-left: 0 !important;
  }

  /* Footer brand logo */
  .d2c-footer__brand-logo {
    height: 40px !important;
  }

  /* Contact map height */
  .media-container--contactimg iframe,
  .media-container--contactimg {
    height: 220px !important;
    min-height: 220px !important;
  }

  /* Full-width col override for very small screens */
  [class*="col-sm-6"],
  [class*="col-sm-4"],
  [class*="col-sm-3"] {
    width: 100% !important;
    float: none !important;
  }

  /* Keep counter 2-col on small screens */
  .counter-wrapper,
  [class*="col-sm-3"].counter-wrapper,
  [class*="col-md-3"].counter-wrapper {
    width: 50% !important;
    float: left !important;
  }
}

/* ── Touch: remove hover-only effects on mobile ──────────────── */
@media (hover: none) {
  .what-we-do-lines span:hover {
    color: inherit !important;
  }

  .ag-iconbox--style2:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28) !important;
  }

  .d2c-btn:hover,
  .ag_btn:hover {
    transform: none !important;
  }
}

/* ── Heartbeat effect on nav "Get a Quote" CTA ──────────────── */
@keyframes d2c-heartbeat {
  0%   { box-shadow: 0 0 0 0 rgba(17, 157, 210, 0.65), 0 12px 32px rgba(17, 180, 255, 0.22); transform: scale(1); }
  40%  { box-shadow: 0 0 0 8px rgba(17, 157, 210, 0), 0 12px 32px rgba(17, 180, 255, 0.22); transform: scale(1.04); }
  80%  { box-shadow: 0 0 0 0 rgba(17, 157, 210, 0), 0 12px 32px rgba(17, 180, 255, 0.22); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(17, 157, 210, 0), 0 12px 32px rgba(17, 180, 255, 0.22); transform: scale(1); }
}

.d2c-nav-cta {
  animation: d2c-heartbeat 2.4s ease-in-out infinite;
}

/* Pause heartbeat on hover so hover effect takes over cleanly */
.d2c-nav-cta:hover {
  animation: none;
}

/* ── "Brands That Trust Our Engineering" text → white ──────── */
.title-block__subtitle.client {
  color: #EAF1FF !important;
  opacity: 1 !important;
}

/* ── Liquid Metal "Request a Quote" hero button ─────────────── */
@keyframes d2c-metal-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes d2c-ripple {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.d2c-btn--liquid-metal {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #2d2d42 15%,
    #4a4a6a 30%,
    #6c6c8e 40%,
    #9898b8 50%,
    #6c6c8e 60%,
    #3a3a58 75%,
    #1a1a2e 100%
  ) !important;
  background-size: 300% 300% !important;
  animation: d2c-metal-shift 4s ease infinite !important;
  border: 1px solid rgba(180, 180, 220, 0.35) !important;
  color: #e8e8f8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: 100px !important;
  padding: 14px 32px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  box-shadow: 0 2px 16px rgba(100, 100, 160, 0.30),
              inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Metallic sheen overlay */
.d2c-btn--liquid-metal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: d2c-sheen 3s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}

@keyframes d2c-sheen {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.d2c-btn--liquid-metal:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 40px rgba(100, 100, 200, 0.45),
              0 4px 16px rgba(150, 150, 220, 0.30),
              inset 0 1px 0 rgba(255,255,255,0.20) !important;
  color: #ffffff !important;
}

.d2c-btn--liquid-metal .d2c-ripple-effect {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 70%);
  animation: d2c-ripple 0.6s ease-out forwards;
  pointer-events: none;
}

/* ── Feature cards equal height ────────────────────────────── */
.home-built-different .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

.home-built-different .post-wrapper.d2c-feature-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.home-built-different .latest_posts-img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}

.home-built-different .d2c-feature-card__body {
  flex: 1 !important;
}

/* Wrap cols in flex containers */
.home-built-different [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

/* ═══════════════════════════════════════════════════════════
   SPARKLE ANIMATED CTA BUTTON
   Applied via .d2c-btn--sparkle — does NOT change base color
   ═══════════════════════════════════════════════════════════ */

.d2c-btn--sparkle {
  --sparkle-hue: 210deg;
  --sparkle-hl:    hsla(var(--sparkle-hue), 100%, 70%, 0.50);
  --sparkle-hl-30: hsla(var(--sparkle-hue), 100%, 70%, 0.30);
  --sparkle-hl-80: hsla(var(--sparkle-hue), 100%, 70%, 0.80);
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

/* Bottom-up highlight sweep — hidden at rest */
.d2c-btn--sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.14),
    var(--sparkle-hl),
    var(--sparkle-hl-30) 18%,
    transparent 55%
  );
  -webkit-mask-image: linear-gradient(0deg, #fff, transparent 80%);
  mask-image: linear-gradient(0deg, #fff, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  z-index: 0;
}

.d2c-btn--sparkle:hover::after  { opacity: 1; }
.d2c-btn--sparkle:active::after { opacity: 1; filter: brightness(220%); }

/* Hover: inset bottom glow + outer lift */
.d2c-btn--sparkle:hover {
  box-shadow:
    0 -10px 14px -6px rgba(255, 255, 255, 0.22) inset,
    0 -18px 22px -10px var(--sparkle-hl-30) inset,
    0 10px 28px rgba(37, 99, 235, 0.28) !important;
  border-color: hsla(var(--sparkle-hue), 100%, 80%, 0.40) !important;
}

/* Active: stronger pulse */
.d2c-btn--sparkle:active {
  box-shadow:
    0 -10px 16px -6px rgba(255, 255, 255, 0.40) inset,
    0 -18px 28px -10px var(--sparkle-hl-80) inset,
    0 10px 30px rgba(37, 99, 235, 0.46) !important;
  border-color: hsla(var(--sparkle-hue), 100%, 80%, 0.70) !important;
}

/* ── Sparkle SVG icon ───────────────────────────────────────── */
.d2c-sparkle-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  vertical-align: middle;
  flex-shrink: 0;
  fill: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
  animation: d2c-svg-flicker 2s linear infinite;
  animation-delay: 0.5s;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.d2c-btn--sparkle:hover .d2c-sparkle-icon {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px var(--sparkle-hl));
  animation: none;
}

.d2c-btn--sparkle:active .d2c-sparkle-icon {
  fill: #ffffff;
  filter: drop-shadow(0 0 8px var(--sparkle-hl-80));
  animation: none;
}

@keyframes d2c-svg-flicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.28; }
}

/* ── Per-letter glow pulse ──────────────────────────────────── */
.d2c-sparkle-letter {
  display: inline-block;
  position: relative;
  z-index: 1;
  color: #60a5fa;                  /* blue-400 — visible on dark bg */
  animation: d2c-letter-glow 2s ease-in-out infinite;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Space characters: keep width, no animation needed */
.d2c-sparkle-space {
  animation: none !important;
  color: transparent !important;
  min-width: 0.32em;
}

@keyframes d2c-letter-glow {
  0%, 100% { color: #60a5fa; text-shadow: none; }
  50%       { color: #93c5fd; text-shadow: 0 0 6px rgba(96, 165, 250, 0.70); }
}

.d2c-btn--sparkle:hover  .d2c-sparkle-letter { color: #bfdbfe; }
.d2c-btn--sparkle:active .d2c-sparkle-letter {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(147, 197, 253, 0.90);
  animation: none;
}

/* Stagger delays — covers up to 20 chars ("Start Your Project" = 19) */
.d2c-sparkle-letter:nth-child(1)  { animation-delay: 0.00s; }
.d2c-sparkle-letter:nth-child(2)  { animation-delay: 0.08s; }
.d2c-sparkle-letter:nth-child(3)  { animation-delay: 0.16s; }
.d2c-sparkle-letter:nth-child(4)  { animation-delay: 0.24s; }
.d2c-sparkle-letter:nth-child(5)  { animation-delay: 0.32s; }
.d2c-sparkle-letter:nth-child(6)  { animation-delay: 0.40s; }
.d2c-sparkle-letter:nth-child(7)  { animation-delay: 0.48s; }
.d2c-sparkle-letter:nth-child(8)  { animation-delay: 0.56s; }
.d2c-sparkle-letter:nth-child(9)  { animation-delay: 0.64s; }
.d2c-sparkle-letter:nth-child(10) { animation-delay: 0.72s; }
.d2c-sparkle-letter:nth-child(11) { animation-delay: 0.80s; }
.d2c-sparkle-letter:nth-child(12) { animation-delay: 0.88s; }
.d2c-sparkle-letter:nth-child(13) { animation-delay: 0.96s; }
.d2c-sparkle-letter:nth-child(14) { animation-delay: 1.04s; }
.d2c-sparkle-letter:nth-child(15) { animation-delay: 1.12s; }
.d2c-sparkle-letter:nth-child(16) { animation-delay: 1.20s; }
.d2c-sparkle-letter:nth-child(17) { animation-delay: 1.28s; }
.d2c-sparkle-letter:nth-child(18) { animation-delay: 1.36s; }
.d2c-sparkle-letter:nth-child(19) { animation-delay: 1.44s; }
.d2c-sparkle-letter:nth-child(20) { animation-delay: 1.52s; }

/* Mobile: keep animation but reduce intensity */
@media (max-width: 767px) {
  .d2c-btn--sparkle { width: 100% !important; justify-content: center !important; }
  .d2c-sparkle-icon { width: 14px !important; height: 14px !important; }
}
