/* ── Boffa Marketing site ────────────────────────────────────────────────────
   Shared styles for every page: navy + one strong brand blue, bold sans
   headings, clear CTAs. Page-specific sections are grouped further down.
──────────────────────────────────────────────────────────────────────────── */

/* Self-hosted Plus Jakarta Sans (variable, OFL licence) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/PlusJakartaSans-Variable.ttf?v=89b3fb38aa") format("truetype");
}

:root {
  --radius-btn: 12px;
  --ink: #0a1233;
  --ink-2: #111c47;
  --blue: #2f5bff;
  --blue-600: #1f47e6;
  --blue-50: #eef2ff;
  --blue-100: #dde5ff;
  --orange: #ff7a2f;
  --green: #12a150;
  --green-50: #e8f7ee;

  --bg: #ffffff;
  --tint: #f5f7fc;
  --line: #e3e8f3;
  --text: #0a1233;
  --muted: #56617c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 51, 0.06), 0 2px 8px rgba(10, 18, 51, 0.04);
  --shadow: 0 10px 30px rgba(10, 18, 51, 0.08), 0 2px 6px rgba(10, 18, 51, 0.04);
  --shadow-lg: 0 30px 70px rgba(10, 18, 51, 0.14), 0 8px 20px rgba(10, 18, 51, 0.06);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 91, 255, 0.28);
}

.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 12px 26px rgba(47, 91, 255, 0.34);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--white {
  background: #fff;
  color: var(--blue);
}

.btn--white:hover {
  box-shadow: 0 12px 28px rgba(10, 18, 51, 0.25);
}

/* ── Announcement bar ─────────────────────────────────────────────────────── */

.topbar {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
}

.topbar__clip {
  min-height: 0;
  overflow: hidden;
}

/* On the first page of a visit the bar starts tucked away and slides down from the top (site.js adds .is-in). */
.js:not(.returning) .topbar {
  grid-template-rows: 0fr;
}

.js:not(.returning) .topbar__inner {
  transform: translateY(-100%);
}

.js:not(.returning) .topbar__text,
.js:not(.returning) .topbar__link {
  opacity: 0;
}

/* The dark bar eases down first, then its message fades in just behind it. */
.js .topbar.is-in {
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.js .topbar.is-in .topbar__inner {
  transform: none;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.js .topbar.is-in .topbar__text,
.js .topbar.is-in .topbar__link {
  opacity: 1;
  transition: opacity 0.45s ease 0.45s;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.topbar__text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__link {
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.topbar__link:hover {
  text-decoration: underline;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(10, 18, 51, 0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  gap: 14px;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 36px;
}

/* The header logo, drawn inline. On hover it fills with brand blue from left to right. */
.logo__art {
  position: relative;
  display: block;
  line-height: 0;
}

.logo__mark,
.logo__sweep {
  display: block;
  width: auto;
  height: 36px;
}

.logo__mark {
  fill: var(--ink);
}

.logo__sweep {
  position: absolute;
  inset: 0;
  fill: var(--blue);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: clip-path 0.45s cubic-bezier(0.6, 0, 0.3, 1);
}

.logo:hover .logo__sweep,
.logo:focus-visible .logo__sweep {
  clip-path: inset(0 0 0 0);
}

.logo__name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo--stacked img {
  height: auto;
  width: 200px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

/* Laptop widths: keep every menu label on one line by dropping the small company name beside the logo and
   tightening the links. */
@media (max-width: 1360px) {
  .nav .logo__name {
    display: none;
  }

  .nav__links {
    margin-left: 4px;
    gap: 0;
  }

  .nav__links a {
    padding: 8px 10px;
  }
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--tint);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav__phone svg {
  color: var(--blue);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 40px rgba(10, 18, 51, 0.1);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 20px;
}

.mobile-menu__inner a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__inner .btn {
  margin-top: 18px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(47, 91, 255, 0.14), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 122, 47, 0.08), transparent 70%),
    linear-gradient(to right, rgba(10, 18, 51, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(10, 18, 51, 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.18);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.highlight {
  position: relative;
  isolation: isolate;
  color: var(--blue);
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0.85;
  z-index: -1;
}

.hero__lead {
  margin-top: 22px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating__stars {
  color: #ffb400;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.rating__text {
  color: var(--muted);
  font-size: 0.9rem;
}

.rating__text strong {
  color: var(--ink);
}

/* The Clutch rating as a badge: the score in a navy tile, then the stars and where the rating comes from. */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.rating-badge__score {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.rating-badge__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.rating-badge .rating__stars {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.rating-badge__label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__trust-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platforms li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Hero infographic: the journey we manage, from ad to reported growth */

.hero__visual {
  position: relative;
}

.journey {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 44px;
}

.journey::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #c3cffd 0 6px, transparent 6px 12px);
}

.journey__step {
  position: relative;
}

.journey__node {
  position: absolute;
  left: -44px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px var(--blue-100), 0 6px 14px rgba(47, 91, 255, 0.3);
}

.journey__node--green {
  background: var(--green);
  box-shadow: 0 0 0 1px #bfe8d0, 0 6px 14px rgba(18, 161, 80, 0.3);
}

.journey__card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.journey__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey__chips {
  display: flex;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.journey__chips span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.journey__chips span:first-child {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* Search ad mock */

.serp__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.serp__bar svg {
  color: #8f99b3;
  flex-shrink: 0;
}

.serp__ad {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--tint);
}

.serp__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.serp__sponsored {
  color: var(--ink);
  font-weight: 800;
}

.serp__headline {
  margin-top: 4px;
  color: #1a3fd6;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.serp__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.serp__sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  color: #1a3fd6;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Tracked conversion */

.conv {
  display: flex;
  align-items: center;
  gap: 14px;
}

.conv__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green);
  flex-shrink: 0;
}

.conv__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.conv__text {
  color: var(--muted);
  font-size: 0.8rem;
}

.conv__time {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Reported growth */

.growth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.growth__kpi {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
}

.growth__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.growth__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.growth__value svg {
  color: var(--green);
}

.growth__chart {
  grid-column: 1 / -1;
}

.growth__chart svg {
  width: 100%;
  height: 64px;
}

.growth__line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ── Stats ────────────────────────────────────────────────────────────────── */

.stats {
  background: var(--ink);
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 56px;
  padding-bottom: 56px;
}

.stat {
  padding: 0 28px;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat__value {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.stat__value small {
  margin-left: 4px;
  color: #8ea6ff;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
}

.stat__label {
  margin-top: 12px;
  max-width: 230px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--tint {
  background: var(--tint);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
}

.section-head--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.eyebrow--light {
  color: #8ea6ff;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.section-head--center .section-lead,
.faq__intro .section-lead {
  margin-top: 16px;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

/* ── Services ─────────────────────────────────────────────────────────────── */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #5b7cff);
  box-shadow: 0 8px 18px rgba(47, 91, 255, 0.25);
}

.service__icon img {
  width: 24px;
  height: 24px;
}

.service__title {
  margin-top: 22px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 22px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.service__link {
  margin-top: auto;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.service__link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.service__link:hover span {
  transform: translateX(4px);
}

/* ── Live service cards (paid media and web design): the whole card is the link, and its icon plays a short animation on hover (or
   once as the card scrolls into view on touch screens). ── */
.services--live .service {
  position: relative;
  cursor: pointer;
}

.services--live .service__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.services--live .service:hover,
.services--live .service:focus-within {
  border-color: var(--blue);
}

.services--live .service__icon {
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s ease;
}

.services--live .service:hover .service__icon,
.services--live .service:focus-within .service__icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  box-shadow: 0 14px 26px rgba(47, 91, 255, 0.35);
}

.services--live .service:hover .service__link span,
.services--live .service:focus-within .service__link span {
  transform: translateX(5px);
}

.ico {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__icon .ico {
  width: 26px;
  height: 26px;
}

.ico .ico-fill {
  fill: currentColor;
  stroke: none;
}

.ico * {
  transform-box: fill-box;
  transform-origin: center;
}

.ico-bar { transform-origin: 50% 100%; }
.ico-tag { transform-box: view-box; transform-origin: 7.6px 7.6px; }
.ico-rays,
.ico-spark { opacity: 0.35; }

/* What each icon does */
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-bar { animation: ico-grow 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-bar--2 { animation-delay: 0.08s; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-bar--3 { animation-delay: 0.16s; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-heart { animation: ico-beat 0.8s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-bubble { animation: ico-wiggle 0.6s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-tag { animation: ico-swing 0.9s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-cart { animation: ico-roll 0.8s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-item { animation: ico-drop 0.7s cubic-bezier(0.3, 0, 0.4, 1.4) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-rays { animation: ico-flash 0.9s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-spark { animation: ico-flash 0.9s ease 0.05s both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-drop { animation: ico-fall 0.9s ease-in both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-funnel { animation: ico-squeeze 0.9s ease both; }

@keyframes ico-grow { 0% { transform: scaleY(0.2); } 100% { transform: none; } }
@keyframes ico-beat { 0%, 100% { transform: none; } 25% { transform: scale(1.4); } 45% { transform: scale(0.9); } 65% { transform: scale(1.2); } }
@keyframes ico-wiggle { 0%, 100% { transform: none; } 30% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }
@keyframes ico-swing { 0%, 100% { transform: none; } 25% { transform: rotate(-16deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
@keyframes ico-roll { 0%, 100% { transform: none; } 40% { transform: translateX(2.5px); } 70% { transform: translateX(-1px); } }
@keyframes ico-drop { 0% { transform: translateY(-11px); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes ico-flash { 0% { opacity: 0.35; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes ico-fall { 0% { transform: translateY(-5px); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(12px); opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } }
@keyframes ico-squeeze { 0%, 100% { transform: none; } 50% { transform: scale(0.94, 1.04); } }

/* ── Process ──────────────────────────────────────────────────────────────── */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--blue-100) 0 8px, transparent 8px 14px);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px var(--blue-100), 0 10px 22px rgba(47, 91, 255, 0.25);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Keeps a hyphenated word together (the font has no non-breaking hyphen). */
.nobr {
  white-space: nowrap;
}

/* ── Case studies ─────────────────────────────────────────────────────────── */

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.case:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 166, 255, 0.45);
}

.case__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0d1640;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.case:hover .case__media img {
  transform: scale(1.04);
}

.case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.case__tag {
  color: #8ea6ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case__client {
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.case__text {
  margin-top: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.6;
}

.case__link {
  margin-top: auto;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.case__link span {
  display: inline-block;
  color: #8ea6ff;
  transition: transform 0.2s ease;
}

.case__link:hover span {
  transform: translateX(4px);
}

/* ── Team ─────────────────────────────────────────────────────────────────── */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Team cards flip over: the front is the person, the back is how they help you. Hover (or keyboard focus) flips
   them on a computer; on touch screens a tap does (site.js adds .is-flipped). */
.member {
  position: relative;
  border-radius: var(--radius-lg);
  outline: none;
  perspective: 1400px;
  cursor: pointer;
}

.member__flip {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.member__face {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.member__front {
  height: 100%;
}

.member__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-color: var(--blue);
  background: radial-gradient(120% 80% at 100% 0%, rgba(47, 91, 255, 0.45), transparent 60%), var(--ink);
  color: #fff;
  transform: rotateY(180deg);
  pointer-events: none;
}

.member__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.member__hint-tap {
  display: none;
}

.member__back-eyebrow {
  color: #9db3ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member__back-name {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member__helps {
  display: grid;
  gap: 14px;
  margin: 22px 0 24px;
}

.member__helps li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
}

.member__helps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.member__cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.member__cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.member__cta:hover {
  background: var(--blue-50);
}

.member__cta:hover span {
  transform: translateX(4px);
}

/* Highlight first, then flip */
.member:is(:hover, :focus-within, .is-flipped) .member__face {
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(47, 91, 255, 0.18);
}

.member:is(:focus-within, .is-flipped) .member__flip {
  transform: translateY(-4px) rotateY(180deg);
}

@media (hover: hover) {
  .member:hover .member__flip {
    transform: translateY(-4px) rotateY(180deg);
    transition-delay: 0.08s;
  }
}

.member:is(:hover, :focus-within, .is-flipped) .member__back {
  pointer-events: auto;
}

@media (hover: none) {
  .member__hint-hover {
    display: none;
  }

  .member__hint-tap {
    display: inline;
  }
}

.member img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center 20%;
  background: var(--tint);
}

.member__body {
  padding: 22px 24px 26px;
}

.member h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member__role {
  margin-top: 2px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.member__bio {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.faq__intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.help-card {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.help-card__title {
  font-size: 1.1rem;
  font-weight: 800;
}

.help-card__text {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.help-card__link {
  display: inline-block;
  margin-top: 14px;
  color: #8ea6ff;
  font-weight: 700;
  word-break: break-all;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion__item[open] {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}

.accordion__item summary {
  position: relative;
  padding: 22px 64px 22px 24px;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.accordion__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1233' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.accordion__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--blue-50);
}

.accordion__item p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */

.cta {
  padding: clamp(64px, 8vw, 104px) 0;
}

.cta__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, var(--blue-600), var(--blue) 55%, #5b7cff);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(47, 91, 255, 0.28);
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta__text {
  margin-top: 14px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cta__phone {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.cta__phone:hover {
  text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer__brand p {
  margin-top: 16px;
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer__social img {
  width: 18px;
  height: 18px;
}

.footer__title {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer ul a {
  text-decoration: none;
  word-break: break-word;
}

.footer ul a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__legal a,
.footer__cookie-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer__legal a:hover,
.footer__cookie-btn:hover {
  color: #fff;
}

/* ── Floating actions ─────────────────────────────────────────────────────── */

.whatsapp-fab,
.cookie-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  box-shadow: 0 12px 28px rgba(10, 18, 51, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab {
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-fab img {
  width: 22px;
  height: 22px;
}

.cookie-fab {
  left: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 28px rgba(10, 18, 51, 0.22);
  cursor: pointer;
}

.cookie-fab img {
  width: 22px;
  height: 22px;
}

.whatsapp-fab:hover,
.cookie-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 18, 51, 0.28);
}

/* ── Cookie modal ─────────────────────────────────────────────────────────── */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 51, 0.5);
  backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cookie-modal__header {
  position: relative;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__title {
  padding-right: 48px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cookie-modal__intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-modal__body {
  padding: 0 28px;
  overflow-y: auto;
}

.cookie-category {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-category:last-child {
  border-bottom: 0;
}

.cookie-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category__title {
  font-size: 1rem;
  font-weight: 800;
}

.cookie-category__status {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.cookie-category__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd6e6;
  transition: background 0.2s ease;
}

.cookie-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 18, 51, 0.25);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--blue);
}

.cookie-switch input:checked + .cookie-switch__slider::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__slider {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Team placeholders & case image fit ───────────────────────────────────── */

/* Portrait screenshots: show the whole image rather than cropping it */
.case__media--contain {
  position: relative;
  background: linear-gradient(160deg, #1b2a66, #0f1a48);
}

.case__media--contain img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.case:hover .case__media--contain img {
  transform: scale(1.03);
}

/* ── Sub-page hero ────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero--center .page-hero__inner {
  margin: 0 auto;
  text-align: center;
}

.page-hero__title {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero__lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.page-hero--center .page-hero__lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-hero--center .page-hero__meta,
.page-hero--center .hero__ctas {
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--blue);
}

/* ── About ────────────────────────────────────────────────────────────────── */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.about-intro__copy p + p {
  margin-top: 18px;
}

.about-intro__copy .section-lead {
  margin-top: 18px;
}

.map-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.map-card img {
  width: 100%;
  height: auto;
  /* The source artwork is purple; shift it to the brand blue */
  filter: hue-rotate(-38deg) saturate(1.15);
}

.map-card__pin {
  position: absolute;
  left: 47.5%;
  top: 34%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translate(-12px, -100%);
}

.map-card__pin::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.25);
}

.map-card__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.map-card__caption strong {
  color: #fff;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.value h3 {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.value p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.contact-info {
  display: grid;
  gap: 14px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  flex-shrink: 0;
}

.info-card__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.info-card__value {
  display: inline-block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

a.info-card__value:hover {
  color: var(--blue);
}

.contact-promise {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.contact-promise__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.contact-promise .checklist {
  margin: 14px 0 0;
}

.contact-promise .checklist li {
  color: rgba(255, 255, 255, 0.78);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card > .form:first-child {
  margin-top: 0;
}

.form-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-card__lead {
  margin-top: 6px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field__label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.field__optional {
  margin-left: 4px;
  color: #8f99b3;
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3acc4;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.14);
}

.field__error {
  display: none;
  color: #d92d20;
  font-size: 0.82rem;
  font-weight: 600;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d92d20;
}

.field.is-invalid .field__error {
  display: block;
}

.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
}

.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload__btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.upload input:focus-visible + .upload__btn {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.upload__name {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 4px;
}

.form__note {
  color: var(--muted);
  font-size: 0.85rem;
}

.form__note a {
  color: var(--blue);
  font-weight: 700;
}

.form__status {
  color: #d92d20;
  font-size: 0.9rem;
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form-success {
  padding: 24px 0 8px;
  text-align: center;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}

.form-success h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-success p {
  margin: 8px auto 0;
  max-width: 420px;
  color: var(--muted);
}

/* Multi-step form */

.steps {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--line);
  color: #8f99b3;
  font-size: 0.88rem;
  font-weight: 700;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint);
  font-size: 0.78rem;
  font-weight: 800;
}

.steps__item.is-active,
.steps__item.is-done {
  border-color: var(--blue);
  color: var(--ink);
}

.steps__item.is-active .steps__num,
.steps__item.is-done .steps__num {
  background: var(--blue);
  color: #fff;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid #c3cbe0;
  border-radius: 6px;
  background: #fff center / 12px no-repeat;
  flex-shrink: 0;
}

.choice input:checked + span {
  border-color: var(--blue);
  background: var(--blue-50);
}

.choice input:checked + span::before {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.choice input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ── Case study page ──────────────────────────────────────────────────────── */

.case-banner {
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 6;
  background: var(--tint);
}

/* Brand banners: keep the whole artwork visible, filling the frame with its colour */
.case-banner--brand {
  background: var(--banner-bg, var(--tint));
}

.case-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.metric__value {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric__label {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story__block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.story__block h3 {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story__block p {
  margin-top: 10px;
  color: var(--muted);
}

/* ── Highlights (Google Ads page) ─────────────────────────────────────────── */

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.highlight-card__client {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.highlight-card__client img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
}

.highlight-card__value {
  margin-top: 24px;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.highlight-card__metric {
  margin-top: 8px;
  color: #8ea6ff;
  font-size: 1.05rem;
  font-weight: 700;
}

.highlight-card__text {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */

.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

.toc__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.toc ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.toc ul a:hover {
  background: #fff;
  color: var(--blue);
}

.toc__cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.toc__cta p {
  color: var(--muted);
  font-size: 0.88rem;
}

.toc__cta .btn {
  margin-top: 12px;
  min-height: 40px;
  font-size: 0.88rem;
}

.prose {
  max-width: 760px;
  color: #3b4663;
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose section + section {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-top: 14px;
}

.prose ul {
  padding-left: 20px;
  list-style: disc;
}

.prose ol {
  padding-left: 20px;
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--blue);
  font-weight: 600;
}

.prose strong {
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  background: var(--tint);
}

.table-wrap {
  overflow-x: auto;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .member .member__flip {
    transform: none !important;
    transition: none !important;
  }

  .member__back {
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .member:is(:hover, :focus-within, .is-flipped) .member__back {
    opacity: 1;
  }

  .services--live .ico *,
  .services--live .service__icon {
    animation: none !important;
    transition: none !important;
  }

  .logo .logo__sweep {
    transition: none !important;
  }

  .topbar,
  .topbar__inner,
  .topbar__text,
  .topbar__link {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .growth__line {
    stroke-dashoffset: 0;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .nav__phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .hero__grid,
  .faq,
  .section-head--split,
  .about-intro,
  .contact-layout,
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .services,
  .cases,
  .team,
  .values,
  .story {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .process::before {
    display: none;
  }

  .faq__intro,
  .toc {
    position: static;
  }

  .cta__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta__actions {
    align-items: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .topbar__inner {
    justify-content: space-between;
    text-align: left;
    font-size: 0.8rem;
  }

  .topbar__badge {
    display: none;
  }

  .logo img {
    height: 30px;
  }

  .logo__mark,
  .logo__sweep {
    height: 30px;
  }

  .logo__name {
    display: none;
  }

  .logo--stacked img {
    width: 170px;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__trust-divider {
    display: none;
  }

  .journey {
    padding-left: 0;
  }

  .journey::before,
  .journey__node {
    display: none;
  }

  .journey__chips {
    display: none;
  }

  .conv__time {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .stat {
    padding: 0 14px;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }

  .services,
  .cases,
  .team,
  .process,
  .values,
  .story,
  .metrics,
  .highlights,
  .form__row,
  .choices {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 24px;
  }

  .accordion__item summary {
    padding: 18px 56px 18px 18px;
    font-size: 0.98rem;
  }

  .accordion__item p {
    padding: 0 18px 18px;
  }

  .cta__actions,
  .cta__actions .btn {
    width: 100%;
  }

  .cta__actions {
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
  }

  .whatsapp-fab {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-fab span {
    display: none;
  }

  .cookie-modal__actions .btn {
    flex: 1 1 100%;
  }

  .map-card__pin {
    font-size: 0.78rem;
  }

  .case-banner {
    aspect-ratio: 16 / 9;
  }

  .form__footer .btn {
    width: 100%;
  }
}

/* ── Small helpers ────────────────────────────────────────────────────────── */

.container--narrow {
  max-width: calc(820px + var(--gutter) * 2);
}

.services--two {
  grid-template-columns: repeat(2, 1fr);
}

.service__text {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 10px;
  padding: 0;
}

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

/* Cookie policy category cards */
.cookie-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cookie-type {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.cookie-type__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-type h3 {
  margin: 0;
  font-size: 1rem;
}

.cookie-type p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-type__badge {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .cookie-types {
    grid-template-columns: 1fr;
  }
}

/* ── Web design & redesign ────────────────────────────────────────────────── */

.service__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.web {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.web__copy .section-lead {
  margin-top: 16px;
}

.web__points {
  margin: 24px 0 0;
}

.web__points li {
  color: var(--ink);
  font-weight: 600;
}

.web__head {
  margin-top: clamp(64px, 8vw, 104px);
}

/* Browser mockup */

.web__visual {
  position: relative;
  padding: 24px 24px 24px 0;
}

.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3e8f3;
}

.browser__dots i:first-child { background: #ff8a80; }
.browser__dots i:nth-child(2) { background: #ffd166; }
.browser__dots i:nth-child(3) { background: #7bd88f; }

.browser__url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}

.web-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.web-badge__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}

.web-badge--one { top: 0; right: 0; }
.web-badge--three { bottom: 0; left: -22px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Redesign process strip */

.web-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

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

  .web__visual {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

  .web-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .web__visual {
    padding: 0;
  }

  .web-badge {
    display: none;
  }

  .web-steps {
    grid-template-columns: 1fr;
  }
}

/* ── Approach: account audit panel ────────────────────────────────────────── */

/* ── Mobile experience ────────────────────────────────────────────────────── */

a,
button,
summary,
label {
  -webkit-tap-highlight-color: rgba(47, 91, 255, 0.12);
}

.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.topbar__short {
  display: none;
}

/* Full-height mobile menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: none;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 8px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.mobile-menu__inner a.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu__link span {
  display: grid;
  gap: 2px;
}

.mobile-menu__link strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mobile-menu__link small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.mobile-menu__link svg {
  color: #9aa5c0;
  flex-shrink: 0;
}

.mobile-menu__footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}

.mobile-menu__inner .mobile-menu__footer .btn {
  margin-top: 0;
}

.mobile-menu__inner a.mobile-menu__email {
  padding: 4px;
  border: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-menu:not([hidden]) .mobile-menu__link,
.mobile-menu:not([hidden]) .mobile-menu__footer {
  animation: menu-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu__link:nth-child(2) { animation-delay: 0.03s !important; }
.mobile-menu__link:nth-child(3) { animation-delay: 0.06s !important; }
.mobile-menu__link:nth-child(4) { animation-delay: 0.09s !important; }
.mobile-menu__link:nth-child(5) { animation-delay: 0.12s !important; }
.mobile-menu__link:nth-child(6) { animation-delay: 0.15s !important; }
.mobile-menu__footer { animation-delay: 0.18s !important; }

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Sticky call-to-action bar (phones only) */
.mobile-cta {
  display: none;
}

/* Carousel page dots (created by site.js) */
.carousel-dots {
  display: none;
}

/* Touch screens: no sticky hover lifts after a tap */
@media (hover: none) {
  .btn:hover,
  .service:hover,
  .case:hover,
  .cookie-fab:hover {
    transform: none;
  }

  .case:hover .case__media img,
  .case:hover .case__media--contain img {
    transform: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .page-hero {
    padding: 44px 0 40px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero__title {
    font-size: clamp(2.35rem, 11vw, 2.9rem);
  }

  .page-hero__title {
    font-size: clamp(2.1rem, 9.5vw, 2.6rem);
  }

  .topbar__long {
    display: none;
  }

  .topbar__short {
    display: inline;
  }

  .topbar__inner {
    min-height: 38px;
  }

  /* Swipeable card rows */
  [data-carousel] {
    display: flex !important;
    gap: 14px;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  [data-carousel]::-webkit-scrollbar {
    display: none;
  }

  [data-carousel] > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .js [data-carousel] > .reveal {
    opacity: 1;
    transform: none;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }

  .carousel-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cfd6e6;
    transition: width 0.25s ease, background 0.25s ease;
  }

  .carousel-dots span.is-active {
    width: 22px;
    background: var(--blue);
  }

  .section--dark .carousel-dots span {
    background: rgba(255, 255, 255, 0.22);
  }

  .section--dark .carousel-dots span.is-active {
    background: #8ea6ff;
  }

  /* Sticky call-to-action bar */
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    gap: 10px;
    padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta__main {
    flex: 1;
    min-height: 52px;
  }

  .mobile-cta__mail {
    flex-shrink: 0;
    width: 52px;
    min-height: 52px;
    padding: 0;
  }

  .cookie-fab {
    display: none;
  }

  .footer__bottom {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  /* 16px inputs stop iOS zooming in on focus */
  .field input,
  .field textarea {
    font-size: 16px;
  }

  .footer ul {
    gap: 4px;
  }

  .footer ul a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* Comfortable tap targets and wrapping on the smallest phones */
@media (max-width: 640px) {
  .footer__legal {
    gap: 0 20px;
  }

  .footer__legal a,
  .footer__cookie-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .btn--lg {
    padding: 0 20px;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .hero__grid > *,
  .web > * {
    min-width: 0;
  }
}

/* Touch screens of any width: footer legal links big enough to tap */
@media (pointer: coarse) {
  .footer__legal a,
  .footer__cookie-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .mobile-cta__mail svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }

  .cta__phone {
    text-align: center;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  .mobile-cta .mobile-cta__mail {
    padding: 0;
  }
}

/* ── First-visit intro (home page): a brand-blue screen with the white B, which parts and opens the site ── */
.intro {
  display: none;
}

.js:not(.returning) .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  pointer-events: none;
}

/* The B's two halves sit inside the two blue halves of the screen, so they always travel together. */
.intro__half {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% + 1px);
  background: var(--blue);
}

.intro__half--up {
  top: 0;
  animation: intro-up 1.4s both;
}

.intro__half--down {
  bottom: 0;
  animation: intro-down 1.4s both;
}

.intro {
  --mark-w: clamp(72px, 8vw, 104px);
  --mark-gap: calc(var(--mark-w) * 10 / 252.5);
}

.intro__piece {
  position: absolute;
  left: 50%;
  width: var(--mark-w);
  height: auto;
  overflow: visible;
  fill: #fff;
  translate: -50% 0;
  animation: intro-mark 1.4s both;
}

.intro__piece--top {
  bottom: calc(1px + var(--mark-gap));
  transform-origin: 50% calc(100% + var(--mark-gap));
}

.intro__piece--bot {
  top: calc(1px + var(--mark-gap));
  transform-origin: 50% calc(0% - var(--mark-gap));
}

@keyframes intro-mark {
  0% { transform: scale(0.6); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  28.6%, 100% { transform: none; opacity: 1; }
}

@keyframes intro-up {
  0%, 57.1% { transform: none; animation-timing-function: cubic-bezier(0.7, 0, 0.25, 1); }
  100% { transform: translateY(-101%); }
}

@keyframes intro-down {
  0%, 57.1% { transform: none; animation-timing-function: cubic-bezier(0.7, 0, 0.25, 1); }
  100% { transform: translateY(101%); }
}

@media (prefers-reduced-motion: reduce) {
  .js:not(.returning) .intro {
    display: none;
  }
}

/* ── Hero in motion ──────────────────────────────────────────────────────────
   site.js adds .is-live to the hero once the intro has opened (straight away on a returning visit). Then:
   the copy rises in, word by word for the headline; the journey on the right plays as a story (the search
   types, the ad appears, a conversion lands, the numbers count up and the chart draws); after that the cards
   float and tilt a little with the mouse. Nothing moves with reduced motion, and a failsafe shows everything
   if the script never runs. */

.growth__num {
  font-variant-numeric: tabular-nums;
}

.hero__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  vertical-align: top;
}

.hero__title .w > span {
  display: inline-block;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__bg::before {
  top: -10%;
  right: -5%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(closest-side, rgba(47, 91, 255, 0.16), transparent);
}

.hero__bg::after {
  bottom: -5%;
  left: -10%;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(closest-side, rgba(255, 122, 47, 0.1), transparent);
}

.pill__dot {
  position: relative;
}

.serp__caret {
  display: none;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--blue);
  vertical-align: -0.15em;
}

.conv__icon {
  position: relative;
}

.hero__ctas .btn--primary {
  position: relative;
  overflow: hidden;
}

.hero__ctas .btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.journey-panel {
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  /* Starting points (only while the script is running the show) */
  .js .hero [data-anim],
  .js .hero .journey__card,
  .js .hero .journey__node {
    opacity: 0;
  }

  .js .hero__title .w > span {
    transform: translateY(105%);
  }

  .js .hero .highlight::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  .js .hero .rating__stars > span {
    display: inline-block;
    opacity: 0.25;
  }

  .js .hero .journey::before {
    transform: scaleY(0);
    transform-origin: top;
  }

  .js .hero .journey-panel .journey__step::after {
    transform: scaleY(0);
  }

  .hero.is-live .journey-panel .journey__step::after {
    animation: hero-line 0.6s calc(var(--s) + 0.4s) cubic-bezier(0.5, 0, 0.3, 1) both;
  }

  .js .hero .serp__ad {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js .hero .serp__ad.is-shown {
    opacity: 1;
    transform: none;
  }

  .js .growth__line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
  }

  .js .hero .growth__area {
    opacity: 0;
  }

  /* The show */
  .hero.is-live [data-anim] {
    animation: hero-rise 0.7s var(--d, 0s) cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero.is-live .hero__title .w > span {
    animation: hero-word 0.75s var(--d, 0s) cubic-bezier(0.2, 0.85, 0.25, 1) both;
  }

  .hero.is-live .highlight::after {
    animation: hero-underline 0.6s 0.62s cubic-bezier(0.6, 0, 0.2, 1) both;
  }

  .hero.is-live .rating__stars > span {
    animation: hero-star 0.45s var(--d) cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

  .hero.is-live .hero__ctas .btn--primary::after {
    animation: hero-shine 1s 1.25s ease both;
  }

  .hero.is-live .pill__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: hero-ping 2.4s 1s ease-out infinite;
  }

  .hero.is-live .journey::before {
    animation: hero-line 1.8s 0.25s cubic-bezier(0.5, 0, 0.3, 1) both;
  }

  .hero.is-live .journey__step:nth-child(1) { --s: 0.3s; }
  .hero.is-live .journey__step:nth-child(2) { --s: 1.55s; }
  .hero.is-live .journey__step:nth-child(3) { --s: 1.95s; }

  .hero.is-live .journey__node {
    animation: hero-pop 0.5s var(--s) cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

  .hero.is-live .journey__card {
    animation: hero-card 0.7s calc(var(--s) + 0.05s) cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .js .hero .journey-panel {
    opacity: 0;
  }

  .hero.is-live .journey-panel {
    animation:
      hero-panel 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      panel-float 8s 1.6s ease-in-out infinite;
  }

  .hero.is-live .journey-panel__live i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: hero-ping 2.4s 1.2s ease-out infinite;
  }

  .hero.is-live .conv__icon {
    animation: hero-pop 0.55s 1.85s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  }

  .hero.is-live .conv__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--green);
    animation: hero-ripple 2.8s 1.95s ease-out infinite;
  }

  .hero.is-live .serp__caret {
    display: inline-block;
    animation: hero-caret 0.9s steps(1) infinite;
  }

  .hero.is-live .serp__caret.is-done {
    display: none;
  }

  .hero.is-live .growth__line {
    animation: draw 1.6s 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero.is-live .growth__area {
    animation: hero-fade 1.2s 2.6s ease forwards;
  }

  .hero.is-live .hero__bg::before {
    animation: hero-drift 18s ease-in-out infinite alternate;
  }

  .hero.is-live .hero__bg::after {
    animation: hero-drift 22s -6s ease-in-out infinite alternate-reverse;
  }

  /* Failsafe: if the script never starts the show, show everything after a moment */
  .js .hero:not(.is-live) :is([data-anim], .journey-panel, .journey__card, .journey__node, .serp__ad, .growth__area) {
    animation: hero-show 0s 3s forwards;
  }

  .js .hero:not(.is-live) .hero__title .w > span,
  .js .hero:not(.is-live) .highlight::after,
  .js .hero:not(.is-live) .journey-panel .journey__step::after,
  .js .hero:not(.is-live) .journey::before {
    animation: hero-show 0s 3s forwards;
  }

  .js .hero:not(.is-live) .rating__stars > span {
    animation: hero-show 0s 3s forwards;
  }

  .js .hero:not(.is-live) .growth__line {
    animation: draw 0s 3s forwards;
  }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-word {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes hero-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hero-star {
  from { opacity: 0.25; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes hero-ping {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

@keyframes hero-line {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes hero-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-card {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-panel {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* The panel's float uses "translate" so it doesn't fight the mouse tilt (which uses "transform"). */
@keyframes panel-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes hero-float {
  0%, 100% { transform: none; }
  50% { transform: translateY(-6px); }
}

@keyframes hero-ripple {
  0% { transform: scale(1); opacity: 0.6; }
  60%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes hero-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes hero-fade {
  to { opacity: 1; }
}

@keyframes hero-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 4vw) scale(1.12); }
}

@keyframes hero-show {
  to { opacity: 1; transform: none; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .journey {
    transform: none !important;
  }
}

/* ── First visit: the headline moment ─────────────────────────────────────────
   After the blue intro opens, only the headline shows, larger and centred: "scale" starts huge in the middle,
   filled with a flowing gradient of brand blues and violet, and zooms down into its place, settling to solid blue,
   while the other words close in from both sides and its underline draws. site.js then glides the line onto the hero's
   own headline while the rest of the hero builds in, and removes this layer. Skipped on later pages of a visit and
   with reduced motion; a failsafe hides it if the script never runs. */
.hl-intro {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js:not(.returning) .hl-intro {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: var(--bg);
    transition: background-color 0.7s ease;
    animation: hl-failsafe 0s 8s forwards;
  }
}

.js:not(.returning) .hl-intro.is-handing {
  background: transparent;
}

.hl-intro__line {
  position: absolute;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  transform-origin: 0 0;
  opacity: 0;
}

.hl-intro__line.is-set {
  opacity: 1;
}

.hl-intro__line.is-gliding {
  transition:
    left 0.9s cubic-bezier(0.76, 0, 0.24, 1),
    top 0.9s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.hl-intro .w {
  display: inline-block;
  vertical-align: top;
}

.hl-intro .w > span {
  display: inline-block;
  opacity: 0;
}

.hl-intro__scale {
  position: relative;
  isolation: isolate;
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  background: linear-gradient(100deg, #2f5bff 0%, #2f5bff 30%, #7a5cff 45%, #19b8ff 58%, #2f5bff 72%, #2f5bff 100%) 0 0 / 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The tight letter spacing lets the "e" run past the box; widen the fill to cover it without moving anything. */
  padding-right: 0.1em;
  margin-right: -0.1em;
}

.hl-intro__scale::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.1em;
  bottom: calc(0.02em - var(--ul-drop, 0px)); /* --ul-drop: site.js lines it up with the hero's underline */
  height: 0.16em;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0.85;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}

.hl-intro .w--scale > span {
  opacity: 1;
}

.hl-intro.is-playing .w > span {
  animation: hl-close-in 0.8s var(--d) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hl-intro.is-playing .w--scale > span {
  animation: none;
}

.hl-intro.is-playing .hl-intro__scale {
  animation:
    hl-zoom 1.6s 0.05s cubic-bezier(0.75, 0, 0.15, 1) both,
    hl-flow 1.7s 0.05s ease-in-out both;
}

.hl-intro.is-playing .hl-intro__scale::after {
  animation: hero-underline 0.55s 1.72s cubic-bezier(0.65, 0, 0.35, 1) both;
}

/* While the headline moment hands over, the hero's own headline stands still (no word-by-word entrance) and
   appears the instant the moving line lands on it. */
.hero.is-handoff .hero__title {
  opacity: 0;
}

.hero.is-handoff.is-landed .hero__title {
  opacity: 1;
}

.hero.is-handoff .hero__title .w > span,
.hero.is-handoff .highlight::after {
  animation: none !important;
  transform: none !important;
}

/* "scale" starts huge in the middle of the headline (--zx/--zy from site.js; --zoom fits it to the screen), out of
   focus, and lands with a soft overshoot; its gradient flows through to solid blue. */
@keyframes hl-zoom {
  0% { transform: translate(var(--zx, 0), var(--zy, 0)) scale(var(--zoom, 5)); opacity: 0; filter: blur(12px); }
  16% { opacity: 1; filter: blur(0); }
  40% { transform: translate(var(--zx, 0), var(--zy, 0)) scale(calc(var(--zoom, 5) * 0.92)); }
  90% { transform: scale(0.975); }
  100% { transform: none; opacity: 1; }
}

@keyframes hl-flow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

@keyframes hl-close-in {
  from { opacity: 0; transform: translateX(calc(var(--side, 0) * 0.7em)); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes hl-failsafe {
  to { visibility: hidden; opacity: 0; }
}

/* ── Consultation buttons ─────────────────────────────────────────────────────
   Every button that books a consultation or starts a project (they lead to the contact or project pages) carries
   the brand's living gradient
   from the headline moment: solid blue at rest; each time the pointer arrives, one sweep of blue, violet and cyan
   flows through it from left to right. */
.btn--primary:is([href*="contact"], [href*="start-project"]) {
  background-color: var(--blue);
  background-image: linear-gradient(100deg, #2f5bff 0%, #2f5bff 30%, #7a5cff 45%, #19b8ff 58%, #2f5bff 72%, #2f5bff 100%);
  background-size: 400% 100%;
  background-position: 0% 0;
}

.btn--primary:is([href*="contact"], [href*="start-project"]):hover,
.btn--primary:is([href*="contact"], [href*="start-project"]):focus-visible {
  background-color: var(--blue);
  background-image: linear-gradient(100deg, #2f5bff 0%, #2f5bff 30%, #7a5cff 45%, #19b8ff 58%, #2f5bff 72%, #2f5bff 100%);
  background-size: 400% 100%;
  box-shadow: 0 14px 30px rgba(122, 92, 255, 0.32);
  animation: btn-flow 1.1s cubic-bezier(0.45, 0, 0.3, 1) both;
}

/* The colour band travels left to right once, ending on solid blue. */
@keyframes btn-flow {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:is([href*="contact"], [href*="start-project"]):hover,
  .btn--primary:is([href*="contact"], [href*="start-project"]):focus-visible {
    animation: none;
    background-position: 45% 0;
  }
}

/* ── Hero journey as one panel (two-column layouts) ────────────────────────────
   The three steps sit inside a single dashboard-style panel with a header bar, an even rail of numbered markers
   and matching cards, so the right-hand side reads as one tidy piece next to the copy. */
.journey-panel {
  position: relative;
  max-width: 540px;
  margin-left: auto;
  padding: 14px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.journey-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.journey-panel__dots {
  display: flex;
  gap: 6px;
}

.journey-panel__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.journey-panel__dots i:nth-child(2) { background: #febc2e; }
.journey-panel__dots i:nth-child(3) { background: #28c840; }

.journey-panel__title {
  flex: 1;
}

.journey-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.journey-panel__live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.journey-panel .journey {
  gap: 12px;
  padding-left: 40px;
}

/* In the panel the rail runs node to node (1 to 2 to 3) and stops at the last one. */
.journey-panel .journey::before {
  display: none;
}

.journey-panel .journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -27px;
  top: 46px;
  bottom: -22px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #c3cffd 0 6px, transparent 6px 12px);
  transform-origin: top;
}

.journey-panel {
  container-type: inline-size;
}

.journey__chips span {
  white-space: nowrap;
}

.serp__headline {
  text-wrap: balance;
}

/* A narrower panel keeps each step's label on one line by showing only its first platform. */
@container (max-width: 500px) {
  .journey__chips span + span {
    display: none;
  }
}

.journey-panel .journey__node {
  left: -40px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-width: 3px;
  font-size: 0.72rem;
}

.journey-panel .journey__card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfcff;
  box-shadow: none;
}

.journey-panel .journey__label {
  margin-bottom: 10px;
}

/* Compact layouts (the hero stacks): skip the journey and go straight from the headline into the stats below. */
@media (max-width: 1024px) {
  .hero__visual {
    display: none;
  }
}

/* ── Web design cards: their own animated icons ─────────────────────────────── */
.ico-page { transform-box: view-box; }
.ico-btn { transition: fill 0.2s ease; }
.ico-arc,
.ico-trend { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ico-rocket { transform-box: view-box; transform-origin: 12px 12px; }
.ico-flame { transform-origin: 50% 0; }

.services--live .service:is(:hover, :focus-within, .svc-play) .ico-page { animation: ico-refresh 0.8s cubic-bezier(0.6, 0, 0.3, 1) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-cursor { animation: ico-point 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-btn { animation: ico-press 0.9s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-phone { animation: ico-wiggle 0.6s ease both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-bolt { animation: ico-flash 0.8s ease 0.1s both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-arc { animation: ico-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-arrow { animation: ico-flash 0.5s ease 0.6s both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-trend { animation: ico-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.15s both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-rocket { animation: ico-lift 1s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.services--live .service:is(:hover, :focus-within, .svc-play) .ico-flame { animation: ico-flicker 0.25s ease-in-out 4 alternate both; }

@keyframes ico-refresh {
  0% { transform: none; opacity: 1; }
  45% { transform: translateX(10px); opacity: 0; }
  46% { transform: translateX(-10px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes ico-point {
  0% { transform: translate(3px, 4px); }
  55% { transform: translate(-4px, -1px); }
  70% { transform: translate(-4px, -1px) scale(0.85); }
  100% { transform: translate(-4px, -1px); }
}
@keyframes ico-press {
  0%, 55% { fill: transparent; }
  70%, 100% { fill: currentColor; }
}
@keyframes ico-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes ico-lift {
  0% { transform: none; }
  20% { transform: translate(0.5px, 0.5px) rotate(-2deg); }
  35% { transform: translate(-0.5px, 0) rotate(2deg); }
  70% { transform: translateY(-3.5px); }
  100% { transform: none; }
}
@keyframes ico-flicker {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(1.25); }
}

/* ── 1-2-3-4 strips (larger screens): each step arrives in turn as you scroll ──
   site.js marks steps .is-on one after another as the strip comes up the screen; on "How we work" each dashed
   segment turns blue as the number after it arrives. */
/* Larger screens: the line between the numbers is one dashed segment per gap (1-2, 2-3, 3-4); each segment turns
   brand blue, dash for dash, when the number after it arrives (site.js adds .is-linked). */
@media (min-width: 1025px) {
  .process::before {
    display: none;
  }

  .process .step:not(:last-child)::before,
  .process .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(50% + 34px);
    width: calc(100% - 44px);
    height: 2px;
  }

  .process .step:not(:last-child)::before {
    background: repeating-linear-gradient(to right, var(--blue-100) 0 8px, transparent 8px 14px);
  }

  .process .step:not(:last-child)::after {
    background: repeating-linear-gradient(to right, var(--blue) 0 8px, transparent 8px 14px);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .process .step.is-linked::after {
    clip-path: inset(0 0 0 0);
  }
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .js [data-seq] > li,
  .js [data-seq] > li.reveal.is-visible {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .js [data-seq] > li.is-on,
  .js [data-seq] > li.reveal.is-visible.is-on {
    opacity: 1;
    transform: none;
  }

  .js .process .step.is-on .step__num {
    animation: seq-pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

}

@keyframes seq-pop {
  from { transform: scale(0.5); }
  to { transform: none; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.help-card__team {
  display: flex;
  margin-bottom: 16px;
}

.help-card__team img {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.help-card__team img + img {
  margin-left: -12px;
}

.help-card__cta {
  margin-top: 18px;
}

.help-card__link {
  display: block;
  margin-top: 14px;
  font-size: 0.86rem;
}

.accordion__num {
  display: inline-block;
  min-width: 2.2em;
  color: #9aa6c4;
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.accordion__item {
  position: relative;
  overflow: hidden;
}

.accordion__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), #7a5cff);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.accordion__item[open]::before {
  transform: none;
}

.accordion__item[open] .accordion__num {
  color: var(--blue);
}

.accordion__item[open] summary::after {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.accordion__item p {
  padding-left: calc(24px + 2.2em * 0.86);
}

/* Opening and closing glide where the browser supports it. */
.accordion {
  interpolate-size: allow-keywords;
}

.accordion__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}

.accordion__item[open]::details-content {
  block-size: auto;
}

@media (min-width: 1025px) {
  .accordion__item {
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
  }

  .accordion__item:not([open]):hover {
    border-color: var(--blue-100);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
  }

  .accordion__item[open] {
    border-color: var(--blue-100);
    background: linear-gradient(180deg, #fff, #f8faff);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion__item::details-content {
    transition: none;
  }
}

.help-card__text::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #34d17a;
  box-shadow: 0 0 0 3px rgba(52, 209, 122, 0.22);
  vertical-align: 1px;
}

.help-card__link-short {
  display: none;
}

/* Phones: photos beside the title in one row, a full-width button, and a short email line. */
@media (max-width: 640px) {
  .help-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 20px;
  }

  .help-card__team {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .help-card__team img {
    width: 40px;
    height: 40px;
  }

  .help-card__team img + img {
    margin-left: -14px;
  }

  .help-card__title {
    grid-column: 2;
    align-self: end;
    font-size: 1.05rem;
  }

  .help-card__text {
    grid-column: 2;
    align-self: start;
    margin-top: 2px;
    font-size: 0.86rem;
  }

  .help-card__cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 18px;
  }

  .help-card__link {
    grid-column: 1 / -1;
    margin-top: 14px;
    text-align: center;
    text-decoration: none;
  }

  .help-card__link-long {
    display: none;
  }

  .help-card__link-short {
    display: inline;
  }
}

/* ── Website redesign showcase ────────────────────────────────────────────────
   A browser shows a dated "before" site and the redesigned "after" site; a divider sweeps between them on its own
   (and follows the pointer, or a finger, when someone drags it). A phone shows the new site on mobile, with a new
   enquiry popping up now and then. Everything inside scales with its container (cqi units), so it reads at any
   size. */
@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.showcase {
  position: relative;
  container-type: inline-size;
  padding: 20px 30px 54px 0;
}

.showcase__browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.showcase .browser__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase__stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
  container-type: inline-size;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  animation: showcase-sweep 9s 1.2s ease-in-out infinite;
}

.showcase.is-manual .showcase__stage {
  animation: none;
}

@keyframes showcase-sweep {
  0%, 12% { --pos: 88%; }
  38%, 66% { --pos: 9%; }
  92%, 100% { --pos: 88%; }
}

.site-old,
.site-new {
  position: absolute;
  inset: 0;
}

.site-new {
  clip-path: inset(0 0 0 var(--pos));
}

.showcase__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 18, 51, 0.1), 0 0 18px rgba(10, 18, 51, 0.25);
  pointer-events: none;
}

.showcase__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: max(30px, 6.4cqi);
  height: max(30px, 6.4cqi);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
  translate: -50% -50%;
}

.showcase__tag {
  position: absolute;
  top: 3cqi;
  padding: 0.7cqi 1.7cqi;
  border-radius: 999px;
  font-family: var(--font);
  font-size: max(9px, 1.7cqi);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase__tag--before {
  left: 3cqi;
  background: rgba(10, 18, 51, 0.72);
  color: #fff;
}

.showcase__tag--after {
  right: 3cqi;
  background: var(--blue);
  color: #fff;
}

/* Before: the dated site */
.site-old {
  background: #efe8d8;
  color: #4b4436;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75cqi;
  line-height: 1.35;
}

.site-old__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  padding: 1.6cqi 2.6cqi;
  padding-top: 7cqi;
  background: linear-gradient(#5b7f4c, #3e5c34);
  color: #fff;
}

.site-old__top b {
  font-size: 3.2cqi;
  font-style: italic;
}

.site-old__top span {
  color: #e2edcf;
  font-size: 1.5cqi;
  text-decoration: underline;
}

.site-old__body {
  padding: 2.2cqi 3cqi;
}

.site-old__welcome {
  margin-bottom: 1.8cqi;
  color: #8b2d2d;
  font-size: 3.4cqi;
  font-weight: 700;
  text-align: center;
  text-shadow: 1px 1px 0 #d8cbb0;
}

.site-old__row {
  display: flex;
  gap: 2.4cqi;
}

.site-old__img {
  display: grid;
  flex: 0 0 34cqi;
  place-items: center;
  height: 21cqi;
  border: 3px ridge #b9ae98;
  background: repeating-linear-gradient(45deg, #cfc6b4 0 6px, #d9d1c1 6px 12px);
  color: #8a806c;
  font-size: 1.5cqi;
}

.site-old__text p + p {
  margin-top: 1.1cqi;
}

.site-old__link {
  display: inline-block;
  margin-top: 1.1cqi;
  color: #1a0dab;
  text-decoration: underline;
}

.site-old__boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqi;
  margin-top: 2.2cqi;
}

.site-old__boxes span {
  padding: 1.1cqi;
  border: 2px outset #c8bfae;
  background: #ddd5c4;
  color: #5b4a2f;
  font-weight: 700;
  text-align: center;
}

.site-old__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1cqi;
  background: #3e5c34;
  color: #cfe0b8;
  font-size: 1.35cqi;
  text-align: center;
}

/* After: the redesign */
.site-new {
  background: radial-gradient(60% 55% at 88% 8%, rgba(47, 91, 255, 0.12), transparent 70%), #fff;
  color: var(--ink);
  font-size: 1.8cqi;
}

.site-new__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2cqi 3.4cqi;
  padding-top: 7cqi;
}

.site-new__logo {
  font-size: 2.3cqi;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-new__logo i {
  display: inline-block;
  width: 2.4cqi;
  height: 2.4cqi;
  margin-right: 0.8cqi;
  border-radius: 0.8cqi;
  background: linear-gradient(135deg, var(--blue), #7a5cff);
  vertical-align: -0.35cqi;
}

.site-new__links {
  display: flex;
  gap: 2.6cqi;
  color: var(--muted);
  font-size: 1.6cqi;
  font-weight: 600;
}

.site-new__cta {
  padding: 0.9cqi 2cqi;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1.5cqi;
  font-weight: 700;
}

.site-new__hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3cqi;
  padding: 1.4cqi 3.4cqi 0;
}

.site-new__pill {
  display: inline-block;
  padding: 0.6cqi 1.4cqi;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 1.35cqi;
  font-weight: 700;
}

.site-new__title {
  margin-top: 1.6cqi;
  font-size: 5cqi;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.site-new__title em,
.phone-site__title em {
  color: var(--blue);
  font-style: normal;
}

.site-new__text {
  margin-top: 1.4cqi;
  color: var(--muted);
  font-size: 1.7cqi;
  line-height: 1.45;
}

.site-new__buttons {
  display: flex;
  gap: 1.2cqi;
  margin-top: 2.2cqi;
}

.site-new__b1,
.site-new__b2 {
  padding: 1.1cqi 2cqi;
  border-radius: 1.2cqi;
  font-size: 1.5cqi;
  font-weight: 700;
}

.site-new__b1 {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1cqi 2.4cqi rgba(47, 91, 255, 0.3);
}

.site-new__b2 {
  border: 1px solid var(--line);
}

.site-new__media {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  border-radius: 2.4cqi;
  background:
    radial-gradient(40% 40% at 72% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(140deg, #2f5bff, #7a5cff 60%, #19b8ff);
}

.site-new__logos {
  display: flex;
  gap: 3cqi;
  margin-top: 3cqi;
  padding: 0 3.4cqi;
}

.site-new__logos i {
  width: 9cqi;
  height: 1.5cqi;
  border-radius: 999px;
  background: #e7ecf6;
}

/* The phone: the redesign on mobile */
.showcase__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25cqi;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  border: 0.9cqi solid var(--ink);
  border-radius: 4.4cqi;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: phone-float 7s ease-in-out infinite;
}

.phone-site {
  padding: 5.4cqi 2.2cqi 0;
  font-size: 1.5cqi;
}

.phone-site__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-site__nav .site-new__logo {
  font-size: 1.9cqi;
}

.phone-site__nav .site-new__logo i {
  width: 2cqi;
  height: 2cqi;
}

.phone-site__menu {
  display: grid;
  gap: 0.6cqi;
}

.phone-site__menu i {
  width: 2.6cqi;
  height: 0.35cqi;
  border-radius: 9px;
  background: var(--ink);
}

.phone-site__title {
  margin-top: 3cqi;
  font-size: 3.3cqi;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.phone-site__text {
  margin-top: 1.2cqi;
  color: var(--muted);
  font-size: 1.35cqi;
  line-height: 1.4;
}

.phone-site__button {
  display: block;
  margin-top: 1.8cqi;
  padding: 1cqi;
  border-radius: 1cqi;
  background: var(--blue);
  color: #fff;
  font-size: 1.35cqi;
  font-weight: 700;
  text-align: center;
}

.phone-site__media {
  display: block;
  height: 12cqi;
  margin-top: 1.8cqi;
  border-radius: 1.6cqi;
  background: linear-gradient(140deg, #2f5bff, #7a5cff 60%, #19b8ff);
}

.showcase__toast {
  position: absolute;
  right: 29cqi;
  bottom: 9cqi;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  animation: toast-pop 6s 2.5s ease both infinite;
}

.showcase__toast i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}

.showcase__toast b {
  display: block;
  font-weight: 800;
}

.showcase__toast small {
  color: var(--muted);
}

@keyframes toast-pop {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(0.94); }
  16%, 70% { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.showcase .web-badge--one { top: 0; right: 4cqi; }
.showcase .web-badge--three { bottom: 6cqi; left: -18px; }

/* Smaller screens: the before/after browser on its own, full width */
@media (max-width: 640px) {
  .showcase {
    padding: 0;
  }

  .showcase__phone,
  .showcase__toast {
    display: none;
  }

  .showcase__browser {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__stage {
    animation: none;
  }

  .showcase__toast,
  .showcase__phone {
    animation: none;
  }
}

/* ── Web design steps (01-04) ──────────────────────────────────────────────────
   Each step: a numbered badge beside its title, a line of text, and a four-part track filled up to that step, so
   the four add up as they arrive. Larger screens: the steps arrive in turn as you scroll (site.js adds .is-on);
   elsewhere they fade in and their track fills as they come into view. */
.web-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.web-steps li:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
}

.web-steps__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.web-steps__body strong {
  display: block;
  padding-top: 5px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.web-steps__body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.web-steps__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column: 1 / -1;
  gap: 4px;
  margin-top: 16px;
}

.web-steps__track i {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eefa;
}

.web-steps__track i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #7a5cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-steps__track i:nth-child(2)::after { transition-delay: 0.12s; }
.web-steps__track i:nth-child(3)::after { transition-delay: 0.24s; }
.web-steps__track i:nth-child(4)::after { transition-delay: 0.36s; }

/* Filled up to the step's own number: when it has arrived (or straight away without JavaScript) */
:is(html:not(.js), .web-steps li.is-visible, .web-steps li.is-on) .web-steps__track[data-n="1"] i:nth-child(-n + 1)::after,
:is(html:not(.js), .web-steps li.is-visible, .web-steps li.is-on) .web-steps__track[data-n="2"] i:nth-child(-n + 2)::after,
:is(html:not(.js), .web-steps li.is-visible, .web-steps li.is-on) .web-steps__track[data-n="3"] i:nth-child(-n + 3)::after,
:is(html:not(.js), .web-steps li.is-visible, .web-steps li.is-on) .web-steps__track[data-n="4"] i:nth-child(-n + 4)::after {
  transform: none;
}

/* Larger screens wait for the step itself to arrive in the sequence. */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  .js .web-steps li.is-visible:not(.is-on) .web-steps__track i::after {
    transform: scaleX(0);
  }
}

/* ── Why BoffaMarketing: bento grid ────────────────────────────────────────────
   Five cards of different sizes, each with a small visual that plays when it comes into view: an account review
   ticking off, a campaign structure drawing, the team, a search-to-enquiry flow lighting up and a tracking chart. */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "strategy strategy structure team"
    "flow flow tracking team";
  gap: 20px;
}

.bento__card--strategy { grid-area: strategy; }
.bento__card--structure { grid-area: structure; }
.bento__card--team { grid-area: team; }
.bento__card--flow { grid-area: flow; }
.bento__card--tracking { grid-area: tracking; }

.bento__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, translate 0.25s ease;
}

/* "translate" so the hover lift doesn't fight the scroll-in reveal (which uses "transform"). */
.bento__card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
  translate: 0 -4px;
}

.bento__num {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bento__text h3 {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento__text p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento__visual {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--tint);
}

/* 01 Strategy: an account review that ticks itself off */
.bento__card--strategy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
}

.bento__card--strategy .bento__visual {
  margin-top: 0;
}

.mini-audit__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-audit__head span {
  color: var(--blue);
  letter-spacing: 0;
  text-transform: none;
}

.mini-audit {
  display: grid;
  gap: 8px;
}

.mini-audit li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.mini-audit__check {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}

.mini-audit em {
  margin-left: auto;
  color: var(--green);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

/* 02 Structure: campaign → ad groups → keywords */
.tree {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 18px 12px;
}

.tree__root,
.tree__groups span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.tree__root {
  background: var(--blue);
  color: #fff;
}

.tree__lines {
  position: relative;
  width: 70%;
  height: 22px;
}

.tree__lines::before,
.tree__lines::after {
  content: "";
  position: absolute;
  background: #c3cffd;
}

.tree__lines::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 11px;
  margin-left: -1px;
}

.tree__lines::after {
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  transform-origin: center;
}

.tree__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.tree__groups span {
  overflow: hidden;
  padding: 5px 4px;
  border: 1px solid var(--blue-100);
  background: #fff;
  color: var(--ink);
  font-size: 0.66rem;
  text-align: center;
  text-overflow: ellipsis;
}

.tree__keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.tree__keys i {
  height: 8px;
  border-radius: 999px;
  background: #dde5ff;
}

/* 03 Team: a dark card */
.bento__card--team {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: radial-gradient(90% 60% at 100% 0%, rgba(47, 91, 255, 0.55), transparent 65%), var(--ink);
  color: #fff;
}

.bento__card--team:hover {
  border-color: rgba(122, 92, 255, 0.6);
}

.bento__card--team .bento__num {
  color: #9db3ff;
}

.bento__card--team .bento__text p {
  color: rgba(255, 255, 255, 0.72);
}

.bento__team {
  display: flex;
}

.bento__team img {
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.bento__team img + img {
  margin-left: -14px;
}

.bento__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento__chips span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

/* 04 Flow: search → ad → landing page → enquiry. On wide cards the text sits beside a top-to-bottom flow. */
.bento__card--flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.bento__card--flow .flow {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 0;
}

.bento__card--flow .flow li:not(:last-child)::after {
  right: auto;
  left: 50%;
  top: auto;
  bottom: -14px;
  width: 2px;
  height: 14px;
  margin-left: -1px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: flow;
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: #c3cffd;
}

.flow__tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.flow__win {
  border-color: #bfe8d0 !important;
  background: var(--green-50) !important;
  color: var(--green) !important;
}

/* 05 Tracking: a chart drawing upwards */
.spark svg {
  display: block;
  width: 100%;
  height: 84px;
}

.spark__line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spark__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.spark__chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
}

/* The visuals play once their card is in view */
@media (prefers-reduced-motion: no-preference) {
  .js .bento__card .mini-audit__check,
  .js .bento__card .mini-audit em {
    opacity: 0;
    transform: scale(0.5);
  }

  .js .bento__card.is-visible .mini-audit__check,
  .js .bento__card.is-visible .mini-audit em {
    animation: bento-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

  .js .bento__card.is-visible .mini-audit li:nth-child(1) :is(.mini-audit__check, em) { animation-delay: 0.35s; }
  .js .bento__card.is-visible .mini-audit li:nth-child(2) :is(.mini-audit__check, em) { animation-delay: 0.65s; }
  .js .bento__card.is-visible .mini-audit li:nth-child(3) :is(.mini-audit__check, em) { animation-delay: 0.95s; }
  .js .bento__card.is-visible .mini-audit li:nth-child(4) :is(.mini-audit__check, em) { animation-delay: 1.25s; }

  .js .bento__card .tree__lines::before { transform: scaleY(0); transform-origin: top; }
  .js .bento__card .tree__lines::after { transform: scaleX(0); }
  .js .bento__card .tree__groups span,
  .js .bento__card .tree__keys i { opacity: 0; transform: translateY(6px); }

  .js .bento__card.is-visible .tree__lines::before { animation: bento-grow-y 0.3s 0.35s ease both; }
  .js .bento__card.is-visible .tree__lines::after { animation: bento-grow-x 0.4s 0.6s ease both; }
  .js .bento__card.is-visible .tree__groups span { animation: bento-rise 0.45s ease both; }
  .js .bento__card.is-visible .tree__groups span:nth-child(1) { animation-delay: 0.9s; }
  .js .bento__card.is-visible .tree__groups span:nth-child(2) { animation-delay: 1s; }
  .js .bento__card.is-visible .tree__groups span:nth-child(3) { animation-delay: 1.1s; }
  .js .bento__card.is-visible .tree__keys i { animation: bento-rise 0.4s ease both; }
  .js .bento__card.is-visible .tree__keys i:nth-child(1) { animation-delay: 1.3s; }
  .js .bento__card.is-visible .tree__keys i:nth-child(2) { animation-delay: 1.36s; }
  .js .bento__card.is-visible .tree__keys i:nth-child(3) { animation-delay: 1.42s; }
  .js .bento__card.is-visible .tree__keys i:nth-child(4) { animation-delay: 1.48s; }
  .js .bento__card.is-visible .tree__keys i:nth-child(5) { animation-delay: 1.54s; }
  .js .bento__card.is-visible .tree__keys i:nth-child(6) { animation-delay: 1.6s; }

  .js .bento__card .bento__team img { opacity: 0; transform: scale(0.6); }
  .js .bento__card.is-visible .bento__team img { animation: bento-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .js .bento__card.is-visible .bento__team img:nth-child(2) { animation-delay: 0.12s; }
  .js .bento__card.is-visible .bento__team img:nth-child(3) { animation-delay: 0.24s; }

  .js .bento__card.is-visible .flow li { animation: flow-on 0.5s ease both; }
  .js .bento__card.is-visible .flow li:nth-child(1) { animation-delay: 0.35s; }
  .js .bento__card.is-visible .flow li:nth-child(2) { animation-delay: 0.7s; }
  .js .bento__card.is-visible .flow li:nth-child(3) { animation-delay: 1.05s; }
  .js .bento__card .flow li.flow__win { opacity: 0; transform: scale(0.85); }
  .js .bento__card.is-visible .flow li.flow__win { animation: bento-pop 0.5s 1.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }

  .js .bento__card .spark__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .bento__card .spark__area { opacity: 0; }
  .js .bento__card .spark__chips span { opacity: 0; transform: translateY(6px); }
  .js .bento__card.is-visible .spark__line { animation: bento-draw 1.4s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .js .bento__card.is-visible .spark__area { animation: bento-fade 0.9s 0.9s ease forwards; }
  .js .bento__card.is-visible .spark__chips span { animation: bento-rise 0.45s 1.3s ease both; }
  .js .bento__card.is-visible .spark__chips span + span { animation-delay: 1.45s; }
}

@keyframes bento-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes bento-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bento-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bento-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bento-draw { to { stroke-dashoffset: 0; } }
@keyframes bento-fade { to { opacity: 1; } }
@keyframes flow-on {
  0% { border-color: var(--line); background: #fff; }
  40% { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
  100% { border-color: var(--blue-100); background: #fff; color: var(--ink); }
}

/* Tablet: two columns */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "strategy strategy"
      "structure team"
      "tracking team"
      "flow flow";
  }
}

/* Phones: one column, strategy stacked */
@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "strategy" "team" "structure" "flow" "tracking";
    gap: 16px;
  }

  .bento__card {
    padding: 22px;
  }

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

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

/* ── Case studies ─────────────────────────────────────────────────────────────
   One layout for every client (just-eat.html, worldpay.html, kipling.html, built by tools/build_case_studies.py):
   a hero with the client's logo and an animated results card, an "At a glance" sidebar that stays in view, then
   the challenge, approach, results, impact and key lesson. --brand is the client's colour and --glow the colour that
   lights the hero (the client's colour, or violet where theirs is dark). */

/* Hero: dark, with soft colour drifting behind a fading dot grid. */
.cs-hero {
  position: relative;
  padding: clamp(24px, 3vw, 36px) 0 clamp(64px, 8vw, 112px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cs-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 75% at 72% 35%, #000, transparent 75%);
  mask-image: radial-gradient(60% 75% at 72% 35%, #000, transparent 75%);
}

.cs-hero__bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: cs-drift 18s ease-in-out infinite alternate;
}

.cs-hero__bg i:nth-child(1) {
  top: -200px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: var(--glow);
  opacity: 0.3;
}

.cs-hero__bg i:nth-child(2) {
  right: 30%;
  bottom: -260px;
  width: 520px;
  height: 520px;
  background: #2f5bff;
  opacity: 0.42;
  animation-duration: 23s;
  animation-delay: -7s;
}

.cs-hero__bg i:nth-child(3) {
  top: 8%;
  left: -200px;
  width: 420px;
  height: 420px;
  background: #7a5cff;
  opacity: 0.2;
  animation-duration: 27s;
  animation-delay: -13s;
}

@keyframes cs-drift {
  0% { translate: 0 0; scale: 1; }
  50% { translate: -50px 36px; scale: 1.1; }
  100% { translate: 36px -24px; scale: 0.94; }
}

.cs-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
}

.cs-crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.cs-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5.5vw, 88px);
}

.cs-hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.cs-logo {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.cs-logo img {
  width: auto;
  height: 28px;
}

.cs-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8ea6ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-hero__kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.cs-hero__title {
  margin-top: 28px;
  font-size: clamp(2.3rem, 4.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* The key phrase carries the brand's gradient; it flows through once as the page opens. */
.cs-hl {
  background: linear-gradient(100deg, #8ea6ff 0%, #c2a8ff 22%, #6fd8ff 44%, #8ea6ff 66%, #b49cff 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cs-hl 2.6s cubic-bezier(0.45, 0, 0.3, 1) 0.45s both;
}

@keyframes cs-hl {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

.cs-hero__lead {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.03rem, 1.3vw, 1.14rem);
  line-height: 1.75;
}

.cs-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin: 30px 0 0;
}

.cs-facts > div {
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cs-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.cs-facts dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-facts dd {
  margin: 4px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.cs-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn--glass:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

/* Entrance: the copy rises in line by line, then the results card. */
.cs-crumbs,
.cs-hero__copy > *,
.cs-dash {
  animation: cs-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--in, 0s) both;
}

.cs-hero__copy > :nth-child(1) { --in: 0.06s; }
.cs-hero__copy > :nth-child(2) { --in: 0.14s; }
.cs-hero__copy > :nth-child(3) { --in: 0.24s; }
.cs-hero__copy > :nth-child(4) { --in: 0.32s; }
.cs-hero__copy > :nth-child(5) { --in: 0.4s; }

.cs-dash {
  --in: 0.25s;
  animation-name: cs-rise-card;
  animation-duration: 1.1s;
}

@keyframes cs-rise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes cs-rise-card {
  from { opacity: 0; translate: 0 48px; scale: 0.95; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* The results card: headline figure, a growth line that draws itself, then the other results. */
.cs-dash {
  position: relative;
  isolation: isolate;
  perspective: 1400px;
}

.cs-dash::before {
  content: "";
  position: absolute;
  inset: 10% -3% -4%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(120deg, var(--glow), #2f5bff 55%, #19b8ff);
  filter: blur(52px);
  opacity: 0.45;
}

.cs-dash__card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-dash__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cs-dash__logo {
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--tint);
}

.cs-dash__logo img {
  width: auto;
  height: 16px;
  mix-blend-mode: multiply;
}

.cs-dash__source {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cs-dash__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}

.cs-dash__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: cs-ping 2s ease-out infinite;
}

@keyframes cs-ping {
  from { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0.45); }
  to { box-shadow: 0 0 0 8px rgba(18, 161, 80, 0); }
}

.cs-dash__lead {
  margin-top: 18px;
}

.cs-dash__value {
  color: var(--blue);
  font-size: clamp(2.9rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.cs-dash__label {
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 800;
}

.cs-dash__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cs-chart {
  position: relative;
  aspect-ratio: 480 / 170;
  margin-top: 22px;
}

.cs-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cs-chart__grid {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 3 6;
}

.cs-chart__before {
  fill: none;
  stroke: #c3cadb;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  opacity: 0;
  animation: cs-fade 0.8s ease 0.7s forwards;
}

.cs-chart__area {
  opacity: 0;
  animation: cs-fade 1s ease 1.9s forwards;
}

/* Keep the delay and duration in step with DRAW_START / DRAW_TIME in tools/build_case_studies.py. */
.cs-chart__line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cs-draw 1.8s linear 0.9s forwards;
}

@keyframes cs-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes cs-fade {
  to { opacity: 1; }
}

/* A dot appears as the line reaches each milestone; the last one keeps pulsing. */
.cs-chart__mark {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(47, 91, 255, 0.35);
  font-style: normal;
  opacity: 0;
  scale: 0.3;
  animation: cs-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) forwards;
}

.cs-chart__mark span {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  translate: -50% 0;
  box-shadow: var(--shadow-sm);
}

.cs-chart__mark span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--ink);
}

.cs-chart__mark--start span {
  left: -8px;
  translate: 0 0;
}

.cs-chart__mark--start span::after {
  left: 14px;
}

.cs-chart__mark--end {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-color: #fff;
  background: var(--blue);
}

.cs-chart__mark--end::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  animation: cs-ring 1.8s ease-out calc(var(--d) + 0.3s) infinite;
}

@keyframes cs-pop {
  to { opacity: 1; scale: 1; }
}

@keyframes cs-ring {
  from { opacity: 0.7; scale: 1; }
  to { opacity: 0; scale: 2.6; }
}

.cs-dash__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.cs-dash__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cs-dash__key::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7a5cff, #2f5bff, #19b8ff);
}

.cs-dash__key--before::before {
  background: repeating-linear-gradient(90deg, #c3cadb 0 5px, transparent 5px 9px);
}

.cs-dash__tiles {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  margin-top: 16px;
}

.cs-dash__tile {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  opacity: 0;
  translate: 0 12px;
  animation: cs-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d) forwards;
}

.cs-dash__tile-value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.cs-dash__tile-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes cs-up {
  to { opacity: 1; translate: 0 0; }
}

/* Results with no published figure show their direction (up or down) instead of a number. */
.cs-dir {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green);
}

.cs-dir svg {
  width: 30px;
  height: 30px;
}

.cs-dash__tile .cs-dir {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cs-dash__tile .cs-dir svg {
  width: 19px;
  height: 19px;
}

/* Floating notes beside the card: what made the difference. */
.cs-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation:
    cs-chip-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--cd) forwards,
    cs-float 4.5s ease-in-out calc(var(--cd) + 0.7s) infinite alternate;
}

.cs-chip b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.cs-chip--0 {
  --cd: 1.5s;
  top: -20px;
  left: -28px;
}

.cs-chip--1 {
  --cd: 2.3s;
  right: -30px;
  bottom: -18px;
  animation-duration: 0.7s, 5.5s;
}

@keyframes cs-chip-in {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

@keyframes cs-float {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}

/* The card's animations wait until it is on screen (site.js adds .is-in). */
.js .cs-dash:not(.is-in),
.js .cs-dash:not(.is-in) *,
.js .cs-dash:not(.is-in) *::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero *,
  .cs-hero *::before,
  .cs-hero *::after {
    animation: none !important;
  }

  .cs-chart__line {
    stroke-dashoffset: 0;
  }

  .cs-chart__before,
  .cs-chart__area,
  .cs-chart__mark,
  .cs-dash__tile,
  .cs-chip {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

.cs-metric__value {
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.cs-metric__label {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.cs-metric__value--dir {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.cs-metric__value--dir svg {
  width: 30px;
  height: 30px;
}

.cs-lesson__label {
  color: #8ea6ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Body: sidebar + story ── */

.cs-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.cs-aside {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.cs-glance {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cs-glance__title {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cs-glance dl {
  margin: 0 0 22px;
}

.cs-glance dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cs-glance dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-glance dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
}

.cs-article {
  max-width: 780px;
}

.cs-block + .cs-block,
.cs-block + .cs-lesson {
  margin-top: clamp(56px, 7vw, 88px);
}

.cs-block__title {
  margin: 12px 0 20px;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cs-block p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.cs-block p + p {
  margin-top: 16px;
}

.cs-block p strong {
  color: var(--ink);
  font-weight: 700;
}

.cs-steps {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.cs-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
}

.cs-step:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
  translate: 0 -2px;
}

.cs-step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.cs-step:hover .cs-step__num {
  background: var(--blue);
  color: #fff;
}

.cs-step h3 {
  margin: 11px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cs-step p {
  font-size: 1rem;
  line-height: 1.75;
}

.cs-step p + p {
  margin-top: 10px;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 30px 0;
}

/* Four results sit two by two rather than three and one. */
.cs-metrics:has(> .cs-metric:nth-child(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-metrics .cs-metric {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--tint);
}

.cs-metrics .cs-metric__value {
  color: var(--blue);
  font-size: clamp(2.3rem, 3.4vw, 2.9rem);
}

.cs-metrics .cs-metric__value--dir {
  background: var(--green-50);
  color: var(--green);
}

.cs-metrics .cs-metric__label {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.cs-block .cs-metric__text {
  margin-top: 6px;
  font-size: 0.93rem;
  line-height: 1.6;
}

.cs-lesson {
  position: relative;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 26px;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(47, 91, 255, 0.4), transparent 70%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}

.cs-lesson::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 28px;
  color: rgba(142, 166, 255, 0.22);
  font-size: 11rem;
  font-weight: 800;
  line-height: 1;
}

.cs-lesson blockquote {
  position: relative;
  margin: 14px 0 0;
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ── Case study cards (home page and "More case studies") ── */

.cs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}


.cs-card:hover {
  translate: 0 -4px;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}


.cs-card__logo {
  display: flex;
  align-items: center;
}

.cs-card__logo img {
  width: auto;
  max-width: 160px;
  max-height: 34px;
}

.cs-card__stat {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.cs-card__stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.cs-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.cs-card__link {
  display: inline-flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.cs-card__link span {
  transition: translate 0.25s ease;
}

.cs-card:hover .cs-card__link span {
  translate: 4px 0;
}

.section--dark .cs-card {
  border-color: transparent;
}

/* The logo sits on a strip tinted with the client's colour; multiply drops any white behind a logo. */
.cs-card__logo {
  height: 104px;
  margin: -30px -30px 4px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 7%, #f7f9fe);
}

.cs-card__logo img,
.cs-logo img {
  mix-blend-mode: multiply;
  transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

.cs-card:hover .cs-card__logo img {
  scale: 1.06;
}

.cs-block__num {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 30px;
  margin-right: 14px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: 0.32em;
}

/* "On this page": follows the reader (site.js marks the section in view). */
.cs-toc {
  display: grid;
  margin-top: 26px;
  padding-left: 4px;
}

.cs-toc__title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-toc a {
  position: relative;
  padding: 7px 0 7px 18px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-toc a:hover {
  color: var(--ink);
}

.cs-toc a.is-active {
  border-left-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

@media (max-height: 820px) {
  .cs-toc {
    display: none;
  }
}

.section--dark .cs-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .cs-hero__grid,
  .cs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-dash {
    width: 100%;
    max-width: 620px;
  }

  .cs-chip--0 {
    left: auto;
    right: 18px;
    top: -18px;
  }

  .cs-chip--1 {
    right: auto;
    left: 18px;
  }

  .cs-aside {
    position: static;
  }

  .cs-toc {
    display: none;
  }

  .cs-glance dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
  }

  .cs-glance dl > div:nth-child(n + 5) {
    grid-column: span 1;
  }

  .cs-glance dl > div:last-child {
    grid-column: 1 / -1;
  }

  .cs-glance .btn {
    width: auto;
  }

  .cs-article {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .cs-glance dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .cs-glance .btn {
    width: 100%;
  }

  .cs-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cs-step h3 {
    margin-top: 0;
  }

  .cs-cards,
  .cs-metrics:has(> .cs-metric:nth-child(4)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-card {
    padding: 24px;
  }

  .cs-card__logo {
    height: 88px;
    margin: -24px -24px 2px;
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .cs-metric__value {
    font-size: 2.3rem;
  }

  .cs-metric__label {
    font-size: 0.86rem;
  }

  .cs-glance dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-logo {
    height: 52px;
    padding: 0 16px;
  }

  .cs-logo img {
    height: 24px;
  }

  .cs-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cs-facts > div {
    padding: 0;
    border: 0;
  }

  .cs-hero__ctas .btn {
    width: 100%;
  }

  .cs-dash__tile {
    padding: 12px;
  }

  .cs-dash__tile-value {
    font-size: 1.35rem;
  }
}
