/* ==========================================================================
   MoveWithElls — design tokens
   ========================================================================== */

:root {
  /* Colour — core */
  --color-cyan-50: #E6F9FC;
  --color-cyan-100: #B8EFF8;
  --color-cyan-300: #6EDCEE;
  --color-cyan-500: #0CC0DF;
  --color-cyan-600: #0A9AB2;
  --color-cyan-800: #06616F;

  --color-ink: #1B1B1B;
  --color-ink-700: #3A3A3C;
  --color-grey-500: #6E6E73;
  --color-grey-300: #A1A1A6;
  --color-grey-200: #D2D2D7;
  --color-grey-100: #E8E8ED;

  --color-bone: #F5F5F7;
  --color-white: #FFFFFF;

  /* Typography */
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Times New Roman', Times, serif;

  --fs-display: clamp(2.25rem, 1.55rem + 3.1vw, 4rem);
  --lh-display: 1.05;
  --ls-display: -0.035em;

  --fs-h1: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);
  --lh-h1: 1.09;
  --ls-h1: -0.025em;

  --fs-h2: clamp(1.5rem, 1.24rem + 1.1vw, 1.875rem);
  --lh-h2: 1.2;
  --ls-h2: -0.02em;

  --fs-h3: 1.3125rem;
  --lh-h3: 1.2857;

  --fs-accent: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --lh-accent: 1.4167;

  --fs-body: 1.0625rem;
  --lh-body: 1.647;

  --fs-small: 0.875rem;
  --lh-small: 1.5714;

  --fs-label: 0.75rem;
  --lh-label: 1.4;
  --ls-label: 0.14em;

  /* Logo geometry.
     Be Vietnam Pro metrics, measured from the loaded face:
       cap height 0.74em, x-height 0.53em.
     Both lockups centre their dots on the x-height, but they size them
     differently, because the dots do different jobs:
       - Wordmark: the dots SEPARATE words (move . with . ells), so they
         follow the brand's 36%-of-cap-height separator rule.
       - Monogram: the dot IS the mark, not a separator, so it's sized to the
         full x-height and sits flush in the lowercase band beside m/w/e.
         At separator size it reads as a speck and all but disappears at
         favicon dimensions.
     These are em-based, so they resolve against whatever font-size the
     lockup is set at. */
  --logo-cap-height: 0.74em;
  --logo-x-height: 0.53em;
  --logo-dot-ratio: 0.36;
  --logo-dot-size: calc(var(--logo-cap-height) * var(--logo-dot-ratio));
  --monogram-dot-size: var(--logo-x-height);

  /* Optical size correction for the accent face.
     Measured at a shared font-size: Be Vietnam Pro's x-height is 0.531em,
     Times New Roman italic's is 0.453em. Set at the same font-size the
     italic word therefore reads ~15% shorter than the sans beside it, and
     in an all-lowercase lockup that mismatch is the first thing you see.
     Scaling the accent by 0.531 / 0.453 lands its x-height exactly on the
     sans's — which is also the band --logo-x-height positions the dots in,
     so `with` / `w` now sit level with `move`, `ells`, `m` and `e`.
     Applies to the lockups only; the headline accent (.i-accent) is set
     against capitals and is left alone. */
  --accent-optical-scale: 1.172;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-pad-y: clamp(3.5rem, 2.6rem + 4.2vw, 8rem);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 1rem + 2.4vw, 3rem);
  --header-h: 84px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(27, 27, 27, 0.05), 0 8px 24px rgba(27, 27, 27, 0.06);
  --shadow-raised: 0 24px 56px rgba(27, 27, 27, 0.18);
  --shadow-floating: 0 16px 40px rgba(27, 27, 27, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-hover: 180ms;
  --dur-reveal: 560ms;
  --reveal-distance: 24px;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-floating: 10;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Any element that can be an anchor target clears the sticky header when
   jumped to. Previously only elements carrying .section had this, so a link
   to an inner id — a heading, a sub-block — scrolled that id flush to the
   viewport top and the header sat on top of it, cutting off the section. */
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, blockquote, a, span, li {
  overflow-wrap: break-word;
}

h1, h2, h3, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* Focus visibility — every interactive element gets a clear ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--color-cyan-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Typography utility classes
   ========================================================================== */

.fs-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 800;
}

.fs-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: 700;
}

.fs-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 600;
}

.fs-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
}

.fs-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-accent);
  line-height: var(--lh-accent);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-ink-700);
  margin-bottom: var(--space-4);
}

.section--ink .eyebrow { color: rgba(245, 245, 247, 0.72); }

/* One italic word inside a bold headline — the house move.
   Call sites: the hero H1, the CTA-band H2, and the closing band on the
   1:1 campaign pages. Deliberately rationed — it stops reading as a
   signature if it turns up in every heading. */
.i-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.text-measure {
  max-width: 62ch;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 999;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-hover) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad-y);
}

.section--bone { background: var(--color-bone); }
.section--white { background: var(--color-white); }
.section--ink { background: var(--color-ink); color: var(--color-white); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-8);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out);
}

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

.btn--primary {
  background: var(--color-cyan-500);
  color: var(--color-ink);
}
.btn--primary:hover { background: var(--color-cyan-600); }

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

.btn--sm {
  padding: 0.7rem 1.375rem;
  font-size: var(--fs-small);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-ink-700);
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}

.text-link:hover {
  color: var(--color-cyan-600);
  border-color: currentColor;
}

.text-link svg {
  transition: transform var(--dur-hover) var(--ease-out);
}

.text-link:hover svg { transform: translateX(3px); }

.section--ink .text-link { color: var(--color-white); }
.section--ink .text-link:hover { color: var(--color-cyan-300); }

/* Links inside running text. Not .text-link — that's an inline-flex row
   built for standalone CTAs with a trailing arrow, and an inline-flex box
   can't break across lines mid-phrase. Underlined as well as coloured, so
   colour isn't the only thing marking it as a link. Cyan 800 is the one
   cyan dark enough to carry body-size text on a light surface. */
.inline-link {
  color: var(--color-cyan-800);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  transition: color var(--dur-hover) var(--ease-out);
}

.inline-link:hover { color: var(--color-cyan-600); }

/* ==========================================================================
   Media placeholder — grey block fallback for missing images
   ========================================================================== */

.media-placeholder {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-grey-100);
  border-radius: var(--radius-lg);
}

.media-placeholder::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--color-grey-500);
}

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

.media-placeholder img.is-broken,
.media-placeholder video.is-broken { display: none; }

.media-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  background: rgba(27, 27, 27, 0.72);
  color: var(--color-white);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  max-width: calc(100% - var(--space-8));
}

.media-pause-toggle {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(27, 27, 27, 0.6);
  color: var(--color-white);
  transition: background-color var(--dur-hover) var(--ease-out);
}

.media-pause-toggle:hover { background: rgba(27, 27, 27, 0.8); }

.media-pause-toggle .icon-play { display: none; }
.media-pause-toggle.is-paused .icon-pause { display: none; }
.media-pause-toggle.is-paused .icon-play { display: block; }
.media-pause-toggle .icon-play { fill: currentColor; stroke: none; }

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-size: 1.25rem;
}

.logo__word {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-ink);
}

.logo__accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  /* See --accent-optical-scale: matches the italic's x-height to the sans's. */
  font-size: calc(1em * var(--accent-optical-scale));
  color: var(--color-ink);
}

/* Baseline-aligned, so the dot's bottom edge sits exactly on the text
   baseline; the translate then lifts it until its centre lands on the centre
   of the x-height band. Don't swap this for `align-self: center` — that
   centres against the line box (line-height included), which floats the dot
   well above the x-height. */
.logo__dot {
  width: var(--logo-dot-size);
  height: var(--logo-dot-size);
  border-radius: 50%;
  background: var(--color-cyan-500);
  align-self: baseline;
  transform: translateY(calc((var(--logo-dot-size) - var(--logo-x-height)) / 2));
}

.logo--on-ink .logo__word,
.logo--on-ink .logo__accent {
  color: var(--color-white);
}

.monogram {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: 1.4rem;
}

/* Centred on the x-height like the wordmark's dots (see .logo__dot for why
   it's baseline-aligned), but sized as a mark rather than a separator. At
   full x-height the translate resolves to 0 — the formula is kept so the dot
   stays correctly centred if --monogram-dot-size is ever retuned. */
.monogram__dot {
  width: var(--monogram-dot-size);
  height: var(--monogram-dot-size);
  border-radius: 50%;
  background: var(--color-cyan-500);
  align-self: baseline;
  transform: translateY(calc((var(--monogram-dot-size) - var(--logo-x-height)) / 2));
}

.monogram__m,
.monogram__e {
  font-family: var(--font-sans);
  font-weight: 800;
}

.monogram__w {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  /* See --accent-optical-scale. The monogram is m/w/e — three x-height
     letters side by side — so an unscaled w is especially conspicuous. */
  font-size: calc(1em * var(--accent-optical-scale));
}

.monogram--on-ink span { color: var(--color-white); }

/* ==========================================================================
   Icons
   ========================================================================== */

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bone);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out),
              box-shadow var(--dur-hover) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(245, 245, 247, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--color-grey-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  min-height: var(--header-h);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  /* Fluid: seven items must fit beside the logo and CTA from the moment the
     desktop nav appears. ~18px at the 940px breakpoint, easing up to the
     full 32px by ~1200px. */
  gap: clamp(1.05rem, -1.7rem + 4.7vw, 2rem);
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-ink-700);
  padding-block: var(--space-2);
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-ink);
  border-color: var(--color-cyan-500);
}

/* Current page: same cyan underline as hover, held. .is-current is the same
   state for the Services toggle, set by the layout when a service page is
   open (the toggle itself is never the current page). */
.nav__link[aria-current="page"],
.nav__dropdown-toggle.is-current {
  color: var(--color-ink);
  border-bottom-color: var(--color-cyan-500);
}

/* ---- Services dropdown (disclosure) ----
   A button + list, not a hover menu: it opens on click/Enter, closes on
   Escape, outside click, or focus leaving it (main.js). Hover alone never
   operates it, so keyboard and touch get the same behaviour. */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  /* The other .nav__link rules are inline <a>s, where block padding enlarges
     the hit area WITHOUT moving the border-bottom (inline boxes don't grow).
     On this inline-flex button the same padding would push the underline
     ~6px lower than its neighbours', so it carries none. */
  padding-block: 0;
}

.nav__dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-hover) var(--ease-out);
}

.nav__dropdown-toggle[aria-expanded="true"] .nav__dropdown-chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
  display: grid;
  z-index: var(--z-floating);
}

.nav__dropdown[hidden] { display: none; }

.nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-ink-700);
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
}

.nav__dropdown-link:hover {
  background: var(--color-cyan-50);
  color: var(--color-ink);
}

.nav__dropdown-link[aria-current="page"] {
  color: var(--color-cyan-800);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__cta {
  display: none;
}

@media (min-width: 460px) {
  .site-header__cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.nav-toggle__icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.nav-toggle__icon .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ==========================================================================
   Mobile nav overlay
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-bone);
  display: flex;
  flex-direction: column;
}

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

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--container-pad);
  min-height: var(--header-h);
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.mobile-nav__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-7);
  padding: var(--space-6) var(--container-pad) var(--space-8);
  overflow-y: auto;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-nav__link {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--ls-h2);
}

/* Services in the overlay are a labelled group, not a nested disclosure —
   one less control to operate on a phone. Sub-links step down a size so the
   grouping reads at a glance. */
.mobile-nav__group-label {
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-grey-500);
  margin-bottom: var(--space-3);
}

.mobile-nav__sublist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-grey-200);
}

.mobile-nav__sublink {
  font-size: var(--fs-h3);
  font-weight: 500;
}

body.nav-open {
  overflow: hidden;
}

/* 940px, not 900: with seven items in the primary nav (multi-page site),
   900px leaves the list wider than the header and it wraps to two rows.
   Below this the hamburger + overlay carry navigation. Measured, not
   guessed — see check-pages-overflow.mjs in the verification harness. */
@media (min-width: 940px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: var(--space-8) var(--space-9);
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero__content { max-width: 34rem; }

.hero__title { margin-block: var(--space-4) var(--space-5); }

/* Wraps several paragraphs — gap rather than per-paragraph margins, so the
   spacing can't collapse or double. 46ch keeps the measure inside the
   brief's 45-70 character range. */
.hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink-700);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-grey-200);
}

.hero__trust-item {
  font-size: var(--fs-small);
  color: var(--color-grey-500);
  position: relative;
  padding-left: var(--space-5);
}

.hero__trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-500);
}

.hero__media {
  position: relative;
}

.hero__media .media-placeholder {
  aspect-ratio: 4 / 5;
}

.hero__floating-card {
  position: absolute;
  left: -1.25rem;
  bottom: -1.25rem;
  z-index: var(--z-floating);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
  padding: var(--space-5);
  max-width: 15rem;
}

.hero__floating-card .eyebrow {
  color: var(--color-grey-500);
  margin-bottom: var(--space-2);
}

.hero__floating-card p {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .hero__floating-card { left: -2rem; bottom: -2rem; }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-9);
  }
}

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stats {
  padding-block: var(--space-7);
}

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

.stat {
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid rgba(245, 245, 247, 0.16);
  text-align: center;
  min-width: 0;
}

.stat:first-child { border-top: none; }

.stat__value {
  display: block;
  font-size: clamp(1.05rem, 0.85rem + 1.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: var(--ls-h1);
  margin-bottom: var(--space-2);
  overflow-wrap: anywhere;
}

.stat__label {
  font-size: var(--fs-small);
  color: rgba(245, 245, 247, 0.72);
}

@media (min-width: 480px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(245, 245, 247, 0.16); }
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(-n+4) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(245, 245, 247, 0.16); }
  .stat:not(:first-child) { border-left: 1px solid rgba(245, 245, 247, 0.16); }
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.about__media .media-placeholder {
  aspect-ratio: 1 / 1;
}

.about__body p { margin-bottom: var(--space-5); }
.about__body p:last-of-type { margin-bottom: var(--space-6); }

.about__quote {
  display: block;
  color: var(--color-ink-700);
  border-left: 3px solid var(--color-cyan-500);
  padding-left: var(--space-5);
  margin-block: var(--space-6);
}

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}

.service-card__title { margin-bottom: var(--space-2); }

/* The card title links to the service's page. Inherits the heading colour so
   the card doesn't read as a wall of link-blue; the CTA arrow underneath is
   the explicit affordance, this is the bonus hit-target. */
.service-card__title-link {
  color: inherit;
  transition: color var(--dur-hover) var(--ease-out);
}

.service-card__title-link:hover { color: var(--color-cyan-600); }

.service-card__desc {
  color: var(--color-ink-700);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.service-card__cta {
  color: var(--color-ink-700);
}

.service-card:hover .service-card__cta {
  color: var(--color-cyan-600);
}

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   How it works
   ========================================================================== */

/* Clearly larger than the gap between steps, so a new track reads as a new
   group rather than another step. */
.how-track + .how-track {
  margin-top: var(--space-9);
}

.how-track__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
}

.how-track__lead {
  color: var(--color-grey-500);
  font-size: var(--fs-small);
}

.steps {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  position: relative;
}

.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-grey-200);
}

.step__num {
  display: block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-grey-300);
  margin-bottom: var(--space-4);
}

.step__title { margin-bottom: var(--space-3); }
.step__desc { color: var(--color-ink-700); }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* ==========================================================================
   Pricing / timetable
   ========================================================================== */

.pricing__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.pricing__intro p {
  color: var(--color-ink-700);
  max-width: 42ch;
}

.plans {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.plan {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
}

.plan--featured {
  background: var(--color-ink);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-raised);
  position: relative;
}

/* The featured tier is meant to sit slightly proud of its neighbours. It
   can't just be `.plan--featured { transform: scale(1.04) }`: every card
   carries [data-reveal], and .js [data-reveal].is-visible (0,3,0) sets
   transform on the way in, outranking .plan--featured (0,1,0) — the scale
   would be applied for one frame and then silently dropped. So it is stated
   at the resting state above that specificity, with a no-JS twin for the
   path where .is-visible is never added. Reduced motion keeps the scale on
   purpose: it's a resting size, not motion. */
@media (min-width: 1024px) {
  .js .plan--featured[data-reveal].is-visible,
  html:not(.js) .plan--featured {
    transform: scale(1.04);
  }
}

.plan__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: var(--color-cyan-500);
  color: var(--color-ink);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.plan__name { margin-bottom: var(--space-3); }

.plan__price {
  font-size: clamp(1.15rem, 0.95rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--ls-h1);
  margin-bottom: var(--space-6);
  overflow-wrap: anywhere;
}

.plan__price span {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-grey-500);
  letter-spacing: normal;
}

.plan--featured .plan__price span { color: var(--color-grey-300); }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  flex-grow: 1;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
}

.plan__features .icon {
  width: 18px;
  height: 18px;
  color: var(--color-cyan-600);
  margin-top: 0.15em;
}

.plan--featured .plan__features .icon {
  color: var(--color-cyan-500);
}

.plan--featured .btn--ghost {
  border-color: var(--color-white);
  color: var(--color-white);
}
.plan--featured .btn--ghost:hover { background: var(--color-white); color: var(--color-ink); }

/* The per-session maths, sitting under the headline price. .plan__price
   carries the space-6 gap on its own; when a unit line follows, that gap
   moves down to the unit line so price and maths read as one block. */
.plan__price:has(+ .plan__unit) { margin-bottom: var(--space-2); }

.plan__unit {
  font-size: var(--fs-small);
  color: var(--color-grey-500);
  margin-bottom: var(--space-6);
}

/* Cyan 600 clears 3:1 (non-text) but not 4.5:1, so the saving is
   weighted ink rather than coloured. */
.plan__save {
  color: var(--color-ink);
  font-weight: 600;
}

.plan--featured .plan__unit { color: var(--color-grey-300); }
.plan--featured .plan__save { color: var(--color-white); }

/* Lead line under a pricing group heading, matching the section leads
   on the home page. */
.pricing-group__lead {
  margin-top: var(--space-4);
  color: var(--color-ink-700);
}

@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: center; }

  /* A two-tier group. Left in the three-column grid it would sit off to one
     side with a hole where the third card should be; capped and centred, the
     pair matches the width of a card in the three-up groups above it
     (2 x ~347px + a space-6 gutter). */
  .plans--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 45.5rem;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.testimonial-track {
  display: flex;
  transition: transform 480ms var(--ease-out);
}

.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.testimonial-slide blockquote {
  max-width: 42rem;
  margin-inline: auto;
}

.testimonial-slide cite {
  display: block;
  font-style: normal;
  margin-top: var(--space-6);
  font-weight: 600;
}

.testimonial-slide cite span {
  display: block;
  font-weight: 400;
  color: var(--color-grey-500);
  font-size: var(--fs-small);
  margin-top: var(--space-1);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.testimonial-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-grey-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}

.testimonial-nav-btn:hover {
  border-color: var(--color-cyan-500);
  color: var(--color-cyan-600);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-3);
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-grey-200);
  transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}

.testimonial-dot[aria-selected="true"] {
  background: var(--color-cyan-500);
  transform: scale(1.2);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
}

.cta-band__inner {
  max-width: 40rem;
  margin-inline: auto;
}

.cta-band__title { margin-bottom: var(--space-5); }

.cta-band__body {
  color: rgba(245, 245, 247, 0.8);
  margin-bottom: var(--space-7);
}

/* ==========================================================================
   Form embed (Tally)
   ========================================================================== */

.form-embed {
  max-width: 46rem;
  margin-inline: auto;
}

/* Fixed height, deliberately.
   Tally's `dynamicHeight` is driven by iframe-resizer inside their embed.js:
   the iframe emits "[iFrameResizerChild]Ready" and waits for a parent-side
   handshake that only that script performs. Without it no height is ever
   posted (Tally.FormLoaded carries just a formId), so the frame would keep
   whatever height we set. We size it instead of loading third-party JS.

   Measured content height of form q41a07:
     736px wide -> 729    560px -> 715    312px -> 787
   Tally's own default of 728px is 1px under the desktop content, which is
   what produced a nested scrollbar. The values below add ~90px of headroom
   so inline validation errors can expand the form without it scrolling
   inside its own frame.

   If the form is edited, re-measure and update these — or switch to Tally's
   embed.js and let it size the frame (see PLACEHOLDERS.md). */
.form-embed__frame {
  display: block;
  width: 100%;
  height: 880px;
  border: 0;
}

@media (min-width: 480px) {
  .form-embed__frame { height: 820px; }
}

.form-embed__frame[hidden] { display: none; }

/* Shown only while the form ID is still a placeholder. */
.form-embed__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28rem;
  padding: var(--space-6);
  text-align: center;
  background: var(--color-grey-100);
  border-radius: var(--radius-lg);
  color: var(--color-grey-500);
  font-size: var(--fs-small);
}

.form-embed__placeholder[hidden] { display: none; }

.form-embed__placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}

.form-embed__fallback {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-grey-500);
}

/* ==========================================================================
   Gymcatch embed (/timetable/)
   ========================================================================== */

/* Gymcatch's theme.css declares its --gc-* tokens on :root and is injected
   at runtime, after this file, so a plain :root here would lose on source
   order. html:root outranks it. Only the embed reads these tokens, so the
   block is inert on every other page. Radii are left at Gymcatch's values:
   its layouts weren't drawn around pill shapes. */
html:root {
  --gc-font-family: var(--font-sans);
  --gc-header-font-family: var(--font-sans);
  --gc-font-size: 15px;
  --gc-foreground-color: var(--color-ink);
  --gc-secondary-text-color: var(--color-grey-500);
  --gc-border-color: var(--color-grey-200);
  /* Cyan 800, the darkest brand cyan, so anything drawn on or in the
     highlight colour stays readable against white. */
  --gc-highlight-color: var(--color-cyan-800);
  --gc-content-loading-indicator-color: var(--color-cyan-500);
  --gc-activity-indicator-color: var(--color-cyan-500);
}

.gymcatch-embed {
  display: block;
  min-height: 24rem;
  margin-top: var(--space-7);
}

.gymcatch-embed__fallback {
  padding-block: var(--space-8);
  text-align: center;
  color: var(--color-grey-500);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 46rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-grey-200);
}

/* The question's wrapping heading: h3 on the home-page era markup, h2 on the
   standalone FAQ page (where the section h1 sits one level above). The class
   covers both so the heading level can follow the page outline. */
.faq-item__heading,
.faq-item h3 { margin: 0; font-size: inherit; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding-block: var(--space-5);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.faq__chevron {
  transition: transform var(--dur-hover) var(--ease-out);
  color: var(--color-grey-500);
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-cyan-600);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}

/* Match on the item, not on an adjacent sibling.
   The ARIA accordion pattern puts the button inside an <h3> so the question
   is a real heading, which means .faq__panel is a sibling of that <h3> — NOT
   of the button. An `.faq__question[aria-expanded="true"] + .faq__panel`
   selector therefore never matches and the panel stays shut, while the
   chevron (a descendant of the button) still rotates, so it looks like it
   works. :has() reads the state off the button wherever it sits, keeping
   aria-expanded as the single source of truth. */
.faq-item:has(.faq__question[aria-expanded="true"]) .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__panel p {
  color: var(--color-ink-700);
  padding-bottom: var(--space-6);
  max-width: 60ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-9) var(--space-6);
}

.site-footer__top {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.site-footer__brand p {
  color: var(--color-grey-300);
  margin-top: var(--space-4);
  max-width: 28ch;
}

.site-footer__columns {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}

.footer-col__title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-grey-300);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a,
.footer-col address a {
  color: rgba(245, 245, 247, 0.82);
  transition: color var(--dur-hover) var(--ease-out);
}

.footer-col a:hover { color: var(--color-cyan-300); }

.footer-col address { font-style: normal; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 245, 247, 0.16);
  font-size: var(--fs-small);
  color: var(--color-grey-300);
}

.site-footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(245, 245, 247, 0.82);
}

.site-footer__social:hover { color: var(--color-cyan-300); }

@media (min-width: 640px) {
  .site-footer__columns { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1.2fr 2fr;
    gap: var(--space-9);
  }
}

/* ==========================================================================
   Inner pages — page hero, service detail, FAQ/contact/404 furniture
   ========================================================================== */

/* Slimmer opening section for inner pages: same tokens as the home hero, no
   media column. The lead line is the Accent style (Times italic) — per the
   brand spec that face carries subtitles and pull quotes, and this is a
   subtitle. The house move (one italic word in a bold headline) is separate
   and still appears only in the home hero + CTA band. */
.page-hero .section-head {
  margin-bottom: 0;
}

.page-hero__lead {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-accent);
  line-height: var(--lh-accent);
  color: var(--color-ink-700);
  margin-top: var(--space-4);
  max-width: 40ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Service page: body copy beside a photo + what-you-get list. */
.service-detail {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--space-9);
  }
}

.service-detail__body > p {
  max-width: 62ch;
}

.service-detail__body h2 + p { margin-top: var(--space-5); }
.service-detail__body p + p { margin-top: var(--space-4); }

/* Generic running-text rhythm for one-off text blocks on inner pages (the
   global reset zeroes p margins). */
.flow p + p { margin-top: var(--space-4); }

/* .media-placeholder is position:relative with absolutely-positioned
   children, so it has NO intrinsic height — every context must give it an
   aspect ratio (the hero uses 4/5, the about photo 1/1). These are the
   inner-page contexts. */
.service-detail__aside .media-placeholder,
.about__grid + * .media-placeholder {
  aspect-ratio: 4 / 3;
}

.media-placeholder--wide {
  aspect-ratio: 16 / 9;
}

.service-detail__aside {
  display: grid;
  gap: var(--space-6);
}

/* What-you-get checklist. Same anatomy as .plan__features; kept separate so
   pricing tweaks never restyle service pages. Icons are Cyan 600, not 500 —
   500 on white fails the 3:1 non-text contrast floor (WCAG 1.4.11). */
.feature-list {
  display: grid;
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 500;
}

.feature-list .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.3em;
  color: var(--color-cyan-600);
}

/* "Also worth a look" cross-links on service pages. */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}

/* Contact page: detail rows beside the form. */
.contact-details {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contact-details a { overflow-wrap: anywhere; }

/* Pricing footnotes. A <dl> laid out as a two-column grid would break the
   dt/dd pairing, so each pair sits in a row wrapper; at the wide breakpoint
   the wrapper goes `display: contents` and vanishes from layout, letting
   every term and description line up on one shared grid. Below that they
   stack, so the wrapper stays a real box and keeps a term tight to its
   own description. */
.notes {
  display: grid;
  gap: var(--space-6);
}

.notes__row {
  display: grid;
  gap: var(--space-2);
}

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

.notes__desc {
  color: var(--color-ink-700);
  max-width: 62ch;
}

@media (min-width: 720px) {
  .notes {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    column-gap: var(--space-6);
    row-gap: var(--space-5);
  }
  .notes__row { display: contents; }
}

/* ==========================================================================
   Entrance motion — hero load sequence + scroll reveal
   ==========================================================================

   [data-enter] fires once on load (hero, above the fold).
   [data-reveal] fires when the element scrolls into view.

   Both hidden states are gated behind `.js` on <html>, which the inline
   script in <head> sets before first paint. If that script never runs,
   nothing is ever hidden — a scripting failure degrades to a plain static
   page rather than a blank one.

   Keep the `.js` prefix on every rule here, INCLUDING the reduced-motion
   override: an unprefixed `[data-reveal]` override (0,1,0) loses on
   specificity to `.js [data-reveal]` (0,2,0), which would silently leave
   motion switched on for people who asked for none. */

.js [data-reveal],
.js [data-enter] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible,
.js [data-enter].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero load order: label -> headline -> image -> copy -> CTAs -> proof row.
   The image lands third so the largest element isn't last to arrive. */
.js [data-enter="1"] { --reveal-delay: 0ms; }
.js [data-enter="2"] { --reveal-delay: 70ms; }
.js [data-enter="3"] { --reveal-delay: 140ms; }
.js [data-enter="4"] { --reveal-delay: 210ms; }
.js [data-enter="5"] { --reveal-delay: 280ms; }
.js [data-enter="6"] { --reveal-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-enter] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive type niceties at large screens
   ========================================================================== */

@media (min-width: 1440px) {
  :root { --container-max: 1280px; }
}

/* ==========================================================================
   Campaign landing pages (/start/)
   --------------------------------------------------------------------------
   Paid traffic only, and noindexed. The job is one decision, so the chrome
   is stripped back: a header with no nav, a footer with no links, and a
   booking bar that follows you down a phone screen.

   Everything reusable is reused — .btn, .feature-list, .steps, .notes,
   .eyebrow, .media-placeholder, .form-embed and the tokens — so this block
   only holds what the page type genuinely adds.
   ========================================================================== */

.campaign-header {
  background: var(--color-bone);
  border-bottom: 1px solid var(--color-grey-200);
}

.campaign-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.campaign-header__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}

.campaign-header__tel:hover { color: var(--color-cyan-600); }
.campaign-header__tel svg { stroke: var(--color-cyan-600); flex: none; }

/* Icon only on small screens. A phone number is the one string that must
   never wrap or truncate, and there isn't room for it beside the lockup at
   360px — so it is hidden rather than allowed to widen the document. The
   visually-hidden label in the markup means the icon is never an
   unlabelled link. */
.campaign-header__tel-text { display: none; }

@media (min-width: 480px) {
  .campaign-header__tel-text { display: inline; }
}

/* ---------- Hero ---------- */

.campaign-hero {
  background: var(--color-bone);
  padding-bottom: var(--section-pad-y);
}

.campaign-hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.campaign-hero__title {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.campaign-hero__lead {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--fs-accent);
  line-height: var(--lh-accent);
  color: var(--color-ink-700);
  max-width: 42ch;
}

.campaign-hero__points { margin-top: var(--space-6); }

.campaign-hero__points li { font-weight: 500; }

.campaign-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.campaign-hero__price {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--color-grey-500);
}

.campaign-hero__media { min-width: 0; }

/* 4:3, matching the photos the service pages already use — the same files
   are referenced here, so a different ratio would crop them differently in
   the two places. 16:9 also left the column half empty beside a hero body
   this tall. */
.campaign-hero__media .media-placeholder { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .campaign-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); }
}

/* ---------- Single client quote ----------
   Its own class rather than .testimonial-slide: the slider in main.js
   collects those by class, and a lone quote with no carousel around it
   would get aria-hidden set on it for no reason. */

.proof-quote {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.proof-quote blockquote {
  margin: 0;
  color: var(--color-ink);
}

.proof-quote figcaption {
  margin-top: var(--space-5);
  font-weight: 700;
  font-size: var(--fs-small);
  font-style: normal;
}

.proof-quote figcaption span {
  display: block;
  margin-top: var(--space-1);
  font-weight: 400;
  color: var(--color-grey-500);
}

.campaign-enquire__lead {
  margin-top: var(--space-4);
  color: var(--color-ink-700);
  max-width: 46ch;
}

/* ---------- Closing band ---------- */

.campaign-close { text-align: center; }

.campaign-close__inner {
  max-width: 40rem;
  margin-inline: auto;
}

.campaign-close__title { margin-bottom: var(--space-5); }

.campaign-close__body {
  color: rgba(245, 245, 247, 0.8);
  margin-bottom: var(--space-7);
}

/* ---------- Footer ---------- */

.campaign-footer {
  background: var(--color-ink);
  color: rgba(245, 245, 247, 0.8);
  padding: var(--space-7) 0;
  font-size: var(--fs-small);
}

.campaign-footer__inner {
  display: grid;
  gap: var(--space-5);
}

.campaign-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  max-width: 34rem;
}

.campaign-footer__contact { font-style: normal; line-height: 1.8; }
.campaign-footer__contact a { color: var(--color-white); text-decoration: none; }
.campaign-footer__contact a:hover { color: var(--color-cyan-300); }

.campaign-footer__legal { margin: 0; color: rgba(245, 245, 247, 0.55); }

@media (min-width: 760px) {
  .campaign-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .campaign-footer__legal { grid-column: 1 / -1; }
}

/* ---------- Sticky booking bar ----------
   Phones only. Visible by default, and TUCKED by JS while the hero's own
   button is on screen — so with scripting off it simply stays, rather than
   being a control that never appears. */

.campaign-sticky {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-floating);
  background: rgba(245, 245, 247, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--color-grey-200);
  padding: var(--space-3) var(--container-pad);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  transition: transform var(--dur-hover) var(--ease-out);
}

.campaign-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin-inline: auto;
}

.campaign-sticky__price {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.js .campaign-sticky.is-tucked { transform: translateY(110%); }

/* Room for the bar so it never sits over the last line of the footer. */
body.campaign { padding-bottom: 5rem; }

@media (min-width: 940px) {
  .campaign-sticky { display: none; }
  body.campaign { padding-bottom: 0; }
}

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

/* Services hub (/services/) — reuses .services__grid and .service-card from
   the home page; these are the only additions the page needs. */

.services-hub__lead {
  margin-top: var(--space-4);
  color: var(--color-ink-700);
  max-width: 58ch;
}

.services-hub__lead--center { margin-inline: auto; }

.services-hub__aside {
  margin-top: var(--space-6);
  font-size: var(--fs-small);
  color: var(--color-grey-500);
}

.services-hub__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* The hub link sits above the six services, so it gets a rule beneath it
   rather than looking like a seventh service. */
.nav__dropdown-link--all {
  font-weight: 600;
  border-bottom: 1px solid var(--color-grey-100);
}
