/* Phone layout: comfortable reading, reachable controls, and room for the artwork. */
@media (max-width:760px) {
  html { scroll-padding-top:calc(94px + env(safe-area-inset-top)); -webkit-text-size-adjust:100%; }
  body { font-size:16px; }
  main { padding-left:max(20px,env(safe-area-inset-left)); padding-right:max(20px,env(safe-area-inset-right)); }
  .sidebar { height:calc(68px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left)); }
  .brand { min-height:44px; }
  .brand-logo { width:auto; max-width:154px; height:36px; }
  .menu-toggle { min-height:44px; min-width:76px; justify-content:space-between; font-size:12px; gap:16px; }
  .sidebar nav { top:100%; padding:18px 20px max(20px,env(safe-area-inset-bottom)); max-height:calc(100dvh - 68px - env(safe-area-inset-top)); overflow-y:auto; overscroll-behavior:contain; box-shadow:0 24px 45px #0006; }
  body.menu-open { overflow:hidden; }
  .nav-caption { font-size:10px; }
  .nav-link { min-height:46px; font-size:14px; }
  .search-trigger { min-height:44px; font-size:12px; }
  .search-trigger kbd { display:none; }
  nav .side-controls { border-top:1px solid var(--line); padding-top:16px; margin-top:12px; gap:12px; }
  .side-controls>button { width:44px; height:44px; font-size:20px; }
  .side-controls>.mono { font-size:9px; }
  .page-top { height:48px; font-size:8px; gap:12px; }
  #manila-time { white-space:nowrap; }
  .hero { padding-top:26px; }
  .hero-grid { display:flex; flex-direction:column; align-items:stretch; gap:28px; }
  .hero-copy { order:-1; padding:0; }
  .eyebrow,.hero-copy .eyebrow { font-size:10px; }
  .hero-copy h1 { font-size:clamp(34px,9.5vw,48px); white-space:normal; letter-spacing:-.065em; margin:12px 0 22px; }
  .hero-lead { font-size:22px; line-height:1.45; margin-bottom:20px!important; }
  .hero-copy>p { font-size:15px; line-height:1.75; max-width:560px; margin-top:14px; }
  .hero-actions { gap:12px; margin-top:24px; }
  .button { min-height:48px; font-size:13px; padding:12px 16px; }
  .text-link { display:inline-flex; align-items:center; min-height:44px; font-size:12px; line-height:1.6; }
  .hero-art { width:min(100%,360px); max-width:100%; align-self:center; margin:0; }
  .hero-art .art-register { font-size:7px; bottom:14%; }
  .peak-view { font-size:10px; }
  .peak-help { font-size:10px; padding-top:10px; }
  .peak-desktop-help { display:none; }
  .peak-touch-help { display:inline; }
  .vsl-placeholder { margin-top:32px; }
  .vsl-label { font-size:8px; }
  .vsl-content h2 { font-size:20px; }
  .vsl-content p { font-size:12px; }
  .principles { grid-template-columns:1fr; margin-top:30px; padding:4px 0; }
  .principles>div,.principles>div:first-child,.principles>div:last-child { flex-direction:row; align-items:center; border-left:0; border-top:1px solid var(--line); padding:17px 0; gap:18px; }
  .principles>div:first-child { border-top:0; }
  .principles>div>span { font-size:13px; }
  .principles small { font-size:9px; line-height:1.6; margin-top:6px; }
  .principles svg { width:24px; height:24px; }
  .intro-footer { font-size:9px; line-height:1.7; flex-wrap:wrap; gap:8px 16px; }
  .intro-footer>span { max-width:250px; }
  .intro-footer a { min-height:44px; display:inline-flex; align-items:center; }
  .section { padding-top:58px; }
  .section-header { gap:14px; flex-wrap:wrap; margin-bottom:26px; }
  .section-label { font-size:11px; }
  .small-link { min-height:44px; display:inline-flex; align-items:center; font-size:10px; }
  .small-muted { font-size:9px; }
  .section-intro { display:block; }
  h2,.section-intro h2,.studio-layout h2 { font-size:clamp(24px,6vw,30px); line-height:1.4; }
  .section-intro>p { max-width:560px; margin-top:18px; font-size:15px; line-height:1.75; }
  .service { grid-template-columns:30px minmax(0,1fr) 44px; gap:14px; padding:26px 0; align-items:start; }
  .service-glyph { grid-column:1; grid-row:1; width:28px; }
  .service-name { grid-column:2; grid-row:1; }
  .service-name h3 { font-size:15px; line-height:1.5; }
  .service-name>.mono { font-size:9px; line-height:1.7; }
  .service>p { grid-column:2/4; grid-row:2; font-size:15px; line-height:1.75; }
  .service>.arrow-button { grid-column:3; grid-row:1; width:44px; height:44px; font-size:20px; }
  .service:hover { transform:none; }
  .scope-line>.mono { font-size:10px; }
  .tags span { font-size:10px; padding:6px 8px; }
  .study-grid { grid-template-columns:1fr; gap:32px; }
  .study-art { aspect-ratio:1.3; }
  .study-time { font-size:9px; left:17px; top:17px; }
  .study-copy h3 { font-size:17px; }
  .study-copy>.mono { font-size:10px; line-height:1.7; }
  .study-play { width:44px; height:44px; right:17px; bottom:17px; font-size:20px; }
  .phone-frame { left:29%; right:29%; top:14%; bottom:-8%; padding:16px; }
  .hook-small { font-size:9px; }
  .hook-word { font-size:clamp(40px,12vw,60px); }
  .hook-caption { font-size:8px; }
  .story-window { inset:23% 20%; }
  .story-window span { font-size:clamp(21px,5.5vw,30px); }
  .rhythm-word { font-size:clamp(23px,6vw,32px); left:24px; }
  .work-note { font-size:10px; line-height:1.8; }
  .process-track { grid-template-columns:1fr; gap:28px; }
  .step-number { font-size:12px; }
  .process-track h3 { font-size:16px; }
  .process-track p { font-size:15px; line-height:1.75; }
  .process-note { flex-wrap:wrap; gap:12px; }
  .process-note p { font-size:14px; }
  .process-note .text-link { margin-left:0; font-size:12px; }
  .studio-layout { grid-template-columns:1fr; gap:32px; }
  .studio-layout p,.studio-layout p.studio-lead { font-size:15px; line-height:1.8; }
  .studio-layout p.studio-lead { font-size:17px; }
  .location-pair { font-size:10px; flex-wrap:wrap; }
  .location-pair strong { font-size:12px; }
  .studio-note { width:100%; max-width:420px; transform:none; padding:28px; }
  .studio-note>.mono { font-size:9px; }
  .studio-note p { font-size:25px; }
  .faq-list summary { min-height:64px; font-size:15px; gap:16px; line-height:1.6; }
  .faq-list summary>span { flex-shrink:0; }
  .faq-list details p { font-size:15px; line-height:1.8; }
  .contact-layout { grid-template-columns:1fr; gap:24px; }
  .contact-stamp { display:none; }
  .contact h2 { font-size:clamp(28px,7.5vw,38px); }
  .contact p { font-size:15px; }
  .contact-detail { flex-direction:column; align-items:start; gap:10px; }
  .contact-detail>.mono { font-size:10px; }
  .contact-detail>a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; font-size:13px; overflow-wrap:anywhere; }
  footer { flex-wrap:wrap; gap:12px; padding-bottom:max(24px,env(safe-area-inset-bottom)); }
  footer>a,footer>a:first-child { min-height:44px; display:inline-flex; align-items:center; font-size:11px; }
  footer>span { display:none; }
  footer>a>span { font-size:9px; }
  dialog { width:calc(100% - 20px); max-height:calc(100dvh - 20px); margin:auto; overscroll-behavior:contain; scroll-padding:80px 0 24px; }
  dialog::backdrop { backdrop-filter:none; }
  .dialog-top { min-height:64px; padding:10px 16px; }
  .dialog-top>.mono { font-size:9px; }
  .dialog-top>button { width:44px; height:44px; flex-shrink:0; }
  .brief-body { padding:24px 20px max(24px,env(safe-area-inset-bottom)); }
  .brief-body h2 { font-size:25px; }
  .brief-intro,.privacy-note,#brief-delivery-note { font-size:14px; line-height:1.75; }
  .form-pair { grid-template-columns:1fr; gap:0; }
  .brief-body label { font-size:13px; }
  input,select,textarea,#section-search { font-size:16px; line-height:1.5; min-height:48px; }
  input::placeholder,textarea::placeholder { font-size:14px; }
  .optional { font-size:10px; }
  .brief-body .button,.result-actions .button { min-height:48px; font-size:12px; }
  .result-actions { flex-direction:column; align-items:stretch; }
  #brief-output { font-size:12px; }
  .result-kicker,.form-status { font-size:12px; }
  .search-results a { min-height:48px; font-size:14px; }
  .search-foot { font-size:9px; }
  .study-modal-copy { padding:24px 20px; }
  .study-modal-copy>p { font-size:15px; }
  .study-controls { align-items:stretch; flex-direction:column; gap:12px; }
  .study-controls .button { min-height:48px; font-size:12px; }
  .study-stage { height:260px; }
}
@media(max-width:380px) {
  .page-top { font-size:7px; }
  .hero-actions { flex-direction:column; align-items:stretch; gap:4px; }
  .hero-actions .text-link { justify-content:center; }
  .hero-art .art-register { font-size:6px; }
  .peak-help { font-size:9px; }
  .service { gap:10px; grid-template-columns:24px minmax(0,1fr) 44px; }
  .service-name h3 { font-size:14px; }
}
@media(hover:none),(pointer:coarse) {
  .study-grid * { animation:none!important; }
  .study-card:hover .study-art { transform:none; box-shadow:none; }
  .button:hover>span { translate:none; }
}

/* Visual polish for the existing mobile layout. */
@media (max-width:760px) {
  .page-top { height:44px; font-size:9px; letter-spacing:.05em; }
  #manila-time { font-size:9px; letter-spacing:.08em; }
  .hero { padding-top:20px; }
  .hero-actions { margin-top:22px; }
  .hero-actions .primary,
  .hero-actions .button.primary {
    width:100%;
    justify-content:center;
    min-height:50px;
    font-size:14px;
  }
  .company-film {
    margin-top:28px;
    border-radius:10px;
    box-shadow:0 16px 40px rgba(0,0,0,.4);
  }
  .contact .button,
  .contact .button.primary { width:100%; justify-content:center; min-height:50px; font-size:14px; }
  .location { font-size:10px; }
}
@media (max-width:380px) {
  .page-top { font-size:8px; }
}

@media (max-width:760px) {
  .nav-icon, .nav-icon svg { width:18px; height:18px; }
  .side-peaks { height:16px; }
}
