/* Mobile layouts share the original assets and leave the desktop composition intact. */
@media (max-width: 760px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-inner > *, .hero-copy > * { grid-column: 1; }
  .hero-copy { display: contents; }
  .hero-eyebrow { grid-row: 2; margin: 24px 20px 0; font-size: 9px; letter-spacing: 1.8px; }
  .hero h1 { grid-row: 3; margin: 14px 20px 0; font-size: clamp(40px, 12.4vw, 72px); line-height: 1.02; letter-spacing: -2.2px; }
  .hero-bubble-slot { grid-row: 4; position: relative; height: 77vw; margin: 2px 0 0; padding: 0; overflow: visible; }
  .hero-art { position: absolute; width: 126%; height: auto; margin: 0; left: -13%; top: -8vw; }
  .hero-callout, .hero-tags { display: none; }
  .hero-bubble { display: block; top: -32px; right: 12px; width: 170px; color: #1a1b19; font-size: 16px; line-height: 21px; }
  .hero-actions .hero-button > span[aria-hidden] { display: none; }
  .hero-description { grid-row: 5; margin: 12px 20px 0; max-width: 560px; font-size: 16px; line-height: 24px; letter-spacing: -.25px; }
  .hero-actions { grid-row: 6; margin: 20px 20px 26px; gap: 16px; align-items: stretch; }
  .hero-actions .hero-button { width: 100%; height: 48px; font-size: 16px; }
  .hero-work-link { justify-content: center; font-size: 14px; }
  .hero-clients { grid-row: 7; margin: 0 20px; padding: 16px 0 20px; gap: 10px; }
  .hero-clients p { font-size: 12px; }
  .hero-client-logo { height: 42px; }
  .hero-client-logo img { height: 26px; }

  /* Keep artwork out of the text/link column, allowing a deliberate right crop. */
  .services { overflow: hidden; }
  .service-row, .service-row:first-child, .service-row:last-child { padding-bottom: 120px; }
  .service-art { left: max(180px, 55%); right: auto; bottom: 4px; height: 110px; max-width: none; }
  .service-more { left: 36px; bottom: 37px; z-index: 1; }
  .service-more svg { flex-shrink: 0; }

  .contact-inner { padding: 34px 22px; overflow: hidden; }
  .contact-intro { width: 52%; font-size: 16px; line-height: 24px; margin-top: 18px; position: relative; z-index: 2; }
  .contact-intro br { display: none; }
  .contact-robot { width: clamp(144px, 45vw, 240px); height: auto; aspect-ratio: 480 / 410; right: -18px; margin-top: calc(16px - clamp(123px, 38.4375vw, 205px)); }
  .contact-card { padding: 24px; }


  /* B: compact editorial split, with the robot beside the description. */
  [data-mobile-hero="b"] .hero-bubble-slot { grid-row: 4; width: 55%; justify-self: end; height: clamp(210px, 61vw, 330px); margin-top: 14px; }
  [data-mobile-hero="b"] .hero-art { width: 205%; left: -48%; top: -7vw; }
  [data-mobile-hero="b"] .hero-description { grid-row: 4; align-self: center; width: 43%; margin: 18px 0 0 20px; font-size: 15px; line-height: 23px; }
  [data-mobile-hero="b"] .hero-actions { grid-row: 5; margin-top: 8px; }
  [data-mobile-hero="b"] .hero-clients { grid-row: 6; }

  /* C: a concentrated cobalt hero with a centered studio composition. */
  [data-mobile-hero="c"] .hero { background: #174ad5; color: #fff; }
  [data-mobile-hero="c"] .hero-header { border-color: #ffffff40; }
  [data-mobile-hero="c"] .hero-brand img { filter: grayscale(1) brightness(0) invert(1); }
  [data-mobile-hero="c"] .hero-header .hero-button { background: #ffffff; color: #111; }
  [data-mobile-hero="c"] .hero-eyebrow { color: #dbe5ff; text-align: center; }
  [data-mobile-hero="c"] .hero h1 { text-align: center; }
  [data-mobile-hero="c"] .hero h1 span { color: #fff; }
  [data-mobile-hero="c"] .hero-description { color: #e6edff; text-align: center; }
  [data-mobile-hero="c"] .hero-actions .hero-button { background: #fff; color: #111; }
  [data-mobile-hero="c"] .hero-clients { border-color: #ffffff40; color: #dbe5ff; }
  [data-mobile-hero="c"] .hero-logo-viewport { mix-blend-mode: normal; border-radius: 4px; background: #fafafa; padding: 3px 0; }
}

/* Tablet: give illustrations a real column instead of a small mobile thumbnail. */
@media (min-width: 540px) and (max-width: 1100px) {
  .services { --s: 1px; padding: 44px 28px 52px; overflow: hidden; }
  .services-eyebrow { font-size: 12px; letter-spacing: 2.5px; }
  .services h2 { font-size: clamp(34px, 4.5vw, 46px); line-height: 1.12; letter-spacing: -1px; }
  .services-intro { font-size: 18px; line-height: 1.5; }
  .service-list { margin-top: 32px; }
  .service-row, .service-row:first-child, .service-row:last-child {
    height: auto; min-height: 260px; padding: 26px 0;
    grid-template-columns: 36px minmax(0, 1fr) 40%;
    grid-template-rows: auto auto auto; column-gap: 0; row-gap: 14px;
    align-content: center; align-items: start;
  }
  .service-number { grid-column: 1; grid-row: 1; font-size: 20px; transform: none; }
  .service-row h3 { grid-column: 2; grid-row: 1; padding-right: 20px; font-size: clamp(24px, 2.7vw, 30px); line-height: 1.2; letter-spacing: -.6px; transform: none; }
  .service-row p { grid-column: 2; grid-row: 2; padding-right: 20px; font-size: 16px; line-height: 24px; }
  .service-more { position: static; grid-column: 2; grid-row: 3; justify-self: start; align-self: end; margin-top: 6px; font-size: 16px; line-height: 25px; }
  .service-art { position: static; grid-column: 3; grid-row: 1 / 4; align-self: center; justify-self: center; width: 100%; height: auto; max-height: 250px; object-fit: contain; }
}
@media (min-width: 540px) and (max-width: 760px) {
  .contact-robot { width: min(48vw, 350px); margin-top: calc(16px - min(41vw, 298.958px)); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .contact-robot { width: 39vw; height: 33.3125vw; left: auto; right: 3vw; top: calc(487 * var(--c) - 33.3125vw); }
}
