/* ============================================================
   cto.wiserbrand.com — Fractional CTO + AI adoption landing styles
   Hand-written, no build step. Light content sections with dark
   hero, client proof band, and footer (see README for design deviations).
   ============================================================ */

/* Light palette: the page default, and re-applied with .theme-light inside dark
   bands (the hero form card). */
:root,
.theme-light {
  color-scheme: light;

  --bg:        #ffffff;   /* page background */
  --surface:   #f1f4f5;   /* alternate sections, cards */
  --surface-2: #f7f9fa;   /* nested cards, inputs */
  --fg:        #263238;   /* body text */
  --heading:   #111827;
  --muted:     #4b5563;   /* secondary/body text: 7.6:1 on white, 6.8:1 on --surface */
  --subtle:    #374151;
  --primary:   #096c6e;   /* borders, icons, labels, and other teal details */
  --button-bg: #6fd5d6;   /* buttons and primary CTAs, consistent in all sections */
  --primary-fg:#0a0a0a;
  --accent:    #9747ff;   /* WiserBrand purple */
  --accent-text: #7436c6;
  --success:   #15803d;
  --danger:    #b91c1c;
  --border:    rgba(17, 24, 39, 0.12);
  --border-strong: rgba(17, 24, 39, 0.22);
  --placeholder: #64717d;
  --logo-bg:   #ffffff;   /* chip behind third-party platform logos */

  --primary-04: rgba(9, 108, 110, 0.04);
  --primary-08: rgba(9, 108, 110, 0.08);
  --primary-10: rgba(9, 108, 110, 0.1);
  --primary-15: rgba(9, 108, 110, 0.15);
  --primary-18: rgba(9, 108, 110, 0.18);
  --primary-20: rgba(9, 108, 110, 0.2);
  --primary-25: rgba(9, 108, 110, 0.25);
  --primary-30: rgba(9, 108, 110, 0.3);
  --primary-40: rgba(9, 108, 110, 0.4);
  --accent-10:  rgba(151, 71, 255, 0.1);
  --accent-30:  rgba(151, 71, 255, 0.3);
  --danger-06:  rgba(185, 28, 28, 0.06);
  --header-bg:  rgba(10, 10, 10, 0.85);
  --row-alt:    rgba(17, 24, 39, 0.025);
  --row-hover:  rgba(9, 108, 110, 0.06);
  --shadow:     rgba(17, 24, 39, 0.12);

  --radius-sm: 0.5rem;     /* 8px — inputs */
  --radius:    0.625rem;   /* 10px — buttons */
  --radius-md: 0.875rem;   /* 14px */
  --radius-lg: 1.25rem;    /* 20px — cards */

  --container: 1280px;
  --gutter: 2.5rem;
  --header-h: 4rem;
  --ease: 150ms ease;
}

/* Scoped palette keeps light content, dark forms, and native controls coherent. */
.theme-dark {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --fg: #e8e8e8;
  --heading: #ffffff;
  --muted: #9a9a9a;
  --subtle: #cccccc;
  --accent-text: #a78bfa;
  --success: #4ade80;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --placeholder: #9a9a9a;
  --danger-06: rgba(248, 113, 113, 0.06);
  --row-alt: rgba(255, 255, 255, 0.015);
  --row-hover: rgba(255, 255, 255, 0.03);
  --shadow: rgba(0, 0, 0, 0.4);
  background: var(--bg);
  color: var(--fg);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; color: var(--heading); line-height: 1.2; }
p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 6rem 0; background: var(--bg); }
.section--alt { background: var(--surface); }
.section__body { margin-top: 3rem; }
/* Centred section (Clients): eyebrow, heading, sub-titles and pill rows */
.section--center { text-align: center; }
.section--center .h-section,
.section--center .lead { margin-inline: auto; }
.section--center .industries { justify-content: center; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--primary-20);
  border-radius: 999px;
  background: var(--primary-04);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Three distinct steps: section heading → lead (explanation) → body text. */
.h-section {
  max-width: 860px;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.lead {
  max-width: 680px;
  margin-top: 1rem;
  color: var(--fg);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.sub-title { margin-top: 4rem; font-size: 1.5rem; }

.note { max-width: 820px; margin-top: 1.75rem; color: var(--muted); }
.note strong { color: var(--fg); font-weight: 700; }

.link-arrow { color: var(--primary); font-weight: 700; transition: opacity var(--ease); }
.link-arrow::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--ease);
}
a.link-arrow:hover::after,
a:hover > .link-arrow::after { transform: translateX(2px); }
a.link-arrow:hover { opacity: 0.8; }

/* Bullet lists */
.dot-list { display: grid; gap: 0.625rem; color: var(--muted); font-size: 0.9375rem; }
.dot-list li { position: relative; padding-left: 1.375rem; }
.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease),
              border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--button-bg); color: var(--primary-fg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--primary-30); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; }
.btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1rem; }
.btn__arrow { width: 1.125rem; height: 1.125rem; transition: transform var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  text-align: center;
}
.cta-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.8125rem; }

/* ---------- Form inputs ---------- */
.input,
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--fg);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--ease);
}
/* Native selects ignore line-height, so pin one-line controls to the same height. */
.field input,
.field select { height: 2.75rem; }
textarea.input,
.field textarea { resize: vertical; }
.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--primary); }
.input::placeholder,
.field ::placeholder { color: var(--placeholder); }

.form-status { margin-top: 0.75rem; font-size: 0.875rem; text-align: center; }
.form-status--success { color: var(--success); }
.form-status--error { color: var(--danger); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.header__logo img { height: 2rem; width: auto; }
.header__nav { display: flex; gap: 1.75rem; }
.header__nav a,
.mobile-menu a:not(.btn) {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--ease);
}
.header__nav a:hover,
.mobile-menu a:not(.btn):hover { color: var(--button-bg); }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone {
  display: flex;
  padding: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease);
}
.header__phone .icon { width: 1rem; height: 1rem; }
.header__phone:hover { border-color: var(--button-bg); color: var(--button-bg); }

.header__toggle {
  display: none;
  padding: 0.25rem;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}
.header__toggle .icon { width: 1.5rem; height: 1.5rem; }
.header__toggle .icon-close,
.header__toggle[aria-expanded="true"] .icon-menu { display: none; }
.header__toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__phone { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu__phone .icon { width: 1rem; height: 1rem; }
.mobile-menu .btn { margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Fill the small viewport; allow stacked forms to grow on narrow screens. */
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  /* Teal-to-purple glow at the top and soft orbs on the right, after the
     wiserbrand.com homepage hero (drawn in CSS rather than its 500 KB PNG). */
  background:
    radial-gradient(circle at 93% 9%, rgba(112, 122, 214, 0.55), rgba(112, 122, 214, 0) 4.5rem),
    radial-gradient(circle at 92% 76%, rgba(112, 122, 214, 0.45), rgba(112, 122, 214, 0) 4.5rem),
    radial-gradient(circle at 89% 88%, rgba(124, 110, 220, 0.55), rgba(124, 110, 220, 0) 7rem),
    radial-gradient(circle at 94% 92%, rgba(80, 188, 189, 0.3), rgba(80, 188, 189, 0) 5rem),
    radial-gradient(ellipse 28% 42% at 16% 0%, rgba(80, 188, 189, 0.32), rgba(80, 188, 189, 0)),
    radial-gradient(ellipse 30% 42% at 36% 0%, rgba(124, 60, 220, 0.42), rgba(124, 60, 220, 0)),
    #060606;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 3.5rem;
  align-items: center;   /* form card centred against the text column */
}

/* One official badge per page, below the hero points. Padding reserves at least twice
   the tier-name height as clearspace; the negative start margin lets the left
   clearspace use the gutter so the artwork lines up with the title. Keep it
   independent of the recognition strip. */
.hero__partner {
  display: block;
  width: max-content;
  padding: 40px;
  margin-inline-start: calc(-1 * var(--gutter));
}
.hero__partner img { width: 300px; height: auto; }

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero__lead {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}
.hero__points {
  display: grid;
  gap: 0.5rem;
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--fg);
  font-size: 0.9375rem;
}
.hero__points li { position: relative; padding-left: 1.75rem; }
/* Plain check marks: no glow, so the CTA stays the only highlighted element. */
.hero__points li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.3rem;
  width: 0.375rem;
  height: 0.75rem;
  border: solid var(--button-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* The conversion cards (hero and contact forms): a plain thin border, no effects.
   The hero card is light (.theme-light) so it stands out on the dark hero. */
.hero-card { padding: 2rem; background: var(--bg); }
.hero-card,
.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-form { background: var(--surface); }
.hero-card h2 { font-size: 1.375rem; font-weight: 500; }
.hero-card__alt { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.hero-card__form { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.hero-card__form textarea { min-height: 5rem; }
.hero-card__form .field { margin-bottom: 0; }
.hero-card__alt { text-align: center; }
/* Calendly links carry the Calendly mark */
.cal-link { display: inline-flex; align-items: center; gap: 0.375rem; vertical-align: middle; }
.cal-link img { width: 18px; height: auto; flex-shrink: 0; }
.hero-card__alt a { color: var(--primary); font-weight: 700; }
.hero-card__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.not-fit a { color: var(--primary); font-weight: 700; transition: opacity var(--ease); }
.not-fit a:hover { opacity: 0.8; }

/* ---------- Proof band ---------- */
.logos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.logos__list li { display: flex; align-items: center; justify-content: center; min-height: 4.5rem; }
/* Client logos as white silhouettes; GE uses a pre-made white cut-out file.
   Files are cropped to the artwork; each logo's size comes from its width/height. */
.logos__img { max-width: 100%; height: auto; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity var(--ease); }
.logos__img--white { filter: none; }
.logos__list li:hover .logos__img { opacity: 1; }
/* Clients marquee: the logo list is rendered twice and the track slides by
   half its width, so the loop is seamless. Pauses on hover. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .logos__list { display: flex; flex-wrap: nowrap; gap: 4rem; padding-right: 4rem; }
.marquee .logos__list li { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Other certifications keep their original sizes in a compact alternate-colour
   strip below the hero, with no visible heading. */
.recognition { padding: 2rem 0; background: var(--surface); }
.badges { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; }
.badges img { max-width: 100%; height: auto; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--ease), transform var(--ease);
}

/* Situations */
.pain { overflow: hidden; padding: 2rem; background: var(--surface-2); }
.pain::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}
.pain::after {
  content: "\201C";
  position: absolute;
  top: 0.75rem;
  right: 1.5rem;
  color: var(--primary-25);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}
.pain:hover { border-color: var(--primary-25); }
.pain:hover::before { opacity: 1; }
.pain__icon {
  position: absolute;
  right: -1rem;
  bottom: -1.25rem;
  color: var(--primary);
  opacity: 0.07;
  transform: rotate(-14deg);
  pointer-events: none;
}
.pain__icon .icon { width: 7.5rem; height: 7.5rem; stroke-width: 1.5; }
.pain h3,
.pain p { position: relative; }
.pain h3 { margin-bottom: 0.625rem; padding-right: 2.5rem; font-size: 1.25rem; }
.pain p { color: var(--subtle); font-size: 1rem; line-height: 1.65; }

/* Personas and role cards */
.persona { display: flex; flex-direction: column; padding: 1.75rem; }
.persona:hover { border-color: var(--primary-25); transform: translateY(-2px); }
/* Who leads: people cards */
.person { display: flex; flex-direction: column; padding: 1.75rem; }
.person__head { display: flex; align-items: center; gap: 1.25rem; min-height: 132px; margin-bottom: 1.25rem; }
.person__photo {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border: 2px solid var(--primary-25);
  border-radius: 50%;
  object-fit: cover;
}
.person h3 { font-size: 1.25rem; }
.person__role { margin-top: 0.125rem; color: var(--primary); font-size: 0.8125rem; font-weight: 500; }
.person__bio { color: var(--muted); font-size: 0.9375rem; }
/* Delivery team: role badges instead of a photo */
.person__crew { display: flex; flex-shrink: 0; }
.person__crew span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  /* Tints sit on an opaque base so overlapping circles don't show through. */
  background: linear-gradient(var(--primary-15), var(--primary-15)) var(--surface);
  color: var(--primary);
}
.person__crew span + span { margin-left: -16px; }
.person__crew .icon { width: 1.375rem; height: 1.375rem; }
.person__crew .person__crew--ai { background: linear-gradient(var(--accent-10), var(--accent-10)) var(--surface); color: var(--accent-text); }
.person__crew .person__crew--qa { background: var(--surface-2); color: var(--subtle); }

.persona h3 { margin-bottom: 0.625rem; font-size: 1.125rem; }
.persona__pain { color: var(--muted); font-size: 0.9375rem; }
.section--alt .persona { background: var(--bg); }

/* What your CTO owns */
.split-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.split-box > div { padding: 2.25rem 2rem; border-right: 1px solid var(--border); }
.split-box > div:last-child { border-right: 0; }
.split-box h3 { margin-bottom: 0.875rem; font-size: 1.375rem; }
.team { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.375rem; }
.team__chip {
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--primary-25);
  border-radius: var(--radius-sm);
  background: var(--primary-08);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
}
.team__chip--add {
  border-color: var(--accent-30);
  background: var(--accent-10);
  color: var(--accent-text);
}
.team__plus { color: var(--muted); font-weight: 700; }

/* ---------- AI adoption ---------- */
.case__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.125rem; }
.case__tools { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.case__tools li {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 500;
}
.case__arrow { margin-left: auto; color: var(--primary); transition: transform var(--ease); }
.case:hover .case__arrow { transform: translate(2px, -2px); }

.next-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--primary-30);
  border-radius: 50%;
  background: var(--primary-15);
  color: var(--primary);
  font-weight: 700;
}

/* Case cards (whole card is the link) */
.case { display: flex; flex-direction: column; padding: 1.5rem 1.75rem; background: var(--bg); }
.case:hover { border-color: var(--primary-25); transform: translateY(-2px); }
/* Title says what was built; the number follows as the result. */
.case__result { margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: 0.875rem; }
.case__result strong,
.outcome__result strong { display: block; color: var(--primary); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.case__result + .case__foot { margin-top: 0; padding-top: 0.875rem; }
.case__label {
  margin-bottom: 0.875rem;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* AI path: four step cards; the bar on top fills a quarter more per step. */
.ai-sub { margin-top: 3.5rem; }
.ai-path,
.ai-cases { margin-top: 1.5rem; }
.ai-path__step { padding: 1.5rem 1.5rem 1.75rem; background: var(--bg); }
.ai-path__step::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) var(--fill), var(--primary-15) var(--fill));
}
.ai-path__step:nth-child(1) { --fill: 25%; }
.ai-path__step:nth-child(2) { --fill: 50%; }
.ai-path__step:nth-child(3) { --fill: 75%; }
.ai-path__step:nth-child(4) { --fill: 100%; }
.ai-path__num {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.ai-path h4 { margin-bottom: 0.625rem; font-size: 1.125rem; }
.ai-path__step > p:last-child { color: var(--muted); font-size: 0.9375rem; }

/* Case images: hover/focus zooms the photo slowly. The industry label sits on
   the image as a chip. */
.case { overflow: hidden; }
.case__media {
  position: relative;
  margin: -1.5rem -1.75rem 1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.case:hover .case__media img,
.case:focus-visible .case__media img { transform: scale(1.05); }
.case__media .case__label {
  position: absolute;
  left: 0.875rem;
  bottom: 0.875rem;
  z-index: 1;
  margin: 0;
  padding: 0.3125rem 0.625rem;
  max-width: calc(100% - 1.75rem);
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Results: image beside the text */
.results__cases .case { flex-direction: row; padding: 0; }
.results__cases .case__media { flex: 0 0 40%; margin: 0; aspect-ratio: auto; min-height: 12rem; }
.results__cases .case__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.75rem; }

.case h3 { margin-bottom: 0.5rem; font-size: 1.125rem; line-height: 1.4; }
.case h3 + p { color: var(--subtle); font-size: 0.9375rem; }
.case .link-arrow { margin-top: 0.875rem; font-size: 0.875rem; }

/* ---------- Who we work with ---------- */
.fit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }

.not-fit {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
}
.not-fit__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.125rem; }
.not-fit__icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.not-fit h3 { font-size: 1.125rem; }
.not-fit__list { display: grid; gap: 0.75rem; }
.not-fit__list li { position: relative; padding-left: 1.375rem; color: var(--fg); }
.not-fit__list li::before {
  content: "–";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}
.not-fit__list + p { margin-top: auto; padding-top: 1.125rem; font-size: 0.875rem; }

/* ---------- How it works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  pointer-events: none;
}
.step { position: relative; padding: 0 1.5rem; text-align: center; }
.step__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}
.phase__tag {
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.step h3 { margin-bottom: 0.625rem; font-size: 1.0625rem; }
.step > p:last-child { color: var(--muted); font-size: 0.875rem; }
.steps__note { margin: 2.5rem auto 0; text-align: center; }

.phases {
  margin-top: 4.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.phases__title { font-size: 1.5rem; }
.phases__intro { max-width: 720px; margin: 0.5rem 0 1.75rem; color: var(--muted); font-size: 0.9375rem; }
.phases__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
.phase h4 { margin: 0.375rem 0 0.75rem; font-size: 1.125rem; }

/* ---------- Services ---------- */
.model { display: flex; flex-direction: column; padding: 1.875rem; background: var(--surface); }
.model:hover { border-color: var(--primary-25); }
.model--featured { border-color: var(--primary-40); background: var(--primary-04); }
.model__head { margin-bottom: 1rem; }
.model__duration { margin-bottom: 0.25rem; color: var(--primary); font-size: 0.75rem; font-weight: 500; }
.model h3 { font-size: 1.1875rem; }
.model__desc { margin-bottom: 1.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.model__best {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.875rem;
}
.model__best strong { color: var(--primary); }
/* Further work that fits inside any of the three formats */
.deliver {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem 3rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.deliver h3 { font-size: 1.1875rem; }
.deliver p { margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Results ---------- */
.outcome { display: flex; flex-direction: column; padding: 1.75rem; background: var(--bg); }
.outcome h3 { font-size: 1.0625rem; line-height: 1.4; }
.outcome__result { margin-top: auto; padding-top: 1rem; color: var(--muted); font-size: 0.875rem; }
.results__cases { margin-top: 1.25rem; }

/* Industries: pills with a small icon */
.industries { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.industries li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem 0.5rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}
.industry__icon { display: flex; color: var(--primary); }
.industry__icon .icon { width: 1rem; height: 1rem; }

/* Rating summary above the review cards */
.ratings { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ratings a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
  transition: border-color var(--ease);
}
.ratings a:hover { border-color: var(--primary); }
.ratings strong { color: var(--heading); }

/* White chip behind G2 / Clutch marks (the Clutch "C" is too dark for the page) */
.platform-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--logo-bg);
}
.platform-mark img { width: auto; height: 18px; }
.ratings .platform-mark { width: 26px; height: 26px; }
.ratings .platform-mark img { height: 15px; }
/* Full-bleed square logos (e.g. DesignRush) cropped to the same circle */
.platform-mark--fill { overflow: hidden; }
.platform-mark--fill img,
.ratings .platform-mark--fill img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }

.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { width: 1rem; height: 1rem; fill: var(--primary); }
.stars__score { margin-left: 0.5rem; color: var(--heading); font-size: 0.875rem; font-weight: 700; }

.testimonials { margin-top: 1.5rem; }
/* Subgrid keeps rating, quote and author rows aligned across the cards. */
.testimonial {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 1.75rem;
  background: var(--bg);
}
.testimonial__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.testimonial blockquote { color: var(--fg); font-size: 1rem; line-height: 1.65; }
.testimonial__by {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.testimonial__avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.testimonial__avatar--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-30);
  background: var(--primary-15);
  color: var(--primary);
}
.testimonial__name { display: block; color: var(--heading); font-size: 0.9375rem; font-weight: 700; }
.testimonial__role { display: block; color: var(--muted); font-size: 0.8125rem; }
.testimonial__source { display: inline-block; margin-top: 0.25rem; font-size: 0.8125rem; }

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.9375rem; text-align: left; }
.compare th,
.compare td { padding: 1rem 1.25rem; vertical-align: top; }
.compare thead tr { background: var(--surface-2); }
.compare thead th,
.compare thead td { border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.compare thead .compare__ours { border-bottom-color: var(--primary-30); background: var(--primary-08); color: var(--primary); }
.compare tbody tr { border-bottom: 1px solid var(--border); transition: background var(--ease); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare tbody tr:nth-child(even) { background: var(--row-alt); }
.compare tbody tr:hover { background: var(--row-hover); }
.compare tbody th { width: 22%; color: var(--fg); font-size: 0.875rem; font-weight: 700; }
.compare tbody td { color: var(--muted); }
.compare tbody .compare__ours {
  border-inline: 1px solid var(--primary-15);
  background: var(--primary-04);
  color: var(--fg);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
/* Heading and CTA on the left, questions on the right */
.faq-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 2rem 4.5rem; align-items: start; }
.faq-layout__cta { margin-top: 1.5rem; color: var(--muted); }
.faq-layout__cta .link-arrow:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary { color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--primary); }
.faq details p { padding-bottom: 1.125rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact .h-section { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;   /* text centred against the form, as in the hero */
}
.next-steps { display: grid; gap: 1.25rem; margin-top: 2rem; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0.875rem; }
.next-steps h3 { font-size: 1rem; }
.next-steps p { margin-top: 0.125rem; color: var(--muted); font-size: 0.9375rem; }

.contact-form { padding: 2.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.375rem; color: var(--fg); font-size: 0.8125rem; font-weight: 500; }
.contact-form .btn-block { margin-top: 0.5rem; }
.contact-form .form-status { margin-top: 1rem; }
.contact-form__note { margin-top: 1rem; color: var(--muted); font-size: 0.8125rem; }
.contact-form__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer__inner img { height: 1.5rem; width: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer__legal a { transition: color var(--ease); }
.footer__legal a:hover { color: var(--primary); }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .header__nav { display: none; }
  .header__toggle { display: block; }
  .hero__grid,
  .contact__grid,
  .fit { grid-template-columns: 1fr; }
  .hero__grid,
  .contact__grid { gap: 2.5rem; }
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .phases__list { grid-template-columns: 1fr; }
  .deliver { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .split-box { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .split-box > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .split-box > div:last-child { border-bottom: 0; }
  .badges { justify-content: center; }
}

@media (max-width: 767px) {
  :root { --gutter: 1.5rem; }
  .section { padding: 4.5rem 0; }
  /* Stacked hero: keep only the top glow, widened to the narrow viewport. */
  .hero {
    background:
      radial-gradient(ellipse 70% 22% at 10% 0%, rgba(80, 188, 189, 0.32), rgba(80, 188, 189, 0)),
      radial-gradient(ellipse 75% 22% at 80% 0%, rgba(124, 60, 220, 0.42), rgba(124, 60, 220, 0)),
      #060606;
  }
  .hero__title { font-size: 2rem; }
  .hero__lead { font-size: 1rem; }
  .hero__points,
  .grid-2,
  .grid-3,
  .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .hero-card,
  .contact-form,
  .phases { padding: 1.5rem; }
  .cta-block .btn { white-space: normal; text-align: center; }
  .marquee__track { zoom: 0.7; }
  .badges { justify-content: center; gap: 1.5rem 1.75rem; zoom: 0.8; }
}

@media (max-width: 427px) {
  .hero__partner { padding: 32px; }
  .hero__partner img { width: 120px; }
}

@media (max-width: 640px) {
  .header__actions { display: none; }
  .sticky-cta {
    display: flex;
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 60;
    box-shadow: 0 8px 24px var(--shadow);
  }
  body { padding-bottom: 5.25rem; }
}

@media (max-width: 559px) {
  .results__cases .case { flex-direction: column; }
  .results__cases .case__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .person__crew span { width: 48px; height: 48px; }
  .person__crew span + span { margin-left: -14px; }
  .person__crew .icon { width: 1.125rem; height: 1.125rem; }
  .grid-4,
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none !important; }
  .marquee .logos__list { flex-wrap: wrap; justify-content: center; gap: 1.5rem 3rem; width: 100%; padding-right: 0; }
  .marquee__group[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn-primary:hover,
  .persona:hover,
  .case:hover,
  .case:hover .case__media img,
  .case:focus-visible .case__media img { transform: none; }
}
