/* Phone layouts share the desktop identity, with room for wrapping and zoom. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: auto; min-height: 76px; }
  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto 44px;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding-block: 8px;
  }
  .brand { width: min(132px, 100%); height: auto; }
  .brand img { display: block; width: 100%; height: auto; }
  .nav-cta {
    margin: 0;
    min-height: 44px;
    padding: 11px 12px;
    font-size: .875rem;
    line-height: 1.3;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-cta > span { display: none; }
  .menu-toggle { display: flex; width: 44px; height: 44px; padding: 10px; }
  .site-header nav { display: none; }
  .site-header nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: white;
    border-block: 1px solid var(--line);
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header nav a { min-height: 48px; padding: 14px 8px; font-size: 1rem; line-height: 1.5; white-space: normal; }
  main h1, main h2, main h3, main p, main li {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .page-hero h1 {
    font-size: clamp(2.125rem, 7.8vw, 3.25rem);
    line-height: 1.16;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  .page-hero { padding-bottom: 42px; }
  .page-hero .breadcrumbs { flex-wrap: wrap; line-height: 1.6; gap: 8px; }
  .page-lead { line-height: 1.75; }
  .eyebrow { line-height: 1.7; letter-spacing: .07em; }
  .eyebrow::before { flex-shrink: 0; }
  .section-heading, .contact-layout, .form-panel, .field, .service-detail article {
    min-width: 0;
  }
  .expertise-layout > div, .hiring-layout > div, .sector-grid > div { min-width: 0; }
  .policy-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
  .policy-sidebar nav > a { min-width: 0; overflow-wrap: anywhere; }
  .button {
    max-width: 100%;
    min-height: 52px;
    height: auto;
    padding: 14px 18px;
    gap: 16px;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    flex-wrap: nowrap;
    overflow-wrap: break-word;
  }
  .button > [aria-hidden], .text-link > [aria-hidden] { flex: 0 0 auto; }
  .button:hover { transform: none; }
  .text-link { max-width: 100%; gap: 14px; line-height: 1.6; }

  /* Hero information stays in flow when text grows or the phone rotates. */
  .cinema-viewport { height: auto; min-height: 0; perspective: none; }
  .cinema-world {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: clamp(520px, calc(85svh - 76px), 700px);
    transform-style: flat;
  }
  .cinema-photo { inset: 0; transform: none; }
  .cinema-photo img { object-position: 60% center; filter: saturate(.68) brightness(.8); }
  .cinema-content { padding-top: 52px; transform: none; pointer-events: auto; }
  .cinema-content .eyebrow { max-width: 100%; margin-bottom: 24px; font-size: .75rem; }
  .cinema-content h1 {
    font-size: clamp(2.375rem, 10vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -.04em;
  }
  .cinema-lead { font-size: 1.0625rem; line-height: 1.7; margin: 24px 0 28px; }
  .cinema-bottom {
    position: relative;
    inset: auto;
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    transform: none;
    font-size: .8125rem;
    line-height: 1.65;
  }
  .cinema-bottom > span { max-width: 185px; }
  .cinema-bottom a { max-width: 145px; font-size: .8125rem; gap: 12px; }
  .cinema-bottom a > span { flex-shrink: 0; }
  .audience-bridge { margin-top: -24px; }
  .audience-link { grid-template-columns: minmax(0, 1fr); }
  .audience-title { line-height: 1.45; }
  .talent-card { min-height: 0; height: 100%; }
  .talent-card h3 { margin-top: 26px; }
  .talent-card-link, .next-link { align-items: center; gap: 16px; line-height: 1.6; }
  .talent-card-link > span, .next-link > span { flex-shrink: 0; }
  .talent-card-top > span:first-child { min-width: 0; }

  /* All phones get readable, consistently aligned form controls. */
  .contact-layout .form-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .field input, .field select, .field textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
  }
  .field > label { display: block; line-height: 1.6; margin-bottom: 8px; }
  .field input[type=file] { font-size: 1rem; }
  .intent-group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intent-group label { min-width: 0; }
  .intent-group span { height: 100%; min-height: 52px; align-items: center; padding: 12px 8px; line-height: 1.5; text-align: center; }
  .search-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .search-field .button { width: auto; min-width: 80px; gap: 8px; padding: 10px 12px; }
  .job-row .text-link { white-space: normal; }
  .job-detail-layout aside .button { padding: 14px 18px; }
  .footer-bottom { align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .talent-grid, .next-options, .job-filter-row { grid-template-columns: minmax(0, 1fr); }
  .cinema-content .button, .service-detail article > .button,
  .cta-right .button, .career-contact .button, .submit-button {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .talent-heading h2, .people-statement h2, .expertise-layout h2,
  .hiring-intro h2, .next-section h2, .contact-information h2,
  .form-panel h2, .cta-section h2, .service-detail article > h2,
  .section-heading h2, .about-story h2, .belief-section h2 {
    font-size: clamp(1.875rem, 7.5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.035em;
  }
  .form-panel { padding: 25px 20px; }
  .cinema-content .button { font-size: .9375rem; padding: 14px 18px; }
  .detail-note { padding: 24px; }
  .hiring-step summary { align-items: baseline; }
  .hiring-step h3 { min-width: 0; line-height: 1.5; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .sector-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
}

/* Keep letters and hit areas on the same plane on touch devices. */
@media (max-width: 800px), (max-width: 950px) and (max-height: 500px), (hover: none), (pointer: coarse) {
  .talent-grid, .talent-card-wrap, .people-principles,
  .hiring-steps, .process-depth-wrap, .next-options { perspective: none; }
  .depth-card, .talent-card, .next-option { transform: none !important; transform-style: flat; }
  .talent-card h3, .talent-card p, .talent-card-link,
  .next-option h3, .next-option > p, .next-link { transform: none; }
  .depth-reveal.is-depth-ready, .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
