/* Keep desktop layouts intact; these changes tune touch targets and scale. */
@media (max-width: 767px) {
  .site-header .site-logo, .site-header .site-logo img { width: 96px; }
  .floating-header-logo img { width: 96px; }

  .works .works-statement {
    top: 310px; left: 24px; width: max-content; max-width: none;
    font-size: clamp(60px, 17vw, 96px); line-height: 1.02; letter-spacing: -.02em;
    white-space: nowrap; text-align: left;
    transform: translate3d(var(--works-copy-x, 0px), 0, 0);
  }
  .works[data-motion-paused='true'] .works-statement,
  html[data-motion-paused='true'] .works .works-statement {
    width: calc(100% - 48px); white-space: normal; transform: none;
    font-size: clamp(30px, 8.8vw, 40px); line-height: 1.08; letter-spacing: -.01em;
  }

  .service-toc {
    position: static; display: flex; flex-flow: row wrap;
    width: 100%; max-width: 393px;
    gap: 8px; padding: 0 24px 36px; overflow: visible;
  }
  .service-toc a {
    flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px;
    height: 44px; min-height: 44px; max-width: 100%; padding: 0 13px;
    border: 0; border-radius: 22px;
    color: rgba(0,7,31,.65); background: #f8f7f7;
    font-size: 14px; font-weight: 700; line-height: 21px; white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease;
  }
  .service-toc a:nth-child(1) { width: 113.602px; }
  .service-toc a:nth-child(2) { width: 195.039px; }
  .service-toc a:nth-child(3) { width: 153.023px; }
  .service-toc a:nth-child(4) { width: 143.625px; }
  .service-toc a:nth-child(5) { width: 222.883px; }
  .service-toc a span { min-width: 0; overflow-wrap: normal; }
  .service-toc a::after { content: '→'; flex: 0 0 18px; font: 500 18px/18px var(--font-en); }
  .service-toc img { display: none; }
  .service-toc a[aria-current='location'] { color: var(--orange); background: #fff; }
}
@media (max-width: 374px) {
  .service-toc a { padding-inline: 10px; gap: 8px; font-size: 12px; }
  .service-toc a::after { flex-basis: 16px; font-size: 16px; }
  .service-toc a:nth-child(1) { width: 98px; }
  .service-toc a:nth-child(2) { width: 166px; }
  .service-toc a:nth-child(3) { width: 130px; }
  .service-toc a:nth-child(4) { width: 124px; }
  .service-toc a:nth-child(5) { width: 192px; }
}
@media (max-width: 359px) {
  .site-header .site-logo, .site-header .site-logo img, .floating-header-logo img { width: 88px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .works .works-statement {
    width: calc(100% - 48px); white-space: normal; transform: none;
    font-size: clamp(30px, 8.8vw, 40px); line-height: 1.08; letter-spacing: -.01em;
  }
  .service-toc a { transition: none; }
}
html[data-motion-paused='true'] .service-toc a { transition: none; }
