/* Agora Labs base system. Shared by every page; see DESIGN.md. */

:root {
  --ink: #0d0d10;
  --ink2: #16161b;
  --panel: #1a1a21;
  --panel2: #202028;
  --line: #33333c;
  --contour: #1c1c24;
  --slate: #45454f;
  --amber: #d88a4e;
  --amberHi: #f0ba78;
  --terr: #b5705a;
  --bone: #f2eee6;
  --soft: #c9c4bb;
  --muted: #9c968c;
  --faint: #6e6a63;
  --sage: #8aa086;
  --stone: #6e7e76;
  --header-h: 92px;
  --gutter: clamp(1.6rem, 5vw, 4.5rem);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--soft);
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  color: var(--amberHi);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Card lift. Pointer-only; the cards carry their own inline transition. */
@media (hover: hover) {
  [data-lift]:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-lift]:hover {
    transform: none;
  }
}

/* Skip link. Off-screen until focused, then pinned above the sticky header. */

/* Placement and reveal only: the appearance is .btn .btn-primary .btn-sm, so
   it stays the site's button rather than a lookalike. Visible while focused
   because a sighted keyboard user has to see where focus landed. */
.skip-link {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  left: var(--gutter);
  z-index: 20;
  transform: translateY(calc(-100% - var(--header-h) - 28px));
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* brand lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-lockup .logo-mark {
  width: auto;
  height: 26px;
  flex: none;
}

/* buttons: amber takes an ink label, never white */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: var(--ink);
}

.btn-primary {
  background: var(--amber);
}

.btn-primary:hover {
  background: var(--amberHi);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--soft);
  font-weight: 500;
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--bone);
}

.btn-secondary:hover {
  border-color: var(--faint);
  color: var(--bone);
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* brands marquee */
.partners-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-row__label {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

/* below the nav breakpoint the label would leave the strip no width at all */
@media (max-width: 820px) {
  .partners-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .logo-marquee {
    flex-basis: 100%;
  }
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-slot {
  flex: none;
  width: 150px;
  height: 26px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    var(--panel),
    var(--panel) 5px,
    var(--panel2) 5px,
    var(--panel2) 10px
  );
}

/* each mark takes its height from the markup, balanced by visual weight rather than one shared size */
.logo-item {
  flex: none;
  width: auto;
}

/* google's descenders leave it riding high; a margin, not a translate, so the g isn't clipped */
.logo-item[src$="/google.svg"] {
  margin-top: 6px;
}

@keyframes logo-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

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

  .btn {
    transition: none;
  }
}

.nav-link {
  font-size: 13.5px;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--bone);
}

.nav-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

/* hit areas. These controls draw 20 to 28px tall; a pseudo-element extends the
   clickable box to 44px (30px for the stacked footer links, the most that fits
   without overlapping a neighbour) while layout, spacing and focus rings stay
   exactly as drawn. WCAG 2.5.8 was already met by spacing; this reaches the
   platform 44px guidance. */
.nav-link,
.nav-trigger,
.marquee-pause,
.g-footer a {
  position: relative;
}

@media (min-width: 821px) {
  .nav-link::before,
  .nav-trigger::before {
    content: "";
    position: absolute;
    inset: -12px 0;
  }
}

.marquee-pause::before {
  content: "";
  position: absolute;
  inset: -9px; /* measured from the padding box, inside the 1px border */
}

.g-footer a::before {
  content: "";
  position: absolute;
  inset: -5px 0;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/* Mobile menu button. Hidden above the phone breakpoint, where the nav is a row. */
.nav-burger {
  display: none;
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.nav-burger__bars,
.nav-burger__bars::before,
.nav-burger__bars::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--bone);
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.nav-burger__bars::before {
  transform: translateY(-6px);
}

.nav-burger__bars::after {
  transform: translateY(6px);
}

.nav-burger[aria-expanded="true"] .nav-burger__bars {
  background: transparent;
}

.nav-burger[aria-expanded="true"] .nav-burger__bars::before {
  transform: rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__bars::after {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-burger__bars,
  .nav-burger__bars::before,
  .nav-burger__bars::after {
    transition: none;
  }
}

/* topography runs up behind the header, fading out at 86% of its height.
   Geometry lives here, not in a style attribute, so a page can swap the
   background layer without restating position and size. */
.topo-hero {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1900px;
  height: 1400px;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-radial-gradient(
    circle at 42% 40%,
    transparent 0 27px,
    var(--contour) 27px 28px
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
}

/* sticky header. --header-h (declared with the tokens) keeps focus rings and
   anchor targets clear of the bar (WCAG 2.2 SC 2.4.11); nothing else may
   hard-code its height. */
html {
  scroll-padding-top: var(--header-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* the hero's closing strip is a band, not a column rule: its top edge
   matches the section boundaries above and below it */
.g-3.bleed {
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* bands run edge to edge; the content column is capped by the gutter growing
   past 1440px, so widths at or below that are untouched */
.page {
  width: 100%;
}

@media (min-width: 1441px) {
  :root {
    --gutter: calc((100% - 1440px) / 2 + 4.5rem);
  }
}

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

.g-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.g-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.g-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.g-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.g-report {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.g-cta {
  display: grid;
  grid-template-columns: 1fr 420px;
}

.g-quote {
  display: grid;
  grid-template-columns: 1fr 340px;
}

.g-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

/* laptop: the 14in case. Fixed side-tracks stop fitting first. */
@media (max-width: 1200px) {
  .g-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-cta,
  .g-quote,
  .g-report {
    grid-template-columns: 1fr;
  }

  .g-footer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* tablet */
@media (max-width: 900px) {
  .table-card {
    overflow-x: auto;
  }

  .table-card table {
    min-width: 560px;
  }

  .g-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .g-3 {
    grid-template-columns: 1fr;
  }

  .g-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .g-footer {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 18px !important;
    justify-content: flex-end;
  }
}

/* Nav collapse. 820px is where the row stops fitting and the bar wrapped to a
   second line; below 640 it wrapped to five, giving a sticky header 223px tall,
   a quarter of the viewport held at every scroll position. */
@media (max-width: 820px) {
  .site-header {
    position: relative;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 10px var(--gutter) 18px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav[hidden] {
    display: none !important;
  } /* the header sets display:flex inline, which outranks the hidden attribute */

  /* page content sits directly under the panel and reads as more menu items
     without this; the scrim separates the two without trapping scroll */

  /* dim the page, not the header: an overlay inside the panel also covered the
     logo and the close button */
  body.nav-open main,
  body.nav-open footer {
    opacity: 0.28;
    transition: opacity 0.2s;
  }

  .nav .nav-link,
  .nav .nav-trigger {
    padding: 13px 0;
    font-size: 15px;
  }

  .nav .nav-group {
    width: 100%;
  }

  .nav .nav-menu {
    position: static;
    border: 0;
    background: transparent;
    padding: 0 0 6px 16px;
  }

  .nav .btn {
    margin-top: 10px;
    justify-content: center;
  }
}

/* phone */
@media (max-width: 640px) {
  .g-4 {
    grid-template-columns: 1fr;
  }

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

  .g-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* single-message page shell: 404, thanks, expired links. dvh not vh, so an
   iOS toolbar collapsing cannot leave a gap under the footer. */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.shell main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(48px, 9vh, 110px);
}

.shell .stack {
  max-width: 52ch;
}

/* nav disclosure. W3C disclosure-navigation pattern, not an ARIA menu: these
   are links, so Tab must walk them normally. */
.nav-group {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  line-height: inherit;
  color: var(--soft);
  transition: color 0.3s;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--bone);
}

.nav-trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-caret {
  flex: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.nav-trigger[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-menu[hidden] {
  display: none;
}

/* The panel sits 16px below the trigger, and that gap belongs to nobody: the
   pointer leaves .nav-group crossing it and the menu shuts before it can be
   reached. This bridges the gap, and because it hangs off the panel it only
   exists while the panel does. */
@media (hover: hover) and (pointer: fine) {
  .nav-menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 20px;
  }
}

.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 0;
  animation: menu-in 0.16s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.nav-menu a {
  font-size: 13.5px;
  color: var(--soft);
  text-decoration: none;
  padding: 9px 18px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--bone);
}

.nav-menu a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .nav-group {
    width: 100%;
  }

  .nav-menu {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

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

  .nav-caret {
    transition: none;
  }
}

/* placeholder region for pages whose content is not written yet. Deliberately
   plain and deliberately labelled: PRODUCT.md forbids presenting a placeholder
   as a fact, so it must never read as finished content. */
.placeholder {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 4vw, 40px);
  text-align: center;
}

.placeholder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder p {
  margin: 14px auto 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* Locations. One row at every width; the row itself scrolls rather than wrapping,
   so the four places always read as a set. Page-level overflow stays zero. */
.locations,
.industries {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(210px, calc((100% - 84px) / 4));
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 30px;
  margin-bottom: -30px;
}

.locations::-webkit-scrollbar,
.industries::-webkit-scrollbar {
  height: 6px;
}

.locations::-webkit-scrollbar-thumb,
.industries::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.locations::-webkit-scrollbar-track,
.industries::-webkit-scrollbar-track {
  background: transparent;
}

.location-card,
.industry-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
}

.location-media,
.industry-media {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
  overflow: hidden;
  position: relative;
}

/* a location whose photograph has not been supplied yet. Deliberately empty
   rather than borrowing another city's picture. */
.location-media.is-awaiting::after,
.industry-media.is-awaiting::after {
  content: "Photo to come";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-media img,
.industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.location-card:hover .location-media img,
.industry-card:hover .industry-media img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .location-media img {
    transition: none;
  }

  .location-card:hover .location-media img {
    transform: none;
  }
}

.location-country {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}

.location-city,
.industry-name {
  margin: 6px 0 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.4375rem);
  color: var(--bone);
}

/* Hero media, built to the pattern velstar uses: the frame owns the dimensions
   at 70vh, the video fills it absolutely and crops, and a single black-to-clear
   scrim over the top half lets the footage emerge out of the section above it.
   No backdrop-filter - the fade is a gradient, not a blur. */
.hero-media {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter) clamp(48px, 7vh, 96px);
}

.hero-media__frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 70vh;
  height: 70svh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink);
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media__scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgb(13 13 16 / 0%) 55%);
}

@media (max-width: 768px) {
  /* portrait crop on phones, edge to edge */
  .hero-media {
    padding: 0 0 clamp(40px, 6vh, 72px);
  }

  /* poster only on phones (see header.js), so the frame no longer needs
     to be a full portrait screen */
  .hero-media__frame {
    height: 45vh;
    height: 45svh;
    min-height: 280px;
    border-radius: 0;
  }
}

/* Hero fills the first screen so the media band below it is only reached by
   scrolling. Applied above 641px only: below that the header wraps to two or
   three rows and --header-h no longer describes it. */

/* centred hero. the quote grid drops to one column so the empty spacer
   column stops pulling the text off centre. */
.hero-fill.is-centred {
  text-align: center;
}

.hero-fill.is-centred h1,
.hero-fill.is-centred p {
  margin-inline: auto;
}

.hero-fill.is-centred .g-2 {
  grid-template-columns: 1fr;
}

/* the service heroes lost their CTAs; this padding keeps the band from ending
   on the quote. Halved on phones, where it read as a hole. */
.svc-hero-quote {
  padding-bottom: clamp(72px, 16vh, 152px);
}

.svc-hero-tail {
  padding-bottom: clamp(48px, 11.5vh, 120px);
}

@media (max-width: 820px) {
  .svc-hero-quote {
    padding-bottom: clamp(36px, 8vh, 72px);
  }

  .svc-hero-tail {
    padding-bottom: clamp(24px, 6vh, 56px);
  }
}

.hero-fill.is-centred .hero-cta {
  justify-content: center;
}

@media (min-width: 641px) {
  /* border-box: the sheet has no global reset, so without this the section's own
     padding is added to min-height and the CTAs fall below the fold. */
  .hero-fill {
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
  }

  /* Slack sits above and below the block rather than between the copy and the
     CTAs, which read as a hole once the hero was centred. */
  .hero-fill .hero-cta {
    margin-top: 0;
  }

  .hero-fill.is-centred {
    justify-content: center;
    padding-bottom: clamp(28px, 5vh, 52px);
  }
}

/* Service splits: copy one side, image the other, alternating down the page. */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.split-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.split h2 {
  margin: 0 0 18px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.split p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 52ch;
}

.split .btn {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split-media {
    order: -1;
  }
}

.split-lead {
  margin: 0 auto;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.95rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--bone);
  text-wrap: balance;
  text-align: center;
  max-width: 26ch;
}

/* force the break only where both lines fit; below that let balance decide */
@media (min-width: 700px) {
  .split-lead {
    text-wrap: wrap;
  }

  .lead-break {
    display: block;
  }
}

.split-lead .accent {
  color: var(--amber);
}

/* ---- Amazon services page ---- */
.pill {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 26px;
}

.svc-hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vh, 96px) var(--gutter) clamp(40px, 6vh, 80px);
}

.svc-hero h1 {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone);
  text-wrap: balance;
}

/* framed: the hairline sits on a padded wrapper, so the gap between photo and
   border is the same on every edge whatever the photo's own edges look like */
.svc-hero__media {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink);
}

.svc-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.svc-band {
  position: relative;
  z-index: 3;
  padding: clamp(14px, 1.8vh, 22px) var(--gutter);
}

.svc-panel {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 48px);
}

.svc-panel.is-tinted {
  background: var(--panel2);
  border-color: var(--slate);
}

.svc-panel.is-flipped .svc-panel__media {
  order: 2;
}

.svc-panel__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.svc-panel__copy h2 {
  margin: 0 0 14px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.svc-panel__copy p {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}

.tm-sec {
  padding-top: clamp(56px, 7vh, 96px);
  padding-bottom: clamp(24px, 3vh, 40px);
}

.tm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(30px, 4.5vh, 52px);
}

.tm-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 2.2vw, 28px);
}

.tm-stars {
  width: 104px;
  height: auto;
  display: block;
}

.tm-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
  flex: 1;
}

.tm-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.tm-avatar {
  width: 34px;
  height: auto;
  flex: none;
}

.tm-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tm-who b {
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

.tm-who i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}

.svc-cta {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(64px, 8vh, 110px) var(--gutter);
  border-top: 1px solid var(--line);
}

.svc-cta h2 {
  margin: 0 0 16px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-wrap: balance;
}

.svc-cta p {
  margin: 0 auto 30px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.accent {
  color: var(--amber);
}

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

@media (max-width: 860px) {
  .svc-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .svc-hero__media {
    order: -1;
  }

  .svc-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svc-panel.is-flipped .svc-panel__media {
    order: 0;
  }
}

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

/* ---- About us ---- */
.mission {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(30px, 4vh, 52px);
}

.mission h2 {
  margin: 0 auto 26px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-wrap: balance;
  max-width: 22ch;
}

.mission p {
  margin: 0 auto 16px;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 78ch;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.pillar img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.person {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--panel2);
  border: 1px solid var(--slate);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
}

.person.is-flipped {
  grid-template-columns: 1.1fr 1fr;
}

.person__media img {
  width: 100%;
  height: auto;
  display: block;
}

.person__copy h2 {
  margin: 0 0 16px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.person__copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
}

@media (max-width: 860px) {
  .pillar-row {
    grid-template-columns: 1fr;
  }

  .person,
  .person.is-flipped {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .person.is-flipped .person__media {
    order: -1;
  }
}

/* ---- Pricing ---- */
.pricing-sec {
  padding-top: clamp(20px, 3vh, 40px);
}

/* the prices are the page: the section heading sits below the H1, not above it */
.pricing-sec .split-lead {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.pricing-sub {
  margin: 14px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: clamp(22px, 3vh, 36px);
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.price-card__head {
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.2vw, 28px);
}

.price-card__head .pill {
  margin-bottom: 10px;
  padding: 6px 14px;
  font-size: 11.5px;
}

.price-card__head h3 {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
}

.price-card__body {
  flex: 1;
  padding: 0 clamp(22px, 2.4vw, 30px);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row__label h4 {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--bone);
}

.price-row__label p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.price-row__cost {
  text-align: right;
  white-space: nowrap;
  flex: none;
}

.price-row__cost .from {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 5px;
}

.price-row__cost b {
  font-size: 19px;
  font-weight: 600;
  color: var(--amber);
}

.price-row__cost .vat {
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  margin-left: 4px;
}

.price-row__cost i {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: clamp(12px, 1.5vw, 18px);
  padding: 15px 22px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--slate);
}

.price-total h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--bone);
}

/* the total row is the one filled surface on the page; amber with ink, the
   same pairing as the primary button */
.price-total.is-accent {
  background: var(--amber);
  border-color: var(--amber);
}

.price-total.is-accent h4,
.price-total.is-accent .price-row__cost b,
.price-total.is-accent .price-row__cost .vat {
  color: var(--ink);
}

.price-total.is-accent .price-row__cost .from,
.price-total.is-accent .price-row__cost i {
  color: rgb(13 13 16 / 78%);
}

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

@media (max-width: 420px) {
  .hero-media {
    padding-top: 24px;
  }

  .price-row,
  .price-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-row__cost {
    text-align: left;
  }
}

.amz-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vh, 28px);
  padding-top: clamp(6px, 1vh, 14px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

/* ---- Contact ---- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 44px);
}

.contact-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  min-height: 280px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink2);
  color: var(--bone);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--faint);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-color: transparent;
}

.contact-form .check {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 6px 0 22px;
}

.contact-form .check input {
  width: 24px;
  height: 24px;
  flex: none;
  accent-color: var(--amber);
  cursor: pointer;
}

.contact-form .check label {
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--soft);
}

@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-panel__media img {
    min-height: 0;
    aspect-ratio: 16/11;
  }
}

/* ---- Free audit ---- */
.fa-head {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(48px, 7vh, 96px) var(--gutter) clamp(24px, 3vh, 40px);
}

.fa-head h1 {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone);
  text-wrap: balance;
}

.fa-intro {
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 66ch;
}

/* two audits, one card each; a brand may take either or both */
.fa-audits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
}

.fa-audit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 40px);
}

.fa-audit__tag {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.fa-audit h2 {
  margin: 0 0 16px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.fa-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 3.4vw, 52px);
  margin-bottom: clamp(40px, 6vh, 80px);
}

.fa-copy p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

.fa-copy h2 {
  margin: 0 0 10px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0;
  color: var(--bone);
}

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

.fa-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
}

.fa-list li:last-child {
  margin-bottom: 0;
}

.fa-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.fa-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

@media (max-width: 860px) {
  .fa-audits,
  .fa-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fa-hero-cta .btn {
    flex: 1 1 100%;
  }
}

.form-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.form-note a {
  color: var(--amber);
}

/* the outcome of a submit. Always rendered so the live region is announced;
   it takes no room until it has something to say */
.form-status {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bone);
}

.form-status:empty {
  margin: 0;
}

/* a field for bots. Clipped, not display:none, which some bots skip */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

/* Marquee pause control. Sits before the strip so Tab reaches it first. */
.marquee-pause {
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 14px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.marquee-pause:hover {
  border-color: var(--faint);
}

.marquee-pause:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.marquee-pause__icon {
  width: 8px;
  height: 9px;
  border-left: 2.5px solid var(--muted);
  border-right: 2.5px solid var(--muted);
  box-sizing: border-box;
}

.marquee-pause.is-paused .marquee-pause__icon {
  width: 0;
  height: 0;
  border-left: 8px solid var(--muted);
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.marquee-pause:hover .marquee-pause__icon {
  border-color: var(--bone);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-pause {
    display: none;
  }
}

/* services catalogue: each panel carries a list rather than a paragraph. Rows
   are separated by a hairline rather than bulleted, borrowing the table
   treatment, so a long spec reads as a spec and not a shopping list. */
.svc-hero.is-solo {
  grid-template-columns: 1fr;
  padding-top: clamp(64px, 13.5vh, 150px);
  padding-bottom: clamp(80px, 20vh, 220px);
}

.svc-hero.is-solo .svc-hero__copy {
  max-width: 46rem;
}

.svc-sub-label {
  display: block;
  margin: 0 0 2px;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--amber);
}

/* a panel whose copy runs longer than its photo would otherwise centre the
   photo and leave it floating in dead space; fill the column instead. Only
   where the panel is two columns. */
@media (min-width: 821px) {
  .svc-panel__media {
    align-self: stretch;
  }

  .svc-panel__media img {
    height: 100%;
    object-fit: cover;
  }
}

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

/* long lists split into two columns so a panel does not tower over its
   siblings; items never break across the column boundary */
.svc-list.is-two-col {
  columns: 2;
  column-gap: clamp(24px, 3vw, 44px);
}

/* bulleted variant: a marker beats a rule where rows wrap to uneven heights */
.svc-list.is-bulleted li {
  border-top: none;
  padding: 5px 0 5px 17px;
  position: relative;
}

.svc-list.is-bulleted li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.svc-list.is-two-col li {
  break-inside: avoid;
}

@media (max-width: 820px) {
  .svc-list.is-two-col {
    columns: 1;
  }
}

.svc-list li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
}

@media (max-width: 820px) {
  .svc-hero.is-solo .svc-hero__copy {
    max-width: none;
  }
}
