/*
 * NOTE: home.css - front page sections, in on-page order:
 *   0. Page tokens & type   1. Hero   2. Stats   3. Awards   4. Before / after   5. Search shift
 *   6. Services   7. Trust band   8. Process   9. Testimonials   10. CTA panel   11. FAQ
 *   12. Motion helpers   13. Responsive   14. Reduced motion
 *
 * The page is deliberately all-light: cool near-white ground, white cards with soft elevation
 * and one blue-to-cyan accent gradient. Display type is Sora, body type is Plus Jakarta Sans.
 */

@property --hm-p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ---------------------------------------------------------------
 * 0. Page tokens & shared type
 * ------------------------------------------------------------ */
.hm-page {
  --hm-paper: #f7f8fb;
  --hm-tint-1: #e8effd;
  --hm-tint-2: #f2f6fd;
  --hm-blue: #2563ff;
  --hm-blue-deep: #1846d6;
  --hm-cyan: #22d3ee;
  --hm-violet: #7c5cff;
  --hm-green: #12b76a;
  --hm-red: #ef5a3c;
  --hm-grad: linear-gradient(100deg, #2563ff 0%, #22d3ee 100%);
  --hm-grad-warm: linear-gradient(100deg, #e2563c, #f59e6b);
  --hm-text: #0b1220;
  --hm-muted: #566176;
  --hm-muted-2: #8a93a6;
  --hm-line: rgba(12, 18, 34, 0.08);
  --hm-line-2: rgba(12, 18, 34, 0.14);
  --hm-r: 18px;
  --hm-r-lg: 26px;
  --hm-shadow: 0 1px 2px rgba(12, 18, 34, 0.04), 0 10px 30px rgba(12, 18, 34, 0.06);
  --hm-shadow-lg: 0 8px 18px rgba(12, 18, 34, 0.06), 0 30px 70px rgba(20, 50, 140, 0.14);
  --hm-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --hm-sec-y: clamp(36px, 4vw, 64px);
  --hm-sticky: clamp(96px, 9vw, 124px);

  background: var(--hm-paper);
  color: var(--hm-text);
  overflow-x: clip;
}

.hm-wrap {
  max-width: var(--container);
  padding-inline: clamp(20px, 4.4vw, 60px);
}

.hm-sec {
  position: relative;
  padding-block: var(--hm-sec-y);
}

.hm-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--hm-text);
  text-wrap: balance;
}

.hm-h2-xl {
  font-size: clamp(34px, 3.9vw, 56px);
}

.hm-h2-center {
  margin-inline: auto;
  text-align: center;
}

.hm-h2-light {
  color: #fff;
}

/* NOTE: accent words carry the gradient, clipped to the glyphs. */
.hm-page :is(.hm-h2, .hm-panel-heading) :is(.text-blue, .text-purple),
.hm-hero-title .ai-badge,
.hm-hero-subhead .ai-badge {
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.hm-panel-heading .text-red {
  background: var(--hm-grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-prose {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hm-muted);
}

.hm-prose-lead {
  font-size: clamp(16.5px, 1.2vw, 18.5px);
  line-height: 1.65;
  color: var(--hm-text);
}

.hm-prose-center {
  margin-inline: auto;
  text-align: center;
}

.hm-prose-light {
  color: rgba(255, 255, 255, 0.84);
}

/* NOTE: body copy is justified page-wide; centred copy stays centred. */
:is(.hm-prose, .hm-tile-text, .hm-faq-card p, .faq-list p):not(.hm-prose-center),
.hm-voice blockquote,
.hm-hero-sub {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.hm-head {
  margin-bottom: clamp(30px, 3.6vw, 52px);
}

.hm-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* NOTE: shared white card - soft elevation with a lift on hover. */
.hm-figure,
.hm-point,
.hm-voice {
  position: relative;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow);
  transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}

.hm-figure:hover,
.hm-voice:hover {
  translate: 0 -6px;
  border-color: rgba(37, 99, 255, 0.55);
  box-shadow: var(--hm-shadow-lg);
}

.hm-page .btn-strategy {
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.3);
}

.hm-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--hm-text);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), translate 0.4s var(--ease);
}

.hm-ghost:hover,
.hm-ghost:focus-visible {
  translate: 0 -2px;
  background: var(--hm-blue);
  box-shadow: 0 14px 30px rgba(37, 99, 255, 0.32);
}

.hm-ghost-bolt {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hm-grad);
  transition: rotate 0.6s var(--hm-spring);
}

.hm-ghost:hover .hm-ghost-bolt {
  rotate: 360deg;
}

/* ---------------------------------------------------------------
 * 1. Hero
 * NOTE: full-width blue-tinted panel with dotted field, radiating dotted lines, centred copy,
 * and floating cards / images / app tiles on both sides. All motion is compositor-only.
 * ------------------------------------------------------------ */
.hm-hero {
  position: relative;
  width: 100%;
  padding: 0;
  background: var(--hm-paper);
}

.hm-hero-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(700px, 92vh, 980px);
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 99, 255, 0.16);
  background:
    radial-gradient(60% 55% at 50% 38%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #eef4ff 0%, #f6f9ff 55%, #eaf2ff 100%);
}

/* NOTE: content wrapper - keeps copy and floating cards aligned to the 1600px container while the frame is edge-to-edge. */
.hm-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(132px, 11vw, 190px) clamp(20px, 3vw, 48px) clamp(150px, 13vw, 200px);
}

.hm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hm-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.hm-aurora-a {
  top: -22%;
  right: -8%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.4), transparent 66%);
}

.hm-aurora-b {
  bottom: -26%;
  left: -8%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 66%);
}

/* NOTE: the dotted field fades out towards the middle so the copy stays clean. */
.hm-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(37, 99, 255, 0.28) 1.1px, transparent 1.5px) 0 0 / 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 42%, transparent 0%, #000 100%);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 42%, transparent 0%, #000 100%);
}

.hm-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hm-rays path {
  fill: none;
  stroke: rgba(37, 99, 255, 0.24);
  stroke-width: 1.4;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.hm-hero-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.hm-hero-logo {
  display: grid;
  place-items: center;
  width: clamp(56px, 4.4vw, 72px);
  height: clamp(56px, 4.4vw, 72px);
  margin-bottom: clamp(14px, 1.4vw, 20px);
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgba(20, 50, 140, 0.28), 0 2px 6px rgba(12, 18, 34, 0.05);
}

.hm-hero-logo img {
  width: 54%;
  height: 54%;
  object-fit: contain;
}

/* NOTE: H1 is the large hero heading. H2 sits under it as a smaller subheading. */
.hm-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--hm-text);
  text-wrap: balance;
}

.hm-hero-subhead {
  max-width: 22em;
  margin: clamp(14px, 1.4vw, 20px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--hm-muted);
  text-wrap: balance;
}

/* NOTE: the gradient is clipped to the text box, which is only as tall as the line-height. Extra bottom padding (pulled back with a negative margin) keeps descenders such as the "g" in "Google" from being cut off. */
.hm-hero-title .ai-badge {
  display: inline-block;
  padding: 0 0.06em 0.2em 0;
  margin-bottom: -0.2em;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-hero-sub {
  max-width: 58ch;
  margin: clamp(18px, 1.8vw, 26px) auto 0;
  font-size: clamp(15.5px, 1.15vw, 18.5px);
  line-height: 1.7;
  color: var(--hm-muted);
  text-align: center;
}

.hm-hero-sub a,
.hm-prose a,
.pg-lead a {
  color: var(--hm-accent, #2563ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hm-prose-light a {
  color: #ffffff;
}

.hm-hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #364156;
}

.hm-flags {
  display: inline-flex;
  align-items: center;
}

.hm-flags i {
  display: inline-flex;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(12, 18, 34, 0.14);
}

.hm-flags i + i {
  margin-left: -7px;
}

.hm-flags svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-hero-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 2.2vw, 30px);
}

.hm-hero-note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--hm-muted-2);
}

/* NOTE: side visuals - floating cards and images on the left and right edges. */
.hm-side {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hm-fl {
  position: absolute;
  rotate: var(--rot, 0deg);
  will-change: translate, scale;
  animation: hm-fl var(--dur, 10s) ease-in-out var(--del, 0s) infinite alternate;
}

@keyframes hm-fl {
  0% {
    translate: 0 0;
    scale: 1;
  }
  50% {
    translate: var(--fx, 10px) var(--fy, -8px);
    scale: var(--fs, 1.05);
  }
  100% {
    translate: calc(var(--fx, 10px) * -1) calc(var(--fy, -8px) * -0.6);
    scale: 0.97;
  }
}

.hm-hero.is-off .hm-fl {
  animation-play-state: paused;
}

.hm-card {
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px -20px rgba(20, 50, 140, 0.24), 0 2px 6px rgba(12, 18, 34, 0.05);
}

.hm-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-blue);
}

.hm-card-tag svg {
  width: 14px;
  height: 14px;
}

.hm-con-search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: #f5f8ff;
  font-size: 13px;
  font-weight: 600;
  color: var(--hm-text);
  white-space: nowrap;
  overflow: hidden;
}

.hm-typed {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-caret {
  flex: none;
  width: 2px;
  height: 15px;
  background: var(--hm-blue);
  animation: hm-blink 1s steps(1) infinite;
}

@keyframes hm-blink {
  50% { opacity: 0; }
}

.hm-card-search {
  top: clamp(112px, 10vw, 150px);
  left: 3.5%;
  width: clamp(210px, 19vw, 300px);
}

.hm-card-traffic {
  top: 46%;
  left: 1.6%;
  width: clamp(195px, 16vw, 245px);
}

.hm-chart-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-muted-2);
}

.hm-chart-num {
  display: block;
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hm-text);
}

.hm-chart-num small {
  font-size: 12px;
  font-weight: 500;
  color: var(--hm-muted-2);
}

.hm-card-traffic svg {
  display: block;
  width: 100%;
  height: 52px;
}

.hm-chart-line {
  fill: none;
  stroke: var(--hm-blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-card-rank,
.hm-card-leads {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
}

.hm-card-rank {
  bottom: 8%;
  left: 12%;
}

.hm-card-leads {
  right: 12%;
  bottom: 8%;
}

.hm-card-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.hm-card-ico-g {
  background: #f4f7ff;
  color: var(--hm-blue);
}

.hm-card-ico-blue {
  background: var(--hm-grad);
  color: #fff;
}

.hm-card-ico svg {
  width: 18px;
  height: 18px;
}

.hm-card-txt {
  display: grid;
  line-height: 1.25;
  text-align: left;
}

.hm-card-txt b {
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-text);
}

.hm-card-txt em {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--hm-blue);
}

.hm-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(20, 50, 140, 0.22));
}

.hm-art-mega {
  bottom: 4%;
  left: 2.5%;
  width: clamp(92px, 8vw, 134px);
}

.hm-art-target {
  right: 2.5%;
  bottom: 4%;
  width: clamp(68px, 6vw, 96px);
}

.hm-card-ai {
  top: clamp(108px, 9.6vw, 146px);
  right: 3.5%;
  display: grid;
  gap: 8px;
  width: clamp(205px, 18vw, 275px);
}

.hm-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-blue);
}

.hm-ai-tag svg {
  width: 14px;
  height: 14px;
}

.hm-ai-line {
  display: block;
  width: var(--w, 80%);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5ecfb, #eef3fe);
}

.hm-ai-cite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-blue);
}

.hm-ai-cite img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.hm-ai-cite svg {
  width: 13px;
  height: 13px;
}

.hm-card-serp {
  top: 46%;
  right: 1.6%;
  width: clamp(220px, 19.5vw, 310px);
  padding: 14px;
}

.hm-serp {
  display: grid;
  gap: 8px;
}

.hm-res {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(12, 18, 34, 0.06);
  border-radius: 12px;
  background: #fafcff;
}

.hm-res-you {
  border-color: rgba(37, 99, 255, 0.24);
  background: #fff;
  box-shadow: 0 8px 20px -12px rgba(37, 99, 255, 0.35);
}

.hm-res-fav {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
}

.hm-res-txt {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.hm-res-txt small {
  font-size: 10.5px;
  font-weight: 600;
  color: #12b76a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-res-txt b {
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-res-rank {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  font-size: 11px;
  font-weight: 800;
  color: #0e9f5d;
}

.hm-res-rank svg {
  width: 10px;
  height: 10px;
}

.hm-skel {
  display: block;
  width: var(--w, 26px);
  height: 7px;
  border-radius: 999px;
  background: #e8eef9;
}

.hm-res-fav.hm-skel {
  width: 26px;
  height: 26px;
}

/* NOTE: app tiles row at the foot of the hero. */
.hm-apps {
  position: absolute;
  bottom: clamp(26px, 3vw, 44px);
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  translate: -50% 0;
  pointer-events: none;
}

.hm-app {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(50px, 4.2vw, 66px);
  height: clamp(50px, 4.2vw, 66px);
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 20px;
  background: #fff;
  color: var(--hm-blue);
  box-shadow: 0 18px 36px -14px rgba(20, 50, 140, 0.28);
}

.hm-app svg {
  width: 26px;
  height: 26px;
}

.hm-app-google span {
  font-size: 26px;
  font-weight: 800;
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-app-chat {
  margin-top: 14px;
  border-color: #111827;
  background: #0b1220;
  color: #fff;
}

.hm-app-ai {
  margin-top: 10px;
}

.hm-app-search {
  border-color: transparent;
  background: var(--hm-grad);
  color: #fff;
}

@media (max-width: 1280px) {
  .hm-card-rank,
  .hm-card-leads,
  .hm-art-mega,
  .hm-art-target {
    display: none;
  }

  .hm-card-search,
  .hm-card-ai {
    top: clamp(104px, 9vw, 120px);
    width: clamp(190px, 17vw, 240px);
  }

  .hm-card-traffic,
  .hm-card-serp {
    top: auto;
    bottom: 7%;
  }

  .hm-card-traffic {
    left: 2%;
  }

  .hm-card-serp {
    right: 2%;
  }

  .hm-apps {
    bottom: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 1100px) {
  .hm-card-search,
  .hm-card-ai {
    display: none;
  }
}

@media (max-width: 960px) {
  .hm-hero-frame,
  .hm-hero-inner {
    min-height: 0;
  }

  .hm-hero-inner {
    padding-bottom: 36px;
  }

  /* NOTE: the corner cards need real width - on tablets and phones the copy takes the stage and the app tiles sit below it. */
  .hm-side {
    display: none;
  }

  .hm-apps {
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
    margin-top: 30px;
    translate: none;
  }
}

@media (max-width: 640px) {
  .hm-hero-inner {
    padding-top: 112px;
  }

  .hm-app {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-fl {
    animation: none;
    will-change: auto;
  }
}

/* ---------------------------------------------------------------
 * 2. Stats
 * ------------------------------------------------------------ */
.hm-signal {
  display: inline-flex;
  flex: none;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}

.hm-signal i {
  width: 7px;
  border-radius: 4px;
  background: var(--hm-grad);
  transform-origin: 50% 100%;
  animation: hm-bars 1.6s ease-in-out infinite;
}

.hm-signal i:nth-child(1) { height: 30%; animation-delay: 0s; }
.hm-signal i:nth-child(2) { height: 46%; animation-delay: 0.12s; }
.hm-signal i:nth-child(3) { height: 62%; animation-delay: 0.24s; }
.hm-signal i:nth-child(4) { height: 80%; animation-delay: 0.36s; }
.hm-signal i:nth-child(5) { height: 100%; animation-delay: 0.48s; }

@keyframes hm-bars {
  0%,
  100% {
    scale: 1 1;
    opacity: 1;
  }
  50% {
    scale: 1 0.45;
    opacity: 0.55;
  }
}

.hm-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
}

.hm-figure {
  --pad: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  padding: var(--pad) var(--pad) 0;
  overflow: hidden;
}

.hm-figure-num,
.hm-figure-suffix {
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-figure-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.hm-figure-suffix {
  margin-left: 2px;
  font-size: 0.6em;
  font-style: normal;
  vertical-align: 0.5em;
}

.hm-figure-lbl {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hm-muted);
}

.hm-trend {
  display: block;
  width: calc(100% + 2 * var(--pad));
  height: 64px;
  margin: 18px calc(-1 * var(--pad)) 0;
  overflow: visible;
}

.hm-trend path {
  fill: none;
  stroke: var(--hm-blue);
  stroke-opacity: 0.55;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* NOTE: the sparkline "draws" with a clip-path wipe once the cards scroll into view. */
.js .hm-trend {
  clip-path: inset(-10px 100% -10px 0);
}

.js .hm-figures.is-in .hm-trend {
  clip-path: inset(-10px 0 -10px 0);
  transition: clip-path 2s var(--ease) calc(var(--i, 0) * 140ms + 300ms);
}

/* ---------------------------------------------------------------
 * 3. Awards marquee
 * ------------------------------------------------------------ */
.hm-awards .hm-head {
  margin-bottom: clamp(10px, 1.6vw, 20px);
}

.hm-marquee-shell {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* NOTE: vertical padding is headroom - .marquee clips overflow, which would slice off the hover lift. */
.marquee {
  width: 100%;
  padding-block: 18px 28px;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: award-scroll 45s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

/* NOTE: two identical rows sit side by side, so sliding exactly 50% lands copy 2 where copy 1 began. */
@keyframes award-scroll {
  to {
    transform: translateX(-50%);
  }
}

.award-row {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.award {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 168px;
  padding: 20px 14px 18px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  background: #fff;
  box-shadow: var(--hm-shadow);
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.award:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 255, 0.35);
  box-shadow: var(--hm-shadow-lg);
}

.award-badge {
  display: grid;
  place-items: center;
  height: 88px;
  /* NOTE: logos show in full colour by default; only the hover lift remains. */
  transition: filter 0.45s var(--ease), opacity 0.45s var(--ease), scale 0.45s var(--ease);
}

.award-badge img {
  width: auto;
  max-width: 100%;
  height: 88px;
  object-fit: contain;
}

.award:hover .award-badge {
  filter: none;
  opacity: 1;
  scale: 1.06;
}

.award-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--hm-muted-2);
  transition: color 0.35s var(--ease);
}

.award:hover .award-name {
  color: var(--hm-text);
}

/* ---------------------------------------------------------------
 * 4. Before / after - the analytics window
 * ------------------------------------------------------------ */
.hm-versus {
  background:
    radial-gradient(rgba(37, 99, 255, 0.12) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--hm-paper), var(--hm-tint-1) 50%, var(--hm-paper));
}

.hm-switcher {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(26px, 3vw, 40px);
}

/* NOTE: radios stay focusable for keyboard users, just not visible. */
.hm-switcher > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hm-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--hm-shadow);
}

.hm-toggle-thumb {
  position: absolute;
  inset: 6px auto 6px 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--hm-grad-warm);
  box-shadow: 0 8px 20px rgba(226, 86, 60, 0.3);
  transition: translate 0.6s var(--hm-spring), background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

#ba-after:checked ~ .hm-toggle .hm-toggle-thumb {
  translate: 100% 0;
  background: var(--hm-grad);
  box-shadow: 0 8px 20px rgba(37, 99, 255, 0.32);
}

.hm-toggle-lbl {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px clamp(16px, 2vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: var(--hm-muted);
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

#ba-before:checked ~ .hm-toggle .hm-lbl-before,
#ba-after:checked ~ .hm-toggle .hm-lbl-after {
  color: #fff;
}

#ba-before:focus-visible ~ .hm-toggle,
#ba-after:focus-visible ~ .hm-toggle {
  outline: 2px solid var(--hm-blue);
  outline-offset: 4px;
}

.hm-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--hm-shadow-lg);
}

.hm-window-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hm-line);
  background: #fbfcfe;
}

.hm-panel-stack {
  display: grid;
}

/* NOTE: both panels share one grid cell; the checked radio decides which one is visible. */
.hm-panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 52px);
  padding: clamp(24px, 3.4vw, 46px);
  opacity: 0;
  visibility: hidden;
  translate: 0 14px;
  transition: opacity 0.5s var(--ease), translate 0.6s var(--ease), visibility 0s linear 0.5s;
}

#ba-before:checked ~ .hm-window .hm-panel-before,
#ba-after:checked ~ .hm-window .hm-panel-after {
  opacity: 1;
  visibility: visible;
  translate: none;
  transition-delay: 0.12s, 0.12s, 0s;
}

.hm-panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 90, 60, 0.1);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hm-red);
}

.hm-panel-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: hm-ping 1.8s ease-out infinite;
}

.hm-panel-after .hm-panel-chip {
  background: rgba(37, 99, 255, 0.1);
  color: var(--hm-blue);
}

@keyframes hm-ping {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  80%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hm-panel-heading {
  margin: 16px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--hm-text);
}

.hm-ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.hm-ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  opacity: 0;
  translate: -8px 0;
  transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
}

#ba-before:checked ~ .hm-window .hm-panel-before .hm-ticks li,
#ba-after:checked ~ .hm-window .hm-panel-after .hm-ticks li {
  opacity: 1;
  translate: none;
  transition-delay: calc(var(--t) * 45ms + 200ms);
}

.hm-tick-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 90, 60, 0.12);
  color: var(--hm-red);
}

.hm-tick-mark svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}

.hm-panel-after .hm-tick-mark {
  background: var(--hm-grad);
  color: #fff;
}

.hm-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 14px;
}

.hm-gauge {
  --tone: var(--hm-red);
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 12px 18px;
  border: 1px solid var(--hm-line);
  border-radius: 20px;
  background: var(--hm-paper);
  text-align: center;
}

.hm-panel-after .hm-gauge {
  --tone: var(--hm-blue);
}

.hm-ring {
  --hm-p: 0;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--hm-p) * 1%), rgba(12, 18, 34, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  transition: --hm-p 1.4s var(--ease);
}

.hm-panel-after .hm-ring {
  background: conic-gradient(#2563ff, #22d3ee calc(var(--hm-p) * 1%), rgba(12, 18, 34, 0.08) 0);
}

#ba-before:checked ~ .hm-window .hm-panel-before .hm-ring,
#ba-after:checked ~ .hm-window .hm-panel-after .hm-ring {
  --hm-p: var(--fill);
  transition-delay: calc(var(--t) * 90ms + 250ms);
}

.hm-gauge-num {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hm-text);
}

.hm-gauge-lbl {
  font-size: 12.5px;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------------
 * 5. Search has changed - sticky copy beside a rail of key facts
 * ------------------------------------------------------------ */
.hm-shift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
}

.hm-shift-copy {
  position: sticky;
  top: var(--hm-sticky);
}

/* NOTE: each card carries its own rail node (::before) and the segment down to the next node (::after),
   because card heights differ - one list-long line could never start and end on a node. */
.hm-points {
  --node: 16px;
  --gut: 48px;
  --gap: clamp(16px, 1.8vw, 24px);
  --pad: clamp(22px, 2.2vw, 30px);
  --ny: calc(var(--pad) + 28px);
  display: grid;
  gap: var(--gap);
  padding-left: var(--gut);
}

.hm-point {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: var(--pad);
}

.hm-point:hover {
  border-color: rgba(37, 99, 255, 0.55);
  box-shadow: var(--hm-shadow-lg);
}

.hm-point::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--ny) - var(--node) / 2);
  left: calc(-1 * var(--gut));
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--hm-grad);
  box-shadow: 0 0 0 4px var(--hm-paper), 0 0 0 5px rgba(37, 99, 255, 0.25);
  animation: hm-node 2.4s ease-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

@keyframes hm-node {
  from {
    box-shadow: 0 0 0 4px var(--hm-paper), 0 0 0 5px rgba(37, 99, 255, 0.35);
  }
  to {
    box-shadow: 0 0 0 4px var(--hm-paper), 0 0 0 14px rgba(37, 99, 255, 0);
  }
}

.hm-point:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--ny);
  left: calc(-1 * var(--gut) + var(--node) / 2 - 1px);
  width: 2px;
  height: calc(100% + var(--gap));
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--hm-blue), var(--hm-cyan)) 0 0 / 100% 100% no-repeat,
    var(--hm-line-2);
}

/* NOTE: scroll-driven beam fill. Browsers without view() timelines simply show the filled rail. */
@supports (animation-timeline: view()) {
  .hm-point:not(:last-child)::after {
    animation: hm-beam linear both;
    animation-timeline: view();
    animation-range: cover 25% cover 60%;
  }
}

@keyframes hm-beam {
  from {
    background-size: 100% 0%, auto;
  }
}

.hm-point-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--hm-grad);
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.28);
  color: #fff;
  transition: rotate 0.6s var(--hm-spring), scale 0.6s var(--hm-spring);
}

.hm-point:hover .hm-point-icon {
  rotate: -8deg;
  scale: 1.08;
}

.hm-point-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.hm-point p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--hm-text);
}

/* ---------------------------------------------------------------
 * 6. Services bento
 * NOTE: 4 columns from 1101px - head + intro span two columns, the two feature tiles are two rows tall.
 * ------------------------------------------------------------ */
.hm-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
}

.hm-bento-head {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: end;
}

.hm-bento-intro {
  grid-column: 1 / 3;
  grid-row: 2;
  padding-right: clamp(0px, 2vw, 30px);
}

.hm-bento-intro .hm-prose-lead {
  margin-top: 6px;
}

.hm-svc-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.hm-seal {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}

.hm-seal svg {
  width: 100%;
  height: 100%;
  animation: hm-turn 18s linear infinite;
}

.hm-seal text {
  fill: var(--hm-text);
  text-transform: uppercase;
}

.hm-seal-logo {
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
}

.hm-seal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes hm-turn {
  to {
    rotate: 360deg;
  }
}

/* NOTE: the first service sits beside the heading + intro; the rest fill the 4-column rows below. */
.hm-tile-feature:nth-of-type(1) {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

/* NOTE: tones colour the glow behind each tile's artwork. */
.hm-tone-blue { --c1: rgba(37, 99, 255, 0.34); --c2: rgba(34, 211, 238, 0.26); }
.hm-tone-violet { --c1: rgba(124, 92, 255, 0.32); --c2: rgba(37, 99, 255, 0.24); }
.hm-tone-teal { --c1: rgba(34, 211, 238, 0.34); --c2: rgba(18, 183, 106, 0.2); }

.hm-tile {
  position: relative;
}

.hm-tile-in {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2vw, 28px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow);
  transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}

.hm-tile:hover .hm-tile-in {
  translate: 0 -6px;
  border-color: rgba(37, 99, 255, 0.4);
  box-shadow: 0 30px 60px -18px rgba(20, 50, 140, 0.28);
}

.hm-tile-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 92px;
}

.hm-tile-halo {
  position: absolute;
  inset: -8% -6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, var(--c1), transparent 62%),
    radial-gradient(circle at 70% 65%, var(--c2), transparent 60%);
  filter: blur(14px);
  transition: scale 0.6s var(--ease);
}

.hm-tile:hover .hm-tile-halo {
  scale: 1.25;
}

.hm-tile-art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: translate 0.6s var(--hm-spring);
}

.hm-tile:hover .hm-tile-art img {
  translate: 0 -6px;
}

.hm-tile-name {
  margin: 20px 0 0;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--hm-text);
}

/* NOTE: the whole card is the hit area - the link's ::after stretches over the tile. */
.hm-tile-link {
  color: inherit;
}

.hm-tile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--hm-r-lg);
}

.hm-tile-link:focus-visible {
  outline: none;
}

.hm-tile:has(.hm-tile-link:focus-visible) .hm-tile-in {
  outline: 2px solid var(--hm-blue);
  outline-offset: 3px;
}

.hm-tile-text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--hm-muted);
}

.hm-tile-go {
  position: absolute;
  top: clamp(22px, 2vw, 28px);
  right: clamp(22px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hm-line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--hm-text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), rotate 0.5s var(--hm-spring);
}

.hm-tile-go svg {
  width: 16px;
  height: 16px;
}

.hm-tile:hover .hm-tile-go {
  border-color: transparent;
  background: var(--hm-grad);
  color: #fff;
  rotate: 45deg;
}

/* NOTE: feature tiles - big artwork centred on a lit stage, copy at the foot. */
.hm-tile-feature .hm-tile-in {
  padding: clamp(24px, 2.2vw, 32px);
  background:
    radial-gradient(rgba(37, 99, 255, 0.1) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--hm-tint-1), #fff 62%);
}

.hm-tile-feature .hm-tile-art {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 220px;
  margin-top: 10px;
}

.hm-tile-feature .hm-tile-halo {
  inset: 12% 16%;
  filter: blur(22px);
}

.hm-tile-feature .hm-tile-art img {
  width: min(210px, 82%);
  height: auto;
  animation: hm-bob 5s ease-in-out infinite alternate;
}

.hm-tile-feature .hm-tile-name {
  font-size: clamp(21px, 1.8vw, 26px);
  letter-spacing: -0.035em;
}

.hm-tile-feature .hm-tile-text {
  font-size: 15px;
}

/* ---------------------------------------------------------------
 * 7. Trust band
 * ------------------------------------------------------------ */
.hm-tint {
  isolation: isolate;
  background: linear-gradient(180deg, var(--hm-tint-1) 0%, var(--hm-tint-2) 62%, var(--hm-paper) 100%);
}

.hm-tint::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hm-line-2), transparent);
}

.hm-hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hm-glow {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 56vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.16), transparent 68%);
  filter: blur(100px);
  opacity: 0.85;
  translate: -50% -50%;
}

.hm-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(37, 99, 255, 0.13) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 66%);
  mask-image: radial-gradient(circle, #000 8%, transparent 66%);
  translate: -50% -50%;
  animation: hm-rings 38s linear infinite;
}

@keyframes hm-rings {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

.hm-band .container {
  position: relative;
  z-index: 1;
}

.hm-band-panel {
  --usa-red: #b22234;
  --usa-navy: #3c3b6e;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(30px, 3.6vw, 56px);
  border: 1px solid var(--hm-line);
  border-radius: clamp(24px, 2.6vw, 36px);
  background:
    linear-gradient(118deg, rgba(60, 59, 110, 0.26) 0%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%, rgba(178, 34, 52, 0.22) 100%),
    rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--hm-shadow);
}

/* NOTE: a red-to-navy hairline down the seam between the two halves. */
.hm-band-panel::after {
  content: "";
  position: absolute;
  top: clamp(24px, 3vw, 44px);
  bottom: clamp(24px, 3vw, 44px);
  left: calc(46% - 0.5px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(178, 34, 52, 0.45), rgba(60, 59, 110, 0.45), transparent);
}

.hm-band-flag {
  display: inline-block;
  margin-left: 0.18em;
  line-height: 0;
  vertical-align: baseline;
}

.hm-band-flag svg {
  display: block;
  width: auto;
  height: 0.74em;
  aspect-ratio: 24 / 16;
  border-radius: 0.08em;
  box-shadow: 0 2px 8px rgba(12, 18, 34, 0.18);
}

.hm-band-l .hm-h2 {
  max-width: 14ch;
}

.hm-band-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(22px, 2.4vw, 32px);
}

.hm-band-r .hm-prose {
  max-width: none;
}

.hm-band-r .hm-prose:first-child {
  margin-top: 0;
}

/* ---------------------------------------------------------------
 * 8. Process
 * ------------------------------------------------------------ */
.flow {
  --flow-thumb: clamp(180px, 15vw, 252px);
  --flow-gap: clamp(28px, 3.6vw, 64px);
  --flow-stagger: clamp(24px, 3.4vw, 54px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--flow-gap);
  max-width: min(1400px, 100%);
  margin-inline: auto;
}

.flow-step {
  position: relative;
  text-align: center;
}

/* NOTE: every second step drops, so the row reads as a zig-zag. */
@media (min-width: 861px) {
  .flow-step:nth-child(even) {
    margin-top: var(--flow-stagger);
  }
}

.flow-thumb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--flow-thumb);
  height: var(--flow-thumb);
  margin: 0 auto clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(37, 99, 255, 0.1) 0%, rgba(34, 211, 238, 0.1) 38%, #fff 82%);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), translate 0.5s var(--ease);
}

.flow-step:hover .flow-thumb {
  translate: 0 -6px;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--hm-shadow-lg);
}

.flow-thumb img {
  width: 68%;
  height: auto;
}

/* NOTE: the step number becomes a chip straddling the tile's bottom edge. */
.flow-num {
  position: absolute;
  bottom: -13px;
  left: 50%;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--hm-grad);
  box-shadow: 0 6px 16px rgba(37, 99, 255, 0.3);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.flow-body {
  margin-top: 10px;
}

.flow-body h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hm-text);
}

.flow-body p {
  max-width: 38ch;
  margin: 0 auto;
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.8;
  color: var(--hm-muted);
}

/* NOTE: the dashed wave + arrowheads is data-URI art, drawn only in the four-across layout. */
@media (min-width: 1101px) {
  .flow::before {
    content: "";
    position: absolute;
    top: calc(var(--flow-thumb) / 2);
    left: 0;
    right: 0;
    height: var(--flow-stagger);
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7cfa' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23239bf6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(-17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323baf2' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(17 12 12)'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232563ff'/%3E%3Cstop offset='1' stop-color='%2322d3ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12.5 0 C25 0 25 100 37.5 100 C50 100 50 0 62.5 0 C75 0 75 100 87.5 100' fill='none' stroke='url(%23g)' stroke-opacity='0.5' stroke-width='2' stroke-dasharray='7 7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(25% - 5px) 50%, 50% 50%, calc(75% + 5px) 50%, center;
    background-size: 20px 20px, 20px 20px, 20px 20px, 100% 100%;
  }
}

/* ---------------------------------------------------------------
 * 9. Testimonials
 * NOTE: horizontal scroll-snap slider; home.js wires the prev/next arrows.
 * ------------------------------------------------------------ */
.hm-voices-head {
  align-items: flex-end;
}

.hm-quote-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--hm-blue);
  opacity: 0.9;
}

.hm-quote-mark path:last-child {
  color: var(--hm-cyan);
}

.hm-rail-nav {
  display: inline-flex;
  flex: none;
  gap: 10px;
}

.hm-rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hm-line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--hm-text);
  box-shadow: var(--hm-shadow);
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
}

.hm-rail-btn[data-rail="-1"] svg {
  transform: rotate(180deg);
}

.hm-rail-btn:hover:not(:disabled) {
  border-color: transparent;
  background: var(--hm-grad);
  color: #fff;
  transform: translateY(-2px);
}

.hm-rail-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.hm-voices-rail {
  --rail-gap: clamp(14px, 1.5vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 3);
  gap: var(--rail-gap);
  padding: 6px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hm-voices-rail::-webkit-scrollbar {
  display: none;
}

.hm-voice {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hm-voice:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 255, 0.28);
  box-shadow: var(--hm-shadow-lg);
}

.hm-voice-stars {
  display: inline-flex;
  gap: 3px;
  color: #f5b301;
}

.hm-voice blockquote {
  flex: 1 1 auto;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hm-text);
}

.hm-voice figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hm-line);
}

.hm-voice-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--hm-grad);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.hm-voice-who strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--hm-text);
}

.hm-voice-who small {
  font-size: 12.5px;
  color: var(--hm-muted-2);
}

@media (max-width: 1100px) {
  .hm-voices-rail {
    grid-auto-columns: calc((100% - var(--rail-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .hm-voices-rail {
    grid-auto-columns: 88%;
  }
}

/* ---------------------------------------------------------------
 * 10. Closing CTA panel
 * ------------------------------------------------------------ */
.hm-cta-panel {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 110px) clamp(22px, 5vw, 80px);
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 40px);
  background: linear-gradient(120deg, #1846d6 0%, #2563ff 38%, #1fa3f2 72%, #22d3ee 100%);
  background-size: 200% 200%;
  box-shadow: 0 40px 90px -30px rgba(37, 99, 255, 0.55);
  animation: hm-sheen 14s ease-in-out infinite alternate;
}

@keyframes hm-sheen {
  to {
    background-position: 100% 100%;
  }
}

.hm-cta-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* NOTE: a perspective floor drifting toward the viewer. */
.hm-cta-floor {
  position: absolute;
  right: -30%;
  bottom: -10%;
  left: -30%;
  height: 70%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 80%);
  mask-image: linear-gradient(0deg, #000 10%, transparent 80%);
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  animation: hm-floor 6s linear infinite;
}

@keyframes hm-floor {
  to {
    background-position: 0 60px;
  }
}

.hm-cta-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hm-cta-line path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.js .hm-cta-line {
  clip-path: inset(0 100% 0 0);
}

.js .hm-cta-panel.is-in .hm-cta-line {
  clip-path: inset(0);
  transition: clip-path 2.4s var(--ease) 0.3s;
}

.hm-cta-peak {
  position: absolute;
  top: 8%;
  left: 95%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}

.hm-cta-panel.is-in .hm-cta-peak,
html:not(.js) .hm-cta-peak {
  opacity: 1;
  transition: opacity 0.4s ease 2.5s;
  animation: hm-peak 2s ease-out 2.5s infinite;
}

@keyframes hm-peak {
  from {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  to {
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0);
  }
}

.hm-cta-inner {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.hm-cta-btn {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---------------------------------------------------------------
 * 11. FAQ
 * ------------------------------------------------------------ */
.hm-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

.hm-faq-left {
  position: sticky;
  top: var(--hm-sticky);
  display: grid;
  gap: clamp(20px, 2.2vw, 30px);
}

/* NOTE: enquiry form sits directly below the FAQ heading in the left column. */
.hm-cf-wrap {
  width: 100%;
}

.hm-cf-card {
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow-lg);
}

.hm-cf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
}

.hm-cf-submit {
  width: auto;
  min-width: 190px;
}

.hm-faq-card {
  position: relative;
  margin-top: clamp(26px, 3vw, 40px);
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  border-radius: var(--hm-r-lg);
  background: var(--hm-grad);
  box-shadow: 0 30px 60px -24px rgba(37, 99, 255, 0.55);
  color: #fff;
}

/* NOTE: a slow light sweep across the card. */
.hm-faq-card::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  rotate: 18deg;
  animation: hm-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hm-sweep {
  0%,
  55% {
    translate: 0 0;
  }
  100% {
    translate: 420% 0;
  }
}

.hm-faq-card h3 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.hm-faq-card p {
  position: relative;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.hm-faq-cta {
  position: relative;
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 2px clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  background: #fff;
  box-shadow: var(--hm-shadow);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.faq-list details:hover {
  border-color: rgba(37, 99, 255, 0.22);
}

.faq-list details.is-open {
  border-color: rgba(37, 99, 255, 0.35);
  box-shadow: 0 14px 34px rgba(37, 99, 255, 0.12);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 1.8vw, 21px) 0;
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.25vw, 18.5px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--hm-text);
  list-style: none;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* NOTE: the plus's horizontal bar stays put; only the vertical one fades, so + turns into -. */
.faq-list summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--hm-muted-2);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  transition: transform 0.35s var(--ease), color 0.3s ease;
}

.faq-list details.is-open summary {
  color: var(--hm-blue);
}

.faq-list details.is-open summary::after {
  color: var(--hm-blue);
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat;
  transform: rotate(180deg);
}

/* NOTE: 0fr -> 1fr animates to the answer's natural height, which a plain height:auto transition cannot do.
   Collapsed-by-default only once main.js has attached (.faq-js), so no-JS visitors still get native <details>. */
.faq-ans {
  display: grid;
  grid-template-rows: 1fr;
}

.faq-ans-in {
  min-height: 0;
  overflow: hidden;
}

.faq-js .faq-ans {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}

.faq-js details.is-open .faq-ans {
  grid-template-rows: 1fr;
}

.faq-list details p {
  margin: 0;
  padding: 4px clamp(20px, 4vw, 70px) clamp(18px, 2vw, 24px) 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hm-muted);
}

.faq-js details p {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-js details.is-open p {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

/* ---------------------------------------------------------------
 * 12. Motion helpers (reveal on scroll, hero rise)
 * NOTE: content is only hidden when the .js class is present, so no-JS visitors still see everything.
 * Uses the standalone `translate` property so `transform` stays free for components that rest on it.
 * ------------------------------------------------------------ */
@keyframes hm-in {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

.js .hm-rise {
  animation: hm-in 1s var(--ease) backwards;
  animation-delay: calc(var(--i) * 120ms + 80ms);
}

.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-in {
  opacity: 1;
  animation: hm-in 0.95s var(--ease) backwards;
}

/* NOTE: children with an inline --i (cards in a grid) stagger one after another. */
.js [data-reveal].is-in > [style*="--i"] {
  animation: hm-in 0.95s var(--ease) calc(var(--i) * 110ms) backwards;
}

/* ---------------------------------------------------------------
 * 13. Responsive
 * ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .hm-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-voices-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-voices-aside {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .hm-voices-aside h3 {
    margin: 0;
  }

  .hm-quote-mark {
    width: 52px;
    height: 52px;
  }

  .hm-voices-line {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hm-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-bento-head,
  .hm-bento-intro {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hm-bento-intro {
    margin-bottom: 12px;
    padding-right: 0;
  }

  .hm-tile-feature:nth-of-type(n) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hm-band-panel,
  .hm-shift-grid,
  .hm-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-shift-copy,
  .hm-faq-left {
    position: static;
  }

  .hm-band-panel::after {
    display: none;
  }

  .hm-band-l .hm-h2 {
    max-width: none;
  }

  .hm-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-gauges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hm-voices-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-head-split {
    align-items: flex-start;
  }

  .hm-signal {
    display: none;
  }

  .hm-gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-points {
    --gut: 32px;
  }

  /* NOTE: stacked steps - the tile sits beside the copy, joined by a spine. */
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .flow-thumb {
    --flow-thumb: 120px;
    width: 120px;
    height: 120px;
    margin: 0;
  }

  .flow-num {
    bottom: -11px;
  }

  .flow-body {
    margin-top: 0;
  }

  .flow-body p {
    max-width: none;
    margin-inline: 0;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 640px) {
  .hm-figures,
  .hm-bento,
  .hm-ticks {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-console {
    padding: 12px 12px 16px;
    transform: none;
  }

  .hm-serp {
    --row: 54px;
  }

  .hm-res-txt b {
    font-size: 12.5px;
  }

  .hm-hero-chart {
    width: 160px;
    padding: 10px 12px 6px;
  }

  .hm-chart-num {
    font-size: 18px;
  }

  .hm-f1 { top: -2%; right: -2%; left: auto; width: 132px; }
  .hm-f2 { display: none; }
  .hm-f4 { bottom: -8%; width: 140px; }

  .hm-toggle-lbl {
    padding: 10px 12px;
    white-space: normal;
  }

  .hm-svc-actions {
    flex-wrap: wrap;
  }

  .flow-step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .flow-body p {
    text-align: center;
    -webkit-hyphens: none;
    hyphens: none;
  }
}

/* ---------------------------------------------------------------
 * 14. Reduced motion: everything visible, nothing moving
 * ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hm-page *,
  .hm-page *::before,
  .hm-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
  }

  .hm-trend,
  .hm-cta-line {
    clip-path: none !important;
  }

  .hm-cta-peak {
    opacity: 1;
  }

  .hm-ring {
    --hm-p: var(--fill);
  }
}

/* ---------------------------------------------------------------
 * 14. Responsive polish (tablet + mobile audit)
 * ------------------------------------------------------------ */
/* NOTE: five stat cards on tablet - 3 on the first row, 2 wider on the second, so there is no orphan card. */
@media (min-width: 641px) and (max-width: 1200px) {
  .hm-figures-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hm-figures-5 > .hm-figure {
    grid-column: span 2;
  }

  .hm-figures-5 > .hm-figure:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* NOTE: justified copy leaves big word gaps on narrow screens, so phones read left-aligned (hero stays centred). */
@media (max-width: 640px) {
  :is(.hm-prose, .hm-tile-text, .hm-faq-card p, .faq-list p):not(.hm-prose-center),
  .hm-voice blockquote,
  .flow-body p {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  .hm-hero-sub {
    text-align: center;
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  .hm-voices-head .hm-prose {
    max-width: none;
  }
}
