/* ---- Base ------------------------------------------------------------------------------------ */
/* Sweep website styles (started as the sweep-teema WordPress theme by Raul; GPL v2 or later).
Sections follow the page from top to bottom; each one's phone, iPad and desktop rules sit
together. */
:root {
  /* Brand colours */
  --sweep-purple: #d495fe;
  --sweep-green: #3fdf52;
  --sweep-green-bright: #00ff08;
  --sweep-header-glass-bg: rgb(0 255 8 / 0.7);
  --sweep-header-glass-highlight: rgb(255 255 255 / 0.65);
  --sweep-header-glass-blur: 4px;
  --sweep-black: #320001;
  --sweep-maroon-900: #440001;
  --sweep-maroon-800: #520002;
  --sweep-red: #ff0027;
  /* Colour roles */
  --color-bg: var(--sweep-black);
  --color-surface: var(--sweep-maroon-900);
  --color-text: #ffffff;
  --color-link: var(--sweep-green);
  --color-link-hover: var(--sweep-purple);
  /* The page frame: the width the desktop design scales from. It grows with the window and stops
     at 1920px (one stop more at 1856-2032px wide, below). The content and the header bar run
     inside it, between the page gutters. */
  --container-width: 120rem;
  --sweep-frame: min(100vw, 1920px);
  /* How much narrower the frame is than it would be without that stop (0 outside it). Sizes that
     keep growing past 1920 (cards, strips) grow with the window less this. */
  --sweep-frame-loss: 0px;
  --sweep-wide: calc(100vw - var(--sweep-frame-loss));
  --section-space: clamp(3rem, 6vw, 5rem);
  /* Landscape iPhones: the notch side. Content never goes under it; colour bands stay full-
  bleed. */
  --sweep-safe-x: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  /* The header scales from the 1920 design (the 1440 design is the same at 2/3). */
  --sweep-artboard: 1920;
  --sweep-vw: var(--sweep-frame);
  --header-height: calc(var(--sweep-vw) * 100 / var(--sweep-artboard));
  --header-bar-pad-x: calc(var(--sweep-vw) * 32 / var(--sweep-artboard));
  --header-bar-pad-y: calc(var(--sweep-vw) * 10.667 / var(--sweep-artboard));
  /* The bar's top margin equals the side margin, so it floats evenly. */
  --header-outer-pad: var(--page-gutter);
  --header-logo-width: calc(var(--sweep-vw) * 225.333 / var(--sweep-artboard));
  --header-nav-size: calc(var(--sweep-vw) * 21.33 / var(--sweep-artboard));
  --header-nav-line: calc(var(--sweep-vw) * 29.333 / var(--sweep-artboard));
  --header-shadow: calc(var(--sweep-vw) * 26.667 / var(--sweep-artboard));
  /* Desktop leaves out the top safe area: it can arrive after the first paint and push the hero
  down. */
  --header-wrap-height: calc(var(--header-height) + var(--header-outer-pad));
  --page-gutter: clamp(1rem, 2vw, 1.5rem);
  /* How long both card stacks (Latest, Services) rest once their last card has landed. */
  --sweep-stack-hold: 35svh;
  /* The stats strip's design is 2319 wide; the intro uses the same numbers for the room the
  pictures need. */
  --sweep-stats-artboard: 2319;
  /* The width the stats strip scales from. Desktop: 4/3 of the 1920 frame, so it keeps the size
  it has next to the text on a 2560 screen. Phones set their own. */
  --sweep-stats-w: 100vw;
  /* How far the stats pictures rise above their bar (the lion's ear pokes up ~168 design units). */
  --sweep-stats-overhang: calc(var(--sweep-stats-w) * 140 / var(--sweep-stats-artboard));
  /* Section headlines (Services, Meet the team, Get in touch): one size, scaled with the page up
  to 1920. Phones and tablets: 2.5rem. */
  --sweep-section-heading: calc(var(--sweep-frame) * 64 / 1920);
  /* Type */
  --font-display: "Neo Geo", "NeoGeo VAR", sans-serif;
  --font-body: "HW Cigars", Georgia, "Times New Roman", serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.05;
}

/* The frame's stop at 1856-2032px wide (a 1920 screen): the header bar keeps 56px from the screen
   edges, where the logo sat before, and the whole design scales with the narrower frame. From
   2032px the 1920px frame leaves more than that anyway. */
@media (min-width: 1856px) and (max-width: 2032px) {
  :root {
    --container-width: max(1808px, 100vw - 112px);
    --sweep-frame: min(1920px, var(--container-width) + 48px);
    --sweep-frame-loss: calc(min(100vw, 1920px) - var(--sweep-frame));
  }
}

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

html {
  /* Anchor jumps, Page Down and focus scrolling stop below the fixed bar. No CSS smooth
  scrolling: it also animated reloads and Back (header.js animates the menu's jumps). */
  scroll-padding-top: var(--header-wrap-height);
  /* The dragon and the claw bleed off the edges without making the page scroll sideways. */
  overflow-x: clip;
  /* No double-tap zoom (iPhone Safari zoomed in and the page slid sideways); pinch-zoom stays. */
  touch-action: manipulation;
  /* On iPhones header.js sets <html> and <body> to the colour under Safari's bars (the section
  at the top of the screen, the footer's maroon at the end): Safari fades its bars into it and
  fills the overscroll strips with it. */
  background: var(--color-bg);
}

/* A menu link moves focus to its section (header.js) for keyboard users; no focus ring round the
whole section (Safari drew one after a mouse click). */
.sweep-main [tabindex="-1"]:focus {
  outline: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

h1,
h2,
h3 {
  margin: 0 0 0.75em;
  font-family: var(--font-display);
  line-height: var(--line-height-heading);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.sweep-container {
  width: min(var(--container-width), calc(100% - (max(var(--page-gutter), var(--sweep-safe-x)) * 2)));
  margin-inline: auto;
}

.sweep-section {
  padding-block: var(--section-space);
}

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

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

.sweep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sweep-btn__arrow {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transform: translateY(0.2rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Small buttons on hover: the arrow appears on the left and the pill grows left. */
.sweep-btn--arrow,
.sweep-btn--contact {
  position: relative;
  padding-inline-start: 1rem;
  font-size: var(--header-nav-size);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-inline-start 0.3s ease-out;
}

.sweep-btn--arrow .sweep-btn__arrow,
.sweep-btn--contact .sweep-btn__arrow {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.35rem, 0.15rem);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.sweep-btn--arrow:hover,
.sweep-btn--arrow:focus-visible,
.sweep-btn--contact:hover,
.sweep-btn--contact:focus-visible {
  padding-inline-start: 2.375rem;
}

.sweep-btn--arrow:hover .sweep-btn__arrow,
.sweep-btn--arrow:focus-visible .sweep-btn__arrow,
.sweep-btn--contact:hover .sweep-btn__arrow,
.sweep-btn--contact:focus-visible .sweep-btn__arrow {
  opacity: 1;
  transform: translate(0, -0.1rem);
}

.sweep-btn--contact {
  color: #ffffff;
  background: var(--sweep-red);
}

.sweep-btn--contact:hover,
.sweep-btn--contact:focus-visible {
  color: #ffffff;
  background: var(--sweep-red);
}

.sweep-main {
  flex: 1;
  /* Room for the fixed header at the top of the page. */
  padding-top: var(--header-wrap-height);
}

.home .sweep-main {
  background: var(--sweep-purple);
}

/* AOS only has delays in 50ms steps, so data-aos-delay="80" needs its own rule. */
[data-aos][data-aos][data-aos-delay="80"].aos-animate {
  transition-delay: 80ms;
}

/* Paused: the rest of the endless motion holds still too (the phone team row's flame, the fire
cursor); team.js and videos.js hold the team loop and the videos. */
html.sweep-still {
  animation-play-state: paused;
}

.sweep-prose > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 961px), (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  :root {
    --sweep-stats-w: calc(var(--sweep-frame) * 4 / 3);
  }
}

@media (max-width: 960px) {
  /* Phones and tablets: the header bar sits 1rem in, and the content lines up with the logo
  inside it (the bar's edge plus its padding; on landscape iPhones the notch side plus 1rem). */
  :root {
    --page-gutter: 1rem;
    --sweep-edge: calc(max(1rem, var(--sweep-safe-x)) + 1rem);
  }

  /* Content runs at the logo's edge; the header bar keeps its own. */
  .sweep-container {
    width: min(var(--container-width), calc(100% - 2 * var(--sweep-edge)));
  }
}

@media (hover: none) {
  .sweep-btn--contact:hover {
    padding-inline-start: 1rem;
  }

  .sweep-btn--contact:hover .sweep-btn__arrow {
    opacity: 0;
    transform: translate(0.35rem, 0.15rem);
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  /* Not on an upright iPad (744px+ wide, 700px+ tall): it keeps the desktop header. */
  /* On :root, so --header-wrap-height and the sticky offsets match the bar. */
  :root {
    --header-height: 4rem;
    --header-logo-width: 8.9rem;
    --header-nav-size: 1.5rem;
    --header-nav-line: 1.65rem;
    --header-bar-pad-x: 1rem;
    --header-bar-pad-y: 0.5rem;
    --header-outer-pad: 1rem;
    --header-shadow: 1.25rem;
    /* The bar floats 0.5rem below the iPhone status bar (notched iPhones only, so desktop
    never jumps on load). Safari paints its status bar solid from a pinned element just
    under it; with the bar off that line the page shows under it. */
    --header-top: max(var(--header-outer-pad), calc(env(safe-area-inset-top, 0px) + 0.5rem));
    --header-wrap-height: calc(var(--header-height) + var(--header-top));
    /* The lion pokes up ~87px on phones. */
    --sweep-stats-overhang: 5rem;
  }

  /* Locks the page behind the open menu: on <html>, because <html> clips sideways overflow and
  a locked <body> threw the stuck cards out of place. */
  html.sweep-menu-open {
    overflow: hidden;
  }

  /* The open menu's dim over the whole page, also under Safari's bottom bar. */
  html.sweep-menu-open body {
    position: relative;
  }

  html.sweep-menu-open body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1050;
    background: rgb(30 30 30 / 0.55);
    pointer-events: none;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* iPad held upright (744px+ wide, 700px+ tall; phones on their side stay phones): the phone
  layout, bigger, with the desktop header and Services. The header as on a 1260px screen. */
  /* Everything in rem a quarter bigger: an iPad is held further away. */
  html {
    font-size: 125%;
  }

  :root {
    --page-gutter: 20px;
    --sweep-vw: 1260px;
    --sweep-edge: calc(var(--page-gutter) + var(--header-bar-pad-x));
    /* Section headlines one size, as on phones. */
    --sweep-section-heading: 2.5rem;
    /* The stats strip next to the intro as at 1920x1080: 32 times the intro headline wide. */
    --sweep-stats-w: calc(var(--sweep-wide) * 5.56 / 100 * 32);
  }
}

/* ---- Header and menu ------------------------------------------------------------------------- */
/* Safari 26 paints its bars a flat colour when it finds a fixed or sticky element at least 90%
wide at the middle of the edge (the card stacks), and keeps it. header.js puts this narrow
mark there, above everything, so the bars show the page instead. 40% of the screen tall, so
Safari's test point stays on it while its bars change size; under 90% tall, or it counts as a
sidebar. The ::after gives it content: Safari skips an empty element. They stay while the
phone menu is open: hidden, Safari kept a bar coloured by the menu's dim after it closed. */
.sweep-edge-mark {
  position: fixed;
  left: calc(50% - 2px);
  z-index: 2147483647;
  width: 4px;
  height: 40vh;
  pointer-events: none;
}

.sweep-edge-mark::after {
  content: "";
}

.sweep-edge-mark--top {
  top: 0;
}

.sweep-edge-mark--bottom {
  bottom: 0;
}

/* Opened by a tap, the menu takes focus itself (header.js): no focus box on it. */
.sweep-header__panel:focus {
  outline: none;
}

.sweep-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  color: #ffffff;
  background: var(--sweep-black);
  font-family: var(--font-display);
  text-decoration: none;
  transform: translateY(-200%);
}

.sweep-skip-link:focus {
  color: #ffffff;
  /* Clear of the iPhone status bar and a landscape iPhone's notch. */
  transform: translate(
      max(0px, env(safe-area-inset-left, 0px) - 1rem),
      max(0px, env(safe-area-inset-top, 0px) - 1rem)
    );
}

.sweep-header {
  /* Fixed, not sticky: sticky breaks when an ancestor clips overflow, which is common on iOS. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding-top: var(--header-outer-pad);
  padding-bottom: 0;
  background: var(--color-surface);
}

.sweep-header--home {
  background: transparent;
  /* Safari 26 colours its status bar from a fixed or sticky element touching the top edge (it
  cut the dragon). So on the home page nothing fixed touches it: the bar floats at its margin
  and the hero runs on under the status bar, behind Safari's blur. Only the pill and the open
  menu take taps. */
  top: var(--header-outer-pad);
  padding-top: 0;
  pointer-events: none;
}

.sweep-header--home .sweep-header__shell,
.sweep-header--home .sweep-header__backdrop {
  pointer-events: auto;
}

.sweep-header__wrap {
  margin-inline: auto;
}

/* Desktop: the shell is the green glass bar; the bar and the panel flatten into it. */
.sweep-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  height: var(--header-height);
  min-height: var(--header-height);
  padding: var(--header-bar-pad-y) var(--header-bar-pad-x);
  overflow: hidden;
  border-radius: 1rem;
  background: transparent;
  box-shadow:
    0 0.375rem 0.375rem rgb(0 0 0 / 0.2),
    0 0 1.25rem rgb(0 0 0 / 0.1),
    var(--header-shadow) var(--header-shadow) var(--header-shadow) 0 rgb(0 0 0 / 0.07);
}

.sweep-header__bar,
.sweep-header__bar-content,
.sweep-header__panel {
  display: contents;
}

.sweep-header__glass-filter,
.sweep-header__glass-overlay,
.sweep-header__glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.sweep-header__glass-filter {
  z-index: 0;
  -webkit-backdrop-filter: blur(var(--sweep-header-glass-blur));
  backdrop-filter: blur(var(--sweep-header-glass-blur));
  filter: url("#sweep-header-lens") saturate(120%) brightness(1.15);
}

.sweep-header__glass-overlay {
  z-index: 1;
  background: var(--sweep-header-glass-bg);
}

.sweep-header__glass-specular {
  z-index: 2;
  box-shadow:
    inset 1px 1px 0 var(--sweep-header-glass-highlight),
    inset 0 0 5px var(--sweep-header-glass-highlight);
}

.sweep-header__brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.sweep-header__logo {
  width: var(--header-logo-width);
  max-width: var(--header-logo-width);
  height: auto;
}

.sweep-header__backdrop {
  display: none;
}

.sweep-header__menu-toggle {
  display: none;
}

.sweep-header__nav {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sweep-header__actions {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sweep-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sweep-nav > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.sweep-nav__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.5rem;
  color: var(--sweep-black);
  text-decoration: none;
  font-family: var(--font-display);
  /* Never under 14px (an iPad on its side had 13px); from ~1260px wide it is bigger anyway. */
  font-size: max(14px, var(--header-nav-size));
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.sweep-nav__link:hover,
.sweep-nav__link:focus-visible {
  color: var(--sweep-black);
}

.sweep-nav__label {
  display: block;
  height: max(19.25px, var(--header-nav-line));
  overflow: hidden;
  line-height: max(19.25px, var(--header-nav-line));
}

.sweep-nav__label-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out;
}

.sweep-nav__label-text {
  display: block;
  height: max(19.25px, var(--header-nav-line));
  line-height: max(19.25px, var(--header-nav-line));
}

.sweep-nav__link:hover .sweep-nav__label-inner,
.sweep-nav__link:focus-visible .sweep-nav__label-inner {
  transform: translateY(-50%);
}

.sweep-nav__arrow {
  display: block;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transform: translateY(0.2rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sweep-nav__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sweep-nav__link:hover .sweep-nav__arrow,
.sweep-nav__link:focus-visible .sweep-nav__arrow {
  opacity: 1;
  transform: translateY(-0.15rem);
}

/* Upright iPad and narrow windows (744-960 wide): the header is the 1260px one on a narrower
screen, so with "Featured works" the four words ran out of room under ~780px and "Services"
wrapped (Kristjan, 2026-11-06: "we need to fit them all"). The space around the words tightens
with the window, from the usual 10px at 824px+ to 4px at 744; the words keep their size. */
@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  .sweep-nav {
    flex-wrap: nowrap;
    gap: clamp(4px, calc((100vw - 704px) / 12), 0.5rem);
  }

  .sweep-nav__link {
    padding-inline: clamp(4px, calc((100vw - 704px) / 12), 0.5rem);
  }
}

/* The pill grows left over its own margin, so the centred menu doesn't shift on hover. Touch has
no hover here. */
.sweep-header__actions .sweep-btn--contact {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-inline-start 0.3s ease-out,
    margin-inline-start 0.3s ease-out;
}

.sweep-header__actions .sweep-btn--contact:focus-visible {
  margin-inline-start: -1.375rem;
}

/* Keyboard-only pause for the moving strips (WCAG 2.2.2): strips.js puts it after the skip link;
it shows only when focused. */
.sweep-marquee-pause {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 100px;
  color: #ffffff;
  background: var(--sweep-black);
  font: inherit;
  font-family: var(--font-display);
  line-height: 1.2;
  cursor: pointer;
}

.sweep-marquee-pause:not(:focus) {
  clip-path: inset(50%);
}

@media (hover: none) {
  .sweep-nav__link:hover .sweep-nav__arrow {
    opacity: 0;
    transform: translateY(0.2rem);
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  .sweep-header {
    padding-top: var(--header-top);
  }

  .sweep-header--home {
    top: var(--header-top);
    padding-top: 0;
  }

  /* 1rem each side; landscape iPhones use the side safe areas, so the bar stays clear of the
  notch and the corners. */
  .sweep-header__wrap {
    width: auto;
    margin-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .sweep-header__shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sweep-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--header-height);
    min-height: var(--header-height);
    padding: var(--header-bar-pad-y) var(--header-bar-pad-x);
    overflow: hidden;
    border-radius: 1rem;
    background: transparent;
    box-shadow:
      0 0.375rem 0.375rem rgb(0 0 0 / 0.2),
      0 0 1.25rem rgb(0 0 0 / 0.1),
      var(--header-shadow) var(--header-shadow) var(--header-shadow) 0 rgb(0 0 0 / 0.07);
  }

  .sweep-header__bar-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
  }

  .sweep-header__logo {
    max-width: none;
  }

  .sweep-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    color: var(--sweep-black);
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .sweep-header__menu-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
  }

  .sweep-header__panel {
    display: none;
  }

  .sweep-header.is-menu-open {
    z-index: 1100;
  }

  .sweep-header.is-menu-open .sweep-header__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    /* It only takes the tap that closes the menu: Safari cuts fixed things at its bottom bar,
    so the dim is on the page itself (body::after). */
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .sweep-header.is-menu-open .sweep-header__wrap {
    position: relative;
    z-index: 1;
  }

  .sweep-header.is-menu-open .sweep-header__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    /* Flush under the green bar, filling the rest of the screen. */
    height: calc(
        100dvh - var(--header-top) - var(--header-height) - env(safe-area-inset-bottom, 0px)
      );
    max-height: none;
    min-height: 0;
    margin-top: 0;
    margin-inline: 0;
    padding: 1.75rem 1.25rem max(2.5rem, env(safe-area-inset-bottom, 0px));
    overflow: auto;
    border-radius: 16px;
    background: rgba(50, 0, 1, 0.9);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    overscroll-behavior: contain;
  }

  .sweep-header.is-menu-open .sweep-header__nav {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .sweep-header.is-menu-open .sweep-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    width: 100%;
  }

  .sweep-header.is-menu-open .sweep-nav > li {
    width: 100%;
  }

  /* About, Services and Team each on one line. */
  .sweep-header.is-menu-open .sweep-nav__link {
    width: 100%;
    padding: 0.85rem 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .sweep-header.is-menu-open .sweep-nav__label {
    height: auto;
    overflow: visible;
  }

  .sweep-header.is-menu-open .sweep-nav__label-inner {
    display: block;
    transform: none;
  }
}

@media (hover: none) {
  /* Touch screens with the desktop bar (iPad on its side): a tap doesn't leave a menu label
  rolled or the Contact pill open. */
  .sweep-nav__link:hover .sweep-nav__label-inner {
    transform: none;
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  .sweep-header.is-menu-open .sweep-nav__label-text {
    display: block;
    height: auto;
    line-height: 1.1;
  }

  .sweep-header.is-menu-open .sweep-nav__label-text[aria-hidden="true"],
  .sweep-header.is-menu-open .sweep-nav__arrow {
    display: none;
  }

  .sweep-header.is-menu-open .sweep-nav__link:hover .sweep-nav__label-inner,
  .sweep-header.is-menu-open .sweep-nav__link:focus-visible .sweep-nav__label-inner {
    transform: none;
  }

  .sweep-header.is-menu-open .sweep-header__actions {
    width: 100%;
    margin-top: 0.5rem;
  }

  .sweep-header.is-menu-open .sweep-btn--contact {
    width: 100%;
    min-height: 3.25rem;
    justify-content: center;
    padding-inline: 1.5rem;
    border-radius: 100px;
    font-size: 1.25rem;
  }

  .sweep-header.is-menu-open .sweep-btn--contact:hover,
  .sweep-header.is-menu-open .sweep-btn--contact:focus-visible {
    margin-inline-start: 0;
    padding-inline-start: 1.5rem;
  }

  .sweep-header.is-menu-open .sweep-btn--contact .sweep-btn__arrow {
    display: none;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The bar 20px from the top and the sides; content runs from the logo's S to the Contact
  button's right edge; the moving strips, the wordmark, the team row and the illustrations
  stay full-bleed. */
  .sweep-header .sweep-container {
    width: min(var(--container-width), calc(100% - 2 * var(--page-gutter)));
  }
}

@media not all and (max-width: 960px) {
  .sweep-header__wrap {
    width: min(var(--container-width), calc(100% - (var(--page-gutter) * 2)));
  }
}

@supports (-webkit-backdrop-filter: blur(1px)) {
  /* Safari: no SVG lens (its glass is the prefixed backdrop, which the filter doesn't reach);
  without it the fixed bar stays on the fast drawing path. Same look. */
  .sweep-header__glass-filter {
    filter: saturate(120%) brightness(1.15);
  }
}

@media (pointer: coarse) and (min-width: 961px), (pointer: coarse) and (min-width: 744px) and (min-height: 700px) {
  /* Touch screens with the desktop bar (iPad on its side): taller tap areas for the menu links;
  the text doesn't move. */
  .sweep-nav__link {
    padding-block: 0.75rem;
  }
}

@media (hover: hover) {
  .sweep-header__actions .sweep-btn--contact:hover {
    margin-inline-start: -1.375rem;
  }
}

@media (max-width: 960px) and (max-height: 500px) {
  /* Landscape phones: tighter rows, so Contact stays on the screen (each still 45px to tap). */
  .sweep-header.is-menu-open .sweep-header__panel {
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .sweep-header.is-menu-open .sweep-nav__link {
    padding-block: 0.45rem;
  }

  .sweep-header.is-menu-open .sweep-header__actions {
    margin-top: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sweep-header__glass-filter {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
  }

  .sweep-header__glass-overlay {
    background: rgb(77 255 82);
  }

  .sweep-header__glass-specular {
    box-shadow: none;
  }

  /* The open phone menu too: the page showed through its 90% panel and 55% dim. */
  .sweep-header.is-menu-open .sweep-header__panel {
    background: var(--sweep-black);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sweep-header.is-menu-open .sweep-header__backdrop {
    background: rgb(30 30 30 / 0.9);
  }
}

@media (forced-colors: active) {
  /* High-contrast modes paint the bar in the system colour and the maroon logo vanished: it
  keeps a green chip of its own. */
  .sweep-header__brand {
    forced-color-adjust: none;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: var(--sweep-green-bright);
  }
}

/* ---- Hero ------------------------------------------------------------------------------------ */
.sweep-hero {
  /* The hero scales from the 1920 design (the 1280 design is the same at 2/3). */
  --sweep-hero-artboard: 1920;
  --sweep-hero-vw: var(--sweep-frame);
  /* The text's own unit (desktop: the page frame, while the picture fits the window's height). */
  --sweep-hero-text-vw: var(--sweep-hero-vw);
  --sweep-hero-pad-bottom: calc(var(--sweep-hero-vw) * 53.333 / var(--sweep-hero-artboard));
  --sweep-hero-gap: calc(var(--sweep-hero-vw) * 53.333 / var(--sweep-hero-artboard));
  --sweep-hero-content-inset: calc(var(--sweep-hero-vw) * 32 / var(--sweep-hero-artboard));
  --sweep-hero-content-width: calc(var(--sweep-hero-text-vw) * 649.333 / var(--sweep-hero-artboard));
  --sweep-hero-headline: calc(var(--sweep-hero-text-vw) * 106.667 / var(--sweep-hero-artboard));
  --sweep-hero-tagline: calc(var(--sweep-hero-text-vw) * 42.667 / var(--sweep-hero-artboard));
  --sweep-hero-tracking: calc(var(--sweep-hero-text-vw) * 2.133 / var(--sweep-hero-artboard));
  /* The design's hero frame is 1066.67 tall at 1920, the space under the fixed header included. */
  --sweep-hero-frame-height: calc(var(--sweep-hero-vw) * 1066.67 / var(--sweep-hero-artboard));
  position: relative;
  overflow: hidden;
  padding-block: var(--sweep-hero-gap) var(--sweep-hero-pad-bottom);
  background: #d4a6fe;
}

.home .sweep-hero {
  margin-top: calc(-1 * var(--header-wrap-height));
  padding-top: calc(var(--header-wrap-height) + var(--sweep-hero-gap));
  min-height: var(--sweep-hero-frame-height);
}

.sweep-hero__illustration {
  /* The dragon under the menu. At the top of its loop the horn tip would rise above the bar on
  desktops narrower than ~1570px: there the box drops just enough to keep it 3px under the
  bar's top. The bottom moves with it, so the dragon keeps its size. */
  --sweep-hero-ill-top: max(
      calc(var(--sweep-hero-vw) * -80 / var(--sweep-hero-artboard)),
      calc(var(--header-outer-pad) + 3px - var(--sweep-hero-vw) * 113 / var(--sweep-hero-artboard))
    );
  position: absolute;
  top: var(--sweep-hero-ill-top);
  right: calc(var(--sweep-hero-vw) * -280 / var(--sweep-hero-artboard));
  bottom: calc(var(--sweep-hero-vw) * -420 / var(--sweep-hero-artboard) - var(--sweep-hero-ill-top));
  left: auto;
  z-index: 0;
  width: calc(var(--sweep-hero-vw) * 2140 / var(--sweep-hero-artboard));
  pointer-events: none;
}

/* Decorative videos never show the browser's play button (iOS Low Power Mode showed a dead one);
the poster stands in and the video starts on the first tap. One rule per pseudo-element: an
unknown one would drop the whole rule. */
.sweep-hero__illustration-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.sweep-hero__illustration-media::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

.sweep-hero__illustration-media::-webkit-media-controls {
  display: none !important;
}

.sweep-hero__illustration-media {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 26% 4%;
  background: transparent;
  user-select: none;
}

.sweep-hero__layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  /* Windows shorter than the hero: the tagline ends at the fold (svh: the screen with the
  browser's bars showing). The hero and the dragon keep their size. */
  min-height: calc(
      min(var(--sweep-hero-frame-height), 100svh) - var(--header-wrap-height) -
        var(--sweep-hero-gap) - var(--sweep-hero-pad-bottom)
    );
}

.sweep-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Very short windows: some air between the headline and the tagline. */
  gap: var(--sweep-hero-gap);
  width: min(100%, var(--sweep-hero-content-width));
  min-height: inherit;
}

.home .sweep-hero__content {
  /* The text starts on the logo's edge (the header bar's padding, 32 at 1920). */
  padding-inline-start: var(--sweep-hero-content-inset);
}

.sweep-hero__heading {
  margin: 0;
  color: #ffffff;
}

.sweep-hero__lead,
.sweep-hero__display {
  display: block;
}

.sweep-hero__serif-text,
.sweep-hero__for {
  display: inline;
  font-family: var(--font-body);
  font-size: var(--sweep-hero-headline);
  font-weight: 400;
  line-height: 1.1;
}

.sweep-hero__display-text {
  font-family: var(--font-display);
  font-size: var(--sweep-hero-headline);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--sweep-hero-tracking);
}

/* Desktop: " for" is added with ::after, so its space can't collapse. */
.sweep-hero__serif-text--with-for::after {
  content: " for";
  font: inherit;
}

.sweep-hero__for--mobile {
  display: none;
}

.sweep-hero__tagline-line {
  display: block;
}

.sweep-hero__tagline {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--sweep-hero-tagline);
  font-weight: 500;
  line-height: 1;
}

@media (min-width: 961px), (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* Desktop: the hero fits the window's height too. Everything in it scales from the smaller of
  width and height (the frame is 1920x1066.67), so the whole frame is on the first screen at
  every desktop size. The text keeps the logo's edge. */
  .sweep-hero {
    --sweep-hero-vw: min(var(--sweep-frame), calc(100svh * 1920 / 1066.67));
    --sweep-hero-text-vw: max(var(--sweep-hero-vw), var(--sweep-frame));
    --sweep-hero-content-inset: var(--header-bar-pad-x);
  }

  /* Desktop: the dragon's head as big and as placed as in the design frame (the middle of its
  loop): 1.245 times the video box, scaled about a point 33.05% across and 1157.6 units down
  (95% of the shapes overlap). The same at every desktop width up to 1920. */
  .sweep-hero__illustration {
    --sweep-hero-ill-top: calc(var(--sweep-hero-vw) * -80 / var(--sweep-hero-artboard));
    transform: scale(1.245);
    transform-origin: 33.05% calc(var(--sweep-hero-vw) * 1157.6 / var(--sweep-hero-artboard));
    /* In the hero's frame, centred in the window: the frame is narrower than the window above
       1920 and in windows shorter than the design. */
    right: calc(max(0px, 100vw - var(--sweep-hero-vw)) / 2 + var(--sweep-hero-vw) * -280 / var(--sweep-hero-artboard));
  }

  /* Desktop: the page's brown, as in the design. Phones keep white: there it sits on the dragon. */
  .sweep-hero__tagline {
    color: var(--sweep-black);
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  /* Not on an upright iPad: it keeps the desktop hero, intro and stats strip. */
  .sweep-hero {
    --sweep-hero-content-width: 100%;
    --sweep-hero-headline: 1.5rem;
    --sweep-hero-tagline: 1rem;
    --sweep-hero-tracking: 0;
    /* The phone hero's full height (600 + gap + bottom padding): the dragon is sized from it. */
    --sweep-hero-full: calc(37.5rem + var(--sweep-hero-gap) + 1.5rem);
    padding-block: 0 1.5rem;
    min-height: 0;
  }

  .home .sweep-hero {
    min-height: 0;
    padding-bottom: 1.5rem;
  }

  /* Sized from the full hero, not the hero's box: on short screens the hero ends at the fold
  and the dragon keeps its size and place. */
  /* Lowered so the whole head shows: at the top of its loop the horn tips just touch the
  screen edge, under the status bar. */
  .sweep-hero__illustration {
    top: calc(var(--sweep-hero-full) * -0.111);
    right: -34%;
    bottom: auto;
    left: auto;
    width: 205vw;
    height: calc(var(--sweep-hero-full) * 1.46);
    opacity: 1;
  }

  .sweep-hero__illustration-media {
    object-position: 36% 28%;
  }

  .sweep-hero__layout {
    z-index: 2;
    /* Screens shorter than the hero (small phones, phones on their side): the hero ends at the
    fold, so the headline and tagline show on the first screen. */
    min-height: calc(
        min(37.5rem, 100svh - var(--sweep-hero-gap) - 1.5rem) - var(--header-wrap-height)
      );
    align-items: flex-end;
  }

  .sweep-hero__content {
    justify-content: flex-end;
    min-height: 0;
    gap: 1rem;
    width: 100%;
    padding-bottom: 0;
  }

  .home .sweep-hero__content {
    padding-inline-start: 0;
  }

  .sweep-hero__lead,
  .sweep-hero__display {
    display: block;
    line-height: 1;
  }

  .sweep-hero__serif-text {
    line-height: 1;
  }

  /* Pulls the second line up: the serif leaves too much air under "thoughts". */
  .sweep-hero__display {
    margin-top: -0.18em;
  }

  .sweep-hero__serif-text--with-for::after {
    content: none;
  }

  .sweep-hero__for--mobile {
    display: inline;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
  }

  .sweep-hero__display-text {
    display: inline;
    line-height: 1;
  }

  .sweep-hero__tagline {
    color: #ffffff;
    font-size: 1rem;
  }

  /* A shade at the bottom over the dragon, so the headline reads (phone design). */
  .sweep-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 49%;
    pointer-events: none;
    background: linear-gradient(
        178deg,
        rgba(221, 174, 255, 0) 11.18%,
        rgba(0, 0, 0, 0.34) 55.56%,
        rgba(0, 0, 0, 0.61) 81.79%
      );
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  .sweep-hero .sweep-container {
    width: min(var(--container-width), calc(100% - 2 * var(--page-gutter)));
  }

  .sweep-hero {
    --sweep-hero-vw: 1000px;
  }
}

/* ---- Intro ----------------------------------------------------------------------------------- */
.sweep-intro {
  /* Desktop: the headline starts on the logo's edge and the three points end on the Contact
  button's; the white band keeps that margin above the headline's capitals and under the
  points' baseline. The moving pictures may cross the points. Stops growing at 1920 (56px). */
  --sweep-intro-margin: calc(var(--page-gutter) + var(--header-bar-pad-x));
  /* Neo Geo at line-height 1.1: the capitals start 0.184em below the line's top. */
  padding-top: calc(var(--sweep-intro-margin) - var(--sweep-intro-headline-size) * 0.184);
  /* HW Cigars at line-height 1.1: the baseline sits 0.27em above the line's bottom. */
  padding-bottom: calc(var(--sweep-intro-margin) - var(--sweep-intro-pillar-size) * 0.27);
  background: #ffffff;
  position: relative;
  z-index: 1;
  --sweep-intro-headline-size: clamp(2rem, 5.56vw, 5rem);
  --sweep-intro-pillar-size: clamp(1.25rem, 2.22vw, 2rem);
}

.sweep-intro__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8.9vw, 8rem);
  /* Ends on the Contact button's edge inside the header bar. */
  padding-inline-end: var(--header-bar-pad-x);
}

.sweep-intro__headline-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* The dash starts on the logo's edge: the header bar's padding inside the page's gutter. */
  padding-left: var(--header-bar-pad-x);
}

.sweep-intro__accent {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  /* The dash's middle sits 52.5px down at the full 80px headline; this keeps that share as the
  headline shrinks. */
  padding-block: calc(var(--sweep-intro-headline-size) * 0.65625 - 0.28125rem) 3rem;
  padding-inline: 0 0.5rem;
}

.sweep-intro__accent::before {
  content: "";
  display: block;
  width: 2.8125rem;
  height: 0.5625rem;
  background: var(--sweep-green-bright);
}

.sweep-intro__headline {
  margin: 0;
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-intro-headline-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.sweep-intro__headline-line {
  text-wrap: balance;
  display: block;
}

.sweep-intro__pillars {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(1.5rem, 3.9vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.sweep-intro__pillar {
  color: var(--sweep-black);
  /* The serif, HW Cigars. */
  font-family: var(--font-body);
  font-size: var(--sweep-intro-pillar-size);
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

@media (min-width: 961px), (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The intro's white runs 1px under the bar, so no zoom level leaves a hairline. */
  .sweep-intro {
    box-shadow: 0 1px 0 #ffffff;
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  .sweep-intro {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .sweep-intro__inner {
    gap: 2.5rem;
    padding-inline-end: 0;
  }

  .sweep-intro__headline-row {
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
  }

  .sweep-intro__accent {
    padding-block: 1.75rem 3.5rem;
    /* The dash starts on the logo's edge. */
    padding-inline: 0 0.5rem;
  }

  .sweep-intro__accent::before {
    width: 1.25rem;
    height: 0.25rem;
  }

  .sweep-intro__headline {
    /* 40px, a little smaller below ~400px wide, so each half breaks into two lines with no
    word alone. */
    font-size: min(2.5rem, calc(14.1vw - 16px));
    line-height: 1;
    letter-spacing: 0;
  }

  .sweep-intro__pillars {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .sweep-intro__pillar {
    font-size: 1.5rem;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  .sweep-intro .sweep-container {
    width: min(var(--container-width), calc(100% - 2 * var(--page-gutter)));
  }

  /* The intro as on desktop: the points 2.5 times smaller than the headline, the dash and
  spacing in the desktop's proportions. */
  .sweep-intro {
    --sweep-intro-pillar-size: calc(var(--sweep-intro-headline-size) / 2.5);
  }

  .sweep-intro__inner {
    gap: 8.9vw;
  }

  .sweep-intro__pillars {
    gap: 3.9vw;
  }

  .sweep-intro__accent::before {
    width: 45px;
    height: 9px;
  }
}

/* ---- Stats strip ----------------------------------------------------------------------------- */
/* The stats strip (Figma frame 497, 2319 wide): CAPE, WORLD, LION. The pictures sit on the dark
bar and poke above it. */
.sweep-stats {
  --sweep-stats-duration: 72s;
  /* The pictures' tips poke into the intro's bottom padding, never into the three points. */
  --sweep-stats-pad: calc(var(--sweep-stats-w) * 24 / var(--sweep-stats-artboard));
  --sweep-stats-gap: calc(var(--sweep-stats-w) * 24 / var(--sweep-stats-artboard));
  overflow: visible;
  background: #ffffff;
  /* White under the seam with the intro: at 125% and 150% zoom the lilac showed through as a
  hairline. */
  box-shadow: 0 -1px 0 #ffffff;
  padding-block: 0;
}

.sweep-stats__viewport {
  /* Padding = the overhang, so the tips sit in the white band above the bar (a negative margin
  sheared the heads). Still (reduced motion, no script): a row you swipe; moving: strips.js
  runs it as a conveyor. */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  width: 100%;
  padding-top: var(--sweep-stats-overhang);
  margin-top: 0;
}

.sweep-stats__viewport::-webkit-scrollbar {
  display: none;
}

.sweep-stats__track {
  display: flex;
  width: max-content;
}

.sweep-stats__group {
  display: flex;
  flex-shrink: 0;
}

.sweep-stats__viewport:not(.is-conveyor) .sweep-stats__group[aria-hidden="true"] {
  display: none;
}

/* Frame 497: each card hugs its content, with 24 padding at its edges and between picture and
text. The pictures are Figma's own crops (img/*_.webp, 2x). */
.sweep-stats-card {
  --sweep-stats-illu-width: calc(var(--sweep-stats-w) * 346.1 / var(--sweep-stats-artboard));
  --sweep-stats-illu-height: calc(var(--sweep-stats-w) * 366 / var(--sweep-stats-artboard));
  position: relative;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-start;
  align-items: stretch;
  height: calc(var(--sweep-stats-w) * 280 / var(--sweep-stats-artboard));
  padding: var(--sweep-stats-pad) var(--sweep-stats-pad) 0;
  overflow: visible;
  background: var(--sweep-black);
  border-left: 1px solid var(--sweep-green-bright);
  isolation: isolate;
}

.sweep-stats-card--world {
  --sweep-stats-illu-width: calc(var(--sweep-stats-w) * 358.7 / var(--sweep-stats-artboard));
  --sweep-stats-illu-height: calc(var(--sweep-stats-w) * 345.9 / var(--sweep-stats-artboard));
  /* 24 padding all round; the picture must clear the bottom padding. */
  padding: var(--sweep-stats-pad);
}

.sweep-stats-card--world .sweep-stats-card__illustration {
  bottom: var(--sweep-stats-pad);
}

.sweep-stats-card--lion {
  --sweep-stats-illu-width: calc(var(--sweep-stats-w) * 424.8 / var(--sweep-stats-artboard));
  --sweep-stats-illu-height: calc(var(--sweep-stats-w) * 367.5 / var(--sweep-stats-artboard));
}

.sweep-stats-card__illustration {
  position: absolute;
  bottom: 0;
  left: var(--sweep-stats-pad);
  z-index: 0;
  width: var(--sweep-stats-illu-width);
  height: var(--sweep-stats-illu-height);
  overflow: visible;
  pointer-events: none;
}

.sweep-stats-card__illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.sweep-stats-card__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sweep-stats-gap);
  align-items: flex-start;
  align-self: stretch;
  box-sizing: border-box;
  /* After the picture (absolute, at the left padding), the same padding again. */
  width: max-content;
  margin-left: calc(var(--sweep-stats-illu-width) + var(--sweep-stats-pad));
  padding-bottom: var(--sweep-stats-pad);
}

.sweep-stats-card__heading {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--sweep-stats-w) * 128 / var(--sweep-stats-artboard));
  font-family: var(--font-display);
  font-size: calc(var(--sweep-stats-w) * 64 / var(--sweep-stats-artboard));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.sweep-stats-card__number {
  color: var(--sweep-green-bright);
}

.sweep-stats-card__label {
  color: #ffffff;
}

.sweep-stats-card__desc {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: calc(var(--sweep-stats-w) * 32 / var(--sweep-stats-artboard));
  font-weight: 400;
  line-height: 1.1;
}

.sweep-stats-card__desc-line {
  display: block;
}

/* Moving strips (stats, client logos, footer wordmark) are conveyors: strips.js adds .is-
conveyor and moves every card or logo as its own small layer, from beyond one edge to past the
other (one strip-wide moving layer showed blank patches). */
.sweep-stats__viewport.is-conveyor {
  overflow: hidden;
  /* A finger drags the strip sideways; vertical swipes and pinch-zoom stay the browser's. */
  touch-action: pan-y pinch-zoom;
}

/* Every item sits in one shared cell; its own transform places it. */
.is-conveyor > .sweep-stats__track {
  display: grid;
  width: auto;
  /* The card colour behind the moving cards, so their seams never show white. */
  background: var(--sweep-black);
}

.is-conveyor > .sweep-stats__track > .sweep-stats__group {
  display: grid;
  grid-area: 1 / 1;
  padding: 0;
}

.is-conveyor .sweep-stats-card {
  grid-area: 1 / 1;
  justify-self: start;
  will-change: transform;
}

@media (min-width: 961px), (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The strip moves up by its pictures' overhang: the dark bar starts where the intro's white
  ends, the tips sit over the intro. */
  .sweep-stats {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--sweep-stats-overhang));
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  .sweep-stats {
    --sweep-stats-duration: 36s;
    --sweep-stats-pad: 1rem;
    --sweep-stats-gap: 1rem;
    padding-block: 0;
  }

  .sweep-stats-card {
    /* Figma's crops at 0.557: padding and gap both 1rem. */
    --sweep-stats-illu-width: 12.05rem;
    --sweep-stats-illu-height: 12.74rem;
    height: 9.375rem;
    min-height: 9.375rem;
    padding: 1rem 1rem 0;
  }

  .sweep-stats-card--world {
    --sweep-stats-illu-width: 12.49rem;
    --sweep-stats-illu-height: 12.04rem;
    padding: 1rem;
  }

  .sweep-stats-card--lion {
    --sweep-stats-illu-width: 14.79rem;
    --sweep-stats-illu-height: 12.79rem;
  }

  .sweep-stats-card__illustration {
    left: 1rem;
  }

  .sweep-stats-card__text {
    gap: 0.5rem;
    padding-bottom: 1rem;
  }

  .sweep-stats-card__heading {
    min-height: 4rem;
    font-size: 2rem;
    letter-spacing: 0;
  }

  .sweep-stats-card__desc {
    font-size: 1.25rem;
    line-height: 1.2;
  }
}

/* ---- Latest work (the project cards) ----------------------------------------------------------------------------- */
.sweep-featured {
  --sweep-featured-count: 3;
  --sweep-featured-card-gap: 8rem;
  /* Cards stick a gutter below the header bar, in equal steps so every peek matches. */
  --sweep-featured-stick-base: calc(var(--header-wrap-height) + var(--page-gutter));
  --sweep-featured-stack-peek: 3.5rem;
  /* 75vh, or less when the stack would run off the bottom of a short screen. */
  --sweep-featured-card-height: min(
      75vh,
      calc(
        100vh - var(--sweep-featured-stick-base) -
          (var(--sweep-featured-count) - 1) * var(--sweep-featured-stack-peek) - var(--page-gutter)
      )
    );
  --sweep-featured-pad: calc(var(--sweep-wide) * 40 / 2250);
  padding-block: var(--sweep-featured-pad);
  background: var(--sweep-green-bright);
  /* Green under the stats bar's bottom edge: zoomed (67-175%) the white showed as a line. */
  box-shadow: 0 -1px 0 var(--sweep-green-bright);
}

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

.sweep-featured__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* Lines up with the header's logo and Contact button. */
  padding-inline: var(--header-bar-pad-x);
}

.sweep-featured__stack {
  display: block;
  width: 100%;
  /* Cancels the last card's margin: under the stack only the section's own padding, as above it. */
  margin-bottom: calc(-1 * var(--sweep-featured-card-gap));
}

.sweep-featured-card {
  /* Each card scrolls in, sticks, and all leave together: the same sticky top + height + margin
  on every card (the exit tail). */
  --sweep-featured-exit-tail: calc(
      (var(--sweep-featured-count) - 1 - var(--sweep-featured-index, 0)) *
      var(--sweep-featured-stack-peek)
    );
  --sweep-featured-scale: 1;
  /* The cards' text is sized as on a 1920 screen on every narrower desktop, and grows from
  there. */
  --sweep-featured-u: calc(max(var(--sweep-wide), 1920px - var(--sweep-frame-loss)) / 2250);
  position: sticky;
  top: calc(
      var(--sweep-featured-stick-base) +
      (var(--sweep-featured-index, 0) * var(--sweep-featured-stack-peek))
    );
  z-index: calc(var(--sweep-featured-index, 0) + 1);
  width: 100%;
  margin: 0 0 var(--sweep-featured-card-gap);
}

/* Keyboard focus brings its card to the front, so its button is never under the next card
(keyboard only: a mouse press would lift the card for good). */
.sweep-featured-card:has(:focus-visible) {
  z-index: 10;
}

.sweep-featured-card__exit-tail {
  height: var(--sweep-featured-exit-tail);
  pointer-events: none;
}

.sweep-featured__stack-end {
  height: var(--sweep-stack-hold);
  pointer-events: none;
}

.sweep-featured-card__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--sweep-featured-card-height);
  min-height: var(--sweep-featured-card-height);
  padding: var(--sweep-featured-pad);
  overflow: hidden;
  border-radius: calc(var(--sweep-wide) * 64 / 2250);
  transform: scale(var(--sweep-featured-scale));
  transform-origin: center top;
}

.sweep-featured-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  pointer-events: none;
}

.sweep-featured-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 100%;
}

.sweep-featured-card__footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--sweep-featured-u) * 24);
  align-items: flex-start;
  max-width: calc(var(--sweep-featured-u) * 369);
}

/* A soft dark corner under the title and button, so they read on light photos too: darkest in the
card's corner, it fades out smoothly just past the text (his call, 2026-11-06). Sized from the text
block, so it follows the title's length on every size. */
.sweep-featured-card__footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(-1 * var(--sweep-featured-pad));
  bottom: calc(-1 * var(--sweep-featured-pad));
  width: calc(190% + var(--sweep-featured-pad));
  height: calc(210% + var(--sweep-featured-pad));
  background: radial-gradient(
      farthest-side at 0% 100%,
      rgb(0 0 0 / 0.55),
      rgb(0 0 0 / 0.5) 30%,
      rgb(0 0 0 / 0.38) 50%,
      rgb(0 0 0 / 0.22) 68%,
      rgb(0 0 0 / 0.1) 82%,
      rgb(0 0 0 / 0.03) 92%,
      rgb(0 0 0 / 0)
    );
  pointer-events: none;
}

.sweep-featured-card__title {
  margin: 0;
  text-wrap: balance;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: calc(var(--sweep-featured-u) * 32);
  font-weight: 700;
  /* Tight headline leading on every size (his call, 2026-11-06). */
  line-height: 0.9;
}

.sweep-featured-card__btn {
  --sweep-btn-pad-x: calc(var(--sweep-featured-u) * 48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  padding:
    calc(var(--sweep-featured-u) * 16)
    var(--sweep-btn-pad-x);
  border: 2px solid var(--sweep-green-bright);
  border-radius: 100px;
  color: var(--sweep-green-bright);
  font-family: var(--font-display);
  font-size: calc(var(--sweep-featured-u) * 24);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* The Instagram logo, always shown (his calls, 2026-11-06): 1.13em, half again as tall as the
capitals (0.74em). align-items centres it on the capitals' middle (= the button's middle); it sits a
hair lower than that (centred on the lowercase letters was too low). */
.sweep-featured-card__icon {
  flex-shrink: 0;
  width: 1.13em;
  height: 1.13em;
  transform: translateY(0.03em);
}

.sweep-featured-card__btn:hover,
.sweep-featured-card__btn:focus-visible {
  color: var(--sweep-black);
  background: var(--sweep-green-bright);
}

/* Computers (his call, 2026-11-06): the card titles sit between "Meet the team" and the team's names
in size (their average) on every desktop size, so they keep the same place in the type scale. The
text block widens with the title (11.5 titles wide, as before), so the lines break as they did.
Touch tablets and phones keep their size. */
@media (min-width: 961px) and (hover: hover) {
  .sweep-featured-card {
    --sweep-featured-title: calc(
        (var(--sweep-section-heading) + max(1.25rem, var(--sweep-wide) * 40 / 2250)) / 2
      );
  }

  .sweep-featured-card__footer {
    max-width: calc(var(--sweep-featured-title) * 11.5);
  }

  .sweep-featured-card__title {
    font-size: var(--sweep-featured-title);
  }
}

@media (max-width: 960px) {
  .sweep-featured {
    /* A little under the full screen, so the closed stack (every peek + the last card) ends 1rem
    above the bottom edge, like desktop. */
    --sweep-featured-card-height: calc(
        100svh - var(--sweep-featured-stick-base) -
          (var(--sweep-featured-count) - 1) * var(--sweep-featured-stack-peek) - 1rem
      );
    --sweep-featured-card-gap: 5rem;
    /* Clears the tall phone header and its shadow, so titles don't tuck under it. */
    --sweep-featured-stick-base: calc(var(--header-wrap-height) + 2.5rem);
    --sweep-featured-stack-peek: 2.75rem;
    --sweep-featured-pad: 1rem;
    padding-block: 2rem;
  }

  .sweep-featured-card__panel {
    border-radius: 1.5rem;
  }

  .sweep-featured-card__footer {
    gap: 1rem;
    max-width: 100%;
  }

  .sweep-featured-card__title {
    font-size: 2rem;
  }

  .sweep-featured-card__btn {
    --sweep-btn-pad-x: 2rem;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    text-align: center;
  }

  /* These sections had their own inset on top of the page's; the page's edge is the logo's now. */
  .sweep-featured__inner {
    padding-inline: 0;
  }
}

@media (max-width: 960px) and (max-height: 500px) {
  /* Phones on their side: the stack sits 1rem under the bar with thinner peeks, so all three
  cards fit with room for their text. */
  .sweep-featured {
    --sweep-featured-stick-base: calc(var(--header-wrap-height) + 1rem);
    --sweep-featured-stack-peek: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* latest.js zooms out covered cards from the third on, so only those keep a GPU layer. */
  .sweep-featured-card:nth-of-type(n + 3):not(:last-of-type) .sweep-featured-card__panel {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep-featured-card {
    position: relative;
    top: auto;
    margin-top: 0;
    margin-bottom: var(--sweep-featured-card-gap);
  }
}

@media (max-width: 960px) {
  .sweep-featured-card {
    position: sticky;
    top: calc(
        var(--sweep-featured-stick-base) +
        (var(--sweep-featured-index, 0) * var(--sweep-featured-stack-peek))
      );
    margin: 0 0 var(--sweep-featured-card-gap);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep-featured-card:last-of-type {
    margin-bottom: 0;
  }

  .sweep-featured__stack {
    margin-bottom: 0;
  }

  .sweep-featured-card__exit-tail,
  .sweep-featured__stack-end {
    display: none;
  }
}

@media (max-width: 960px) {
  .sweep-featured-card__exit-tail {
    display: block;
    height: var(--sweep-featured-exit-tail);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep-featured-card__panel {
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 960px) and (max-height: 320px), (max-width: 960px) and (prefers-reduced-motion: reduce) {
  /* Reduced motion, or a screen too short for any stack (400% zoom): the cards follow one
  another. */
  .sweep-featured-card {
    position: relative;
    top: auto;
  }

  .sweep-featured-card__exit-tail,
  .sweep-featured__stack-end {
    display: none;
  }
}

@media (max-width: 960px) and (max-height: 320px) {
  /* 400% zoom: each card as tall as the screen under the bar (14rem at least), taller if its
  text needs it. */
  .sweep-featured {
    --sweep-featured-card-height: max(14rem, calc(100svh - var(--header-wrap-height) - 2rem));
  }

  .sweep-featured-card__panel {
    height: auto;
  }

  .sweep-featured-card__content {
    gap: 1rem;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  /* Sideways, the wide card shows the photo's bright middle behind the title. */
  .sweep-featured-card__title {
    text-shadow:
      0 0 1rem rgb(0 0 0 / 0.7),
      0 1px 3px rgb(0 0 0 / 0.6);
  }
}

/* ---- Team ------------------------------------------------------------------------------------ */
.sweep-team {
  --sweep-team-pad: calc(var(--sweep-wide) * 32 / 2250);
  --sweep-team-gap: calc(var(--sweep-wide) * 40 / 2250);
  --sweep-team-card-gap: calc(var(--sweep-wide) * 24 / 2250);
  --sweep-team-card-width: calc(var(--sweep-wide) * 500 / 2250);
  --sweep-team-photo-radius: calc(var(--sweep-wide) * 64 / 2250);
  --sweep-team-arrow-size: max(2.75rem, calc(var(--sweep-wide) * 56 / 2250));
  padding:
    var(--sweep-team-pad)
    0
    calc(var(--sweep-wide) * 40 / 2250);
  background: #ffffff;
  /* White under the seam with Services: at 80% zoom the lilac showed through. */
  box-shadow: 0 2px 0 #ffffff;
  overflow: hidden;
}

.sweep-team__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sweep-team-gap);
}

.sweep-team__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  /* Lines up with the header; the moving row stays full-bleed below. */
  padding-inline: var(--header-bar-pad-x);
  box-sizing: border-box;
}

.sweep-team__heading {
  margin: 0;
  color: var(--sweep-purple);
  font-family: var(--font-display);
  font-size: var(--sweep-section-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.sweep-team__controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  align-self: center;
  gap: calc(var(--sweep-wide) * 12 / 2250);
}

.sweep-team__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sweep-team-arrow-size);
  height: var(--sweep-team-arrow-size);
  margin: 0;
  padding: 0;
  border: 1px solid var(--sweep-black);
  border-radius: 999px;
  color: var(--sweep-black);
  background: transparent;
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sweep-team__arrow:hover,
.sweep-team__arrow:focus-visible,
.sweep-team__arrow.is-active {
  color: #ffffff;
  background: var(--sweep-black);
}

.sweep-team__arrow:focus-visible {
  outline: 2px solid var(--sweep-purple);
  outline-offset: 2px;
}

.sweep-team__arrow-icon {
  display: block;
  width: 42%;
  height: 42%;
  flex-shrink: 0;
}

.sweep-team__arrow--prev .sweep-team__arrow-icon,
.sweep-team__arrow--next .sweep-team__arrow-icon {
  transform: none;
}

.sweep-team__viewport {
  overflow: hidden;
  width: 100%;
  /* Clears the notch on landscape phones, where the row starts. */
  padding-left: max(var(--sweep-team-pad), var(--sweep-safe-x));
}

.sweep-team__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 0;
  will-change: transform;
}

.sweep-team__group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--sweep-team-row-gap, var(--sweep-team-card-gap));
  padding-right: var(--sweep-team-row-gap, var(--sweep-team-card-gap));
  box-sizing: border-box;
}

/* The loop's copy is decoration: hover works, link clicks don't. */
.sweep-team__group--clone a {
  pointer-events: none;
}

.sweep-team-card {
  display: flex;
  flex: 0 0 var(--sweep-team-card-width);
  flex-direction: column;
  box-sizing: border-box;
  width: var(--sweep-team-card-width);
  min-width: var(--sweep-team-card-width);
  max-width: var(--sweep-team-card-width);
  gap: var(--sweep-team-card-gap);
  overflow: hidden;
  /* The role in Neo Geo Regular close under the name; the e-mail a step smaller, in the serif, on
  one line at every size. */
  --sweep-team-role-size: max(0.875rem, calc(var(--sweep-wide) * 24 / 2250));
}

.sweep-team-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--sweep-team-photo-radius);
  background: var(--sweep-green-bright);
}

/* The green shows only on cards without a photo: under a photo its rounded edge drew a thin
green line (Safari, Firefox). */
.sweep-team-card__photo:has(.sweep-team-card__image) {
  background: transparent;
}

.sweep-team-card__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sweep-team-card--has-hover .sweep-team-card__image--default,
.sweep-team-card--has-hover .sweep-team-card__image--hover {
  transition: opacity 0.35s ease;
}

.sweep-team-card--has-hover .sweep-team-card__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.sweep-team-card--has-hover .sweep-team-card__image--hover:not([src]) {
  visibility: hidden;
}

.sweep-team-card--has-hover:hover .sweep-team-card__image--hover,
.sweep-team-card--has-hover:focus-within .sweep-team-card__image--hover {
  opacity: 1;
}

.sweep-team-card__contact-btn {
  /* Floors for narrow desktops only (the label was 7px at 1024); 1440 and up unchanged. */
  --sweep-team-contact-size: max(1.5rem, calc(var(--sweep-wide) * 50 / 2250));
  --sweep-team-contact-pad-x: max(0.5rem, calc(var(--sweep-wide) * 16 / 2250));
  --sweep-team-contact-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: absolute;
  right: calc(var(--sweep-wide) * 32 / 2250);
  bottom: calc(var(--sweep-wide) * 32 / 2250);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  /* max-width, not width: auto, so opening and closing can animate. */
  width: max-content;
  max-width: var(--sweep-team-contact-size);
  min-width: var(--sweep-team-contact-size);
  height: var(--sweep-team-contact-size);
  padding-inline: 0;
  overflow: hidden;
  border-radius: 100px;
  color: #ffffff;
  text-decoration: none;
  background: var(--sweep-red);
  transition:
    max-width 0.5s var(--sweep-team-contact-ease),
    padding-inline 0.5s var(--sweep-team-contact-ease),
    gap 0.5s var(--sweep-team-contact-ease),
    background-color 0.35s ease;
}

.sweep-team-card__contact-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: max(0.625rem, calc(var(--sweep-wide) * 16 / 2250));
  font-weight: 400;
  line-height: 1.4;
  transition:
    max-width 0.5s var(--sweep-team-contact-ease),
    opacity 0.35s ease 0.08s;
}

.sweep-team-card__contact-icon {
  flex-shrink: 0;
  width: max(0.75rem, calc(var(--sweep-wide) * 24 / 2250));
  height: max(0.75rem, calc(var(--sweep-wide) * 24 / 2250));
  transform: scale(1);
  transition:
    width 0.45s var(--sweep-team-contact-ease),
    opacity 0.3s ease,
    transform 0.4s var(--sweep-team-contact-ease),
    margin 0.45s var(--sweep-team-contact-ease);
}

.sweep-team-card__contact-btn:hover,
.sweep-team-card__contact-btn:focus-visible {
  /* Grows with the screen: above ~3600px wide a fixed 9rem cut "Contact" short. */
  max-width: max(9rem, calc(var(--sweep-wide) * 100 / 2250));
  padding-inline: var(--sweep-team-contact-pad-x);
  background: #e00022;
  /* White, as in the design, over the general link colour. */
  color: #ffffff;
}

.sweep-team-card__contact-btn:hover .sweep-team-card__contact-label,
.sweep-team-card__contact-btn:focus-visible .sweep-team-card__contact-label {
  max-width: max(6.5rem, calc(var(--sweep-wide) * 72 / 2250));
  opacity: 1;
  color: #ffffff;
}

.sweep-team-card__contact-btn:hover .sweep-team-card__contact-icon,
.sweep-team-card__contact-btn:focus-visible .sweep-team-card__contact-icon {
  width: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.7);
}

.sweep-team-card__meta {
  display: flex;
  flex-direction: column;
  gap: calc(var(--sweep-wide) * 16 / 2250);
  /* The card's full width, so long e-mails fit. */
  max-width: 100%;
  /* The e-mail is sized from this box's width (cqw), so it is always one line. */
  container-type: inline-size;
}

.sweep-team-card__name {
  margin: 0;
  color: var(--sweep-black);
  font-family: var(--font-display);
  /* Floors for narrow desktops (17px names, 10px roles at 961); 1440 and up unchanged. */
  font-size: max(1.25rem, calc(var(--sweep-wide) * 40 / 2250));
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sweep-team-card__position {
  margin: -0.3em 0 0;
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-team-role-size);
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* 0.85 of the role, never wider than the card: the longest address fills at most 96% of it. If a
reader's own text spacing still makes it too long, it breaks only after the @ (<wbr> in the
HTML). */
.sweep-team-card__email {
  /* A little lower than the role, in the headline's purple. */
  margin: 0.4em 0 0;
  color: var(--sweep-purple);
  font-family: var(--font-body);
  font-size: min(max(0.75rem, calc(var(--sweep-team-role-size) * 0.85)), calc(100cqw / 16.8));
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.sweep-team-card__email a {
  color: inherit;
  text-decoration: none;
}

.sweep-team-card__email a:hover,
.sweep-team-card__email a:focus-visible {
  text-decoration: underline;
}

html.sweep-still .sweep-team-card--has-hover.is-lit .sweep-team-card__image--hover {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

@media (max-width: 960px) {
  .sweep-team {
    --sweep-team-pad: var(--sweep-edge);
    --sweep-team-gap: 1rem;
    --sweep-team-card-gap: 1rem;
    /* The gap between people is the page's side margin, so after a swipe the person before is
    wholly off screen. */
    --sweep-team-row-gap: max(var(--sweep-team-pad), var(--sweep-safe-x));
    /* 300px; narrower only below ~388px wide, so the next card still peeks in 24px. */
    --sweep-team-card-width: min(18.75rem, calc(100vw - var(--sweep-edge) - var(--sweep-team-row-gap) - 1.5rem));
    --sweep-team-photo-radius: 1.5rem;
    --sweep-team-arrow-size: 2.75rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .sweep-team__heading {
    font-size: 2.5rem;
    line-height: 1;
  }

  .sweep-team-card {
    scroll-snap-align: start;
    --sweep-team-role-size: 1.125rem;
  }

  .sweep-team__viewport::-webkit-scrollbar {
    display: none;
  }

  /* Phones have no hover: the eyes burn on the card in the middle of the row (team.js adds .is-
  lit once the image is in), never stuck on a tapped card. */
  .sweep-team-card--has-hover:hover .sweep-team-card__image--hover,
  .sweep-team-card--has-hover:focus-within .sweep-team-card__image--hover {
    opacity: 0;
  }

  .sweep-team-card--has-hover.is-lit .sweep-team-card__image--hover {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
  }

  .sweep-team-card__photo {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
  }

  .sweep-team-card__contact-btn {
    --sweep-team-contact-size: 2.1375rem;
    --sweep-team-contact-pad-x: 0.68rem;
    right: 1.3rem;
    bottom: 1.3rem;
  }

  .sweep-team-card__contact-label {
    display: none;
  }

  .sweep-team-card__contact-icon {
    width: 1.025rem;
    height: 1.025rem;
  }

  /* No label here, so hover and focus keep the round mail button (a tap folded the icon away). */
  .sweep-team-card__contact-btn:hover,
  .sweep-team-card__contact-btn:focus-visible {
    max-width: var(--sweep-team-contact-size);
    padding-inline: 0;
  }

  .sweep-team-card__contact-btn:hover .sweep-team-card__contact-icon,
  .sweep-team-card__contact-btn:focus-visible .sweep-team-card__contact-icon {
    width: 1.025rem;
    opacity: 1;
    transform: none;
  }

  .sweep-team-card__meta {
    max-width: 17.4375rem;
    gap: 0.5rem;
  }

  .sweep-team-card__name {
    font-size: 2rem;
    line-height: 1.2;
  }

  .sweep-team__top {
    padding-inline: 0;
  }
}

@media (hover: none) {
  /* Touch screens with the desktop row (iPad on its side): a tapped arrow doesn't stay dark. */
  .sweep-team__arrow:hover:not(.is-active):not(:focus-visible) {
    color: var(--sweep-black);
    background: transparent;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The two arrows by the team headline step the swipe row one person on (team.js). */
  .sweep-team__top {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion: no loop, so no copy of everyone. */
  .sweep-team__group--clone {
    display: none;
  }
}

@media (max-width: 960px) {
  /* Swiping needs one set of cards: the copy is only for the desktop loop. */
  .sweep-team__group--clone {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The photo stays under the flame: fading it showed the green card behind. */
  .sweep-team-card--has-hover .sweep-team-card__image--default,
  .sweep-team-card--has-hover .sweep-team-card__image--hover {
    transition: none;
  }
}

@media (max-width: 960px) {
  .sweep-team-card--has-hover .sweep-team-card__image--hover {
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep-team__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 960px) {
  /* Phones swipe the row by hand instead of the loop. */
  .sweep-team__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    /* pan-x alone blocked page scrolling over the row; pinch-zoom stays. */
    touch-action: pan-x pan-y pinch-zoom;
    /* A swipe comes to rest with a card at the left edge. */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--sweep-team-pad), var(--sweep-safe-x));
  }
}

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

@media (max-width: 960px) {
  .sweep-team__track {
    transform: none !important;
    width: max-content;
  }
}

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

@media (max-width: 960px) {
  .sweep-team__controls {
    display: none;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  .sweep-team__controls {
    display: flex;
    gap: 0.5rem;
  }
}

@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  /* Desktop row: a finger drags it sideways (team.js); vertical swipes and zoom stay the page's. */
  .sweep-team__viewport {
    touch-action: pan-y pinch-zoom;
  }
}

@media (hover: none) and (min-width: 961px) {
  /* Touch screens with the desktop team row (iPad on its side): no hover, so the eyes burn on
  the person in the middle, as on phones. */
  .sweep-team-card--has-hover:hover .sweep-team-card__image--hover,
  .sweep-team-card--has-hover:focus-within .sweep-team-card__image--hover {
    opacity: 0;
  }

  .sweep-team-card--has-hover .sweep-team-card__image--hover {
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .sweep-team-card--has-hover.is-lit .sweep-team-card__image--hover {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
  }
}

/* ---- Services -------------------------------------------------------------------------------- */
/* Services (Figma grid at 1440): number left, text right. Sizes stop growing at 1920 like the
header; the card colours stay full-bleed. */
.sweep-services {
  --sweep-services-artboard: 1440;
  /* Every size below comes from this width. Windows too short for the stack get --sweep-
  services-fit under 1 (services.js): the whole section scales down as one, so a card pauses only
  once its whole list is on screen. */
  --sweep-services-vw: calc(var(--sweep-frame) * var(--sweep-services-fit, 1));
  /* The side padding doesn't scale, so the column keeps its right margin. */
  --sweep-services-vw-x: var(--sweep-frame);
  --sweep-services-pad: calc(var(--sweep-services-vw-x) * 40 / var(--sweep-services-artboard));
  --sweep-services-pad-top: calc(var(--sweep-services-vw) * 32 / var(--sweep-services-artboard));
  --sweep-services-gap: calc(var(--sweep-services-vw) * 40 / var(--sweep-services-artboard));
  /* Slightly tighter, so the tall last card can stick under two peeks. */
  --sweep-services-item-pad-y: calc(var(--sweep-services-vw) * 32 / var(--sweep-services-artboard));
  --sweep-services-item-pad-bottom: calc(var(--sweep-services-vw) * 24 / var(--sweep-services-artboard));
  --sweep-services-title-size: calc(var(--sweep-services-vw) * 64 / var(--sweep-services-artboard));
  /* Reading text never under 16px, also when the section scales down. */
  --sweep-services-sub-size: max(1rem, calc(var(--sweep-services-vw) * 20 / var(--sweep-services-artboard)));
  /* Across: a fixed grid in shares of the row. Titles from 41.7%, lists from 60.1% to the right
  margin. Only the sizes follow the screen's height (the fit). */
  --sweep-services-content-width: 58.3%;
  --sweep-services-list-width: 68.4%;
  --sweep-services-content-gap: calc(var(--sweep-services-vw) * 24 / var(--sweep-services-artboard));
  --sweep-services-list-gap: calc(var(--sweep-services-vw) * 4 / var(--sweep-services-artboard));
  /* A full title row plus air between stacked cards. */
  --sweep-services-title-lh: 1;
  /* The space above a card's title equals the space below it, so a stacked title sits in the
  middle of its strip with no list line showing. */
  --sweep-services-title-space: calc(
      (var(--sweep-services-item-pad-y) + var(--sweep-services-content-gap)) / 2
    );
  --sweep-services-stack-peek: calc(
      2 * var(--sweep-services-title-space) +
      var(--sweep-services-title-size) * var(--sweep-services-title-lh)
    );
  /* Cards stick flush under the sticky "Services" bar. */
  --sweep-services-heading-stick: calc(var(--header-wrap-height) + 0.15rem);
  /* The bar's real height (the heading's line-height is 1.1), or card 1 hides under it. */
  --sweep-services-header-bar: calc(
      var(--sweep-services-pad-top) +
      var(--sweep-section-heading) * 1.1 +
      0.5rem
    );
  /* 1px overlap: no dark hairline between the bar and card 1. */
  --sweep-services-stick-base: calc(
      var(--sweep-services-heading-stick) +
      var(--sweep-services-header-bar) -
      1px
    );
  /* The same gap under every card; the exit tails keep top + height + margin equal, so the stack
  leaves together (as in Latest). */
  --sweep-services-item-gap: max(
      var(--sweep-services-gap),
      calc(var(--sweep-services-stack-peek) + 20vh)
    );
  /* Every card is as tall as the tallest (services.js measures them) and at least the screen below
  the stack, so a stuck card covers everything under it. vh, not svh: steady while Safari's
  bars move. */
  --sweep-services-shell: max(
      calc(
        100vh - var(--sweep-services-stick-base) -
          (var(--sweep-services-count, 1) - 1) * var(--sweep-services-stack-peek)
      ),
      var(--sweep-services-row-max, 0px)
    );
  /* The last card's empty part below its list: the next section slides up over it before the
  stack moves on. */
  --sweep-services-tuck: max(
      0px,
      calc(
        var(--sweep-services-shell) -
          var(--sweep-services-row-last, var(--sweep-services-shell))
      )
    );
  /* The title's sticky height must match the cards'. The first card pulls up with a negative
  margin; never put it on the header (that stretches its sticky range and leaves "Services"
  stuck). */
  --sweep-services-header-exit: calc(
      var(--sweep-services-shell) + var(--sweep-services-stick-base) +
        (var(--sweep-services-count, 1) - 1) * var(--sweep-services-stack-peek) -
        var(--sweep-services-heading-stick) - var(--sweep-services-header-bar)
    );
  padding-top: 0;
  /* Ends where the next section starts, so that section can come up over the last card. */
  display: flow-root;
  overflow: clip;
  /* Two-colour fill: maroon at the top so the green header's rounded corners don't flash black,
  black at the bottom to match the seam above the logo strips. */
  background: linear-gradient(
      to bottom,
      var(--sweep-maroon-800) 0,
      var(--sweep-maroon-800) 220vh,
      var(--sweep-black) 280vh,
      var(--sweep-black) 100%
    );
  color: #ffffff;
}

.sweep-services__header {
  position: sticky;
  top: var(--sweep-services-heading-stick);
  z-index: 30;
  /* Padding matches the cards' height, and margin-bottom the cards' (sticky release uses the
  margin box). */
  padding: 0 0 var(--sweep-services-header-exit);
  margin: 0 0 var(--sweep-services-item-gap);
  /* Transparent, so its exit padding doesn't cover the stack; the bar paints the title. */
  background: transparent;
  /* The clear exit padding lies over the cards: clicks and selection reach their text. */
  pointer-events: none;
}

/* Full-bleed title strip. */
.sweep-services__header-bar {
  pointer-events: auto;
  width: 100%;
  background: var(--sweep-maroon-800);
  /* Covers a sub-pixel gap above the first sticky card. */
  box-shadow: 0 1px 0 var(--sweep-maroon-800);
}

.sweep-services__inner {
  /* Lines up with the header's logo and Contact button. */
  padding: var(--sweep-services-pad-top) var(--header-bar-pad-x) 0.5rem;
  background: transparent;
}

.sweep-services__heading {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  /* The shared headline size: it doesn't shrink with the fit. */
  font-size: var(--sweep-section-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.sweep-services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0;
  padding-bottom: 0;
  /* The next section starts where the last card's list ends once the stack leaves. */
  margin-bottom: calc(
      -1 * (var(--sweep-services-item-gap) + var(--sweep-services-tuck))
    );
}

/* The hold: once the last card has landed, the closed stack rests this long; meanwhile the next
section comes up over the last card's empty part (part of the hold, not added to it). */
.sweep-services__list::after {
  content: "";
  flex: none;
  height: var(--sweep-stack-hold);
}

.sweep-services-item {
  /* Shorter for later cards, so sticky top + shell + exit + gap stays equal and all cards leave
  together. */
  --sweep-services-exit-tail: calc(
      (var(--sweep-services-count, 1) - 1 - var(--sweep-services-index, 0)) *
      var(--sweep-services-stack-peek)
    );
  position: sticky;
  top: calc(
      var(--sweep-services-stick-base) +
      (var(--sweep-services-index, 0) * var(--sweep-services-stack-peek))
    );
  /* Below the sticky Services heading (z-index 30) and the header. */
  z-index: calc(10 + var(--sweep-services-index, 0));
  width: 100%;
  margin: 0 0 var(--sweep-services-item-gap);
}

/* The first card pulls up under the title bar. */
.sweep-services-item:first-of-type {
  margin-top: calc(
      -1 * (var(--sweep-services-header-exit) + var(--sweep-services-item-gap))
    );
}

.sweep-services-item__exit-tail {
  height: var(--sweep-services-exit-tail);
  pointer-events: none;
}

.sweep-services-item--tone-1 {
  background: var(--sweep-maroon-800);
}

.sweep-services-item--tone-2 {
  background: var(--sweep-maroon-900);
}

.sweep-services-item--tone-3 {
  background: var(--sweep-black);
}

/* The last card ends with twice the space above its title under its list, measured to the
letters. */
.sweep-services-item:last-of-type .sweep-services-item__row {
  padding-bottom: calc(
      2 * (var(--sweep-services-title-space) +
        var(--sweep-services-title-size) * (0.11 + (var(--sweep-services-title-lh) - 1) / 2)) -
        0.27 * var(--sweep-services-sub-size)
    );
}

/* The colour runs full-bleed; the shell has the header's width and the same height on every
card. */
.sweep-services-item__shell {
  box-sizing: border-box;
  width: min(var(--container-width), calc(100% - (max(var(--page-gutter), var(--sweep-safe-x)) * 2)));
  min-height: var(--sweep-services-shell);
  margin-inline: auto;
  /* The numbers on the logo's edge, under "Services"; the lists end on the Contact button's
  edge. */
  padding-inline: var(--header-bar-pad-x);
}

.sweep-services-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, calc(var(--sweep-services-vw) * 0.08), 8rem);
  width: 100%;
  padding-top: var(--sweep-services-title-space);
  padding-bottom: var(--sweep-services-item-pad-bottom);
}

.sweep-services-item__number {
  flex-shrink: 0;
  color: var(--sweep-red);
  font-family: var(--font-display);
  font-size: var(--sweep-services-title-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.sweep-services-item__content {
  display: flex;
  flex: 0 1 var(--sweep-services-content-width);
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sweep-services-title-space);
  width: var(--sweep-services-content-width);
  max-width: min(var(--sweep-services-content-width), 100%);
}

.sweep-services-item__title {
  width: 100%;
  margin: 0;
  /* The page's purple, like "Meet the team". */
  color: var(--sweep-purple);
  font-family: var(--font-display);
  font-size: var(--sweep-services-title-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
}

.sweep-services-item__sublist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sweep-services-list-gap);
  width: var(--sweep-services-list-width);
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sweep-services-item__subitem {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--sweep-services-sub-size);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

/* The same plain list on desktop windows too short even scaled down (services.js sets the class
below 55%), e.g. 1440x700 or 1280x620. */
.sweep-services.is-plain-list .sweep-services__list::after {
  content: none;
}

.sweep-services.is-plain-list .sweep-services__list {
  padding-bottom: 0;
  margin-bottom: 0;
}

.sweep-services.is-plain-list .sweep-services__header {
  position: relative;
  top: auto;
  padding-bottom: 0;
  margin-bottom: var(--sweep-services-gap);
}

.sweep-services.is-plain-list .sweep-services-item {
  position: relative;
  top: auto;
  margin-bottom: 0;
  padding-bottom: var(--sweep-services-gap);
}

.sweep-services.is-plain-list .sweep-services-item:first-of-type {
  margin-top: 0;
}

.sweep-services.is-plain-list .sweep-services-item__shell {
  min-height: 0;
}

.sweep-services.is-plain-list .sweep-services-item__exit-tail {
  display: none;
}

@media (max-width: 743px), (max-width: 960px) and (max-height: 699px) {
  /* Not on an upright iPad: it keeps the desktop Services. */
  /* Phones fit their stack to the window too (--sweep-services-fit): the titles' spacing
  shrinks a little; the list text and the headline keep their size. */
  .sweep-services {
    --sweep-services-pad: 1rem;
    --sweep-services-pad-top: calc(2rem * var(--sweep-services-fit, 1));
    --sweep-services-gap: 2.5rem;
    --sweep-services-item-pad-y: calc(1.5rem * var(--sweep-services-fit, 1));
    --sweep-services-item-pad-bottom: calc(1.5rem * var(--sweep-services-fit, 1));
    /* The titles keep 24px on every phone; only the space round them gives way to the fit. */
    --sweep-services-title-size: 1.5rem;
    --sweep-services-sub-size: 0.875rem;
    --sweep-services-content-width: 100%;
    --sweep-services-list-width: 100%;
    --sweep-services-content-gap: calc(1rem * var(--sweep-services-fit, 1));
    /* Cards stay under the sticky Services heading. */
    --sweep-services-heading-stick: calc(var(--header-wrap-height) + 0.15rem);
    /* The bar's real height (the heading is 2.5rem at line-height 1). */
    --sweep-services-header-bar: calc(
        var(--sweep-services-pad-top) +
        2.5rem +
        0.5rem
      );
    --sweep-services-stick-base: calc(
        var(--sweep-services-heading-stick) +
        var(--sweep-services-header-bar) -
        1px
      );
    --sweep-services-title-lh: 1.4;
    --sweep-services-stack-peek: calc(
        2 * var(--sweep-services-title-space) +
          var(--sweep-services-title-size) * var(--sweep-services-title-lh)
      );
    --sweep-services-item-gap: max(
        var(--sweep-services-gap),
        calc(var(--sweep-services-stack-peek) + 16vh)
      );
  }

  .sweep-services__heading {
    font-size: 2.5rem;
    line-height: 1;
  }

  /* The cards stick and size by the desktop rules, with these sizes. */
  .sweep-services-item__shell {
    width: 100%;
    margin-inline: 0;
    /* The logo's edge; clears the notch on landscape phones. */
    padding-inline: var(--sweep-edge);
  }

  .sweep-services-item__row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .sweep-services-item__number,
  .sweep-services-item__title {
    font-size: var(--sweep-services-title-size);
    line-height: 1.4;
    letter-spacing: 0;
  }

  /* As wide as the widest number, so every title starts at the same edge (the font has no
  tabular figures; a "4" would need .72em). */
  .sweep-services-item__number {
    min-width: 0.61em;
  }

  .sweep-services-item__content {
    flex: 1 1 auto;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: var(--sweep-services-title-space);
  }

  .sweep-services-item__sublist {
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }

  .sweep-services-item__subitem {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .sweep-services__inner {
    padding-inline: 0;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  .sweep-services .sweep-container {
    width: min(var(--container-width), calc(100% - 2 * var(--page-gutter)));
  }

  /* The desktop Services at 1.5 times the window's desktop size, still fitted to the screen's
  height (services.js). Set on the section: on :root it never applied. The list keeps 20px text
  and its column follows it. */
  .sweep-services {
    --sweep-services-vw: calc(var(--sweep-wide) * 1.5 * var(--sweep-services-fit, 1));
    /* The same grid, wider: titles from 22%, lists from 34%. */
    --sweep-services-content-width: 78%;
    --sweep-services-list-width: 84%;
  }

  /* The Services numbers on the logo's edge (the lists end on the Contact button's). */
  .sweep-services-item__shell {
    padding-inline: var(--header-bar-pad-x);
  }
}

@supports not (overflow: clip) {
  /* Without overflow: clip the cards can't be cut at the next section: keep it below them. */
  .sweep-services {
    --sweep-services-tuck: 0px;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 960px) and (max-height: 539px), (max-width: 339px) and (max-height: 580px), (max-width: 285px) {
  /* A plain list with reduced motion and on screens too short for the stack (phones on their
  side, the narrowest phones): a stuck card would cover lines below the screen before they
  could be read. */
  .sweep-services__list::after {
    content: none;
  }

  .sweep-services__list {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .sweep-services__header {
    position: relative;
    top: auto;
    padding-bottom: 0;
    margin-bottom: var(--sweep-services-gap);
  }

  /* The space after each card is the card's own colour (a margin showed a stripe). */
  .sweep-services-item {
    position: relative;
    top: auto;
    margin-bottom: 0;
    padding-bottom: var(--sweep-services-gap);
  }

  .sweep-services-item:first-of-type {
    margin-top: 0;
  }

  .sweep-services-item__shell {
    min-height: 0;
  }

  .sweep-services-item__exit-tail {
    display: none;
  }
}

/* ---- Logo strips ----------------------------------------------------------------------------- */
.sweep-marquees {
  position: relative;
  z-index: 1;
  background: var(--sweep-green-bright);
  /* Black above the seam with Services: zoomed (80-150%) the lilac showed through. */
  box-shadow: 0 -2px 0 var(--sweep-black);
  overflow: hidden;
}

.sweep-marquee {
  /* Logos are 65 high in their files: scale the height, the width follows. */
  --sweep-marquee-logo-height: calc(var(--sweep-wide) * 147 / 2250);
  --sweep-marquee-gap: calc(var(--sweep-wide) * 72 / 2250);
  /* The loop's duration: slow and calm. */
  --sweep-marquee-duration: 120s;
  background: var(--sweep-green-bright);
}

.sweep-marquee--top {
  padding-top: calc(var(--sweep-wide) * 48 / 2250);
}

.sweep-marquee--bottom {
  padding-top: calc(var(--sweep-wide) * 24 / 2250);
  padding-bottom: calc(var(--sweep-wide) * 48 / 2250);
}

.sweep-marquee__viewport {
  overflow: hidden;
  width: 100%;
}

.sweep-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
}

.sweep-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--sweep-marquee-gap);
  padding-right: var(--sweep-marquee-gap);
}

.sweep-marquee__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: var(--sweep-marquee-logo-height);
  max-width: none;
}

.sweep-marquee__viewport.is-conveyor {
  overflow: hidden;
  /* A finger drags the strip sideways; vertical swipes and pinch-zoom stay the browser's. */
  touch-action: pan-y pinch-zoom;
}

.is-conveyor > .sweep-marquee__track {
  display: grid;
  width: auto;
}

.is-conveyor > .sweep-marquee__track > .sweep-marquee__group {
  display: grid;
  grid-area: 1 / 1;
  padding: 0;
}

.is-conveyor .sweep-marquee__logo {
  grid-area: 1 / 1;
  justify-self: start;
  will-change: transform;
}

@media (max-width: 960px) {
  .sweep-marquee {
    --sweep-marquee-logo-height: 2.75rem;
    --sweep-marquee-gap: 1.5rem;
    --sweep-marquee-duration: 90s;
  }

  .sweep-marquee--top {
    padding-top: 1.5rem;
  }

  .sweep-marquee--bottom {
    padding-top: 1.125rem;
    padding-bottom: 1.5rem;
  }
}

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

/* ---- Contact --------------------------------------------------------------------------------- */
.sweep-contact {
  /* Contact on desktop: the 1440 design (a box with underlined fields right of a big claw that
  reaches up over the logo strip). Every size is in that frame's units, scaled with the page
  up to 1920; reading text never under 16px. */
  --sweep-contact-d: calc(var(--sweep-frame) / 1440);
  --sweep-contact-line: max(1px, calc(var(--sweep-contact-d) * 1.16));
  --sweep-contact-text: max(1rem, calc(var(--sweep-contact-d) * 16.34));
  --sweep-contact-box-width: calc(var(--sweep-contact-d) * 655);
  --sweep-contact-pad: calc(var(--sweep-contact-d) * 36);
  --sweep-contact-margin-y: calc(var(--sweep-contact-d) * 54);
  --sweep-contact-heading: var(--sweep-section-heading);
  /* The claw video (1920x1080; the art at x 664-1172, y 79-1080) as big as in the design: 16%
  bigger than the frame fitting there, so the wristband sits low and the rest of the arm is
  cut off at the footer. */
  --sweep-contact-claw-width: calc(var(--sweep-contact-d) * 1613.1);
  --sweep-contact-claw-below: calc(var(--sweep-contact-d) * 116);
  position: relative;
  z-index: 2;
  width: 100%;
  background: #ddaeff;
  padding: 0;
  overflow: visible;
}

.sweep-contact__layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding: var(--sweep-contact-margin-y) var(--header-bar-pad-x);
  overflow: visible;
  background: #ddaeff;
}

/* Out of flow, cut at the footer. The art's middle (x 918 of the 1920 video) sits halfway
between the frame's left edge and the box, as in the design; wider than 1920 it stays in the
centred frame. */
.sweep-contact__illustration {
  position: absolute;
  left: calc(
      ((100% - var(--sweep-frame)) / 2 + 100% - var(--header-bar-pad-x) - var(--sweep-contact-box-width)) / 2 -
        var(--sweep-contact-claw-width) * 918 / 1920
    );
  bottom: calc(-1 * var(--sweep-contact-claw-below));
  z-index: 2;
  width: var(--sweep-contact-claw-width);
  aspect-ratio: 16 / 9;
  pointer-events: none;
  /* Cut at the footer; free above (over the logos) and to the sides. */
  clip-path: inset(-100vh -100vw var(--sweep-contact-claw-below) -100vw);
}

.sweep-contact__illustration-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  background: transparent;
}

.sweep-contact__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
  width: min(100%, var(--sweep-contact-box-width));
}

.sweep-contact__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sweep-contact__heading {
  margin: 0;
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-contact-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* The box: lilac inside, so on phones the hand goes behind it. */
.sweep-contact__form {
  box-sizing: border-box;
  width: 100%;
  padding: var(--sweep-contact-pad);
  border: var(--sweep-contact-line) solid var(--sweep-black);
  border-radius: calc(var(--sweep-contact-d) * 11.55);
  background: #ddaeff;
}

/* The form: plain HTML; contact.php emails it to hi@sweep.ee. */
.sweep-form {
  position: relative;
  margin: 0;
}

/* Name and Email side by side, Message and Send across. */
.sweep-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(var(--sweep-contact-d) * 38.7);
  row-gap: calc(var(--sweep-contact-d) * 35);
}

.sweep-form__field,
.sweep-form__send {
  grid-column: 1 / -1;
  min-width: 0;
}

.sweep-form__field--name {
  grid-column: 1;
}

.sweep-form__field--email {
  grid-column: 2;
}

.sweep-form__send {
  margin-top: calc(var(--sweep-contact-d) * -3);
}

.sweep-form__field label {
  display: block;
  margin: 0 0 calc(var(--sweep-contact-d) * 15.9);
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-contact-text);
  font-weight: 700;
  line-height: 1.1;
}

.sweep-form__field input,
.sweep-form__field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 0 calc(var(--sweep-contact-d) * 6.6);
  border: 0;
  border-bottom: var(--sweep-contact-line) solid #ffffff;
  border-radius: 0;
  background: transparent;
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-contact-text);
  font-weight: 400;
  line-height: 1.1;
  box-shadow: none;
  appearance: none;
}

.sweep-form__field textarea {
  height: calc(var(--sweep-contact-d) * 97);
  min-height: 3em;
  resize: none;
}

/* White placeholders, as in the design (its Neo Geo Light isn't a web font here: Regular). */
.sweep-form__field input::placeholder,
.sweep-form__field textarea::placeholder {
  color: #ffffff;
  opacity: 1;
}

/* Focus: the line under the field turns brown; no box round it. */
.sweep-form__field input:focus,
.sweep-form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--sweep-black);
}

/* I accept the Terms, under Message on the left: a box in the form's own line (brown outline, the
lilac showing through, a brown tick when ticked), its words the size of the field labels. It must
be ticked before sending (form.js, contact.php). [type] outranks the phone rules for the fields. */
.sweep-form__field--terms label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.sweep-form__field--terms input[type="checkbox"] {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin: 0;
  padding: 0;
  border: var(--sweep-contact-line) solid var(--sweep-black);
  border-radius: 0.22em;
  background: transparent no-repeat center / 78%;
  cursor: pointer;
}

.sweep-form__field--terms input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23320001' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.6 6.2 12.2 13.5 3.9'/%3E%3C/svg%3E");
}

.sweep-form__field--terms input[type="checkbox"]:focus-visible {
  outline: var(--sweep-contact-line) solid var(--sweep-black);
  outline-offset: 0.18em;
}

.sweep-form__field--terms a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--sweep-contact-line);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.sweep-form__field--terms a:hover,
.sweep-form__field--terms a:focus-visible {
  color: var(--sweep-red);
}

/* Errors: just red text under the field. */
.sweep-form__error,
.sweep-form__status.is-error {
  color: var(--sweep-red);
}

.sweep-form__error,
.sweep-form__status {
  margin: calc(var(--sweep-contact-d) * 8) 0 0;
  font-family: var(--font-display);
  font-size: max(0.875rem, calc(var(--sweep-contact-d) * 14));
  line-height: 1.3;
}

.sweep-form__status {
  color: var(--sweep-black);
}

.sweep-form__error:empty,
.sweep-form__status:empty {
  display: none;
}

/* A trap field: people never see it, bots fill it. */
.sweep-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Send Message: a pill across the box, the arrow at its right; hover turns it red with the text
and arrow brown. */
.sweep-form__button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: max(2.75rem, calc(var(--sweep-contact-d) * 55.3));
  margin: 0;
  padding: 0 calc(var(--sweep-contact-d) * 72) 0 calc(var(--sweep-contact-d) * 36);
  border: var(--sweep-contact-line) solid var(--sweep-black);
  border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23320001' stroke-width='1.2'%3E%3Cpath d='M1 21 21 1M1 1h20v20'/%3E%3C/svg%3E") no-repeat right calc(var(--sweep-contact-d) * 32.8) center / max(1rem, calc(var(--sweep-contact-d) * 21.4));
  color: var(--sweep-black);
  font-family: var(--font-display);
  font-size: var(--sweep-contact-text);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.sweep-form__button:hover,
.sweep-form__button:focus-visible {
  border-color: var(--sweep-red);
  background-color: var(--sweep-red);
  color: var(--sweep-black);
}

.sweep-form__button:focus-visible,
.sweep-form__status:focus {
  outline: none;
}

.sweep-form__button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Sent: the fields keep their space (hidden) and the message shows in it, so the section keeps
its height and the claw stays put. */
.sweep-form.is-sent .sweep-form__fields {
  visibility: hidden;
}

.sweep-form.is-sent .sweep-form__status {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  font-size: var(--sweep-contact-text);
  line-height: 1.4;
}

/* Contact's lilac (#ddaeff), so phone edges don't flash the page's #d495fe. */
.home .sweep-contact {
  background: #ddaeff;
}

.sweep-contact__illustration-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.sweep-contact__illustration-media::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

.sweep-contact__illustration-media::-webkit-media-controls {
  display: none !important;
}

@media (max-width: 960px) {
  /* Contact on phones (the design at 375 wide): claw 943x534 at -57, form at 260, section 650
  tall. It scales with the width up to 440px, then holds. */
  .sweep-contact {
    --sweep-contact-u: min(100vw, 27.5rem);
    /* Above the logo strips, so the claw can overlap them. */
    z-index: 5;
    /* Clips sideways only: hidden overflow cut the claw under the logos. */
    overflow-x: clip;
    overflow-y: visible;
    /* Full-bleed lilac (#ddaeff). */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ddaeff;
    min-height: calc(var(--sweep-contact-u) * 650 / 375);
    /* The box's sizes for phones: the design's at 1:1, padding and text set here. */
    --sweep-contact-d: 1px;
    --sweep-contact-line: 1px;
    --sweep-contact-text: 1rem;
    --sweep-contact-pad: 1.25rem;
  }

  .sweep-contact__layout {
    flex-direction: column;
    align-items: stretch;
    /* Wider screens keep the phone column, centred under the claw. */
    width: min(var(--container-width), calc(100% - 2 * var(--sweep-edge)), 36rem);
    max-width: 100%;
    margin-inline: auto;
    min-height: calc(var(--sweep-contact-u) * 650 / 375);
    padding: calc(var(--sweep-contact-u) * 260 / 375) 0 1.5rem;
    overflow: visible;
    background: #ddaeff;
  }

  /* No gradient veil: it read as a purple cut line over the claw. */
  .sweep-contact__layout::after {
    content: none;
    display: none;
  }

  .sweep-contact__illustration {
    /* The claw grows upward from its bottom edge, which stays where the design has it (477 below
    the section's top at 375 wide): at the top of its loop (y 79 of the 1080 frame) it reaches
    the middle of the logo strips above, 4.8125rem = half of 1.5 + 2.75 + 1.125 + 2.75 + 1.5rem
    (the phone strips' sizes; change this with them). */
    --sweep-contact-claw-bottom: calc(var(--sweep-contact-u) * 477.004 / 375);
    --sweep-contact-claw-h: calc((var(--sweep-contact-claw-bottom) + 4.8125rem) * 1080 / 1001);
    position: absolute;
    /* Centres the art, not the frame: the art's middle (x 918 of 1920) sits 42px left of the
    frame's, scaled to the box height. */
    left: calc(50% + var(--sweep-contact-claw-h) * 42 / 1080);
    top: calc(var(--sweep-contact-claw-bottom) - var(--sweep-contact-claw-h));
    bottom: auto;
    clip-path: none;
    /* Above the section's fill; the form sits higher still. */
    z-index: 1;
    width: calc(var(--sweep-contact-claw-h) * 943.446 / 533.974);
    height: var(--sweep-contact-claw-h);
    margin: 0;
    overflow: visible;
    aspect-ratio: auto;
    background: transparent;
    transform: translateX(-50%);
    transform-origin: center top;
    pointer-events: none;
  }

  .sweep-contact__illustration-media {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    object-fit: cover;
    object-position: center center;
    /* The wrist is cut flat at the frame's bottom: the box hides it, the fade covers the rest
    (after sending, odd text sizes). */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent calc(100% - 0.5rem));
    mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent calc(100% - 0.5rem));
  }

  .sweep-contact__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 0;
  }

  .sweep-contact__panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .sweep-contact__heading {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: #ffffff;
    text-align: left;
    font-size: 2.5rem;
  }

  /* The box on phones: Name, Email and Message one under another; the lilac inside covers the
  hand. */
  .sweep-contact__form {
    border-radius: 0.75rem;
  }

  .sweep-form__fields {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.75rem;
  }

  .sweep-form__field--name,
  .sweep-form__field--email {
    grid-column: 1 / -1;
  }

  .sweep-form__send {
    margin-top: 0;
  }

  .sweep-form__field label {
    margin-bottom: 0.75rem;
  }

  .sweep-form__field input,
  .sweep-form__field textarea {
    padding-bottom: 0.5rem;
  }

  .sweep-form__field textarea {
    height: 6rem;
  }

  .sweep-form__button {
    height: 3.25rem;
    padding: 0 3.5rem 0 1.25rem;
    background-position: right 1.25rem center;
    background-size: 1.125rem;
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The contact column full width between the edges. */
  .sweep-contact .sweep-container {
    width: calc(100% - 2 * var(--sweep-edge));
  }
}

@media (min-width: 961px) {
  /* Desktop: the design has no heading; it stays for screen readers (it names the form). Phones
  show it on the claw. */
  .sweep-contact__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---- Footer ---------------------------------------------------------------------------------- */
.sweep-footer {
  margin-top: auto;
  background: var(--sweep-black);
  color: var(--sweep-green-bright);
  font-family: var(--font-display);
}

/* Zoomed (90-175%), the seam between Contact and the footer fell between device pixels and
showed a lilac line; these shadows cover it. The second fills the sliver under the wordmark
when the page's height isn't a whole pixel. */
.home .sweep-footer {
  box-shadow: 0 -2px 0 var(--sweep-black), 0 2px 0 var(--sweep-black);
}

/* ---- Privacy policy page (privacy-policy/, Figma "Sweep home page" Frame 500) ------------------ */
/* White page, the text in one narrow column in the middle: at 1920 wide 900px, 20px headings in
capitals and 16px text, as in the frame; it scales with the page frame on bigger screens, never
smaller than 16px text, and fills the width between the edges on phones. The site's Neo Geo and
brown: the frame's NEXT Pan and black came with its placeholder text. Header, text, footer: no
contact section (his call; the frame has one). */
html.sweep-privacy,
.sweep-privacy body {
  background: #ffffff;
}

.sweep-policy {
  padding: calc(var(--section-space) * 0.75) 0 calc(var(--section-space) * 1.5);
  background: #ffffff;
  color: var(--sweep-black);
  font-family: var(--font-display);
  /* The screen's width, not the page frame: upright iPads scale the frame up (20px text there). */
  font-size: max(1rem, min(100vw, var(--sweep-frame)) * 16 / 1920);
  font-weight: 400;
  line-height: 1.5;
}

.sweep-policy__text {
  box-sizing: border-box;
  width: min(100% - 2 * var(--sweep-edge, 1.5rem), max(40rem, var(--sweep-frame) * 900 / 1920));
  margin-inline: auto;
}

.sweep-policy h2 {
  margin: 2em 0 1.2em;
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.sweep-policy p,
.sweep-policy ul {
  margin: 0 0 1em;
}

.sweep-policy ul {
  padding: 0;
  list-style: none;
}

.sweep-policy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.sweep-policy a:hover,
.sweep-policy a:focus-visible {
  color: var(--sweep-red);
}

/* Under the intro, before section 1, as in Sweep's policy document. */
.sweep-policy__date {
  opacity: 0.7;
}

/* What data, then its purpose, legal basis and how long it's kept, one line each (the policy
document's table, as plain lines: his call, "dont make table ... too complex"). */
.sweep-policy__item {
  margin-bottom: 1.25em;
}

.sweep-policy strong {
  font-weight: 700;
}

/* "cookie settings" in the text opens CookieYes's settings (its class cky-banner-element); it reads
as one of the text's links. */
.sweep-policy__cookies {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.sweep-policy__cookies:hover,
.sweep-policy__cookies:focus-visible {
  color: var(--sweep-red);
}

.sweep-footer__content {
  padding: 2rem 0 1rem;
}

/* The header bar's inset, so the text lines up with the logo and the Contact pill. */
.sweep-footer__grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(2rem, 8vw, 6rem);
  min-height: 31.25rem;
  padding-inline: var(--header-bar-pad-x);
}

.sweep-footer__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.sweep-footer__col--intro {
  width: min(100%, 19.375rem);
}

.sweep-footer__col--contact {
  align-items: flex-start;
}

.sweep-footer__cta,
.sweep-footer__address {
  /* The footer is Neo Geo throughout, as in the design. */
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
}

.sweep-footer__cta p,
.sweep-footer__address p {
  margin: 0;
}

/* One sentence pair: it flows, with no forced break. */
.sweep-footer__cta p {
  display: inline;
}

/* Privacy policy: a third line under the address, the address's own text, underlined (legal info,
not one of the arrow links); lilac on hover like the footer's other links. */
.sweep-footer__legal {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.sweep-footer__legal:hover,
.sweep-footer__legal:focus-visible {
  color: var(--sweep-purple);
}

/* Cookie settings: on the Privacy policy line, the same look. It opens the cookie banner again
(CookieYes does that for any element with the class cky-banner-element), in place of CookieYes's
round corner button (his call, DECISIONS #72). On a narrow screen it wraps under Privacy policy. */
.sweep-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5em;
}

.sweep-footer__cookies {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.sweep-footer__address-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Only the words open the map, not the empty column beside them. */
.sweep-footer__address-block > .sweep-footer__link {
  align-self: flex-start;
}

.sweep-footer__label {
  margin: 0;
  color: var(--sweep-purple);
  font-size: 1rem;
  line-height: 1.4;
}

.sweep-footer__contact,
.sweep-footer__social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sweep-footer__email {
  color: var(--sweep-green-bright);
  font-size: 1.25rem;
  line-height: 1.5;
  text-decoration: none;
}

.sweep-footer__email:hover,
.sweep-footer__email:focus-visible {
  color: var(--sweep-purple);
}

.sweep-footer__social-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sweep-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.875rem;
  color: var(--sweep-green-bright);
  font-size: 1.25rem;
  line-height: 1.5;
  text-decoration: none;
}

.sweep-footer__link:hover,
.sweep-footer__link:focus-visible {
  color: var(--sweep-purple);
}

.sweep-footer__link-icon {
  display: block;
  flex-shrink: 0;
  width: 0.885rem;
  height: 0.885rem;
  overflow: hidden;
  color: var(--sweep-purple);
  /* Clipping stops the twin arrows leaking a 1px line in mobile Safari. */
  clip-path: inset(0 round 0);
  contain: paint;
  line-height: 0;
}

.sweep-footer__link-icon-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sweep-footer__link-icon-svg {
  display: block;
  flex-shrink: 0;
  width: 0.885rem;
  height: 0.885rem;
}

.sweep-footer__link:hover .sweep-footer__link-icon-inner,
.sweep-footer__link:focus-visible .sweep-footer__link-icon-inner {
  transform: translate3d(0, -50%, 0);
}

.sweep-footer__marquee {
  position: relative;
  height: 11.25rem;
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sweep-footer__marquee-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.sweep-footer__marquee-track {
  --sweep-marquee-duration: 240s;
  display: flex;
  align-items: center;
  width: max-content;
}

.sweep-footer__marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.sweep-footer__marquee-logo {
  display: block;
  width: 88.875rem;
  max-width: none;
  height: 24.9375rem;
  flex-shrink: 0;
}

.sweep-footer__marquee-viewport.is-conveyor {
  overflow: hidden;
  /* A finger drags the strip sideways; vertical swipes and pinch-zoom stay the browser's. */
  touch-action: pan-y pinch-zoom;
}

.is-conveyor > .sweep-footer__marquee-track {
  display: grid;
  width: auto;
}

.is-conveyor > .sweep-footer__marquee-track > .sweep-footer__marquee-group {
  display: grid;
  grid-area: 1 / 1;
  padding: 0;
}

.is-conveyor .sweep-footer__marquee-logo {
  grid-area: 1 / 1;
  justify-self: start;
  will-change: transform;
}

@media (max-width: 960px) {
  /* The text lines up with the logo's edge, like everything else. */
  .sweep-footer__grid {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 2.5rem;
    padding-inline: 0;
  }

  .sweep-footer__col--intro {
    width: 100%;
  }

  .sweep-footer__col--contact {
    align-self: flex-end;
    width: auto;
    max-width: 7.1875rem;
  }

  .sweep-footer__col {
    gap: 1.5rem;
  }

  .sweep-footer__cta,
  .sweep-footer__address {
    font-size: 1rem;
    line-height: 1.5;
  }

  .sweep-footer__label {
    font-size: 1rem;
  }

  .sweep-footer__email,
  .sweep-footer__link {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  /* The wordmark fades into the footer's maroon at the page's bottom edge, so it runs on into
  Safari's strip below the page (the same maroon, header.js). */
  .sweep-footer__marquee {
    height: auto;
    padding-top: 0.5rem;
    overflow: hidden;
  }

  .sweep-footer__marquee::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(var(--sweep-wordmark-h, 6.75rem) / 3);
    background: linear-gradient(
        to bottom,
        rgb(50 0 1 / 0) 0%,
        rgb(50 0 1 / 0.33) 30%,
        rgb(50 0 1 / 0.72) 60%,
        rgb(50 0 1 / 0.94) 85%,
        var(--sweep-black) 100%
      );
    pointer-events: none;
  }

  /* As big as on desktop, cut like it: the wordmark is 40% of the screen's width tall, its top
  two thirds show, the fade takes the middle third, the bottom third is cut. */
  .sweep-footer {
    --sweep-wordmark-h: min(40vw, 16rem);
  }

  .sweep-footer__marquee-viewport {
    height: calc(var(--sweep-wordmark-h) * 2 / 3);
    overflow: hidden;
  }

  .sweep-footer__marquee-track {
    align-items: flex-start;
  }

  .sweep-footer__marquee-group {
    gap: 1.25rem;
    padding-right: 1.25rem;
  }

  .sweep-footer__marquee-logo {
    width: auto;
    height: var(--sweep-wordmark-h, 6.5rem);
    max-width: none;
    aspect-ratio: 427.616 / 119.985;
  }

  .sweep-footer__link-icon {
    /* More protection against the twin-arrow 1px line in mobile Safari. */
    transform: translateZ(0);
  }
}

@media (hover: none) {
  /* Touch: no arrow slide (it left a 1px line), and a tapped link doesn't keep its hover colour. */
  .sweep-footer__link-icon-inner {
    transform: none !important;
  }

  .sweep-footer__link-icon-svg + .sweep-footer__link-icon-svg {
    display: none;
  }

  .sweep-footer__link:hover:not(:focus-visible),
  .sweep-footer__email:hover:not(:focus-visible) {
    color: var(--sweep-green-bright);
  }
}

@media (min-width: 744px) and (max-width: 960px) and (min-height: 700px) {
  /* The footer wordmark cut clean at the bottom, as on desktop: no fade. */
  .sweep-footer__marquee::after {
    display: none;
  }
}

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

@media (min-width: 441px) and (max-width: 960px) {
  /* Wider than any phone (the largest iPhone is 440px): the desktop measure, so the CTA breaks
  as on desktop. Phones keep their full-width column. */
  .sweep-footer__cta {
    max-width: 19.375rem;
  }
}

@media (max-width: 440px) {
  /* Phones: the browser evens out the lines (no word alone on the last). */
  .sweep-footer__cta {
    text-wrap: pretty;
  }
}

/* ---- Cookie banner (CookieYes) ----------------------------------------------------------------- */
/* CookieYes draws its banner and its choices panel into the page (live build only, tools/gtm.py), so
this stylesheet can give them Sweep's look on the free plan (DECISIONS #73, his pick "A, maroon panel").
Modernist: the footer's maroon, lilac and green, all Neo Geo, one strict grid, flush left, no ornament.
Computers: a panel in the middle of the screen, the page dimmed; the headline holds the left column,
the text and the two equal buttons the right. Phones: a sheet at the bottom. Accept All and Reject All
stay exactly equal (privacy law); "Powered by CookieYes" stays visible. CookieYes writes its colours
onto each element and loads its own rules after ours, hence the !important. Every rule targets
CookieYes's own parts (cky-), nothing else on the page. */
.cky-consent-container {
  inset: 0 !important;
  margin: auto !important;
  width: min(50rem, calc(100vw - 4rem)) !important;
  height: fit-content !important;
  max-height: calc(100vh - 2rem) !important;
  overflow-y: auto !important;
  border-radius: 0 !important;
}

/* The page dims behind the panel. */
.cky-consent-container::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgb(50 0 1 / 0.3);
}

.cky-consent-container .cky-consent-bar {
  background: var(--sweep-black) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--sweep-purple) !important;
  font-family: var(--font-display) !important;
}

.cky-consent-container .cky-notice-content-wrapper {
  padding: 3rem 3rem 1.5rem !important;
}

.cky-consent-container .cky-notice {
  display: grid;
  grid-template-columns: 15rem 1fr;
  column-gap: 3rem;
  align-items: start;
}

.cky-consent-container .cky-title,
.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-btn-wrapper {
  padding: 0 !important;
}

/* The headline in the site's own voice: bold lowercase, like "predictable growth". */
.cky-consent-container .cky-title {
  margin: 0 !important;
  color: var(--sweep-green-bright) !important;
  font: 700 2.25rem/1 var(--font-display) !important;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-des p {
  color: var(--sweep-purple) !important;
  font: 400 1rem/1.5 var(--font-display) !important;
}

.cky-consent-container .cky-notice-des a.cky-policy {
  color: var(--sweep-green-bright) !important;
  font: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

/* Reject All and Accept All side by side, the same size; Customise a quiet word under them. */
.cky-consent-container .cky-notice-btn-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  margin-top: 2rem !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn {
  width: 100% !important;
}

.cky-consent-container .cky-btn,
.cky-modal .cky-btn {
  height: 3rem;
  margin: 0 !important;
  padding: 0 1.25rem !important;
  border-radius: 999px !important;
  font: 500 1rem/1 var(--font-display) !important;
  filter: none !important;
}

.cky-consent-container .cky-btn-reject,
.cky-consent-container .cky-btn-accept,
.cky-modal .cky-btn-reject,
.cky-modal .cky-btn-accept {
  border: 0 !important;
  background: var(--sweep-green-bright) !important;
  color: var(--sweep-black) !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject {
  order: 1 !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept {
  order: 2 !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize {
  order: 3 !important;
  grid-column: 1 / -1 !important;
  justify-self: start !important;
  width: auto !important;
  height: auto;
  padding: 0.25rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--sweep-purple) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

/* Hover colours only where there is a mouse: a phone keeps the hover colour after a tap. */
@media (hover: hover) {
  .cky-consent-container .cky-btn-reject:hover,
  .cky-consent-container .cky-btn-accept:hover,
  .cky-modal .cky-btn-reject:hover,
  .cky-modal .cky-btn-accept:hover {
    background: var(--sweep-purple) !important;
  }

  .cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize:hover {
    color: var(--sweep-green-bright) !important;
  }

  .cky-modal .cky-prefrence-btn-wrapper .cky-btn-preferences:hover {
    border-color: var(--sweep-green-bright) !important;
    color: var(--sweep-green-bright) !important;
  }
}

.cky-consent-container .cky-btn:focus-visible,
.cky-modal .cky-btn:focus-visible,
.cky-modal .cky-btn-close:focus-visible,
.cky-modal .cky-accordion-btn:focus-visible,
.cky-modal .cky-switch input:focus-visible,
.cky-modal .cky-show-desc-btn:focus-visible {
  outline: 2px solid var(--sweep-purple) !important;
  outline-offset: 3px;
}

.cky-consent-container .cky-consent-bar > div:last-child {
  padding: 0 3rem 1.5rem !important;
}

.cky-consent-container [data-cky-tag="powered-by"],
.cky-modal [data-cky-tag="detail-powered-by"] {
  justify-content: flex-end !important;
  color: rgb(212 149 254 / 0.6) !important;
}

.cky-consent-container [data-cky-tag="powered-by"] > div,
.cky-modal [data-cky-tag="detail-powered-by"] {
  margin: 0 !important;
  font-family: var(--font-display) !important;
}

/* The choices panel ("Customise"): the same panel, wider for the list of groups. */
.cky-overlay {
  background: var(--sweep-black) !important;
  opacity: 0.3 !important;
}

.cky-modal,
.cky-modal .cky-preference-center {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cky-modal .cky-preference-center {
  border: 0 !important;
  background: var(--sweep-black) !important;
  color: var(--sweep-purple) !important;
  font-family: var(--font-display) !important;
}

.cky-modal .cky-preference-header {
  padding: 2.5rem 3rem 1.5rem !important;
  border-bottom: 1px solid rgb(212 149 254 / 0.25) !important;
}

.cky-modal .cky-preference-title {
  color: var(--sweep-green-bright) !important;
  font: 700 2rem/1 var(--font-display) !important;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

/* CookieYes's close cross is a grey picture: made lilac-white for the maroon. */
.cky-modal .cky-btn-close img {
  filter: invert(1) brightness(1.4);
}

.cky-modal .cky-preference-body-wrapper {
  padding: 0 3rem !important;
}

.cky-modal .cky-preference-content-wrapper,
.cky-modal .cky-preference-content-wrapper p,
.cky-modal .cky-accordion-header-des,
.cky-modal .cky-accordion-header-des p,
.cky-modal .cky-empty-cookies-text {
  color: var(--sweep-purple) !important;
  font: 400 1rem/1.5 var(--font-display) !important;
}

.cky-modal .cky-preference-content-wrapper {
  padding: 1.5rem 0 !important;
  border: 0 !important;
}

.cky-modal .cky-show-desc-btn {
  color: var(--sweep-green-bright) !important;
  font: inherit !important;
  text-decoration: underline !important;
}

.cky-modal .cky-horizontal-separator,
.cky-modal .cky-accordion,
.cky-modal .cky-prefrence-btn-wrapper {
  border-color: rgb(212 149 254 / 0.25) !important;
}

.cky-modal .cky-accordion-btn {
  color: var(--sweep-green-bright) !important;
  font: 700 1.125rem/1.3 var(--font-display) !important;
}

.cky-modal .cky-always-active {
  color: var(--sweep-green-bright) !important;
  font: 500 0.875rem/1.3 var(--font-display) !important;
}

.cky-modal .cky-chevron-right {
  border-color: var(--sweep-purple) !important;
}

.cky-modal .cky-accordion-chevron .cky-chevron-right::before {
  border-color: var(--sweep-purple) !important;
}

/* The switches: off = a dim lilac track with a lilac knob; on = the site's green with a maroon knob. */
.cky-modal .cky-switch input[type="checkbox"] {
  background: rgb(212 149 254 / 0.25) !important;
}

.cky-modal .cky-switch input[type="checkbox"]::before {
  background: var(--sweep-purple) !important;
}

.cky-modal .cky-switch input[type="checkbox"]:checked {
  background: var(--sweep-green-bright) !important;
}

.cky-modal .cky-switch input[type="checkbox"]:checked::before {
  background: var(--sweep-black) !important;
}

/* Each group's list of cookies. */
.cky-modal .cky-audit-table {
  border-color: rgb(212 149 254 / 0.25) !important;
  border-radius: 0 !important;
  background: var(--sweep-maroon-900) !important;
  color: var(--sweep-purple) !important;
}

.cky-modal .cky-audit-table *,
.cky-modal .cky-cookie-des-table li div p {
  color: var(--sweep-purple) !important;
  font-family: var(--font-display) !important;
}

.cky-modal .cky-footer-shadow {
  background: linear-gradient(180deg, rgb(50 0 1 / 0) 0%, var(--sweep-black) 100%) !important;
}

.cky-modal .cky-footer-wrapper {
  background: var(--sweep-black) !important;
}

/* Reject All, Save My Preferences, Accept All: one row of three, the same size. */
.cky-modal .cky-prefrence-btn-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.75rem !important;
  padding: 1.5rem 3rem 1rem !important;
}

.cky-modal .cky-prefrence-btn-wrapper .cky-btn {
  width: 100% !important;
}

.cky-modal .cky-prefrence-btn-wrapper .cky-btn-reject {
  order: 1 !important;
}

.cky-modal .cky-prefrence-btn-wrapper .cky-btn-accept {
  order: 2 !important;
}

.cky-modal .cky-prefrence-btn-wrapper .cky-btn-preferences {
  order: 3 !important;
  border: 1px solid var(--sweep-purple) !important;
  background: transparent !important;
  color: var(--sweep-purple) !important;
}

.cky-modal [data-cky-tag="detail-powered-by"] {
  padding: 0 3rem 1.25rem !important;
}

@media (max-width: 760px) {
  .cky-consent-container {
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-height: 85vh !important;
  }

  .cky-consent-container .cky-notice-content-wrapper {
    padding: 2rem 1.25rem 1rem !important;
  }

  .cky-consent-container .cky-notice {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .cky-consent-container .cky-title {
    font-size: 1.75rem !important;
  }

  .cky-consent-container .cky-notice-btn-wrapper {
    margin-top: 1.5rem !important;
  }

  .cky-consent-container .cky-consent-bar > div:last-child {
    padding: 0 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cky-modal .cky-preference-header {
    padding: 1.75rem 1.25rem 1.25rem !important;
  }

  .cky-modal .cky-preference-title {
    font-size: 1.5rem !important;
  }

  .cky-modal .cky-preference-body-wrapper {
    padding: 0 1.25rem !important;
  }

  .cky-modal .cky-prefrence-btn-wrapper {
    grid-template-columns: 1fr 1fr !important;
    padding: 1.25rem 1.25rem 0.75rem !important;
  }

  .cky-modal .cky-prefrence-btn-wrapper .cky-btn-preferences {
    grid-column: 1 / -1 !important;
  }

  .cky-modal [data-cky-tag="detail-powered-by"] {
    padding: 0 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
