/* ============================================================
   TwoFold Creatives — Dark Home theme (2026)
   Reference layout adapted to brand navy + teal. Loaded on home only.
   ============================================================ */

body.theme-dark {
  --d-bg:        #06192B;   /* base, deep brand navy */
  --d-bg-2:      #0A2740;   /* elevated band */
  --d-card:      #0E3152;   /* card surface */
  --d-card-hi:   #12466F;   /* hover / raised */
  --d-line:      rgba(255,255,255,0.09);
  --d-line-2:    rgba(115,190,198,0.30);
  --d-text:      #EAF2F6;
  --d-muted:     rgba(233,242,246,0.60);
  --d-muted-2:   rgba(233,242,246,0.42);
  background: var(--d-bg);
  color: var(--d-text);
}

/* Section rhythm on dark */
body.theme-dark .section { color: var(--d-text); background: transparent; }
body.theme-dark .section--panel { background: var(--d-bg-2); }
body.theme-dark .section .lead { color: var(--d-muted); }
body.theme-dark .section .h2,
body.theme-dark .section .h3 { color: #fff; }
body.theme-dark .eyebrow { color: var(--teal-soft); }

/* Compact location chip in the hero only */
.dk-pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: .02em; text-transform: none; color: var(--teal-soft);
  padding: .45em .95em; border: 1px solid var(--d-line-2); border-radius: var(--r-pill);
  background: rgba(115,190,198,0.06);
}

/* Nav is a single dark pill on every page now, so the dark home needs no
   colour overrides. See the NAVBAR block in main.css. */
body.theme-dark .marquee__item img { filter: grayscale(1) brightness(0) invert(1); opacity: .5; }
body.theme-dark .marquee__item img:hover { filter: none; opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   HOME 2026 — additions
   Signature effects kept + elevated: hero polish, animated
   performance metrics, slide-in enquiry, custom cursor,
   dark FAQ + newsletter. Appended; interior pages untouched.
   ============================================================ */

/* Guard against a white flash before the dark theme paints */
html.js body.theme-dark { background: #06192B; }

/* ---------- HERO polish (dark home) ---------- */
.hero { background: #06192B; }
.hero__bg::after {
  background: rgba(4, 16, 28, .5);
}
/* Logo sits in the clear upper band, above the faces in the photo, and is
   sized against available height as well as width so it can grow on large
   screens without ever dropping onto the centre face. Positioned with
   top/margin rather than a transform, because the scroll scrub owns
   .hero__logo's transform and would overwrite one set here. */
.hero__logo {
  top: clamp(4.5rem, 10vh, 8rem);
  left: 0; right: 0;
  margin-inline: auto;
  width: min(88vw, 55vh, 520px);
  padding: 0;
}
/* Sit the group slightly lower in frame on landscape viewports. The logo is a
   stacked lockup (1.42:1), so it is height-constrained in the top band, and
   this headroom is what lets it be larger without landing on the centre face.
   Narrow screens crop horizontally only, so this has no effect there. */
.hero__bg img { object-position: center 42%; }

/* Swoosh sits between the two headline lines */
.hero__title .hero__swoosh { margin: 0.02em auto; width: min(58vw, 520px); height: 18px; color: #fff; opacity: .92; }
.hero__cta .btn-ic i { transition: transform .35s var(--ease); }
.hero__cta .btn:hover .btn-ic i { transform: translateY(2px); }

/* ============================================================
   HERO STAGE — three phases on one scroll track
     1. REVEAL  logo lifts away, "Elevating Brands" staggers in
     2. HOLD    everything sits perfectly still, nothing moves
     3. COVER   the page slides up over the still hero like a sheet
   The pin is native sticky, so phase 2 is genuinely motionless and
   costs nothing on the compositor. Phase 3 is the page itself
   riding up on a higher layer, so the hero never moves at all.
   ============================================================ */
:root {
  --hero-h: 350vh;         /* total scroll length of the hero stage */
  /* Keep this near 200vh so the glass does not start sliding during early
     hero scroll (stage top ≈ hero-h − about-stage-h). */
  --intro-stage-h: 220vh;
  /* after it lands, the panel holds for one more screen while the next
     section rises over it; the next section is pulled up by the same amount,
     so the page is no longer than it was */
  --intro-hold: 100svh;
  /* the run the hero's reveal plays over: the same one the script measured,
     min(92svh, 40% of the pinned travel), which is 92svh at every hero
     height this page uses */
  --hero-anim: 92svh;
}
.hero { height: var(--hero-h); }

/* The hero's reveal, driven by the browser from the scroll itself where it
   can be. A phone scrolls natively on the compositor, so a script scrubbing
   this from scroll events is always a frame or more behind a fast flick;
   beside the intro panel, which the compositor slides in perfect step, that
   lag read as the hero juddering. On this clock the two move as one.
   main.js still does it by script where this is unsupported. */
@supports (animation-timeline: scroll()) {
  html.js:not(.no-anim) .hero__logo {
    animation: hero-logo linear both;
    animation-timeline: scroll(root block);
    animation-range: calc(var(--hero-anim) * .05) calc(var(--hero-anim) * .55);
  }
  html.js:not(.no-anim) .hero__reveal {
    animation: hero-lift linear both;
    animation-timeline: scroll(root block);
    animation-range: calc(var(--hero-anim) * .4) calc(var(--hero-anim) * .78);
  }
  /* each line follows the one before it (--i, set in the markup) */
  html.js:not(.no-anim) .hero__reveal [data-line] {
    animation: hero-line linear both;
    animation-timeline: scroll(root block);
    animation-range: calc(var(--hero-anim) * (.44 + var(--i, 0) * .07)) calc(var(--hero-anim) * (.68 + var(--i, 0) * .07));
  }
}
/* Less motion: a scroll-driven animation is not switched off by the blanket
   duration override (its duration comes from the timeline, not from time),
   so it has to be named here. main.js then puts the hero in its final state
   by hand: the logo away, the words there. */
@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero__reveal, .hero__reveal [data-line] { animation: none !important; }
}
@keyframes hero-logo { from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } to { opacity: 0; transform: translate3d(0, -60px, 0) scale(.88); } }
@keyframes hero-lift { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-line { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }

/* ---- The intro: a pane of glass that slides in over the hero -------------
   The hero holds still while this panel arrives from the right, carrying a
   pre-blurred copy of the hero photo that slides the opposite way inside it,
   so the photo stays put on screen and the panel reads as frosted glass.
   With a mouse or trackpad the slide is scrubbed by the scroll; on a touch
   screen it is played as a transition once the panel has pinned (see
   "Touch screens" below). With no JS, or for anyone who asks for less
   motion, the pull comes off and the page simply stacks.
   --------------------------------------------------------------------- */
/* The stage reserves the scroll the slide runs over, and is pulled up over
   the hero so the panel is already pinned before it starts moving. `clip`
   (not `hidden`): `hidden` would make this a scroll container and the pin
   inside would stop tracking the viewport. */
.intro-stage {
  position: relative; z-index: 2;
  height: calc(var(--intro-stage-h) + var(--intro-hold));
  margin-top: calc(var(--intro-stage-h) * -1);
  overflow-x: clip;
}
/* The pin and the slide are kept on separate elements on purpose: one
   element that is both sticky and transformed is reconciled by the browser
   on two different paths, and any disagreement between them shows up as the
   panel trembling while it travels. */
.intro-pin { position: sticky; top: 0; }
/* The stage and the pin are see-through frames laid over the hero, so they
   let taps through (the hero's button sits under them while the panel is
   still parked); only the panel itself, wherever it is, takes them. */
.intro-stage, .intro-pin { pointer-events: none; }
.intro { pointer-events: auto; }
/* the dark behind the panel once it has landed, so that when the panel
   settles back the hero scrolling away behind it never shows round the
   edges (switched on in the instant the slide ends, see below) */
.intro-back {
  position: absolute; inset: 0; z-index: 0;
  background: var(--d-bg); opacity: 0; pointer-events: none;
}
.intro {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(2rem, 5vh, 3.6rem) 0;
  /* seen below the baked layer, if the panel is ever taller than it */
  background: rgba(22, 42, 64, .48);
}
/* the leading edge of the glass, catching the light as it arrives */
.intro::before {
  /* 2px, not 1: a hairline lands on half pixels while it travels and
     shimmers along the edge */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; z-index: 2;
  background: rgba(115, 190, 198, .42);
}
/* a scrim behind the copy: the blurred photo shifts as the panel slides, and
   a bright patch must never eat into the contrast of the words */
.intro::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(6, 25, 43, .3);
}
.intro > .container { position: relative; z-index: 1; width: 100%; }
/* clips the counter-sliding photo to the panel: the panel's own overflow
   cannot do it, because a box never clips its own shadow, and the shadow
   has to be able to fade in */
.intro__clip { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* the panel dims as the next section comes over it: one flat layer on top
   of everything in it, faded in (opacity, which the compositor runs) */
.intro__dim {
  position: absolute; inset: 0; z-index: 3;
  background: #06192B; opacity: 0; pointer-events: none;
}
/* the panel's shadow on the hero, on its own layer so it can fade in over
   the first 64px of the slide rather than switching on in one frame */
.intro__shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  box-shadow: -44px 0 90px -34px rgba(0, 0, 0, .66);
}
.intro__glass {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100vh; height: 100svh;
  min-height: 100%;       /* a flowing panel (no pin) taller than a screen: no bare strip */
  z-index: 0; pointer-events: none;
  background-color: #0b2033;
  background-image: url("../img/r/hero-blur-tall.jpg");
  background-image: image-set(url("../img/r/hero-blur-tall.webp") type("image/webp"), url("../img/r/hero-blur-tall.jpg") type("image/jpeg"));
  background-position: 50% 42%;
  background-size: cover;
  background-repeat: no-repeat;
  /* no transform here: it is parked opposite the panel only by the slide that
     brings it back (the scrubbed keyframes, or the touch transition), so a
     browser that runs neither still shows the glass under the panel */
}
/* The photo is 4:5, so it is displayed max(screen width, 0.8 x screen height)
   wide. Up to ~650px of that (a phone held upright) the small, most blurred
   file keeps 14px on screen; landscape phones and tablets get the middle one,
   laptops the large one, and screens from 1700px the largest (the large one
   stretched that far showed 19-25px). Picked by orientation alone, a
   landscape phone showed half the blur and a tablet nearly double.
   Each size keeps the one below it as a second layer underneath: turn a phone
   or a tablet, or resize a window, and the size already loaded keeps painting
   until the new one arrives, where a lone new image left the glass flat navy
   for the length of the download. */
@media (min-width: 648px), (min-height: 810px) {
  .intro__glass {
    background-image: url("../img/r/hero-blur-mid.jpg"), url("../img/r/hero-blur-tall.jpg");
    background-image: image-set(url("../img/r/hero-blur-mid.webp") type("image/webp"), url("../img/r/hero-blur-mid.jpg") type("image/jpeg")),
                      image-set(url("../img/r/hero-blur-tall.webp") type("image/webp"), url("../img/r/hero-blur-tall.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1060px), (min-height: 1325px) {
  .intro__glass {
    background-image: url("../img/r/hero-blur-wide.jpg"), url("../img/r/hero-blur-mid.jpg");
    background-image: image-set(url("../img/r/hero-blur-wide.webp") type("image/webp"), url("../img/r/hero-blur-wide.jpg") type("image/jpeg")),
                      image-set(url("../img/r/hero-blur-mid.webp") type("image/webp"), url("../img/r/hero-blur-mid.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1700px), (min-height: 2125px) {
  .intro__glass {
    background-image: url("../img/r/hero-blur-xl.jpg"), url("../img/r/hero-blur-wide.jpg");
    background-image: image-set(url("../img/r/hero-blur-xl.webp") type("image/webp"), url("../img/r/hero-blur-xl.jpg") type("image/jpeg")),
                      image-set(url("../img/r/hero-blur-wide.webp") type("image/webp"), url("../img/r/hero-blur-wide.jpg") type("image/jpeg"));
  }
}
.intro__glass::before,
.intro__glass::after { content: ""; position: absolute; inset: 0; }
.intro__glass::before { background: rgba(4, 16, 28, .5); }     /* the hero's own overlay */
.intro__glass::after  { background: rgba(22, 42, 64, .48); }   /* the glass tint */

.intro__kicker {
  margin: 0;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-soft);
}
/* the two halves are in the type itself: one heavy, one light */
.intro__title {
  margin: .7rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 1.4rem + 4.4vw, 5.6rem);
  line-height: 1.04; letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.intro__title em { font-style: normal; font-weight: 400; color: var(--teal-soft); }
/* the one paragraph under the title, so it is set as a lead, not small print */
.intro__body {
  margin: clamp(1.1rem, 3vh, 1.9rem) 0 0; max-width: 44ch;
  font-size: clamp(1.02rem, .96rem + .45vw, 1.3rem); line-height: 1.6;
  color: rgba(234, 242, 246, .82);
  text-wrap: pretty;
}
.intro__cta { display: flex; flex-wrap: wrap; gap: .6rem .9rem; margin-top: clamp(.9rem, 2.2vh, 1.4rem); }

.intro__stats {
  list-style: none;
  margin: clamp(1.2rem, 3.2vh, 2.2rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.intro__stat { display: grid; gap: .3rem; }
.intro__stat-v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);
  line-height: 1; letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums lining-nums;
}
.intro__stat-v span { color: var(--teal-soft); }
.intro__stat-l {
  font-size: .7rem; font-weight: 600; line-height: 1.35;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--d-muted);
}
html.js:not(.no-anim) .intro__stat { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out), translate .8s var(--ease-out); }
html.js:not(.no-anim) .intro__stat.is-in { opacity: 1; translate: none; }

@media (min-width: 760px) {
  .intro__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .intro__foot { display: grid; grid-template-columns: minmax(0, 1.25fr) auto; column-gap: clamp(2rem, 5vw, 4rem); align-items: end; }
  .intro__cta { margin-top: clamp(1.4rem, 3.4vh, 2.2rem); justify-content: flex-end; }
}


/* The slide, driven by the browser from the scroll position itself: Chrome
   and Edge 115+, Safari 26.4+ run it off the main thread, in step with the
   finger. No script takes part, so there is nothing to lag a frame behind.
   Parked, the panel sits fully off screen and clipped by the stage.
   view-timeline-inset: 0 keeps the page's scroll-padding (kept for the fixed
   nav) out of it, and the range is measured from the top edge over a fixed
   length, so a phone's address bar appearing cannot nudge the panel
   sideways mid-slide. `animation` resets animation-timeline, so the timeline
   comes after it. The contain line stays as the fallback for a browser that
   cannot parse the line after it. */
@supports (animation-timeline: view()) {
  .intro-stage { view-timeline: --intro-stage block; view-timeline-inset: 0; }
  /* In from the right over the first stretch. */
  .intro {
    animation: intro-slide cubic-bezier(.65, 0, .35, 1) both;
    animation-timeline: --intro-stage;
    animation-range: exit-crossing 0% exit-crossing calc(var(--intro-stage-h) - 100svh);
  }
  /* THE EXIT. While the panel holds, the next section rises over it from
     the bottom (the hold is one screen: at its start the sheet's edge is at
     the foot of the screen, at its end at the top). The panel never shrinks
     or shows an edge. Instead its words leave ahead of the sheet, each
     block lifting and fading on its own beat, the lowest first, so the
     rising edge never slices through a line. The words all drift up together,
     as one, so no block ever slides over the one above it; only their fading
     is staggered. And the glass sinks into the
     page's own navy, so by the time the sheet is halfway up there is
     nothing behind it but the colour it is made of. Each block's beat ends
     before the sheet reaches where it sits, on a phone and on a laptop.
     `forwards`, not `both`: before its beat a block keeps its own reveal. */
  .intro__glass {
    animation: intro-hold cubic-bezier(.65, 0, .35, 1) both, intro-push linear forwards;
    animation-timeline: --intro-stage, --intro-stage;
    animation-range: exit-crossing 0% exit-crossing calc(var(--intro-stage-h) - 100svh),
                     exit-crossing calc(var(--intro-stage-h) - 100svh) exit-crossing calc(var(--intro-stage-h) - 40svh);
  }
  .intro__dim {
    animation: intro-dim cubic-bezier(.4, 0, .6, 1) both;
    animation-timeline: --intro-stage;
    animation-range: exit-crossing calc(var(--intro-stage-h) - 100svh) exit-crossing calc(var(--intro-stage-h) - 40svh);
  }
  html.js:not(.no-anim) .intro::before {
    animation: intro-edge linear forwards;
    animation-timeline: --intro-stage;
    animation-range: exit-crossing calc(var(--intro-stage-h) - 100svh) exit-crossing calc(var(--intro-stage-h) - 88svh);
  }
  html.js:not(.no-anim) .intro > .container {
    animation: intro-drift cubic-bezier(.45, 0, .55, 1) forwards;
    animation-timeline: --intro-stage;
    animation-range: exit-crossing calc(var(--intro-stage-h) - 100svh) exit-crossing calc(var(--intro-stage-h) - 40svh);
  }
  html.js:not(.no-anim) :is(.intro__top, .intro__foot, .intro__stats) {
    animation: intro-fade cubic-bezier(.4, 0, .6, 1) forwards;
    animation-timeline: --intro-stage;
  }
  html.js:not(.no-anim) .intro__stats  { animation-range: exit-crossing calc(var(--intro-stage-h) - 100svh) exit-crossing calc(var(--intro-stage-h) - 80svh); }
  html.js:not(.no-anim) .intro__foot   { animation-range: exit-crossing calc(var(--intro-stage-h) - 95svh) exit-crossing calc(var(--intro-stage-h) - 70svh); }
  html.js:not(.no-anim) .intro__top    { animation-range: exit-crossing calc(var(--intro-stage-h) - 80svh) exit-crossing calc(var(--intro-stage-h) - 48svh); }
  .intro-back {
    animation: intro-back linear both;
    animation-timeline: --intro-stage;
    animation-range: exit-crossing calc(var(--intro-stage-h) - 100svh - 2px) exit-crossing calc(var(--intro-stage-h) - 100svh);
  }
  .intro__shade {
    animation: intro-shade linear both;
    animation-timeline: --intro-stage;
    animation-range: contain 0% contain 6%;
    animation-range: exit-crossing 0px exit-crossing 64px;
  }
}
@keyframes intro-slide { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes intro-hold  { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes intro-shade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-dim    { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-push   { from { scale: 1; } to { scale: 1.06; } }
@keyframes intro-edge   { to { opacity: 0; } }
@keyframes intro-drift  { to { transform: translate3d(0, -11vh, 0) scale(.97); } }
@keyframes intro-fade   { to { opacity: 0; } }
@keyframes intro-back   { from { opacity: 0; } to { opacity: 1; } }

/* No slide in these modes, and nothing may move the panel or its layers: it
   sits where it lands, opaque, with its shadow simply on. A screen too short
   to hold the panel drops the pin as well, so nothing is ever cut off. */
html:not(.js) .intro-stage, html.no-anim .intro-stage { height: auto; margin-top: 0; }
html:not(.js) .intro-pin, html.no-anim .intro-pin { position: static; }
html:not(.js) .intro, html.no-anim .intro { min-height: 0; }
html:not(.js) .intro, html:not(.js) .intro__glass, html:not(.js) .intro__shade, html:not(.js) .intro__dim, html:not(.js) .intro-back,
html.no-anim .intro, html.no-anim .intro__glass, html.no-anim .intro__shade, html.no-anim .intro__dim, html.no-anim .intro-back { animation: none !important; transform: none !important; }
html:not(.js) :is(.intro > .container, .intro__top, .intro__foot, .intro__stats),
html.no-anim :is(.intro > .container, .intro__top, .intro__foot, .intro__stats) { animation: none !important; }
html:not(.js) .page-rest, html.no-anim .page-rest { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .intro, .intro__glass, .intro__shade, .intro__dim, .intro-back { animation: none; transform: none; }
  .intro::before, .intro > .container, .intro__top, .intro__foot, .intro__stats { animation: none !important; }
  html .page-rest { margin-top: 0; }   /* html: must beat the base rule further down */
}
@media (max-height: 600px) {
  .intro-stage { height: auto; margin-top: 0; overflow-x: visible; }
  .intro-pin { position: static; }
  .intro { min-height: 0; }
  .intro, .intro__glass, .intro__shade, .intro__dim, .intro-back { animation: none; transform: none; }
  .intro::before, .intro > .container, .intro__top, .intro__foot, .intro__stats { animation: none !important; }
  html .page-rest { margin-top: 0; }   /* html: must beat the base rule further down */
}
/* short screens: the same panel, tighter, so it still holds one screen */
@media (max-height: 780px) and (max-width: 900px) {
  .intro__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
  .intro__body { font-size: .98rem; line-height: 1.55; }
  .intro__stat-v { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
  .intro__stat-l { font-size: .62rem; letter-spacing: .1em; }
}


/* ---- Touch screens: one still photo, nothing moving sideways -------------
   The team photo stands still behind both the hero and "Who we are", and
   the scenes play in front of it as the reader scrolls. Two rules make it
   steady on a phone, learned the hard way:
   1. The page scrolls inside its own frame (.scroller), not the browser, so
      the address bar never slides and nothing pinned can jolt.
   2. Nothing in the scene moves sideways with the scroll. A finger on glass
      jitters up and down by a few pixels every frame; vertical jitter is
      invisible because the whole page moves with it, but any motion tied to
      the scroll in another direction (the old panel sliding in from the
      right) turns that jitter into a screen of text trembling sideways over
      a still photo. So the frost FADES in over the photo (opacity cannot
      jitter visibly) and the "Who we are" sheet RISES with the scroll like
      any other content, with no transform and no script moving it.
   The sequence over the frame's first three screens: the logo lifts and the
   words rise (main.js scrubs opacity and a small vertical lift, as on a
   laptop without scroll timelines); the frost (the pre-blurred photo with a
   blurred copy of the words) fades over the photo while the sheet rises; the
   sheet pins for a screen while Creative Solutions rises over it; then the
   photo is gone. Laptops keep the CSS scroll-driven version above. */
@media (prefers-reduced-motion: no-preference) and (min-height: 601px) {
  html.touch-ui.js:not(.no-anim), html.touch-ui.js:not(.no-anim) body { height: 100%; overflow: hidden; }
  html.touch-ui.js:not(.no-anim) .scroller {
    position: fixed; inset: 0;
    overflow-x: hidden; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
  }
  html.touch-ui.js:not(.no-anim) body.menu-open .scroller { overflow: hidden; }
  /* the frame's own height is the screen, so every length here is in svh:
     the hero is pinned for two screens of scroll, and the whole scene (the
     logo, the words, the frost and "Who we are", all inside that one pin)
     plays there; then it releases and Creative Solutions simply follows */
  html.touch-ui.js:not(.no-anim) { --hero-h: 300svh; }
  html.touch-ui.js:not(.no-anim) .intro-stage { height: auto; margin-top: 0; }
  html.touch-ui.js:not(.no-anim) .page-rest { margin-top: 0; }
  html.touch-ui.js:not(.no-anim) :is(.hero__logo, .hero__reveal, .hero__reveal [data-line]) { animation: none; }
  html.touch-ui.js:not(.no-anim) :is(.intro, .intro__glass, .intro__shade, .intro__dim, .intro-back, .intro > .container, .intro__top, .intro__foot, .intro__stats) { animation: none; }
  html.touch-ui.js:not(.no-anim) .intro::before { animation: none; }
  html.touch-ui.js:not(.no-anim) .hero__pin { overflow: clip; }   /* not a scroll container: WebKit keeps it on the fast sticky path */
  /* the frost: the pre-blurred photo (the .intro__glass backgrounds and
     overlays, picked by screen size) laid over the hero inside its pin, with
     a copy of the words blurred at paint time (a glyph's shadow is the glyph
     softened; a live filter would be re-blurred by the GPU every frame).
     main.js fades it in from the scroll. */
  html.touch-ui.js:not(.no-anim) .hero__pin .hero__frost {
    position: absolute; inset: 0; height: auto; min-height: 0; z-index: 5;
    display: grid; place-items: center;
    opacity: 0; will-change: opacity; pointer-events: none;
  }
  html.touch-ui.js:not(.no-anim) .hero__frost .hero__reveal { opacity: 1; animation: none !important; transform: none !important; }   /* main.js fades the copy out as the sheet covers it */
  html.touch-ui.js:not(.no-anim) .hero__frost [data-line] { opacity: 1 !important; transform: none !important; animation: none !important; }
  html.touch-ui.js:not(.no-anim) .hero__frost :is(.hero__title .l1, .hero__title .l2, .hero__sub) { -webkit-text-fill-color: transparent; text-shadow: 0 0 18px currentColor; }
  html.touch-ui.js:not(.no-anim) .hero__frost .hero__swoosh { filter: blur(6px); }
  html.touch-ui.js:not(.no-anim) .hero__frost .hero__cta { visibility: hidden; }
  /* "Who we are" appears from inside the frosted words: main.js moves the
     panel into the hero's pin, where it fades up in place (opacity, with a
     touch of growth from 96%), over the frost. Nothing of it moves with the
     scroll, so the finger's jitter has nothing to shake. */
  html.touch-ui.js:not(.no-anim) .hero__pin .intro {
    position: absolute; inset: 0; z-index: 6;
    min-height: 0; padding: calc(var(--nav-h) + 2vh) 0 4vh;
    display: flex; align-items: center;
    opacity: 0; transform: scale(.96);
    will-change: opacity, transform;
    visibility: hidden; pointer-events: none;
    background: rgba(22, 42, 64, .3);   /* lighter than the laptop panel: the frost under it is already tinted */
  }
  html.touch-ui.js:not(.no-anim) .hero__pin .intro.is-in { visibility: visible; pointer-events: auto; }
  html.touch-ui.js:not(.no-anim) .intro::before { display: none; }
  html.touch-ui.js:not(.no-anim) :is(.intro__clip, .intro__shade, .intro__dim, .intro-back) { display: none; }
  /* the sheet's content stands still: shown, not revealed */
  html.touch-ui.js:not(.no-anim) .intro .reveal { opacity: 1; transform: none; transition: none; }
  html.touch-ui.js:not(.no-anim) .intro [data-split].is-split .w__i { transform: none; transition: none; }
  html.touch-ui.js:not(.no-anim) .intro__stat { opacity: 1; translate: none; transition: none; }
}

/* Everything after the intro is one opaque sheet, and it arrives like one:
   pulled up by the intro's hold so it rises over the panel while the panel
   settles back, with rounded top corners, a teal edge catching the light,
   and a shadow cast up onto the panel. Painted once; it simply scrolls. */
.page-rest {
  position: relative; z-index: 3;
  margin-top: calc(var(--intro-hold) * -1);
  background: var(--d-bg);
  border-radius: clamp(22px, 1rem + 1.6vw, 36px) clamp(22px, 1rem + 1.6vw, 36px) 0 0;
  box-shadow: 0 -1px 0 rgba(115, 190, 198, .4), 0 -40px 70px -34px rgba(0, 0, 0, .8);
}
/* the first section lets the sheet's rounded corners show */
body.theme-dark .page-rest > #services { background: transparent; }
body.theme-dark .footer { position: relative; z-index: 3; }

@media (max-width: 700px) {
  :root { --hero-h: 340vh; }
  /* the About panel no longer has a phone variant: its glass is baked, so it
     costs a phone nothing and looks exactly as it does on a laptop */
}

/* No JS, or reduced motion: no pin, no overlap, no slide. Plain stacked page. */
html:not(.js) .hero, html:not(.js) .hero__pin { height: 100svh; }
html:not(.js) .intro-stage { height: auto; margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero, .hero__pin { height: 100svh; }
  .intro-stage { height: auto; margin-top: 0; }
  .intro-pin { position: static; }
  .intro { min-height: 0; }
}

/* Large editorial section headline on dark */
.dk-display { font-family: var(--font-display); font-weight: 700; color: #fff; line-height: 1.06; letter-spacing: -0.025em; font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); }
body.theme-dark .section-head p { color: var(--d-muted); }

/* Nav mark: the stacked lockup goes illegible at nav scale (the wordmark lands
   around 5px tall), so the bar carries the icon mark inside a white badge. The
   badge sizes it for every page now, so there is no dark-home override here.
   The full lockup still runs in the hero and footer. */

/* ============================================================
   EDITORIAL SECTION SYSTEM (home)
   A numbered header, a hairline rule, then the content. Every
   section shares this rhythm so the page reads as one document
   instead of a stack of unrelated cards.
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
  padding-bottom: clamp(2rem, 3.5vw, 3.2rem);
  border-bottom: 1px solid var(--d-line);
  margin-bottom: clamp(2.4rem, 4vw, 4rem);
}
.sec-head__body h2 { margin-top: 0; max-width: 17ch; }
.sec-head__body h2.wk-title { max-width: none; white-space: nowrap; }
.sec-head__body h2.wk-title > span:not(.w) { color: var(--teal-soft); }
.sec-head__lead { color: var(--d-muted); margin-top: 1rem; max-width: 54ch; font-size: 1.02rem; }
.sec-head__link {
  white-space: nowrap; color: var(--teal-soft); padding-bottom: .3rem;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .84rem;
  letter-spacing: .04em; transition: gap .3s var(--ease), color .3s ease;
}
.sec-head__link:hover { gap: .85em; color: #fff; }
@media (pointer: coarse) { .sec-head__link { padding: .8rem 0; margin-block: -.5rem -.3rem; } }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__link { justify-self: start; margin-top: .35rem; }
}

/* ============================================================
   SERVICES — stacking cards (Lenis-friendly sticky deck)
   Each card is position:sticky with a `top` stepped down by one lip,
   so as you scroll they land on each other and build a deck. Pure CSS
   — rides Lenis smoothing rather than fighting it.
   ============================================================ */
:root {
  --svc-stack-top: calc(var(--nav-h) + 1.15rem);
  --svc-lip: 28px;
  --svc-pitch: clamp(4.5rem, 20vh, 10rem);
  --svc-card-h: 340px;
}
/* auto below the desktop breakpoint: the band is boxless now, so a floor
   taller than the content just opens a gap between the copy and the spec row
   with nothing to fill it. The deck's lip offsets are fixed, so card height
   is free to follow content. */
@media (max-width: 900px) { :root { --svc-card-h: auto; } }

.sec-head__body h2.svc-title { max-width: none; }
.sec-head__body h2.svc-title > span:not(.w) { color: var(--teal-soft); }
/* the heading's words rise into place as the sheet arrives (data-split:
   main.js wraps each word; the head's reveal adds is-in) */
.sec-head [data-split].is-split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .07em .14em 0; margin: -.1em -.07em -.14em 0;
}
.sec-head [data-split].is-split .w__i { display: inline-block; }
html.js:not(.no-anim) .sec-head [data-split].is-split .w__i {
  transform: translate3d(0, 115%, 0);
  transition: transform 1.1s var(--ease-out) calc(var(--wi, 0) * 110ms + 140ms);
}
html.js:not(.no-anim) .sec-head.is-in [data-split].is-split .w__i { transform: none; }

.svc-stack {
  /* MUST stay flex, not grid — sticky needs a shared flex containing block. */
  display: flex;
  flex-direction: column;
  gap: var(--svc-pitch);
}
/* Holds the finished deck on screen before it releases. */
.svc-stack::after {
  content: "";
  display: block;
  height: clamp(2rem, 20vh, 8.5rem);
}

/* No box. Each service is a full-width band: no border, no radius, no panel,
   just a hairline and the type.

   The background still has to be OPAQUE, and that is not decoration. These
   are sticky and they land on each other, so a transparent band would show
   every previous service straight through it. It is a shade above the section
   rather than the same colour, so the stack edges stay readable as they pile. */
/* The card is deliberately quiet. Everything before this made the service
   title the loudest thing on the page, which is why the cards read as
   sections instead of items: at 1440 the card title was 78px against a 67px
   section heading. The section heading leads now and the card answers to it.

   The background is OPAQUE and that is not cosmetic: these are sticky and
   they land on each other, so a translucent card shows every service behind
   it straight through. */
.svc-card {
  position: sticky;
  min-height: var(--svc-card-h);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(225px, .85fr);
  gap: clamp(1.4rem, 3.2vw, 3.25rem);
  /* centred, not top-aligned: the tag cluster is much shorter than the copy
     and sitting it at the top left a void across the whole bottom right */
  align-items: center;
  background: #0A2642;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  padding: clamp(1.85rem, 1.3rem + 2.1vw, 3rem);
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .85);
  overflow: hidden;
  transition: border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}

.svc-card:nth-child(1) { top: var(--svc-stack-top); }
.svc-card:nth-child(2) { top: calc(var(--svc-stack-top) + var(--svc-lip)); }
.svc-card:nth-child(3) { top: calc(var(--svc-stack-top) + var(--svc-lip) * 2); }
.svc-card:nth-child(4) { top: calc(var(--svc-stack-top) + var(--svc-lip) * 3); }
.svc-card:nth-child(5) { top: calc(var(--svc-stack-top) + var(--svc-lip) * 4); }

.svc-card:hover {
  border-color: rgba(141, 209, 216, .34);
  background: #0D2E50;
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, .9);
}

.svc-card__body { display: flex; flex-direction: column; min-width: 0; }

/* The ordinal is a marker, not an ornament. The previous versions ran it at
   302px as a ghost behind the copy and as a filled pill beside the label;
   both made a counter into the loudest element on the card. Here it is set
   at label size, tabular, and tied to the category by a short rule. */
.svc-card__meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: clamp(.9rem, 1.8vw, 1.35rem);
}
.svc-card__num {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal-soft);
  font-variant-numeric: tabular-nums;
}
.svc-card__label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  transition: color .4s var(--ease);
}
.svc-card:hover .svc-card__label { color: #fff; }

/* Sentence case and roughly 0.46 of the section heading, so it sits under it
   in the hierarchy instead of competing with it. */
.svc-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  max-width: 20ch;
}
.svc-card__desc {
  margin: clamp(.7rem, 1.4vw, 1rem) 0 0;
  color: var(--d-muted);
  font-size: clamp(.98rem, .95rem + .2vw, 1.06rem);
  line-height: 1.65;
  max-width: 44ch;
}

.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-top: auto;
  padding-top: clamp(1.2rem, 2.4vw, 1.85rem);
  align-self: flex-start;
}
.svc-card__cta-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.svc-card__cta-label::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.5em; height: 1px;
  background: var(--teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.svc-card:hover .svc-card__cta-label::after { transform: scaleX(1); }
.svc-card__go {
  color: var(--teal-soft);
  font-size: .8rem;
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.svc-card:hover .svc-card__go { transform: translateX(6px); color: var(--teal-bright); }

/* Deliverables as outlined tags. Bullets and a dot-separated line both read
   as leftovers; tags read as things the studio actually does, and they fill
   the right of the card with shape rather than with more prose. */
.svc-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-content: center;
}
.svc-card__tags li {
  padding: .58em 1.05em;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, .72);
  transition: border-color .45s var(--ease), color .45s var(--ease),
              background .45s var(--ease), transform .45s var(--ease);
}
.svc-card:hover .svc-card__tags li {
  border-color: rgba(141, 209, 216, .38);
  background: rgba(141, 209, 216, .07);
  color: #fff;
  transform: translateY(-2px);
}
.svc-card__tags li:nth-child(1) { transition-delay: 0s; }
.svc-card__tags li:nth-child(2) { transition-delay: .045s; }
.svc-card__tags li:nth-child(3) { transition-delay: .09s; }
.svc-card__tags li:nth-child(4) { transition-delay: .135s; }
.svc-card__tags li:nth-child(5) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .svc-card__tags li,
}

@media (max-width: 820px) {
  .svc-card { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .svc-card__title { max-width: none; letter-spacing: -.015em; line-height: 1.18; }
  .svc-card__desc { max-width: none; }
  .svc-card__cta { padding-top: 1.1rem; }
}

@media (max-width: 480px) {
  .svc-card { padding: 1.6rem 1.35rem; border-radius: 16px; }
  .svc-card__tags li { padding: .5em .85em; font-size: .74rem; }
}

/* Flat only when a card genuinely cannot be read while pinned (initServiceStack
   decides, against the real phone's viewport) or when motion is reduced. A
   blanket max-height: 700px rule used to live here, and since a phone browser
   shows about 550-720px once its bars are counted, it switched the stacking
   deck off on nearly every real phone. */
.svc-stack.is-flat .svc-card { position: static; }
.svc-stack.is-flat { gap: 1.1rem; }
.svc-stack.is-flat::after { height: 0; }
@media (prefers-reduced-motion: reduce) {
  .svc-card { position: static; }
  .svc-stack { gap: 1.1rem; }
  .svc-stack::after { height: 0; }
}

/* ============================================================
   SECTION PALETTE — brand colours only
     Services      white
     Work          navy   #104068
     Testimonials  teal   #73BEC6
     Clients       white
     Closer        deep navy (page base)

   Each variant re-points the local tokens, which carry the rail,
   hairlines, dots and body copy, so most of the page re-tunes on
   its own. Only rules that hardcode #fff or a teal accent need an
   explicit flip.

   NOTE --d-card is deliberately NOT re-pointed. The services deck
   reads its card surface from it and those cards must stay opaque
   dark to cover each other; making them a pale tint would break
   the stacking outright. Surfaces are set explicitly instead.
   ============================================================ */
body.theme-dark .section--white { background: var(--cloud); --d-bg-2: var(--cloud); }
body.theme-dark .section--warm  { background: var(--mist); --d-bg-2: var(--mist); }
body.theme-dark .section--deep  { background: var(--d-bg); --d-bg-2: var(--d-bg); }
body.theme-dark .section--teal  { background: var(--teal); --d-bg-2: var(--teal); }
body.theme-dark .section--navy  { background: var(--navy); --d-bg-2: var(--navy); }
/* --shot has no flat colour of its own: the ground is the active project's
   photo. --d-bg is only the fallback under it if an image fails to load. */
body.theme-dark .section--shot  { background: var(--d-bg); --d-bg-2: var(--d-bg); }

/* ---- grounds that need DARK ink (white + teal) ---- */
body.theme-dark .section--white,
body.theme-dark .section--warm,
body.theme-dark .section--teal {
  color: var(--navy-900);
  --d-text:  var(--navy-900);
  --d-muted: rgba(7, 30, 51, 0.74);
  --d-line:  rgba(7, 30, 51, 0.16);
  --d-line-2: rgba(7, 30, 51, 0.32);
}
/* teal is a darker ground than white, so its hairlines need more weight */
body.theme-dark .section--teal { --d-line: rgba(7, 30, 51, 0.24); --d-line-2: rgba(7, 30, 51, 0.42); }

body.theme-dark .section--warm .eyebrow,
body.theme-dark .section--warm .sec-head__idx,
body.theme-dark .section--warm .sec-head__link,
body.theme-dark .section--white .eyebrow,
body.theme-dark .section--white .sec-head__idx,
body.theme-dark .section--white .sec-head__link,
body.theme-dark .section--teal  .eyebrow,
body.theme-dark .section--teal  .sec-head__idx,
body.theme-dark .section--teal  .sec-head__link { color: var(--navy); }

body.theme-dark .section--warm .dk-display,
body.theme-dark .section--warm .h3,
body.theme-dark .section--white .dk-display,
body.theme-dark .section--white .h3,
body.theme-dark .section--teal  .dk-display,
body.theme-dark .section--teal  .h3 { color: var(--navy-900); }

body.theme-dark .section--warm .sec-head__link:hover,
body.theme-dark .section--white .sec-head__link:hover,
body.theme-dark .section--teal  .sec-head__link:hover { color: var(--navy-900); }

/* client logos: force-inverted to white on dark, which would erase them here */
body.theme-dark .section--warm .marquee__item img,
body.theme-dark .section--white .marquee__item img,
body.theme-dark .section--teal  .marquee__item img { filter: grayscale(1); opacity: .6; }
body.theme-dark .section--warm .marquee__item img:hover,
body.theme-dark .section--white .marquee__item img:hover,
body.theme-dark .section--teal  .marquee__item img:hover { filter: none; opacity: 1; }

/* The deck cards stay dark navy on the white ground, so the section's
   dark-ink tokens must NOT reach inside them: doing so painted the card
   copy and chips dark-on-dark. Re-establish the dark-surface tokens at
   the card boundary. */
body.theme-dark .section--warm .svc-card,
body.theme-dark .section--white .svc-card {
  color: var(--d-text);
  --d-text:  #EAF2F6;
  --d-muted: rgba(233, 242, 246, 0.62);
  --d-line:  rgba(255, 255, 255, 0.12);
  --d-line-2: rgba(115, 190, 198, 0.30);
}

/* If this section is ever moved off the photo ground onto a light one, the
   copy, the buttons and the rail all need navy ink. The tiles do not: their
   captions sit on their own flat dark band whatever is behind them. */
body.theme-dark .section--warm .wk-lead__tag,
body.theme-dark .section--white .wk-lead__tag { color: var(--navy); }
body.theme-dark .section--warm .wk-lead__title,
body.theme-dark .section--white .wk-lead__title { color: var(--navy-900); }
body.theme-dark .section--warm .wk-lead__desc,
body.theme-dark .section--white .wk-lead__desc { color: rgba(7,30,51,.72); }
body.theme-dark .section--warm .wk-lead__cta,
body.theme-dark .section--white .wk-lead__cta { background: var(--navy-900); color: #fff; }
body.theme-dark .section--warm .wk-btn,
body.theme-dark .section--white .wk-btn { color: var(--navy-900); border-color: rgba(7,30,51,.24); }
body.theme-dark .section--warm .wk-btn:hover:not(:disabled),
body.theme-dark .section--white .wk-btn:hover:not(:disabled) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
body.theme-dark .section--warm .wk-count,
body.theme-dark .section--white .wk-count { color: rgba(7,30,51,.6); }
body.theme-dark .section--warm .wk-count__now,
body.theme-dark .section--white .wk-count__now { color: var(--navy-900); }
body.theme-dark .section--warm .wk-rail__line,
body.theme-dark .section--white .wk-rail__line { background: rgba(7,30,51,.16); }
body.theme-dark .section--warm .wk-rail__dot,
body.theme-dark .section--white .wk-rail__dot { background: rgba(7,30,51,.3); border-color: rgba(7,30,51,.45); }
body.theme-dark .section--warm .wk-rail__fill,
body.theme-dark .section--white .wk-rail__fill { background: var(--navy); box-shadow: 0 0 10px rgba(7,30,51,.22); }
body.theme-dark .section--warm .wk-rail__dot.is-lit,
body.theme-dark .section--white .wk-rail__dot.is-lit { background: var(--navy-900); border-color: var(--navy-900); box-shadow: 0 0 8px rgba(7,30,51,.3); }
body.theme-dark .section--warm .wk-rail__dot.is-current,
body.theme-dark .section--white .wk-rail__dot.is-current { background: var(--navy-900); border-color: var(--navy-900); box-shadow: 0 0 0 6px rgba(7,30,51,.14); }

/* ---- navy and photo grounds keep LIGHT ink, only the hairlines lift ---- */
body.theme-dark .section--navy,
body.theme-dark .section--shot {
  --d-line:  rgba(255, 255, 255, 0.17);
  --d-line-2: rgba(141, 209, 216, 0.45);
  --d-muted: rgba(255, 255, 255, 0.76);
}

/* ============================================================
   SELECTED WORK — one project per view, swipeable
   A native scroll-snap carousel: one card fills the viewport with a
   sliver of the next showing, so the swipe affordance is visible
   without a hint label. The rail to the left is the same vertical
   line as before, only now it is driven by the carousel instead of
   page scroll: the teal draws downward as you swipe and each dot
   ignites exactly as the line's head reaches it.

   Sizing is load-bearing. slide width = 100% - peek, and the track
   carries a trailing spacer of (peek - gap). That makes maxScroll
   land exactly on the last card's snap position, so progress runs a
   clean 0 to 1 and the final dot can actually be reached. Change
   one of those three and the rail stops touching the last dot.
   ============================================================ */
/* ---- the live backdrop -------------------------------------------------
   The section's ground is the active project's own photo rather than a flat
   colour. One veil carries the blur for all four layers via backdrop-filter,
   so swapping slides costs an opacity crossfade and nothing else: filtering
   each layer separately would have meant four full-section blur passes.
   --------------------------------------------------------------------- */
body.theme-dark .section--shot { position: relative; isolation: isolate; overflow: clip; }
body.theme-dark .section--shot > .container { position: relative; z-index: 1; }
body.theme-dark .section--shot { padding-block: clamp(3.75rem, 2rem + 5vw, 7.5rem); }

.wk-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wk-bg__layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* pushed out past the edges so the veil's blur never samples empty space
     and leaves a pale seam down the sides */
  scale: 1.12;
  opacity: 0;
  /* hidden layers are not painted at all (visibility, switched off only once
     the fade out has finished), so five full-section photos never cost more
     than the one on show and the one fading */
  visibility: hidden;
  transition: opacity 1.1s var(--ease-out), visibility 0s linear 1.1s;
}
.wk-bg__layer.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease-out), visibility 0s; }
.wk-bg__veil {
  position: absolute; inset: 0;
  /* No live blur. The layers underneath are photos blurred ahead of time
     (assets/img/r/*-blur), so painting a full-section backdrop-filter over
     them every frame bought nothing, and it was one of the most expensive
     things a phone did on this page. */
  background: rgba(8, 31, 52, .74);
}
/* no backdrop-filter (older Firefox, some Android webviews): fall back to a
   heavier flat scrim so the copy never lands on a busy photo */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wk-bg__veil { background: rgba(8, 30, 50, .9); }
}

/* Must sit AFTER the base rule above, not up with the other phone overrides:
   same specificity, so source order decides and the earlier one silently lost.
   26px of blur across a whole section is the most expensive thing this page
   asks a phone GPU for. */
@media (prefers-reduced-motion: reduce) { .wk-bg__layer { transition: none; } }

/* ============================================================
   SELECTED WORK — a strip you swipe; the card in front tells its story
   The strip is a native scroll-snap scroller, so a finger or a trackpad
   moves it with the browser's own momentum. Whichever card is in front
   drives the story beside it (under it, on a phone), the section's blurred
   photo backdrop, and the progress line. Cards grow and brighten as they
   travel into the front slot and sink back as they leave it, tied to the
   strip's scroll itself (the @supports block below), so the focus follows
   the finger instead of jumping after it lets go.
   On a phone the strip comes first and runs edge to edge, and the story sits
   right under it, where the thumb is. On a laptop the story takes the left
   and the strip runs off the right edge of the screen, so there is always
   another card showing.

   Sizing is load-bearing: main.js gives the track a trailing spacer
   (--wk-tail) so the LAST card can reach the front slot. Without it the
   strip stops short and the last project can never be selected.
   ============================================================ */
.wk {
  --wk-gap:  clamp(.8rem, 1.6vw, 1.4rem);
  --wk-card: min(84vw, 24rem);
  --wk-pad:  var(--gutter);          /* where the card in front sits */
  display: grid;
  grid-template-areas: "strip" "info";
  row-gap: clamp(1.1rem, 3vw, 2rem);
}

/* ---- the strip ------------------------------------------------------- */
.wk-viewport {
  grid-area: strip;
  margin-inline: calc(var(--gutter) * -1);     /* edge to edge on a phone */
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--wk-pad);
  scrollbar-width: none; -ms-overflow-style: none;
  /* keeps a sideways fling inside the strip instead of firing the browser's
     swipe-to-go-back gesture */
  overscroll-behavior-x: contain;
  cursor: grab;
  padding-block: clamp(.8rem, 2vw, 1.4rem);
}
.wk-viewport::-webkit-scrollbar { display: none; }
.wk-viewport:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: -2px; border-radius: 20px; }
/* snapping is off mid-drag, or the browser yanks the card back while the
   pointer is still moving */
.wk.is-drag .wk-viewport { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.wk-track {
  display: flex; align-items: center; gap: var(--wk-gap);
  list-style: none; margin: 0; padding: 0 0 0 var(--wk-pad);
}
/* align-self:stretch is load-bearing: Chrome counts a zero-height box as
   empty however wide it is, and the spacer would add nothing to the scroll */
.wk-track::after { content: ""; flex: 0 0 var(--wk-tail, 0px); align-self: stretch; }
.wk-slide { flex: 0 0 var(--wk-card); scroll-snap-align: start; scroll-snap-stop: always; }

/* ---- a card ---------------------------------------------------------- */
.wkc {
  position: relative; display: block; overflow: hidden;
  /* landscape, the shape every project's cover is made in, so a cover
     shows whole instead of being cut down to a tall slice */
  aspect-ratio: 16 / 10;
  border-radius: clamp(16px, .8rem + .5vw, 22px);
  background: var(--d-card);
  transform-origin: 50% 60%;
  /* where the browser cannot tie the focus to the scroll, main.js marks the
     card in front and the others sit back */
  scale: .88; opacity: .55;
  transition: scale .55s var(--ease), opacity .55s var(--ease);
}
.wk-slide.is-active .wkc { scale: 1; opacity: 1; }
/* display:block is required: this is a <span>, and a transform on an
   inline box silently does nothing */
.wkc__media { position: absolute; inset: 0; display: block; overflow: hidden; }
.wkc__frame { position: relative; display: block; height: 100%; transform: translateY(102%); transition: transform 1.2s var(--ease-out); }
.wkc__frame > picture, .wkc__frame > picture img { display: block; width: 100%; height: 100%; }
.wkc__frame > picture img { object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) { .wk-slide.is-active .wkc:hover .wkc__frame > picture img { transform: scale(1.05); } }
/* the client's own logo in the bottom corner, on a dark fade rising from
   the card's foot: a real mark reads as work done for a real brand. The
   one gradient on the site, asked for here; many stops, so it eases out
   with no visible edge. The marks are white (Riviera's crest keeps its
   colours, it has its own white edge), each with its own height (--lh) so
   a tall crest and a wide wordmark carry the same weight. It sits inside
   the frame, so it rises with the picture, and where the browser can tie
   it to the strip the fade and the logo come in together as the card
   reaches the front and go as it leaves. */
.wkc__logo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 46%;
  display: flex; align-items: flex-end;
  padding: 0 clamp(.95rem, .75rem + .6vw, 1.25rem) clamp(.95rem, .75rem + .6vw, 1.25rem);
  background: linear-gradient(to top,
    rgba(6, 16, 28, .9) 0%, rgba(6, 16, 28, .78) 18%, rgba(6, 16, 28, .56) 38%,
    rgba(6, 16, 28, .3) 60%, rgba(6, 16, 28, .1) 82%, rgba(6, 16, 28, 0) 100%);
  pointer-events: none;
}
.wkc__logo picture { display: contents; }
.wkc__logo img { display: block; width: auto; height: var(--lh, 1.8rem); max-width: 9rem; }

/* ---- the story of the card in front ----------------------------------- */
.wk-info { grid-area: info; display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
/* every story shares one cell, so the block never changes height as
   they swap */
.wk-lead { display: grid; }
.wk-lead__item {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .5s;
}
.wk-lead__item.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease-out) .08s, transform .7s var(--ease-out) .08s, visibility 0s;
}
.wk-lead__tag {
  margin: 0;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-soft);
}
.wk-lead__title {
  margin: .6rem 0 0;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
.wk-lead__desc {
  margin: .8rem 0 0; max-width: 40ch;
  font-size: clamp(.97rem, .94rem + .2vw, 1.08rem); line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  text-wrap: pretty;
}
.wk-lead__cta {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; margin-top: 1.2rem; padding: .8rem 1.35rem;
  border-radius: 999px;
  background: var(--teal-bright); color: #06283d;
  font-family: var(--font-body); font-size: .93rem; font-weight: 700; line-height: 1.2;
  transition: background-color .3s var(--ease), gap .3s var(--ease);
}
.wk-lead__cta svg { width: 1.05em; height: 1.05em; flex: none; }
.wk-lead__cta:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 4px; }
@media (hover: hover) { .wk-lead__cta:hover { background: #fff; gap: .8rem; } }

/* ---- the progress line and the arrows --------------------------------- */
.wk-ctrl { display: flex; align-items: center; gap: 1rem; }
.wk-prog {
  flex: 1; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .16);
}
.wk-prog__fill {
  display: block; height: 100%;
  background: var(--teal-bright);
  transform-origin: 0 50%;
  transform: scaleX(calc(1 / var(--wk-n, 6)));
}
.wk-btns { display: flex; gap: .5rem; }
.wk-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.wk-btn svg { width: 18px; height: 18px; }
.wk-btn:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
.wk-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .wk-btn:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--navy-900); } }

/* ---- entrance ----------------------------------------------------------
   The cards off the strip are clipped by the scroller, so an
   IntersectionObserver would never see them; the block is revealed as one
   and the pictures rise in order. */
html.js .wk.is-in .wk-slide .wkc__frame { transform: none; transition-delay: calc(var(--i) * .08s + .05s); }
html:not(.js) .wkc__frame { transform: none; }

/* ---- a laptop: the story on the left, the strip off the right edge ---- */
@media (min-width: 900px) {
  .wk {
    --wk-card: clamp(22rem, 32vw, 34rem);
    --wk-pad: 0px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "info strip";
    column-gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: center;
  }
  .wk-viewport { margin-inline: 0 calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter))); }
}

/* ---- focus and progress, tied to the strip's own scroll ------------------
   Each card is a view timeline across the strip: small and dim as it
   enters from the right, full size and bright in the front slot (where it
   starts to exit, measured from the strip's scroll-padding), and sinking
   back as it leaves. The progress line runs on the strip's scroll timeline,
   lifted to the whole block by timeline-scope. All of it off the main
   thread; main.js does the progress line by hand where this is missing. */
@supports (animation-timeline: view()) {
  .wk-slide { view-timeline: --wk-card inline; }
  html.js:not(.no-anim) .wkc { transition: none; animation: wk-focus linear both; animation-timeline: --wk-card; }
  html.js:not(.no-anim) .wkc__logo { animation: wk-fade linear both; animation-timeline: --wk-card; }
  html.js:not(.no-anim) .wkc__logo img { animation: wk-logo linear both; animation-timeline: --wk-card; }
}
@supports (animation-timeline: scroll()) and (timeline-scope: --a) {
  .wk { timeline-scope: --wk-strip; }
  .wk-viewport { scroll-timeline: --wk-strip inline; }
  html.js:not(.no-anim) .wk-prog__fill { animation: wk-prog linear both; animation-timeline: --wk-strip; }
}
@keyframes wk-focus {
  entry 0%  { scale: .84; opacity: .4; }
  exit 0%   { scale: 1;   opacity: 1; }
  exit 100% { scale: .84; opacity: .2; }
}
@keyframes wk-fade {
  entry 0%  { opacity: 0; }
  exit 0%   { opacity: 1; }
  exit 100% { opacity: 0; }
}
@keyframes wk-logo {
  entry 0%  { translate: 0 .6rem; }
  exit 0%   { translate: 0 0; }
  exit 100% { translate: 0 .6rem; }
}
@keyframes wk-prog { from { transform: scaleX(calc(1 / var(--wk-n, 6))); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .wkc, .wkc__frame, .wkc__logo, .wkc__logo img, .wk-lead__item, .wk-prog__fill { transition: none !important; animation: none !important; }
  .wkc__frame { transform: none; }
  .wk-viewport { scroll-behavior: auto; }
}

/* ============================================================
   PERFORMANCE METRICS — animated rings + bars (signature effect)
   ============================================================ */

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
/* Legacy dashboard metrics (scoped). About panel uses .ag-stat instead. */
.metrics-grid .metric {
  position: relative; background: transparent; border: 0;
  border-top: 1px solid var(--d-line);
  padding: clamp(1.8rem, 2.6vw, 2.6rem) 0 0; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .5s var(--ease), border-color .5s var(--ease);
}
html:not(.js) .metrics-grid .metric { opacity: 1; transform: none; }
.metrics-grid .metric.is-in { opacity: 1; transform: none; }
.metrics-grid .metric::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--teal-bright); transition: width 1.3s var(--ease) .2s;
}
.metrics-grid .metric.is-in::before { width: 55%; }

.metric-ring { position: relative; width: clamp(112px, 30vw, 140px); aspect-ratio: 1; margin-bottom: 1.2rem; }
.metric-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.metric-ring .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.metric-ring .bar { fill: none; stroke: var(--teal-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 5px rgba(115,190,198,.4)); transition: stroke-dashoffset 1.7s var(--ease); }
.metrics-grid .metric.is-in .metric-ring .bar { stroke-dashoffset: calc(100 - var(--pct, 0)); }
.metric-ring__val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 1.9rem); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }

.metric-bars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.4vw, 7px); width: 100%; height: clamp(112px, 30vw, 140px); margin-bottom: 1.2rem; }
.metric-bars span { flex: 0 0 auto; width: clamp(8px, 2.4vw, 13px); height: 0; border-radius: 5px 5px 2px 2px; background: var(--teal-bright); transition: height .9s var(--ease); }
.metric__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.metric__num .unit { color: var(--teal-soft); }
.metrics-grid .metric__label { margin-top: auto; padding-top: .95rem; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.metric__desc { margin-top: .3rem; font-size: .82rem; color: var(--d-muted); }

/* ============================================================
   FEATURED WORK — cards linking to case studies (home)
   ============================================================ */
.workfeat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.workfeat__card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--d-card); border: 1px solid var(--d-line); }
.workfeat__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.workfeat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.workfeat__card:hover .workfeat__media img { transform: scale(1.06); }
.workfeat__media::after { content: ""; position: absolute; inset: 0; background: rgba(4, 16, 28, .45); }
.workfeat__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.3rem, 3vw, 2rem); z-index: 2; }
.workfeat__tag { font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-soft); }
.workfeat__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: #fff; margin: .35rem 0 .3rem; letter-spacing: -0.01em; }
.workfeat__desc { font-size: .9rem; color: rgba(255,255,255,.72); max-width: 42ch; }
.workfeat__cta { display: inline-flex; align-items: center; gap: .5em; margin-top: .9rem; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.workfeat__cta i { transition: transform .3s var(--ease); }
.workfeat__card:hover .workfeat__cta i { transform: translateX(4px); }

/* ============================================================
   DARK FAQ overrides
   ============================================================ */
body.theme-dark .faq { border-top-color: var(--d-line); }
body.theme-dark .faq__item { border-bottom-color: var(--d-line); }
body.theme-dark .faq__q { color: #fff; }
body.theme-dark .faq__q .ic { border-color: var(--d-line-2); color: var(--teal-soft); }
body.theme-dark .faq__item.is-open .faq__q .ic { background: var(--teal-bright); color: #06283d; border-color: var(--teal-bright); }
body.theme-dark .faq__a-inner { color: var(--d-muted); }

/* Enquiry panel styles live in main.css so every page can open Interested? */

/* ============================================================
   CUSTOM CURSOR (subtle accent ring; fine-pointer only)
   ============================================================ */
.cursor { position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.cursor.is-visible { opacity: 1; }
.cursor__ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(115,190,198,0.7); border-radius: 50%; transition: width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease); }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--teal-bright); background: rgba(115,190,198,0.08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ============================================================
   RESPONSIVE — home additions
   ============================================================ */
@media (max-width: 960px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .workfeat { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: 1fr; gap: .9rem; }
  .metrics-grid .metric { padding: 1.6rem 1.1rem; }
  /* keep the hero eyebrow off the screen edges */
}

/* Respect reduced motion for the added effects */
@media (prefers-reduced-motion: reduce) {
  .metrics-grid .metric,
  .ag-stat { opacity: 1; transform: none; }
  .metric-ring .bar { transition: none; }
  .metric-bars span { transition: none; }
  .ag-stat__bar > span { transition: none; width: var(--pct, 0%); }
  .cursor { display: none !important; }
}

/* ============================================================
   LOW-EFFECTS TIER
   Set by the inline script in each page's <head>, before first paint.

   Every backdrop-filter comes off here. Blur is not tunable down to free: a
   full-screen one recomposites the whole area every frame the backdrop moves,
   which is exactly what scrolling does. The transforms stay, because the
   compositor handles those without touching the main thread.

   Removing the blur means the photos behind these panels are now SHARP, so
   each tint has to do the legibility work the blur was doing. That is what
   the heavier alpha values below are for; they are not a style choice.
   ============================================================ */
html.lowfx .wk-bg__veil,
html.lowfx .nav__inner,
html.lowfx .ipanel-overlay,
html.lowfx .svc-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* FULLY OPAQUE, and that is a correctness fix rather than a performance one.
   This panel slides over the pinned hero. The blur was not just softening the
   hero, it was destroying it; take the blur away and a translucent scrim lets
   the hero's headline read straight through the About copy. Opaque also means
   the compositor never samples what is behind it, so it is the cheaper path
   as well. */
html.lowfx .wk-bg__veil {
  background: rgba(8, 30, 50, .9);
}
html.lowfx .nav__inner { background: rgba(7, 24, 38, .96); }
html.lowfx .ipanel-overlay { background: rgba(3, 13, 24, .86); }
html.lowfx .svc-card {
  background: #0A2642;
}

/* The work backdrop is a scaled photo layer that has to be re-rastered as the
   section moves. Without the blur softening it there is no reason to keep it
   oversized either. */
html.lowfx .wk-bg__layer { scale: 1; }
/* And it has to be dialled back: the blur was what turned this photo into
   atmosphere. Left sharp it competes with the copy sitting on top of it.
   Opacity is a compositor property, so this softens it for free. */
html.lowfx .wk-bg__layer.is-on { opacity: .36; }

/* Shadows are cheap to declare and expensive to paint over a large blurred
   spread; on the tier that is already struggling they earn nothing. */
html.lowfx .svc-card,

/* ============================================================
   FOOTER ACTIONS
   All that survives of the CTA panel: the two things it was actually for.
   They live in the mark column, which was carrying a logo and ~300px of
   nothing, so the footer does not grow to accommodate them.
   ============================================================ */
.ft__mark { display: flex; flex-direction: column; gap: clamp(1.4rem, 3vw, 2.2rem); }
.ft__markLink { display: inline-block; }

.ft__act { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.ft__cta {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.5em; border-radius: 999px;
  background: var(--teal-bright); color: #06283d;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), gap .35s var(--ease), transform .35s var(--ease);
}
.ft__cta i { font-size: .85em; }
.ft__cta:hover { background: #fff; gap: 1.05em; }
.ft__cta:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

@media (max-width: 980px) {
  /* the mark column spans the top here, so the actions go beside the logo
     rather than under it */
  .ft__mark { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.25rem; }
}
@media (max-width: 600px) {
  .ft__mark { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .ft__act { width: 100%; }
  .ft__cta { justify-content: center; width: 100%; }
}

/* ============================================================
   CLIENTS STRIP

   Replaces a row of 280x180 cards that took 63% of a laptop screen to show
   five logos and 64% of a phone screen to show two. Now one framed strip: the
   label on one side, the ten logos running continuously on the other.

   Mobile first. The base rules are the phone layout, with the label stacked
   above the logos; the 900px query only puts them side by side.

   Each logo carries --f, set in the markup from its trimmed content: its
   aspect ratio to the power -0.4. Exactly equal area (-0.5) left the long
   wordmarks 19px tall on a phone; -0.4 is the usual optical compromise, so a
   wide wordmark neither shouts over a square badge nor shrinks to a line.

   No gradients: the strip's own frame clips the moving logos, so nothing has
   to fade out at the edges.
   ============================================================ */
/* the deep navy the footer used to carry; the footer now takes the brighter
   brand navy, so the two swapped places at the client's request */
body.theme-dark .cl-sec {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  background: var(--navy-900);
}

.cl-strip {
  display: grid;
  background: #fff;
  border: 1px solid rgba(16, 64, 104, .1);
  border-radius: 22px;
  overflow: hidden;              /* this is what clips the moving logos */
}

.cl-label {
  padding: 1.3rem 1.35rem 1.15rem;
  border-bottom: 1px solid rgba(16, 64, 104, .1);
}
body.theme-dark .cl-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.1; letter-spacing: -.015em;
  color: var(--navy);
}
body.theme-dark .cl-title span { color: var(--teal-bright); }
body.theme-dark .cl-lead {
  margin: .4rem 0 0;
  font-size: .88rem; line-height: 1.5;
  color: var(--muted);
}

.cl-marquee {
  --cl-logo: 44px;               /* base logo height; a square logo gets this */
  --cl-gap: 2.4rem;
  --cl-dur: 30s;
  display: flex; align-items: center;
  overflow: hidden;
  padding-block: 1.3rem;
  outline: none;
}
.cl-marquee:focus-visible { box-shadow: inset 0 0 0 2px var(--teal-bright); }

/* Two identical tracks side by side, each sliding left by its own width, so
   the copy lands exactly where the original started and the loop has no seam.
   The right padding keeps the gap between the copies equal to the rest. */
.cl-track {
  list-style: none; margin: 0;
  padding: 0 var(--cl-gap) 0 0;
  display: flex; align-items: center; gap: var(--cl-gap);
  flex: none;
  animation: cl-run var(--cl-dur) linear infinite;
  will-change: transform;
}
@keyframes cl-run { to { transform: translate3d(-100%, 0, 0); } }

.cl-logo { flex: none; display: grid; place-items: center; height: calc(var(--cl-logo) * 1.14); }
/* every logo in its own colours, on the strip's white */
.cl-logo img {
  display: block;
  height: calc(var(--cl-logo) * var(--f, 1)); width: auto; max-width: none;
}

/* Without the script: stops while hovered on a laptop, while focused (a tap,
   on a phone), and whenever it is off screen (.is-off). With it (.is-js),
   main.js moves the tracks itself: the same steady drift, and it goes
   wherever it is pushed. A finger or the mouse drags it either way and can
   fling it; a trackpad's sideways swipe and the arrow keys move it too. The
   page still scrolls up and down over it (pan-y). */
.cl-marquee.is-js { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.cl-marquee.is-js.is-drag { cursor: grabbing; }
.cl-marquee.is-js .cl-track { animation: none; }
.cl-marquee.is-js img { -webkit-user-drag: none; user-select: none; }
.cl-marquee:hover .cl-track,
.cl-marquee:focus-within .cl-track,
.cl-marquee:focus .cl-track,
.cl-marquee.is-off .cl-track { animation-play-state: paused; }


/* reduced motion: no movement at all, just the ten logos set out in rows */
@media (prefers-reduced-motion: reduce) {
  .cl-marquee { flex-wrap: wrap; justify-content: center; padding-inline: 1.2rem; }
  .cl-track { animation: none; flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 1.1rem; padding: 0; }
  .cl-track[aria-hidden="true"] { display: none; }
}

@media (min-width: 900px) {
  .cl-strip { grid-template-columns: minmax(230px, 27%) minmax(0, 1fr); }
  .cl-label {
    display: flex; flex-direction: column; justify-content: center;
    padding: 1.7rem 1.8rem;
    border-bottom: 0; border-right: 1px solid rgba(16, 64, 104, .1);
  }
  .cl-marquee { --cl-logo: 54px; --cl-gap: 3.4rem; --cl-dur: 38s; padding-block: 1.8rem; }
}

/* ---- the cursor's word (Drag, View), shared by every page ------------------- */
.cursor__label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%) scale(.5); opacity: 0;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; line-height: 1; letter-spacing: .04em;
  white-space: nowrap;
  color: #071E33;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cursor.is-view .cursor__ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; border-color: var(--teal-bright); background: var(--teal-bright); }
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
