/* ==========================================================================
   Home page sections
   ========================================================================== */

/* ---------- loading screen (js/loader.js) ----------
   White cover with the logomark in the middle; it morphs into the hero logo and hands over. No scrolling meanwhile. */
.loader { display: none; }
.has-loader .loader { display: block; position: fixed; inset: 0; z-index: 100; background: var(--bg); }
.has-loader .loader svg { position: absolute; overflow: visible; animation: loader-in .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.has-loader.loader-done .loader { display: none; }
.has-loader:not(.loader-done), .has-loader:not(.loader-done) body { overflow: hidden; }
@keyframes loader-in { from { opacity: 0; scale: .6; } }
/* the loader lands exactly on the hero logo, so the logo itself doesn't do its own fade-up */
.has-loader .hero-logo { translate: 0 0; transition: none; opacity: 0; }
.has-loader.loader-done .hero-logo { opacity: 1; }

/* ---------- 01 Hero ---------- */
/* the hero is the 1440×1024 Figma frame, scaled to fit; the fixed nav lines up with it because both start at the top */
/* the hero only needs to hold the logo and tagline (the character is on its own pinned layer), so it ends
   just under the tagline and the About text comes straight in from the bottom as soon as you scroll */
.hero { position: relative; height: calc(var(--hero-h) * var(--u)); overflow: hidden; background: var(--bg); --hero-h: 600; }
.hero-stage { position: absolute; left: 50%; top: 0; width: calc(1440 * var(--u)); height: calc(1024 * var(--u)); transform: translateX(-50%); }
.hero-logo { position: absolute; left: 50%; top: calc(190 * var(--u)); width: calc(761 * var(--u)); transform: translateX(-50%); }
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-line {
  position: absolute; left: 50%; top: calc(443 * var(--u)); width: calc(778 * var(--u)); transform: translateX(-50%);
  text-align: center; font-size: calc(36 * var(--u)); line-height: 1.2; letter-spacing: -.01em; font-weight: 500; color: var(--ink-2);
}
/* the character sits on its own layer pinned to the screen (same frame as the hero at the top of the page),
   so it doesn't scroll with the page; it slides out the bottom when scrolling starts and back in at the top */
.hero-char-layer {
  position: fixed; z-index: 5; left: 50%; top: 0; width: calc(1440 * var(--u)); height: calc(1024 * var(--u));
  transform: translateX(-50%); overflow: hidden; pointer-events: none;
}
.hero .char { left: calc(121 * var(--u)); top: calc(587 * var(--u)); }
/* exit/return motion (anticipation + stretch) is animated in js/home.js; it stretches about the screen's bottom edge */
.hero .char { transform-origin: 50% 36.5%; }
/* the cursor turns into the "Book a call" box while over the character */
.hero .char .body { cursor: none; }

/* entrance */
.hero-logo, .hero-line { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
.hero-line { transition-delay: .15s; }
.hero .char { translate: 0 30%; transition: translate 1.4s var(--ease) .25s; }
.ready .hero-logo, .ready .hero-line { opacity: 1; translate: 0 0; }
/* with type animation on, the tagline's words bring themselves in (js/type.js) instead of the whole line fading up */
.ta-on .hero-line { opacity: 1; translate: 0 0; transition: none; }
.ready .hero .char { translate: 0 0; }

/* ---------- 02 About → ticker → showreel ---------- */
.about { position: relative; height: 290svh; }   /* scroll timing in js/home.js (aboutScroll) */
.about-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.about-stage { position: absolute; left: 50%; top: 50%; width: calc(1440 * var(--u)); height: calc(1024 * var(--u)); transform: translate(-50%, -50%); }
/* (About) heading: fixed to the screen, so it never scrolls; it plays in where it sits once the hero text has left
   (js/home.js), and fades out as the showreel takes over */
.about-kicker { position: fixed; z-index: 5; left: 50%; top: max(calc(50svh + (72 - 512) * var(--u)), 16px); transform: translateX(-50%); }   /* 72 down the centred 1024-tall frame */
.about-kicker:not(.in) { visibility: hidden; }
.about-text {
  position: absolute; left: calc(44 * var(--u)); width: calc(675 * var(--u));
  top: calc(var(--tt, 424) * var(--u) - var(--rpx, 0px));
  font-size: max(calc(32 * var(--u)), 18px); line-height: 1.19; letter-spacing: -.015em; font-weight: 500; color: var(--ink);
  opacity: var(--to, 1);
}
.ticker {
  position: absolute; left: 50%; width: 100vw; transform: translateX(-50%);
  top: calc(var(--kt, 734) * var(--u)); height: max(calc(40 * var(--u)), 28px);
  overflow: hidden; opacity: var(--ko, 1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; align-items: center; height: 100%; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: max(calc(56 * var(--u)), 28px); padding-right: max(calc(56 * var(--u)), 28px); }
.ticker-item img { height: calc(var(--h) * var(--u) * 1.05); min-height: 18px; width: auto; filter: grayscale(1) invert(var(--inv)); opacity: .62; transition: opacity .3s ease; }
.ticker-item img:hover { opacity: 1; }
.ticker-item svg { width: max(calc(18 * var(--u)), 13px); height: auto; }
@keyframes ticker { to { transform: translateX(-50%); } }

.reel {
  position: absolute; left: calc(44 * var(--u)); width: calc(1353 * var(--u));
  top: calc(var(--rt, 807) * var(--u)); bottom: calc(43 * var(--u));
  background: var(--purple); overflow: hidden;
}
.reel video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.reel video.on { opacity: 1; }
.reel-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--bg); font-size: max(calc(20 * var(--u)), 14px); font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  opacity: var(--lo, 0); transition: opacity .3s ease;
}
.reel-sound { position: absolute; right: calc(24 * var(--u)); bottom: calc(20 * var(--u)); color: #fff; font-size: 13px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; }

/* ---------- 03 Work (curved carousel, from work-proto.html / Figma "curved carousel test") ----------
   One screen tall, not pinned: the wheel moves the carousel only over the band of cards, anywhere else the page scrolls.
   The stage is the 1440×1024 Figma frame scaled to fit; the cards run on past it to the screen edges. */
/* slightly sticky: the section is 1.4 screens tall and its content sticks for the extra 0.4, so scrolling on doesn't
   leave Work straight away */
.work { position: relative; }
.work:not(.is-list) { height: 140vh; height: 140svh; }
.work-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.work-kicker { position: absolute; z-index: 30; left: 50%; top: max(calc(49 * var(--u)), 16px); transform: translateX(-50%); }
.work-stage { position: absolute; left: 50%; top: 50%; width: 1440px; height: 1024px; transform-origin: 0 0; }
.work-stage, .work-card { touch-action: pan-y; }
.work-cards { position: absolute; inset: 0; perspective: 1600px; }
.work-card { position: absolute; left: 0; top: 0; overflow: hidden; cursor: pointer; will-change: transform, width, height; background: color-mix(in srgb, var(--ink) 15%, var(--bg)); }
.work-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.work-ui { position: absolute; inset: 0; z-index: 200; pointer-events: none; will-change: transform, opacity; }
/* project text, Figma: tags 157, title 202, description 296, link 399 at x 143 */
.work-info { position: absolute; left: 143px; top: 157px; width: 500px; color: var(--ink); }
.work-info .slot { opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .35s var(--ease); }
.work-info .slot.on { opacity: 1; transform: none; }
.work-info .slot.out-up { transform: translateY(-10px); }
.work-tags { font-size: 20px; line-height: 1.2; }
.work-title { margin-top: 21px; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.work-title span { display: block; font-size: 24px; font-weight: 400; }
.work-desc { margin-top: 26px; width: 300px; font-size: 20px; line-height: 1.2; }
/* "See full project": a purple block wipes in from the left and the label slides into it. The block carries a white
   copy of the label revealed by a moving clip-path mask, so each letter (and the arrow) turns white exactly as the
   edge passes over it. The arrow shoots off to the right and fades as the wipe completes. */
.work-more { position: relative; isolation: isolate; display: inline-block; height: 39px; margin-top: 25px; font-size: 20px; line-height: 39px; font-weight: 500; pointer-events: auto; }
.work-more .wm-fill { position: absolute; left: 0; top: 0; bottom: 0; right: -42px; background: var(--purple, #6b58f6); color: var(--bg); clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); pointer-events: none; }
.work-more .wm-lbl { position: relative; display: inline-block; white-space: nowrap; transition: translate .45s var(--ease); }
.work-more .wm-fill .wm-lbl { position: absolute; left: 0; top: 0; }
.work-more .wm-arr { position: absolute; left: calc(100% + 9px); top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .45s var(--ease), opacity .3s var(--ease); }
.work-more:hover .wm-fill, .work-more:focus-visible .wm-fill { clip-path: inset(0 0 0 0); }
.work-more:hover .wm-lbl, .work-more:focus-visible .wm-lbl { translate: 23px 0; }
/* going in the arrow accelerates away; coming back (rule above) it uses the same fast-then-settle curve as the wipe */
.work-more:hover .wm-arr, .work-more:focus-visible .wm-arr { translate: 70px 0; opacity: 0; transition: translate .45s cubic-bezier(.6, 0, .9, .4), opacity .25s ease .2s; }
.work-ctrl { position: absolute; left: 1276px; top: 928px; display: flex; gap: 8px; pointer-events: auto; }
.work-ctrl button { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.work-ctrl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work-ctrl button:hover { background: var(--purple, #6b58f6); border-color: var(--purple, #6b58f6); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .work-more .wm-fill, .work-more .wm-lbl, .work-more .wm-arr { transition: none; } }

/* ---------- 04 Services ---------- */
/* One slide per service, stacked. Scrolling turns them like a big wheel whose hub sits far below the screen: the current
   slide swings off to the left and dips while the next swings in from the right (JS sets the hub and the turn).
   Click the purple card and the pair spreads: it tips left, the detail card swings out wide from behind and sweeps back
   in on top. Both cards lean a little toward the cursor (JS, via the translate / rotate properties). */
/* Services sits above Testimonials: the two overlap for Services' last screen of scroll (see home.js), where the
   last card rolls off and the testimonials come in underneath, so the pin goes see-through and lets clicks through */
.services { position: relative; z-index: 2; height: 400svh; }
.services.is-out { pointer-events: none; }
.services.is-out .services-pin { background: transparent; }
.services-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }
.services-kicker { position: absolute; z-index: 5; left: 50%; top: max(calc(49 * var(--u)), 16px); transform: translateX(-50%); }
.services-track { position: absolute; inset: 0; }
.svc { position: absolute; inset: 0; will-change: transform, opacity; }
.svc:not(.cur) { pointer-events: none; }
.svc-stage { --s: calc(544 * var(--u)); position: absolute; left: 50%; top: 50%; width: calc(1440 * var(--u)); height: calc(1024 * var(--u)); transform: translate(-50%, -50%); perspective: calc(1100 * var(--u)); }
.svc-word {
  position: absolute; font-size: calc(96 * var(--u)); line-height: calc(101 * var(--u)); letter-spacing: -.05em; font-weight: 600; color: var(--ink);
  white-space: nowrap; transition: opacity .35s ease, translate .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
/* Figma: words sit 302 from the centre line; each word's top comes from SERVICES[].wordTop (set per slide as --t1..--t3) */
.svc-word.w1 { right: calc(50% + 302 * var(--u)); top: calc(var(--t1, 225) * var(--u)); }
.svc-word.w2 { left: calc(50% + 302 * var(--u)); top: calc(var(--t2, 225) * var(--u)); }
.svc-word.w3 { left: calc(50% + 302 * var(--u)); top: calc(var(--t3, 701) * var(--u)); }
.svc-card {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  padding: calc(40 * var(--u)); color: var(--bg); text-align: left; will-change: transform, translate, rotate;
}
.svc-front { z-index: 2; background: var(--purple); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
             transition: transform .5s cubic-bezier(.45, 0, .35, 1); }
.svc-front p { width: calc(338 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.25; letter-spacing: -.015em; }
.svc-front small { font-size: calc(16 * var(--u)); line-height: normal; white-space: nowrap; }   /* Figma: one line */
.svc-front small b { font-weight: 700; }
.svc-back { z-index: 1; background: var(--purple-deep); display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
            transition: transform .4s cubic-bezier(.3, .7, .3, 1); }
/* Figma: title 64 / 101 line, box nudged 5 left and 26 up from the 40 padding; label 12 sits 14 above the list */
.svc-back h3 { margin: calc(-26 * var(--u)) 0 0 calc(-5 * var(--u)); font-size: calc(64 * var(--u)); line-height: calc(101 * var(--u)); letter-spacing: -.05em; font-weight: 600; white-space: nowrap; }
.svc-back h4 { font-size: calc(12 * var(--u)); line-height: normal; font-weight: 400; margin-bottom: calc(14 * var(--u)); }
.svc-back ul { list-style: none; display: flex; flex-direction: column; gap: calc(9 * var(--u)); }
.svc-back li { position: relative; padding-left: calc(18 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.375; }
.svc-back li::before { content: ''; position: absolute; left: 0; top: .45em; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border: 1px solid currentColor; border-radius: 50%; }
/* hover (Figma "Hover", judged from the pointer against the resting square): the detail card peeks out from behind
   tipped 7°, and the words step 38 out to the sides */
.svc { --b-rest: none; }
.svc.hover { --b-rest: rotate(7deg); }
.svc.hover:not(.open) .svc-back, .svc:not(.open):has(.svc-front:focus-visible) .svc-back { transform: rotate(7deg); }
.svc.hover .w1, .svc:has(.svc-front:focus-visible) .w1 { translate: calc(-38 * var(--u)) 0; }
.svc.hover .w2, .svc.hover .w3, .svc:has(.svc-front:focus-visible) .w2, .svc:has(.svc-front:focus-visible) .w3 { translate: calc(38 * var(--u)) 0; }
/* open: the pitch card swings left; the detail card swings out wide to the right from behind, then sweeps back in on top */
/* Figma "Click" end poses: pitch card (-229, 0) at -12°, detail card (262, -16) at 8°, on top */
.svc.open .svc-front { transform: translate(calc(-229 * var(--u)), calc(-.3 * var(--u))) rotate(-12deg); }
.svc.open .svc-back { animation: svB-out .95s both; }
.svc.is-closing .svc-back { animation: svB-in .85s both; }
.svc.is-closing .svc-front { transition-delay: .3s; }   /* the pitch card waits until the detail card is out of its way */
@keyframes svB-out {
  0%   { z-index: 1; transform: var(--b-rest); animation-timing-function: cubic-bezier(.45, 0, .35, 1); }
  52%  { z-index: 1; transform: translate(calc(var(--s) * .76), calc(var(--s) * -.01)) rotate(16deg); animation-timing-function: steps(1, end); }
  53%  { z-index: 3; transform: translate(calc(var(--s) * .76), calc(var(--s) * -.01)) rotate(16deg); animation-timing-function: cubic-bezier(.25, .6, .3, 1); }
  100% { z-index: 3; transform: translate(calc(262.1 * var(--u)), calc(-15.8 * var(--u))) rotate(8deg); }
}
@keyframes svB-in {
  0%   { z-index: 3; transform: translate(calc(262.1 * var(--u)), calc(-15.8 * var(--u))) rotate(8deg); animation-timing-function: cubic-bezier(.45, 0, .35, 1); }
  45%  { z-index: 3; transform: translate(calc(var(--s) * .76), calc(var(--s) * -.01)) rotate(16deg); animation-timing-function: steps(1, end); }
  46%  { z-index: 1; transform: translate(calc(var(--s) * .76), calc(var(--s) * -.01)) rotate(16deg); animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
  100% { z-index: 1; transform: var(--b-rest); }   /* lands on the hover pose if the pointer is still over the cards */
}
/* open: the three words slide in toward the cards and fade */
.svc.open .svc-word { opacity: 0; }
.svc.open .w1 { translate: calc(70 * var(--u)) 0; }
.svc.open .w2, .svc.open .w3 { translate: calc(-70 * var(--u)) 0; }
/* the dots are one button: the whole group (gaps and a margin round it included) is the click target */
.services-dots {
  --pad: max(calc(14 * var(--u)), 10px); --dot: max(calc(15 * var(--u)), 11px); --gap: calc(9 * var(--u)); --step: calc(var(--dot) + var(--gap));
  position: absolute; left: 50%; top: calc(50% + 448 * var(--u)); transform: translateX(-50%); display: flex; gap: var(--gap); z-index: 5;
  padding: var(--pad); margin-top: calc(var(--pad) * -1); cursor: pointer; border-radius: calc(var(--pad) + 8px);
}
.services-dots span { display: block; width: var(--dot); height: var(--dot); border-radius: 50%; background: color-mix(in srgb, var(--ink) 50%, var(--bg)); transition: background .3s ease, scale .3s var(--ease); }
.services-dots span.on { background: var(--purple); scale: 1.1; }
/* hover: all four turn purple (the whole group is the button) */
.services-dots:hover span, .services-dots:focus-visible span { background: var(--purple); }
/* all four at once (click the dots): the single card fades out while the four cards fly in from outside the screen,
   each from its own corner, into a 2x2 grid
   (Figma: 420x350 at 261/758 x 129/545 on the 1440x1024 frame) and the dots gather into a 2x2 square.
   Each card leans toward the cursor on its own (translate / rotate set from home.js). */
/* the single card sits back in depth while the four are out (smaller, faded); as the four fly off it comes up toward
   you, growing back to full size as it fades in. Going the other way it sinks back as it fades. */
.services-track { transition: opacity .5s cubic-bezier(.4, 0, .2, 1) .2s, scale 1s cubic-bezier(.16, .84, .24, 1) .14s; }
/* sinking back: the shrink starts straight away and the fade trails it, so you see it go back before it's gone */
.services.is-grid .services-track { opacity: 0; scale: .72; pointer-events: none; transition: opacity .5s cubic-bezier(.4, 0, .6, 1) .12s, scale .8s cubic-bezier(.3, 0, .2, 1); }
.svc-grid { position: absolute; left: 50%; top: 50%; width: calc(1440 * var(--u)); height: calc(1024 * var(--u)); transform: translate(-50%, -50%); perspective: calc(1400 * var(--u)); pointer-events: none; z-index: 4; }
.services.is-grid .svc-grid { pointer-events: auto; }
.svcg-card {
  position: absolute; width: calc(420 * var(--u)); height: calc(350 * var(--u)); background: var(--purple); color: var(--bg); cursor: pointer;
  /* parked outside the screen, out past its own corner (--dx / --dy), turned a little */
  visibility: hidden; transform: translate(calc(var(--dx) * 62vw), calc(var(--dy) * 78svh)) rotate(calc(var(--dx) * var(--dy) * 9deg));
  transition: transform .7s cubic-bezier(.45, 0, .7, .35) calc((3 - var(--gi)) * 40ms), visibility 0s linear .9s, background .25s ease;
  will-change: transform, translate, rotate;
}
.services.is-grid .svcg-card { visibility: visible; transform: none; transition: transform .9s cubic-bezier(.16, .84, .24, 1) calc(var(--gi) * 70ms), visibility 0s, background .25s ease; }
.svcg-card:nth-child(1) { left: calc(261 * var(--u)); top: calc(129 * var(--u)); --dx: -1; --dy: -1; }
.svcg-card:nth-child(2) { left: calc(758 * var(--u)); top: calc(129 * var(--u)); --dx: 1; --dy: -1; }
.svcg-card:nth-child(3) { left: calc(261 * var(--u)); top: calc(545 * var(--u)); --dx: -1; --dy: 1; }
.svcg-card:nth-child(4) { left: calc(758 * var(--u)); top: calc(545 * var(--u)); --dx: 1; --dy: 1; }
.svcg-card .gw { position: absolute; font-size: calc(60 * var(--u)); line-height: 1; letter-spacing: -.05em; font-weight: 600; white-space: nowrap; pointer-events: none;
                  /* leaving: the words wait for the copy to fade before they travel back up through its space */
                  transition: translate .7s cubic-bezier(.65, 0, .25, 1) calc(140ms + var(--wd, 0) * 1ms); }
.svcg-card .g1 { left: calc(27 * var(--u)); top: calc(20 * var(--u)); }
.svcg-card .g2 { right: calc(29 * var(--u)); top: calc(20 * var(--u)); }
.svcg-card .g3 { right: calc(29 * var(--u)); bottom: calc(20 * var(--u)); }
/* hover (Figma): the three words leave their corners and line up as a two-line headline at the bottom-left
   ("Build the" / "Brand"); the offsets (--hx / --hy) are measured in home.js. The pitch comes in above, line by line. */
.svcg-card:hover .gw, .svcg-card:focus-visible .gw { translate: var(--hx, 0) var(--hy, 0); transition-delay: calc(var(--wd, 0) * 1ms); }
.svcg-card .gp {
  position: absolute; left: calc(31 * var(--u)); top: calc(30 * var(--u)); width: calc(340 * var(--u));
  font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -.01em; text-align: left;
  opacity: 0; transition: opacity .14s ease; pointer-events: none;
}
/* without the line-by-line reveal (no GSAP / reduced motion) the copy just fades in once the words have moved down */
.svcg-card:hover .gp, .svcg-card:focus-visible .gp { opacity: 1; transition: opacity .3s ease .35s; }
.ta-on .svcg-card:hover .gp, .ta-on .svcg-card:focus-visible .gp { transition: none; }
@media (prefers-reduced-motion: reduce) { .svcg-card .gw { transition: none; } }
/* four-dot state: the two middle dots stay put and the outer two drop in under them (the arc there and back is
   animated in js/home.js; these are the end poses). The button grows down to keep the whole square clickable. */
/* the square is lifted by one step as it forms, so its bottom row sits where the single row was (same bottom margin) */
.services-dots { transition: translate .56s cubic-bezier(.45, 0, .2, 1); }
.services.is-grid .services-dots { padding-bottom: calc(var(--pad) + var(--step)); translate: 0 calc(var(--step) * -1); }
/* in the four-dot state they rest grey and turn purple on hover, like the row */
.services.is-grid .services-dots span { background: color-mix(in srgb, var(--ink) 50%, var(--bg)); scale: 1; }
.services.is-grid .services-dots:hover span, .services.is-grid .services-dots:focus-visible span { background: var(--purple); }
.services.is-grid .services-dots span:first-child { transform: translate(var(--step), var(--step)); }
.services.is-grid .services-dots span:last-child { transform: translate(calc(var(--step) * -1), var(--step)); }
@media (prefers-reduced-motion: reduce) { .services-track, .services.is-grid .services-track, .svcg-card, .services.is-grid .svcg-card { transition: none; } }

/* ---------- 05 Testimonials ---------- */
/* slightly sticky: the section is 1.4 screens tall and its content holds still for the extra 0.4 */
.voices { position: relative; z-index: 1; height: 140vh; height: 140svh; }   /* height and overlap set in home.js */
.voices-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.voices-stage { position: absolute; left: 50%; top: 50%; width: calc(1440 * var(--u)); height: calc(1024 * var(--u)); transform: translate(-50%, -50%); }
.voices-title {
  position: absolute; left: 0; right: 0; top: calc(473 * var(--u)); text-align: center;
  font-size: max(calc(72 * var(--u)), 30px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; color: var(--ink);
}
.vb {
  position: absolute; border-radius: 50%; background: var(--purple); transform: translate(-50%, -50%);
  width: calc(var(--d) * var(--u)); height: calc(var(--d) * var(--u)); will-change: transform;
}
.vb.has { cursor: pointer; }
.vb .ph {
  position: absolute; inset: calc(10 * var(--u)); border-radius: 50%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(.6); transition: opacity .45s ease, transform .55s var(--ease);   /* quick, so faces hand over briskly */
}
.vb.peek .ph, .vb.has:hover .ph, .vb.has:focus-visible .ph, .vb.held .ph { opacity: 1; transform: scale(1); }
/* no photo: the person's initials on a lighter purple (Figma "Testimonial Card" placeholder) */
.vb .ph.ini, .vc-face.ini { display: grid; place-items: center; background: color-mix(in srgb, var(--purple) 80%, var(--bg)); color: var(--bg); font-weight: 400; letter-spacing: -.02em; }
.vb .ph.ini { font-size: calc(var(--d) * .26 * var(--u)); }
/* the bubble's face, drawn on the card while it opens out of / folds back into the bubble */
.vc-face { position: absolute; border-radius: 50%; background-size: cover; background-position: center; pointer-events: none; }
.voices-card {
  position: absolute; z-index: 10; left: calc(var(--cx) * var(--u)); top: calc(var(--cy) * var(--u));
  width: calc(698 * var(--u)); min-height: calc(330 * var(--u)); padding: calc(36 * var(--u));
  background: var(--purple); color: var(--bg); display: flex; gap: calc(40 * var(--u));
  /* it opens out of the bubble and closes back into it: a clip-path morph run from home.js */
}
.voices-card[hidden] { display: none; }
.vc-quote { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.vc-quote strong { font-size: calc(26 * var(--u)); line-height: calc(30 * var(--u)); letter-spacing: -.02em; font-weight: 500; }
.vc-quote p { font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); color: color-mix(in srgb, var(--bg) 85%, transparent); }
.vc-who { display: flex; flex-direction: column; align-items: flex-end; gap: calc(4 * var(--u)); text-align: right; }
.vc-who img, .vc-who .vc-ini { width: calc(160 * var(--u)); height: calc(160 * var(--u)); object-fit: cover; margin-bottom: calc(8 * var(--u)); }
.vc-who .vc-ini { display: grid; place-items: center; background: color-mix(in srgb, var(--purple) 80%, var(--bg)); font-size: calc(48 * var(--u)); letter-spacing: -.02em; }
.vc-who b { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.01em; }
.vc-who span { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); font-weight: 500; }
.vc-who i { font-style: normal; font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- small screens (no mobile design yet: keep it usable) ---------- */
@media (max-width: 760px) {
  .hero { height: 100svh; min-height: 560px; }
  .hero-stage { width: 100vw; height: 100%; }
  .hero-logo { top: 21svh; width: 84vw; }
  .hero-line { top: calc(21svh + 30vw); width: 86vw; font-size: 19px; }
  .hero-char-layer { width: 100vw; height: max(100svh, 560px); }
  .hero .char { width: 150vw; left: -25vw; top: auto; bottom: -100vw; }

  .work.is-list .work-pin { position: static; height: auto; overflow: visible; padding: 64px 20px 24px; }
  .work.is-list .work-kicker { position: static; transform: none; text-align: center; margin-bottom: 24px; }
  .work-list { list-style: none; display: flex; flex-direction: column; gap: 44px; }
  .work-list a { display: flex; flex-direction: column; gap: 8px; }
  .work-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; background: #111; }
  .wl-tags { font-size: 14px; color: var(--mute); }
  .wl-title { font-size: 22px; letter-spacing: -.02em; }
  .wl-title b { font-weight: 700; }
  .wl-desc { font-size: 16px; line-height: 1.4; }
  .wl-more { font-size: 16px; font-weight: 500; margin-top: 4px; }

  .about { height: 230svh; }
  .about-stage { width: 100vw; height: 100svh; }
  .about-text { left: 20px; width: calc(100vw - 40px); top: calc(var(--tt, 620) / 1024 * 100svh - var(--rpx, 0px)); font-size: 20px; }
  .ticker { top: calc(var(--kt, 734) / 1024 * 100svh); }
  .ticker-item img { height: calc(var(--h) * .75px); }
  .reel { left: 20px; width: calc(100vw - 40px); top: calc(var(--rt, 807) / 1024 * 100svh); bottom: 4svh; }

  .services { height: 400svh; }
  .svc-stage { width: 100vw; height: 100svh; }
  .svc-word { font-size: 44px; line-height: 46px; }
  .svc-word.w1 { right: auto; left: 20px; top: 14svh; }
  .svc-word.w2 { left: auto; right: 20px; top: 14svh; }
  .svc-word.w3 { left: auto; right: 20px; top: auto; bottom: 14svh; }
  .svc-card { padding: 18px; }
  .svc-stage { --s: 78vw; }
  .svc-front p { width: auto; font-size: 16px; }
  .svc-front small, .svc-back li { font-size: 12px; }
  .svc-back h3 { margin: 0; font-size: 30px; line-height: 1.1; }
  .svc-front small { white-space: normal; }
  .svc-back h4 { font-size: 11px; }
  .svc.open .svc-front { transform: translate(0, -22vw) rotate(-6deg) scale(.86); }
  .svc.open .svc-back { z-index: 3; transform: translate(0, 24vw) rotate(4deg); }
  .svc.open .svc-back, .svc.is-closing .svc-back { animation: none; }
  .services-dots { top: auto; bottom: 5svh; --gap: 9px; }

  .voices-stage { width: 100vw; height: 100%; }
  .voices-title { top: 45%; padding: 0 20px; font-size: 32px; }
  .voices-card { left: 16px !important; right: 16px; top: 8svh !important; width: auto; min-height: 0; flex-direction: column-reverse; padding: 20px; gap: 16px; }
  .vc-quote strong { font-size: 20px; line-height: 1.2; }
  .vc-quote p { font-size: 14px; line-height: 1.5; }
  .vc-who { flex-direction: row; align-items: center; text-align: left; gap: 10px; flex-wrap: wrap; }
  .vc-who img, .vc-who .vc-ini { width: 52px; height: 52px; margin: 0; }
  .vc-who .vc-ini { font-size: 18px; }
  .vc-who b { font-size: 16px; line-height: 1.2; }
  .vc-who span, .vc-who i { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-logo, .hero-line, .hero .char { transition: none; translate: 0 0; opacity: 1; }
}

/* Services' four cards on their way out when scrolling back up to Work (fixed over the page, Work plays in behind) */
.svcg-leave { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.svcg-leave .svcg-card { pointer-events: none; }
