/* Compact layouts follow the content height, including enlarged phone text. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.about-intro > *,
.commerce-feature > *,
.commerce-capabilities article > div,
.film-top > *,
.service-grid > *,
.global-layout > *,
.team-layout > *,
.team-values article > div,
.contact-grid > *,
.roles summary > * {
  min-width: 0;
}

.business-english,
.role-name small,
.email-link {
  overflow-wrap: anywhere;
}

/* Collapse before navigation competes with the company name on tablets. */
@media (max-width: 1280px) {
  .site-header {
    height: auto;
    min-height: 76px;
    padding-top:12px;padding-bottom:12px;
    grid-gap:16px;gap:16px;
  }

  .site-header .brand-cn { display: block; }

  .menu-toggle {
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: center;
    grid-gap:7px;gap:7px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    grid-gap:0;gap:0;
    max-height: calc(100vh - 100px);
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 8px 24px 24px;
    background: #fff;
    box-shadow: 0 15px 25px #142b361a;
  }

  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-header nav .nav-cta { margin-top: 14px; padding: 13px 17px; justify-content: space-between; }
}

/* Stacked editorial sections remain readable on portrait tablets. */
@media (max-width: 1100px) {
  .about-intro,
  .commerce-feature,
  .film-top,
  .global-layout,
  .team-layout,
  .contact-grid { grid-template-columns: minmax(0, 1fr); grid-gap:32px;gap:32px; }

  .about-copy { max-width: none; }
  .section-heading,
  .careers-heading { flex-direction: column; align-items: flex-start; grid-gap:24px;gap:24px; }
  .careers-heading h2 { min-width: 0; }
  .film-intro { padding-top: 0; }
  .roles summary { grid-template-columns: 40px minmax(0, 1fr) 90px 28px; }
  .role-content { padding-right: 0; padding-left: 55px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .section { padding: 72px 0; }
  .site-header { padding-left: 32px; padding-right: 32px; }
  .hero { display: block; min-height: 0; }
  .hero-content { padding: 60px 0 36px; }
  .hero h1 { font-size: 46px; line-height: 1.4; }
  .hero-bottom { position: relative; left: auto; right: auto; bottom: auto; padding-bottom: 28px; }
  .hero-coordinate { display: none; }
  .section-heading h2, .about-intro h2 { font-size: 36px; }
  .foundation > div { padding-left: 24px; padding-right: 24px; }
  .foundation > div:first-child { padding-left: 0; }
  .foundation strong { font-size: 23px; }
  .film-locations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .film-locations p { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #ffffff29; padding: 18px 0 0; }
  .film-locations p br { display: none; }
  .workplace-panel { min-height: 420px; }
  .role-name { font-size: 21px; line-height: 1.65; }
  .roles summary { padding: 26px 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .section { padding-top:56px;padding-bottom:56px; }
  h2, .careers-heading h2 { font-size:1.5rem;font-size:clamp(1.5rem, 7vw, 2rem); line-height: 1.55; }
  .site-header { min-height: 72px; padding-left:20px;padding-right:20px; grid-gap:12px;gap:12px; }
  .brand { grid-gap:10px;gap:10px; }
  .brand-name { font-size: 24px; }
  .brand-cn { font-size: 13px; letter-spacing: 1px; padding-left: 10px; }

  .hero { display: block; min-height: 0; }
  .hero-content { padding: 48px 0 28px; }
  .hero h1 { font-size:1.875rem;font-size:clamp(1.875rem, 8.8vw, 2.5rem); line-height: 1.42; }
  .hero .eyebrow { margin-bottom: 24px; letter-spacing: 1px; }
  .hero-description { margin-top: 24px; line-height: 1.9; }
  .hero-description br, .section-heading > p br { display: none; }
  .hero-actions { margin-top: 28px; grid-gap:14px 24px;gap:14px 24px; align-items: flex-start; }
  .hero-actions .text-link { min-height: 48px; font-size: 14px; }
  .hero-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-wrap: wrap;
    grid-gap:8px 20px;gap:8px 20px;
    padding-bottom: 20px;
    line-height: 1.8;
  }
  .hero-bottom a { min-height: 44px; }

  .section-label { flex-wrap: wrap; grid-gap:6px 10px;gap:6px 10px; line-height: 1.6; margin-bottom: 24px; }
  .section-label .english { flex-basis: 100%; margin-left: 0; letter-spacing: 1px; }
  .section-heading { grid-gap:18px;gap:18px; }
  .section-heading > p { font-size: 16px; }
  .foundation strong { font-size: 22px; }
  .commerce-strategy { padding: 26px 22px; }
  .commerce-strategy h3 { font-size:1.25rem;font-size:clamp(1.25rem, 5.6vw, 1.625rem); }
  .commerce-capabilities article, .team-values article { grid-gap:14px;gap:14px; }
  .commerce-capabilities article > span, .team-values article > span { flex-shrink: 0; }
  .commerce-capabilities h3 { font-size: 21px; }

  .film-top { padding: 28px 22px; grid-gap:24px;gap:24px; }
  .film-top h3 { font-size: 27px; }
  .film-top h3 > span { font-size: 24px; }
  .service-grid { margin-left:22px;margin-right:22px; }
  .service-grid article > span { overflow-wrap: anywhere; }
  .film-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap:22px 16px;gap:22px 16px; padding: 26px 22px; }
  .film-locations > div:first-child { grid-column: 1 / -1; }
  .film-locations span { overflow-wrap: anywhere; }
  .film-locations p { margin: 0; }

  .current-market { padding: 28px 22px; }
  .current-cities span { display: inline-block; margin-left: 8px; }
  .market-list li { grid-template-columns: 42px minmax(0, 1fr); grid-gap:2px 14px;gap:2px 14px; padding-top:16px;padding-bottom:16px; }
  .market-list .country-code { grid-row: 1 / 3; align-self: center; }
  .market-list strong { grid-column: 2; }
  .market-list li > span:last-child { grid-column: 2; overflow-wrap: anywhere; }

  .workplace-panel { min-height: 0; padding: 26px 22px; }
  .workplace-top { flex-wrap: wrap; grid-gap:6px 16px;gap:6px 16px; }
  .workplace-title { padding-top:40px;padding-bottom:40px; }
  .workplace-title h3 { font-size:2.75rem;font-size:clamp(2.75rem, 12vw, 3.625rem); }
  .workplace-address strong { flex-wrap: wrap; grid-gap:8px 16px;gap:8px 16px; }

  .roles summary { grid-template-columns: 24px minmax(0, 1fr) 24px; grid-gap:6px 12px;gap:6px 12px; padding-top:22px;padding-bottom:22px; }
  .role-number { grid-column: 1; grid-row: 1; align-self: start; padding-top: 3px; }
  .role-name { grid-column: 2; grid-row: 1; font-size: 19px; line-height: 1.65; overflow-wrap: anywhere; }
  .role-name small { margin-top: 6px; line-height: 1.6; letter-spacing: 0; }
  .role-area { display: block; grid-column: 2; grid-row: 2; font-size: 13px; }
  .role-toggle { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .role-content { padding: 0 0 24px; font-size: 16px; }
  .career-footnote { font-size: 13px; }
  .text-link, .copy-email { min-height: 44px; }
  .contact-details address { font-size: 18px; }
  .copy-feedback { display: block; margin: 4px 0 0; }
  .footer-top .brand { width: auto; max-width: calc(100% - 70px); flex-wrap: wrap; }
  .footer-top { grid-gap:20px;gap:20px; }
  .back-top { flex-shrink: 0; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span { transition: none; }
}
