/* Phone layouts only. Desktop styles remain in their original stylesheets. */
@media (max-width: 650px) {
  html {scroll-padding-top: 24px;}
  body {overflow-x: clip;}
  .wrap {width: calc(100% - 36px);}
  .header {height: auto; min-height: 82px; padding: 20px 18px; flex-wrap: wrap; gap: 16px;}
  .header .brand {width: 135px; flex-shrink: 0;}
  .header nav {gap: 12px; font-size: 11px;}
  .header nav a {min-height: 44px; display: inline-flex; align-items: center;}
  .header nav a[href="#sobre"], .header nav a[href="#projetos"] {display: none;}
  .round {min-width: 44px; min-height: 44px;}
  .hero.hero-film {min-height: 0; padding: 36px 0 0; display: flex; flex-direction: column; align-items: stretch; overflow: hidden;}
  .hero-film .hero-content {order: 0;}
  .hero.hero-film h1 {font-size: clamp(40px, 12.7vw, 74px); line-height: 1.07; margin: 8px 0 28px;}
  .hero-film .hero-bottom {flex-wrap: nowrap; gap: 14px; margin-bottom: 25px;}
  .hero-film .hero-bottom .button {width: auto; flex: 1;}
  .hero-film > video {position: relative; inset: auto; order: 1; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; z-index: 0; filter: brightness(.92);}
  .hero-film .hero-shade {inset: auto 0 0; height: 56.25vw; z-index: 1; pointer-events: none; background: linear-gradient(#0b0c0e, #0b0c0e00 26%, #0b0c0e00 70%, #0b0c0e);}
  .hero-shade:after {display: none;}
  .idea-strip {margin-bottom: 20px;}
  .studio-section {padding-top: 25px; padding-bottom: 32px;}
  .studio-heading {gap: 18px;}
  .studio-heading h2 {font-size: clamp(30px, 8vw, 44px);}
  .studio-heading p {font-size: 15px; line-height: 1.7;}
  .studio-reels {display: flex; gap: 16px; padding: 12px 18px 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; overscroll-behavior-x: contain; touch-action: pan-x pan-y;}
  .studio-card {flex: 0 0 82%; width: 82%; max-width: 380px; aspect-ratio: 9/16; scroll-snap-align: center; transform: none;}
  .studio-card:hover, .studio-card:focus-visible {transform: none;}
  .studio-card video {object-fit: contain;}
  .client-set {gap: 28px; padding-right: 28px;}
  .client-set img {width: 92px; height: 42px;}
  .client-track {animation-duration: 22s;}
  .client-strip {padding-block: 18px 26px;}
  .client-strip-head {margin-bottom: 14px;}
  .showreel .reel-frame {aspect-ratio: 16/9;}
  .showreel .reel-frame > video {height: 100%; object-fit: contain;}
  .showreel .reel-frame:before {height: 26%;}
  .showreel .reel-label {top: 8px; left: 18px; right: 12px;}
  .showreel .reel-open {bottom: 14px; font-size: 18px;}
  .project-grid {grid-template-columns: 1fr; gap: 32px;}
  .project .project-visual, .project.wide .project-visual, .project[data-kind="film"] .project-visual {aspect-ratio: auto;}
  .project img {width: 100%; height: auto; object-fit: contain;}
  .project-info h3 {font-size: 17px;}
  .project-info small {font-size: 12px; line-height: 1.6;}
  .filters {flex-wrap: wrap; gap: 8px 22px;}
  .filters button {min-height: 44px;}
  .contact-form input, .contact-form textarea {font-size: 16px;}
  .contact-form label {font-size: 14px;}
  .contact-fields {grid-template-columns: 1fr;}
  .contact-form .button {width: 100%; white-space: normal; text-align: left;}
  footer.wrap, .ai-page footer.wrap {width: calc(100% - 36px); gap: 20px 16px; padding-block: 26px max(26px, env(safe-area-inset-bottom));}
  footer.wrap .world-reach {align-items: flex-start; gap: 14px;}
  footer.wrap .world-reach p, footer.wrap > p, footer.wrap > a:not(.brand) {font-size: 12px;}
  footer.wrap .world-reach p {flex-basis: 100%;}
  footer.wrap .world-flag {zoom: .7;}
  footer.wrap > small {display: block; font-size: 11px;}
  footer.wrap > a.footer-whatsapp {padding: 12px 16px;}
  footer.wrap .footer-whatsapp span {display: inline;}
  dialog {width: calc(100vw - 16px); max-height: 94svh; padding: 16px;}
  .case-header {top: -16px;}
  #studioPlayer {width: auto; max-width: calc(100vw - 16px); height: auto; max-height: 90svh;}

  /* AI Studio: keep the film's full frame, with copy above it. */
  .ai-page .ai-hero {display: flex; flex-direction: column; align-items: stretch; min-height: 0; height: auto; max-height: none; padding-bottom: 20px;}
  .ai-page .ai-hero-copy {order: 0; padding-block: 38px 28px;}
  .ai-page .ai-hero h1 {font-size: clamp(34px, 9.3vw, 54px); margin: 22px 0;}
  .ai-page .hero-description {font-size: 14px; line-height: 1.75;}
  .ai-page .ai-hero-copy .button {width: 100%; white-space: normal; font-size: 12px;}
  .ai-page .ai-hero-media {order: 1; position: relative; inset: auto; width: calc(100% - 36px); margin-inline: auto; aspect-ratio: 9/16; border-radius: 14px; mask-image: none; -webkit-mask-image: none;}
  .ai-page .ai-hero-media video {display: block; height: 100%; width: 100%; object-fit: contain;}
  .ai-page .ai-hero-shade {display: none;}
  .ai-page .ai-hero-media:after {content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0b0c0e, transparent 20%, transparent 80%, #0b0c0e);}
  .ai-page .hero-caption {position: relative; order: 2; bottom: auto; right: auto; padding: 8px 18px 0; justify-content: space-between;}
  .ai-page .ai-intro, .ai-page .real-ai {padding-block: 55px;}
  .ai-page .service, .ai-page .service:nth-child(2), .ai-page .service:nth-child(6) {grid-template-columns: 1fr; gap: 24px; padding-block: 32px;}
  .ai-page .service:nth-child(even) .service-media {order: 0;}
  .ai-page .service-media, .ai-page .service:nth-child(2) .service-media, .ai-page .service:nth-child(5) .service-media {height: auto; aspect-ratio: 16/9; margin-inline: -10px; border-radius: 10px;}
  .ai-page .service-media img, .ai-page .service-media video {object-fit: contain; transform: none;}
  .ai-page .service-media:has(video) {aspect-ratio: auto;}
  .ai-page .service-media video {display: block; width: 100%; height: auto;}
  .ai-page .service h3 {font-size: 25px;}
  .ai-page .service-content > p {font-size: 14px; line-height: 1.8;}
  .ai-page .service-link {min-height: 44px; font-size: 12px;}
  .ai-page .service-index {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;}
  .ai-page .service-index a {flex-direction: row; text-align: left; min-height: 54px; padding: 10px; background: #ffffff05; border-radius: 12px; font-size: 11px;}
  .ai-page .process-layout {grid-template-columns: 1fr;}
  .ai-page .process-tabs {gap: 8px; justify-content: space-between;}
  .ai-page .process-tabs button {font-size: 11px; min-height: 48px;}
  .ai-page .ai-contact h2 {font-size: clamp(34px, 9vw, 52px);}

  /* Campaign configurators: full-width references and uncropped photos. */
  .fashion header, .stock header {padding: 20px 18px; gap: 12px; flex-wrap: wrap;}
  .fashion header nav, .stock header nav {gap: 16px; font-size: 12px; flex-wrap: wrap;}
  .fashion header nav a, .stock header nav a {min-height: 44px; display: inline-flex; align-items: center;}
  .fashion header .other-page, .stock header .other-page {display: none;}
  .fashion .intro h1, .stock .intro h1 {font-size: clamp(32px, 9.2vw, 48px);}
  .fashion .intro-line, .stock .intro-line {font-size: 14px;}
  .workspace {width: calc(100% - 20px); padding: 26px 12px; border-radius: 22px;}
  .workspace-heading > p:last-child {font-size: 12px;}
  .step-tabs {gap: 6px;}
  .step-tab {min-width: 0; min-height: 62px; padding: 10px 7px; font-size: 11px;}
  .step-icon {flex-shrink: 0;}
  .panel-heading {gap: 10px;}
  .panel-heading p {font-size: 12px;}
  .option-grid, .fashion .option-grid {grid-template-columns: 1fr; gap: 20px;}
  .option-card {padding: 7px;}
  .option-select {display: block;}
  .option-select img {width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain;}
  .option-caption {font-size: 15px; padding: 15px 9px 9px;}
  .option-detail {margin: 0; padding: 0 9px 12px; font-size: 12px; min-height: 0;}
  .option-zoom {left: auto; right: 15px; top: 15px; width: 44px; height: 44px; font-size: 20px; background: #fffffff0;}
  .step-bottom .primary, .primary {font-size: 12px; min-height: 48px;}
  .quiet {min-height: 44px; font-size: 12px;}
  .chosen-chip {font-size: 11px; min-height: 44px;}
  .chosen-chip img {width: 32px; height: 32px;}
  .small-note {font-size: 11px; line-height: 1.7;}
  .live-preview {padding: 7px; margin-inline: -5px;}
  .preview-heading > span {font-size: 12px; line-height: 1.6;}
  .live-preview figcaption {font-size: 11px; line-height: 1.7;}
  .live-preview a {padding-block: 10px;}
  .direction-section, .results-section {width: calc(100% - 24px);}
  .section-heading {padding-inline: 6px;}
  .section-heading p:not(.eyebrow) {font-size: 13px;}
  .direction-board, .stock .direction-board {padding: 18px 8px; gap: 24px;}
  .reference-card {padding: 7px 7px 12px;}
  .reference-card figcaption {font-size: 12px; align-items: center; margin: 8px 4px 0;}
  .reference-card button {font-size: 12px; min-height: 44px;}
  .combination-status {font-size: 12px; line-height: 1.7; padding-inline: 6px;}
  .paper-table, .fashion .paper-table {display: grid; gap: 34px; min-height: 0; padding: 26px 8px 40px; overflow: visible;}
  .paper, .fashion .paper, .fashion .paper-0, .fashion .paper-1, .fashion .paper-2, .fashion .paper-3 {position: relative; inset: auto; width: 100%; padding: 8px 8px 32px; transform: translate(var(--x),var(--y)) rotate(-1deg); touch-action: pan-y;}
  .paper:nth-child(even) {transform: translate(var(--x),var(--y)) rotate(1deg);}
  .paper figcaption {font-size: 11px; margin: 12px 3px 0; gap: 8px;}
  .paper.featured:after {font-size: 10px;}
  .closing > p:not(.eyebrow) {font-size: 13px; padding-inline: 4px; line-height: 1.8;}
  .fashion footer, .stock footer {font-size: 12px; gap: 18px; padding-bottom: max(30px, env(safe-area-inset-bottom));}
  .fashion dialog, .stock dialog {width: calc(100vw - 12px); padding: 50px 6px 8px; max-height: 96svh;}
  .close-dialog {min-width: 44px; min-height: 44px; top: 2px; right: 5px;}
  .fashion dialog img, .stock dialog img {width: 100%; height: auto; max-height: 80svh; object-fit: contain;}
}
@media (max-width: 850px) {
  .studio-reels.auto-sliding {scroll-snap-type: none; scroll-behavior: auto;}
}
@media (max-width: 360px) {
  .step-tab {flex-direction: column; text-align: center; gap: 5px; font-size: 10px;}
  .step-tab small {display: none;}
}
