/* Keep the desktop film / category / services relationship on smaller screens.
   Only spacing and type scale change; all 15 services remain in normal flow. */
@media (max-width: 820px) {
  .service-header {
    padding-inline: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .service-brand { width: 40px; height: 46px; }
  .service-brand img { width: 38px; height: 38px; }
  .service-header nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 12px;
  }
  .service-header nav a {
    font-size: clamp(8px, 1.8vw, 11px);
    line-height: 1.35;
    letter-spacing: .055em;
    max-width: 135px;
  }
  .service-header-tools { gap: 8px; }
  .language-switch { gap: 5px; }
  .language-switch, .language-switch button { font-size: 8px; }
  .service-header .service-back { font-size: 0; }
  .service-back::before { content: '\2199'; font-size: 17px; }

  .service-flow {
    display: grid;
    grid-template-columns: minmax(0, 23fr) minmax(0, 25fr) minmax(0, 52fr);
    align-items: start;
    padding: 66px 12px 64px;
  }
  .film-column {
    display: block;
    grid-column: 1;
    position: sticky;
    top: 66px;
    height: calc(100svh - 66px);
    min-height: 0;
  }
  .film-viewport {
    left: 0;
    top: 50%;
    width: calc(100% - 8px);
    height: 45svh;
    min-height: 0;
    max-height: 480px;
    transform: translateY(-50%);
    box-shadow: 0 12px 30px #0003;
  }
  .film-viewport::before, .film-viewport::after { height: 42px; }
  .film-track { gap: 12px; }
  .film-frame {
    height: clamp(82px, 18vw, 160px);
    padding: 9px 5px;
  }
  .film-frame::before, .film-frame::after { height: 3px; left: 5px; right: 5px; }
  .film-frame::before { top: 3px; }
  .film-frame::after { bottom: 3px; }
  .film-frame img { width: auto; height: auto; object-fit: contain; }
  .film-frame figcaption {
    left: 5px;
    right: 5px;
    bottom: 9px;
    padding: 3px;
    font-size: 6px;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-groups { display: block; grid-column: 2 / 4; min-width: 0; }
  .service-group {
    display: grid;
    grid-template-columns: minmax(0, 25fr) minmax(0, 52fr);
    align-items: stretch;
  }
  .service-group + .service-group { padding-top: 0; }
  .group-category { min-width: 0; }
  .group-category-sticky {
    position: sticky;
    top: 66px;
    height: calc(100svh - 66px);
    min-height: 0;
    padding: 0 8px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .group-category-sticky > span { font-size: 7px; margin-bottom: 14px; }
  .group-category-sticky h1 {
    max-width: 100%;
    font-size: clamp(11px, 3.3vw, 26px);
    line-height: .96;
    letter-spacing: -.065em;
    text-wrap: initial;
    overflow-wrap: normal;
  }
  .group-services { min-width: 0; padding: 0 0 60px 8px; }
  .group-intro {
    min-height: 38svh;
    padding: 52px 0 34px;
    align-items: flex-end;
  }
  .group-intro p {
    font-size: clamp(19px, 3.7vw, 30px);
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: initial;
  }
  .service-entry { display: block; padding: 28px 0 32px; scroll-margin-top: 80px; }
  .service-entry-number { display: block; margin-bottom: 14px; padding: 0; font-size: 8px; }
  .service-entry-main h2 {
    margin-bottom: 16px;
    font-size: clamp(22px, 4.3vw, 34px);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: initial;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .service-entry-main > p { font-size: clamp(14px, 2.2vw, 18px); line-height: 1.55; }
  .service-entry-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 22px;
  }
  .service-entry-items p { padding: 10px 0; font-size: clamp(11px, 1.8vw, 14px); line-height: 1.4; hyphens: auto; overflow-wrap: anywhere; }
  .service-entry-items p:nth-child(odd) { padding-right: 8px; }
  .service-entry-items p:nth-child(even) { padding-left: 8px; border-left: 1px solid var(--line); }

  html:lang(zh-CN) .group-category-sticky h1 { font-size: clamp(16px, 4.5vw, 30px); line-height: 1.2; }
  html:lang(zh-CN) .group-intro p { font-size: clamp(19px, 3.7vw, 30px); line-height: 1.5; }
  html:lang(zh-CN) .service-entry-main h2 { font-size: clamp(22px, 4.3vw, 34px); line-height: 1.2; }
  html:lang(zh-CN) .service-entry-main > p { font-size: clamp(14px, 2.2vw, 18px); line-height: 1.75; }
  html:lang(zh-CN) .service-entry-items p { font-size: clamp(11px, 1.8vw, 14px); line-height: 1.65; }
}

/* The service column stays on the right; give long deliverable names a full
   row on phones rather than splitting English words into narrow slivers. */
@media (max-width: 480px) {
  .service-entry-items { grid-template-columns: minmax(0, 1fr); }
  .service-entry-items p:nth-child(n) {
    padding: 10px 0;
    border-left: 0;
    font-size: 12px;
    overflow-wrap: break-word;
  }
  html:lang(zh-CN) .service-entry-items p { font-size: 12px; }
}
