/* =====================================================================
   Computer Xperts — homepage styles (css/home.css)
   Loaded on index.html after css/site.css (colours, header, footer and buttons live there) and
   css/showcase.css (the minisite wall and the featured work slider).

   Contents
    1. Hero
    2. Website + hosting panels
    3. Services
    4. CSR (photo tiles linking to csr.html)
    5. Portfolio: featured work slider (the dark band and the slide text)
    6. Process
    7. Video testimonials
   7b. F.A.Q (a few questions; the open/close boxes are in css/site.css 9b)
    8. Motion (only with .motion-ok)
    9. Responsive: 1180px, 1023px, 640px
   ===================================================================== */


/* Section bands below the hero (the process band is red, see section 6) */
.home-services, .csr-home, .process, .testimonials-block, .home-faq { padding: var(--section-y) 0; }
.home-services, .home-faq { background: var(--paper); }
.csr-home, .testimonials-block { background: var(--white); }


/* 1. Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); }

/* photos + video sit behind the text; 180px extra at the top so the scroll parallax never shows a gap */
.hero__media { position: absolute; top: -180px; right: 0; bottom: 0; left: 0; z-index: -2; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.6s ease;
  will-change: transform, opacity; backface-visibility: hidden;   /* own layer: the slow zoom glides instead of shimmering */
}
.hero__photo.is-active { opacity: 1; }

/* office-tour video: ten clips from the company film, used exactly as filmed (no crop, straight cuts).
   It fades in over the photos once playing; both are 16:9 and centred the same way. */
.hero__vid {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none;
}
.hero.has-video .hero__vid { opacity: 1; }
/* once the video has faded in, the photos under it are put away (no hidden layers to keep drawing) */
.hero.has-video .hero__photo { visibility: hidden; will-change: auto; transition: visibility 0s 1.3s; }

/* gradient on the sides only: black on the left (behind the text), red on the right;
   the middle of the video stays clear */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, .8) 28%, rgba(12, 12, 12, .5) 46%, rgba(12, 12, 12, 0) 60%,
    rgba(173, 1, 1, 0) 70%, rgba(173, 1, 1, .4) 86%, rgba(173, 1, 1, .72) 100%);
}

/* red line along the bottom edge */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 4px; background: var(--red); }

/* nearly a full screen; the next section just peeks in */
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  min-height: clamp(560px, 84vh, 860px); padding-top: 56px; padding-bottom: 120px;
}
.hero__copy { max-width: 780px; }
.hero__badge { width: clamp(230px, 19vw, 291px); margin-bottom: 24px; filter: brightness(0) invert(1); opacity: .95; }   /* 291px is the picture's own width */
.hero__title {
  max-width: 14ch; color: var(--white);
  font-size: clamp(42px, 5.6vw, 78px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance; text-shadow: var(--hero-text-shadow);
}
.hero__sub {
  max-width: 32em; margin-top: 22px; color: #e0e0e0;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; line-height: 1.5;
  text-shadow: var(--hero-text-shadow);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }


/* 2. Website + hosting panels ------------------------------------------- */
.lanes { padding: 0 0 48px; background: var(--ink); }
.lanes__grid {   /* pulled up 48px so the panels overlap the hero */
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px;
  container-type: inline-size;   /* the panel titles are sized from its width */
  transform: translateY(-48px); margin-bottom: -48px;
}
.lane {
  position: relative; overflow: hidden; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title title" "copy visual" "tiles tiles";
  gap: 28px 24px; padding: 44px; border-radius: 14px;
}
.lane--web { background: var(--white); }
.lane--host {
  background: var(--ink-2); color: var(--white); border: 1px solid rgba(255, 255, 255, .08);
}
.lane__copy { grid-area: copy; }
/* the title runs across the whole panel on one line, the text and picture sit under it.
   Both titles get the same size: the one that just fits the narrower (hosting) panel,
   which is (grid width - 20px gap) / 2.1 wide, less 88px padding; the title is about 17.5 times its font size. */
.lane__title { grid-area: title; font-size: min(29px, ((100cqi - 20px) / 2.1 - 88px) / 17.5); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.lane__lede { margin-top: 10px; color: var(--red-deep); font-size: 18px; font-weight: 600; }
.lane__point { position: relative; max-width: 36em; margin-top: 14px; padding-left: 20px; font-size: 17px; font-weight: 400; line-height: 1.5; }
.lane__point::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; background: var(--red); }
.lane--host .lane__point { color: #d6d6d6; }

/* illustration on a soft glow */
.lane__visual { grid-area: visual; position: relative; display: grid; place-items: center; min-height: 220px; }
.lane__visual::before {
  content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, #f2f2f2 0%, rgba(240, 240, 240, .6) 55%, rgba(240, 240, 240, 0) 100%);
}
.lane--host .lane__visual::before {
  background: radial-gradient(closest-side, rgba(207, 11, 11, .35) 0%, rgba(207, 11, 11, .12) 55%, rgba(207, 11, 11, 0) 100%);
}
/* the picture fills its half of the panel and runs a little into the right-hand padding */
.lane__art { position: relative; width: calc(100% + 28px); max-width: none; margin-right: -28px; }

/* platforms (Laravel, Shopify, WordPress ...): a coloured app-style tile with the logo, name underneath.
   Each tile's colour comes from --c in the HTML (--u adds an underline, e.g. Amazon's orange smile). */
.platforms {
  grid-area: tiles; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.platform { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.platform__logo {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 14px;
  background: var(--c) linear-gradient(150deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 18px -10px var(--c);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.platform__logo svg { display: block; width: 60%; height: 60%; fill: var(--white); }
.platform__logo .ic { fill: none; stroke: var(--white); stroke-width: 2; }
.platform[style*="--u"] .platform__logo::after {
  content: ""; position: absolute; left: 28%; right: 28%; bottom: 14%; height: 3px; border-radius: 3px; background: var(--u);
}
.platform__name { color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.platform:hover .platform__logo { transform: translateY(-5px) rotate(-3deg); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 26px -12px var(--c); }

/* hosting: "10,000+ registered domains" + what we offer */
.host-stats {
  grid-area: tiles; display: grid; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.host-stat { display: flex; align-items: center; gap: 16px; }
.host-stat__icon {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--red); color: var(--white); box-shadow: 0 12px 26px -12px rgba(207, 11, 11, .9);
}
.host-stat__icon .ic { width: 30px; height: 30px; stroke-width: 1.9; }
.host-stat__text { color: #d6d6d6; font-size: 16px; line-height: 1.35; }
.host-stat__num {
  display: block; color: var(--white);
  font-size: clamp(32px, 3vw, 42px); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.host-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.host-features li {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: var(--white); font-size: 14.5px; font-weight: 700; line-height: 1.2;
  transition: background-color .25s, border-color .25s, transform .25s;
}
.host-features li:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); transform: translateY(-3px); }
.host-features .ic { flex: none; width: 18px; height: 18px; color: var(--red-on-dark); stroke-width: 2.2; }


/* 3. Services ----------------------------------------------------------
   One card per service, in the service's own colour: --c (brand colour), --c-ink (the colour for
   text on white). Cards for a platform (Alibaba, Shopify, WordPress, eBay, Amazon) show its logo
   on a white chip (.svc__icon--logo) instead of a line icon.
   The first card (Alibaba Services) is twice as wide. The card lifts when its list item is hovered:
   the list item stays put, so the pointer never slips off a moving card. */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.svc a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.svc__art {
  display: grid; place-items: center; padding: 14px 14px 26px;
  background: color-mix(in srgb, var(--c) 11%, var(--white)); transition: background-color .3s ease;
}
.svc__art img { width: 100%; max-width: 260px; height: auto; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.svc__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0 22px 24px; }
.svc__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 14px;
  background: var(--c); color: var(--white);
  box-shadow: 0 0 0 4px var(--white), 0 12px 22px -12px var(--c);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.svc__icon .ic { width: 24px; height: 24px; stroke-width: 2; }
.svc__icon--logo { width: auto; min-width: 48px; padding: 0 12px; background: var(--white); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); }
.svc__icon--logo img { width: auto; height: 28px; }
.svc__name { margin-top: 14px; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.25; transition: color .2s ease; }
.svc__text { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.svc:hover a,
.svc a:focus-visible { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--c) 70%, #000); }
.svc:hover .svc__art { background: color-mix(in srgb, var(--c) 19%, var(--white)); }
.svc:hover .svc__art img { transform: translateY(-4px) scale(1.05); }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.06); }
.svc:hover .svc__name { color: var(--c-ink); }

.svc--wide { grid-column: span 2; }
.svc--wide a { flex-direction: row; }
.svc--wide .svc__art { flex: 0 0 52%; padding: 22px; }
.svc--wide .svc__body { justify-content: center; padding: 28px; }
.svc--wide .svc__icon { margin-top: 0; box-shadow: 0 12px 22px -12px var(--c); }
.svc--wide .svc__name { font-size: 25px; }
.svc--wide .svc__text { font-size: 16.5px; }


/* 4. CSR ------------------------------------------------------------------
   Four photo tiles that link to the sections of csr.html. Each tile's photos cross-fade
   (js/home.js); the first one is shown without JS or with reduced motion. */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 230px); gap: 14px; }
.mosaic__tile--offices { grid-column: span 2; grid-row: span 2; }
.mosaic a {
  position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate; container-type: inline-size;
  border-radius: 18px; background: var(--ink); color: var(--white); text-decoration: none;
}
.mosaic__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease, transform .8s ease; }
.mosaic__img.is-on { opacity: 1; }
.mosaic a::after {   /* dark at the bottom, behind the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .4) 42%, rgba(10, 10, 10, 0) 68%);
}
.mosaic__copy { position: absolute; left: 22px; right: 76px; bottom: 20px; }
.mosaic__tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .26);
  font-size: 13px; font-weight: 700; line-height: 1.25;
}
.mosaic__tag .ic { flex: none; width: 15px; height: 15px; }
.mosaic__title { margin-top: 10px; color: var(--white); font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.mosaic__tile--offices .mosaic__title { font-size: clamp(30px, 3.2vw, 44px); }
.mosaic__go {
  position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: var(--white); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.mosaic__tile--seminars .mosaic__go { background: var(--alibaba); color: var(--ink); }   /* Alibaba */
.mosaic__go .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.mosaic a:hover .mosaic__img.is-on { transform: scale(1.05); }
.mosaic a:hover .mosaic__go { transform: scale(1.12); }
@container (max-width: 340px) {   /* a narrow tile (iPads, laptops): title only, so nothing wraps into a blob */
  .mosaic__tag { display: none; }
  .mosaic__copy { left: 16px; right: 60px; bottom: 16px; }
  .mosaic__title { font-size: 19px; }
  .mosaic__go { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}


/* 5. Portfolio: "Featured work" slider (the slider itself is in css/showcase.css, section 2) */
.work { overflow: hidden; padding: var(--section-y) 0; background: #1b1b1b; color: var(--white); }
.work .section-title { color: var(--white); }
.work .block-head__copy p { color: #bdbdbd; }
.feat { margin-top: 30px; }
.feat__eyebrow { color: #bdbdbd; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.feat__name { margin-top: 8px; color: var(--white); font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.1; }
.feat__text { max-width: 46ch; margin-top: 14px; color: #d0d0d0; font-size: 17px; }
.feat__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feat__tags span { padding: 3px 12px; border: 1px solid #454545; border-radius: 999px; color: #e6e6e6; font-size: 13px; font-weight: 700; }
.feat__btn { gap: 9px; margin-top: 26px; border-radius: 999px; }
.feat__btn .ic, .work .block-head .btn .ic { width: 18px; height: 18px; }


/* 6. Process: a pie of four slices, each slice a step's card ----------------------
   A bright Xperts-red band (.wallsec--red from css/showcase.css, lighter and without its white wave).
   .orbit__dial is a square container: its inside is measured in cqw (the pie is drawn 1000 units across,
   so 10 units = 1cqw). Each .orbit__piece is the top slice turned by --i quarter turns, with its card fitted
   inside the slice; the whole wheel (and the ring of arrows) is turned by js/home.js section 5 so the step
   showing (.is-on) is at the top, gliding smoothly there. It turns one step for each scroll of the page
   while it is on screen (the page never stops), each sideways scroll or swipe, each arrow, or to a slice
   that is clicked.
   The showing slice, and any slice under the pointer, grows bigger than the rest; pointing at the pie makes
   the whole of it a little bigger too. */
.process { touch-action: pan-y; --wave: none; --ws-deep: var(--red-deep); --ws-mid: var(--red); --ws-base: #f02222; --ws-hi: #ff6a6a; }   /* brighter than the Portfolio band; pan-y: a sideways swipe anywhere on it turns the pie (js/home.js 5) */
.orbit-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.orbit-copy p { margin-top: 12px; color: rgba(255, 255, 255, .92); font-size: 18px; }
.orbit-copy .orbit-hint { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--white); font-size: 16px; font-weight: 800; }
.orbit-hint .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--white); color: var(--red); }
.orbit-controls { display: flex; gap: 14px; margin: 18px 0 30px; }
.orbit-turn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 2px solid var(--white); border-radius: 50%;
  background: transparent; color: var(--white); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.orbit-turn:hover { background: var(--white); color: var(--red); }
.orbit-turn .ic { width: 22px; height: 22px; }
.orbit-turn--prev .ic { transform: scaleX(-1); }

.orbit { width: min(700px, 86vw); margin: 60px 0; }
.orbit__dial { position: relative; aspect-ratio: 1; container-type: inline-size; user-select: none; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.orbit__dial:hover { transform: scale(1.04); }
.orbit__dial::before {   /* a dark disc under the slices: the pie's shadow, and the softer slices fade into it */
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 26px 50px -22px rgba(40, 0, 0, .7);
}
.orbit__wheel { position: absolute; inset: 0; will-change: transform; }   /* its own layer: turning it redraws nothing */
.orbit__piece { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 90deg)); transition: transform .5s ease; pointer-events: none; }
.orbit__piece:is(.is-on, .is-pointed) { z-index: 1; transform: rotate(calc(var(--i) * 90deg)) translateY(-1.6cqw) scale(1.1); }   /* bigger than the rest */
.orbit__slice { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: .86; transition: opacity .4s ease; }
/* each step has its own bright colour (--c), lighter (--c-hi) at the rim (the slice's gradient); white words on it */
.orbit__piece:nth-child(1) { --c: #ff7a00; --c-hi: #ffb000; }   /* Plan: orange */
.orbit__piece:nth-child(2) { --c: #1f5fff; --c-hi: #19b5ff; }   /* Design: blue */
.orbit__piece:nth-child(3) { --c: #00a86b; --c-hi: #36d97c; }   /* Test: green */
.orbit__piece:nth-child(4) { --c: #7b2cf5; --c-hi: #c03cf0; }   /* Launch: purple */
.orbit__slice path { stroke: var(--white); stroke-width: 5; }
.orbit__piece:is(.is-on, .is-pointed) .orbit__slice { opacity: 1; }   /* the showing step (and the one pointed at) at full colour */
.orbit__slice stop:first-child { stop-color: var(--c-hi); }
.orbit__slice stop:last-child { stop-color: var(--c); }

/* the card inside its slice: picture near the rim, then the name and text, the number by the hole */
.orbit__card {
  position: absolute; left: 50%; top: 4.6cqw; display: flex; flex-direction: column; align-items: center; width: 38cqw; margin-left: -19cqw;
  text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); opacity: .85; transition: opacity .4s ease, transform .7s cubic-bezier(.2, .7, .2, 1);   /* the flip keeps pace with the turn */
}
.orbit__piece.is-on .orbit__card { opacity: 1; }
.orbit__piece.is-flipped .orbit__card { transform: rotate(180deg); }   /* lower half: the right way up (it still fits the slice) */
.orbit__card .step__art { width: 24cqw; padding: .8cqw; border-radius: 1.6cqw; background: var(--white); box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .45); }
.step__name { margin-top: 1.4cqw; color: var(--white); font-size: 2.9cqw; font-weight: 900; line-height: 1.15; }
.step__text { width: 34cqw; margin-top: .6cqw; color: var(--white); font-size: max(12px, 1.85cqw); line-height: 1.4; }
.step__num {
  display: grid; place-items: center; width: max(18px, 5.4cqw); height: max(18px, 5.4cqw); margin-top: 1.2cqw; border-radius: 50%;
  background: var(--white); color: var(--c); font-size: max(10px, 2.1cqw); font-weight: 900;   /* readable on small phones */
}
.step__art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }

/* arrows round the rim, and the hole in the middle with the step showing, in that step's colour */
.orbit__rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; will-change: transform; }
.orbit__hit { fill: transparent; pointer-events: all; cursor: pointer; }   /* each slice's fixed hit area (.is-pointed) */
.orbit__arrow circle { fill: var(--ink); stroke: var(--white); stroke-width: 4; }
.orbit__hub {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; width: 22cqw; height: 22cqw; margin: 0;
  border: .8cqw solid var(--white); border-radius: 50%; background: var(--now, var(--ink)); color: var(--white); transform: translate(-50%, -50%);
  transition: background-color .5s ease;   /* --now: the showing step's colour, set by the script */
  font-size: max(10px, 2.2cqw); font-weight: 800; line-height: 1;   /* "/ 04": readable on small phones */
}
.orbit__hub b { font-size: 6.4cqw; font-weight: 900; }
.orbit__caption { display: none; }

/* the step pictures (still without motion; section 8 moves them) */
.step__art :is(.art-box, .art-frame) { fill: var(--white); stroke: #e3c9c9; stroke-width: 2; }
.step__art .art-fill { fill: var(--red); }
.step__art .art-bar { fill: #ecd8d8; }
.step__art .art-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step__art .art-glass { fill: rgba(255, 255, 255, .55); stroke: var(--ink); stroke-width: 5; stroke-linecap: round; transform: translate(250px, 70px); }
.step__art .art-top { fill: #f6e9e9; }
.step__art .art-dot { fill: var(--red); }
.step__art .art-dot--grey { fill: #dcc4c4; }
.step__art .art-paint { fill: var(--red); }
.step__art .art-paint--ink { fill: var(--ink); }
.step__art .art-paint--orange { fill: var(--alibaba); }
.step__art .art-paint--grey { fill: #f1e2e2; }
.step__art .art-pointer { fill: var(--ink); stroke: var(--white); stroke-width: 1.5; transform: translate(150px, 120px); }
.step__art .art-scan { fill: var(--red); opacity: 0; }
.step__art .art-check circle { fill: #2bb673; }
.orbit__arrow path, .step__art .art-check path { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }   /* white strokes: the ring arrows, the picture ticks */
.step__art .art-check rect { fill: #ecd8d8; }
.step__art .art-live { fill: #2bb673; }
.step__art text { fill: var(--white); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-anchor: middle; }
.step__art .art-chart rect { fill: #2bb673; transform-box: fill-box; transform-origin: bottom; }
.step__art .art-body { fill: var(--red); }
.step__art .art-fin { fill: var(--ink); }
.step__art .art-window { fill: var(--white); stroke: var(--ink); stroke-width: 4; }
.step__art .art-flame { fill: #ffb020; transform-box: fill-box; transform-origin: top; }


/* 7. Video testimonials ------------------------------------------------
   YouTube thumbnails only (nothing plays on the page); each card links to the video on YouTube. */

/* four wide videos in two columns, the Short as a tall card on the right */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .64fr); grid-auto-rows: auto; gap: 26px 22px; align-items: stretch; }
.vcard { display: flex; flex-direction: column; min-width: 0; }
.vcard--short { grid-column: 3; grid-row: 1 / span 2; }

.vcard__media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px;
  background: var(--ink); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .55);
}
.vcard--short .vcard__media { flex: 1 1 auto; min-height: 360px; aspect-ratio: auto; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.vcard__media:hover img { transform: scale(1.04); filter: brightness(.85); }
.vcard__media:focus-visible { outline-offset: 3px; border-radius: 14px; }

/* round play button in the middle; turns YouTube red on hover */
.vcard__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(0, 0, 0, .72); color: var(--white); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: background-color .2s ease, transform .2s ease;
}
.vcard__play svg { width: 28px; height: 28px; fill: currentColor; }
.vcard__media:hover .vcard__play,
.vcard__media:focus-visible .vcard__play { background: var(--youtube); transform: scale(1.1); }

.vcard__name { margin-top: 14px; color: var(--ink); font-size: 17px; font-weight: 900; line-height: 1.3; }
.vcard__meta { color: var(--muted); font-size: 15px; line-height: 1.4; }


/* 7b. F.A.Q: heading + link on the left, a few open/close questions on the right (boxes: css/site.css 9b) */
.home-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.home-faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.home-faq__head p { margin: 12px 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.home-faq__list .faq:first-child { margin-top: 0; }


/* 8. Motion ------------------------------------------------------------
   Only when JS has added .motion-ok to <html> AND the visitor has not asked for reduced motion.
   Scroll-linked effects use CSS scroll timelines (Chrome/Edge); other browsers skip them. */
@media (prefers-reduced-motion: no-preference) {

  /* hero: headline words rise in one by one, then the text and buttons */
  .motion-ok .hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
  .motion-ok .hero__title .w > span {
    display: inline-block; transform: translateY(105%);
    animation: word-up .9s cubic-bezier(.16, .84, .24, 1) forwards; animation-delay: calc(.08s * var(--i) + .1s);
  }
  .motion-ok .hero__badge { animation: fade-in .6s ease both; }
  .motion-ok .hero__sub { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .55s both; }
  .motion-ok .hero__actions { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .68s both; }

  /* hero photos: slow zoom while each one is showing */
  .motion-ok .hero__photo { transform: scale(1.1); transition: opacity 1.6s ease, transform 9s cubic-bezier(.2, .6, .3, 1); }
  .motion-ok .hero__photo.is-active { transform: scale(1); }

  /* website + hosting panels rise in */
  .motion-ok .lane { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .motion-ok .lane:nth-child(2) { transition-delay: .12s; }
  .motion-ok .lanes.is-in .lane { opacity: 1; transform: none; }
  .motion-ok .lane__art { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .lane:hover .lane__art { transform: translateY(-8px); }

  /* CSR tiles: the showing photo settles from a slight zoom */
  .motion-ok .mosaic__img { transform: scale(1.08); transition: opacity 1.2s ease, transform 6s cubic-bezier(.2, .6, .3, 1); }
  .motion-ok .mosaic__img.is-on { transform: scale(1); }

  /* process pictures, while the band is on screen (.is-seen, set by the script): the sitemap draws itself
     and the magnifier searches; the page fills in block by block as the pointer works; the scan line runs
     down the phone and the checks tick; the rocket hovers with a flickering flame and the visitors rise */
  .motion-ok .process.is-seen .art-line { stroke-dasharray: 1; animation: art-draw 3s ease-in-out infinite; }
  .motion-ok .process.is-seen .art-glass { animation: art-search 4s ease-in-out infinite; }
  .motion-ok .process.is-seen .art-paint { animation: art-paint 4s ease infinite; animation-delay: calc(var(--i) * .25s); }
  .motion-ok .process.is-seen .art-pointer { animation: art-point 4s ease-in-out infinite; }
  .motion-ok .process.is-seen .art-scan { animation: art-scan 1.8s linear infinite; }
  .motion-ok .process.is-seen .art-check { animation: art-tick 3s ease infinite; animation-delay: calc(var(--i) * .4s); transform-box: fill-box; transform-origin: center; }
  .motion-ok .process.is-seen .art-rocket { animation: art-hover 2.4s ease-in-out infinite; }
  .motion-ok .process.is-seen .art-flame { animation: art-flame .25s ease-in-out infinite alternate; }
  .motion-ok .process.is-seen .art-chart rect { animation: art-rise 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.4s); }
  .motion-ok .process.is-seen .art-live { animation: art-blink 1.4s ease-in-out infinite; }

  /* featured work: the text rises in with its slide */
  .motion-ok .feat.is-turned .is-active .feat__copy { animation: rise .6s ease both; }

  /* scroll-linked: hero background drifts down */
  @supports (animation-timeline: view()) {
    .motion-ok .hero__media { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  }
}

@keyframes word-up { to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: .88; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-parallax { to { transform: translateY(160px); } }
@keyframes art-draw { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes art-search { 0%, 100% { transform: translate(250px, 70px); } 33% { transform: translate(70px, 72px); } 66% { transform: translate(165px, 150px); } }
@keyframes art-paint { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes art-point { 0%, 100% { transform: translate(150px, 120px); } 30% { transform: translate(64px, 68px); } 60% { transform: translate(230px, 100px); } }
@keyframes art-scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(160px); } }
@keyframes art-tick { 0%, 10% { opacity: 0; transform: scale(.5); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes art-hover { 50% { transform: translateY(-10px); } }
@keyframes art-flame { to { transform: scaleY(.7); } }
@keyframes art-rise { from { transform: scaleY(.45); } }
@keyframes art-blink { 50% { opacity: .55; } }


/* 9. Responsive -------------------------------------------------------- */

/* ---- small laptops ---- */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the two panels one per row (side by side their text would be squeezed into a narrow column) */
  .lanes__grid { grid-template-columns: 1fr; }
  .lane__title { font-size: min(29px, (100cqi - 88px) / 17.5); }
  .lane__art { width: 100%; max-width: 360px; margin-right: 0; }
}

/* ---- tablets: single-column panels ---- */
@media (max-width: 1023px) {
  /* hero */
  .hero::before {
    background: linear-gradient(90deg,
      rgba(12, 12, 12, .88) 0%, rgba(12, 12, 12, .62) 35%, rgba(12, 12, 12, 0) 58%,
      rgba(173, 1, 1, 0) 72%, rgba(173, 1, 1, .4) 88%, rgba(173, 1, 1, .65) 100%);
  }
  .hero__inner { min-height: clamp(420px, 58vh, 540px); padding-top: 48px; padding-bottom: 96px; }
  .hero__title { max-width: 13ch; }

  /* sections */
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 210px; }
  .mosaic__tile--offices { grid-row: auto; grid-column: span 2; }
  .orbit-grid { grid-template-columns: 1fr; gap: 0; }
  .home-faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .home-faq__head { position: static; }
  .orbit { width: min(640px, 100%); margin: 40px auto 0; }

  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard--short { grid-column: 1 / -1; grid-row: auto; align-items: center; text-align: center; }
  .vcard--short .vcard__media { flex: none; width: min(360px, 100%); min-height: 0; aspect-ratio: 9 / 16; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  /* hero */
  .hero__inner { padding-top: 36px; }
  .hero__badge { width: 210px; margin-bottom: 18px; }

  /* panels */
  .lane, .lane--host { grid-template-columns: 1fr; grid-template-areas: "title" "copy" "visual" "tiles"; padding: 28px 22px; }
  .lane__title { font-size: clamp(22px, 6.4vw, 30px); white-space: normal; }
  .lane__visual { min-height: 0; }
  .lane__art { max-width: 240px; }
  .platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* sections */
  /* services: compact cards, picture on the left */
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc--wide { grid-column: auto; }
  .svc a, .svc--wide a { flex-direction: row; }
  .svc__art, .svc--wide .svc__art { flex: 0 0 38%; padding: 10px; }
  .svc__body, .svc--wide .svc__body { justify-content: center; padding: 14px 16px; }
  .svc__icon, .svc--wide .svc__icon { width: 38px; height: 38px; margin-top: 0; border-radius: 11px; box-shadow: 0 10px 18px -10px var(--c); }
  .svc__icon .ic { width: 20px; height: 20px; }
  .svc__icon--logo, .svc--wide .svc__icon--logo { width: auto; padding: 0 9px; }
  .svc__icon--logo img { height: 22px; }
  .svc__name, .svc--wide .svc__name { margin-top: 10px; font-size: 17px; }
  .svc__text, .svc--wide .svc__text { font-size: 14.5px; }

  /* CSR: one tile per row */
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 190px; gap: 10px; }
  .mosaic__tile--offices { grid-column: auto; }
  .mosaic__copy { left: 18px; right: 70px; bottom: 16px; }
  .mosaic__tile--offices .mosaic__title { font-size: 28px; }

  /* process: the slices keep the picture and name; the showing step's text is written under the pie */
  .orbit__card .step__text { display: none; }
  .step__name { font-size: max(11.5px, 3.6cqw); }
  .orbit__caption { display: block; min-height: 4.5em; margin-top: 18px; color: var(--white); font-size: 16px; line-height: 1.5; text-align: center; }
  .orbit__caption b { display: block; font-size: 19px; }
}
