/* ==========================================================================
   Home page styles. Desktop is built on the 1440px Figma canvas; between
   900px and 1440px the hero/services/testimonials canvases scale with --hs
   (set by js/main.js). Under 900px the layout is rebuilt in flow.
   ========================================================================== */

/* ---------- shared keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cardIn { from { opacity: 0; translate: 0 90px; } to { opacity: 1; translate: 0 0; } }
@keyframes ringsBreath { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
@keyframes lineIn { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 60px 40px; } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
@keyframes pop { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }

/* ==========================================================================
   Zone = hero + clients share the ambient glow background
   ========================================================================== */
.zone { position: relative; overflow: hidden; background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(1421px * var(--hs, 1)); }
.hero__stage {
  position: absolute; left: 50%; top: 0;
  width: 1440px; height: 1421px; margin-left: -720px;
  transform: scale(var(--hs, 1)); transform-origin: 50% 0;
}
.hero__glows { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glows .glow-field {
  height: 2100px;
  -webkit-mask-image: linear-gradient(#000 0, #000 1450px, transparent 2020px);
  mask-image: linear-gradient(#000 0, #000 1450px, transparent 2020px);
}
.hero__band { position: absolute; left: 519px; top: 0; width: 403px; height: 836px; background: rgba(255, 255, 255, 0.42); }
.hero__vline {
  position: absolute; top: 0; width: 1px; height: 856px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 77%, rgba(255, 255, 255, 0));
}
.hero__vline--l { left: 342px; }
.hero__vline--r { left: 1356px; }

/* left decorative ticks */
.tick {
  position: absolute; right: calc(100% - var(--x)); width: 200vw; height: 1px;
  background: #bdbdbd; transform-origin: right center;
  animation: lineIn 1.4s var(--ease-out) both; animation-delay: calc(.6s + var(--x) / 400);
}
.tick::after {
  content: ""; position: absolute; right: -2.67px; top: -2.17px; width: 5.33px; height: 5.33px; border-radius: 50%; background: #bdbdbd;
}
.tick--blue { background: linear-gradient(90deg, var(--c-navy) calc(100% - 116px), var(--c-blue)); }
.tick--blue::after { background: var(--c-blue); }

/* title */
.hero__title {
  position: absolute; left: 50%; top: 170px; transform: translateX(-50%);
  width: 600px; display: flex; flex-direction: column; align-items: center;
  font-weight: 400; z-index: 2;
}
.hero__title { --t1: 60px; --t2: 40px; --tc1: var(--c-ink); --tc2: var(--c-navy); }
.hero__title[data-size="h2"] { --t1: 48px; --t2: 32px; }
.hero__title[data-size="h3"] { --t1: 38px; --t2: 26px; }
.hero__title[data-size="p"] { --t1: 28px; --t2: 20px; }
.hero__title-line { display: block; overflow: hidden; font-size: var(--t1); line-height: 90px; font-weight: 300; text-align: center; white-space: nowrap; color: var(--tc1); transition: font-size 0.45s var(--ease-out), color 0.3s; }
.rise { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }
.hero__title-box {
  position: relative; overflow: hidden;
  display: block; width: 450px; height: 70px; border-radius: 15.29px;
  background: rgba(0, 36, 126, 0.06);
  font-size: var(--t2); line-height: 70px; color: var(--tc2); text-align: center; font-weight: 400;
  transition: font-size 0.45s var(--ease-out), color 0.3s;
  animation: fadeUp 1s var(--ease-out) both; animation-delay: var(--d, 0s);
}
/* formatting applied by the toolbar */
.hero__title.is-bold .hero__title-line, .hero__title.is-bold .hero__title-box { font-weight: 700; }
.hero__title.is-italic { font-style: italic; }
.hero__title.is-underline .hero__title-line .rise, .hero__title.is-underline .hero__title-box > span {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.hero__title[data-color="navy"]     { --tc1: #00247e; --tc2: #00247e; }
.hero__title[data-color="blue"]     { --tc1: #0c5adb; --tc2: #0c5adb; }
.hero__title[data-color="cyan"]     { --tc1: #00a9b5; --tc2: #00a9b5; }
.hero__title[data-color="gradient"] .hero__title-line .rise, .hero__title[data-color="gradient"] .hero__title-box > span {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-decoration-color: var(--c-blue);
}

/* ---------- Formatting toolbar (Figma "Function Bar") ---------- */
.ftool {
  position: absolute; left: 50%; top: 342px; margin-left: -138px; z-index: 5;
  display: flex; align-items: center; gap: 4px; width: 276px; height: 37px; padding: 0 4px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04), 0 24px 40px -16px rgba(0, 0, 0, 0.08);
  font-family: var(--f-ui); animation: fadeUp 1s var(--ease-out) 0.7s both;
}
.ftool__wrap { position: relative; }
.ftool__btn, .ftool__icon {
  display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 6px;
  color: #a4a4a4; transition: background 0.2s, color 0.2s;
}
.ftool__btn:hover, .ftool__icon:hover { background: rgba(0, 0, 0, 0.05); color: #141414; }
.ftool__btn--heading { width: 100px; justify-content: space-between; padding: 0 6px 0 10px; font-size: 14px; font-weight: 500; letter-spacing: -0.28px; color: #141414; }
.ftool__btn--color { width: 46px; gap: 2px; color: #141414; }
.ftool__btn[aria-expanded="true"] { background: rgba(12, 90, 219, 0.08); }
.ftool__chev { color: #a4a4a4; transition: transform 0.3s var(--ease-out); }
.ftool__btn[aria-expanded="true"] .ftool__chev { transform: rotate(180deg); }
.ftool__icon { width: 28px; }
.ftool__icon[aria-pressed="true"] { background: rgba(12, 90, 219, 0.1); color: var(--c-blue); }
.ftool__div { width: 1px; height: 16px; margin: 0 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.08); }
.ftool__a-bar { fill: var(--ftool-color, transparent); }
.ftool__menu, .ftool__swatches {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 6; margin: 0; padding: 6px;
  background: #fff; border-radius: 12px; list-style: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 12px 32px -8px rgba(0, 36, 126, 0.25);
  transform-origin: top left; animation: pop 0.22s var(--ease-out) both;
}
.ftool__menu[hidden], .ftool__swatches[hidden] { display: none; }
.ftool__menu { min-width: 150px; }
.ftool__menu li { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: #141414; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.ftool__menu li:hover, .ftool__menu li:focus-visible { background: rgba(12, 90, 219, 0.07); outline: 0; }
.ftool__menu li[aria-selected="true"] { color: var(--c-blue); font-weight: 500; }
.ftool__menu li[aria-selected="true"]::after { content: "✓"; font-size: 12px; }
.ftool__swatches { display: flex; gap: 8px; padding: 10px; left: auto; right: 0; }
.ftool__swatches button { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease-out); }
.ftool__swatches button:hover { transform: scale(1.18); }
.ftool__swatches button.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-blue); }
.hero__title-box::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-120%); animation: sweep 3.6s ease-in-out 1.6s infinite;
}

/* rings */
.hero__rings {
  position: absolute; left: 50%; top: 634px; width: 941px; height: 360px; margin-left: -470px;
  max-width: none; z-index: 1; animation: ringsBreath 9s ease-in-out infinite;
}

/* fan of testimonial cards */
.fan { position: absolute; left: 50%; top: 401px; width: 889px; height: 450px; margin-left: -444px; z-index: 2; }
.tcard {
  position: absolute; left: 50%; top: 50%; width: 290.844px; height: 450px; margin: -225px 0 0 -145.42px;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  translate: calc(var(--mx, 0) * var(--k) * 22px) calc(var(--my, 0) * var(--k) * -10px);
  transition: translate 0.6s var(--ease-out);
}
.tcard:hover { z-index: 6; }
.tcard__float {
  animation: cardIn 1.2s var(--ease-out) calc(0.45s + var(--i) * 0.16s) both,
    bob 7s ease-in-out calc(2.4s + var(--i) * 0.7s) infinite;
}
.tcard__wrap {
  position: relative; width: 100%; height: 450px; border-radius: 19.39px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 0.8px rgba(0, 0, 0, 0.04), 0 0.8px 1.6px rgba(0, 0, 0, 0.06), 0 3.2px 4.8px rgba(0, 0, 0, 0.04), 0 32px 32px -19px rgba(0, 0, 0, 0.06);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.tcard__wrap::before { content: ""; position: absolute; inset: 3.23px; border-radius: 16.16px; background: #000; }
.tcard:hover .tcard__wrap { transform: scale(1.045); box-shadow: 0 0 0 0.8px rgba(0, 0, 0, 0.06), 0 40px 60px -18px rgba(0, 36, 126, 0.35); }
.tcard__bg { position: absolute; inset: 3.23px; border-radius: 16.16px; overflow: hidden; clip-path: inset(0 round 16.16px); }
.tcard__bg img {
  position: absolute; inset: -25.85px; width: calc(100% + 51.7px); height: calc(100% + 51.7px);
  max-width: none; object-fit: cover; opacity: 0.4; filter: blur(4px);
  transition: transform 1.2s var(--ease-out);
}
.tcard:hover .tcard__bg img { transform: scale(1.08); }
.tcard__photo {
  position: absolute; left: 51.7px; top: 51.7px; width: 187.44px; height: 187.44px;
  border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 0.8px rgba(255, 255, 255, 0.1);
}
.tcard__photo img { position: absolute; inset: auto; left: -32.5%; top: -32.5%; width: 165%; height: 165%; object-fit: cover; max-width: none; transition: transform 1s var(--ease-out); }
.tcard--1 .tcard__photo img { top: -29%; }
.tcard--2 .tcard__photo img { top: -23%; }
.tcard__photo .tcard__photo-img--crop { inset: auto; width: 202.85%; height: 135.22%; left: -50.89%; top: -17.8%; object-fit: fill; }
.tcard:hover .tcard__photo img:not(.tcard__photo-img--crop) { transform: scale(1.08); }
.tcard__body { position: absolute; left: 35.54px; right: 35.54px; top: 255.3px; height: 159px; text-align: center; color: #fff; }
.tcard__title {
  position: absolute; left: 0; right: 0; top: 6px;
  font-family: var(--f-serif); font-weight: 300; font-size: 21px; line-height: 26px; letter-spacing: -0.8px;
  font-variation-settings: "SOFT" 0, "WONK" 1; white-space: nowrap;
}
.tcard__body hr { position: absolute; left: 0; right: 0; top: 46px; height: 0.8px; margin: 0; border: 0; background: rgba(255, 255, 255, 0.16); }
.tcard__desc { position: absolute; left: 0; right: 0; top: 60px; font-family: var(--f-ui); font-size: 12.6px; line-height: 18px; letter-spacing: -0.1px; color: rgba(255, 255, 255, 0.78); text-wrap: balance; }

/* statement */
.hero__statement { position: absolute; left: 748px; top: 1058px; width: 612px; height: 363px; z-index: 2; }
.hero__big { position: absolute; left: 19px; margin: 0; font-weight: 800; white-space: nowrap; }
.hero__big--1 { top: -39px; font-size: 120px; line-height: 180px; color: var(--c-ink); }
.hero__dot { color: var(--c-blue); }
.hero__big--2 {
  top: 50px; font-size: 100px; line-height: 204px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { position: absolute; left: 0; top: 234px; width: 612px; justify-content: space-between; gap: 0; }
.hero__lead .lead { width: 481px; }
.lead-row::before { height: 7px; width: 83px; background: url("../svg/line12.svg") no-repeat center / 100% 100%; }

/* CTA rows */
.hero__cta { position: absolute; display: flex; align-items: center; z-index: 3; }
.hero__cta--1 { left: 254px; top: 1221px; --gap: 15px; }
.hero__cta--2 { left: 205px; top: 1293px; --gap: 20px; }
.cta-line {
  position: absolute; right: calc(100% + var(--gap)); width: 200vw; height: 1px; transform-origin: right center;
  background: linear-gradient(90deg, var(--c-navy) calc(100% - 245px), var(--c-blue));
}
.cta-line::after { content: ""; position: absolute; right: -2.67px; top: -2.17px; width: 5.33px; height: 5.33px; border-radius: 50%; background: var(--c-blue); }

/* ---------- Clients ---------- */
.clients { position: relative; z-index: 1; padding: 80px var(--gutter); }
.clients__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; width: min(100%, 1280px); margin-inline: 0; margin-inline: auto; }
.clients__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 0; }
.clients__head .title { white-space: nowrap; }
.clients__logos {
  flex: none; width: 782px; height: 461px; display: flex; flex-direction: column; gap: 16px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 37.2%, transparent 99.2%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 37.2%, transparent 99.2%);
}
.marquee { height: 143px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee--r .marquee__track { animation-direction: reverse; }
.marquee__track li { flex: none; width: 315px; height: 143px; display: grid; place-items: center; }
.marquee__track img { height: 40px; max-width: none; transition: transform 0.4s var(--ease-out), filter 0.4s; }
.marquee__track li:hover img { transform: scale(1.12); }
.clients__logos:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { position: relative; padding-top: 80px; --ox: calc(50% - 720px); }
.services__head {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto;
}
.services__head-left { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.services__head .title { width: 340px; }
.services__lead { width: 634px; max-width: 100%; }
.services__lead .lead { flex: 1; min-width: 0; }

/* scroll runway: the panel pins while you scroll through the 6 services (5 steps of 75vh + a 40vh hold), then releases */
.services__track { --ph: max(100vh, 720px); position: relative; height: calc(var(--ph) + (var(--n, 6) - 1) * 75vh + 40vh); }
.services__panel { position: sticky; top: 0; height: var(--ph); overflow: hidden; background: #fff; }

/* wheel */
.wheel { position: absolute; left: calc(var(--ox) - 53px); top: 50%; width: 0; height: 0; }
.wheel__ring { position: absolute; left: -400px; top: -400px; width: 800px; height: 800px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.08); }
.wheel__item {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform: rotate(var(--a, 0deg)) translateX(400px);
  transition: transform 1s var(--ease-in-out);
}
.wheel__item.is-jump, .wheel.is-scroll .wheel__item { transition: none; }
.wheel__item button { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.wheel__dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-cyan); box-shadow: 0 2px 5px rgba(255, 0, 0, 0.2);
  scale: 0; opacity: 0; transition: scale 0.6s var(--ease-out) 0.5s, opacity 0.4s 0.5s;
}
.wheel__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(0, 206, 220, 0.25); }
.wheel__num {
  position: absolute; left: 15px; top: -18px; white-space: nowrap;
  font-family: var(--f-serif); font-weight: 300; font-size: 31.6px; line-height: 36px; letter-spacing: -1.28px;
  font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--c-soft);
  transition: color 0.5s, scale 0.5s var(--ease-out); transform-origin: left center;
}
.wheel__item:hover .wheel__num { color: var(--c-muted-2); }
.wheel__item.is-active .wheel__dot { scale: 1; opacity: 1; }
.wheel__item.is-active .wheel__num { color: var(--c-ink); scale: 1.06; }

/* slides */
.services__slides { position: absolute; left: calc(var(--ox) + 477px); top: 50%; width: 560px; transform: translateY(-50%); display: grid; }
.sslide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 24px; visibility: hidden; transition: visibility 0s 0.6s; }
.sslide > * { opacity: 0; translate: 0 26px; transition: opacity 0.45s var(--ease-out), translate 0.45s var(--ease-out); }
.sslide.is-active { visibility: visible; transition-delay: 0s; }
.sslide.is-active > * { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.sslide.is-active > :nth-child(1) { transition-delay: 0.35s; }
.sslide.is-active > :nth-child(2) { transition-delay: 0.48s; }
.sslide.is-active > :nth-child(3) { transition-delay: 0.6s; }
.sslide h3 { font-size: 64px; line-height: 1.1; font-weight: 400; color: var(--c-ink-strong); }
.sslide p { font-size: 24px; line-height: 1.5; color: var(--c-muted); }
.sslide__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* illustration */
.services__art {
  position: absolute; left: calc(var(--ox) + 1144px); top: calc(50% + 5px); width: 490px; height: 450px;
  transform: translateY(-50%) rotate(-6.79deg); overflow: hidden; pointer-events: none;
}
.services__art img.is-off { opacity: 0; visibility: hidden; }
.services__art img {
  position: absolute; left: 50%; top: -26.55%; width: 638px; height: 718px; margin-left: -319px; max-width: none; object-fit: fill;
  rotate: calc(var(--n, 0) * 14deg); scale: calc(1 + var(--n, 0) * 0.02);
  animation: bob 8s ease-in-out infinite;
}

/* ==========================================================================
   Our Work
   ========================================================================== */
.work { padding: 80px var(--gutter) 0; }
.work__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.work__head .title { white-space: nowrap; }
.work__lead { max-width: 1240px; }
.work__more { display: flex; width: max-content; margin: 32px auto 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi { position: relative; margin-top: 80px; margin-bottom: 80px; height: calc(903px * var(--hs, 1)); overflow: hidden; }
.testi__bg { position: absolute; inset: 0; pointer-events: none; }
.testi__blob { position: absolute; left: -280px; top: 52px; width: 662px; height: 672px; max-width: none; animation: drift 18s ease-in-out infinite; }
.testi__inner {
  position: absolute; left: 50%; top: 0; width: 1440px; height: 903px; margin-left: -720px;
  transform: scale(var(--hs, 1)); transform-origin: 50% 0;
}
.testi__comma { position: absolute; left: calc(50% + 464px); top: -70px; width: 258px; height: 258px; max-width: none; }
.testi__head { position: absolute; left: 527px; top: 51px; width: 790px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.testi__stage { position: absolute; left: 100px; top: 270px; width: 1240px; height: 633px; }

.tslide { position: absolute; inset: 0; visibility: hidden; opacity: 0; translate: 0 70px; transition: opacity 0.7s, translate 1s var(--ease-out), visibility 0s 1s; }
.tslide.is-before { translate: 0 -70px; }
.tslide.is-active { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.tslide__photo { position: absolute; left: 0; top: 0; width: 444px; height: 633px; border-radius: 28px 28px 0 28px; overflow: hidden; background: #ddd; }
.tslide__photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tslide.is-active:hover .tslide__photo > img { transform: scale(1.04); }
.tslide__play {
  position: absolute; left: 182px; top: 280px; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); animation: pulse 2.2s infinite;
  transition: scale 0.4s var(--ease-out);
}
.tslide__play img { width: 34px; height: auto; margin-left: 4px; }
.tslide__photo:hover .tslide__play { scale: 1.12; }
.tslide__text { position: absolute; left: 387px; top: 59px; width: 738px; display: flex; flex-direction: column; gap: 18px; }
.tslide__card {
  height: 429px; padding: 48px; border-radius: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 24px;
  background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.tslide__card h3 { font-size: 48px; line-height: normal; font-weight: 700; color: #000; }
.tslide__project { margin-top: 12px; font-size: 18px; color: #707070; text-transform: capitalize; line-height: normal; }
.tslide__quote { font-size: 20px; line-height: 27px; color: var(--c-ink); }
.tslide__stars {
  width: 221px; padding: 20px 8px; display: flex; justify-content: center; gap: 16px;
  border-radius: 17px 17px 17px 0; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tslide__stars img { width: 28px; height: 28px; transform: scaleY(-1); }
.tslide.is-active .tslide__stars img { animation: pop 0.6s var(--ease-out) both; }
.tslide.is-active .tslide__stars img:nth-child(2) { animation-delay: 0.08s; }
.tslide.is-active .tslide__stars img:nth-child(3) { animation-delay: 0.16s; }
.tslide.is-active .tslide__stars img:nth-child(4) { animation-delay: 0.24s; }

.testi__nav { position: absolute; left: 1192px; top: 59px; width: 48px; height: 429px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; z-index: 3; }
.testi__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: all 0.3s var(--ease-out); }
.testi__arrow--up { border: 1px solid var(--c-border); color: #b5b5b5; }
.testi__arrow--down { border: 1px solid var(--c-navy); color: var(--c-blue); }
.testi__arrow:hover { background: var(--grad-brand); border-color: transparent; color: #fff; transform: scale(1.08); }
.testi__dots { display: flex; flex-direction: column; gap: 3px; }
.testi__dots button { width: 8px; height: 8px; border-radius: 4px; background: #dddcdf; transition: height 0.45s var(--ease-out), background 0.3s; }
.testi__dots button:hover { background: #bdbbc2; }
.testi__dots button.is-active { height: 15px; background: var(--grad-brand); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .clients__inner { flex-direction: column; align-items: center; }
  .clients__head { align-items: center; text-align: center; }
  .clients__logos { width: min(782px, 100%); }
  .services__head { flex-direction: column; align-items: flex-start; }
  .services__lead { width: 100%; }
  .work__head .title { white-space: normal; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --hs: 1 !important; }

  /* hero rebuilt in flow */
  .hero { height: auto; padding: 120px 0 56px; }
  .hero__stage { position: relative; left: auto; margin: 0; width: 100%; height: auto; transform: none; display: flex; flex-direction: column; align-items: center; }
  .hero__ticks, .hero__vline, .hero__band, .hero__rings { display: none; }
  .hero__title { position: relative; left: auto; top: auto; transform: none; width: 100%; padding-inline: var(--gutter); }
  .hero__title-line { font-size: clamp(40px, 12vw, 60px); line-height: 1.4; }
  .hero__title-box { width: min(100%, 450px); height: auto; font-size: clamp(28px, 8.4vw, 40px); line-height: 1.75; }
  .fan { position: relative; left: auto; top: auto; margin: 24px 0 0; width: 100%; height: 390px; }
  .tcard { transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.5)) rotate(var(--r)) scale(0.78); }
  .hero__statement { position: relative; left: auto; top: auto; width: 100%; height: auto; padding: 56px var(--gutter) 0; }
  .hero__big { position: static; font-size: clamp(44px, 14vw, 80px); line-height: 1.1; white-space: normal; }
  .hero__lead { position: static; width: 100%; margin-top: 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__lead .lead, .lead { width: 100%; font-size: 18px; letter-spacing: 1px; }
  .hero__cta { position: relative; left: auto; top: auto; margin-top: 28px; align-self: flex-start; margin-left: var(--gutter); }
  .hero__cta--1 { margin-top: 36px; }
  .cta-line { display: none; }

  .clients { padding-block: 56px; }
  .title { font-size: clamp(34px, 9vw, 48px); line-height: 1.12; }
  .clients__head .title { white-space: normal; }
  .clients__logos { height: auto; gap: 8px; }
  .marquee, .marquee__track li { height: 96px; }
  .marquee__track li { width: 220px; }

  .services__head { gap: 24px; }
  .services__head .title { width: auto; }
  .lead-row { gap: 20px; flex-direction: column; align-items: flex-start; }
  .js [data-reveal="left"], .js [data-reveal="right"] { translate: 0 36px; }
  .js [data-reveal="left"].is-visible, .js [data-reveal="right"].is-visible { translate: 0 0; }
  .services__track { height: auto; }
  .services__panel { position: relative; height: auto; padding: 56px var(--gutter) 24px; display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
  .services__art img { transition: rotate 1.2s var(--ease-in-out), scale 1.2s var(--ease-in-out); }
  .ftool { position: relative; left: auto; top: auto; margin: 20px auto 0; }
  .wheel { position: relative; left: auto; top: auto; width: 100%; height: 56px; order: 2; display: flex; gap: 6px; align-items: center; justify-content: center; }
  .wheel__ring { display: none; }
  .wheel__list { display: flex; gap: 8px; }
  .wheel__item { position: static; transform: none !important; width: auto; height: auto; }
  .wheel__item button { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-border); display: grid; place-items: center; }
  .wheel__dot { display: none; }
  .wheel__num { position: static; font-size: 16px; }
  .wheel__item.is-active button { background: var(--grad-brand); border-color: transparent; }
  .wheel__item.is-active .wheel__num { color: #fff; scale: 1; }
  .services__slides { position: relative; left: auto; top: auto; transform: none; width: 100%; order: 1; }
  .sslide h3 { font-size: clamp(34px, 9vw, 48px); }
  .sslide p { font-size: 18px; }
  .services__art { position: relative; left: auto; top: auto; transform: none; order: 0; width: 100%; height: 260px; }
  .services__art img { width: 300px; height: 300px; top: -20px; margin-left: -150px; }

  .work { padding-top: 56px; }
  .work__lead { font-size: 18px; }
  .work__grid { grid-template-columns: 1fr; }
  .pcard h3 { font-size: 20px; }

  .testi { height: auto; margin-top: 56px; padding: 0 var(--gutter) 56px; }
  .testi__blob { display: none; }
  .testi__inner { position: relative; left: auto; top: auto; width: 100%; height: auto; margin: 0; transform: none; display: flex; flex-direction: column; gap: 32px; }
  .testi__comma { display: none; }
  .testi__head { position: relative; left: auto; top: auto; width: 100%; }
  .testi__stage { position: relative; left: auto; top: auto; width: 100%; height: 760px; }
  .tslide__photo { width: 100%; height: 300px; }
  .tslide__play { left: calc(50% - 40px); top: 110px; }
  .tslide__text { left: 0; top: 270px; width: 100%; }
  .tslide__card { height: auto; padding: 28px 24px; }
  .tslide__card h3 { font-size: 34px; }
  .tslide__quote { font-size: 17px; line-height: 1.5; }
  .testi__stage { margin-bottom: 76px; }
  .testi__nav { left: 50%; right: auto; top: auto; bottom: -68px; transform: translateX(-50%); width: auto; height: 48px; flex-direction: row; gap: 14px; }
  .testi__dots { flex-direction: row; }
  .testi__dots button.is-active { height: 8px; width: 15px; }
  .testi__dots button { transition: width 0.45s var(--ease-out), background 0.3s; }
}

@media (max-width: 480px) {
  .fan { height: 350px; }
  .tcard { transform: translate(calc(var(--dx) * 0.2), calc(var(--dy) * 0.5)) rotate(var(--r)) scale(0.7); }
}

/* service titles in the wheel link to their pages */
.sslide h3 a { color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease-out), color var(--t-fast); }
.sslide h3 a:hover { color: var(--c-blue); background-size: 100% 2px; }
