/*
 * SlingCX components. Reads only from tokens.css.
 * The design system page renders these classes as they are, so if
 * something looks wrong there it is wrong on the site.
 */

/* ── Base ───────────────────────────────────────────────────── */
/* Crisp type (user's direction, 2026-10-20): grayscale antialiasing on
   macOS, real kerning and ligatures, and no faux bold or italic, so only
   the weights actually loaded (400, 500) ever render. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap; controls give their own :active feedback */
}

/* Phones (mobile pass, 2026-10-24): every link and control answers the
   tap at once (no double-tap-zoom wait), and holding a finger on a control
   never selects its label or pops the link callout. Body text, headings
   and answers stay selectable: only controls opt out. */
a[href],
button,
[role="button"],
[role="tab"],
label,
summary {
  touch-action: manipulation;
}
button,
[role="button"],
[role="tab"],
.sling-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ── Icon ───────────────────────────────────────────────────── */
.sling-icon {
  flex: none;
  width: var(--sling-icon);
  height: var(--sling-icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Text selection ───────────────────────────────────────────
   Highlighted text takes the brand's colours (the client, 2026-11-15,
   after hugoinc.com's yellow highlight), by the same rule as the call to
   action: the ground decides. Bright Cyan behind ink on light grounds
   (10.7:1), coral behind ink on Midnight Blue (7.4:1), so selected text
   always reads. The navy grounds not marked .sling-on-dark are named. */
::selection {
  background: var(--sling-bright-cyan);
  color: var(--sling-ink);
}
.sling-on-dark ::selection,
.wwd1__stage ::selection,
.bw__card--better ::selection,
.why__us ::selection {
  background: var(--sling-coral);
  color: var(--sling-ink);
}

/* ── Page transition ──────────────────────────────────────────
   The client's wave between pages (2026-11-15, after deverr.io), in
   design-system/page-transition.js: a Midnight Blue curtain, its leading
   edges the curve of the logo's tail, rises over the page with the
   symbol (the reverse tile) in its middle, and lifts off the next page.
   html.sling-pt-arriving covers a page that is arriving before its first
   paint (set by a small script in the head); a failsafe hides it after 3s
   if the script never runs. Never with reduced motion (the scripts skip
   it), and decided on staging by the Transition review switch. */
.sling-pt {
  --pt-wave: 120px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
}
.sling-pt[data-state="arriving"] {
  pointer-events: none;
}
.sling-pt__curtain {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--pt-wave));
  height: calc(100% + 2 * var(--pt-wave));
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100vh + var(--pt-wave)));
}
.sling-pt__wave {
  display: block;
  flex: none;
  width: 100%;
  height: var(--pt-wave);
  fill: var(--sling-midnight-blue);
}
.sling-pt__fill {
  flex: 1;
  background: var(--sling-midnight-blue);
}
.sling-pt__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
/* html.sling-pt-arriving::after, the cover an arriving page opens under,
   lives inline in the site's head (src/layouts/Base.astro) with the mark
   embedded, so it never waits on this file or on the mark's own file. */
@media (max-width: 767px) {
  .sling-pt {
    --pt-wave: 64px;
  }
}

/* ── Scrollbars ─────────────────────────────────────────────── */
/* Custom scrollbars (user, 2026-10-20): slim, a rounded navy thumb at low
   opacity on a clear track, firmer on hover. Everywhere: the page, menus,
   any scrolling panel. Dark sections (.sling-on-dark) get a light thumb. */
html {
  scrollbar-width: thin;
  scrollbar-color: rgb(11 31 58 / 0.28) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgb(11 31 58 / 0.28) padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgb(11 31 58 / 0.45); }
::-webkit-scrollbar-corner { background: transparent; }
.sling-on-dark { scrollbar-color: rgb(255 255 255 / 0.28) transparent; }
.sling-on-dark ::-webkit-scrollbar-thumb { background-color: rgb(255 255 255 / 0.28); }

/* ── Layout grid ────────────────────────────────────────────── */
/* Every page section sits in .sling-container (the 1440 frame with even
   edges) and lays its blocks out on .sling-grid (4 columns on phones, 8
   from 768, 12 from 1024, --sling-grid-gap between). Blocks start and end
   on column lines (grid-column: 1 / 7 and so on); check with the grid
   ruler (Shift+G or ?grid). Anything that bleeds off the page edge still
   starts on a column line.
   Spacing is gap and padding only, never margin (user, 2026-10-22): the
   container is full width and its padding holds the 1440 frame centred
   (half of whatever is wider than the frame, plus the edge). */
.sling-container {
  --sling-frame-inset: max(0px, (100% - var(--sling-frame)) / 2);
  width: 100%;
  padding-inline:
    calc(var(--sling-frame-inset) + max(var(--sling-edge-start), env(safe-area-inset-left)))
    calc(var(--sling-frame-inset) + max(var(--sling-edge-end), env(safe-area-inset-right)));
}

/* A section on the narrower content frame: everything below the hero.
   .sling-container reads --sling-frame, so a section sets it for its own
   containers; the grid ruler follows the frame under the screen's middle. */
.sling-frame-content {
  --sling-frame: var(--sling-frame-content);
}

.sling-grid {
  display: grid;
  grid-template-columns: repeat(var(--sling-grid-columns), minmax(0, 1fr));
  column-gap: var(--sling-grid-gap);
}

/* ── Hero copy ──────────────────────────────────────────────── */
/* The hero headline and its description, wrapped together (user,
   2026-10-20): one max width, one gap, so their edges always align.
   <div class="sling-hero-copy"><h1>…</h1><p>…</p></div>
   Centred heroes add .sling-hero-copy--center. */
.sling-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sling-space-5);
  max-width: var(--sling-hero-measure);
}
.sling-hero-copy > * { margin: 0; max-width: none; }
/* The description has the headline's max width (user, 2026-10-22: "same
   max width as the hero title"), the group's, its lines running out to
   the edge: body text takes no wrapping rule (user, 2026-10-25: "keep it
   for only header"). */
.sling-hero-copy--center { align-items: center; align-self: center; justify-self: center; text-align: center; }
/* Phones: the headline and description take the full width of their
   column, no measure (user, 2026-10-20: "use 100%"). */
@media (max-width: 767px) {
  .sling-hero-copy,
  .sling-hero-copy > p { width: 100%; max-width: 100%; }
  /* The headline larger on phones (user, 2026-10-20: "the h1 is small on
     mobile"): its longest line fills the column (--sling-title-em), from
     1px under the fill (user: "too big, reduce by 1px"), 27 to 47px: 38 at 390. --hero-inset is any
     room the headline keeps inside the column (B and E: 8px off their frame
     lines). */
  .sling-hero-copy.sling-hero-copy > h1 {
    font-size: clamp(27px, calc((100vw - 2 * var(--sling-edge-start) - var(--hero-inset, 0px) - 2px) / var(--sling-title-em) - 1px), 47px);
    line-height: 1.1;
  }
}

/* Title fit (user, 2026-10-20: "I don't want titles out of the line"). A
   left-aligned hero headline starts on a column line, so its longest line
   should end on one too, never in a gutter. From 1024px the headline takes
   the nearest whole number of columns to its scale size (--title-size, set
   beside each font-size) and its type is sized to fill exactly that span,
   within a pixel or two of the scale step. The hero's .sling-container is
   the measuring container, so 100cqw is the grid's width. */
.sling-container:has(.sling-title-fit) { container-type: inline-size; }
@supports (width: round(nearest, 10px, 3px)) and (width: 1cqw) {
  @media (min-width: 1024px) {
    /* Doubled class and the element: wins over a variation's own scoped
       font-size, which stays as the fallback. */
    h1.sling-title-fit.sling-title-fit {
      --fit-step: calc((100cqw - (var(--sling-grid-columns) - 1) * var(--sling-grid-gap)) / var(--sling-grid-columns) + var(--sling-grid-gap));
      /* Never wider than the hero measure, so it always breaks in two lines,
         nor than --title-cols columns where a hero sets a cap. */
      --fit-span: min(
        calc(round(nearest, var(--title-size) * var(--sling-title-em) + var(--sling-grid-gap), var(--fit-step)) - var(--sling-grid-gap)),
        calc(round(down, var(--sling-hero-measure) + var(--sling-grid-gap), var(--fit-step)) - var(--sling-grid-gap)),
        calc(var(--title-cols, 12) * var(--fit-step) - var(--sling-grid-gap))
      );
      font-size: calc((var(--fit-span) - 1px) / var(--sling-title-em)); /* 1px short of the line, so rounding never wraps it */
      line-height: 1.07; /* the 4xl leading's ratio, so a fitted size never crowds its lines */
      width: var(--fit-span);
      max-width: none;
    }
    /* The description lines up with the headline (user, 2026-10-20: "fix
       the alignment"): the copy group is as wide as the headline, and the
       description takes that width without widening it. */
    .sling-hero-copy:has(> h1.sling-title-fit) {
      width: fit-content;
    }
    .sling-hero-copy:has(> h1.sling-title-fit) > p {
      width: 0;
      min-width: 100%;
    }
  }
}

/* ── Buttons ────────────────────────────────────────────────── */
/* One button system for the whole site: one size, square-cornered (8px,
   --sling-button-radius, client 2026-10-22), label only (user, 2026-10-20:
   "consistent buttons"; "no arrow, they feel old"). Primary is solid
   Midnight Blue; secondary white with a hairline edge; accent Bright Cyan
   with ink text, the homepage's Book a Call (user, 2026-10-20: "use the
   brand colour for the CTA"). Title Case labels, no icons. Pages never
   restyle buttons locally. On dark grounds, wrap the section in
   .sling-on-dark and the same buttons recolour themselves (below). */
.sling-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sling-space-2);
  height: var(--sling-button-height);
  padding: 0 var(--sling-button-pad);
  border: 0;
  border-radius: var(--sling-button-radius);
  font-family: var(--sling-font-body);
  font-size: var(--sling-text-sm);
  font-weight: var(--sling-weight-medium);
  line-height: 1;
  letter-spacing: var(--sling-button-track);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-quick) var(--ease-out),
    box-shadow var(--duration-quick) var(--ease-out),
    color var(--duration-quick) var(--ease-out),
    transform var(--duration-press) var(--ease-out);
}

/* The large size, for a hero's one call to action only (user,
   2026-10-22: the 44px hero button felt "too small and isolated"):
   56px high, an 18px label. */
.sling-btn--lg {
  height: var(--sling-button-height-lg);
  padding: 0 var(--sling-button-pad-lg);
  font-size: var(--sling-text-md);
}

.sling-btn:active { transform: scale(var(--scale-press)); }

.sling-btn:focus-visible {
  outline: var(--sling-focus-width) solid var(--sling-focus);
  outline-offset: var(--sling-focus-offset);
}

/* Label only: older markup may still carry a chevron. */
.sling-btn .sling-icon { display: none; }

/* White on Midnight Blue 16.5:1; on ink, the hover, 19.3:1. */
.sling-btn--primary {
  background: var(--sling-midnight-blue);
  color: var(--sling-white);
}

/* Ink on Bright Cyan 10.7:1; on the lighter cyan, the hover, 12.05:1. */
.sling-btn--accent {
  background: var(--sling-bright-cyan);
  color: var(--sling-ink);
}

/* Coral (user, 2026-10-26: How We Work's Start with a Conversation): ink
   on #FF7A59, 7.4:1; a lighter coral on hover. Not a brand colour; see
   --sling-coral in tokens.css.
   The ground decides the call to action's colour (user, 2026-10-28):
   on Midnight Blue it is coral (.sling-btn--coral); on light grounds it is
   the Bright Cyan accent (.sling-btn--accent). Never coral on a light
   ground, never the cyan accent on Midnight Blue. */
.sling-btn--coral {
  background: var(--sling-coral);
  color: var(--sling-ink);
}

/* --outline is the old name, kept so older markup still renders. */
.sling-btn--secondary,
.sling-btn--outline {
  background: var(--sling-white);
  box-shadow: inset 0 0 0 1px var(--sling-hairline), 0 1px 2px rgb(11 31 58 / 0.06);
  color: var(--sling-ink);
}

/* On dark grounds (any Midnight Blue or black section marked .sling-on-dark):
   primary becomes Bright Cyan with ink text (10.7:1); secondary is
   frosted white with white text. Focus turns white. */
.sling-on-dark .sling-btn--primary {
  background: var(--sling-bright-cyan);
  color: var(--sling-ink);
}

.sling-on-dark .sling-btn--secondary {
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  color: var(--sling-white);
}
/* Outline on dark grounds (user, 2026-10-26: "use outline CTA button",
   How We Work on Midnight Blue): no fill, a white 1px edge, white text;
   a faint white fill on hover. On light grounds --outline stays the
   secondary's old name. */
.sling-on-dark .sling-btn--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--sling-white);
  color: var(--sling-white);
}

.sling-on-dark .sling-btn:focus-visible { outline-color: var(--sling-white); }

@media (hover: hover) and (pointer: fine) {
  .sling-btn--primary:hover { background: var(--sling-ink); }
  .sling-btn--accent:hover { background: var(--sling-action-hover); }
  .sling-btn--coral:hover { background: var(--sling-coral-hover); }
  .sling-btn--secondary:hover,
  .sling-btn--outline:hover { box-shadow: inset 0 0 0 1px rgb(11 31 58 / 0.28), 0 1px 2px rgb(11 31 58 / 0.08); }
  .sling-on-dark .sling-btn--primary:hover { background: var(--sling-action-hover); }
  .sling-on-dark .sling-btn--secondary:hover { background: rgb(255 255 255 / 0.16); }
  .sling-on-dark .sling-btn--outline:hover { background: rgb(255 255 255 / 0.08); }
}

/* ── Forms ────────────────────────────────────────────────────
   One set of form controls for the site (2026-11-16, first used by the
   CX Staffing Planner; user: "follow design system", "use custom
   dropdown", "fix sliders"). A field is a label over its control, an
   optional hint under it. Controls are 48 high (16px text, so phones
   never zoom), white with a firm hairline edge; on focus the edge turns
   Midnight Blue with a soft halo round it, never a second ring. The
   behaviour (the dropdown, the slider's fill) is design-system/forms.js. */
.sling-field {
  display: flex;
  flex-direction: column;
  gap: var(--sling-space-2);
  min-width: 0;
}
.sling-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sling-space-4);
}
.sling-field__label {
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
}
.sling-field__value {
  font-family: var(--sling-font-heading);
  font-weight: var(--sling-heading-weight);
  font-size: var(--sling-text-xl);
  line-height: var(--sling-text-xl-leading);
  letter-spacing: var(--sling-track-heading);
  color: var(--sling-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sling-field__hint {
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text-subtle);
}

/* Input: a text or number field, its unit inside on the right. */
.sling-input {
  display: flex;
  align-items: center;
  min-height: var(--sling-field-height);
  border-radius: var(--sling-button-radius);
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 1px var(--sling-field-edge);
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.sling-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--sling-field-height);
  padding: 0 var(--sling-space-4);
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: var(--sling-text-sm);
  line-height: var(--sling-text-sm-leading);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.sling-input input::-webkit-inner-spin-button,
.sling-input input::-webkit-outer-spin-button {
  display: none;
}
.sling-input__unit {
  flex: none;
  padding-right: var(--sling-space-4);
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  color: var(--sling-text-subtle);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .sling-input:hover,
  .sling-select__button:hover {
    box-shadow: inset 0 0 0 1px var(--sling-field-edge-hover);
  }
}
.sling-input:focus-within,
.sling-select__button:focus-visible,
.sling-select__button[aria-expanded="true"] {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--sling-midnight-blue), 0 0 0 4px var(--sling-field-halo);
}
.sling-input:has(input:invalid) {
  box-shadow: inset 0 0 0 1.5px var(--sling-danger), 0 0 0 4px rgb(180 35 42 / 0.10);
}

/* Dropdown: a field-like button, its value and a chevron that turns over,
   over a white list that opens beneath it (the nav dropdown's surface: a
   hairline edge, 12px corners, a soft shadow). The option in view is
   tinted; the chosen one carries a tick. */
.sling-select {
  position: relative;
  min-width: 0;
}
.sling-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sling-space-3);
  width: 100%;
  min-height: var(--sling-field-height);
  padding: 0 var(--sling-space-3) 0 var(--sling-space-4);
  border: 0;
  border-radius: var(--sling-button-radius);
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 1px var(--sling-field-edge);
  font: inherit;
  font-size: var(--sling-text-sm);
  line-height: var(--sling-text-sm-leading);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.sling-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sling-select__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--sling-text-subtle);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.sling-select__button[aria-expanded="true"] .sling-select__chevron {
  transform: rotate(180deg);
}
.sling-select__list {
  position: absolute;
  top: calc(100% + var(--sling-space-2));
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: var(--sling-space-1);
  list-style: none;
  border-radius: var(--sling-radius-card);
  background: var(--sling-surface);
  box-shadow:
    inset 0 0 0 1px var(--sling-hairline),
    0 2px 6px rgb(11 31 58 / 0.06),
    0 16px 40px rgb(11 31 58 / 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transform-origin: top center;
  transition:
    opacity 150ms var(--ease-smooth-out),
    transform 150ms var(--ease-smooth-out),
    visibility 0s linear 150ms;
}
.sling-select[data-open] .sling-select__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-duration: var(--duration-fast), var(--duration-fast), 0s;
  transition-delay: 0s;
}
.sling-select__list:focus {
  outline: none;
}
.sling-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sling-space-3);
  min-height: 40px;
  padding: 0 var(--sling-space-3);
  border-radius: var(--sling-radius-sm);
  font-size: var(--sling-text-sm);
  line-height: var(--sling-text-sm-leading);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
  cursor: pointer;
  user-select: none;
}
.sling-select__option[data-active] {
  background: var(--sling-navy-blue-50);
}
.sling-select__option[aria-selected="true"] {
  font-weight: var(--sling-weight-medium);
}
.sling-select__check {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--sling-midnight-blue);
  opacity: 0;
}
.sling-select__option[aria-selected="true"] .sling-select__check {
  opacity: 1;
}

/* Slider: a slim track filled Midnight Blue up to a white thumb ringed in
   navy (forms.js keeps --fill at the value). The track is the thumb's
   height with the 6px band drawn through its middle, so the thumb sits
   centred without a margin. */
.sling-range {
  --fill: 50%;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.sling-range::-webkit-slider-runnable-track {
  height: 24px;
  background:
    linear-gradient(var(--sling-midnight-blue), var(--sling-midnight-blue)) 0 50% / var(--fill) 6px no-repeat,
    linear-gradient(var(--sling-navy-blue-50), var(--sling-navy-blue-50)) 0 50% / 100% 6px no-repeat;
}
.sling-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 2px var(--sling-midnight-blue), 0 1px 4px rgb(11 31 58 / 0.24);
  transition: transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out);
  appearance: none;
  -webkit-appearance: none;
}
.sling-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--sling-navy-blue-50);
}
.sling-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--sling-midnight-blue);
}
.sling-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 2px var(--sling-midnight-blue), 0 1px 4px rgb(11 31 58 / 0.24);
}
/* Touch screens: a 44 tall target round the same 6px line and 24 thumb
   (the responsive sweep, 2026-11-16: the slider was 24 tall on phones). */
@media (pointer: coarse) {
  .sling-range,
  .sling-range::-webkit-slider-runnable-track {
    height: 44px;
  }
  /* WebKit seats the thumb at the track's top; 10 down centres it on the
     line (translate, so the thumb's own transform is untouched). */
  .sling-range::-webkit-slider-thumb {
    translate: 0 10px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .sling-range:hover::-webkit-slider-thumb {
    transform: scale(1.08);
  }
}
.sling-range:focus {
  outline: none;
}
.sling-range:focus-visible::-webkit-slider-thumb {
  box-shadow: inset 0 0 0 2px var(--sling-midnight-blue), 0 0 0 6px var(--sling-field-halo);
}
.sling-range:focus-visible::-moz-range-thumb {
  box-shadow: inset 0 0 0 2px var(--sling-midnight-blue), 0 0 0 6px var(--sling-field-halo);
}

/* Chips: small choices (presets, channels). At rest white with the
   hairline; chosen, the navy tint with a Midnight Blue edge (no tick;
   user, 2026-11-16). A radio or checkbox sits over
   its chip, invisible, so the chip is the control. */
.sling-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sling-space-2);
}
.sling-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
/* Touch screens: 44 tall, a full target (the responsive sweep,
   2026-11-16). */
@media (pointer: coarse) {
  .sling-chip { min-height: 44px; }
}
.sling-chip {
  padding: 0 var(--sling-space-4);
  border: 0;
  border-radius: var(--sling-button-radius);
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 1px var(--sling-hairline);
  font: inherit;
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.sling-choice {
  position: relative;
  display: inline-flex;
}
.sling-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .sling-chip:hover,
  .sling-choice:hover .sling-chip {
    background: var(--sling-navy-blue-50);
  }
}
.sling-chip[aria-pressed="true"],
.sling-chip[aria-selected="true"],
.sling-choice input:checked + .sling-chip {
  background: var(--sling-navy-blue-50);
  box-shadow: inset 0 0 0 1.5px var(--sling-midnight-blue);
}
.sling-chip:focus-visible,
.sling-choice input:focus-visible + .sling-chip {
  outline: var(--sling-focus-width) solid var(--sling-focus);
  outline-offset: var(--sling-focus-offset);
}

/* Disclosure: a details whose summary is a full-width row, its label
   (14 Medium, ink) and the dropdown's 16px chevron, which turns over when
   open; the content follows under it. Ruled above by a hairline. */
.sling-disclosure {
  border-top: 1px solid var(--sling-hairline);
}
.sling-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sling-space-3);
  min-height: 48px;
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text);
  list-style: none;
  cursor: pointer;
}
.sling-disclosure > summary::-webkit-details-marker {
  display: none;
}
.sling-disclosure__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--sling-text-subtle);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.sling-disclosure[open] .sling-disclosure__chevron {
  transform: rotate(180deg);
}
.sling-disclosure > summary:focus-visible {
  outline: var(--sling-focus-width) solid var(--sling-focus);
  outline-offset: var(--sling-focus-offset);
}
.sling-disclosure__body {
  display: flex;
  flex-direction: column;
  gap: var(--sling-space-4);
  padding-bottom: var(--sling-space-5);
}

/* Segmented control: one choice of a few (radios), in one white tray;
   the chosen one Midnight Blue with white text. */
.sling-segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--sling-space-1);
  padding: var(--sling-space-1);
  margin: 0;
  border: 0;
  border-radius: var(--sling-radius-card);
  background: var(--sling-surface);
  box-shadow: inset 0 0 0 1px var(--sling-hairline);
}
.sling-segmented label {
  position: relative;
  display: grid;
}
.sling-segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sling-segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 var(--sling-space-4);
  border-radius: var(--sling-radius-sm);
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text-subtle);
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .sling-segmented label:hover span {
    color: var(--sling-text);
  }
}
.sling-segmented input:checked + span {
  background: var(--sling-midnight-blue);
  color: var(--sling-white);
}
.sling-segmented input:focus-visible + span {
  outline: var(--sling-focus-width) solid var(--sling-focus);
  outline-offset: var(--sling-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .sling-input,
  .sling-select__button,
  .sling-select__chevron,
  .sling-select__list,
  .sling-chip,
  .sling-segmented span,
  .sling-disclosure__chevron,
  .sling-range::-webkit-slider-thumb {
    transition: none;
  }
  .sling-select__list {
    transform: none;
  }
}

/* ── Scroll reveal ──────────────────────────────────────────── */
/* Items rise into place once as they come into view (user, 2026-10-24:
   "add life to the website", then "motion is laggy", then "make sure all
   motion has time to be seen": each item waits until it is a tenth of the
   screen in, then rises 24px over 600ms, so the motion plays where it is
   seen rather than finishing below the fold);
   design-system/reveal.js tags them and sets each one's --reveal-delay
   (a short stagger for items entering together). Hidden only once the
   script has run (html.sling-reveal-ready), so nothing is lost without it.
   An item may set --reveal-from for a different start (the better way card
   rises further). The transition is dropped once the item has settled
   (data-reveal-done), so its own hover and state transitions are
   untouched. */
html.sling-reveal-ready [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: var(--reveal-from, translateY(var(--reveal-distance)));
}
[data-reveal]:not([data-reveal-done]) {
  transition:
    opacity var(--reveal-duration) var(--ease-smooth-out),
    transform var(--reveal-duration) var(--ease-smooth-out);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.sling-reveal-ready [data-reveal]:not([data-revealed]) {
    transform: none;
  }
  [data-reveal]:not([data-reveal-done]) {
    transition: opacity var(--duration-fast) linear;
    transition-delay: 0ms;
  }
}

/* ── Button motion ──────────────────────────────────────────── */
/* The label roll (button-motion.js builds the markup): on hover each letter
   rolls up and a fresh copy rolls in from below, 200ms, 12ms apart; the
   button lifts 1px and gives to 97% when pressed. Only transform moves.
   Hover only where a pointer can hover; nothing moves with reduced motion. */
.sling-roll__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The letters roll inside the line's own box; the clip reaches 0.12em
   above and below it so no descender or accent is cut. */
.sling-roll__track {
  display: inline-grid;
  clip-path: inset(-0.12em 0);
}
.sling-roll__row { grid-area: 1 / 1; display: inline-flex; }
.sling-roll__ch {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
  transition-delay: calc(var(--i) * 12ms);
}
.sling-roll__row + .sling-roll__row .sling-roll__ch { transform: translateY(110%); }
.sling-roll {
  transition:
    background-color var(--duration-quick) var(--ease-out),
    box-shadow var(--duration-quick) var(--ease-out),
    color var(--duration-quick) var(--ease-out),
    transform var(--duration-fast) var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .sling-roll:hover .sling-roll__row:first-child .sling-roll__ch,
  .sling-roll:focus-visible .sling-roll__row:first-child .sling-roll__ch { transform: translateY(-110%); }
  .sling-roll:hover .sling-roll__row + .sling-roll__row .sling-roll__ch,
  .sling-roll:focus-visible .sling-roll__row + .sling-roll__row .sling-roll__ch { transform: translateY(0); }
  .sling-roll:hover { transform: translateY(-1px); }
}
.sling-roll:active { transform: translateY(0) scale(var(--scale-press)); transition-duration: var(--duration-press); }
@media (prefers-reduced-motion: reduce) {
  .sling-roll, .sling-roll__ch { transition: none; }
  .sling-roll:hover, .sling-roll:active { transform: none; }
  .sling-roll .sling-roll__row:first-child .sling-roll__ch { transform: none !important; }
  .sling-roll .sling-roll__row + .sling-roll__row { visibility: hidden; }
}

/* ── Navigation ─────────────────────────────────────────────── */
/* Logo left, links centred on the bar, one action right. The middle
   column is auto and the outer two share what is left, so the links
   stay on the bar's centre whatever the logo and button widths. */
.sling-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--sling-nav-height);
  padding-inline: max(var(--sling-edge-start), env(safe-area-inset-left)) max(var(--sling-edge-end), env(safe-area-inset-right));
  background: var(--sling-band);
  font-family: var(--sling-font-body);
}

.sling-nav__logo { display: inline-flex; justify-self: start; }
.sling-nav__logo img { display: block; height: var(--sling-logo-height); width: auto; }
.sling-nav__logo:focus-visible { outline: var(--sling-focus-width) solid var(--sling-focus); outline-offset: var(--sling-focus-offset); }

.sling-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sling-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sling-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sling-space-1);
  height: var(--sling-nav-link-height);
  padding: 0 var(--sling-nav-link-pad);
  border: 0;
  border-radius: var(--sling-radius-sm);
  background: transparent;
  font: inherit;
  font-size: var(--sling-nav-size);
  font-weight: var(--sling-nav-weight);
  line-height: var(--sling-nav-leading);
  letter-spacing: var(--sling-nav-track);
  color: var(--sling-text);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-quick) var(--ease-out);
}

.sling-nav__link .sling-icon {
  width: var(--sling-icon-sm);
  height: var(--sling-icon-sm);
  transition: transform var(--duration-quick) var(--ease-smooth-out);
}

.sling-nav__link[aria-expanded="true"] .sling-icon { transform: rotate(180deg); }
.sling-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Offset 0: the links sit only 4px apart. */
.sling-nav__link:focus-visible { outline: var(--sling-focus-width) solid var(--sling-focus); outline-offset: 0; }

@media (hover: hover) and (pointer: fine) {
  .sling-nav__link:hover { background: var(--sling-hover-fill); }
}

/* 44px targets on touch screens; tablets still get the links. */
@media (pointer: coarse) {
  .sling-nav__link { height: var(--sling-button-height-sm); }
}

.sling-nav__action { justify-self: end; }

/* Below 960px the links do not fit. The mobile header is not designed
   yet, so for now they hide and only the logo and Book a Call stay. */
@media (max-width: 959px) {
  .sling-nav {
    grid-template-columns: 1fr auto;
    padding-inline: max(var(--sling-space-5), env(safe-area-inset-left)) max(var(--sling-space-4), env(safe-area-inset-right));
  }
  .sling-nav__links { display: none; }
}

/* ── Toast ──────────────────────────────────────────────────── */
/* The hero's illustrations of the work (user, 2026-10-20: "a snippet card
   like a toast"), after Sonner and iOS notifications: a white card of one
   fixed width, one row, a 32px visual (an icon in a soft tinted square, or
   an avatar stack), then a title and a short description. Never a control:
   no arrows, chevrons, "View all" or fake buttons, no hover. They sit
   together in a .sling-toast-stack, a <figure> whose caption says what the
   toasts say; the toasts themselves are aria-hidden. */
.sling-toast-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sling-space-2);
  margin: 0;
}

.sling-toast-stack__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sling-toast-stack__list { display: contents; }

.sling-toast {
  --sling-toast-w: 320px;      /* [derived] one width for every toast (user, 2026-10-20) */
  --sling-toast-pad-y: var(--sling-space-3); /* [derived] 12, on the spacing scale (was 10; audit, 2026-10-24) */
  --sling-toast-pad-x: var(--sling-space-3);
  --sling-toast-visual: 32px;  /* [derived] the leading icon tile or faces */
  --sling-toast-edge: rgb(11 31 58 / 0.08);  /* [derived] navy at 8% */
  --sling-toast-shadow: 0 1px 2px rgb(11 31 58 / 0.06), 0 8px 24px rgb(11 31 58 / 0.10); /* [derived] contact plus one soft lift */
  --sling-toast-success-bg: #E3F2EA; /* [derived] pale green; --sling-success on it is 5.2:1 */
  display: flex;
  align-items: center;
  gap: var(--sling-space-3);
  box-sizing: border-box;
  width: var(--sling-toast-w);
  max-width: 100%;
  padding: var(--sling-toast-pad-y) var(--sling-toast-pad-x);
  border: 1px solid var(--sling-toast-edge);
  border-radius: var(--sling-radius-card);
  background: var(--sling-surface);
  box-shadow: var(--sling-toast-shadow);
  font-family: var(--sling-font-body);
  color: var(--sling-text);
  text-align: left;
  pointer-events: none;
  user-select: none;
}

/* The leading icon: 20px, 1.5 stroke (lucide), in a 32px tinted square.
   Info is Midnight Blue on the tint (14.2:1); success is the success
   green on pale green (5.2:1). */
.sling-toast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sling-toast-visual);
  height: var(--sling-toast-visual);
  border-radius: var(--sling-radius-sm);
  background: var(--sling-tint);
  color: var(--sling-midnight-blue);
}
.sling-toast__icon .sling-icon { width: 20px; height: 20px; }
.sling-toast[data-tone="success"] .sling-toast__icon { background: var(--sling-toast-success-bg); color: var(--sling-success); }

/* Faces in place of the icon: the stack at the toast's 32px. */
.sling-toast .sling-avatars { --sling-avatars-size: var(--sling-toast-visual); --sling-avatars-overlap: var(--sling-space-2); }
.sling-toast .sling-avatar { width: var(--sling-toast-visual); height: var(--sling-toast-visual); }

.sling-toast__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sling-toast__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sling-space-2);
  min-width: 0;
}
.sling-toast__time {
  flex: none;
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  color: var(--sling-text-subtle);
  font-variant-numeric: tabular-nums;
}
.sling-toast__title {
  font-size: var(--sling-text-sm);
  line-height: var(--sling-text-sm-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-ink);
  text-wrap: balance;
}
.sling-toast__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  letter-spacing: var(--sling-track-small);
  color: var(--sling-text-subtle);
}

/* A stat toast (user, 2026-10-20: the number floating on the right "is
   bad"): the figure becomes the leading visual, a tinted tile holding the
   number in Gabarito, and replaces the icon, so value and label read as
   one. */
.sling-toast:has(.sling-toast__value) .sling-toast__icon { display: none; }
.sling-toast__value {
  order: -1;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sling-toast-visual);
  height: var(--sling-toast-visual);
  border-radius: var(--sling-radius-sm);
  background: var(--sling-tint);
  font-family: var(--sling-font-heading);
  font-size: var(--sling-text-lg);
  line-height: 1;
  font-weight: var(--sling-weight-medium);
  font-variant-numeric: tabular-nums;
  color: var(--sling-midnight-blue);
}

/* Roomy layout (variation A, after the carousel reference; the name
   "trailing" is historical): a roomier card with the icon on the LEFT in a
   muted tile (user, 2026-10-20: "move the toast icon left"), then the title
   and one line. The icon may come before or after the body in the markup;
   it always sits first.
   <div class="sling-toast" data-layout="trailing">
     <span class="sling-toast__body">…</span>
     <span class="sling-toast__icon"><svg class="sling-icon">…</svg></span>
   </div> */
.sling-toast[data-layout="trailing"] {
  --sling-toast-pad-y: var(--sling-space-3);  /* [derived] tighter (user, 2026-10-20: "reduce the toast paddings") */
  --sling-toast-pad-x: var(--sling-space-3);
  --sling-toast-shadow: 0 1px 2px rgb(11 31 58 / 0.05), 0 12px 32px rgb(11 31 58 / 0.10); /* [derived] softer, wider lift */
  gap: var(--sling-space-3);
  border-radius: 16px;        /* [derived] the reference's card, over the 12px cap on purpose */
}
.sling-toast[data-layout="trailing"] .sling-toast__icon {
  order: -1;                  /* the icon leads, on the left (user, 2026-10-20) */
  width: 40px;                /* [derived] a muted tile behind the icon (user, 2026-10-20) */
  height: 40px;
  border-radius: 10px;
  background: var(--sling-navy-blue-50);
  color: var(--sling-midnight-blue);
}
.sling-toast[data-layout="trailing"] .sling-toast__icon .sling-icon { width: 20px; height: 20px; }

/* Talent toasts (user, 2026-10-20, after a reference; restyled to match
   every other toast: "match our font and style"): the same white card,
   the icon in a muted tile on the left, a 16px medium title, a 14px slate
   line, soft sentence-case chips.
   --profile: verified badge tile, name, role.
   --skills:  briefcase tile, headline, the tools as chips under it.
   --faces:   a row of faces and nothing else. */
.sling-toast--profile,
.sling-toast--skills {
  --sling-toast-pad-y: var(--sling-space-3);  /* tighter (user) */
  --sling-toast-pad-x: var(--sling-space-3);
  width: max-content;
  max-width: 340px;           /* [derived] */
  align-items: flex-start;
  gap: var(--sling-space-3);
  border-radius: 16px;        /* [derived] the same as the roomy toast */
}
.sling-toast--profile { align-items: center; }
.sling-toast__tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;                /* [derived] the roomy toast's tile */
  height: 40px;
  border-radius: 10px;
  background: var(--sling-navy-blue-50);
  color: var(--sling-midnight-blue);
}
.sling-toast__tile .sling-icon { width: 20px; height: 20px; }
.sling-toast__tile.is-success { background: var(--sling-toast-success-bg); color: var(--sling-success); }
.sling-toast__name {
  font-size: var(--sling-text-sm);
  line-height: var(--sling-text-sm-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-ink);
}
.sling-toast__role {
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  color: var(--sling-text-subtle);
}
.sling-toast__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sling-space-2);
  margin: 0;
  padding: var(--sling-space-2) 0 0;
  list-style: none;
}
.sling-toast__chips li {
  padding: var(--sling-space-1) var(--sling-space-2);
  border-radius: var(--sling-radius-pill);
  background: var(--sling-navy-blue-50);  /* filled, no edge (user, 2026-10-20) */
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  color: var(--sling-midnight-blue);
}
.sling-toast--faces {
  width: auto;
  padding: 10px;
  border-radius: 16px;
}
.sling-toast--faces .sling-avatars { --sling-avatars-size: 40px; --sling-avatars-overlap: calc(-1 * var(--sling-space-1)); padding-right: 0; } /* 4px apart, not overlapping */
.sling-toast--faces .sling-avatar { width: 40px; height: 40px; border-width: 0; }

/* Small screens: a narrower toast, smaller faces. */
@media (max-width: 559px) {
  .sling-toast { --sling-toast-w: 280px; --sling-toast-visual: 28px; }
}

/* On load the toasts rise 8px and fade in, 200ms, 80ms apart, once.
   With reduced motion they are simply there. */
@keyframes sling-toast-in {
  from { opacity: 0; transform: translateY(var(--distance-base)); }
}
.sling-toast-stack .sling-toast { animation: sling-toast-in var(--duration-fast) var(--ease-out) both; }
.sling-toast-stack .sling-toast:nth-child(2) { animation-delay: 80ms; }
.sling-toast-stack .sling-toast:nth-child(3) { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  .sling-toast-stack .sling-toast { animation: none; }
}

/* ── Avatar stack ───────────────────────────────────────────── */
/* Faces at --sling-avatar (40), overlapping by 12 with a 2px white ring,
   so each reads as a separate person; the count closes the stack. */
/* Overlap without margins: each face sits in a column narrower than the
   face by the overlap, so the next one covers its edge; the padding
   gives the last face its full width back. */
.sling-avatars {
  --sling-avatars-size: var(--sling-avatar);
  --sling-avatars-overlap: var(--sling-space-3);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(var(--sling-avatars-size) - var(--sling-avatars-overlap));
  flex: none;
  margin: 0;
  padding: 0 var(--sling-avatars-overlap) 0 0;
  list-style: none;
}

.sling-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sling-avatar);
  height: var(--sling-avatar);
  border-radius: 50%;
  border: 2px solid var(--sling-surface);
  background: var(--sling-navy-blue-50);
  overflow: hidden;
  font-size: var(--sling-text-xs);
  line-height: 1;
  font-weight: var(--sling-weight-medium);
  font-variant-numeric: tabular-nums;
  color: var(--sling-ink);
}

.sling-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sling-avatar--more { background: var(--sling-tint); }
.sling-avatar--sm { width: var(--sling-avatar-sm); height: var(--sling-avatar-sm); border-width: 0; }

/* ── Note ───────────────────────────────────────────────────── */
/* The line under the hero buttons (user, 2026-10-20, after a reference):
   a cascade of three faces as overlapping rounded squares, then one
   two-tone sentence: the opening phrase in ink, medium, the rest in slate.
   <p class="sling-note">
     <span class="sling-note__faces" aria-hidden="true"><img …><img …><img …></span>
     <span><strong>Let’s talk</strong> about what’s slowing your team down.</span>
   </p>
   No invented numbers in the opening phrase. */
.sling-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sling-space-3);
  margin: 0;
  font-family: var(--sling-font-body);
  font-size: var(--sling-note-size);
  line-height: var(--sling-note-leading);
  letter-spacing: var(--sling-track-body);
  color: var(--sling-text-subtle);
}


.sling-note strong {
  font-weight: var(--sling-weight-medium);
  color: var(--sling-text);
}

.sling-note__faces {
  /* Overlapping faces, as .sling-avatars: 32px faces in 8px columns. */
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(var(--sling-avatar-sm) - var(--sling-space-5));
  flex: none;
  padding-right: var(--sling-space-5);
}

.sling-note__faces > * {
  max-width: none; /* wider than its column on purpose: the next face covers it */
  width: var(--sling-avatar-sm);
  height: var(--sling-avatar-sm);
  border-radius: var(--sling-radius-sm);
  box-shadow: 0 0 0 2px var(--sling-page), 0 1px 2px rgb(11 31 58 / 0.12);
  object-fit: cover;
  background: var(--sling-tint);
}


/* A deck you can flip through (note-faces.js): the faces fan out a
   little on hover and the stack takes a click, tap or key. */
.sling-note__faces[data-deck] {
  cursor: pointer;
  border-radius: var(--sling-radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sling-note__faces[data-deck] > * {
  transition: transform var(--duration-quick) var(--ease-smooth-out);
}
.sling-note__faces[data-deck]:focus-visible {
  outline: var(--sling-focus-width) solid var(--sling-focus);
  outline-offset: var(--sling-focus-offset);
}
@media (hover: hover) and (pointer: fine) {
  .sling-note__faces[data-deck]:hover > :nth-last-child(2) { transform: translateX(4px); }
  .sling-note__faces[data-deck]:hover > :last-child { transform: translate(8px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
  .sling-note__faces[data-deck] > * { transition: none; }
}

.sling-on-dark .sling-note { color: var(--sling-white); } /* white on dark (user, 2026-10-20); the bold opening phrase carries the two tones */
.sling-on-dark .sling-note strong { color: var(--sling-white); }
.sling-on-dark .sling-note__faces > * { box-shadow: 0 0 0 2px var(--sling-midnight-blue); }

/* ── Logo line ──────────────────────────────────────────────── */
/* The logo's loop as a fine outline, coloured by --sling-line-art
   through a mask so one file serves every colour. Decoration only. */
.sling-line-art {
  display: block;
  aspect-ratio: 578 / 614;
  background: var(--sling-line-art);
  -webkit-mask: url("assets/logo-line-mask.svg") center / contain no-repeat;
  mask: url("assets/logo-line-mask.svg") center / contain no-repeat;
  pointer-events: none;
}

/* Reduced motion: nothing moves, colour still fades. The chevron still
   turns, instantly, because it shows the menu's state. */
@media (prefers-reduced-motion: reduce) {
  .sling-btn { transition: background-color var(--duration-quick) var(--ease-out), border-color var(--duration-quick) var(--ease-out); }
  .sling-btn .sling-icon, .sling-nav__link .sling-icon { transition: none; }
  .sling-btn:active, .sling-btn:hover .sling-icon { transform: none; }
}

/* ── Staging review tools ───────────────────────────────────── */
/* Drawn by review-tools.js, and only on review hosts (its allowlist), so
   none of this reaches the live site. Ported from Browns & Co. */

/* The toolbar, bottom left: the Grid button, then one Variation button
   per group, side by side. Above everything, the page included. */
.sling-review {
  position: fixed;
  left: max(var(--sling-space-2), env(safe-area-inset-left));
  bottom: max(var(--sling-space-2), env(safe-area-inset-bottom));
  z-index: 2147483001;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sling-space-1);
}

.sling-review__btn {
  min-height: 28px;
  padding: var(--sling-space-1) var(--sling-space-2);
  border: 0;
  border-radius: 0;
  font: 600 11px/1.4 var(--sling-font-mono);
  color: var(--sling-white);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--duration-press) var(--ease-out);
}

.sling-review__btn:active { transform: scale(var(--scale-press)); }

/* A white gap inside the navy ring, so it shows on light and dark grounds. */
.sling-review__btn:focus-visible {
  outline: 2px solid var(--sling-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--sling-white);
}

.sling-review__btn--grid { background: var(--sling-review-grid); }
.sling-review__btn--variant { background: var(--sling-review-variant); }
.sling-review__btn--space { background: var(--sling-review-space); }
.sling-review__btn--type { background: var(--sling-review-type); }
.sling-review__btn[aria-pressed="false"] { opacity: 0.7; }

/* The grid overlay: the layout grid's columns, tinted and numbered, inside
   the frame's edges, up to the frame's width. The script makes one column
   per --sling-grid-columns. Never catches the pointer. */
.sling-ruler {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}

.sling-ruler[hidden] { display: none; }

/* The rows: a faint line every 8px (the spacing scale's base step) and a
   stronger one every 64 (a section's head to its content), across the whole
   screen, scrolled with the page by --ruler-y (set by the script). */
.sling-ruler::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      color-mix(in srgb, var(--sling-review-grid) 40%, transparent) 0 1px,
      transparent 1px var(--sling-space-8)
    ),
    repeating-linear-gradient(
      to bottom,
      color-mix(in srgb, var(--sling-review-grid) 12%, transparent) 0 1px,
      transparent 1px var(--sling-space-2)
    );
  background-position: 0 var(--ruler-y, 0px);
}

.sling-ruler__frame {
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: var(--sling-grid-gap);
  width: 100%;
  height: 100%;
  padding-inline:
    calc(max(0px, (100% - var(--sling-frame)) / 2) + var(--sling-edge-start))
    calc(max(0px, (100% - var(--sling-frame)) / 2) + var(--sling-edge-end));
}

.sling-ruler__col {
  position: relative;
  background: color-mix(in srgb, var(--sling-review-grid) 8%, transparent);
  box-shadow:
    inset 1px 0 color-mix(in srgb, var(--sling-review-grid) 45%, transparent),
    inset -1px 0 color-mix(in srgb, var(--sling-review-grid) 45%, transparent);
}

.sling-ruler__num {
  position: absolute;
  top: calc(var(--sling-nav-height) + var(--sling-space-2));
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 5px;
  background: var(--sling-review-grid);
  font: 600 10px/1.4 var(--sling-font-mono);
  color: var(--sling-white);
}

/* The Space overlay (Space button, Shift+S, ?spacing): bands in page
   coordinates, labelled in px. Teal: a section's padding. Pink: the gap
   between blocks. Light teal: padding inside a block. Grey "auto": flexible
   space. Orange: a margin (the no-margin rule says none). A label off the
   spacing scale is red. Never catches the pointer or widens the page. */
.sling-space,
.sling-type {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2147482999;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.sling-type { z-index: 2147482998; }
.sling-space[hidden],
.sling-type[hidden],
.sling-type__panel[hidden],
.sling-type__list[hidden] { display: none; }

.sling-space__band {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: visible;
}
.sling-space__band--pad {
  background: rgb(20 160 150 / 0.16);
  outline: 1px dashed rgb(20 160 150 / 0.6);
  outline-offset: -1px;
}
.sling-space__band--inner { background: rgb(20 160 150 / 0.09); }
.sling-space__band--gap { background: rgb(230 60 150 / 0.14); }
.sling-space__band--auto { background: repeating-linear-gradient(45deg, rgb(120 120 120 / 0.1) 0 6px, transparent 6px 12px); }
.sling-space__band--margin { background: rgb(240 140 30 / 0.35); outline: 1px solid rgb(240 140 30); }
.sling-space__label {
  padding: 0 4px;
  border-radius: 2px;
  background: rgb(30 30 30 / 0.72);
  font: 600 10px/1.5 var(--sling-font-mono);
  color: var(--sling-white);
  white-space: nowrap;
}
.sling-space__label.is-auto { background: rgb(110 110 110 / 0.8); }
.sling-space__label.is-off { background: rgb(220 30 30); }

/* The Type overlay (Type button, Shift+T, ?type): each text block outlined
   and labelled with its face, weight, size/leading, tracking and CAPS,
   coloured by its step on the type scale; red off it, slate for the
   approved column-fit headline. The panel lists every style on the page. */
.sling-type__box {
  --type-hue: rgb(30 30 30);
  position: absolute;
  outline: 1px solid color-mix(in srgb, var(--type-hue) 70%, transparent);
  background: color-mix(in srgb, var(--type-hue) 7%, transparent);
}
.sling-type__label {
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 0 4px;
  background: var(--type-hue);
  font: 600 10px/1.5 var(--sling-font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--sling-white);
  white-space: nowrap;
}
.sling-type.is-picking .sling-type__box { opacity: 0.08; }
.sling-type.is-picking .sling-type__box.is-picked { opacity: 1; outline-width: 2px; }

/* One colour per step: 14, 15 (the note), 16, 18, 20, 24, 32, 48, 64. */
.sling-type--s0 { --type-hue: rgb(120 80 200); }
.sling-type--s1 { --type-hue: rgb(150 90 170); }
.sling-type--s2 { --type-hue: rgb(40 110 220); }
.sling-type--s3 { --type-hue: rgb(20 140 130); }
.sling-type--s4 { --type-hue: rgb(60 150 50); }
.sling-type--s5 { --type-hue: rgb(200 140 0); }
.sling-type--s6 { --type-hue: rgb(230 100 20); }
.sling-type--s7 { --type-hue: rgb(200 50 150); }
.sling-type--s8 { --type-hue: rgb(110 40 120); }
.sling-type--fit { --type-hue: rgb(70 85 110); }
.sling-type--off { --type-hue: rgb(220 30 30); }

.sling-type__panel {
  position: fixed;
  right: max(var(--sling-space-2), env(safe-area-inset-right));
  bottom: max(var(--sling-space-2), env(safe-area-inset-bottom));
  z-index: 2147483001;
  display: grid;
  width: min(26rem, calc(100vw - 2 * var(--sling-space-2)));
  max-height: 50vh;
  overflow: auto;
  background: rgb(25 25 25 / 0.92);
  font: 500 11px/1.5 var(--sling-font-mono);
  color: var(--sling-white);
}
.sling-type__head {
  position: sticky;
  top: 0;
  padding: var(--sling-space-2) var(--sling-space-3);
  border: 0;
  background: rgb(25 25 25);
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sling-type__list {
  display: grid;
  margin: 0;
  padding: 0 0 var(--sling-space-2);
  list-style: none;
}
.sling-type__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--sling-space-2);
  padding: var(--sling-space-1) var(--sling-space-3);
}
.sling-type__row:hover,
.sling-type__row:focus-visible {
  background: rgb(255 255 255 / 0.1);
  outline: none;
}
.sling-type__swatch { width: 10px; height: 10px; background: var(--type-hue); }
.sling-type__count { opacity: 0.7; }

/* Phones: a compact toolbar hugging the bottom edge, so it hides as
   little of the page (and of full-screen menus' last button) as it can. */
@media (max-width: 767px) {
  .sling-review {
    left: max(var(--sling-space-1), env(safe-area-inset-left));
    bottom: max(2px, env(safe-area-inset-bottom));
    gap: 2px;
    opacity: 0.85;
  }
  .sling-review__btn {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 10px;
  }
}

/* A version the Variation button hides, whatever display its own rules give it. */
[data-variant][hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sling-review__btn { transition: none; }
  .sling-review__btn:active { transform: none; }
}

@media print {
  .sling-review,
  .sling-ruler,
  .sling-space,
  .sling-type,
  .sling-type__panel { display: none; }
}
/* On a phone the type panel sits above the toolbar and is shorter. */
@media (max-width: 767px) {
  .sling-type__panel {
    bottom: calc(max(2px, env(safe-area-inset-bottom)) + 28px);
    max-height: 40vh;
  }
}

/* ── Nav dropdown morph (user, 2026-10-21) ─────────────────────
   While the frame glides from one dropdown to the next
   (src/components/home/a/nav-morph.ts), both real panels lose their own
   surface and motion, so only the frame and their content show. */
.nav-morph-panel {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
/* A section's small label above its heading: 14px, medium, uppercase,
   widely tracked (the user's designs: "Let’s be honest", "What we do").
   Its icon tile variant sits a muted tile beside it. */
.sling-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sling-space-4);
  font-family: var(--sling-font-body);
  font-size: var(--sling-text-xs);
  line-height: var(--sling-text-xs-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: 0.24em; /* [derived] the designs' wide tracking */
  text-transform: uppercase;
  color: var(--sling-text);
}
@media (max-width: 767px) {
  .sling-eyebrow {
    letter-spacing: 0.16em; /* [derived] tighter on phones, so long labels stay on one line */
  }
}
/* A small label (user, 2026-10-24: "use the same font class for 'For
   eCommerce & SaaS teams' and 'Working inside the tools you already
   use', 12px, smaller spacing"): the hero's tag and the tool logos'
   label. 12 on 16, medium, uppercase, 0.16em. */
.sling-label {
  font-family: var(--sling-font-body);
  font-size: var(--sling-tag-size);
  line-height: var(--sling-tag-leading);
  font-weight: var(--sling-weight-medium);
  letter-spacing: 0.16em; /* [derived] */
  text-transform: uppercase;
}
.sling-eyebrow__tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--sling-radius-sm);
  background: var(--sling-periwinkle);
  color: var(--sling-midnight-blue);
}
.sling-eyebrow__tile .sling-icon {
  width: 20px;
  height: 20px;
}

/* ── Screen reader only ─────────────────────────────────────── */
/* Text for screen readers that the design does not show (a section's
   name where the design has no visible heading). */
.sling-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
