/* ============================================================
   PipsPrice — Homepage Styles
   ============================================================ */

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 47, 53, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 47, 53, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 95% 85% at 70% 45%,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.2) 58%,
    transparent     80%
  );
  mask-image: radial-gradient(
    ellipse 95% 85% at 70% 45%,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,0.7) 32%,
    rgba(0,0,0,0.2) 58%,
    transparent     80%
  );
  z-index: 0;
}
.hero-accent {
  position: absolute;
  right: 0; top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 35%, rgba(134,47,53,0.10) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-overline { margin-bottom: 20px; display: block; }
.hero-title {
  color: white;
  margin-bottom: 28px;
}
.hero-line {
  display: block;
  animation: slideInLeft 0.8s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }
.hero-line:nth-child(3) { animation-delay: 0.7s; }
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
.hero-desc {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  animation: fadeInUp 0.8s 0.9s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeInUp 0.8s 1.1s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.hero-accreditations {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeInUp 0.8s 1.3s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}
.acc-badge {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 11px;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Carousel — 3-card stage with glide-and-dip transitions ── */
.hero-carousel {
  --card-w: 320px;
  --card-h: 480px;
  --side-scale: 0.72;
  --side-shift: 62%;
  --transition: 1100ms cubic-bezier(0.32, 0.72, 0.24, 1);
  --mx: 0px;
  --my: 0px;
  --drag-x: 0px;

  position: relative;
  width: 100%;
  max-width: 660px;
  height: calc(var(--card-h) + 110px);
  justify-self: end;
  perspective: 1500px;
  animation: heroCarouselIn 0.9s 0.6s ease both;
}
@keyframes heroCarouselIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-stage {
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + 40px);
  transform-style: preserve-3d;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  margin-top: calc(var(--card-h) / -2);
  border: 1px solid rgba(134, 47, 53, 0.4);
  background: var(--dark-2);
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  transition:
    transform var(--transition),
    opacity var(--transition),
    filter var(--transition),
    z-index 0s linear var(--transition);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.hero-card img,
.hero-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 55%, rgba(13, 13, 13, 0.55) 100%),
    linear-gradient(135deg, rgba(134, 47, 53, 0.12) 0%, transparent 45%);
}

/* Centre — large, fully visible. Adds --drag-x so the card follows the finger during touch swipes. */
.hero-card[data-slot="center"] {
  transform: translate3d(calc(var(--mx) + var(--drag-x)), var(--my), 0) scale(1);
  opacity: 1;
  filter: brightness(1);
  z-index: 3;
  cursor: default;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero-card[data-slot="left"] {
  transform:
    translate3d(calc(var(--side-shift) * -1 + var(--mx) * 0.4 + var(--drag-x)), calc(var(--my) * 0.4), -120px)
    scale(var(--side-scale))
    rotateY(18deg);
  opacity: 0.45;
  filter: brightness(0.55) saturate(0.92);
  z-index: 2;
}
.hero-card[data-slot="right"] {
  transform:
    translate3d(calc(var(--side-shift) + var(--mx) * 0.4 + var(--drag-x)), calc(var(--my) * 0.4), -120px)
    scale(var(--side-scale))
    rotateY(-18deg);
  opacity: 0.45;
  filter: brightness(0.55) saturate(0.92);
  z-index: 2;
}

/* While the finger is down, cards track 1:1 with no transition */
.hero-carousel.is-dragging .hero-card[data-slot="center"],
.hero-carousel.is-dragging .hero-card[data-slot="left"],
.hero-carousel.is-dragging .hero-card[data-slot="right"] {
  transition: none;
}
/* On finger-release: quick gallery-style snap (transform + opacity + filter) */
.hero-carousel.is-releasing .hero-card[data-slot="center"],
.hero-carousel.is-releasing .hero-card[data-slot="left"],
.hero-carousel.is-releasing .hero-card[data-slot="right"] {
  transition:
    transform 420ms cubic-bezier(0.32, 0.72, 0.24, 1),
    opacity   420ms cubic-bezier(0.32, 0.72, 0.24, 1),
    filter    420ms cubic-bezier(0.32, 0.72, 0.24, 1),
    z-index 0s linear 420ms;
}
.hero-card[data-slot="hidden-left"],
.hero-card[data-slot="hidden-right"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0.4);
}
.hero-card[data-slot="hidden-left"] {
  transform: translate3d(calc(var(--side-shift) * -1.7), 0, -240px) scale(0.55) rotateY(28deg);
}
.hero-card[data-slot="hidden-right"] {
  transform: translate3d(calc(var(--side-shift) * 1.7), 0, -240px) scale(0.55) rotateY(-28deg);
}

/* "Live" pip on video cards (only visible on centre card) */
.hero-card-video::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson-light);
  box-shadow: 0 0 0 4px rgba(168, 66, 74, 0.18);
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms ease 300ms;
  animation: heroPulse 2.4s ease-in-out infinite;
}
.hero-card-video[data-slot="center"]::before { opacity: 1; }
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ── Glide-and-dip slot transition ────────────────────────────── */
.hero-card.is-glide-out-left      { animation: heroGlideOutLeft     var(--transition) forwards; z-index: 2; }
.hero-card.is-glide-out-right     { animation: heroGlideOutRight    var(--transition) forwards; z-index: 2; }
.hero-card.is-glide-in-from-right { animation: heroGlideInFromRight var(--transition) forwards; z-index: 4; }
.hero-card.is-glide-in-from-left  { animation: heroGlideInFromLeft  var(--transition) forwards; z-index: 4; }

/* Outgoing cards drop opacity sharply during the crossover so they
   don't show through the incoming card. They fade back up to the
   side slot's resting opacity (0.45) at the end. */
@keyframes heroGlideOutLeft {
  0%   { transform: translate3d(var(--mx), var(--my), 0) scale(1); opacity: 1; filter: brightness(1) saturate(1); }
  35%  { opacity: 0.18; }
  72%  { opacity: 0.30; filter: brightness(0.94) saturate(0.98); }
  100% {
    transform: translate3d(calc(var(--side-shift) * -1 + var(--mx) * 0.4), calc(var(--my) * 0.4), -120px)
      scale(var(--side-scale)) rotateY(18deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.92);
  }
}
@keyframes heroGlideOutRight {
  0%   { transform: translate3d(var(--mx), var(--my), 0) scale(1); opacity: 1; filter: brightness(1) saturate(1); }
  35%  { opacity: 0.18; }
  72%  { opacity: 0.30; filter: brightness(0.94) saturate(0.98); }
  100% {
    transform: translate3d(calc(var(--side-shift) + var(--mx) * 0.4), calc(var(--my) * 0.4), -120px)
      scale(var(--side-scale)) rotateY(-18deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.92);
  }
}
/* Incoming cards snap to full opacity by ~22% so they solidly cover
   the outgoing card before the spatial crossover, eliminating the
   "two cards visible at once" cheap moment. */
@keyframes heroGlideInFromRight {
  0% {
    transform: translate3d(calc(var(--side-shift) + var(--mx) * 0.4), calc(var(--my) * 0.4), -120px)
      scale(var(--side-scale)) rotateY(-18deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.92);
  }
  22%  { opacity: 1; }
  28%  { filter: brightness(0.94) saturate(0.98); }
  100% { transform: translate3d(var(--mx), var(--my), 0) scale(1); opacity: 1; filter: brightness(1) saturate(1); }
}
@keyframes heroGlideInFromLeft {
  0% {
    transform: translate3d(calc(var(--side-shift) * -1 + var(--mx) * 0.4), calc(var(--my) * 0.4), -120px)
      scale(var(--side-scale)) rotateY(18deg);
    opacity: 0.45;
    filter: brightness(0.55) saturate(0.92);
  }
  22%  { opacity: 1; }
  28%  { filter: brightness(0.94) saturate(0.98); }
  100% { transform: translate3d(var(--mx), var(--my), 0) scale(1); opacity: 1; filter: brightness(1) saturate(1); }
}

/* ── Controls ───────────────────────────────────────────────── */
.hero-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 5;
}
.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.hero-arrow:hover {
  background: rgba(134, 47, 53, 0.7);
  border-color: var(--crimson-light);
  transform: scale(1.06);
}
.hero-arrow:active { transform: scale(0.96); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dot.active {
  background: var(--crimson-light);
  transform: scale(1.4);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(134,47,53,0.8), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel,
  .hero-line, .hero-desc, .hero-actions, .hero-accreditations,
  .hero-scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-card { transition: opacity 200ms ease !important; }
  .hero-card-video::before { animation: none !important; }
}

/* ─── Stats Band ────────────────────────────────────────────── */
.stats-band {
  background: var(--crimson);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ─── Services ──────────────────────────────────────────────── */
.services-section { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: white;
  padding: 40px 36px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--crimson);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--crimson-faint);
  border: 1px solid rgba(134,47,53,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
}
.service-title {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-tags span {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--light);
  color: var(--mid);
  padding: 4px 10px;
}
.service-card-cta {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-cta-text {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.service-cta-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  line-height: 1.1;
}
.service-card-cta::before { display: none; }

/* ─── Featured Projects ─────────────────────────────────────── */
.featured-section { position: relative; }
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
/* Slightly shorter image on the 3-column homepage grid */
.featured-section .work-card-img { height: 240px; }

/* ─── Workflow Section ──────────────────────────────────────── */
.workflow-section { background: var(--white); }
.workflow-intro {
  color: var(--mid);
  margin: 24px 0 0;
  max-width: 640px;
  text-align: left;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 60px;
}
/* Blueprint-style cards — drafted on a faint dot grid with crimson
   registration brackets in each corner. The stage number is the
   dominant graphic element at the top of each card. */
.workflow-step {
  position: relative;
  background: var(--light);
  background-image: radial-gradient(rgba(134, 47, 53, 0.12) 1px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: 0 0;
  border: 1px solid rgba(134, 47, 53, 0.18);
  border-radius: 0;
  padding: 38px 30px 36px;
  min-height: 320px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 14px rgba(20, 20, 20, 0.04);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.24, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.workflow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 47, 53, 0.35);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 12px 28px rgba(20, 20, 20, 0.08);
}

/* Crimson registration brackets — one L-shape in each of the 4 corners */
.workflow-step::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    /* top-left */
    linear-gradient(to right,  var(--crimson) 16px, transparent 16px) 0% 0% / 16px 1.5px no-repeat,
    linear-gradient(to bottom, var(--crimson) 16px, transparent 16px) 0% 0% / 1.5px 16px no-repeat,
    /* top-right */
    linear-gradient(to left,   var(--crimson) 16px, transparent 16px) 100% 0% / 16px 1.5px no-repeat,
    linear-gradient(to bottom, var(--crimson) 16px, transparent 16px) 100% 0% / 1.5px 16px no-repeat,
    /* bottom-left */
    linear-gradient(to right,  var(--crimson) 16px, transparent 16px) 0% 100% / 16px 1.5px no-repeat,
    linear-gradient(to top,    var(--crimson) 16px, transparent 16px) 0% 100% / 1.5px 16px no-repeat,
    /* bottom-right */
    linear-gradient(to left,   var(--crimson) 16px, transparent 16px) 100% 100% / 16px 1.5px no-repeat,
    linear-gradient(to top,    var(--crimson) 16px, transparent 16px) 100% 100% / 1.5px 16px no-repeat;
}
.workflow-step::after { display: none; }

/* Step number — now the dominant graphic at the top of each card */
.workflow-step-num {
  position: static;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  color: var(--crimson);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: block;
}
/* Drop the previous "DWG-" prefix injected by the small-stamp design */
.workflow-step-num::before { content: none; }

/* Stage label sits beneath the big number, monospace technical annotation */
.workflow-step-tag {
  font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  display: block;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 0;
}

/* Title — Bebas Neue stays for the sharp drafted aesthetic */
.workflow-step-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  color: var(--dark);
  line-height: 1.05;
}

/* Description — bigger and slightly higher contrast for readability */
.workflow-step-desc {
  font-size: 1rem;
  color: var(--dark);
  opacity: 0.82;
  line-height: 1.75;
  margin: 0;
}

/* ─── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: var(--dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.cta-band::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--crimson);
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .workflow-step::after { display: none; }
  .hero-carousel  { --card-w: 270px; --card-h: 405px; --side-shift: 60%; max-width: 540px; }
}

/* Stack: text on top, carousel below — both centred */
@media (max-width: 992px) {
  .hero           { min-height: auto; padding-bottom: 60px; }
  .hero-content   { grid-template-columns: 1fr; gap: 50px; padding-top: 40px; padding-bottom: 40px; justify-items: center; }
  .hero-text      { text-align: center; max-width: 640px; }
  .hero-desc      { margin-left: auto; margin-right: auto; }
  .hero-actions,
  .hero-accreditations { justify-content: center; }
  .hero-line      { transform: translateY(20px); }
  .hero-carousel  { --card-w: 290px; --card-h: 435px; justify-self: center; max-width: 580px; }
  .hero-scroll-cue { display: none; }
}
/* When centred, headline lines slide up instead of in from the left */
@media (max-width: 992px) {
  @keyframes slideInLeft { to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 768px) {
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(even) { border-right: none; }
  .services-grid  { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .service-card-cta[style] { flex-direction: column !important; align-items: flex-start !important; padding: 40px 36px !important; gap: 24px !important; }
  .workflow-grid  { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .hero-carousel  { --card-w: 220px; --card-h: 330px; --side-shift: 56%; --side-scale: 0.7; max-width: 100%; height: calc(var(--card-h) + 100px); }
  .hero-arrow     { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .hero-carousel  { --card-w: 180px; --card-h: 270px; --side-shift: 52%; }
}
